:root {
  color-scheme: dark;
  --bg: #101923;
  --bg-soft: #162330;
  --bg-elevated: #1b2b39;
  --fg: #f5f3ee;
  --muted: #a8b4be;
  --muted-low: #899ba9;
  --border: #35424e;
  --hairline: rgba(166, 195, 206, .17);
  --accent: #a6c3ce;
  --accent-light: #d8e6e7;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans: 'Avenir Next', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: #547386; color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 5px; }
[hidden] { display: none !important; }
.shell { width: min(calc(100% - 108px), 1450px); margin-inline: auto; }
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Navigation */
.site-header { width: 100%; position: relative; z-index: 20; }
.nav-inner { height: 83px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--hairline); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; font-size: 24px; font-weight: 660; letter-spacing: -.045em; white-space: nowrap; }
.brand-logo { flex-shrink: 0; object-fit: contain; }
.wordmark .brand-logo { width: 42px; height: 42px; }
.site-nav { display: flex; align-items: center; gap: 38px; }
.nav-link { font-size: 14px; line-height: 1; font-weight: 450; color: var(--muted); transition: color .2s; }
.nav-link:hover, .nav-link.is-current { color: var(--fg); }
.nav-link.is-current { text-underline-offset: 9px; }
.menu-toggle { display: none; }

/* Home / hero */
.hero { padding: 86px 16px 91px; min-height: 352px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; isolation: isolate; }
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0; left: 10%; right: 10%; background: radial-gradient(ellipse at 50% 65%, rgba(56,86,109,.15), transparent 70%); pointer-events: none; }
.hero-eyebrow { margin: 0 0 31px; color: var(--accent-light); font-size: 16px; font-weight: 480; letter-spacing: .015em; }
.hero h1 { max-width: 1130px; margin: 0; font-weight: 500; font-size: clamp(44px, 5.8vw, 88px); line-height: 1.055; letter-spacing: -.058em; text-wrap: balance; }
.hero-rule { height: 1px; background: var(--hairline); }
.main-content { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 4.6vw, 75px); padding-top: 52px; padding-bottom: 89px; align-items: start; }

