/* ============================================================
   css/featured-page.css — a featured puzzle's public page,
   /printable-word-search/{slug} (PLAN_featured-banks v1.0, step 4;
   includes/featured-page.php). New file: every rule is scoped to
   .fp-* or sits under .fp-page, so nothing else on the site changes.
   Buttons, sliders, the settings card, the print preview and the nav
   come from style.css / print-builder.css as they are.
   Look: the approved mockup ("Featured Puzzle Landing — Mockup", v7).
   ============================================================ */

/* The nav bar scrolls away with the page (owner report, 2026-10-07: it
   stayed stuck while the page scrolled under it). On this site <body> is
   the scrolling box (style.css: html/body height 100% + overflow), so
   .print-nav-bar's position:absolute was pinned to the window, not the
   page. Making body its anchor puts the bar inside what scrolls. This
   page only — print-builder.css is unchanged. */
body.fp-body { position: relative; }

/* ── Top: centered logo + breadcrumb pill ── */
.fp-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 2.75rem;
}
.fp-crumbs {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1.1rem;
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 50px;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}
.fp-crumbs a { color: var(--gold); text-decoration: none; }
.fp-crumbs a:hover { color: var(--gold-light); }
.fp-crumbs span[aria-hidden] { color: var(--ink-muted); }

/* ── Hero: preview left, title and controls right ── */
.fp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
}
@media (max-width: 900px) {
    .fp-hero { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
}
.fp-preview { min-width: 0; }
/* Preview buttons under the sheet: Page 1 / Page 2 (or Puzzle) + Answer key. */
.fp-views {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}
.fp-views .page-toggle { margin: 0; }
.fp-views .page-toggle-btn[hidden] { display: none; }
.fp-page .print-page-sheet { min-height: 320px; transition: opacity .2s; }
.fp-page .print-page-sheet.fp-drawing { opacity: 0.55; }

.fp-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    padding-top: 2.4rem;
}
/* Narrow screens: the title comes first, then the sheet, then the controls.
   (After the .fp-panel rule above, so display: contents wins here.) */
@media (max-width: 900px) {
    .fp-hero { gap: 1.35rem; }
    .fp-panel { display: contents; }
    .fp-eyebrow, .fp-title, .fp-desc, .fp-specs { order: -1; }
    .fp-preview { margin: 0.75rem 0 0.5rem; }
    .fp-specs { max-width: none; }
}
.fp-eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}
.fp-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    line-height: 1.08;
    color: var(--cream);
}
.fp-title-gold { color: var(--gold-light); }
.fp-desc {
    margin: 0;
    max-width: 32rem;
    font-size: 1.02rem;
    line-height: 1.65;
    color: rgba(245,237,216,0.75);
}
/* Spec sheet: quiet label / value rows on hairlines, nothing that looks
   clickable (replaced the pill chips, owner 2026-10-07). */
.fp-specs {
    margin: 0.2rem 0 0;
    max-width: 29rem;
    border-top: 1px solid rgba(201,168,76,0.22);
}
.fp-specs > div {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(245,237,216,0.08);
    font-size: 0.86rem;
    line-height: 1.5;
}
.fp-specs dt {
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding-top: 0.15rem;
}
.fp-specs dd { margin: 0; color: var(--cream); }
.fp-alert { margin: 0; max-width: 29rem; }
.fp-alert[hidden] { display: none; }

.fp-actions, .fp-settings, .fp-reset-row, .fp-customize { max-width: 29rem; width: 100%; }
.fp-actions .print-download-label { margin-top: 0.3rem; }
.fp-new-btn {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}
.fp-pool-note {
    margin: 0.6rem 0 0;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--ink-soft);
}
.fp-pool-note strong { color: var(--cream); font-weight: 500; }
.fp-actions .print-secondary-links { margin-top: 0.4rem; }

/* Settings card: print-builder.css's own card; one extra row (Clues). */
.fp-settings .size-slider-pair .count-slider { flex: 1; }
.fp-max { margin-top: 0.35rem; }
.fp-max strong { color: var(--gold); font-weight: 500; }

/* Filled-dot toggle (the site's on/off style, replacing the checkbox look):
   a real checkbox, hidden but still focusable, drawn as a ring that fills. */
