@charset "UTF-8";

/* Fahwa 14 — compact discovery, consistent reading, source-bound context. */
:root {
  --ink: #171a1c;
  --blue: #3156e8;
  --blue-hover: #2442bb;
  --blue-light: #edf0ff;
  --paper: #f4f0e6;
  --white: #fff;
  --muted: #5a5e63;
  --line: #d8d7d1;
  --logo-accent: var(--blue);
  --lime: var(--blue-light);
  --purple: var(--blue);
  --lavender: var(--blue-light);
  --search-blue: var(--blue);
  --thread-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='76' viewBox='0 0 180 76'%3E%3Cpath d='M12 53V42H65L76 31H126L138 43H168' fill='none' stroke='%233156e8' stroke-width='7'/%3E%3C/svg%3E");
  font: 16px/1.85 "IBM Plex Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background-color: #f4f0e6; background-color: var(--paper); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .55; cursor: default; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Readex Pro", "IBM Plex Sans Arabic", sans-serif; font-weight: 600; letter-spacing: 0; line-height: 1.55; }
h1 { font-size: clamp(2.2rem, 4vw, 3.8rem); margin-bottom: 20px; }
h2 { font-size: 1.8rem; margin-bottom: 16px; }
h3 { font-size: 1.2rem; margin-bottom: 10px; }
p { margin-bottom: 20px; }
small { font-size: .875rem; }
::selection { background: var(--blue); color: white; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
:where(main, [tabindex="-1"]):focus { outline: none; }
.wrap, .header-inner, .footer-inner, .footer-disclosure { max-width: 1256px; margin-inline: auto; padding-inline: 36px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.eyebrow { font-size: .875rem; font-weight: 600; color: var(--blue); margin-bottom: 12px; }
.skip-link { position: fixed; inset-inline-start: 18px; top: -100px; background: var(--blue); color: white; padding: 10px 18px; z-index: 100; }
.skip-link:focus { top: 10px; }

/* Masthead and shared controls */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 30px; min-height: 106px; }
.brand { display: inline-flex; align-items: center; flex: none; padding-block: 10px; }
.brand-lockup { display: flex; align-items: center; }
.brand-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.fahwa-wordmark { display: block; width: 164px; height: auto; color: var(--ink); flex: none; overflow: visible; }
.main-nav { display: flex; align-items: center; gap: 25px; margin-inline-start: auto; }
.main-nav a { display: inline-flex; align-items: center; gap: 7px; min-height: 46px; position: relative; padding-block: 12px; font-size: 1rem; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; bottom: 1px; inset-inline: 0; height: 3px; background: transparent; }
.main-nav a.active { font-weight: 700; color: var(--blue); }
.main-nav a.active::after { background: var(--blue); }
.main-nav a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.project-entry { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 13px; border: 1px solid var(--ink); font-size: .875rem; font-weight: 600; white-space: nowrap; }
.project-entry.active, .project-entry:hover { background: var(--blue-light); color: var(--blue); border-color: var(--blue); }
.count-pill { background: var(--blue-light); color: var(--blue); padding: 0 6px; min-width: 23px; text-align: center; font-size: .8125rem; }
.count-pill:empty { display: none; }
.primary-button, .outline-button, .lime-button, .danger-button, .library-reset, .feature-cta { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 46px; border: 1px solid var(--ink); border-radius: 2px; padding: 10px 20px; line-height: 1.6; font-size: 1rem; font-weight: 600; text-align: center; }
.primary-button, .lime-button { background: var(--blue); border-color: var(--blue); color: white; box-shadow: 3px 3px 0 var(--ink); }
.primary-button:hover, .lime-button:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.outline-button { background: transparent; color: var(--ink); }
.outline-button:hover { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }
.danger-button { background: white; border-color: #a53a33; color: #a02e28; }
.button-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.text-link { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; font-weight: 600; }
.text-link:hover { text-decoration-thickness: 2px; }
select { appearance: none; min-height: 46px; background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23171a1c' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat left 14px center; border: 1px solid #969b9f; border-radius: 2px; color: var(--ink); padding: 9px 13px 9px 38px; font-size: 1rem; max-width: 100%; }
input, textarea { font-size: 1rem; border-radius: 2px; }

/* Opening page: the question is the starting point. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 65px; align-items: center; padding-block: 45px 42px; }
.hero-heading { min-width: 0; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(2.8rem, 4.5vw, 4.1rem); line-height: 1.4; font-weight: 700; margin: 0; }
.hero-title > span { display: block; text-wrap: balance; }
.hero-title .hero-context { color: var(--blue); }
.hero-title .hero-world { color: var(--ink); }
.discovery-hubs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 24px; }
.discovery-hubs a { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; min-height: 94px; padding: 14px 10px; border: 1px solid var(--ink); border-top: 4px solid var(--blue); background: white; box-shadow: 3px 4px 0 var(--ink); text-align: center; text-decoration: none; }
.discovery-hubs a:hover { background: #e9edff; }
.discovery-hubs strong { font: 600 1rem/1.6 "Readex Pro",sans-serif; color: var(--ink); text-wrap: balance; }
.discovery-hubs a > span { color: var(--muted); font-size: .875rem; line-height: 1.5; text-wrap: balance; }
.featured-context { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--ink); color: white; padding: 23px 28px; margin: 2px 6px 35px 0; border-bottom: 5px solid var(--blue); box-shadow: 6px 7px 0 var(--ink); }
.featured-context:hover .feature-cta { background: white; color: var(--ink); }
.featured-context .feature-kicker { font-size: .875rem; color: #cbd5ff; }
.featured-context h2 { font: 600 1.5rem/1.6 "Readex Pro",sans-serif; margin: 6px 0 0; color: white; }
.feature-cta { flex-shrink: 0; display: inline-flex; align-items: center; gap: 14px; min-height: 44px; padding: 8px 16px; background: var(--blue); color: white; font-weight: 600; }
.search-prompt { display: block; margin-bottom: 12px; font-size: 1.25rem; font-family: "Readex Pro", "IBM Plex Sans Arabic", sans-serif; font-weight: 600; }
.search-hint { margin: 17px 0 0; color: var(--muted); font-size: .9375rem; }
.hero-description { font-size: 1.125rem; line-height: 1.95; color: var(--muted); max-width: 40ch; margin-bottom: 26px; }
.search-form { display: flex; align-items: center; gap: 12px; min-width: 0; background: white; border: 1.5px solid var(--ink); border-radius: 2px; box-shadow: 5px 6px 0 var(--ink); padding: 7px; }
.search-form:focus-within { outline: 3px solid var(--blue); outline-offset: 4px; }
.search-form input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 10px 0; font-size: 1rem; }
.search-form input::placeholder { color: #686c70; opacity: 1; }
.search-form button { flex: none; min-height: 48px; padding: 10px 22px; border: 0; border-radius: 1px; background: var(--blue); color: white; font-weight: 700; }
.search-form button:hover { background: var(--blue-hover); }
.search-icon { flex: none; position: relative; width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 50%; margin-inline: 12px 3px; }
.search-icon::after { content: ""; position: absolute; width: 7px; height: 2px; background: var(--ink); bottom: -3px; right: -5px; transform: rotate(45deg); }
.quick-search { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-top: 20px; color: var(--muted); font-size: .875rem; }
.quick-search button { min-height: 44px; padding: 7px 12px; border: 1px solid #c2c3c0; background: transparent; color: var(--ink); font-size: .875rem; border-radius: 2px; }
.quick-search button:hover { background: white; border-color: var(--blue); color: var(--blue); }
.hero-story { position: relative; }
.fahwa-feature { display: block; isolation: isolate; background: var(--ink); color: white; padding: 34px 34px 31px; border: 1px solid var(--ink); box-shadow: 8px 9px 0 var(--ink); transition: transform .18s ease; }
.fahwa-feature::before { content: ""; position: absolute; inset-inline-end: 24px; top: 24px; width: 54px; height: 10px; background: var(--blue); clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.fahwa-feature::after { content: ""; display: block; height: 10px; margin-top: 27px; width: 100%; background: linear-gradient(to right, var(--blue) 0 28%, transparent 28% 33%, var(--blue) 33%); clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 10px 100%); }
.fahwa-feature:hover { transform: translateY(-3px); }
.fahwa-feature:focus-visible { outline-offset: 6px; outline-color: var(--blue); }
.feature-kicker { display: block; font-size: .875rem; color: #c9d2ff; padding-inline-end: 66px; margin-bottom: 20px; }
.fahwa-feature h2.feature-question { font-size: clamp(1.65rem, 2.65vw, 2.35rem); line-height: 1.65; margin-bottom: 17px; max-width: 22ch; color: white; }
.fahwa-feature .feature-question span { color: white; }
.fahwa-feature p { max-width: 34ch; color: #d4d7dd; line-height: 1.85; font-size: 1rem; margin-bottom: 22px; }
.feature-cta { background: white; border-color: white; color: var(--ink); min-height: 44px; padding: 9px 17px; font-size: .9375rem; }
.hero-story-top, .hero-story-bottom { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; }
.hero-story-bottom { border-top: 1px solid #ffffff40; margin-top: 20px; padding-top: 14px; }
.hero-story-kicker { font-size: .875rem; }
.hero-symbol { display: none; }
.hero-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 24px; font-size: .875rem; color: var(--muted); }
.hero-stats strong { color: var(--blue); margin-inline-end: 4px; }
.browse-jump { min-height: 44px; color: var(--blue); background: transparent; border: 0; padding: 8px 0; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.context-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 6px 0 42px; border-block: 1px solid var(--ink); }
.context-paths a { min-height: 104px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 19px 25px; border-inline-end: 1px solid var(--line); transition: background .15s; }
.context-paths a:last-child { border-inline-end: 0; }
.context-paths a:hover { background: white; }
.context-paths span { color: var(--muted); font-size: .875rem; }
.context-paths strong { font-family: "Readex Pro", sans-serif; font-size: 1.1rem; font-weight: 600; }
.context-intro { display: flex; gap: 25px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); margin-bottom: 35px; }
.context-intro p { margin: 0; }
.context-intro a { flex: none; }

/* Library, search, and lightweight story previews */
.discovery { padding-bottom: 60px; scroll-margin-top: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 1.8rem; }
.discovery-head { align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.discovery-head .library-actions { margin: 0; }
.section-head .eyebrow { margin-bottom: 8px; }
.range-caption { color: var(--muted); font-size: .875rem; margin: 0; text-align: end; }
.library-actions { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.library-actions:empty { display: none; }
.library-reset { background: white; color: var(--ink); padding: 9px 16px; font-size: .9375rem; }
.library-reset:hover { color: var(--blue); border-color: var(--blue); }
.filter-scope-note { margin: 0; font-size: .875rem; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.filter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid #c3c4c1; border-radius: 2px; background: transparent; color: var(--ink); padding: 8px 13px; font-size: .9375rem; }
.filter small { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; font-size: .8125rem; padding: 0 4px; background: #171a1c0a; direction: ltr; unicode-bidi: isolate; }
.filter[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: white; }
.filter[aria-pressed="true"] small { background: #ffffff20; }
.filter:hover:not([aria-pressed="true"]) { background: white; border-color: var(--blue); }
.mobile-category { display: none; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-block: 24px; }
.browse-controls { margin-block: 18px; }
.browse-controls .results-toolbar { margin: 0; }
.results-count { display: flex; flex-direction: column; gap: 2px; font-size: .875rem; }
.results-count strong { font-size: 1rem; font-weight: 600; }
.results-count small { color: var(--muted); font-size: .875rem; }
.period-control { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.period-control label { font-size: .875rem; }
.period-control select { background-color: transparent; }
.active-filters { display: flex; gap: 7px; flex-wrap: wrap; margin-block: 16px 8px; font-size: .875rem; }
.active-filters span { background: white; border: 1px solid var(--line); color: var(--muted); padding: 4px 10px; }
.clear-filters { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 8px; }
.sort-details { margin: 6px 0 22px; font-size: .875rem; color: var(--muted); }
.sort-details summary { min-height: 44px; width: fit-content; padding-block: 10px; }
.sort-details summary:hover { color: var(--blue); }
.sort-details p { line-height: 1.95; max-width: 800px; margin: 7px 0 17px; }
.sort-note { color: var(--muted); font-size: .875rem; margin: 14px 0 22px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.story-card { position: relative; min-width: 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--ink); padding-bottom: 6px; content-visibility: auto; contain-intrinsic-size: auto 440px; }
.story-card:focus-within { outline: 2px solid var(--blue); outline-offset: 6px; }
.story-card:hover h3 a { color: var(--blue); }
.art { height: 150px; min-width: 0; position: relative; isolation: isolate; display: flex; justify-content: center; align-items: center; padding: 19px; background: var(--blue-light); color: var(--blue); clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.art::after { content: ""; position: absolute; inset-inline: 16px; bottom: 13px; height: 5px; background: linear-gradient(to right, currentColor 0 33%, transparent 33% 40%, currentColor 40%); opacity: .32; clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.art-shape, .art-caption { display: none; }
.art-mark { position: relative; z-index: 1; max-width: 100%; font-family: "Readex Pro", "IBM Plex Sans Arabic", sans-serif; font-size: 2.75rem; font-weight: 700; line-height: 1.4; letter-spacing: 0; text-align: center; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.art-mark.long-mark { font-size: 2.05rem; white-space: normal; text-wrap: balance; }
.art-mark[dir="ltr"] { direction: ltr; }
.art-term { flex-direction: column; gap: 7px; }
.art-latin { position: relative; z-index: 1; font-size: .9375rem; line-height: 1.3; text-align: center; opacity: .8; max-width: 100%; direction: ltr; unicode-bidi: isolate; overflow-wrap: normal; word-break: normal; }
.art-politics, .art-economy, .art-bisht { background: var(--ink); color: white; }
.art-sport, .art-tech, .art-space, .art-expo { background: var(--blue); color: white; }
.art-services, .art-transport { background: #dde4ff; color: var(--ink); }
.art-culture, .art-coffee, .art-history, .art-heritage, .art-nature { background: #e7e4dc; color: var(--ink); }
.art-meme { background: var(--blue-light); color: var(--blue); }
.art-compare, .art-sequence { gap: 12px; align-content: center; flex-direction: row; flex-wrap: wrap; height: 150px; padding: 20px 17px; }
.art-compare::after, .art-sequence::after { display: none; }
.art-compare .art-mark, .art-sequence .art-mark { flex-basis: 100%; font-size: 1rem; line-height: 1.65; white-space: normal; }
.art-compare .art-latin, .art-sequence .art-latin { flex-basis: 100%; font-size: .875rem; }
.art-token { position: relative; min-width: 0; font-family: "Readex Pro", "IBM Plex Sans Arabic", sans-serif; font-size: 1.125rem; font-weight: 600; line-height: 1.65; text-align: center; overflow-wrap: break-word; }
.art-compare .art-token { flex: 1 1 0; padding: 10px 6px; border-block: 2px solid currentColor; }
.art-compare .art-token + .art-token { border-inline-start: 1px solid currentColor; padding-inline-start: 14px; }
.art-sequence { column-gap: 16px; }
.art-sequence .art-token { flex: 1 1 0; padding-block: 8px; }
.art-sequence .art-token + .art-token::before { content: ""; position: absolute; inset-inline-start: -11px; top: 50%; width: 6px; height: 3px; background: currentColor; }
.card-body { min-width: 0; display: flex; flex-direction: column; flex: 1; padding: 21px 0 17px; }
.card-meta { display: flex; justify-content: space-between; gap: 9px; flex-wrap: wrap; font-size: .8125rem; color: var(--muted); margin-bottom: 11px; line-height: 1.7; }
.card-meta span:first-child { color: var(--blue); font-weight: 600; font-size: .875rem; }
.card-body h3 { font-size: 1.2rem; line-height: 1.8; margin-bottom: 11px; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-body > p { font-size: 1rem; color: var(--muted); line-height: 1.85; margin-bottom: 18px; }
.card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; font-size: .875rem; color: var(--muted); }
.card-footer > span { min-width: 0; overflow-wrap: anywhere; }
.card-footer small { display: block; font-size: .8125rem; margin-top: 2px; }
.save-button { position: relative; z-index: 2; flex: none; width: 44px; height: 44px; display: flex; justify-content: center; align-items: center; background: transparent; border: 1px solid #979b9d; border-radius: 2px; }
.save-button:hover { background: white; border-color: var(--blue); color: var(--blue); }
.save-button svg { width: 16px; height: 20px; }
.save-button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: white; }
.evidence-chip, .availability-chip { align-self: start; font-size: .8125rem; color: #505965; padding: 3px 8px; margin-bottom: 12px; background: #e9e8e3; }
.evidence-chip.usage { background: var(--blue-light); color: #354b9d; }
.load-more { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin: 33px 0 15px; }
.load-more .primary-button { min-width: 225px; }
.load-more p, .all-loaded { color: var(--muted); font-size: .875rem; text-align: center; margin: 24px 0; }
.all-matches-link { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 12px; }
.source-footnote { text-align: center; margin: 30px 0 0; font-size: .9375rem; }
.source-band { display: flex; align-items: center; gap: 25px; padding: 28px; margin-top: 35px; background: white; border-block: 3px solid var(--blue); }
.source-band > div { flex: 1; }
.source-band h3 { margin-bottom: 7px; }
.source-band p { margin: 0; color: var(--muted); }
.source-brackets { display: none; }

/* Article: comfortable measure, clear evidence, no decorative interruption. */
.page { padding-block: 37px 70px; }
.page-heading { padding-block: 12px 26px; max-width: 850px; }
.page-heading p:not(.eyebrow), .project-heading > p:not(.eyebrow) { color: var(--muted); font-size: 1.125rem; line-height: 1.95; }
.search-page-heading { padding-block: 42px 32px; max-width: 800px; }
.search-page-heading h1 { font-size: 2.7rem; }
.search-page-heading > p:not(.eyebrow) { color: var(--muted); }
.empty-state { max-width: 780px; margin: 28px auto; padding: 37px; background: white; border: 1px solid var(--line); text-align: center; }
.empty-symbol { font-size: 2.6rem; color: var(--blue); }
.empty-state h2 { font-size: 1.6rem; }
.empty-state p { color: var(--muted); max-width: 620px; margin-inline: auto; }
.empty-state .button-row { justify-content: center; }
.breadcrumb { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; color: var(--muted); font-size: .875rem; margin-bottom: 27px; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.back-to-list { color: var(--blue); font-weight: 600; }
.story-article { max-width: 820px; margin-inline: auto; }
.story-head { display: block; margin-bottom: 24px; }
.story-head h1 { font-size: clamp(1.9rem, 3.1vw, 2.7rem); line-height: 1.65; margin: 12px 0 15px; }
.story-head .art { height: 230px; }
.story-head .art-mark { font-size: 4.5rem; }
.story-head .art-mark.long-mark { font-size: 3rem; }
.story-head .art-latin { font-size: 1.1rem; }
.story-dek { font-size: 1.125rem; color: var(--muted); line-height: 1.95; margin-bottom: 0; }
.term-spelling { direction: ltr; text-align: right; unicode-bidi: isolate; font-size: 1.125rem; color: var(--blue); margin: -3px 0 12px; }
.story-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .875rem; }
.story-category { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.story-end { border-top: 1px solid var(--line); padding-top: 25px; }
.story-end .story-tools { margin: 0 0 26px; }
.story-end .ai-disclosure { margin: 22px 0 0; }
.story-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 21px; }
.story-tools button, .story-tools .share-entry { min-height: 44px; padding: 8px 13px; border: 1px solid #9fa3a5; border-radius: 2px; background: transparent; font-size: .875rem; }
.story-tools .share-entry { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.story-tools button:hover, .story-tools .share-entry:hover { background: white; color: var(--blue); border-color: var(--blue); }
.story-tools button[aria-pressed="true"] { background: var(--blue); color: white; border-color: var(--blue); }
.availability-note { font-size: .9375rem; color: var(--muted); margin: 12px 0 0; }
.ai-disclosure { display: flex; justify-content: space-between; align-items: start; gap: 18px; padding-block: 13px; margin-bottom: 27px; border-block: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.ai-disclosure a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.evidence-note { display: flex; gap: 17px; align-items: baseline; padding: 18px 22px; background: var(--blue-light); border-inline-start: 3px solid var(--blue); margin-bottom: 25px; }
.evidence-note strong { flex: none; color: #273d92; font-size: .9375rem; }
.evidence-note p { margin: 0; font-size: 1rem; }
.usage-scope, .term-scope { padding: 14px 20px; border: 1px solid var(--line); margin-bottom: 25px; font-size: .9375rem; background: white; }
.usage-scope summary { min-height: 36px; padding-block: 4px; color: var(--blue); font-weight: 600; }
.usage-scope p { margin: 10px 0 0; }
.story-layout { display: block; }
.article-body { min-width: 0; }
.article-body section { margin-bottom: 34px; }
.article-body h2 { font-size: 1.6rem; margin-bottom: 14px; }
.article-body p, .fact-list li { font-size: 1.0625rem; line-height: 2; }
.summary-box { background: white; border: 1px solid var(--ink); border-top: 5px solid var(--blue); padding: 27px 30px; box-shadow: 4px 5px 0 var(--ink); }
.summary-box h2 { color: var(--ink); }
.summary-box p { margin-bottom: 0; }
.summary-box > h2 { font-size: 1.2rem; color: var(--blue); margin-bottom: 12px; }
.summary-box .availability-note { padding-top: 15px; margin-top: 18px; border-top: 1px solid var(--line); font-size: .9375rem; line-height: 1.9; color: var(--ink); }
.summary-box .evidence-note { display: block; padding: 15px 0 0; margin: 18px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; }
.summary-box .evidence-note strong { display: block; margin-bottom: 5px; }
.summary-box .evidence-note p { font-size: .9375rem; line-height: 1.9; color: var(--muted); }
.summary-box .eyebrow { font-size: .875rem; }
.citation { display: inline-block; color: var(--blue); font-size: .875rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-inline-start: 3px; white-space: nowrap; direction: ltr; }
.context-box { border-inline-start: 4px solid var(--blue); padding-inline-start: 24px; }
.context-box h2 { margin-top: 6px; }
.context-box p { margin-bottom: 0; }
.story-context-note { margin: 18px 0 0; padding: 12px 15px; border-inline-start: 3px solid var(--blue); color: var(--muted); font-size: .9375rem; line-height: 1.9; }
.story-context-note strong { color: var(--ink); }
.story-context-note p { margin: 0; font-size: inherit; line-height: inherit; }
.section-label { font-size: .875rem; font-weight: 600; color: var(--blue); }
.term-origin { padding: 25px 28px; background: var(--blue-light); border-inline-start: 4px solid var(--blue); }
.term-origin p:last-child { margin-bottom: 0; }
.term-origin .eyebrow { margin-bottom: 6px; }
.fact-list { padding-inline-start: 22px; margin: 0; }
.fact-list li { padding-inline-start: 7px; margin-bottom: 13px; }
.fact-list li::marker { color: var(--blue); }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 30px; }
.comparison > div { padding: 22px; background: white; border: 1px solid var(--line); }
.comparison > div:last-child { background: var(--blue-light); border-color: #ccd4fb; }
.comparison small { color: var(--muted); }
.comparison strong { display: block; font-size: 1.1rem; margin-top: 7px; }
.timeline { border-inline-start: 2px solid #c7cdef; margin-inline-start: 8px; padding-inline-start: 26px; }
.timeline-item { position: relative; padding-bottom: 25px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; inset-inline-start: -33px; top: 9px; width: 12px; height: 12px; background: var(--blue); }
.timeline-item time { color: var(--blue); font-size: .875rem; font-weight: 600; }
.timeline-item h3 { font-size: 1.125rem; margin: 6px 0; }
.timeline-item p { font-size: 1rem; color: var(--muted); margin: 0; }
summary { cursor: pointer; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 44px; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker, .project-nav-group summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); font-size: 1rem; margin: 10px 0 3px; }
.unknown-box { padding: 23px; background: #e9e7df; border: 1px solid var(--line); }
.unknown-box h2 { font-size: 1.3rem; }
.unknown-box p { font-size: 1rem; margin: 0; color: var(--muted); }
.change-log { border-top: 1px solid var(--line); padding-block: 12px; font-size: .875rem; color: var(--muted); }
.change-log summary { min-height: 44px; padding-block: 8px; }
.change-log p { font-size: .9375rem; margin: 8px 0 0; }
.source-box { position: static; background: white; border: 1px solid var(--line); border-top: 4px solid var(--blue); padding: 25px 28px; scroll-margin-top: 24px; }
.source-box h2 { font-size: 1.4rem; margin-bottom: 12px; }
.source-box > p { font-size: .875rem; color: var(--muted); }
.source-item { display: flex; align-items: baseline; gap: 10px; border-top: 1px solid var(--line); padding-block: 16px; }
.source-number { flex: none; min-width: 18px; color: var(--blue); font-size: .875rem; font-weight: 700; }
.source-item a { color: var(--blue); font-size: .9375rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; line-height: 1.9; overflow-wrap: anywhere; }
.source-item small { display: block; margin-top: 8px; font-size: .8125rem; color: var(--muted); }
.verification-details { border-top: 1px solid var(--line); padding-top: 10px; font-size: .875rem; color: var(--muted); }
.verification-details summary { min-height: 44px; padding-block: 8px; }
.verification-details p { margin: 10px 0 0; line-height: 1.9; }
.related { margin-top: 46px; padding-top: 32px; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.7rem; }

/* Short editorial paths connect existing stories without adding a new browsing layer. */
.vision-entry { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 20px; min-height: 54px; margin: 0 0 22px; padding: 13px 18px; border: 1px solid var(--line); border-inline-start: 5px solid var(--blue); background: white; }
.vision-entry strong { color: var(--blue); font-weight: 600; }
.vision-entry span { color: var(--muted); font-size: 1rem; }
.vision-entry:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.vision-heading { max-width: 850px; padding-bottom: 36px; }
.vision-heading h1 { font-size: clamp(2rem, 3.8vw, 3.3rem); }
.vision-heading .primary-button { margin-top: 5px; }
.vision-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; align-items: start; }
.vision-path { min-width: 0; padding: 27px; border: 1px solid var(--ink); background: white; box-shadow: 6px 6px 0 var(--ink); scroll-margin-top: 24px; }
.vision-path.is-current { border-inline-start: 5px solid var(--blue); }
.vision-path .eyebrow { margin-bottom: 10px; color: var(--blue); }
.vision-path h2 { font-size: 1.5rem; line-height: 1.8; margin-bottom: 11px; }
.path-intro { margin-bottom: 18px; color: var(--muted); line-height: 1.9; }
.path-stories { list-style: none; margin: 0; padding: 0; }
.path-stories li { border-top: 1px solid var(--line); }
.path-stories a { display: block; min-height: 44px; padding: 17px 0; }
.path-stories strong { display: block; font-size: 1.0625rem; line-height: 1.9; font-weight: 600; }
.path-stories span { display: block; margin-top: 5px; color: var(--muted); font-size: 1rem; line-height: 1.9; }
.path-stories a:hover strong { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.path-stories li:last-child a { padding-bottom: 0; }
.reading-path-indicator { border-inline-start: 2px solid var(--blue); padding-inline-start: 13px; color: var(--ink); }
.reading-continuation { max-width: 820px; margin: 42px auto 0; padding-top: 27px; border-top: 3px solid var(--blue); }
.reading-continuation .section-head { align-items: center; }
.reading-continuation .section-head h2 { font-size: 1.65rem; }
.reading-continuation .eyebrow { color: var(--muted); }
.continuation-question { margin-bottom: 21px; font-size: 1.125rem; line-height: 1.9; }
.narrow-page { max-width: 1020px; }
.prose { max-width: 850px; }
.prose h2 { font-size: 1.6rem; margin-top: 34px; }
.prose p { line-height: 2; color: var(--muted); }
.prose .text-link { display: inline-block; margin-bottom: 12px; }
.prose-list { padding-inline-start: 23px; line-height: 2; max-width: 850px; }
.prose-list li { padding-inline-start: 7px; margin-bottom: 13px; }
.small-copy { font-size: .9375rem; line-height: 1.95; color: var(--muted); }

/* Project file and evidence register */
.project-shell { display: grid; grid-template-columns: 245px minmax(0, 1fr); max-width: 1440px; margin-inline: auto; min-height: 700px; }
.project-sidebar { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; background: var(--ink); color: white; padding: 28px 20px; }
.project-brand { display: block; font-family: "Readex Pro", sans-serif; font-weight: 600; font-size: 1.4rem; color: white; padding-bottom: 23px; border-bottom: 1px solid #ffffff35; }
.project-brand small { display: block; font-family: "IBM Plex Sans Arabic", sans-serif; font-size: .8125rem; color: #c5cbd1; margin-top: 6px; font-weight: 400; }
.project-nav-group { padding-block: 10px; border-bottom: 1px solid #ffffff30; }
.project-nav-group summary { display: flex; justify-content: space-between; align-items: center; gap: 9px; min-height: 44px; padding: 9px 4px; list-style: none; font-size: .9375rem; font-weight: 600; }
.project-nav-group summary::after { content: "+"; font-size: 1.2rem; }
.project-nav-group[open] summary::after { content: "−"; }
.project-sidebar nav a { display: block; min-height: 44px; margin-block: 4px; padding: 9px 12px; font-size: .9375rem; line-height: 1.8; color: #d5d9df; }
.project-sidebar nav a:hover { background: #ffffff15; color: white; }
.project-sidebar nav a.active { background: var(--blue); color: white; font-weight: 600; }
.project-sidebar :focus-visible { outline-color: white; }
.sidebar-product-link { display: flex; justify-content: center; align-items: center; min-height: 46px; margin-top: 24px; padding: 9px 12px; background: white; color: var(--ink); font-weight: 600; }
.project-main { min-width: 0; padding: 30px 40px 65px; }
.project-topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 32px; color: var(--muted); font-size: .875rem; }
.project-topbar .text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
.project-heading { max-width: 850px; margin-bottom: 30px; }
.project-heading h1 { font-size: 2.7rem; line-height: 1.5; }
.project-mobile-nav, .mobile-section-select, .mobile-section-label { display: none; }
.project-bottom { display: flex; justify-content: space-between; gap: 20px; align-items: start; padding-top: 22px; margin-top: 42px; border-top: 1px solid var(--line); }
.project-bottom span { font-size: .875rem; color: var(--muted); }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 15px 0 30px; }
.info-grid > section, .info-card, .ethics-card, .method-intro > section, .demo-brief > section { background: white; border: 1px solid var(--line); padding: 25px; }
.info-grid h2, .info-card h2 { font-size: 1.3rem; }
.info-grid p, .demo-brief p, .ethics-card p { margin: 0; color: var(--muted); line-height: 1.95; }
.info-card ul { padding-inline-start: 20px; line-height: 2; color: var(--muted); }
.method-intro { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-block: 15px 40px; }
.method-intro h2 { font-size: 1.3rem; }
.method-intro p { line-height: 1.95; margin: 0; color: var(--muted); }
.ethics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-block: 20px 30px; }
.ethics-card > span { display: block; font-size: .8125rem; color: var(--muted); margin-bottom: 10px; }
.ethics-card h3 { font-size: 1.2rem; }
.project-note { background: var(--blue-light); border-inline-start: 4px solid var(--blue); padding: 25px; margin-block: 26px; }
.project-note h2 { font-size: 1.3rem; margin-bottom: 11px; }
.project-note p { margin-bottom: 0; line-height: 1.95; }
.project-note .text-link { display: inline-block; margin-top: 15px; }
.demo-brief { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin: 24px 0; }
.demo-brief h3 { color: var(--blue); }
.demo-brief .text-link { display: inline-block; margin-top: 10px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 22px 0 28px; }
.dashboard-stats > div { background: white; border: 1px solid var(--line); border-top: 4px solid var(--blue); padding: 21px; }
.dashboard-stats strong { display: block; font-size: 2.7rem; color: var(--blue); line-height: 1.35; font-weight: 700; }
.dashboard-stats span { display: block; font-size: .9375rem; font-weight: 600; margin-top: 8px; }
.dashboard-stats small { display: block; font-size: .8125rem; color: var(--muted); line-height: 1.6; margin-top: 6px; }
.dashboard-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; }
.blue-panel { padding: 28px; background: var(--blue); color: white; }
.blue-panel h2 { font-size: 2.1rem; }
.blue-panel .eyebrow, .blue-panel p { color: #e0e6ff; }
.blue-panel .primary-button, .blue-panel .lime-button { background: white; color: var(--blue); border-color: white; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: white; margin-block: 24px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .9375rem; }
th, td { text-align: start; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--blue-light); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td small { display: block; margin-top: 5px; font-size: .8125rem; color: var(--muted); }
td a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.category-bars { max-width: 750px; }
.category-bars > div { display: grid; grid-template-columns: 125px minmax(0, 1fr) 26px; gap: 15px; align-items: center; padding-block: 8px; font-size: .875rem; }
.category-bars strong { color: var(--blue); text-align: end; }
meter { appearance: none; width: 100%; height: 9px; border: 0; background: #d4daf1; overflow: hidden; }
meter::-webkit-meter-bar { background: #d4daf1; border: 0; }
meter::-webkit-meter-optimum-value { background: var(--blue); }
meter::-moz-meter-bar { background: var(--blue); }
.brand-explainer { display: flex; gap: 35px; align-items: center; flex-wrap: wrap; background: white; border: 1px solid var(--line); padding: 34px; margin-block: 24px; }
.brand-explainer .brand-lockup { flex: 0 1 270px; }
.brand-explainer .fahwa-wordmark { width: 270px; }
.brand-explainer > div { flex: 1 1 280px; }
.brand-explainer h2 { margin-bottom: 12px; font-size: 1.6rem; }
.brand-explainer p { margin: 0; line-height: 1.95; color: var(--muted); }
.identity-pattern { padding-block: 25px; margin-block: 25px; border-block: 1px solid var(--line); }
.identity-pattern h2 { font-size: 1.5rem; }
.identity-pattern p { color: var(--muted); line-height: 1.95; }
.pattern-specimen { height: 170px; background: var(--blue-light) var(--thread-pattern) repeat; margin-bottom: 25px; clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px); }
.pattern-specimen span { display: none; }
.palette { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 27px; }
.palette > div { background: var(--swatch); color: white; border: 1px solid #171a1c30; padding: 20px; min-height: 125px; display: flex; flex-direction: column; justify-content: end; font-size: .9375rem; font-weight: 600; }
.palette .light-swatch { color: var(--ink); }
.palette small { font-size: .8125rem; margin-top: 7px; font-weight: 400; }
.font-credit { color: var(--muted); font-size: .9375rem; line-height: 1.95; }
.prototype-box { background: white; padding: 30px; border: 1px solid var(--line); }
.prototype-box ol { padding-inline-start: 23px; line-height: 2; margin-bottom: 24px; }
.week-buttons { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.week-buttons button { min-height: 44px; padding: 9px 16px; background: white; border: 1px solid #a5a9ad; border-radius: 2px; font-size: .9375rem; }
.week-buttons button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: white; }
.week-detail { background: white; border: 1px solid var(--line); border-inline-start: 4px solid var(--blue); padding: 27px; margin-bottom: 30px; }
.week-detail h2 { font-size: 1.6rem; }
.week-detail p:last-child { margin-bottom: 0; }
.budget-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 27px; background: white; border: 1px solid var(--line); }
.budget-form > div { min-width: 0; }
.budget-form label { display: block; font-size: .9375rem; margin-bottom: 8px; }
.budget-form input { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid #9fa4a8; background: white; color: var(--ink); }
.budget-total { grid-column: 1/-1; background: var(--blue-light); padding: 18px; font-weight: 600; }
.source-register details { background: white; border: 1px solid var(--line); padding: 16px 20px; margin-bottom: 13px; }
.source-register summary { display: flex; flex-direction: column; gap: 6px; min-height: 44px; font-weight: 600; }
.source-register summary small { color: var(--muted); font-size: .8125rem; font-weight: 400; }
.source-register details > p { color: var(--muted); font-size: .9375rem; line-height: 1.95; margin: 18px 0; }
.source-register ul { padding-inline-start: 21px; }
.source-register li { margin-bottom: 12px; font-size: .9375rem; overflow-wrap: anywhere; }
.source-register li a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.source-register li small { color: var(--muted); font-size: .8125rem; }
.inline-empty { background: white; border: 1px solid var(--line); padding: 24px; color: var(--muted); margin-bottom: 28px; }
.report-item { background: white; border: 1px solid var(--line); padding: 25px; margin-bottom: 17px; }
.report-item h3 { font-size: 1.125rem; }
.report-item > small { display: block; color: var(--muted); font-size: .8125rem; margin-top: 13px; }
.report-item > p { white-space: pre-wrap; overflow-wrap: anywhere; }
.report-item a { color: var(--blue); }

/* Footer and local-only forms */
.site-footer { background: var(--ink); color: white; padding-block: 40px 24px; border-top: 7px solid var(--blue); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer-brand { display: inline-flex; min-height: 44px; }
.footer-brand .fahwa-wordmark { width: 170px; color: white; --logo-accent: var(--blue); }
.footer-inner p { font-size: .9375rem; color: #cbd0d7; margin: 15px 0 0; }
.footer-links { display: flex; gap: 25px; flex-wrap: wrap; font-size: .9375rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-footer :focus-visible { outline-color: white; }
.footer-disclosure { margin-top: 28px; padding-top: 22px; border-top: 1px solid #ffffff35; font-size: .875rem; line-height: 1.95; color: #c6ccd4; }
dialog { border: 1px solid var(--ink); border-radius: 2px; width: min(570px, calc(100% - 28px)); max-height: min(90vh, 850px); padding: 30px; background: var(--paper); color: var(--ink); box-shadow: 7px 8px 0 var(--ink); }
dialog::backdrop { background: #171a1c99; backdrop-filter: blur(3px); }
dialog h2 { font-size: 1.7rem; margin-bottom: 12px; }
dialog p { color: var(--muted); }
.dialog-close { float: left; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 1.7rem; line-height: 1; background: white; border: 1px solid #a1a5a8; border-radius: 2px; margin-inline-start: 8px; }
dialog label { display: block; font-weight: 600; font-size: 1rem; margin: 18px 0 7px; }
dialog label small { font-weight: 400; color: var(--muted); }
dialog input, dialog textarea, dialog select { width: 100%; min-height: 48px; border: 1px solid #969da2; padding: 11px 12px; background-color: white; color: var(--ink); font-size: 1rem; }
dialog select { padding-inline-end: 37px; }
dialog textarea { min-height: 110px; resize: vertical; }
dialog .primary-button { margin-top: 20px; }
dialog .form-note { font-size: .875rem; line-height: 1.9; margin: 16px 0 0; }
.previous-suggestions { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 20px; }
.previous-suggestions h3 { font-size: 1.1rem; }
.previous-suggestions ul { color: var(--muted); font-size: .9375rem; padding-inline-start: 20px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 15px); z-index: 100; width: max-content; max-width: calc(100vw - 30px); padding: 13px 22px; background: var(--ink); color: white; border: 1px solid #ffffff44; box-shadow: 3px 4px 0 var(--blue); opacity: 0; pointer-events: none; text-align: center; font-size: .9375rem; line-height: 1.8; transition: opacity .18s, transform .18s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* A small invitation to understand, then one focused question. */
.context-invite { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 34px 0 20px; padding: 18px 23px; background: white; border: 1px solid var(--line); border-inline-start: 5px solid var(--blue); }
.context-invite > div { min-width: 0; }
.context-invite .challenge-label { display: block; }
.context-invite strong { display: block; font-size: 1.1rem; line-height: 1.7; }
.invite-cta { color: var(--blue); font-weight: 600; flex: none; text-decoration: underline; text-underline-offset: 5px; }
.context-invite:hover { border-color: var(--blue); }
.challenge-correct { font-weight: 700; color: var(--blue); }
.challenge-options button.is-correct { border: 2px solid var(--blue); background: var(--blue-light); color: var(--ink); }
.challenge-options .is-correct::after { content: "✓"; margin-inline-start: 12px; color: var(--blue); }
.challenge-options [disabled][aria-pressed="true"]:not(.is-correct) { background: #eee; color: var(--ink); }
.context-invite .eyebrow, .context-invite .challenge-label { margin: 0 0 4px; font-size: .875rem; color: var(--blue); font-weight: 600; }
.context-invite h2, .context-invite h3 { font-size: 1.15rem; margin: 0; line-height: 1.7; }
.context-invite p { margin: 3px 0 0; font-size: .9375rem; color: var(--muted); }
.context-invite .primary-button, .context-invite .outline-button, .context-invite .text-link { flex: none; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.context-challenge { max-width: 940px; }
.challenge-intro { max-width: 700px; margin-bottom: 25px; }
.challenge-label { color: var(--blue); font-size: .875rem; font-weight: 600; margin-bottom: 8px; }
.challenge-intro > p:not(.challenge-label) { color: var(--muted); font-size: 1.0625rem; line-height: 1.95; }
.challenge-content { background: white; border: 1px solid var(--ink); border-top: 5px solid var(--blue); padding: 34px; box-shadow: 5px 6px 0 var(--ink); }
.challenge-question, h1.challenge-question { font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.75; margin-bottom: 26px; }
.challenge-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.challenge-options button, .challenge-choice { min-height: 58px; display: flex; align-items: center; justify-content: center; padding: 15px 20px; border: 1px solid #91979c; border-radius: 2px; background: var(--paper); color: var(--ink); font-size: 1.0625rem; font-weight: 600; text-align: center; line-height: 1.8; }
.challenge-options button:hover:not(:disabled) { border-color: var(--blue); background: var(--blue-light); }
.challenge-options [aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: white; }
.challenge-options [aria-pressed="true"]:hover:not(:disabled) { background: var(--blue-hover); color: white; }
.challenge-options button:disabled { opacity: 1; }
.challenge-result { margin-top: 26px; padding: 25px; background: var(--blue-light); border-inline-start: 4px solid var(--blue); }
.challenge-result[hidden] { display: none; }
.challenge-answer, h2.challenge-answer { font-size: 1.4rem; margin-bottom: 12px; }
.challenge-result p { font-size: 1.0625rem; line-height: 2; margin-bottom: 15px; }
.challenge-source { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; font-weight: 600; font-size: .9375rem; }
.challenge-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.challenge-actions button, .challenge-actions a, .challenge-next { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 18px; background: white; border: 1px solid var(--ink); border-radius: 2px; font-size: .9375rem; font-weight: 600; }
.challenge-actions .primary-button, .challenge-actions .challenge-next { background: var(--blue); border-color: var(--blue); color: white; text-decoration: none; }
.challenge-actions .primary-button:hover, .challenge-actions .challenge-next:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: white; }
.challenge-actions .primary-button:active, .challenge-actions .challenge-next:active { background: #1d369d; border-color: #1d369d; color: white; }
.challenge-actions .outline-button { background: white; border-color: var(--ink); color: var(--ink); }
.challenge-actions .outline-button:hover { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }
.challenge-actions .text-link:not(.challenge-next) { background: transparent; border-color: transparent; color: var(--blue); }
.challenge-actions :is(a, button):focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

/* Context is a reading tool: a question, the detail that changes it, and its evidence. */
.media-page, .piece-page { padding-bottom: 64px; }
.media-page .page-heading, .piece-page .page-heading { max-width: 840px; }
.media-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; margin-block: 12px 32px; }
.media-group { min-width: 0; padding: 25px; background: white; border: 1px solid var(--ink); border-top: 4px solid var(--blue); }
.media-group h2 { font-size: 1.45rem; margin-bottom: 10px; }
.media-group > p { color: var(--muted); font-size: 1rem; line-height: 1.9; margin-bottom: 16px; }
.media-story-links { list-style: none; padding: 0; margin: 0; }
.media-story-links > li, .media-story-links > a { border-top: 1px solid var(--line); }
.media-story-links a { display: block; min-height: 44px; padding: 14px 0; font-size: 1.0625rem; line-height: 1.9; font-weight: 600; }
.media-story-links a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.media-story-links small, .media-story-links a span { display: block; color: var(--muted); font-size: .9375rem; line-height: 1.85; font-weight: 400; margin-top: 4px; }
.piece-example { max-width: 850px; padding: 30px; margin-block: 15px 28px; background: white; border: 1px solid var(--ink); box-shadow: 5px 6px 0 var(--ink); }
.piece-example h2, .piece-example blockquote { font-family: "Readex Pro", "IBM Plex Sans Arabic", sans-serif; font-size: clamp(1.4rem, 2.5vw, 1.9rem); line-height: 1.8; margin: 0 0 20px; }
.piece-example > p { font-size: 1.0625rem; line-height: 1.95; }
.piece-example .eyebrow { font-size: .875rem; margin-bottom: 12px; }
.piece-example button, .piece-example .primary-button { min-height: 46px; max-width: 100%; white-space: normal; }
.piece-missing { padding: 18px 22px; margin-block: 22px; background: var(--blue-light); border-inline-start: 4px solid var(--blue); font-size: 1.0625rem; line-height: 1.95; }
.piece-missing strong { color: var(--blue); }
.piece-reveal { position: relative; padding-block: 24px 0; margin-top: 24px; border-top: 3px solid var(--blue); }
.piece-reveal h2, .piece-reveal h3 { font-size: 1.4rem; margin-bottom: 12px; }
.piece-reveal p { font-size: 1.0625rem; line-height: 1.95; }
.piece-reveal a:not(.primary-button):not(.outline-button) { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.piece-missing[hidden], .piece-reveal[hidden] { display: none; }
.piece-example > :last-child, .piece-missing > :last-child, .piece-reveal > :last-child { margin-bottom: 0; }
.vision-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-block: 14px 34px; }
.vision-map-step { position: relative; min-width: 0; padding: 21px; background: white; border: 1px solid var(--line); border-top: 3px solid var(--blue); }
.vision-map-step h2, .vision-map-step h3, .vision-map-step > strong { display: block; font-family: "Readex Pro", sans-serif; font-size: 1.25rem; line-height: 1.8; margin-bottom: 10px; }
.vision-map-step p { color: var(--muted); font-size: 1rem; line-height: 1.9; }
.vision-map-step p:last-child { margin-bottom: 0; }
.vision-map-step a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.vision-guide-details { margin: 8px 4px 30px 0; background: white; border: 1px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); }
.vision-guide-details > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 54px; padding: 13px 20px; color: var(--ink); font-size: 1.0625rem; line-height: 1.8; font-weight: 600; list-style: none; }
.vision-guide-details > summary::-webkit-details-marker { display: none; }
.vision-guide-details > summary::after { content: "+"; flex: none; color: var(--blue); font-size: 1.4rem; line-height: 1; }
.vision-guide-details[open] > summary::after { content: "−"; }
.vision-guide-details > summary:hover { color: var(--blue); }
.vision-guide-details[open] > summary { border-bottom: 1px solid var(--line); }
.vision-guide-details > .vision-guide, .vision-guide-details > .vision-guide-body { padding: 22px; }
.vision-guide-details > p, .vision-guide-details > .vision-map { margin-inline: 22px; }
.vision-guide-details > p:first-of-type { margin-top: 22px; }
.vision-guide-details > p:last-child, .vision-guide-details > .vision-map:last-child { margin-bottom: 22px; }
.vision-guide > p:last-child { margin-bottom: 0; }
.vision-guide-details:not([open]) > summary { margin-bottom: 0; }
.vision-cases { max-width: 820px; margin: 38px auto 0; }
.vision-cases > h2 { font-size: 1.5rem; }
.vision-cases .story-connections { margin: 0; padding-top: 0; border-top: 0; }
.story-connections { max-width: 820px; margin: 38px auto 0; padding-top: 23px; border-top: 3px solid var(--blue); list-style: none; }
.story-connections > h2 { font-size: 1.5rem; }
.connection-item { display: block; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; line-height: 1.9; }
.connection-item a, a.connection-item { color: var(--ink); font-weight: 600; }
.connection-item a:hover, a.connection-item:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.connection-item p, .connection-item small, .connection-item span { display: block; color: var(--muted); font-size: .9375rem; line-height: 1.9; font-weight: 400; margin: 6px 0 0; }
.update-list { max-width: 850px; list-style: none; padding: 0; margin-block: 12px 30px; }
.update-item { margin: 0 0 22px; padding: 19px 24px; border: 1px solid var(--line); border-inline-start: 4px solid var(--blue); background: white; }
.update-item h2, .update-item h3 { font-size: 1.3rem; margin-bottom: 11px; }
.update-item time { display: inline-block; color: var(--muted); font-size: .875rem; margin-bottom: 8px; }
.update-item p { font-size: 1rem; line-height: 1.95; color: var(--muted); }
.update-item p:last-child { margin-bottom: 0; }
.update-item a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.evidence-dialog { width: min(690px, calc(100% - 28px)); max-height: min(90vh, 900px); overflow-y: auto; overscroll-behavior: contain; }
.evidence-claim { clear: both; margin-block: 20px; padding: 18px 21px; border-inline-start: 4px solid var(--blue); background: white; font-size: 1.0625rem; line-height: 1.95; color: var(--ink); }
.evidence-claim p { color: inherit; margin: 0; }
.evidence-location { margin-block: 16px; font-size: 1rem; line-height: 1.95; color: var(--muted); overflow-wrap: anywhere; }
.evidence-location strong { color: var(--ink); }
.evidence-dialog a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.evidence-dialog .primary-button { color: white; text-decoration: none; }
.share-preview { clear: both; margin-block: 20px; }
.share-preview-image { display: block; width: 100%; max-height: 64vh; height: auto; object-fit: contain; background: white; border: 1px solid var(--line); }
.share-preview-image + h2 { margin-top: 24px; }
.share-preview a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.share-preview figcaption, .share-preview > p { margin: 12px 0 0; font-size: .9375rem; line-height: 1.85; color: var(--muted); }
.share-text { overflow-wrap: anywhere; font-size: 1rem; line-height: 1.95; }
.report-status { display: block; padding: 11px 14px; margin-block: 14px; background: var(--blue-light); border-inline-start: 3px solid var(--blue); color: var(--ink); font-size: .9375rem; line-height: 1.85; }
.report-status:empty { display: none; }
#usability-form { max-width: 760px; padding: 26px; margin-block: 28px; border: 1px solid var(--ink); background: white; }
#usability-form label { display: block; font-size: 1rem; font-weight: 600; line-height: 1.85; margin: 22px 0 8px; }
#usability-form label:first-child { margin-top: 0; }
#usability-form label small { display: inline; font-size: .875rem; color: var(--muted); font-weight: 400; }
#usability-form input, #usability-form select, #usability-form textarea { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid #969da2; background-color: white; color: var(--ink); font-size: 1rem; }
#usability-form select { padding-inline-end: 38px; }
#usability-form textarea { min-height: 124px; resize: vertical; line-height: 1.9; }
#usability-form .form-note { font-size: .9375rem; line-height: 1.9; color: var(--muted); margin-block: 22px 16px; }
#usability-form > .primary-button { max-width: 100%; }
.search-suggestions { text-align: start; margin-block: 24px; padding-block: 20px; border-block: 1px solid var(--line); }
.search-suggestions h3 { font-size: 1.2rem; }
.search-suggestions p { margin: 0 0 10px; font-size: .9375rem; }
.search-suggestions ul { list-style: none; padding: 0; margin: 0; }
.search-suggestions a { display: block; min-height: 44px; padding-block: 10px; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; font-weight: 600; line-height: 1.85; }

/* A small visual identifies the story; explanations belong inside it. */
.card-body > .pick-reason { margin: 0 0 12px; color: var(--muted); font-size: .875rem; line-height: 1.8; }
.pick-reason > span { color: var(--blue); font-weight: 600; }
.updates-entry { display: inline-flex; min-height: 44px; align-items: center; }
.story-visual { margin-block: 25px; border-block: 1px solid var(--line); }
.story-visual > summary { min-height: 48px; padding-block: 11px; color: var(--blue); font-weight: 600; cursor: pointer; }
.visual-points { display: grid; gap: 10px; margin-block: 12px; }
.visual-points > span { padding: 10px 15px; border-inline-start: 3px solid var(--blue); background: var(--blue-light); font-weight: 500; }
.story-visual > .small-copy { margin-bottom: 14px; }
.mentioned-in { max-width: 820px; margin: 30px auto; }
.mentioned-in > h2 { color: var(--blue); font-size: 1.3rem; }
.quick-entries .vision-quick-entry { color: var(--blue); font-weight: 700; border-bottom-color: var(--blue); }
.vision-terms { max-width: 820px; margin: 0 auto 26px; }
.vision-terms h2 { font-size: 1.25rem; margin-bottom: 12px; }
.vision-terms nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.vision-terms a { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 48px; padding: 10px 12px; background: white; border-bottom: 2px solid var(--blue); font-size: .9375rem; line-height: 1.6; }
.vision-terms a:hover { background: var(--blue); color: white; }
.vision-terms a span { color: var(--blue); }
.vision-terms a:hover span { color: white; }
.vision-paths-heading { display: block; max-width: 1100px; margin: 36px auto 20px; }
.vision-paths-heading h2 { font-size: 1.5rem; margin-bottom: 5px; }
.vision-paths-heading p { color: var(--muted); margin: 0; }
@media(max-width:360px) { .vision-terms nav { grid-template-columns: minmax(0,1fr); } }
.vision-case-lead { display: block; max-width: 820px; margin: 0 auto 30px; padding: 16px 20px; border-inline-start: 4px solid var(--blue); background: white; }
.vision-case-lead > span, .vision-case-lead > strong { display: block; }
.vision-case-lead strong { font: 600 1.1rem/1.8 "Readex Pro", sans-serif; margin-bottom: 6px; }
.vision-case-lead > span:last-child { color: var(--muted); font-size: .9375rem; }
.context-shift { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-block: 24px; }
.context-shift > section { padding: 18px; background: white; border: 1px solid var(--line); }
.context-shift > section:last-child { border-color: var(--blue); border-inline-start-width: 4px; }
.context-shift h3 { font-size: 1rem; color: var(--blue); }
.context-shift p { margin-bottom: 0; font-size: 1rem; }
.editorial-updates { border-top: 1px solid var(--line); padding-top: 15px; }
.editorial-updates > summary { min-height: 44px; font-weight: 600; color: var(--muted); cursor: pointer; }
.share-page { max-width: 850px; }
.share-page .page-heading { padding-bottom: 8px; }
.share-page h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.65; }
.share-actions { margin-bottom: 24px; }
.share-preview { margin-inline: auto; max-width: 480px; }
.share-preview-image { max-height: none; border: 0; }
.share-copy-details { margin-top: 22px; border-top: 1px solid var(--line); }
.share-copy-details > summary { min-height: 48px; padding-block: 10px; cursor: pointer; color: var(--blue); font-weight: 600; }
.context-updated { display: inline-block; color: var(--blue); font-size: .8125rem; font-weight: 600; margin-bottom: 8px; }

/* Tablet: fewer columns, one project navigation system. */
@media (max-width: 1100px) {
  .header-inner { gap: 20px; }
  .main-nav { gap: 18px; }
  .suggest-entry { display: none; }
  .hero { gap: 35px; }
  .hero h1 { font-size: 3.4rem; }
  .fahwa-feature { padding: 28px; }
  .fahwa-feature h2.feature-question { font-size: 1.85rem; }
  .project-main { padding-inline: 28px; }
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .project-shell { display: block; }
  .project-sidebar { display: none; }
  .project-main { max-width: 920px; margin-inline: auto; }
  .project-mobile-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 12px; margin-bottom: 27px; }
  .project-mobile-nav label { grid-row: 1; font-size: .875rem; color: var(--muted); }
  .project-mobile-nav select { grid-row: 2; min-width: 0; width: 100%; background-color: white; }
  .method-intro { grid-template-columns: 1fr; }
  .palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; }
  .hero h1 { font-size: 2.9rem; }
  .fahwa-feature h2.feature-question { font-size: 1.6rem; }
  .fahwa-feature { padding: 25px; }
  .search-form { gap: 8px; }
  .search-form button { padding-inline: 16px; }
  .context-paths a { padding-inline: 17px; }
  .context-paths strong { font-size: 1rem; }
  .story-head { gap: 28px; }
  .story-head .art-mark { font-size: 3.6rem; }
  .story-head .art-mark.long-mark { font-size: 2.5rem; }
  .art-compare, .art-sequence { gap: 9px; padding-inline: 12px; }
  .art-token { font-size: 1rem; }
}

/* Mobile: generous targets, legible words, short routes to the content. */
@media (max-width: 760px) {
  .vision-paths { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .vision-path { padding: 22px; margin-inline-end: 6px; }
  .vision-path h2 { font-size: 1.375rem; }
  .vision-heading { padding-bottom: 28px; }
  .reading-continuation .section-head { align-items: flex-start; }
  .wrap, .header-inner, .footer-inner, .footer-disclosure { padding-inline: 20px; }
  .header-inner { min-height: 0; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; padding-top: 8px; }
  .brand { padding-block: 0; }
  .fahwa-wordmark { width: 136px; }
  .header-actions { margin-inline-start: auto; }
  .project-entry { font-size: .875rem; padding-inline: 11px; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; gap: 10px; margin: 0; }
  .main-nav a { min-height: 44px; padding: 8px 4px; font-size: .9375rem; }
  .main-nav a::after { bottom: 0; }
  .hero { display: block; padding-block: 16px 18px; }
  .hero h1 { font-size: clamp(2.05rem, 7.8vw, 2.8rem); line-height: 1.3; margin-bottom: 10px; }
  .search-prompt { font-size: 1rem; margin-bottom: 6px; }
  .search-hint { display: none; }
  .discovery-hubs { margin-top: 18px; gap: 8px; }
  .discovery-hubs a { padding: 10px 6px; min-height: 96px; gap: 5px; }
  .discovery-hubs strong { font-size: .9375rem; line-height: 1.55; }
  .discovery-hubs a > span { font-size: .8125rem; line-height: 1.5; }
  .featured-context { display: block; margin: 6px 5px 28px 0; padding: 16px 18px; box-shadow: 4px 5px 0 var(--ink); }
  .featured-context h2 { font-size: 1.2rem; line-height: 1.6; margin-top: 3px; }
  .featured-context .feature-kicker { font-size: .8125rem; }
  .featured-context .feature-cta { margin-top: 10px; padding: 0; min-height: 30px; font-size: .9375rem; background: transparent; color: #cbd5ff; }
  .hero-description { font-size: 1rem; line-height: 1.9; margin-bottom: 18px; max-width: 100%; }
  .search-form { gap: 7px; padding: 6px; box-shadow: 4px 5px 0 var(--ink); }
  .search-form input { font-size: 1rem; }
  .search-form button { min-height: 44px; padding-inline: 17px; }
  .search-icon { margin-inline: 8px 0; width: 16px; height: 16px; }
  .quick-search { margin-top: 14px; gap: 8px; }
  .quick-search button { font-size: .875rem; padding-inline: 11px; }
  .fahwa-feature { margin: 22px 0 5px; padding: 21px 24px 18px; box-shadow: 5px 6px 0 var(--ink); }
  .fahwa-feature:hover { transform: none; }
  .feature-kicker { font-size: .875rem; margin-bottom: 9px; }
  .fahwa-feature h2.feature-question { font-size: 1.45rem; line-height: 1.65; max-width: 100%; margin-bottom: 10px; }
  .fahwa-feature .feature-question br { display: none; }
  .fahwa-feature p { max-width: 100%; font-size: 1rem; line-height: 1.8; margin-bottom: 14px; }
  .fahwa-feature p br { display: none; }
  .fahwa-feature::after { margin-top: 17px; height: 5px; }
  .context-paths { margin: 5px 0 30px; }
  .context-paths a { padding: 14px 10px; min-height: 105px; gap: 4px; }
  .context-paths span { font-size: .8125rem; }
  .context-paths strong { font-size: .9375rem; line-height: 1.8; }
  .context-intro { display: block; }
  .context-intro p { margin-bottom: 13px; }
  .context-invite { gap: 12px; margin: 28px 0 18px; padding: 17px 18px; flex-wrap: wrap; }
  .context-invite h2, .context-invite h3 { font-size: 1.0625rem; }
  .context-invite .primary-button, .context-invite .outline-button { font-size: .9375rem; padding: 9px 15px; }
  .challenge-intro { margin-bottom: 20px; }
  .challenge-content { padding: 23px 21px; box-shadow: 3px 4px 0 var(--ink); }
  .challenge-question, h1.challenge-question { font-size: 1.65rem; margin-bottom: 22px; }
  .challenge-options { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .challenge-options button, .challenge-choice { min-height: 54px; padding: 14px 17px; font-size: 1rem; }
  .challenge-result { padding: 21px 18px; margin-top: 23px; }
  .challenge-answer, h2.challenge-answer { font-size: 1.3rem; }
  .challenge-actions { gap: 10px; }
  .challenge-actions button, .challenge-actions a { flex: 1 1 auto; font-size: .9375rem; }
  .discovery { padding-bottom: 42px; }
  .section-head { align-items: start; gap: 15px; margin-bottom: 17px; }
  .section-head h2 { font-size: 1.55rem; }
  .discovery-head { gap: 8px; margin-bottom: 10px; }
  .discovery-head h2 { font-size: 1.25rem; line-height: 1.6; }
  .range-caption { display: none; }
  .library-actions { margin-bottom: 18px; gap: 10px; }
  .library-reset { font-size: .9375rem; }
  .filters { display: none; }
  .mobile-category { display: flex; flex-direction: column; gap: 7px; margin: 12px 0; }
  .mobile-category label { font-size: .875rem; color: var(--muted); }
  .mobile-category select { min-height: 46px; width: 100%; background-color: white; border-color: var(--ink); }
  .results-toolbar { margin-top: 16px; gap: 12px; align-items: start; }
  .period-control { gap: 6px; flex-wrap: wrap; }
  .period-control label { font-size: .875rem; }
  .period-control select { max-width: 100%; }
  .browse-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: start; margin-block: 10px 4px; }
  .browse-controls .mobile-category { min-width: 0; margin: 0; }
  .browse-controls .results-toolbar { min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 5px; margin: 0; }
  .browse-controls .period-control { order: 0; min-width: 0; width: 100%; }
  .browse-controls .period-control label { display: block; width: 100%; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
  .browse-controls .period-control select { width: 100%; min-width: 0; min-height: 46px; background-color: white; border-color: var(--ink); }
  .browse-controls .results-count { order: 1; min-width: 0; text-align: end; font-size: .875rem; line-height: 1.7; }
  .browse-controls .results-count strong { font-size: .875rem; font-weight: 500; }
  .browse-controls .mobile-category select, .browse-controls .period-control select { padding-inline: 10px 29px; background-position: left 10px center; font-size: .9375rem; }
  .sort-details { margin-bottom: 8px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story-card, .story-card[data-kind="term"] { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 17px; padding-block: 16px; contain-intrinsic-size: auto 280px; }
  .story-card > .art { width: 104px; height: 108px; margin-top: 4px; padding: 8px 5px 15px; align-self: start; clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px); }
  .story-card .art::after { inset-inline: 10px; bottom: 10px; height: 3px; }
  .story-card .art-mark { font-size: 1.22rem; line-height: 1.5; white-space: nowrap; max-width: 100%; }
  .story-card .art-mark.long-mark { font-size: .9375rem; white-space: normal; }
  .story-card .art-latin { font-size: .875rem; line-height: 1.35; max-width: 100%; }
  .story-card .art-term { gap: 5px; }
  .card-body { padding: 0 0 0; }
  .card-meta { font-size: .8125rem; line-height: 1.65; gap: 3px 8px; margin-bottom: 7px; }
  .card-meta span:first-child { font-size: .875rem; }
  .card-meta span:nth-child(2) { font-size: .8125rem; }
  .card-body h3 { font-size: 1.0625rem; line-height: 1.8; margin-bottom: 8px; }
  .card-body > p { font-size: 1rem; line-height: 1.8; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card-body > .pick-reason { display: none; }
  .evidence-chip, .availability-chip { font-size: .8125rem; padding-inline: 6px; margin-bottom: 9px; }
  .card-footer { padding-top: 8px; gap: 9px; font-size: .8125rem; }
  .card-footer small { font-size: .8125rem; }
  .save-button { width: 44px; height: 44px; }
  .load-more { margin-top: 27px; }
  .source-band { padding: 23px; flex-wrap: wrap; }
  .source-band > div { flex-basis: 100%; }
  .page { padding-block: 25px 48px; }
  .page-heading { padding-block: 10px 21px; }
  .page-heading h1, .search-page-heading h1 { font-size: 2.2rem; }
  .page-heading p:not(.eyebrow) { font-size: 1.0625rem; }
  .search-page-heading { padding-block: 30px 24px; }
  .breadcrumb { font-size: .875rem; gap: 8px; margin-bottom: 21px; }
  .story-head { display: block; margin-bottom: 20px; }
  .story-head > .art { display: none; }
  .story-head h1 { font-size: 1.8rem; line-height: 1.7; margin-block: 12px 14px; }
  .story-dek { font-size: 1.0625rem; line-height: 1.95; }
  .story-meta { gap: 8px 14px; }
  .story-tools { gap: 8px; margin-top: 18px; }
  .story-tools button, .story-tools .share-entry { flex-grow: 1; font-size: .875rem; }
  .ai-disclosure { flex-direction: column; gap: 5px; font-size: .8125rem; margin-bottom: 21px; }
  .evidence-note { display: block; padding: 18px; }
  .evidence-note strong { display: block; margin-bottom: 7px; }
  .article-body h2 { font-size: 1.45rem; }
  .article-body p, .fact-list li { font-size: 1.0625rem; line-height: 2; }
  .summary-box, .term-origin { padding: 22px; }
  .summary-box { box-shadow: 3px 4px 0 var(--ink); }
  .context-box { padding-inline-start: 20px; }
  .comparison { gap: 12px; }
  .comparison > div { padding: 19px; }
  .source-box { position: static; padding: 22px; }
  .related { margin-top: 34px; }
  .related .section-head { align-items: center; }
  .related .section-head a { font-size: .875rem; }
  .prose h2 { font-size: 1.45rem; }
  .info-grid, .ethics-grid, .demo-brief, .dashboard-panels { grid-template-columns: minmax(0, 1fr); }
  .info-grid > section, .info-card, .ethics-card, .method-intro > section, .demo-brief > section { padding: 22px; }
  .project-main { padding: 23px 20px 45px; }
  .project-topbar { margin-bottom: 22px; font-size: .8125rem; }
  .project-topbar .text-link { font-size: .875rem; }
  .project-heading h1 { font-size: 2rem; }
  .project-heading > p:not(.eyebrow) { font-size: 1.0625rem; }
  .project-mobile-nav { gap: 6px 9px; }
  .project-mobile-nav select { font-size: 1rem; }
  .project-bottom { flex-direction: column; gap: 10px; }
  .project-note { padding: 22px; }
  .dashboard-stats { gap: 12px; }
  .dashboard-stats > div { padding: 18px; }
  .dashboard-stats strong { font-size: 2.5rem; }
  .dashboard-stats span { font-size: .875rem; }
  .brand-explainer { padding: 25px; gap: 26px; }
  .brand-explainer .brand-lockup { flex-basis: 100%; justify-content: center; }
  .brand-explainer .fahwa-wordmark { width: 245px; }
  .brand-explainer h2 { font-size: 1.45rem; }
  .palette > div { padding: 17px; }
  .budget-form { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .week-buttons button { flex: 1 0 35%; }
  .source-register details { padding: 17px; }
  th, td { padding: 13px 15px; }
  .footer-inner { flex-direction: column; align-items: start; gap: 23px; }
  .footer-brand .fahwa-wordmark { width: 155px; }
  .footer-links { gap: 13px 22px; }
  .footer-disclosure { font-size: .8125rem; padding-top: 20px; }
  dialog { padding: 24px; }
  .empty-state { padding: 28px 22px; }
  .empty-state h2 { font-size: 1.45rem; }
  .empty-state .button-row { flex-direction: column; }
  .empty-state .button-row > * { width: 100%; }
  .toast { bottom: 18px; padding: 11px 17px; font-size: .875rem; }
  .media-groups, .vision-map { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .media-group { padding: 21px; }
  .media-group h2 { font-size: 1.3rem; }
  .media-story-links a { font-size: 1rem; padding-block: 13px; }
  .piece-example { padding: 22px 20px; margin-inline-end: 5px; box-shadow: 4px 5px 0 var(--ink); }
  .piece-example h2, .piece-example blockquote { font-size: 1.4rem; }
  .piece-missing { padding: 16px 18px; }
  .piece-reveal { padding-top: 20px; }
  .piece-reveal h2, .piece-reveal h3 { font-size: 1.3rem; }
  .vision-map { margin-bottom: 26px; }
  .vision-map-step { padding: 18px 20px; }
  .vision-map-step h2, .vision-map-step h3, .vision-map-step > strong { font-size: 1.2rem; }
  .vision-guide-details { margin-block: 8px 24px; }
  .vision-guide-details > summary { min-height: 50px; padding: 12px 16px; font-size: 1rem; }
  .vision-guide-details > .vision-guide, .vision-guide-details > .vision-guide-body { padding: 18px; }
  .vision-guide-details > p, .vision-guide-details > .vision-map { margin-inline: 18px; }
  .story-context-note { margin-top: 14px; padding: 10px 13px; }
  .story-connections { margin-top: 28px; padding-top: 20px; }
  .connection-item { padding-block: 14px; font-size: 1rem; }
  .update-item { padding: 18px; }
  .update-item h2, .update-item h3 { font-size: 1.2rem; }
  .evidence-dialog { max-height: calc(100dvh - 32px); padding: 21px; }
  .evidence-claim { padding: 16px; }
  .share-preview-image { max-height: none; }
  .share-actions { gap: 9px; }
  .share-actions > .primary-button { flex-basis: 100%; }
  .share-actions > .outline-button { flex: 1; font-size: .875rem; padding-inline: 10px; }
  .context-shift { grid-template-columns: 1fr; gap: 10px; }
  .browse-controls .mobile-category label { font-size: .8125rem; line-height: 1.5; }
  .share-preview-image + h2 { margin-top: 18px; }
  #usability-form { padding: 21px 18px; }
  #usability-form > .primary-button { width: 100%; }
}
@media (max-width: 400px) {
  .wrap, .header-inner, .footer-inner, .footer-disclosure { padding-inline: 16px; }
  .fahwa-wordmark { width: 134px; }
  .project-entry { padding-inline: 9px; }
  .hero h1 { font-size: 2.05rem; }
  .context-paths a { padding-inline: 8px; }
  .context-paths strong { font-size: .875rem; }
  .story-card, .story-card[data-kind="term"] { grid-template-columns: 92px minmax(0, 1fr); gap: 0 13px; }
  .story-card > .art { width: 92px; height: 102px; }
  .story-card .art-mark { font-size: 1.12rem; }
  .story-card .art-mark.long-mark { font-size: .875rem; }
  .story-card .art-latin { font-size: .875rem; }
  .results-toolbar { flex-direction: column; }
  .period-control { width: 100%; justify-content: space-between; }
  .period-control select { flex: 1; min-width: 0; }
  .comparison { grid-template-columns: minmax(0, 1fr); }
  .project-main { padding-inline: 16px; }
  .project-mobile-nav { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .project-mobile-nav label, .project-mobile-nav select { grid-row: auto; }
  .project-mobile-nav select { margin-bottom: 9px; }
  .category-bars > div { grid-template-columns: 105px minmax(0, 1fr) 24px; gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .fahwa-feature:hover { transform: none; }
}
@media print {
  .reading-continuation { display: none; }
  :root { background: white; color: black; }
  body { background: white; color: black; }
  .site-header, .site-footer, .story-tools, .related, .project-sidebar, .project-topbar, .project-mobile-nav, .project-bottom, .toast { display: none; }
  .context-invite, .challenge-options, .challenge-actions { display: none; }
  .quick-entries, .browse-controls, .share-preview, .report-status { display: none; }
  .piece-example, .media-group, .vision-map-step, .update-item { box-shadow: none; break-inside: avoid; }
  .wrap, .project-main { max-width: none; padding: 0; }
  .page { padding: 0; }
  .story-head, .story-layout, .project-shell { display: block; }
  .story-head > .art { display: none; }
  .source-box { position: static; margin-top: 25px; }
  .summary-box { background: white; color: black; box-shadow: none; border: 1px solid #777; }
  .summary-box h2 { color: black; }
  .ai-disclosure { display: block; }
  a[href^="https:"]::after { content: " (" attr(href) ")"; font-size: 10pt; overflow-wrap: anywhere; }
  .source-item a::after { display: block; }
  .dashboard-stats, .story-card { break-inside: avoid; }
  .story-card { content-visibility: visible; }
}
