/* Public and discovery pages in the 2026 redesign (docs/design/redesign-2026): the front page, Discover, the recipe page,
   sites, sign-in, learn, authors, hosted pages and the free tools. Loads after pinboard.css (stylesheets sort by name), so
   it overrides at equal specificity. Tokens only; the dark theme comes from the :root swap in application.css. */

/* Header nav: wrap on phones instead of clipping the last links. */
@media (max-width: 600px) { .site-nav { flex-wrap: wrap; } .site-nav__link { padding: 0 12px; } .front-shot__panel { width: 46%; padding: 10px; } }

/* --- Front page (Main.dc.html) ------------------------------------------------------------------------------ */
.front { gap: clamp(48px, 7vw, 96px); }
.front-hero { gap: clamp(28px, 4cqi, 56px); }
.front-hero__copy { position: relative; }
.front-draw { position: absolute; pointer-events: none; height: auto; }
.front-draw--basil { top: -34px; right: 2%; width: clamp(64px, 8cqi, 110px); transform: rotate(18deg); }
.front-hero__title { font-size: clamp(48px, 6.4cqi, 96px); line-height: .98; letter-spacing: -.03em; }
.front-hero__title em { color: var(--ink); background: linear-gradient(var(--honey), var(--honey)) 0 92% / 100% .16em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.front-hero__lede { font-size: clamp(17px, 1.5cqi, 20px); color: var(--ink-soft); }
.front-doors .button--pill { min-height: 56px; padding: 0 26px; }
.front-doors .button--ghost { background: var(--card); border: 1px solid var(--rule-strong); color: var(--ink); }
.front-doors .button--ghost:hover { background: var(--linen); }
.front-doors__ring { display: none; }


.front-art { flex: 1 1 480px; min-width: 0; position: relative; }
.front-collage { display: grid; gap: 14px; height: clamp(360px, 44cqi, 600px); overflow: hidden; border-radius: 28px; }
.front-collage--c1 { grid-template-columns: minmax(0, 1fr); }
.front-collage--c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.front-collage--c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.front-collage__col { display: flex; flex-direction: column; gap: 14px; }
.front-collage__col--1 { margin-top: -60px; }
.front-collage__col--2 { margin-top: 28px; }
.front-collage__photo { width: 100%; height: auto; display: block; border-radius: 20px; object-fit: cover; }
.front-collage__photo { aspect-ratio: 4 / 5; }
/* One pick fills the whole panel instead of sitting in it as a small photo. */
.front-collage--c1 .front-collage__col { height: 100%; }
.front-collage--c1 .front-collage__photo { flex: 1 1 0; min-height: 0; height: 100%; aspect-ratio: auto; object-fit: cover; }
.front-art__panel { display: grid; place-items: center; height: clamp(320px, 40cqi, 540px); border-radius: 28px; background: var(--honey-bg); }
.front-art__tomato { width: min(60%, 280px); height: auto; }
.front-art__draw { position: absolute; height: auto; pointer-events: none; }
.front-art__draw--lemon { left: -22px; bottom: 56px; width: clamp(70px, 9cqi, 120px); transform: rotate(-12deg); }
.front-art__draw--garlic { right: -10px; bottom: -26px; width: clamp(56px, 7cqi, 96px); transform: rotate(10deg); }
.front-art__draw--herbs { right: 6%; top: -30px; width: clamp(72px, 9cqi, 120px); transform: rotate(-8deg); }
@media (max-width: 600px) { .front-collage, .front-art__panel { height: 300px; gap: 10px; border-radius: 22px; } .front-collage__col { gap: 10px; } .front-collage__col--1 { margin-top: -30px; } .front-art__draw--lemon { left: -6px; } .front-art__draw--garlic { right: -4px; } }

/* FAQ: native details, no script */
.front-faq__list { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.front-faq__item { background: var(--card); border: 1px solid var(--rule); border-radius: 22px; padding: 0 22px; }
.front-faq__item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; font-weight: 700; font-size: 18px; }
.front-faq__item summary::-webkit-details-marker { display: none; }
.front-faq__item summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--linen); display: grid; place-items: center; font-size: 20px; font-weight: 600; }
.front-faq__item[open] summary::after { content: "\2212"; background: var(--honey); color: #23201B; }
.front-faq__item summary:focus-visible { outline: 2px solid var(--persimmon); outline-offset: 2px; border-radius: 12px; }
.front-faq__item p { padding: 0 0 20px; color: var(--ink-soft); max-width: 46em; }

/* Discover: the pill search (Discover.dc.html) */
.discover-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 12px; }
.discover-search__field { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 8px 0 22px; border-radius: 999px; background: var(--card); border: 2px solid var(--ink); }
.discover-search__field:focus-within { outline: 2px solid var(--persimmon); outline-offset: 2px; }
.discover-search__field input { flex: 1; min-width: 0; width: 100%; font-size: 17px; border: 0; background: transparent; color: var(--ink); font: 600 19px/1 var(--font-sans); outline: none; height: 100%; }
.discover-search { flex-wrap: nowrap; }
.discover-search .button { height: 60px; padding: 0 24px; font-size: 17px; flex: none; }

