/*
Theme Name: Хлеб и Тандыр
Version: 1.0.0
Update URI: false
Text Domain: tandyr
*/
@font-face {
  font-family: Raleway; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("assets/fonts/raleway-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Raleway; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("assets/fonts/raleway-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Unbounded; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("assets/fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Unbounded; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("assets/fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}
:root {
  color-scheme: light;
  --ink: #32251F;
  --muted: #605C59;
  --paper: #FFFDF8;
  --cream: #FAF2DD;
  --fire: #F14C2E;
  --action: #C9361B;
  --action-hover: #AD2C14;
  /* Кнопки заявки: как «Узнать доступные локации» на tandyr.group (решение Анастасии 26.11.2026) */
  --lead: #EA4D2E;
  --lead-hover: #F14C2E;
  --lead-ink: #FFFFFF;
  --accent-ink: var(--action);
  --surface: #FFFCF5;
  --white: #FFFFFF;
  --sand: #F3DBBA;
  --line: #ECE4D8;
  --focus: #AD2C14;
  --font: Raleway, Arial, sans-serif;
  --display: Unbounded, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--font); }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent-ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
h1, h2, h3 { line-height: 1.08; margin: 0; overflow-wrap: break-word; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.04em; }
h2 { font-size: clamp(1.45rem, 3.5vw, 2.4rem); text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(100% - 4rem, 1180px); margin-inline: auto; }
.skip, .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { width: auto; height: auto; clip-path: none; padding: .8rem; inset: .5rem auto auto .5rem; z-index: 10; background: var(--paper); }
.site-header { position: sticky; z-index: 3; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.top { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { width: 172px; flex: none; }
.brand img, footer img { width: 100%; height: 72px; object-fit: contain; object-position: left center; }
.top nav, footer nav { display: flex; gap: clamp(.9rem, 2.7vw, 2rem); align-items: center; }
.top nav a { text-decoration: none; font-size: .9375rem; font-weight: 600; }
.top nav a[aria-current="page"] { color: var(--accent-ink); text-decoration: underline; }
.header-actions { order: 2; flex: none; display: flex; align-items: center; gap: .55rem; }
.site-header.article-reading [data-lead="header"] { visibility: hidden; }
.mobile-label, .menu-toggle { display: none; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; text-align: center;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 48px; padding: .66rem 22px; border: 1px solid var(--lead); border-radius: 999px;
  background: var(--lead); color: var(--lead-ink); text-decoration: none; text-transform: uppercase; font-size: .9375rem; font-weight: 600;
}
.button { transition: background-color .15s, transform .15s, box-shadow .15s; }
.button:hover { background: var(--lead-hover); border-color: var(--lead-hover); color: var(--lead-ink); transform: translateY(-1px); box-shadow: 0 6px 16px rgb(234 77 46 / 30%); }
.button::after {
  content: ""; position: absolute; z-index: -1; inset: -10% auto -10% -40%; width: 35%;
  pointer-events: none; background: linear-gradient(100deg, transparent, rgb(255 255 255 / 8%) 52%, transparent);
  animation: button-shine 4.8s ease-in-out var(--shine-delay, 0s) infinite; transform: translateX(-125%) skewX(-16deg);
}
.quiz-action, [data-open-quiz], [data-lead="quiz_result"] { --shine-delay: 2.4s; }
.button[data-lead="home_end"] { --shine-delay: 3.6s; }
/* Во всплывающих окнах (заявка, квиз) кнопка с заметным бегущим бликом */
dialog .button::after {
  width: 45%; background: linear-gradient(100deg, transparent, rgb(255 255 255 / 60%) 50%, transparent);
  animation: button-shine-popup 2.6s ease-in-out .3s infinite;
}
@keyframes button-shine-popup {
  0%, 35% { transform: translateX(-125%) skewX(-16deg); }
  75%, 100% { transform: translateX(330%) skewX(-16deg); }
}
@keyframes button-shine {
  0%, 57% { transform: translateX(-125%) skewX(-16deg); }
  79%, 100% { transform: translateX(460%) skewX(-16deg); }
}
.menu-toggle {
  align-items: center; justify-content: center; place-self: center; flex: none;
  width: 46px; height: 46px; padding: 0; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
}
.menu-icon { position: relative; display: block; width: 22px; height: 18px; }
.menu-icon span {
  position: absolute; display: block; top: 50%; width: 100%; height: 2px; border-radius: 2px;
  background: currentColor; transform-origin: center; transition: transform .2s ease, opacity .15s ease;
}
.menu-icon span:first-child { transform: translateY(-7px); }
.menu-icon span:last-child { transform: translateY(7px); }
.menu-toggle[aria-expanded="true"] .menu-icon span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon span:last-child { transform: rotate(-45deg); }
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.hero-layout {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center; gap: clamp(1.3rem, 4vw, 3.5rem);
  padding-block: clamp(1.65rem, 4.5vh, 3rem);
}
.hero-copy { min-width: 0; container-type: inline-size; }
.hero h1 {
  font-size: clamp(1.75rem, 12.2cqi, 2.75rem); letter-spacing: -.06em;
  line-height: 1.1; margin: 0 0 1rem;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 .hero-kicker {
  display: inline-block; margin-bottom: .75rem; padding: .32rem .7rem;
  border: 1px solid var(--sand); border-radius: 999px; background: var(--cream);
  color: var(--action); font: 700 .82rem/1.3 var(--font); letter-spacing: .01em; white-space: normal;
}
.hero h1 .hero-term { white-space: normal; text-wrap: balance; }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 26rem; }
.hero-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.hero-image {
  min-width: 0; padding: .4rem;
  border: 1px solid var(--sand); border-radius: 17px; background: var(--paper);
  box-shadow: 0 10px 25px rgb(50 37 31 / 9%);
}
.hero-image img { aspect-ratio: 1.26; object-fit: cover; object-position: center; border-radius: 11px; }
.quiz { padding-top: clamp(.85rem, 2.5vh, 1.75rem); }
.quiz-invite {
  display: grid; grid-template-columns: 1.5fr 1fr; overflow: hidden;
  background: var(--cream); border: 1px solid var(--sand); border-radius: 22px;
}
.quiz-invite > div { padding: clamp(1.35rem, 4vw, 2.6rem); }
.quiz-invite h2 { text-wrap: pretty; }
.quiz-invite p { margin: .55rem 0 1rem; color: var(--muted); }
.quiz-invite > img { min-height: 100%; height: 0; object-fit: cover; }
.quiz-dialog {
  width: min(calc(100% - 2rem), 66rem); max-width: none; max-height: calc(100dvh - 2rem);
  overscroll-behavior: contain; padding: 0; border: 0; border-radius: 24px;
  box-shadow: 0 18px 75px rgb(40 24 13 / 30%);
}
.quiz-dialog::backdrop { background: rgb(50 37 31 / 66%); }
.quiz-dialog .quiz-head {
  position: sticky; z-index: 1; top: 0; align-items: center;
  padding: .85rem clamp(1rem, 4vw, 2.4rem); background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.quiz-dialog .quiz-head h2 { font-size: clamp(1rem, 2.45vw, 1.45rem); text-wrap: pretty; }
.quiz-head .close { flex: none; width: 44px; height: 44px; border-radius: 50%; }
.quiz-head .close:hover { background: var(--cream); }
.quiz-main { padding: clamp(1rem, 4vw, 2.4rem); }
.quiz-dialog form { display: block; margin: 0; }
.quiz-progress {
  display: flex; align-items: center; gap: 1rem; margin-bottom: clamp(.9rem, 2.4vw, 1.6rem);
  color: var(--accent-ink); font-size: .9rem; font-weight: 700;
}
.progress-track { flex: 1; height: 6px; border-radius: 100px; background: var(--cream); overflow: hidden; }
.progress-track span { display: block; width: var(--progress, 33.33%); height: 100%; border-radius: 100px; background: var(--fire); }
.quiz-dialog fieldset { margin: 0; min-width: 0; padding: 0; border: 0; }
.quiz-dialog legend, .quiz-result h3 {
  display: block; padding: 0; margin: 0 0 1rem; font: 600 clamp(1.12rem, 2.8vw, 1.7rem)/1.3 var(--display);
}
.quiz-city-layout, .quiz-result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 1.8rem); align-items: center; }
.quiz-city-layout img, .quiz-result-photo { aspect-ratio: 1.65; object-fit: cover; border-radius: 14px; }
.quiz-city-layout label { display: block; margin-bottom: .35rem; font-weight: 700; }
.quiz-dialog #quiz-city { min-height: 52px; border-radius: 8px; padding-inline: .85rem; }
.quiz-dialog .quiz-hint { font-size: .93rem; margin-bottom: 0; }
.quiz-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
[data-quiz-step="2"] .quiz-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quiz-option {
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 14px;
  background: var(--white); cursor: pointer;
}
.quiz-option:hover { border-color: var(--action); }
.quiz-option:has(input:checked) { background: var(--cream); box-shadow: inset 0 0 0 2px var(--action); border-color: var(--action); }
.quiz-option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.quiz-option img { aspect-ratio: 1.55; object-fit: cover; }
.quiz-option span {
  display: flex; gap: .55rem; align-items: flex-start; flex: 1; padding: .75rem;
  font-size: .96rem; font-weight: 700; line-height: 1.28; overflow-wrap: anywhere;
}
.quiz-option input[type="radio"] { flex: none; width: 1.05rem; height: 1.05rem; padding: 0; margin: .12rem 0 0; accent-color: var(--accent-ink); }
.quiz-dialog .quiz-error { color: var(--accent-ink); font-weight: 700; }
.quiz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; margin-top: 1.15rem; }
.quiz-result-actions { grid-column: 1 / -1; justify-content: center; margin-top: 0; }
#quiz-form .quiz-actions { justify-content: space-between; }
.quiz-action { margin-left: auto; min-width: min(100%, 9rem); }
.quiz-back {
  padding: .5rem .25rem; min-height: 44px; background: transparent; border: 0;
  color: var(--accent-ink); font-weight: 700; text-transform: uppercase; text-decoration: underline;
  text-underline-offset: .2em;
}
.quiz-summary { margin: 0 0 .85rem; padding: .35rem 1rem; border-radius: 14px; background: var(--cream); }
.quiz-summary > div { display: grid; grid-template-columns: minmax(0, 6.9rem) minmax(0, 1fr); gap: .5rem; align-items: baseline; padding: .55rem 0; }
.quiz-summary > div + div { border-top: 1px solid var(--line); }
.quiz-summary dt { color: var(--muted); font-size: .89rem; font-weight: 600; }
.quiz-summary dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .quiz-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); border-radius: 16px; }
  .quiz-city-layout, .quiz-result { grid-template-columns: 1fr; }
  .quiz-city-layout img { aspect-ratio: 2.15; }
  .quiz-result-photo { aspect-ratio: 2.6; }
  .quiz-options, [data-quiz-step="2"] .quiz-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .quiz-option span { padding: .6rem .47rem; gap: .32rem; font-size: .88rem; }
  .quiz-summary > div { grid-template-columns: minmax(0, 5.1rem) minmax(0, 1fr); }
}
.journal { padding-block: 3.1rem 3.6rem; }
.section-title { margin-bottom: 1.25rem; }
.topic-toggle { display: none; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.55rem; }
.chip { border: 1px solid var(--line); border-radius: 100px; min-height: 43px; padding: .45rem 1rem; background: transparent; color: var(--ink); font-size: .9rem; font-weight: 700; text-transform: uppercase; }
.chip:hover, .chip[aria-pressed="true"] { background: var(--cream); border-color: var(--action); color: var(--action); }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.story { min-width: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface); }
.story-photo { display: block; background: var(--cream); overflow: hidden; }
.story-photo img { aspect-ratio: 1.66; object-fit: cover; transition: scale .2s ease; }
.story:hover img { scale: 1.035; }
.story-text { padding: 1rem 1.13rem 1.28rem; }
.story h3 { margin: .4rem 0 .6rem; font: 600 clamp(1.125rem, 1.65vw, 1.375rem)/1.25 var(--display); }
.story h3 a { text-decoration: none; }
.story h3 a:hover { text-decoration: underline; }
.story p, .empty { color: var(--muted); }
.closing { margin-bottom: 3.5rem; }
.ready { padding-block: 3.5rem; }
.ready-intro { max-width: 700px; }
.ready-intro h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); text-wrap: balance; }
.ready-intro p { color: var(--muted); margin-top: .65rem; }
.location-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); margin: 1.5rem 0 2.2rem; }
.location { border: 1px solid var(--line); border-radius: 22px; padding: 1.1rem; background: var(--surface); display: flex; flex-direction: column; align-items: start; }
.location h2 { font-size: 1.2rem; }
.location p { margin: .45rem 0 1rem; color: var(--muted); }
.location .button { margin-top: auto; min-height: 48px; font-size: .875rem; }
.location .button::after { content: none; animation: none; }
.callout { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; padding: clamp(1.25rem, 4vw, 2.25rem); background: var(--ink); color: var(--white); border-radius: 22px; }
.callout h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
.callout p { margin-top: .55rem; color: var(--cream); }
.callout .button { flex: none; }
footer { border-top: 1px solid var(--line); background: var(--cream); }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-block: 2rem 2.3rem; font-size: .9rem; }
.footer img { width: 155px; height: 65px; margin-bottom: .5rem; }
.footer p { color: var(--muted); }
.footer-legal { margin-top: .6rem; font-size: .8rem; line-height: 1.5; }
.footer-legal a { color: inherit; }
a.tag { text-decoration: none; }
a.tag:hover { text-decoration: underline; }
.breadcrumb { display: flex; gap: .6rem; padding-block: 1.25rem 1.75rem; color: var(--muted); font-size: .89rem; }
.article {
  --article-gap: clamp(1rem, 2vw, 1.65rem);
  --article-rail: 9.75rem;
  --article-column: min(44rem, calc(100% - 2 * var(--article-rail) - 2 * var(--article-gap)));
}
.article-head { width: var(--article-column); margin-inline: auto; text-align: left; }
.article-head h1 { font-size: clamp(1.75rem, 4.6vw, 2.75rem); line-height: 1.13; margin: .5rem 0 .85rem; text-wrap: balance; }
.intro { max-width: 41rem; text-wrap: pretty; font-size: clamp(1.08rem, 2.3vw, 1.25rem); color: var(--muted); }
.article-cover { width: var(--article-column); margin: 1.45rem auto 2rem; aspect-ratio: 2.1; object-fit: cover; border-radius: 14px; }
.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--article-column) minmax(0, 1fr);
  gap: var(--article-gap); align-items: start;
}
.reading { grid-column: 2; min-width: 0; font-size: 17px; line-height: 1.65; }
.toc {
  position: sticky; top: 104px; max-height: calc(100dvh - 120px); overflow-y: auto;
  padding: 1.15rem 1.25rem; background: var(--cream);
  border: 1px solid var(--line); border-radius: 10px; font-size: .96rem;
}
.toc ol { margin: .5rem 0 0; padding-left: 1.3rem; }
.toc li + li { margin-top: .55rem; }
.toc a { display: block; line-height: 1.4; color: var(--action); text-decoration-color: currentColor; }
.reading section { scroll-margin-top: .55rem; margin-bottom: 1.6rem; }
.toc-mobile { display: none; }
@media (max-width: 820px) {
  .article { --article-column: min(100%, 44rem); }
  .article-layout { display: block; }
  .reading { width: var(--article-column); margin-inline: auto; }
  .toc-desktop { display: none; }
  .toc-mobile {
    display: block; position: sticky; top: 74px; z-index: 2;
    margin-bottom: 1.25rem; background: var(--paper);
    border: 1px solid var(--line); border-radius: 9px;
  }
  .toc-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    width: 100%; min-height: 44px; padding: .45rem .8rem; text-align: left;
    color: var(--ink); background: transparent; border: 0; font-size: .92rem; font-weight: 700;
  }
  .toc-toggle::after {
    content: ""; width: .38rem; height: .38rem; flex: none; margin-right: .15rem;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
  }
  .toc-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
  .toc-mobile ol {
    margin: 0; padding: .5rem 1rem .7rem 2rem; border-top: 1px solid var(--line);
    max-height: min(44dvh, 20rem); overflow-y: auto; overscroll-behavior-y: contain;
  }
  .toc-mobile li + li { margin-top: .3rem; }
  .toc-mobile a { display: block; padding-block: .24rem; line-height: 1.4; }
  .article .breadcrumb { padding-block: .8rem 1rem; }
  .reading section { scroll-margin-top: 50px; }
}
@media (max-width: 600px) {
  .toc-mobile { top: 73px; }
}
.reading section > p + p { margin-top: .85rem; }
.reading h2 { font-size: clamp(1.42rem, 3.5vw, 2.2rem); margin-bottom: .65rem; }
.inline-cta { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin: 2rem 0; padding: 1rem; border: 1px solid var(--line); border-left: 4px solid var(--fire); border-radius: 14px; background: var(--cream); }
.article-checklist { background: var(--cream); border-radius: 8px; margin: 1.3rem 0 0; padding: 1rem 1.25rem 1rem 2.4rem; }
.article-checklist li + li { margin-top: .4rem; }
.article-end { margin-bottom: 3rem; }
.floating-cta { position: fixed; z-index: 2; inset-inline: 0; bottom: 1rem; display: flex; justify-content: center; pointer-events: none; }
.floating-cta .button { box-shadow: 0 5px 18px rgb(43 23 12 / 24%); pointer-events: auto; }
body:has(.floating-cta) footer { padding-bottom: 70px; }
dialog { width: min(100% - 2rem, 30rem); max-height: 92dvh; border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgb(50 37 31 / 55%); }
.dialog-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.dialog-head h2 { min-width: 0; font-size: clamp(1.4rem, 4vw, 1.8rem); }
.close { flex: none; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); border-radius: 5px; width: 44px; height: 44px; color: var(--accent-ink); font-size: 1.5rem; line-height: 1; }
dialog p { margin: .5rem 0; color: var(--muted); }
dialog form { display: grid; gap: .6rem; margin-block: .95rem; }
dialog input:not([type="checkbox"]), dialog select { min-width: 0; width: 100%; padding: .65rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
#lead-place { color: var(--accent-ink); font-weight: 700; }
@media (max-width: 960px) {
  html { scroll-padding-top: 80px; }
  .wrap { width: min(100% - 2rem, 1180px); }
  .top { min-height: 65px; gap: .55rem; }
  .brand { width: 132px; }
  .brand img { height: 60px; }
  .menu-toggle { display: flex; }
  .top nav {
    display: none; position: absolute; inset: 100% 0 auto; align-items: stretch;
    gap: .25rem; padding: .5rem max(1rem, calc((100% - 1180px) / 2)) 1rem;
    max-height: calc(100dvh - 65px); overflow: auto; overscroll-behavior-y: contain;
    background: var(--paper); border-block: 1px solid var(--line);
    box-shadow: 0 14px 22px rgb(51 28 13 / 12%);
  }
  .site-header.menu-open .top nav { display: grid; }
  .top nav a { display: flex; align-items: center; min-height: 48px; padding: .65rem .85rem; border-radius: 6px; }
  .top nav a:hover, .top nav a:focus-visible { background: var(--cream); }
  .top .button { min-height: 49px; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { flex-wrap: wrap; gap: 1rem; }
  .floating-cta { inset-inline: 0; bottom: 0; padding: .55rem 1rem calc(.55rem + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
  .floating-cta .button { width: min(100%, 25rem); box-shadow: none; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 75px; }
  .top { min-height: 64px; }
  .brand { width: 120px; }
  .brand img { height: 56px; }
  .top .button { padding-inline: .95rem; white-space: nowrap; }
  .opening { display: flex; flex-direction: column; min-height: calc(100svh - 65px); }
  .hero { flex: 1; display: flex; }
  .hero-layout {
    grid-template-columns: 1fr; align-content: center; gap: .9rem;
    padding-block: clamp(.9rem, 2.5vh, 1.4rem);
  }
  .hero h1 { font-size: clamp(1.75rem, 10.3cqi, 2.75rem); margin-bottom: .55rem; }
  .hero h1 .hero-kicker { margin-bottom: .5rem; padding: .25rem .6rem; font-size: .74rem; }
  .hero p { font-size: .96rem; line-height: 1.4; }
  .hero-photos { gap: .45rem; }
  .hero-image { padding: .25rem; border-radius: 12px; }
  .hero-image img { aspect-ratio: 1.18; border-radius: 7px; }
  .opening > .quiz { padding-bottom: clamp(.9rem, 3vh, 1.5rem); }
  .journal { padding-block: 2rem; }
  .topic-toggle {
    display: inline-flex; align-items: center; gap: .75rem; min-height: 44px;
    margin-bottom: .85rem; padding: .4rem .8rem; border: 1px solid var(--line);
    border-radius: 8px; background: var(--paper); color: var(--ink); font-weight: 700;
  }
  .topic-toggle::after {
    content: ""; width: .42rem; height: .42rem; flex: none;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-1px, -1px);
  }
  .topic-toggle[aria-expanded="true"]::after { transform: rotate(225deg); }
  .topic-toggle[aria-expanded="false"] + .chips { display: none; }
  .quiz-invite { grid-template-columns: minmax(0, 1fr) minmax(0, .49fr); border-radius: 20px; }
  .quiz-invite > div { padding: .7rem .8rem; }
  .quiz-invite h2 { font-size: clamp(1rem, 4vw, 1.35rem); line-height: 1.23; }
  .quiz-invite p { font-size: .83rem; margin: .35rem 0 .55rem; }
  .quiz-invite .button { min-height: 48px; font-size: .81rem; padding: .45rem 22px; }
  .story-grid { grid-template-columns: 1fr; gap: .85rem; }
  .closing { margin-bottom: 2rem; }
  .callout, .inline-cta { align-items: start; flex-direction: column; }
  footer nav { flex-wrap: wrap; }
  .ready { padding-block: 2rem; }
  .article-cover { aspect-ratio: 1.75; margin-bottom: 1.35rem; }
}
@media (max-width: 600px) and (max-height: 660px) {
  .hero-layout { gap: .65rem; padding-block: .75rem; }
  .hero-image img { aspect-ratio: 1.32; }
  .quiz-invite { grid-template-columns: minmax(0, 1fr) minmax(0, .36fr); }
}
@media (max-width: 470px) {
  .desktop-label { display: none; }
  .mobile-label { display: inline; }
}
@media (max-width: 355px) {
  .brand { width: 108px; }
  .brand img { height: 54px; }
  .top .button { padding-inline: .7rem; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .button::after { animation: none; }
  *, *::before, *::after { transition: none !important; }
}

.article-author { display: flex; align-items: center; gap: .65rem; margin: .9rem 0 .35rem; color: var(--muted); }
.article-author img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.article-head time { font-size: .875rem; color: var(--muted); }
.reading > p + p { margin-top: .85rem; }
.reading :is(h2, h3) { margin-top: 1.4rem; overflow-wrap: anywhere; }
.reading :is(h2, [id]) { scroll-margin-top: .55rem; }
.reading figure { margin: 1.35rem 0; }
.reading figure img { height: auto; border-radius: 14px; }
.reading table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.reading :is(td, th) { padding: .5rem; border: 1px solid var(--line); }
.reading ul, .reading ol { padding-left: 1.5rem; }
.reading > .article-end { margin-top: 1.75rem; }
@media (max-width: 820px) { .reading :is(h2, [id]) { scroll-margin-top: 50px; } }

#lead-form button:disabled { opacity: .6; cursor: default; }
#lead-form button:disabled::after { content: none; }

.lead-consent { display: flex; align-items: flex-start; gap: .55rem; font-size: .9rem; line-height: 1.4; }
.lead-consent input { margin-top: .2rem; accent-color: var(--action); }
.lead-consent a { color: var(--action); }

/* Enable the compact range and table layouts in the cost guide. */
.reading .tc-article { container-type: inline-size; }