/* Roadmap left rail */
.roadmap-aside { border-right: 1px solid var(--hairline); padding-right: 26px; min-width: 0; }
.roadmap-sticky { position: sticky; top: 26px; }
.aside-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; letter-spacing: .13em; font-weight: 590; padding-bottom: 21px; }
.aside-heading a { font-size: 18px; font-weight: 300; letter-spacing: 0; color: var(--accent); }
.milestone-list { margin-left: 4px; position: relative; }
.milestone-list::before { position: absolute; content: ''; top: 10px; bottom: 18px; left: 7px; width: 1px; background: linear-gradient(var(--accent) 0%,var(--border) 30%,var(--border) 100%); }
.milestone { position: relative; }
.milestone-button { background: transparent; width: 100%; border: 0; padding: 7px 0 17px; display: flex; align-items: flex-start; gap: 15px; text-align: left; color: var(--muted); }
.milestone-num { flex: 0 0 15px; height: 15px; margin-top: 2px; background: var(--bg); border: 1px solid #698292; border-radius: 50%; font-size: 0; z-index: 1; position: relative; transition: background .2s,border-color .2s; }
.milestone-num::after { content: ''; width: 3px; height: 3px; border-radius: 50%; background: #91abb9; position: absolute; top: 5px; left: 5px; }
.milestone-title { flex: 1; font-size: 14px; line-height: 1.36; letter-spacing: -.015em; transition: color .2s; }
.milestone-chevron { color: var(--muted-low); font-size: 18px; margin-top: -4px; line-height: 1; transition: transform .2s; }
.milestone-button:hover .milestone-title, .milestone-button[aria-expanded='true'] .milestone-title { color: var(--fg); }
.milestone-button[aria-expanded='true'] .milestone-num { background: var(--accent); border-color: var(--accent); }
.milestone-button[aria-expanded='true'] .milestone-num::after { background: var(--bg); }
.milestone-button[aria-expanded='true'] .milestone-chevron { transform: rotate(45deg); color: var(--accent); }
.milestone-details { padding: 0 0 23px 30px; animation: fadeIn .18s ease-out; }
.milestone-details p { margin: 0 0 13px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.milestone-details ul { padding: 0; list-style: none; margin: 0 0 15px; display: grid; gap: 8px; }
.milestone-details li { color: #d0d9de; font-size: 12px; line-height: 1.4; }
.milestone-details li::before { content: '•'; color: var(--accent); padding-right: 8px; }
.milestone-more { color: var(--accent); font-size: 11px; font-weight: 550; }
.sidebar-end-link { margin-left: 33px; padding-top: 6px; display: inline-block; color: var(--accent); font-size: 12px; line-height: 1.5; }
.sidebar-end-link:hover, .milestone-more:hover, .text-arrow:hover { color: #fff; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* Article grids */
.editorial-column { min-width: 0; }
.section-heading, .bottom-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.section-heading h2, .bottom-heading h2 { font-size: clamp(22px, 2vw, 30px); line-height: 1.2; margin: 0; font-weight: 500; letter-spacing: -.04em; }
.section-heading > a, .bottom-heading > a { white-space: nowrap; color: var(--muted); font-size: 13px; transition: color .2s; }
.section-heading > a:hover, .bottom-heading > a:hover { color: var(--fg); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 53px 19px; }
.article-card { display: flex; flex-direction: column; min-width: 0; }
.card-media { width: 100%; overflow: hidden; border-radius: 13px; aspect-ratio: 1.30; background: #263b4b; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.18,.7,.2,1),filter .4s; }
.article-card:hover .card-media img { transform: scale(1.045); filter: saturate(1.08); }
.cover-brand { background: radial-gradient(ellipse at 50% 40%, #285158, #142e38 80%); }
.cover-benchmark { background: radial-gradient(ellipse at 50% 45%, #fffaf0, #e7dcc6); }
.card-media.cover-brand img, .article-hero-media.cover-brand img { object-fit: contain; padding: 11%; }
.card-media.cover-benchmark img, .article-hero-media.cover-benchmark img { object-fit: contain; padding: 6%; }
.card-media.cover-chart { background: #fff; }
.card-media.cover-chart img { object-fit: contain; }
.article-card:hover .card-media.cover-chart img { transform: none; filter: none; }
.card-information { display: flex; flex-direction: column; flex: 1; padding-top: 17px; }
.article-card h3 { margin: 0; font-size: clamp(17px,1.55vw,23px); font-weight: 510; line-height: 1.24; letter-spacing: -.035em; transition: color .2s; }
.article-card:hover h3 { color: #d6e6ea; }
.card-date { display: block; color: var(--muted); margin-top: auto; padding-top: 12px; font-size: 12px; line-height: 1.5; }
.end-of-grid { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 47px; margin-top: 50px; border-top: 1px solid var(--hairline); }
.end-of-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.end-of-grid a { font-size: 13px; color: var(--accent); white-space: nowrap; }

/* Interior pages */
.interior-page { min-height: 70vh; padding-top: 74px; padding-bottom: 100px; }
.page-header { max-width: 880px; padding-bottom: 69px; }
.page-kicker { color: var(--accent); font-size: 11px; letter-spacing: .13em; font-weight: 580; margin: 0 0 30px; text-transform: uppercase; }
.page-header h1 { max-width: 1080px; font-size: clamp(44px, 5.45vw, 82px); line-height: 1.05; font-weight: 490; letter-spacing: -.06em; margin: 0 0 30px; text-wrap: balance; }
.page-intro { font-size: clamp(17px,1.7vw,23px); line-height: 1.58; letter-spacing: -.02em; color: var(--muted); max-width: 760px; margin: 0; }
.page-rule { height: 1px; background: var(--hairline); margin-bottom: 48px; }
.text-arrow { display: inline-block; color: var(--accent); font-size: 14px; font-weight: 570; transition: color .2s; }

/* Full roadmap */
.roadmap-full { max-width: 1000px; }
.roadmap-full-step { display: grid; grid-template-columns: 100px minmax(0,1fr); scroll-margin-top: 30px; }
.full-step-number { color: var(--accent); font-size: 16px; font-variant-numeric: tabular-nums; font-weight: 500; position: relative; }
.full-step-line { width: 1px; background: var(--border); position: absolute; left: 9px; top: 35px; bottom: 0; }
.roadmap-full-step:last-child .full-step-line { bottom: 55px; }
.full-step-body { padding-bottom: 90px; }
.full-step-body h2 { font-size: clamp(28px, 3.4vw, 47px); line-height: 1.13; font-weight: 490; letter-spacing: -.052em; margin: 0 0 21px; }
.full-step-body > p { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 710px; margin: 0 0 26px; }
.branch-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.branch-list span { border: 1px solid var(--border); padding: 11px 14px; border-radius: 999px; color: #d4dce1; font-size: 12px; }
.roadmap-note { border-top: 1px solid var(--hairline); display: flex; gap: 17px; max-width: 995px; padding-top: 26px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.roadmap-note .note-icon { color: var(--accent); font-size: 20px; }
.roadmap-note p { margin: 0; max-width: 780px; }

/* Writing index */
.archive-tools { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 21px; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill { background: transparent; border: 1px solid var(--border); color: var(--muted); border-radius: 100px; font-size: 12px; padding: 10px 15px; transition: all .16s; }
.filter-pill:hover { border-color: var(--accent); color: var(--fg); }
.filter-pill.is-selected { background: #d6e5e8; color: #15212a; border-color: #d6e5e8; }
.search-wrap { display: flex; align-items: center; border-bottom: 1px solid var(--border); gap: 9px; min-width: 215px; padding: 6px 0; }
.search-icon { font-size: 24px; line-height: .7; color: var(--muted); }
.search-wrap input { background: transparent; color: var(--fg); border: 0; outline: none; font-size: 13px; width: 100%; }
.search-wrap input::placeholder { color: #94a6b3; }
.archive-context { color: var(--muted-low); font-size: 12px; margin-bottom: 25px; }
.archive-grid { column-gap: 26px; }
.no-results { color: var(--muted); margin: 60px 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 29% 1fr; gap: 40px; padding: 42px 0 65px; border-bottom: 1px solid var(--hairline); }
.about-label { color: var(--accent); font-size: 12px; letter-spacing: .10em; padding-top: 9px; }
.about-grid h2 { font-size: clamp(28px,3.4vw,48px); font-weight: 490; letter-spacing: -.052em; max-width: 750px; line-height: 1.2; margin: 0 0 23px; }
.about-grid p { max-width: 780px; color: var(--muted); font-size: 17px; line-height: 1.75; margin: 0 0 21px; }
.about-callout { padding: 100px 0 10px; }
.about-callout span { color: var(--accent); font-size: 12px; letter-spacing: .14em; }
.about-callout h2 { font-size: clamp(38px,5vw,77px); font-weight: 480; line-height: 1.1; letter-spacing: -.05em; max-width: 1100px; margin: 18px 0; }

/* Articles */
.article-page { padding-top: 42px; }
.back-link { display: inline-block; color: var(--muted); font-size: 13px; margin-bottom: 75px; }
.back-link:hover { color: var(--fg); }
.article-header { max-width: 920px; margin-inline: auto; padding-bottom: 48px; }
.article-header .page-kicker { margin-bottom: 28px; }
.meta-dot { color: #6e8391; padding-inline: 7px; }
.article-header h1 { font-size: clamp(48px, 6.1vw, 91px); line-height: 1.06; font-weight: 490; letter-spacing: -.061em; max-width: 1060px; margin: 0 0 25px; text-wrap: balance; }
.article-subhead { font-size: clamp(18px,1.85vw,24px); color: var(--muted); line-height: 1.55; letter-spacing: -.019em; max-width: 830px; margin: 0 0 34px; }
.article-byline { display: flex; align-items: center; gap: 7px; color: #c7d2d8; font-size: 13px; }
.draft-chip { padding: 6px 10px; background: rgba(166,195,206,.09); border: 1px solid rgba(166,195,206,.19); border-radius: 100px; margin-left: 12px; color: var(--accent); font-size: 11px; }
.article-source { margin-top: 24px; }
.article-hero-media { max-width: 1160px; margin: 0 auto 70px; aspect-ratio: 2.04; overflow: hidden; border-radius: 13px; background: var(--bg-elevated); }
.article-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.article-hero-media.cover-benchmark { background: #f7f6f1; border: 1px solid #e5e7df; }
.article-hero-media.cover-chart { max-width: 880px; aspect-ratio: auto; background: #fff; }
.article-hero-media.cover-chart img { height: auto; object-fit: contain; }
.article-body { max-width: 735px; margin: 0 auto 100px; font-size: 18px; line-height: 1.84; color: #cbd5db; }
.article-body p { margin: 0 0 29px; }
.article-body .lead { font-size: 24px; font-weight: 470; letter-spacing: -.025em; color: var(--fg); line-height: 1.55; margin-bottom: 35px; }
.article-body h2 { color: var(--fg); font-size: 32px; letter-spacing: -.043em; font-weight: 510; line-height: 1.2; margin: 58px 0 22px; }
.article-body h3 { color: var(--fg); font-size: 24px; letter-spacing: -.025em; font-weight: 510; line-height: 1.3; margin: 40px 0 17px; }
.article-body ol { padding-inline-start: 26px; margin: 0 0 29px; }
.article-body li + li { margin-top: 14px; }
.article-body strong { color: var(--fg); }
.article-body a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 4px; }
.article-body a:hover { color: #fff; }
.model-example { margin: 26px 0; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); }
.model-example .example-label { margin-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.model-example p:last-child { margin-bottom: 0; }
.model-example [lang='ar'] { font-family: 'Noto Naskh Arabic', 'Segoe UI', Tahoma, serif; font-size: 22px; line-height: 1.9; text-align: right; }
.model-example .turn-divider { height: 1px; background: var(--hairline); margin: 20px 0; }
.model-example .thought-excerpt { margin: 0 0 18px; padding: 12px 16px; border-left: 2px solid rgba(166, 195, 206, .35); border-radius: 0 8px 8px 0; background: rgba(16, 25, 35, .45); color: var(--muted); font-size: 14px; line-height: 1.65; }
.article-body .example-note { color: var(--muted); font-size: 13px; line-height: 1.7; }
.article-body .article-supplement { margin: 22px 0; border-top: 1px solid var(--border); }
.article-supplement > summary { padding: 20px 0; color: var(--fg); font-size: 17px; font-weight: 540; line-height: 1.5; cursor: pointer; }
.article-supplement > summary::marker { color: var(--accent); }
.article-supplement > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
.article-supplement[open] > summary { margin-bottom: 8px; }
.article-supplement .supplement-body { font-size: 15px; line-height: 1.75; }
.article-supplement .supplement-body > p { margin-bottom: 22px; }
.chat-window { margin: 32px 0; border: 1px solid var(--border); border-radius: 18px; background: #0d151d; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.chat-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--hairline); }
.chat-model-pick { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 8px; font-size: 14px; font-weight: 600; line-height: 1; color: var(--fg); }
.chat-model-pick img { width: 16px; height: auto; }
.chat-model-pick svg, .chat-actions svg, .chat-send svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.chat-model-pick svg { width: 13px; height: 13px; color: var(--muted-low); }
.chat-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 1.4; color: var(--muted); }
.chat-thread { display: flex; flex-direction: column; gap: 26px; padding: 28px 28px 8px; }
.chat-user { align-self: flex-end; max-width: 80%; padding: 10px 18px; border-radius: 22px; background: #22313d; color: var(--fg); }
.chat-reply { color: #dbe2e6; }
.chat-avatar { width: 22px; height: auto; margin-bottom: 10px; }
.article-body .chat-thread p { margin: 0; }
.article-body .chat-thread p + p { margin-top: 12px; }
.chat-thread [lang='ar'] { font-family: 'Noto Naskh Arabic', 'Segoe UI', Tahoma, serif; font-size: 21px; line-height: 1.85; text-align: right; }
.chat-thinking { margin-bottom: 14px; }
.chat-thinking-label { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); }
.article-body .chat-thinking .thought-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin: 8px 0 0; padding-left: 14px; border-left: 2px solid var(--border); color: var(--muted-low); font-size: 14px; line-height: 1.65; font-style: italic; -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent); mask-image: linear-gradient(to bottom, #000 45%, transparent); }
.chat-actions { display: flex; gap: 4px; margin-top: 10px; color: var(--muted-low); }
.chat-actions svg { width: 28px; height: 28px; padding: 6px; border-radius: 6px; }
.chat-composer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 20px 20px; padding: 10px 10px 10px 18px; border: 1px solid var(--border); border-radius: 24px; background: var(--bg-soft); font-size: 15px; color: var(--muted-low); }
.chat-send { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--bg); }
.chat-send svg { width: 16px; height: 16px; stroke-width: 1.8; }
.article-figure { margin: 35px 0; }
.article-figure img { width: 100%; height: auto; background: #fff; border-radius: 10px; }
.article-figure figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.pipeline-figure { width: min(1040px, calc(100vw - 108px)); position: relative; left: 50%; transform: translateX(-50%); margin-block: 34px 42px; }
.pipeline-figure picture { display: block; }
.pipeline-figure img { background: #f7f6f1; border-radius: 20px; }
.pipeline-figure figcaption { max-width: 735px; margin-inline: auto; }
.task-chart-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.task-chart-grid img { width: calc((100% - 36px) / 3); background: #fff; border-radius: 16px; }
.task-chart-grid.benchmark-task-scores img { width: calc((100% - 18px) / 2); }
.chart-pair-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.chart-pair-grid.token-chart-pair { grid-template-columns: 1.0233fr 1.52fr; align-items: stretch; }
.chart-pair-grid img { width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: 16px; }
.closing-chart-figure { max-width: 640px; margin-inline: auto; }
.closing-chart-figure img { background: #fff; border-radius: 18px; }
.article-table-wrap { margin: 30px 0 34px; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); }
.article-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.article-table caption { padding: 16px 15px; text-align: left; color: var(--fg); font-weight: 540; }
.article-table th, .article-table td { padding: 12px 15px; border-bottom: 1px solid var(--hairline); text-align: left; white-space: nowrap; }
.article-table th { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; background: rgba(255, 255, 255, .02); }
.article-table tr:last-child td { border-bottom: 0; }
.article-table .num { text-align: right; }
.article-table tr.is-lead-row td { color: var(--fg); background: rgba(166, 195, 206, .06); font-weight: 520; }
.model-response-list { margin-top: 16px; border-top: 1px solid var(--hairline); padding-top: 14px; display: grid; gap: 11px; }
.model-response-item { display: grid; grid-template-columns: 165px 78px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 9px 12px; border-radius: 8px; background: rgba(16, 25, 35, .45); font-size: 15px; line-height: 1.55; }
.answer-excerpts .model-response-item { grid-template-columns: 165px minmax(0, 1fr); }
.model-response-name { color: var(--fg); font-weight: 540; font-size: 13px; }
.verdict-badge { display: inline-block; text-align: center; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.verdict-badge.is-correct { background: rgba(72, 187, 120, .16); color: #8ce0ad; border: 1px solid rgba(72, 187, 120, .35); }
.verdict-badge.is-partial { background: rgba(236, 201, 75, .15); color: #f4d87c; border: 1px solid rgba(236, 201, 75, .34); }
.verdict-badge.is-incorrect { background: rgba(245, 101, 101, .14); color: #f59c9c; border: 1px solid rgba(245, 101, 101, .3); }
.model-response-text { color: #d5dfe5; min-width: 0; }
.model-response-text [lang='ar'] { font-size: 19px; line-height: 1.75; text-align: right; display: block; }
@media (max-width: 780px) {
  .task-chart-grid.benchmark-task-scores img { width: 100%; max-width: 580px; }
  .pipeline-figure { width: 100%; left: auto; transform: none; }
  .pipeline-figure picture, .pipeline-figure figcaption { max-width: 480px; margin-inline: auto; }
  .task-chart-grid img { width: calc((100% - 14px) / 2); }
  .chart-pair-grid, .chart-pair-grid.token-chart-pair { grid-template-columns: 1fr; }
  .model-response-item { grid-template-columns: 1fr auto; gap: 6px 10px; }
  .model-response-text { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .task-chart-grid img { width: 100%; max-width: 420px; }
}
.paper-reference { padding-top: 26px; border-top: 1px solid var(--hairline); }
.article-note { border-left: 2px solid var(--accent); padding: 14px 21px; background: rgba(166,195,206,.06); margin-top: 50px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.article-placeholder { padding: 30px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.article-placeholder p { margin-bottom: 12px; color: var(--fg); }
.article-bottom { border-top: 1px solid var(--hairline); padding-top: 43px; padding-bottom: 90px; }
.related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 850px; }
.related-grid .card-media { aspect-ratio: 1.7; }
.not-found { min-height: 60vh; padding-top: 100px; }
.not-found h1 { font-size: 48px; font-weight: 500; letter-spacing: -.05em; }

/* Footer */
.site-footer { padding-bottom: 30px; }
.footer-line { height: 1px; background: var(--hairline); }
.footer-content { min-height: 110px; display: flex; gap: 25px; align-items: center; justify-content: space-between; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 19px; font-weight: 650; letter-spacing: -.035em; }
.footer-brand .brand-logo { width: 32px; height: 32px; }
.footer-content > span { color: var(--muted); font-size: 12px; }
.footer-content > a:last-child { color: var(--accent); font-size: 12px; }

@media (min-width: 1580px) { .hero { padding-top: 110px; padding-bottom: 110px; } }
@media (max-width: 1120px) {
  .shell { width: min(calc(100% - 64px),1450px); }
  .main-content { grid-template-columns: 205px minmax(0,1fr); gap: 32px; }
  .roadmap-aside { padding-right: 17px; }
  .card-grid { column-gap: 15px; }
  .card-information { padding-top: 13px; }
  .article-card h3 { font-size: 17px; }
  .site-nav { gap: 26px; }
}
@media (max-width: 780px) {
  .shell { width: min(calc(100% - 40px), 740px); }
  .nav-inner { height: 70px; }
  .wordmark .brand-logo { width: 36px; height: 36px; }
  .menu-toggle { display: flex; border: none; background: transparent; padding: 12px; margin-right: -12px; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
  .menu-toggle span { width: 21px; height: 1px; background: var(--fg); }
  .site-nav { position: absolute; display: none; top: 70px; left: 0; right: 0; padding: 19px 20px 27px; background: #14212d; border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; gap: 0; box-shadow: 0 15px 30px #0004; }
  .site-nav.is-open { display: flex; }
  .nav-link { padding: 14px 3px; font-size: 16px; }
  .hero { padding: 75px 3px 79px; min-height: 320px; }
  .hero h1 { font-size: clamp(44px, 7.9vw, 66px); }
  .hero-eyebrow { margin-bottom: 25px; }
  .desktop-break { display: none; }
  .main-content { display: flex; flex-direction: column; gap: 53px; padding-top: 33px; }
  .roadmap-aside { width: 100%; border-right: none; padding-right: 0; border-bottom: 1px solid var(--hairline); padding-bottom: 31px; }
  .roadmap-sticky { position: static; }
  .aside-heading { padding-bottom: 10px; }
  .milestone-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 20px; margin-left: 0; }
  .milestone-list::before { display: none; }
  .milestone-button { padding: 11px 0 12px; }
  .milestone-details { padding-bottom: 12px; }
  .sidebar-end-link { margin-left: 0; margin-top: 3px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 42px 16px; }
  .article-card h3 { font-size: 20px; }
  .card-media { aspect-ratio: 1.28; }
  .interior-page { padding-top: 58px; }
  .page-header { padding-bottom: 43px; }
  .page-rule { margin-bottom: 35px; }
  .archive-tools { align-items: stretch; flex-direction: column; }
  .search-wrap { max-width: 330px; }
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .about-callout { padding-top: 65px; }
  .article-page { padding-top: 29px; }
  .back-link { margin-bottom: 51px; }
  .article-hero-media { margin-bottom: 45px; }
  .article-body { font-size: 16px; }
  .chat-thread { padding: 22px 16px 4px; }
  .chat-user { max-width: 92%; }
  .chat-thread [lang='ar'] { font-size: 18px; }
  .chat-composer { margin: 14px 12px 14px; }
  .article-body .lead { font-size: 21px; }
  .article-body h2 { font-size: 27px; }
}
@media (max-width: 480px) {
  .shell { width: calc(100% - 32px); }
  .wordmark { font-size: 22px; }
  .hero { padding: 77px 0 71px; min-height: 310px; }
  .hero h1 { font-size: clamp(39px, 10.1vw, 50px); line-height: 1.085; }
  .hero-eyebrow { font-size: 14px; }
  .milestone-list { grid-template-columns: 1fr; }
  .milestone-button { padding: 8px 0 12px; }
  .main-content { gap: 38px; }
  .section-heading h2 { font-size: 23px; }
  .section-heading a { font-size: 12px; }
  .card-grid { grid-template-columns: 1fr; gap: 39px; }
  .card-media { aspect-ratio: 1.48; }
  .article-card h3 { font-size: 22px; }
  .end-of-grid { flex-direction: column; align-items: flex-start; margin-top: 38px; padding-top: 28px; }
  .page-header h1 { font-size: 43px; }
  .page-intro { font-size: 17px; }
  .roadmap-full-step { grid-template-columns: 42px minmax(0,1fr); }
  .full-step-body { padding-bottom: 67px; }
  .full-step-body h2 { font-size: 29px; }
  .full-step-body > p { font-size: 15px; }
  .branch-list span { font-size: 11px; }
  .filter-pills { gap: 7px; }
  .filter-pill { font-size: 11px; padding: 9px 12px; }
  .article-header h1 { font-size: 46px; }
  .article-subhead { font-size: 18px; }
  .article-byline { flex-wrap: wrap; }
  .article-hero-media { aspect-ratio: 1.36; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-content { flex-wrap: wrap; justify-content: flex-start; gap: 12px 25px; padding-block: 29px; }
  .footer-content > span { flex: 1; min-width: 150px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Blog 3 components */
.article-body .brief-panel { margin: 34px 0 10px; padding: 22px 26px 6px; border: 1px solid var(--border); border-left: 2px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--bg-soft); }
.brief-panel .brief-label { margin: 0 0 12px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.article-body .brief-panel ol { padding-inline-start: 22px; font-size: 16px; line-height: 1.7; }
.article-body .brief-panel li + li { margin-top: 12px; }
.article-body .word-trace { margin: 28px 0 32px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); overflow: hidden; }
.word-trace-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--hairline); }
.word-trace-word { font-family: 'Noto Naskh Arabic', 'Segoe UI', Tahoma, serif; font-size: 34px; line-height: 1.4; color: var(--fg); }
.word-trace-gloss { color: var(--muted); font-size: 14px; }
.article-body .word-trace-list { list-style: none; margin: 0; padding: 0; }
.word-trace-row { display: grid; grid-template-columns: minmax(0, 1fr) 176px; gap: 4px 20px; padding: 14px 24px; border-bottom: 1px solid var(--hairline); }
.article-body .word-trace-row + .word-trace-row { margin-top: 0; }
.trace-task { color: var(--fg); font-size: 15px; line-height: 1.5; }
.trace-target { color: var(--muted); }
.trace-task [lang='ar'] { font-family: 'Noto Naskh Arabic', 'Segoe UI', Tahoma, serif; font-size: 18px; }
.trace-result { grid-row: span 2; display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-size: 14px; color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trace-meter { display: inline-flex; gap: 3px; }
.trace-meter i { width: 9px; height: 16px; border-radius: 2px; background: rgba(166, 195, 206, .14); }
.trace-meter i.on { background: var(--accent); }
.trace-who { color: var(--muted); font-size: 13px; line-height: 1.5; }
.article-body .word-trace-note { margin: 0; padding: 12px 24px 14px; color: var(--muted-low); font-size: 12px; line-height: 1.6; }
.article-body .form-legend { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 -14px; font-size: 13px; }
.form-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }
.form-chip [lang='ar'] { font-family: 'Noto Naskh Arabic', 'Segoe UI', Tahoma, serif; font-size: 15px; }
.form-chip.is-hass, .form-table td.is-hass { background: rgba(116, 196, 184, .14); border-color: rgba(116, 196, 184, .5); color: #bfe6df; }
.form-chip.is-msa, .form-table td.is-msa { background: rgba(224, 150, 82, .13); border-color: rgba(224, 150, 82, .45); color: #f0c89f; }
.form-table td[lang='ar'] { font-family: 'Noto Naskh Arabic', 'Segoe UI', Tahoma, serif; font-size: 18px; text-align: right; }
.form-table td.is-hass { box-shadow: inset 2px 0 0 rgba(116, 196, 184, .8); }
.form-table td.is-msa { box-shadow: inset 2px 0 0 rgba(224, 150, 82, .8); }
.model-example .model-response-list + .example-note { margin-top: 14px; }
.form-chip.is-hass::before, .form-table td.is-hass::before { content: '●'; margin-inline-end: 6px; font-size: 10px; vertical-align: middle; }
.form-chip.is-msa::before, .form-table td.is-msa::before { content: '○'; margin-inline-end: 6px; font-size: 10px; vertical-align: middle; }
.article-table.fit-table th { white-space: normal; vertical-align: bottom; line-height: 1.35; }
.article-table.fit-table th, .article-table.fit-table td { padding: 11px 10px; }
.article-table.fit-table th:first-child, .article-table.fit-table td:first-child { padding-left: 15px; }
.form-table td[lang='ar'] { font-size: 17px; white-space: nowrap; padding-inline: 8px; }
.form-table tfoot th, .form-table tfoot td { border-top: 1px solid var(--border); border-bottom: 0; color: var(--fg); background: rgba(255, 255, 255, .02); }
.form-table tfoot th { font-size: 12px; letter-spacing: .04em; text-transform: none; }
@media (max-width: 780px) {
  .word-trace-head, .word-trace-row, .article-body .word-trace-note { padding-inline: 16px; }
  .word-trace-row { grid-template-columns: 1fr; }
  .trace-result { grid-row: auto; justify-content: flex-start; }
  .article-body .brief-panel { padding: 18px 18px 4px; }
}