/* where it works: the phones-and-extension strip */
.front-card { border-radius: 28px; border-color: var(--rule); }
.front-platform { border-radius: 22px; background: var(--card); }
.front-platform__icon { border-radius: 999px; }
.front-platform--soon { border-style: solid; background: var(--card); }
.front-platform--soon .front-platform__icon { background: var(--linen); border: 0; }
.front-tag { background: var(--sage-bg); color: var(--sage-ink); }
.front-tag--soon { background: var(--linen); border: 0; color: var(--ink-soft); }
.front-notify { border-top-color: var(--rule); }

/* how it works: steps on the left, the panel mock on the right, in a white band */
.front-section:has(> .front-split) { background: var(--card); border: 1px solid var(--rule); border-radius: 32px; padding: clamp(24px, 5cqi, 64px); }
.front-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-areas: "lead shot" "steps shot"; gap: 20px clamp(32px, 5cqi, 64px); align-items: start; }
.front-split__lead { grid-area: lead; }
.front-steps { grid-area: steps; gap: 22px; }
.front-split > .front-shot { grid-area: shot; align-self: center; box-shadow: 0 30px 60px rgba(35, 32, 27, .14); }
.front-step { padding: 0; background: none; border: 0; border-radius: 0; gap: 18px; }
.front-step__n { width: 44px; height: 44px; background: var(--honey); color: #23201B; font-size: 22px; font-weight: 800; }
.front-step__title { font: 700 19px/1.3 var(--font-sans); }
@media (max-width: 860px) { .front-split { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lead" "steps" "shot"; } }
.front-shot { border-radius: 22px; background: var(--paper); }
.front-shot__bar { background: var(--linen); }
.front-shot__page { background: var(--card); }
.front-shot__panel { border-left-color: var(--rule-strong); }
.front-shot__timer { background: var(--persimmon); color: var(--on-persimmon); }
.front-shot__next { background: var(--ink); color: var(--on-ink); }
.front-shot__line--now { background: var(--honey-bg); outline-color: var(--honey); }

/* beyond cooking: four tinted tiles */
.front-features { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.front-feature { border: 0; border-radius: 28px; padding: 28px; min-height: 200px; }
.front-feature:nth-child(4n+1) { background: var(--card); border: 1px solid var(--rule); }
.front-feature:nth-child(4n+2) { background: var(--honey-bg); }
.front-feature:nth-child(4n+3) { background: var(--sage-bg); }
.front-feature:nth-child(4n+4) { background: var(--persimmon-soft); }
.front-feature .muted { color: var(--ink-soft); }
.front-feature__title { font: 800 22px/1.2 var(--font-sans); }

/* the author promise on basil */
.front-promise { background: #4B7A3F; border-color: #4B7A3F; color: #FAF6EE; border-radius: 32px; }
.front-promise__eyebrow { color: #FAF6EE; opacity: .85; }
.front-promise__lede { color: #FAF6EE; }
.front-promise__link { display: inline-block; padding: 14px 22px; border-radius: 999px; background: #FAF6EE; color: #23201B; font-weight: 700; text-decoration: none; }
.front-promise__link:hover { background: #fff; color: #23201B; }
.front-promise em { color: #FAF6EE; text-decoration: underline; text-decoration-color: var(--honey); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.front-promise__stat { border-left-color: rgba(250, 246, 238, .35); color: #FAF6EE; }
.front-promise__number { color: #FAF6EE; }
.front-promise__note { color: #FAF6EE; opacity: .85; }
@media (prefers-color-scheme: dark) { .front-promise { background: #2F5227; border-color: #2F5227; } }

/* tonight picks: the wall of photos */
.front-picks { display: block; columns: 5 170px; column-gap: 18px; }
.front-pick { break-inside: avoid; margin-bottom: 22px; gap: 4px; }
.front-pick__photo { aspect-ratio: auto; width: 100%; border-radius: 18px; margin-bottom: 4px; }
.front-pick .card__title { font: 600 15px/1.3 var(--font-sans); }
.front-pick__go { font-weight: 700; font-size: 14px; }

/* plans */
.front-plan { border-radius: 28px; padding: 32px; }
.front-plan__price { font-size: 40px; }
.front-plan--pro { background: var(--iron); border-color: var(--iron-edge); color: var(--on-iron); }
.front-plan--pro .muted, .front-plan--pro .front-h3 { color: var(--on-iron); }
.front-plan--pro .front-plan__price { color: var(--honey); }
.front-plan--pro a { color: var(--iron-link); }

.front-final { background: var(--honey); border-radius: 36px; padding: clamp(32px, 5cqi, 64px); color: #23201B; }
.front-final .front-h2, .front-final .front-h2 em { color: #23201B; }
.front-final .button--ghost { background: #FAF6EE; color: #23201B; border: 0; }
.front-final .button:not(.button--ghost) { background: #B33E1F; }

/* --- Discover (Discover.dc.html) -------------------------------------------------------------------------- */
.intro .display { font-size: clamp(40px, 5vw, 68px); line-height: 1; letter-spacing: -.03em; }
.intro .lede { font-size: 18px; color: var(--ink-soft); max-width: 44em; }
.hero { border-radius: 28px; }
.hero:not(.hero--paper) .hero__title { font-size: clamp(36px, 4.4vw, 60px); letter-spacing: -.03em; }
.hero .button--paper { background: var(--on-iron); color: #23201B; }
.section__title { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; }
.tiles:not(.tiles--boards) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr)); gap: 20px; }
.tiles:not(.tiles--boards) .tile__title { font: 800 22px/1.1 var(--font-display); letter-spacing: -.02em; }
.chip { padding-inline: 16px; min-height: 40px; }
.spotlight { border-radius: 28px; background: var(--card); border: 1px solid var(--rule); }
.empty { border-radius: 28px; background: var(--card); border: 1px solid var(--rule); }

/* --- Recipe page (Recipe.dc.html) ------------------------------------------------------------------------- */
.rp-head__media img { border-radius: 28px; }
.rp-head .recipe__title { font-size: clamp(40px, 4.6vw, 64px); line-height: 1; letter-spacing: -.03em; }
.rp-head .rp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; padding: 0; border: 0; }
.rp-head .rp-facts > div { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 12px 16px; }
.rp-head .rp-facts dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rp-head .rp-facts dd { font: 600 19px/1.25 var(--font-display); overflow-wrap: anywhere; }
.rp-head .rp-facts { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
/* Tiles grow to fit their text (a site name never breaks mid-word) and wrap onto a second row when they run out of room. */
.rp-head .rp-facts { display: flex; flex-wrap: wrap; }
.rp-head .rp-facts > div { flex: 1 1 128px; min-width: min-content; }
.rp-head .rp-facts dd { overflow-wrap: break-word; }
.rp-head .rp-cook { flex-direction: column; align-items: stretch; }
.rp-head .rp-cook__button { min-height: 60px; font-size: 19px; padding: 0 28px; }
.rp-head .rp-cook__line { text-align: center; }
.rp-head--band { border-radius: 28px; }
.rp-pitch { background: var(--card); border: 1px solid var(--rule); border-radius: 24px; padding: 24px; }
.rp-pitch__preview { border-radius: 18px; }
.rp-pitch__cta { min-height: 52px; padding: 0 24px; }
.rp-group__title { font: 800 22px/1.2 var(--font-sans); letter-spacing: -.01em; }
.rp-more .card { border-radius: 22px; }

/* --- Site pages (Site.dc.html) ---------------------------------------------------------------------------- */
.site-hero { gap: 20px; }
.site-hero__name { font-size: clamp(36px, 4.4vw, 60px); line-height: 1; letter-spacing: -.03em; }
.site-hero .site-avatar, .site-hero .site-photo { border: 4px solid var(--card); box-shadow: 0 0 0 1px var(--rule); }
.site-actions .button { min-height: 52px; padding-inline: 22px; }
.site-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--linen); border: 0; width: max-content; max-width: 100%; }
.site-tab { padding: 10px 18px; border: 0; border-radius: 999px; color: var(--ink); font-weight: 600; }
.site-tab[aria-current="page"] { background: var(--ink); color: var(--on-ink); border: 0; }
.site-tab:hover { color: var(--ink); background: var(--rule-strong); }
.site-tab[aria-current="page"]:hover { color: var(--on-ink); background: var(--ink); }
.site-box { border-radius: 24px; background: var(--card); }
.site-box--linen { background: var(--linen); }
.site-swap, .site-optout { border-radius: 24px; }
.site-recipe__photo { border-radius: 18px; }
.site-featured { padding: 20px; border-radius: 28px; background: var(--card); border: 1px solid var(--rule); }
.verified-mark { color: var(--sage-ink); }

/* --- Learn (Learn.dc.html) -------------------------------------------------------------------------------- */
.learn-hero__art { border-radius: 28px; }
.learn-path, .learn-item__link { border-radius: 24px; }
.learn-path h3, .learn-item__title { font-family: var(--font-sans); font-weight: 700; letter-spacing: -.01em; }
.learn-path ol li::marker { color: var(--tomato-text); font-weight: 700; }
.practice__band { border-radius: 999px; padding: 10px 18px; }
.practice__app { border-radius: 28px; }

/* --- Authors, hosted pages, tools ------------------------------------------------------------------------- */
.hosted-card, .hosted-gate { border-radius: 28px; }
.tool__form, .tool__result { min-width: 0; }
.track { background: var(--linen); }
.upload-form .input, .tool-form .input { border-radius: 14px; }

/* --- Sign in (SignIn.dc.html) ----------------------------------------------------------------------------- */
.auth--card { background: var(--card); border: 1px solid var(--rule); border-radius: 28px; padding: 32px; max-width: 520px; gap: 14px; }
.auth--card .eyebrow { color: var(--tomato-text); letter-spacing: .08em; font-weight: 700; margin: 0; }
.auth__title { font-size: clamp(44px, 5vw, 64px); line-height: 1; letter-spacing: -.03em; }
.auth .input { height: 54px; border-radius: 999px; border: 2px solid var(--ink); background: var(--card); padding: 0 22px; font-size: 17px; }
.auth--card .button--big { height: 56px; min-height: 56px; font-size: 17px; }
.auth--card label { font-weight: 600; font-size: 14px; }
.auth__back { color: var(--ink-soft); font-weight: 600; }


/* --- Recipe page: "Cook it with StoveTab" pitch (desktop card, phone "What's this?") ------------------------- */
.rp-pitch { gap: clamp(20px, 3.4vw, 40px); padding: clamp(20px, 3vw, 32px); border-radius: 28px; background: var(--card); border: 1px solid var(--rule); position: relative; }
.rp-pitch__preview { border-radius: 20px; border-color: var(--rule-strong); height: 220px; box-shadow: 0 18px 40px rgba(35, 32, 27, .12); }
.rp-pitch__page { background: var(--card); }
.rp-pitch__panel { background: var(--paper); }
.rp-pitch__eyebrow { color: var(--tomato-text); letter-spacing: .08em; }
.rp-pitch__title { font: 800 clamp(24px, 2.4vw, 32px)/1.1 var(--font-display); letter-spacing: -.02em; }
.rp-pitch__reasons svg { color: var(--sage); }
.rp-pitch__now { border-left-color: var(--honey); background: var(--honey-bg); }
.rp-pitch__timer { background: var(--persimmon); color: var(--on-persimmon); }
.rp-pitch__cta { min-height: 52px; padding: 0 26px; font-size: 16px; }
.rp-pitch__why { color: var(--tomato-text); font-weight: 700; }
.rp-pitch--phone { padding: 16px 18px; border-radius: 22px; background: var(--honey-bg); border-color: transparent; display: flex; }
.rp-pitch--phone .rp-pitch__line { color: var(--ink); font-weight: 600; }
.rp-pitch__more > summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--rule-strong); color: var(--ink); font-weight: 700; list-style: none; }
.rp-pitch__more > summary::-webkit-details-marker { display: none; }
.rp-pitch__more > summary::after { content: "+"; margin-left: 10px; font-size: 18px; }
.rp-pitch__more[open] > summary::after { content: "\2212"; }

/* --- Authors pages (/authors, claim, readers, page, button, choices, team) ---------------------------------- */
.author-title { font-size: clamp(34px, 4vw, 52px); line-height: 1.04; letter-spacing: -.03em; }
.author-card { border-radius: 28px; padding: clamp(20px, 2.6vw, 32px); }
.author-card__title { font: 800 24px/1.2 var(--font-display); letter-spacing: -.02em; }
.author-banner { border-radius: 22px; }
.kpi { border-radius: 24px; padding: 20px 22px; }
.kpi__value { font-size: 44px; letter-spacing: -.03em; }
.way { border-radius: 24px; background: var(--card); }
.way:has(input:checked) { border-color: var(--ink); background: var(--honey-bg); }
.author-preview__card { border-radius: 24px; }
.chart rect { fill: var(--persimmon); }
.reader-source__bar { background: var(--sage); }
.author-table td, .author-table th { border-bottom-color: var(--rule); }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .author-grid, .author-grid--page { grid-template-columns: minmax(0, 1fr); } .author-table td { white-space: normal; } }

/* --- Hosted pages: the cook's own header, article, sidebar and gate ----------------------------------------- */
.hosted-body { background: var(--paper); }
.hosted-mast { background: var(--paper); border-bottom: 1px solid var(--rule); }
.hosted-mast__name { font: 800 28px/1.1 var(--font-display); letter-spacing: -.02em; }
.hosted-avatar { background: var(--sage); color: var(--paper); }
.hosted-title { font-size: clamp(38px, 5vw, 64px); line-height: 1; letter-spacing: -.03em; }
.hosted-hero__img { border-radius: 28px; }
.hosted-source { border-radius: 22px; background: var(--card); }
.hosted-stats { border-color: var(--rule); }
.hosted-stats > div { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 12px 16px; }
.hosted-actions__main { min-height: 52px; }
.hosted-bar { background: var(--paper); border-bottom-color: var(--rule); }
.hosted-notes__title { font: 800 26px/1.2 var(--font-display); letter-spacing: -.02em; }
.hosted-chips li { background: var(--linen); font-weight: 600; }
@media (max-width: 700px) { .hosted-main { padding: 28px 16px 56px; gap: 32px; } .hosted-mast__row { padding: 14px 16px; } .hosted-stats { grid-template-columns: repeat(2, 1fr); } }

/* --- Free tools: scaler and nutrition calculator, and the switch pages ------------------------------------- */
.tool-top .display { font-size: clamp(36px, 4.4vw, 56px); letter-spacing: -.03em; }
.tool__form, .tool__result { background: var(--card); border: 1px solid var(--rule); border-radius: 28px; padding: clamp(18px, 2.4vw, 28px); }
.track__option:has(input:checked) { background: var(--ink); color: var(--on-ink); }
.tools-row__label { color: var(--muted); }
.roads { border-top: 0; gap: 14px; }
.roads li { background: var(--card); border: 1px solid var(--rule); border-radius: 28px; padding: 24px 28px; }
.roads h3 { font: 800 28px/1.1 var(--font-display); letter-spacing: -.02em; }
.roads p { font-size: 17px; line-height: 26px; }
.sections { display: flex; flex-direction: column; gap: clamp(32px, 5vw, 64px); }
.switches .button { min-height: 48px; padding-inline: 22px; }
.switch-row { border-radius: 18px; }
.how__step { background: var(--card); border: 1px solid var(--rule); border-radius: 24px; }
.how__n { background: var(--honey); color: #23201B; font-family: var(--font-display); font-weight: 800; }

/* --- Privacy and terms ---------------------------------------------------------------------------------------- */
.intro .eyebrow--basil { color: var(--sage-ink); font-weight: 700; letter-spacing: .08em; }
.legal { background: var(--card); border: 1px solid var(--rule); border-radius: 28px; padding: clamp(22px, 4vw, 44px); max-width: 780px; margin-top: 24px; }
.legal h2 { font: 800 24px/1.2 var(--font-display); letter-spacing: -.02em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal li + li { margin-top: 8px; }
