@charset "UTF-8";

/* Warm editorial surfaces and restrained green, informed by july.fund.
   Typography uses local fonts; reading and information actions stay immediate. */
:root {
  color-scheme: light;
  --page: #433e3c;
  --paper: #f0e7e4;
  --paper-light: #f8f2ef;
  --ink: #433e3c;
  --body: #4c4541;
  --muted: #6c5d55;
  --on-dark: #f0e7e4;
  --on-dark-muted: #d0c3bd;
  --line: #d6c9c2;
  --line-strong: #b9a8a0;
  --accent: #56d270;
  --accent-deep: #214f2a;
  --accent-soft: #dcead8;
  --gold: #80531b;
  --lavender: #c6bffa;
  --lavender-ink: #322b66;
  --sidebar-width: 224px;
  --radius: 22px;
  --focus: #56d270;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block: 26px 112px; }
body { margin: 0; min-width: 320px; background: var(--page); color: var(--on-dark); font-size: 16px; line-height: 1.8; }
button, input, select, textarea { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, select, summary { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .58; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1[tabindex="-1"]:focus, main[tabindex="-1"]:focus { outline: none; }
::selection { background: var(--accent); color: #15361b; }
.icon { display: inline-block; width: 24px; height: 24px; vertical-align: middle; stroke-width: 1.65; }
.editorial-art { display: block; width: 100%; max-width: 260px; height: auto; }
.muted { color: var(--muted); }
.eyebrow, .page-kicker, .hero-kicker {
  font-size: 10px; font-weight: 650; letter-spacing: .16em; line-height: 1.8;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; top: 12px; left: 16px; padding: 10px 18px; transform: translateY(-180%); border-radius: 8px; background: var(--accent); color: #15361b; }
.skip-link:focus { transform: none; }

/* App navigation stays separate from the editorial content panels. */
.app-shell { min-height: 100vh; min-height: 100svh; }
.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; display: flex; width: var(--sidebar-width); flex-direction: column; padding: 34px 18px 24px; overflow-y: auto; border-right: 1px solid #625956; background: var(--page); color: var(--on-dark); }
.brand { display: flex; min-height: 48px; align-items: center; gap: 11px; padding: 0 8px; margin-bottom: 34px; }
.brand-mark { display: grid; width: 36px; height: 36px; flex-shrink: 0; place-items: center; color: var(--accent); }
.brand-mark .icon { width: 33px; height: 33px; }
.brand-name { display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: .015em; line-height: 1.5; }
.brand-en { display: block; margin-top: 4px; color: #d0c3bd; font-size: 8px; letter-spacing: .14em; line-height: 1.5; }
.nav-group-label { margin: 26px 12px 9px; color: #c8bcb6; font-size: 9px; font-weight: 600; letter-spacing: .16em; }
.nav-link { display: flex; min-height: 47px; align-items: center; gap: 11px; padding: 11px 12px; margin: 3px 0; border-radius: 11px; color: #e0d5cf; font-size: 12px; font-weight: 500; transition: background .28s ease, color .28s ease; }
.nav-link .icon { width: 20px; height: 20px; }
.nav-link:hover { background: #5b5350; color: #fff7f0; }
.nav-link.is-active { background: var(--paper); color: var(--ink); }
.nav-link.is-active .icon { color: #30553a; }
.sidebar-note { margin-top: auto; padding: 23px 12px 0; color: #d0c3bd; font-size: 11px; line-height: 1.8; }
.sidebar-note > .icon { margin-bottom: 14px; color: var(--accent); }
.sidebar-note p { margin-bottom: 14px; font-family: var(--serif); font-size: 16px; line-height: 1.9; }
.sidebar-note span { display: block; max-width: 18em; font-size: 10px; }
.app-main { min-width: 0; min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 40px; }
.breadcrumbs { display: flex; min-width: 0; align-items: center; gap: 9px; color: #d9ccc6; font-size: 11px; }
.breadcrumbs .icon { width: 18px; height: 18px; }
.desktop-brand { display: inline; }
.mobile-brand { display: none; }
.topbar-actions { display: flex; flex-shrink: 0; align-items: center; gap: 13px; }
.preview-badge { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid #81726b; border-radius: 6px; background: transparent; color: #e5d8d0; font-size: 10px; line-height: 1.5; }
.icon-button { display: inline-grid; width: 44px; height: 44px; flex-shrink: 0; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--ink); transition: background .28s ease, border-color .28s ease, transform .4s ease; }
.icon-button:hover { transform: translateY(-2px); border-color: var(--ink); background: #e4d7d0; }
.icon-button[aria-pressed="true"], .icon-button.is-saved { border-color: var(--accent-deep); background: var(--accent); color: #14371c; }
.topbar .icon-button { border-color: #796d66; color: var(--on-dark); }
.topbar .icon-button:hover { border-color: var(--accent); background: #5b5350; }
main#main { width: 100%; max-width: 1280px; min-width: 0; padding: 12px 40px 76px; margin: 0 auto; }
.page-head { margin-bottom: 32px; padding: 24px 0 0; }
.page-kicker { margin-bottom: 12px; color: var(--accent); }
.page-head h1 { margin-bottom: 15px; font-family: var(--serif); font-size: clamp(29px, 3.1vw, 43px); font-weight: 400; letter-spacing: -.025em; line-height: 1.55; }
.page-head .heading-phrase { display: inline-block; white-space: nowrap; }
.page-description { max-width: 62ch; margin-bottom: 0; color: var(--on-dark-muted); font-size: 14px; line-height: 1.9; }
.section { margin-top: 48px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-head h2 { margin-bottom: 0; font-family: var(--serif); font-size: 27px; font-weight: 400; letter-spacing: -.025em; line-height: 1.6; }
.section-index { display: inline-flex; min-width: 29px; align-items: center; justify-content: center; padding: 1px 5px; margin-right: 10px; border-radius: 5px; background: var(--accent); color: #14371c; font-family: var(--sans); font-size: 10px; font-weight: 600; vertical-align: middle; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; color: var(--accent-deep); font-size: 12px; font-weight: 600; line-height: 1.6; text-underline-offset: 5px; }
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 17px; height: 17px; transition: transform .45s ease; }
.text-link:hover .icon { transform: translateX(3px); }
.section-head .text-link { color: var(--on-dark); }

/* Hero: generous paper panel, serif identity, then an immediate search. */
.hero { --focus: #433e3c; position: relative; display: block; min-width: 0; overflow: hidden; padding: 46px 52px 42px; border: 0; border-radius: 24px; background: var(--paper); color: var(--ink); }
.hero-topline { position: relative; display: flex; min-height: 36px; align-items: center; justify-content: center; margin-bottom: 34px; }
.edition-pill { display: inline-flex; min-height: 29px; align-items: center; justify-content: center; padding: 5px 15px; border-radius: 7px; background: var(--accent); color: #14371c; font-size: 10px; font-weight: 650; letter-spacing: .12em; }
.hero-index { position: absolute; right: 0; color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.hero-content { min-width: 0; padding: 0; }
.hero-title { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 0; color: var(--ink); font-family: var(--serif); font-size: clamp(74px, 8.6vw, 132px); font-weight: 400; letter-spacing: -.07em; line-height: 1.3; white-space: nowrap; }
.hero-title-mark { display: inline-flex; align-items: center; justify-content: center; width: .5em; height: .5em; flex-shrink: 0; margin-left: .07em; transform: translateY(-.12em); }
.hero-title-mark .icon { width: 100%; height: 100%; stroke-width: .9; }
.hero-search { width: 100%; max-width: 780px; margin: 33px auto 34px; }
.hero-search .search-examples { margin-bottom: 0; }
.hero-bottom { display: grid; grid-template-columns: 1fr 2fr; align-items: start; gap: 40px; padding-top: 25px; border-top: 1px solid var(--line-strong); }
.serif-label { font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: -.025em; line-height: 1.6; }
.hero-copy { max-width: 40em; margin-bottom: 12px; color: #685b55; font-size: 14px; line-height: 1.95; }
.hero-action { display: inline-flex; min-height: 44px; align-items: center; gap: 14px; color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.7; }
.hero-action > .icon { width: 29px; height: 29px; padding: 6px; border-radius: 50%; background: var(--accent); color: #14371c; transition: transform .5s ease; }
.round-arrow { display: inline-grid; width: 30px; height: 30px; flex-shrink: 0; place-items: center; border-radius: 50%; background: var(--accent); color: #14371c; transition: transform .5s ease; }
.round-arrow .icon { width: 17px; height: 17px; }
.roll-label { position: relative; display: block; height: 1.8em; overflow: hidden; line-height: 1.8; }
.roll-front, .roll-back { display: block; white-space: nowrap; transition: transform .5s ease; }
.roll-back { position: absolute; top: 100%; left: 0; }
.hero-image { overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.search-form { --focus: #433e3c; display: flex; width: 100%; min-height: 62px; align-items: center; gap: 12px; padding: 7px 8px 7px 20px; border: 1px solid #c4b5ac; border-radius: 13px; background: var(--paper-light); color: var(--ink); transition: border-color .25s ease, box-shadow .25s ease; }
.search-form:focus-within { border-color: var(--ink); box-shadow: 0 0 0 2px #433e3c22; }
.search-icon { width: 22px; height: 22px; color: #6b5e56; }
.search-form input { min-width: 0; height: 46px; flex: 1; padding: 5px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; line-height: 1.4; }
.search-form input::placeholder { color: #7c6d64; opacity: 1; }
.search-form input:focus-visible { outline: none; }
.search-form button { display: inline-grid; min-width: 53px; min-height: 46px; place-items: center; padding: 10px 15px; border: 0; border-radius: 9px; background: var(--accent); color: #14371c; transition: background .3s ease; }
.search-form button:hover { background: #6ade82; }
.search-form button .icon { transition: transform .5s ease; }
.search-form button:hover .icon { transform: translateX(4px); }
.search-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 11px; margin: 10px 0 0; color: #6c5d55; font-size: 11px; }
main > .search-examples { color: var(--on-dark-muted); }
.chip { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 5px; padding: 6px 9px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: inherit; font-size: 11px; font-weight: 500; }
.chip:hover { border-color: #ac9c92; background: #433e3c0a; }
.chip[aria-pressed="true"] { background: var(--accent); color: #14371c; }

/* Collections and editorial content surfaces. */
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.category-card { --focus: #433e3c; position: relative; display: flex; min-width: 0; min-height: 220px; flex-direction: column; justify-content: space-between; gap: 25px; padding: 27px 25px; border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); transition: transform .45s ease, background .45s ease; }
.category-card:hover { transform: translateY(-4px); background: #f6efeb; }
.category-card > span:not(.category-symbol):not(.category-number) { min-width: 0; }
.category-symbol { display: grid; width: 42px; height: 42px; align-self: flex-start; place-items: center; color: inherit; }
.category-symbol .icon { width: 36px; height: 36px; stroke-width: 1.25; }
.category-number { position: absolute; top: 27px; right: 25px; display: inline-flex; min-width: 30px; height: 24px; align-items: center; justify-content: center; padding: 0 7px; border-radius: 6px; background: var(--accent); color: #14371c; font-size: 10px; line-height: 1; }
.category-name { display: block; padding-right: 20px; color: inherit; font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: -.03em; line-height: 1.65; overflow-wrap: anywhere; }
.category-description { display: block; margin-top: 7px; color: #73645b; font-size: 11px; line-height: 1.8; }
.category-arrow { position: absolute; right: 24px; bottom: 31px; width: 24px; height: 24px; color: inherit; transition: transform .5s ease; }
.category-card:hover .category-arrow { transform: translateX(5px); }
.category-card:nth-child(3n + 2) { background: var(--lavender); color: var(--lavender-ink); }
.category-card:nth-child(3n + 2):hover { background: #d1ccfb; }
.category-card:nth-child(3n + 2) .category-description { color: #51466c; }
.category-card:nth-child(3n) { --focus: #f0e7e4; background: #615a57; color: var(--paper); }
.category-card:nth-child(3n):hover { background: #6a625e; }
.category-card:nth-child(3n) .category-description { color: #e4d8d1; }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
.course-banner { --focus: #16371b; display: flex; min-width: 0; align-items: center; gap: 27px; padding: 35px; border: 0; border-radius: 22px; background: var(--accent); color: #14371c; }
.course-illustration { display: grid; width: 90px; height: 90px; flex-shrink: 0; place-items: center; overflow: hidden; border-radius: 50%; background: #433e3c10; color: inherit; }
.course-illustration .icon { width: 46px; height: 46px; stroke-width: 1.2; }
.course-illustration .editorial-art { width: 100%; height: 85%; }
.course-body { min-width: 0; flex: 1; }
.course-body .eyebrow { color: #214c2a; }
.course-body h2, .course-body h3 { margin-bottom: 9px; font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: -.025em; line-height: 1.65; }
.course-body p { margin-bottom: 10px; color: #24512e; font-size: 13px; line-height: 1.8; }
.course-progress { display: grid; min-width: 100px; gap: 7px; margin: 14px 0 18px; color: #3b503e; font-size: 11px; }
.course-body .course-progress { width: 100%; max-width: 480px; }
.course-banner .button.primary { background: #22472a; color: #f0f5e9; }
.course-banner .button.primary:hover { background: #16391f; }
.course-banner .muted { color: #24472c; }
.progress-bar { display: block; height: 5px; overflow: hidden; border-radius: 99px; background: #d0c2ba; }
.progress-bar > span { display: block; height: 100%; border-radius: inherit; background: #356d3f; }
.course-banner .progress-bar { background: #21673055; }
.course-banner .progress-bar > span { background: #1f4929; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.topic-card { --focus: #433e3c; display: flex; min-width: 0; height: 100%; flex-direction: column; overflow: hidden; border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); transition: transform .4s ease; }
.topic-card:hover { transform: translateY(-4px); }
.topic-visual { display: grid; width: 100%; height: 170px; flex-shrink: 0; place-items: center; overflow: hidden; background: #e3d8d1; }
.topic-card:nth-child(3n + 2) .topic-visual { background: #d0c9ee; }
.topic-card:nth-child(3n) .topic-visual { background: #d8e4cd; }
.topic-visual > a { display: grid; width: 100%; height: 100%; place-items: center; }
.topic-visual svg { width: 82%; max-width: 260px; height: 140px; transition: transform .6s ease; }
.topic-card:hover .topic-visual svg { transform: translateY(-4px) rotate(-2deg); }
.topic-visual img { width: 100%; height: 100%; object-fit: cover; }
.topic-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 22px 23px 0; font-size: 10px; }
.topic-title { padding: 0 23px; margin: 11px 0 7px; font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.65; }
.topic-summary { padding: 0 23px; margin-bottom: 14px; color: #6c5d55; font-size: 12px; line-height: 1.9; }
.topic-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 23px 21px; margin-top: auto; }
.topic-footer > span { display: inline-flex; align-items: center; gap: 5px; color: #6c5d55; font-size: 11px; }
.topic-footer > span .icon { width: 15px; height: 15px; }
.tag, .pill { display: inline-flex; align-items: center; justify-content: center; padding: 3px 7px; border: 1px solid transparent; border-radius: 5px; color: #4a5d3d; font-size: 10px; font-weight: 500; line-height: 1.4; }
.tag { background: #dde6d5; }
.pill { border-color: #c4b4a8; color: #6b5c53; }
.field-story { --focus: #433e3c; display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; margin-top: 48px; border-radius: 24px; background: var(--paper); color: var(--ink); }
.field-story-image { min-width: 0; min-height: 340px; overflow: hidden; }
.field-story-image img { width: 100%; height: 100%; object-fit: cover; }
.field-story-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; padding: 44px 38px; }
.field-story-copy .eyebrow { margin-bottom: 24px; color: #64564e; }
.field-story-copy h2 { margin-bottom: 20px; font-family: var(--serif); font-size: clamp(26px, 2.5vw, 36px); font-weight: 400; letter-spacing: -.03em; line-height: 1.7; }
.field-story-copy p { margin-bottom: 20px; color: #6c5d55; font-size: 13px; line-height: 1.95; }
.field-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 50px 0 0; color: #d4c7c0; }
.field-footer-title { margin: 0; font-family: var(--serif); font-size: clamp(27px, 4vw, 48px); font-weight: 400; letter-spacing: -.04em; line-height: 1.5; }
.field-footer-copy { max-width: 26em; margin: 0; font-size: 11px; line-height: 1.9; }

/* Search and filters. */
.type-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 22px 0 18px; margin-top: 13px; border-bottom: 1px solid #746760; }
.type-tab { display: inline-flex; min-height: 44px; align-items: center; gap: 6px; padding: 8px 13px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #e1d5ce; font-size: 12px; line-height: 1.5; transition: background .25s ease, color .25s ease; }
.type-tab span { color: inherit; font-size: 10px; }
.type-tab:hover { background: #5e5551; }
.type-tab[aria-pressed="true"] { background: var(--accent); color: #14371c; }
.filter-details { margin-top: 13px; }
.filter-toggle { display: flex; min-height: 44px; align-items: center; gap: 9px; width: fit-content; color: #e5d9d2; font-size: 12px; font-weight: 500; list-style: none; }
.filter-toggle::-webkit-details-marker { display: none; }
.filter-toggle::after { content: "⌄"; margin-left: 4px; transition: transform .25s ease; }
.filter-details[open] .filter-toggle::after { transform: rotate(180deg); }
.filter-toggle .icon { width: 18px; height: 18px; }
.filter-panel { --focus: #433e3c; display: flex; flex-wrap: wrap; align-items: end; gap: 18px; padding: 22px; margin-top: 10px; border-radius: 16px; background: var(--paper); color: var(--ink); }
.filter-field { display: flex; min-width: 180px; flex-direction: column; gap: 7px; color: #6b5c53; font-size: 12px; }
.filter-field select, .form-field input, .share-url { min-width: 0; min-height: 46px; padding: 9px 12px; border: 1px solid #bdaba1; border-radius: 8px; background: #f8f2ef; color: var(--ink); font-size: 15px; line-height: 1.5; }
.result-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 26px 0 16px; color: #e0d4cd; font-size: 13px; }
.result-summary .muted { color: #cbbdb6; font-size: 11px; }
.search-results { display: grid; gap: 14px; }
.result-card { --focus: #433e3c; display: flex; min-width: 0; align-items: center; gap: 21px; padding: 24px; border: 1px solid transparent; border-radius: 18px; background: var(--paper); color: var(--ink); transition: border-color .3s ease, background .3s ease; }
.result-card:hover { border-color: #98857a; background: #f5edE8; }
.result-icon { display: grid; width: 53px; height: 53px; flex-shrink: 0; place-items: center; border-radius: 50%; background: #e1d6cf; color: #66534b; }
.result-icon .icon { width: 29px; height: 29px; }
.result-main { min-width: 0; flex: 1; }
.result-main > .muted { display: block; margin-top: 8px; color: #6c5d55; font-size: 11px; line-height: 1.7; }
.result-side { display: flex; flex-shrink: 0; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px; }
.result-side > .muted { color: #6c5d55; font-size: 11px; }
.result-title { margin: 8px 0 5px; font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.6; overflow-wrap: anywhere; }
.result-summary-text { margin: 0; color: #6c5d55; font-size: 13px; line-height: 1.85; }
.result-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; color: #6c5d55; font-size: 10px; }
.empty-state { --focus: #433e3c; padding: 45px 28px; border-radius: 20px; background: var(--paper); color: var(--ink); text-align: center; }
.empty-icon { display: grid; width: 64px; height: 64px; place-items: center; margin: 0 auto 19px; border-radius: 50%; background: #dfd3cb; color: #68534a; }
.empty-icon .icon { width: 30px; height: 30px; }
.empty-state h2 { margin-bottom: 13px; font-family: var(--serif); font-size: 25px; font-weight: 400; }
.empty-state p { margin-bottom: 23px; color: #6c5d55; font-size: 14px; line-height: 1.9; }
.empty-state .search-examples { justify-content: center; margin-top: 21px; }

/* Reading: a quiet page with conventional body typography. */
.back-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; margin: 5px 0 20px; color: #e2d6cf; font-size: 12px; }
.back-link .icon { width: 18px; height: 18px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: start; gap: 25px; }
.article-content { --focus: #433e3c; min-width: 0; padding: 38px; border-radius: 23px; background: var(--paper); color: var(--ink); }
.article-header { padding-bottom: 23px; border-bottom: 1px solid var(--line); margin-bottom: 25px; }
.article-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 16px; color: #6c5d55; font-size: 11px; }
.article-header h1 { margin-bottom: 15px; font-family: var(--serif); font-size: 38px; font-weight: 400; letter-spacing: -.035em; line-height: 1.5; overflow-wrap: anywhere; }
.article-summary { margin-bottom: 21px; color: #6c5d55; font-size: 15px; line-height: 1.9; }
.article-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.article-aside { position: sticky; top: 24px; min-width: 0; }
.toc { --focus: #433e3c; padding: 25px 21px; border-radius: 20px; background: var(--paper); color: var(--ink); }
.toc .eyebrow { color: #6c5d55; }
.toc > p { margin: 9px 0 15px; font-family: var(--serif); font-size: 17px; }
.toc > a:not(.text-link) { display: flex; min-height: 44px; align-items: center; padding: 7px 0; color: #6a5b52; font-size: 12px; line-height: 1.8; }
.toc hr { border: 0; border-top: 1px solid var(--line); margin: 17px 0; }
.toc .muted { color: #6c5d55; font-size: 11px; }
.highlights { padding: 23px 25px; margin: 0 0 28px; border-radius: 14px; background: #dfe6d5; list-style: none; }
.highlights > li { display: flex; align-items: flex-start; gap: 10px; color: #314b2d; font-size: 14px; line-height: 1.9; }
.highlights > li + li { margin-top: 8px; }
.highlights > li .icon { width: 18px; height: 18px; margin-top: 4px; color: #3c6136; }
.highlights > li::before { content: none; }
.prose { color: var(--body); font-family: var(--sans); font-size: 16px; line-height: 2; overflow-wrap: anywhere; }
.prose h2 { margin: 38px 0 15px; color: var(--ink); font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.7; }
.prose h3 { margin: 26px 0 12px; color: var(--ink); font-size: 18px; font-weight: 650; line-height: 1.7; }
.prose p, .prose ul, .prose ol { margin-bottom: 21px; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: #4e7041; }
.prose a, .source-box a, .notice a { color: #295b32; text-decoration: underline; text-underline-offset: 4px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose blockquote { padding: 17px 21px; margin: 25px 0; border-left: 3px solid #869b73; background: #e5e4d8; color: #526046; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 11px 13px; border: 1px solid var(--line-strong); text-align: left; vertical-align: top; }
.prose th { background: #e3d6ce; }
.prose code { padding: 2px 5px; border-radius: 4px; background: #e4d8d0; color: #644f43; font-size: .86em; }
.prose pre { max-width: 100%; overflow-x: auto; padding: 19px; border-radius: 10px; background: #e4d8d0; line-height: 1.7; }
.prose pre code { padding: 0; background: none; }
.source-box { --focus: #433e3c; padding: 25px; margin: 30px 0 0; border-radius: 18px; background: #e5d9d2; color: var(--ink); }
.source-box h2 { margin-bottom: 15px; font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.7; }
.source-box p { margin-bottom: 13px; color: #68584e; font-size: 12px; line-height: 1.95; }
.source-box ul { padding-left: 18px; margin: 0 0 16px; }
.source-box li { padding: 4px 0 11px; color: #66564e; font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.source-box small { display: block; margin-top: 5px; color: #68584e; font-size: 10px; }
.source-box .muted { color: #6c5d54; font-size: 11px; }
.notice { --focus: #433e3c; display: flex; align-items: flex-start; gap: 12px; padding: 20px 23px; margin: 21px 0; border: 1px solid #c7b8ae; border-radius: 14px; background: var(--paper); color: var(--ink); font-size: 13px; line-height: 1.9; }
.notice p { margin-bottom: 7px; }
.notice > .icon { width: 22px; height: 22px; margin-top: 2px; }
.notice.warning { display: block; border-color: #c9ac7d; background: #ede0c7; color: #654514; }
.notice.info { display: block; border-color: #bdc9ae; background: #e2e9d9; color: #3b5034; }
.notice.info:has(> .icon) { display: flex; }
.notice.preview-notice { background: #e4d9d1; border-color: #c4b1a4; color: #695446; }
.notice p:last-child { margin-bottom: 0; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.related-link { --focus: #433e3c; display: flex; min-width: 0; min-height: 80px; align-items: center; gap: 11px; padding: 16px; border: 1px solid #c5b4a9; border-radius: 12px; background: #f3eae5; color: var(--ink); transition: background .3s ease; }
.related-link:hover { background: #f9f1ec; }
.related-link > .icon:first-child { width: 23px; height: 23px; color: #5d5744; }
.related-link > span { min-width: 0; flex: 1; }
.related-link small { display: block; margin-bottom: 3px; color: #75665d; font-size: 10px; }
.related-link strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.7; overflow-wrap: anywhere; }
.related-link > .icon:last-child { width: 16px; height: 16px; color: #77665a; }
.article-content .section-head h2 { color: var(--ink); font-size: 25px; }
.article-content .section-head .text-link { color: var(--accent-deep); }

/* Learning and reflection. */
.learning-filters { margin-top: 0; }
.learning-filter-note { width: 100%; margin: 0; color: var(--muted); font-size: 12px; }
.learning-filters .text-link { min-height: 46px; }
.learning-step { margin: 24px 0; }
.learning-step h2 { margin-bottom: 15px; font-family: var(--serif); font-size: 23px; font-weight: 400; }
.course-water { color: var(--muted); font-size: 11px; }
#learning-results + .notice { margin-top: 24px; }
.learning-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.learning-card { --focus: #433e3c; display: flex; min-width: 0; height: 100%; flex-direction: column; align-items: flex-start; padding: 30px; border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); }
.learning-card:nth-child(3n + 2) { background: #d5cef2; }
.learning-card-body { width: 100%; min-width: 0; }
.learning-card .course-illustration { margin-bottom: 23px; background: #d3c6bd; }
.learning-card:nth-child(3n + 2) .course-illustration { background: #bfb6dc; }
.learning-card .topic-meta { justify-content: space-between; padding: 0; }
.learning-card .topic-meta > .muted { color: #6c5e56; font-size: 10px; }
.learning-card h2 { margin: 17px 0 12px; font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.7; }
.learning-card p { margin-bottom: 15px; color: #74645b; font-size: 13px; line-height: 1.9; }
.learning-card:nth-child(3n + 2) p, .learning-card:nth-child(3n + 2) .topic-meta > .muted, .learning-card:nth-child(3n + 2) .course-water { color: #514562; }
.learning-card .button { align-self: flex-start; }
.course-overview { --focus: #433e3c; display: flex; flex-wrap: wrap; align-items: center; gap: 11px 18px; padding: 23px 26px; margin-bottom: 23px; border-radius: 18px; background: var(--paper); color: #74645b; font-size: 12px; }
.course-overview .course-progress { width: 230px; margin: 0 0 0 auto; }
.lesson-list { display: grid; gap: 13px; }
.lesson-row { --focus: #433e3c; display: flex; min-width: 0; align-items: center; gap: 18px; padding: 24px; border: 1px solid transparent; border-radius: 17px; background: var(--paper); color: var(--ink); transition: border-color .3s ease, background .3s ease; }
.lesson-row:hover { border-color: #af9c8e; background: #f7eee8; }
.lesson-row.is-complete { background: #dde8d7; }
.lesson-number { display: grid; width: 37px; height: 37px; flex-shrink: 0; place-items: center; border-radius: 50%; background: #d9cdc4; color: #574c43; font-size: 12px; font-weight: 600; }
.lesson-row.is-complete .lesson-number { background: #c1d9b6; color: #324f27; }
.lesson-copy { min-width: 0; flex: 1; }
.lesson-copy strong { display: block; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.7; }
.lesson-copy > span, .lesson-copy small, .lesson-state { color: #74645b; font-size: 11px; line-height: 1.8; }
.lesson-row.is-complete .lesson-copy > span, .lesson-row.is-complete .lesson-copy small, .lesson-row.is-complete .lesson-state { color: #495841; }
.lesson-copy > span { display: block; margin-top: 4px; }
.lesson-state { display: flex; flex-shrink: 0; align-items: center; gap: 6px; }
.lesson-state .icon { width: 16px; height: 16px; }
.quiz-card { --focus: #433e3c; padding: 28px; margin-top: 19px; border-radius: 20px; background: var(--paper); color: var(--ink); }
.quiz-card .eyebrow { color: #76655b; }
.quiz-card h2, .quiz-card h3 { margin: 13px 0 19px; font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.8; }
.quiz-options { display: grid; gap: 11px; }
.quiz-option { display: flex; min-width: 0; min-height: 57px; align-items: center; gap: 13px; padding: 15px 17px; border: 1px solid #c3b2a6; border-radius: 11px; background: #f7f0eb; color: var(--ink); font-size: 13px; line-height: 1.8; text-align: left; transition: background .25s ease, border-color .25s ease; }
.quiz-option > span { display: inline-grid; width: 25px; height: 25px; flex-shrink: 0; place-items: center; border-radius: 50%; background: #dfd3ca; color: #6a594e; font-size: 11px; }
.quiz-option > .icon { width: 18px; height: 18px; margin-left: auto; }
.quiz-option:hover { border-color: #99816f; background: #fdf5ee; }
.quiz-option.is-selected { border-color: #4c7746; background: #e2ebda; color: #2f4c28; }
.quiz-option.is-selected > span { background: #bfD8b3; color: #2f4c28; }
.quiz-feedback { padding: 18px 20px; margin-top: 18px; border-radius: 11px; background: #e7dccf; color: #6b4f2d; font-size: 13px; line-height: 1.9; }
.quiz-feedback.is-correct { background: #dae7cf; color: #304d2a; }
.quiz-feedback p { margin: 7px 0; }
.completion-card { --focus: #433e3c; padding: 28px; margin-top: 33px; border-radius: 20px; background: #dfe8d6; color: #344c2b; }
.completion-card > div > .icon { width: 29px; height: 29px; margin-bottom: 14px; }
.completion-card h2 { margin-bottom: 12px; font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.7; }
.completion-card p { margin-bottom: 21px; color: #56694a; font-size: 13px; line-height: 1.9; }
.section > .muted, main > .muted { color: #d0c3bd; }

/* Trip preparation, personal library, and protected local state. */
.trip-panel { --focus: #433e3c; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 30px; margin-bottom: 25px; border-radius: 22px; background: var(--paper); color: var(--ink); }
.trip-panel .eyebrow { color: #75665d; }
.trip-panel h2 { margin: 9px 0 11px; font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.7; }
.trip-panel p { margin: 0; color: #74645b; font-size: 13px; }
.form-field { display: flex; min-width: 0; flex-direction: column; gap: 7px; color: #74645b; font-size: 11px; }
.checklist { display: grid; gap: 13px; }
.check-row { --focus: #433e3c; display: flex; align-items: flex-start; gap: 18px; padding: 25px; border: 1px solid transparent; border-radius: 17px; background: var(--paper); color: var(--ink); }
.check-row.is-checked { border-color: #93ad80; background: #e2ead9; }
.check-input { width: 24px; height: 24px; flex-shrink: 0; margin: 5px 0 0; accent-color: #356d3f; cursor: pointer; }
.check-copy { min-width: 0; flex: 1; }
.check-copy label { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.7; cursor: pointer; }
.check-copy p { margin: 8px 0; color: #74645b; font-size: 12px; line-height: 1.9; }
.check-copy .text-link { font-size: 11px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stat-card { --focus: #433e3c; display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 7px; padding: 29px; border-radius: 19px; background: var(--paper); color: #75665d; font-size: 12px; }
.stat-card > .icon { width: 24px; height: 24px; color: #66564c; }
.stat-card strong { color: var(--ink); font-family: var(--serif); font-size: 48px; font-weight: 400; line-height: 1.2; }
.settings-panel { --focus: #433e3c; padding: 30px; margin: 28px 0 0; border-radius: 21px; background: var(--paper); color: var(--ink); }
.settings-panel h2 { margin-bottom: 13px; font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.7; }
.settings-panel p { max-width: 62ch; margin-bottom: 22px; color: #74645b; font-size: 13px; line-height: 1.95; }
.settings-panel > .button.danger { margin-top: 22px; }
.button { display: inline-flex; min-width: 44px; min-height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 12px 18px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 600; line-height: 1.6; text-align: center; transition: background .25s ease, border-color .25s ease; }
.button .icon { width: 19px; height: 19px; }
.button.primary { border-color: var(--accent); background: var(--accent); color: #14371c; }
.button.primary:hover { border-color: #6ade82; background: #6ade82; }
.button.secondary { border-color: #b8a295; background: transparent; color: #57493e; }
.button.secondary:hover { border-color: #806b5c; background: #ded0c6; }
.button.danger { border-color: #b99184; background: transparent; color: #7b3f2e; }
.button.danger:hover { background: #ead4c9; }
.button.small { min-height: 44px; padding: 10px 14px; font-size: 11px; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dialog { --focus: #433e3c; max-width: min(540px, calc(100vw - 32px)); max-height: calc(100svh - 48px); padding: 0; border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); }
.dialog::backdrop { background: #211c18a6; backdrop-filter: blur(3px); }
.dialog-panel { min-width: 0; padding: 32px; overflow-y: auto; }
.dialog-panel h2 { margin-bottom: 17px; font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.6; }
.dialog-panel p { margin-bottom: 17px; color: #74645b; font-size: 14px; line-height: 1.9; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 11px; margin-top: 25px; }
.share-url { display: block; width: 100%; margin-top: 16px; }
.toast { position: fixed; z-index: 130; right: 30px; bottom: 28px; max-width: min(500px, calc(100vw - 40px)); padding: 15px 22px; border: 1px solid #8d7e74; border-radius: 12px; background: #f0e7e4; color: #433e3c; box-shadow: 0 12px 30px #1d171433; font-size: 13px; line-height: 1.8; }
.offline-banner { display: flex; align-items: center; gap: 9px; padding: 13px 40px; border-block: 1px solid #968261; background: #ddcba9; color: #5d431e; font-size: 12px; line-height: 1.9; }
.offline-banner .icon { width: 20px; height: 20px; }
#update-banner { margin: 0 40px 15px; }
.mobile-nav { display: none; }
.skeleton { padding: 32px; color: #e2d5cc; }

/* Desktop shell compression precedes the mobile navigation change. */
@media (min-width: 1600px) {
  .topbar { padding-inline: max(40px, calc((100vw - var(--sidebar-width) - 1200px) / 2)); }
}
@media (max-width: 1150px) {
  :root { --sidebar-width: 204px; }
  .sidebar { padding-inline: 13px; }
  .brand { gap: 8px; padding-inline: 5px; }
  .brand-name { font-size: 18px; }
  .brand-en { font-size: 7px; }
  .topbar { padding-inline: 28px; }
  main#main { padding-inline: 28px; }
  .hero { padding: 38px 34px 36px; }
  .hero-title { font-size: 8.3vw; }
  .hero-bottom { gap: 25px; }
  .serif-label { font-size: 22px; }
  .category-grid, .topic-grid { gap: 18px; }
  .category-card { min-height: 210px; padding: 25px 21px; }
  .category-name { font-size: 19px; }
  .category-number { top: 25px; right: 21px; }
  .category-arrow { right: 20px; bottom: 28px; }
  .category-description { font-size: 11px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 200px; gap: 18px; }
  .article-content { padding: 30px; }
}
@media (max-width: 950px) {
  .sidebar { display: none; }
  .app-main { margin-left: 0; }
  .topbar { min-height: 72px; padding: 12px 26px; }
  .desktop-brand { display: none; }
  .mobile-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--paper); font-family: var(--serif); font-size: 19px; font-weight: 400; white-space: nowrap; }
  .mobile-brand .icon { width: 26px; height: 26px; color: var(--accent); }
  main#main { padding: 9px 26px 125px; }
  .hero { padding: 38px 38px 35px; }
  .hero-title { font-size: clamp(74px, 10.8vw, 107px); }
  .mobile-nav { position: fixed; z-index: 70; right: 0; bottom: 0; left: 0; display: grid; min-height: calc(74px + env(safe-area-inset-bottom, 0px)); grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 6px 13px calc(6px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #7b6c62; background: #433e3cf7; color: var(--paper); backdrop-filter: blur(12px); }
  .mobile-nav a { display: flex; min-width: 0; min-height: 58px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 5px 2px; border-radius: 10px; color: #e7d9d0; font-size: 10px; line-height: 1.4; text-align: center; }
  .mobile-nav a:focus-visible { outline-color: var(--paper); }
  .mobile-nav .icon { width: 23px; height: 23px; }
  .mobile-nav .is-active, .mobile-nav [aria-current="page"] { background: var(--accent); color: #14371c; }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 760px) {
  .hero { padding: 34px 30px 31px; }
  .hero-title { font-size: 10vw; }
  .hero-bottom { grid-template-columns: 1fr 1.8fr; gap: 24px; }
  .serif-label { font-size: 21px; }
  .hero-copy { font-size: 13px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .category-card { min-height: 205px; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .two-column { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .toc { padding: 24px; }
  .field-story { grid-template-columns: 1fr; }
  .field-story-image { min-height: 0; height: 260px; }
  .field-story-copy { padding: 32px; }
  .field-story-copy h2 { font-size: 32px; }
  .field-footer { flex-direction: column; align-items: flex-start; gap: 20px; }
  .field-footer-copy { max-width: 42em; }
}
@media (max-width: 560px) {
  .topbar { min-height: 68px; gap: 10px; padding: 10px 20px; }
  .topbar-actions { gap: 8px; }
  .topbar-actions > a.icon-button { display: none; }
  .mobile-brand { gap: 7px; font-size: 18px; }
  .preview-badge { padding: 4px 6px; font-size: 9px; }
  .topbar .icon-button { width: 44px; height: 44px; }
  main#main { padding: 8px 20px 120px; }
  .page-head { padding-top: 20px; margin-bottom: 25px; }
  .page-head h1 { margin-bottom: 13px; font-size: 30px; }
  .page-description { font-size: 13px; }
  .page-kicker { font-size: 9px; }
  .section { margin-top: 34px; }
  .section-head { gap: 12px; margin-bottom: 18px; }
  .section-head h2 { font-size: 22px; line-height: 1.7; }
  .section-head .text-link { flex-shrink: 0; font-size: 10px; }
  .section-index { min-width: 25px; margin-right: 7px; font-size: 9px; }
  .hero { padding: 26px 21px 25px; border-radius: 20px; }
  .hero-topline { min-height: 29px; margin-bottom: 24px; }
  .edition-pill { min-height: 27px; padding: 4px 12px; font-size: 9px; }
  .hero-index { font-size: 8px; }
  .hero-title { gap: 4px; font-size: clamp(46px, 12.7vw, 71px); letter-spacing: -.075em; line-height: 1.5; }
  .hero-title-mark { width: .42em; height: .42em; margin-left: .03em; }
  .hero-search { margin-top: 23px; margin-bottom: 22px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 12px; padding-top: 21px; }
  .serif-label { font-size: 21px; line-height: 1.5; }
  .hero-copy { max-width: none; margin-bottom: 9px; font-size: 12px; line-height: 1.95; }
  .hero-action { min-height: 44px; gap: 10px; font-size: 11px; }
  .hero-action > .icon, .hero-action .round-arrow { width: 28px; height: 28px; }
  .search-form { min-height: 56px; gap: 9px; padding: 5px 6px 5px 13px; border-radius: 11px; }
  .search-icon { width: 19px; height: 19px; }
  .search-form input { height: 44px; font-size: 16px; }
  .search-form button { min-width: 44px; min-height: 44px; padding: 10px; border-radius: 8px; }
  .search-form button .icon { width: 21px; height: 21px; }
  .search-examples { gap: 0 5px; margin-top: 7px; font-size: 10px; }
  .chip { min-height: 44px; padding-inline: 7px; font-size: 10px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .category-card { min-height: 182px; gap: 18px; padding: 23px 19px; border-radius: 18px; }
  .category-number { top: 23px; right: 19px; min-width: 25px; height: 21px; font-size: 9px; }
  .category-symbol { width: 32px; height: 32px; }
  .category-symbol .icon { width: 30px; height: 30px; }
  .category-name { padding-right: 11px; font-size: 18px; line-height: 1.65; }
  .category-description { margin-top: 7px; font-size: 10px; line-height: 1.8; }
  .category-arrow { right: 16px; bottom: 28px; width: 18px; height: 18px; }
  .course-banner { align-items: flex-start; gap: 18px; padding: 25px 22px; border-radius: 20px; }
  .course-illustration { width: 54px; height: 54px; }
  .course-body h2, .course-body h3 { margin-top: 7px; font-size: 21px; }
  .course-body p { font-size: 11px; }
  .course-body .eyebrow { font-size: 8px; }
  .course-progress { margin: 12px 0 16px; font-size: 10px; }
  .topic-grid, .learning-grid { grid-template-columns: 1fr; }
  .topic-card { border-radius: 20px; }
  .topic-visual { height: 170px; }
  .topic-meta { padding-top: 19px; }
  .topic-title { font-size: 23px; }
  .topic-summary { font-size: 12px; }
  .field-story { margin-top: 34px; border-radius: 20px; }
  .field-story-image { height: 230px; }
  .field-story-copy { padding: 28px 24px 26px; }
  .field-story-copy .eyebrow { margin-bottom: 18px; font-size: 9px; }
  .field-story-copy h2 { margin-bottom: 16px; font-size: 30px; }
  .field-story-copy p { font-size: 12px; }
  .field-footer { padding-top: 35px; gap: 18px; }
  .field-footer-title { font-size: 32px; }
  .field-footer-copy { font-size: 10px; }
  .type-tabs { gap: 4px; padding-block: 17px 16px; }
  .type-tab { padding: 8px 11px; font-size: 11px; }
  .type-tab span { font-size: 9px; }
  .filter-panel { gap: 13px; padding: 18px; }
  .filter-field { min-width: 0; flex-basis: calc(50% - 7px); }
  .filter-field select, .form-field input, .share-url { font-size: 16px; }
  .learning-filters .filter-field { flex: 1 1 100%; }
  .result-summary { margin-top: 22px; font-size: 12px; }
  .result-card { align-items: flex-start; gap: 12px; padding: 21px 18px; border-radius: 17px; }
  .result-icon { display: none; }
  .result-title { font-size: 21px; }
  .result-summary-text { font-size: 12px; }
  .result-meta { gap: 6px 8px; }
  .result-main > .muted { font-size: 10px; }
  .empty-state { padding: 34px 22px; }
  .empty-state h2 { font-size: 24px; }
  .article-content { padding: 27px 23px 30px; border-radius: 20px; }
  .article-header h1 { font-size: 32px; }
  .article-summary { font-size: 14px; }
  .article-header { padding-bottom: 20px; }
  .article-actions { gap: 9px; }
  .article-actions .button { font-size: 10px; padding-inline: 13px; }
  .prose { font-size: 16px; line-height: 2; }
  .prose h2 { margin-top: 32px; font-size: 23px; }
  .prose h3 { font-size: 18px; }
  .highlights { padding: 19px; }
  .highlights > li { font-size: 13px; }
  .source-box { padding: 22px; }
  .related-grid { grid-template-columns: 1fr; }
  .article-content .section-head h2 { font-size: 24px; }
  .learning-card { padding: 26px; }
  .learning-card h2 { font-size: 25px; }
  .course-overview { gap: 9px 14px; padding: 21px; }
  .course-overview .course-progress { width: 100%; flex-basis: 100%; margin: 4px 0 0; }
  .lesson-row { align-items: flex-start; gap: 12px; padding: 21px 18px; }
  .lesson-copy strong { font-size: 14px; }
  .lesson-copy > span { font-size: 11px; }
  .lesson-state { max-width: 44px; padding-top: 8px; font-size: 10px; }
  .quiz-card, .completion-card { padding: 24px; }
  .quiz-card h2, .quiz-card h3, .completion-card h2 { font-size: 23px; }
  .quiz-option { gap: 10px; padding: 13px; font-size: 12px; }
  .trip-panel { padding: 26px; }
  .trip-panel h2 { font-size: 25px; }
  .check-row { gap: 13px; padding: 22px 18px; }
  .check-copy label { font-size: 14px; }
  .check-copy p { font-size: 12px; }
  .stats-grid { gap: 12px; }
  .stat-card { gap: 8px; padding: 20px 15px; font-size: 10px; }
  .stat-card strong { font-size: 39px; }
  .stat-card > .icon { width: 21px; height: 21px; }
  .settings-panel { padding: 25px; }
  .settings-panel h2 { font-size: 25px; }
  .button { min-height: 46px; padding-inline: 16px; font-size: 11px; }
  .button-row { gap: 10px; }
  .dialog { max-width: calc(100vw - 30px); max-height: calc(100svh - 36px); border-radius: 20px; }
  .dialog-panel { padding: 26px; }
  .dialog-panel h2 { font-size: 25px; }
  .dialog-actions .button { flex: 1; }
  .toast { right: 16px; left: 16px; max-width: none; padding: 14px 18px; font-size: 12px; }
  .offline-banner { align-items: flex-start; padding: 12px 20px; font-size: 11px; }
  #update-banner { margin-inline: 20px; }
}
@media (max-width: 360px) {
  .topbar { padding-inline: 16px; }
  .mobile-brand { gap: 5px; font-size: 16px; }
  .mobile-brand .icon { width: 23px; height: 23px; }
  .topbar-actions { gap: 6px; }
  .preview-badge { font-size: 8px; }
  main#main { padding-inline: 16px; }
  .hero { padding-inline: 18px; }
  .hero-title { font-size: 12.4vw; }
  .hero-index { display: none; }
  .hero-search { margin-top: 20px; }
  .search-form { gap: 7px; padding-left: 10px; }
  .search-form input { font-size: 16px; }
  .search-examples { gap: 0 3px; }
  .chip { padding-inline: 5px; }
  .category-grid { gap: 13px; }
  .category-card { min-height: 176px; padding-inline: 16px; }
  .category-number { right: 16px; }
  .category-name { font-size: 16px; }
  .category-description { font-size: 10px; }
  .category-arrow { right: 13px; width: 16px; height: 16px; }
  .course-banner { gap: 13px; padding-inline: 19px; }
  .course-illustration { width: 45px; height: 45px; }
  .course-body h3, .course-body h2 { font-size: 20px; }
  .section-head h2 { font-size: 21px; }
  .section-head .text-link { font-size: 9px; }
  .article-content { padding-inline: 20px; }
  .article-header h1 { font-size: 29px; }
  .lesson-state { display: none; }
  .stat-card { padding-inline: 12px; }
  .stat-card strong { font-size: 34px; }
}
@media (hover: hover) and (pointer: fine) {
  .hero-action:hover .roll-front, .hero-action:hover .roll-back { transform: translateY(-100%); }
  .hero-action:hover .round-arrow, .hero-action:hover > .icon { transform: translateX(5px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .category-card:hover, .topic-card:hover, .topic-card:hover .topic-visual svg, .hero-action:hover .round-arrow, .hero-action:hover > .icon, .text-link:hover .icon, .search-form button:hover .icon, .icon-button:hover, .hero-action:hover .roll-front { transform: none; }
  .hero-action .roll-back { display: none; }
}