.fp-dot {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 44px;
    cursor: pointer;
    color: var(--cream);
    font-size: 0.9rem;
}
.fp-dot input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}
.fp-dot-mark {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 1.5px solid rgba(245,237,216,0.45);
    display: grid;
    place-items: center;
    transition: border-color .15s;
}
.fp-dot-mark::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    transform: scale(0);
    transition: transform .15s;
}
.fp-dot input:checked + .fp-dot-mark { border-color: var(--gold); }
.fp-dot input:checked + .fp-dot-mark::after { transform: scale(1); }
.fp-dot:hover .fp-dot-mark { border-color: var(--gold); }
.fp-dot input:focus-visible + .fp-dot-mark { outline: 2px solid var(--gold); outline-offset: 3px; }
.fp-dot-text { display: flex; flex-direction: column; gap: 0.1rem; }

.fp-reset-row { margin: -0.5rem 0 0; text-align: center; }
.fp-reset-row .print-link-btn[hidden] { display: none; }
.fp-customize {
    font-size: 0.88rem;
    color: var(--ink-blue-light);
    text-decoration: underline;
    text-decoration-color: rgba(143,169,204,0.45);
    text-underline-offset: 4px;
}
.fp-customize:hover { text-decoration-color: var(--ink-blue-light); }

/* The hidden word form js/print-builder.js reads. */
.fp-engine, .fp-engine[hidden] { display: none !important; }

/* ── Cream paper band (as on /teachers) ── */
.fp-paper { background: #F5EDD8; color: #34302A; margin-top: 4.5rem; }
.fp-section { max-width: 1116px; margin: 0 auto; padding: 4.5rem 2rem; box-sizing: border-box; }
.fp-paper .fp-section + .fp-section { border-top: 1px solid rgba(52,48,42,0.16); }
.fp-kicker {
    margin: 0 0 0.6rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: #2E4A6B;
}
.fp-h2 {
    margin: 0 0 1.1rem;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 3.4vw, 2.25rem);
    line-height: 1.15;
}
.fp-paper .fp-h2 { color: #34302A; }
.fp-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 3.5rem;
}
.fp-about p { margin: 0 0 1rem; font-size: 1rem; line-height: 1.7; }
.fp-meta { font-size: 0.85rem !important; color: #6B655B; }
.fp-clue-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
    border-top: 1px solid #6B655B;
}
.fp-clue-list li {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(52,48,42,0.16);
    font-size: 0.95rem;
    line-height: 1.6;
}
.fp-num { font-family: 'Playfair Display', serif; color: #2E4A6B; min-width: 1.4rem; }
.fp-word-list {
    list-style: none;
    margin: 0;
    padding: 1rem 0 0;
    border-top: 1px solid #6B655B;
    columns: 3 9rem;
    column-gap: 1.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}
.fp-word-list li { padding: 0.25rem 0; break-inside: avoid; }
.fp-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.fp-why > div { padding-left: 1rem; border-left: 2px solid #2E4A6B; }
.fp-why h3 {
    margin: 0 0 0.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 1.3rem;
    color: #2E4A6B;
}
.fp-why p { margin: 0; font-size: 1rem; line-height: 1.7; }
@media (max-width: 760px) {
    .fp-section { padding: 3rem 1.25rem; }
    .fp-about { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .fp-clue-list { grid-template-columns: minmax(0, 1fr); }
    .fp-why { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
}

/* ── More word searches: each card a small white sheet with its real grid ── */
.fp-more { padding-bottom: 5rem; }
.fp-more-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.fp-more-head .fp-h2 { margin: 0; color: var(--cream); }
.fp-more-head a {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
}
.fp-more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 900px) { .fp-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
.fp-card { display: flex; flex-direction: column; gap: 0.6rem; text-decoration: none; color: var(--cream); }
.fp-card-sheet {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    aspect-ratio: 8.5 / 11;
    padding: 9% 10%;
    box-sizing: border-box;
    background: #FFFFFF;
    box-shadow: 0 14px 34px rgba(0,0,0,0.5);
    overflow: hidden;
    transition: transform .2s;
}
.fp-card:hover .fp-card-sheet { transform: translateY(-3px); }
.fp-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    line-height: 1.2;
    color: #1A1A1A;
    text-align: center;
}
.fp-card-grid {
    display: grid;
    width: 70%;
    border: 1px solid #1A1A1A;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.32rem;
    line-height: 1.5;
    color: #3A3A3A;
    text-align: center;
}
.fp-card-lines {
    flex: 1;
    width: 80%;
    margin-top: 0.3rem;
    background: repeating-linear-gradient(#FFFFFF 0 9px, #E4E0D6 9px 10px);
}
.fp-card-name { font-family: 'Playfair Display', serif; font-size: 1.05rem; line-height: 1.25; }
.fp-card-who { font-size: 0.8rem; color: var(--ink-soft); margin-top: -0.3rem; }
