:root {
  --paper: #f7f8f2;
  --ink: #151713;
  --muted: #666a60;
  --line: #d9ddd2;
  --lime: #d5f45a;
  --serif: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.25; text-wrap: balance; }
button, a { touch-action: manipulation; }
main { min-height: 55vh; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--lime); }
:focus-visible { outline: 3px solid #6d841f; outline-offset: 5px; }
.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; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 16px; padding: 12px 18px; color: white; background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.container { width: calc(100% - var(--gutter) * 2); max-width: 1280px; margin-inline: auto; }
main > .container:last-child { padding-bottom: 76px; }
.narrow { max-width: 840px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 11px; font-weight: 650; letter-spacing: .19em; line-height: 1.5; }
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 3px; margin-right: 12px; background: var(--lime); vertical-align: middle; }
.arrow { display: inline-block; font-family: var(--sans); font-weight: 400; font-size: 1.2em; line-height: 1; transition: transform .18s ease; }
a:hover .arrow { transform: translate(2px, -2px); }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.text-link:hover { color: #4e621a; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 11px 20px; border: 1px solid transparent; border-radius: 6px; background: var(--lime); color: var(--ink); font-size: 14px; font-weight: 650; line-height: 1.45; transition: background .18s ease; }
.button:hover { background: #c9e747; }
.button.dark { background: var(--ink); color: var(--paper); }
.button.dark:hover { background: #353b2e; }
.button.outline { background: transparent; border-color: var(--ink); }
.button.outline:hover { background: #e9ecdf; }
.button.small { min-height: 36px; padding: 8px 14px; font-size: 12px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 4px; background: transparent; }
.icon-button:hover { background: #ecefe4; }

/* The masthead keeps the shop entrance visible at every size. */
.site-header { position: relative; z-index: 20; padding-inline: var(--gutter); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 22px; height: 77px; max-width: 1280px; margin: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font: 35px/1 Georgia, "Times New Roman", serif; letter-spacing: -1.5px; }
.brand > svg { width: 32px; height: 32px; }
.brand-dot { color: #a5c13e; }
.brand-caption { font-size: 11px; white-space: nowrap; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; white-space: nowrap; }
.main-nav > a { position: relative; font-size: 14px; line-height: 1.4; }
.main-nav > a:hover { color: #5b711e; }
.main-nav > a[aria-current="page"]::after { content: ""; position: absolute; height: 3px; bottom: -12px; left: 0; right: 0; background: var(--lime); }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: 20px; }
.store-button { min-height: 40px; padding: 10px 16px; white-space: nowrap; font-size: 13px; }
.menu-button { display: none; }

/* An open editorial first screen, with the illustration doing the work. */
.home-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 32px 0 25px; }
.home-intro h1 { margin: 10px 0 12px; font: 650 clamp(54px, 5vw, 72px)/1.16 var(--serif); letter-spacing: -.045em; }
.accent-stop { color: var(--ink); }
.intro-copy { font-size: 20px; color: var(--muted); line-height: 1.6; }
.issue-date { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; padding-bottom: 3px; font-size: 11px; color: var(--muted); }
.issue-date time { font-size: 13px; color: var(--ink); letter-spacing: .08em; }
.issue-date a { margin-top: 8px; color: var(--ink); font-size: 12px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 40px; }
.hero-story { position: relative; display: block; height: clamp(370px, 31vw, 450px); overflow: hidden; border-radius: 8px; background: #17121f; color: #fff; }
.hero-story > img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; transition: transform .5s ease; }
.hero-story:hover > img { transform: scale(1.025); }
.hero-story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 15%, rgba(9, 8, 17, .05) 32%, rgba(9, 8, 17, .66) 67%, rgba(9, 8, 17, .94)); }
.hero-caption { position: absolute; z-index: 1; bottom: 27px; left: 30px; right: 30px; display: block; }
.hero-kicker { color: var(--lime); font-size: 11px; letter-spacing: .07em; }
.hero-caption h2 { margin: 11px 0 12px; font: 650 39px/1.25 var(--serif); letter-spacing: -.015em; }
.hero-summary { display: block; max-width: 610px; color: #e8e8e8; font-size: 14px; line-height: 1.7; }
.hero-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; font-size: 11px; letter-spacing: .035em; color: #d0d0d3; }
.hero-meta .arrow { font-size: 22px; color: #fff; }
.hero-image-label { position: absolute; z-index: 1; top: 16px; right: 18px; padding: 3px 7px; border-radius: 3px; font-size: 10px; color: #e3dfe8; background: rgba(0, 0, 0, .35); }
.aside-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 12px; }
.aside-heading h2 { font: 650 23px/1.3 var(--serif); }
.aside-heading h2::after { content: ""; display: block; width: 24px; height: 3px; margin-top: 10px; background: var(--lime); }
.aside-heading a { font-size: 11px; }
.editor-picks { display: flex; flex-direction: column; }
.editor-picks article { flex: 1; padding: 14px 0; border-bottom: 1px solid var(--line); }
.editor-picks article:last-child { border-bottom: 0; padding-bottom: 0; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.editor-picks h3 { margin: 6px 0; font: 650 20px/1.35 var(--serif); }
.editor-picks h3 a:hover, .news-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.editor-picks p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 1; -webkit-box-orient: vertical; color: var(--muted); font-size: 13px; line-height: 1.7; }
.editor-picks time { display: block; margin-top: 7px; color: #777d70; font-size: 11px; letter-spacing: .04em; }
.quick-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 28px; }
.quick-links a { padding-right: 24px; border-right: 1px solid var(--line); }
.quick-links a:last-child { border-right: 0; }
.quick-links > a > span { display: block; font: 650 24px/1.3 var(--serif); }
.quick-links p { margin-top: 8px; font-size: 13px; color: var(--muted); }
.section { padding-top: 78px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-heading h2 { margin-top: 11px; font: 700 38px/1.25 var(--serif); letter-spacing: -.025em; }
section[aria-labelledby="news-section-title"] h2, section[aria-labelledby="tools-section-title"] h2 { font-family: var(--sans); font-weight: 750; }
.section-heading > .text-link { margin-bottom: 3px; white-space: nowrap; }
.section-description { margin: -12px 0 22px; color: var(--muted); font-size: 16px; }
.mobile-break { display: none; }
.source-note { margin-top: 24px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); line-height: 1.8; }

/* News stays in a magazine grid, without card frames. */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
.news-card { min-width: 0; }
.news-image { display: block; position: relative; overflow: hidden; border-radius: 6px; background: #e7e5eb; aspect-ratio: 1.6; }
.news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-image:hover img { transform: scale(1.03); }
.image-label { position: absolute; right: 9px; bottom: 8px; font-size: 9px; padding: 2px 5px; color: #fff; background: rgba(0, 0, 0, .48); border-radius: 2px; }
.news-card > .meta { margin-top: 15px; }
.news-card > .meta span:first-child { color: var(--ink); }
.news-card h3 { margin: 8px 0 10px; font-size: 22px; font-weight: 700; line-height: 1.45; letter-spacing: -.02em; }
.news-card > p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.date-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; font-size: 11px; color: #74796e; }
.date-line span { color: #7d8476; }
.archive-grid { margin-top: 27px; }
.archive-grid .news-card { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 48px 0 32px; }
.page-intro h1 { margin: 12px 0 18px; font: 750 56px/1.17 var(--sans); letter-spacing: -.055em; }
.page-intro .intro-copy { max-width: 900px; }
main:has(.guide-split) > .container > .page-intro h1, .narrow .page-intro h1 { font-family: var(--serif); font-weight: 650; }
.filter-toolbar { margin-bottom: 22px; }
.search-field { display: flex; align-items: center; gap: 14px; min-height: 55px; padding: 12px 17px; border: 1px solid #cdd3c4; border-radius: 6px; background: #fffefa; }
.search-field > svg { flex-shrink: 0; }
.search-field > input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; font-size: 15px; line-height: 1.6; }
.search-field > input::placeholder { color: #858b7c; }
.search-field:focus-within { outline: 2px solid #6d841f; outline-offset: 3px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.filter-tabs button { padding: 9px 18px; border: 0; border-radius: 5px; background: transparent; font-size: 14px; line-height: 1.5; }
.filter-tabs button:hover { background: #e9ecdf; }
.filter-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
main:has(.directory-grid) .filter-tabs button[aria-pressed="true"] { background: var(--lime); color: var(--ink); }
.filter-result { min-height: 18px; margin-top: 12px; font-size: 11px; }
.empty-state { margin: 26px 0; padding: 48px 24px; border-block: 1px solid var(--line); text-align: center; font-size: 15px; color: var(--muted); }

/* Tool symbols are original marks, rather than borrowed product logos. */
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; }
.tool-entry { display: flex; flex-direction: column; min-width: 0; padding: 23px 0; border-bottom: 1px solid var(--line); }
.tool-main { display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; align-items: start; gap: 13px; }
.tool-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 9px; background: #e5e9d8; font: 600 23px/1 Georgia, serif; }
.icon-chatgpt { background: #d6e9df; color: #176b52; }
.icon-claude { background: #edd5c1; color: #5e3824; }
.icon-gemini { background: #e4e5fb; color: #484dcc; }
.icon-notebooklm { background: #e7e0f8; color: #584688; }
.icon-perplexity, .icon-cursor, .icon-v0 { background: var(--ink); color: var(--paper); }
.icon-lovable { background: #f9d9cb; color: #cc5342; }
.icon-hugging-face { background: #f7e79b; color: #78561b; }
.icon-gamma { background: #e5d6f8; color: #7242a5; }
.icon-canva { background: #d7e5f5; color: #396785; }
.icon-krea { background: #e1e8e2; color: #304936; }
.icon-notion-ai { background: #ebede6; }
.icon-aitokin-linear-algebra { background: var(--lime); }
.tool-main h3 { margin-bottom: 6px; font-size: 17px; font-weight: 700; line-height: 1.4; }
.tool-main p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.tool-main small { display: block; margin-top: 8px; font-size: 11px; color: #818778; }
.tool-main > .arrow { margin-top: 4px; font-size: 19px; }
.tool-main:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.tool-official { align-self: flex-start; margin: 12px 0 0 53px; border-bottom: 1px solid #b8c0ac; padding-bottom: 2px; font-size: 11px; color: #59634e; }
.tool-official:hover { color: var(--ink); border-color: var(--ink); }
.directory-grid { margin-top: 12px; }
.store-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; padding: 26px 30px; border-radius: 6px; background: var(--lime); }
.store-strip h2, .store-strip h3 { font-size: 29px; font-weight: 750; letter-spacing: -.025em; }
.store-strip p { margin-top: 5px; font-size: 14px; color: #47551c; }
.store-strip > .button { flex-shrink: 0; }

/* A small, legible lesson diagram is drawn with real page elements. */
.guide-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.guide-feature { display: block; min-width: 0; overflow: hidden; border-radius: 6px; background: #e5dff2; }
.guide-art { position: relative; height: 270px; overflow: hidden; }
.lesson-number { position: absolute; top: 13px; left: 29px; color: #303132; font: italic 84px/1 Georgia, serif; letter-spacing: -10px; }
.art-sheet { position: absolute; width: 117px; height: 153px; padding: 20px 16px; border: 1px solid #cccec6; background: #f7f8f2; transform-origin: center; }
.art-sheet span { display: block; margin-bottom: 17px; font: 650 19px/1.2 var(--serif); }
.art-sheet i { display: block; height: 3px; margin: 11px 0; background: #c7c9c0; }
.art-sheet i:last-child { width: 65%; }
.sheet-a { left: 20%; bottom: 20px; transform: rotate(-12deg); }
.sheet-b { left: 48%; bottom: 37px; transform: rotate(5deg); }
.sheet-c { left: 69%; bottom: 57px; transform: rotate(8deg); background: #d7ed93; }
.sheet-c i { background: #a4b575; }
.art-arrow { position: absolute; top: 53%; left: 43%; font: 39px/1 Georgia, serif; }
.guide-feature-copy { padding: 22px 31px 29px; }
.guide-feature-copy h3 { margin: 12px 0 13px; font: 650 28px/1.45 var(--serif); }
.guide-feature-copy p { max-width: 480px; font-size: 15px; line-height: 1.85; color: #626469; }
.guide-feature-copy .text-link { margin-top: 21px; font-size: 12px; }
.guide-row { display: grid; grid-template-columns: 35px minmax(0, 1fr) 24px; align-items: start; gap: 17px; min-height: 160px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.guide-row:first-child { border-top: 1px solid var(--line); }
.row-index { color: #7f8677; font: 24px/1.2 Georgia, serif; }
.guide-row h3 { margin: 8px 0 10px; font: 650 23px/1.45 var(--serif); }
.guide-row p { color: var(--muted); font-size: 13px; line-height: 1.75; }
.guide-row > .arrow { font-size: 27px; }
.guide-row:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.resources-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 29px; padding-top: 23px; border-top: 1px solid var(--line); font-size: 12px; }
.resources-strip > span { margin-right: auto; font-weight: 650; }
.resources-strip a { padding-bottom: 3px; border-bottom: 1px solid #919986; }

/* The laboratory is the one full-width dark change of pace. */
.lab-section { margin-top: 76px; padding: 57px 0 60px; background: var(--ink); color: var(--paper); }
.lab-page { margin-top: 0; padding-top: 64px; }
.lab-heading { display: flex; align-items: center; justify-content: space-between; gap: 44px; }
.lab-heading .eyebrow { color: var(--lime); }
.lab-heading .eyebrow::before { display: none; }
.lab-heading h2 { margin: 17px 0 18px; font-size: 40px; font-weight: 700; letter-spacing: -.035em; }
.lab-heading h1 { margin: 17px 0 18px; font-size: 53px; font-weight: 700; letter-spacing: -.045em; }
.lab-heading p:not(.eyebrow) { font-size: 17px; color: #bfc5b7; }
.vector-art { width: 300px; height: auto; flex-shrink: 0; }
.lab-links { margin-top: 29px; }
.lab-links > a { display: grid; grid-template-columns: 300px minmax(0, 1fr) 28px; align-items: center; gap: 30px; padding: 23px 0; border-top: 1px solid #414739; }
.lab-links > a:last-child { border-bottom: 1px solid #414739; }
.lab-links h3 { font-size: 22px; font-weight: 600; }
.lab-links p { color: #c2c8b9; font-size: 14px; }
.lab-links .arrow { font-size: 29px; }
.lab-links a:hover h3 { color: var(--lime); }
.lab-section :focus-visible { outline-color: var(--lime); }
.lab-explainer { padding-top: 65px; }
.lab-explainer h2 { margin: 15px 0; font: 650 36px/1.4 var(--serif); }
.lab-explainer > p:not(.eyebrow) { max-width: 750px; color: var(--muted); font-size: 17px; }
.lab-explainer .text-link { margin-top: 23px; }

/* Detail pages preserve the same editorial rhythm. */
.back-link { display: inline-block; font-size: 12px; color: var(--muted); }
.back-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 840px) minmax(0, 1fr); gap: 66px; padding-top: 40px; }
.article { min-width: 0; }
.article-header { margin-top: 26px; }
.article-header h1 { margin: 15px 0 19px; font: 650 47px/1.34 var(--serif); letter-spacing: -.025em; }
.article-deck { font-size: 18px; line-height: 1.85; color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 23px; font-size: 11px; color: #7b8271; }
.article-cover { margin: 32px 0; }
.article-cover img { width: 100%; aspect-ratio: 1.8; object-fit: cover; border-radius: 6px; }
.article-cover figcaption { margin-top: 9px; color: #7b8271; font-size: 11px; }
.prose { overflow-wrap: anywhere; font-size: 16px; line-height: 1.95; }
.prose h2 { margin: 37px 0 13px; font: 650 27px/1.4 var(--serif); }
.prose h3 { margin: 28px 0 12px; font-size: 20px; }
.prose p { margin: 14px 0; }
.prose a:not(.button) { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose a:hover { color: #536921; }
.prose ol, .prose ul { padding-left: 23px; }
.prose li { margin: 9px 0; padding-left: 3px; }
.prose .editor-note { padding-left: 17px; border-left: 3px solid var(--lime); color: var(--muted); font-size: 13px; }
.article-sidebar { align-self: start; position: sticky; top: 30px; margin-top: 60px; padding-top: 21px; border-top: 1px solid var(--line); }
.article-sidebar h2 { margin: 13px 0 18px; font: 650 25px/1.4 var(--serif); }
.article-sidebar > a:not(.button) { display: block; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.8; }
.article-sidebar > a:not(.button):hover { text-decoration: underline; text-underline-offset: 4px; }
.article-sidebar > .button { margin-top: 25px; }
.article-related { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.article-related h2 { margin-bottom: 16px; font: 650 24px/1.4 var(--serif); }
.article-related a { display: inline-block; margin: 5px 25px 5px 0; font-size: 13px; border-bottom: 1px solid #a8b09c; padding-bottom: 3px; }
.tool-detail { max-width: 1080px; padding-top: 44px; }
.tool-detail-head { display: flex; align-items: center; gap: 22px; margin-top: 35px; }
.tool-detail-head > .tool-icon { width: 78px; height: 78px; border-radius: 14px; font-size: 42px; }
.tool-detail-head h1 { margin: 7px 0 6px; font-size: 48px; line-height: 1.1; letter-spacing: -.035em; }
.tool-detail-head .intro-copy { font-size: 18px; }
.detail-split { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 64px; margin-top: 22px; }
.tool-visit { align-self: start; position: sticky; top: 28px; margin-top: 35px; padding-top: 23px; border-top: 1px solid var(--line); }
.tool-visit h2 { font: 650 25px/1.4 var(--serif); }
.tool-visit p { margin: 11px 0 22px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.tool-visit > .button { width: 100%; }
.tool-visit > .muted { display: block; margin-top: 11px; font-size: 11px; }
.tool-visit hr { height: 1px; margin: 28px 0 22px; border: 0; background: var(--line); }
.tool-visit time { color: var(--ink); }
.guide-step { position: relative; padding: 28px 0 28px 55px; border-bottom: 1px solid var(--line); }
.guide-step .step-number { position: absolute; top: 31px; left: 0; color: #7f8874; font: 22px/1.4 Georgia, serif; }
.prose .guide-step h2 { margin: 0 0 12px; }
.prose .guide-step p { margin: 0; }
.prompt-section { margin-top: 35px; padding: 27px 0; border-block: 1px solid var(--line); }
.prompt-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.prose .prompt-heading h2 { margin: 0; }
.prompt-text { margin: 22px 0 17px; padding: 23px; border-radius: 5px; background: #eaf0e2; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.95 var(--sans); }
.prose .checklist { padding: 0; list-style: none; }
.prose .checklist li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checklist label { display: flex; align-items: flex-start; gap: 11px; }
.checklist input { flex-shrink: 0; width: 17px; height: 17px; margin: 6px 0 0; accent-color: var(--ink); }

/* Local workspaces share the visual language and have no nested card grid. */
.lab-back { margin-top: 35px; }
.lab-back + .page-intro { padding-top: 21px; }
.lab-workspace { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 54px; margin-top: 6px; padding-top: 31px; border-top: 1px solid var(--line); }
.lab-controls, .lab-preview { min-width: 0; }
.field { display: grid; gap: 8px; margin: 0 0 22px; font-size: 13px; font-weight: 600; }
fieldset.field { display: block; min-width: 0; padding: 0; border: 0; }
.field legend { padding: 0; margin-bottom: 12px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px; border: 1px solid #cdd3c4; border-radius: 5px; background: #fffefa; font-size: 14px; line-height: 1.75; font-weight: 400; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8b9181; }
.field [aria-invalid="true"] { border-color: #ad513f; }
.lab-controls > .muted { margin-top: 16px; font-size: 11px; line-height: 1.85; }
.lab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lab-actions .button { padding: 10px 16px; font-size: 12px; }
.lab-preview h2 { margin-bottom: 13px; font: 650 26px/1.4 var(--serif); }
.lab-preview h3 { margin: 24px 0 10px; font-size: 16px; }
.lab-preview .muted { margin: 13px 0; font-size: 12px; line-height: 1.85; }
.lab-output { min-height: 410px; margin: 21px 0; padding: 23px; border-radius: 5px; background: #edf0e5; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.9 var(--sans); }
.lab-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 23px; margin: 22px 0; }
.lab-metrics > div { min-width: 0; padding: 17px 0; border-bottom: 1px solid var(--line); }
.lab-metrics dt { font-size: 11px; color: var(--muted); }
.lab-metrics dd { margin: 8px 0 0; font: 500 29px/1.4 Georgia, var(--sans); overflow-wrap: anywhere; }
.lab-metrics .metric-wide { grid-column: 1 / -1; }
.lab-metrics .metric-wide dd { font-size: 42px; }
.lab-metrics [data-stat="orientation"] { font: 16px/1.5 var(--sans); }
.matrix-inputs, .vector-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.matrix-inputs label, .vector-inputs label { display: grid; gap: 7px; font-size: 12px; }
.matrix-inputs input, .vector-inputs input { font-family: Georgia, var(--sans); font-size: 22px; }
.matrix-canvas { display: block; width: 100%; height: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 6px; background: #f6f3eb; }
.matrix-legend { font-size: 10px !important; }

.weekly-edition { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 35px; padding: 31px 0; margin-bottom: 30px; border-block: 1px solid var(--line); }
.weekly-number { color: #8b957a; font: 88px/1 Georgia, serif; letter-spacing: -5px; }
.weekly-number span { display: block; margin-top: 12px; font: 9px/1.5 var(--sans); letter-spacing: .18em; color: var(--muted); }
.weekly-edition h2 { margin: 13px 0; font: 650 34px/1.4 var(--serif); }
.weekly-edition p:not(.eyebrow) { max-width: 890px; font-size: 15px; color: var(--muted); }
.weekly-edition .button { margin-top: 23px; }
.weekly-list > a { display: grid; grid-template-columns: 37px minmax(0, 1fr) 24px; gap: 20px; align-items: start; padding: 25px 0; border-bottom: 1px solid var(--line); }
.weekly-list h3 { margin: 7px 0 9px; font: 650 24px/1.4 var(--serif); }
.weekly-list p { color: var(--muted); font-size: 14px; }
.weekly-exercise { margin-top: 38px; padding: 31px; border-radius: 6px; background: var(--lime); }
.weekly-exercise .eyebrow::before { background: var(--ink); }
.weekly-exercise h2 { margin: 13px 0; font: 650 29px/1.4 var(--serif); }
.weekly-exercise > p:not(.eyebrow) { max-width: 900px; font-size: 15px; }
.weekly-exercise .button { margin-top: 22px; color: var(--paper); background: var(--ink); }
.subscribe-panel { margin: 5px 0 45px; padding: 29px 0 31px; border-block: 1px solid var(--line); }
.rss-symbol { display: flex; align-items: center; justify-content: center; width: 65px; height: 65px; border-radius: 50%; background: var(--lime); font: 46px/1 Georgia, serif; }
.subscribe-panel h2 { margin: 21px 0 13px; font: 650 30px/1.4 var(--serif); }
.subscribe-panel > p { color: var(--muted); font-size: 16px; }
.subscribe-panel code { display: block; margin: 24px 0 18px; padding: 16px 19px; border-radius: 5px; background: #eaf0e2; overflow-wrap: anywhere; font: 14px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }

.site-footer { padding: 41px 0 29px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-bottom: 29px; border-bottom: 1px solid var(--line); }
.footer-top .brand { font-size: 32px; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 15px 27px; font-size: 13px; }
.footer-top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; align-items: center; gap: 25px; margin-top: 23px; }
.footer-bottom p { font-size: 17px; }
.footer-bottom > span { margin-left: auto; font-size: 11px; color: #858b7d; }
.footer-legal { margin-top: 20px; text-align: center; font-size: 13px; line-height: 1.7; color: var(--muted); }
.footer-legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.article-toc { padding: 0 0 26px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.article-report { font-family: var(--sans); }
.article-toc > span { display: block; margin-bottom: 12px; font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.article-toc ol { margin: 0; padding-left: 1.4em; font-size: 15px; line-height: 1.9; }
.article-toc a { text-decoration: none; }
.article-toc a:hover { text-decoration: underline; text-underline-offset: 4px; }
.news-body-section { scroll-margin-top: 95px; margin-bottom: 34px; }
.article-report .news-body-section h2 { margin-top: 0; }
.editor-observation { padding: 20px 0 20px 20px; border-left: 3px solid var(--lime); margin: 40px 0; }
.editor-observation h2 { margin-top: 0; }
.editor-observation p:last-child { margin-bottom: 0; }
.source-details { padding-top: 26px; border-top: 1px solid var(--line); }
.source-details dl { display: grid; gap: 12px; margin: 20px 0; font-size: 14px; }
.source-details dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 15px; }
.source-details dt { color: var(--muted); }
.source-details dd { margin: 0; overflow-wrap: anywhere; }
.source-details p { font-size: 14px; color: var(--muted); }
.source-reference a { overflow-wrap: anywhere; }
.image-credit { display: block; margin-top: 5px; overflow-wrap: anywhere; }
.article-cover.source-media-cover img { width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; border-radius: 0; }
.news-image.source-media-preview { background: #eef0eb; }
.news-image.source-media-preview img { object-fit: contain; }
.news-image.source-media-preview:hover img { transform: none; }
.news-card .media-thumb-credit { font-size: 11px; line-height: 1.5; margin: 7px 0 0; color: var(--muted); }
@media (max-width: 480px) {
  .source-details dl > div { grid-template-columns: 86px minmax(0, 1fr); gap: 10px; }
  .article-toc ol { font-size: 14px; }
}

.search-dialog { width: min(720px, calc(100% - 40px)); max-height: calc(100dvh - 64px); padding: 28px; margin: min(14vh, 110px) auto auto; overflow: auto; border: 1px solid #c5cdbb; border-radius: 8px; background: var(--paper); color: var(--ink); }
.search-dialog:not([open]) { display: none; }
.search-dialog::backdrop { background: rgba(19, 23, 15, .62); backdrop-filter: blur(3px); }
.search-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.search-top h2 { font: 650 27px/1.4 var(--serif); }
.search-top .icon-button { font-size: 28px; font-weight: 300; }
.search-dialog > .muted { margin: 16px 0; font-size: 12px; }
.search-results a, .search-result { display: block; padding: 17px 0; border-bottom: 1px solid var(--line); }
.search-results a:hover { color: #586d21; }
.search-results h3, .search-result-title { margin: 6px 0; font-size: 17px; font-weight: 650; }
.search-results p, .search-result-description { font-size: 13px; color: var(--muted); line-height: 1.7; }
.search-results small, .search-result-type { font-size: 10px; color: var(--muted); letter-spacing: .035em; }
.toast { position: fixed; z-index: 80; bottom: 24px; left: 50%; max-width: calc(100% - 40px); padding: 12px 21px; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: 13px; text-align: center; pointer-events: none; opacity: 0; transform: translate(-50%, 16px); transition: opacity .18s ease, transform .18s ease; }
.toast:empty { display: none; }
.toast.is-visible, .toast.visible, .toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1080px) {
  :root { --gutter: 24px; }
  .header-inner { gap: 18px; }
  .brand-caption { display: none; }
  .main-nav { gap: 22px; }
  .header-actions { gap: 9px; margin-left: 12px; }
  .home-intro h1 { font-size: 54px; }
  .hero-grid { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 27px; }
  .hero-story { height: 400px; }
  .hero-caption { left: 25px; right: 25px; bottom: 23px; }
  .hero-caption h2 { font-size: 33px; }
  .hero-summary { font-size: 13px; }
  .editor-picks h3 { font-size: 18px; }
  .editor-picks p { font-size: 12px; }
  .editor-picks article { padding: 12px 0; }
  .news-grid, .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-grid { column-gap: 35px; }
  .page-intro h1 { font-size: 49px; }
  .guide-split { gap: 28px; }
  .guide-art { height: 245px; }
  .art-sheet { width: 96px; height: 137px; padding: 17px 12px; }
  .guide-feature-copy { padding-inline: 25px; }
  .guide-feature-copy h3 { font-size: 24px; }
  .guide-row { grid-template-columns: 30px minmax(0, 1fr) 20px; gap: 12px; min-height: 150px; }
  .guide-row h3 { font-size: 21px; }
  .lab-heading h1 { font-size: 44px; }
  .vector-art { width: 255px; }
  .lab-links > a { grid-template-columns: 255px minmax(0, 1fr) 25px; gap: 24px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 225px; gap: 38px; }
  .article-header h1 { font-size: 39px; }
  .detail-split { grid-template-columns: minmax(0, 1fr) 250px; gap: 38px; }
  .lab-workspace { gap: 34px; }
}

@media (max-width: 760px) {
  .header-inner { height: 71px; gap: 14px; }
  .brand { font-size: 31px; }
  .brand > svg { width: 27px; height: 27px; }
  .header-actions { margin-left: auto; gap: 8px; }
  .store-button { font-size: 12px; min-height: 40px; padding: 9px 13px; }
  .menu-button { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 71px; left: var(--gutter); right: var(--gutter); margin: 0; padding: 8px 16px; border: 1px solid var(--line); border-radius: 0 0 6px 6px; background: var(--paper); }
  .main-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .main-nav > a:last-child { border-bottom: 0; }
  .main-nav > a[aria-current="page"]::after { bottom: 7px; right: auto; width: 25px; }
  .home-intro { align-items: flex-start; flex-direction: column; gap: 14px; padding: 29px 0 24px; }
  .home-intro h1 { font-size: 47px; margin: 11px 0 12px; }
  .intro-copy { font-size: 17px; }
  .issue-date { flex-direction: row; align-items: center; gap: 13px; padding: 0; }
  .issue-date a { margin: 0 0 0 6px; }
  .issue-date time { font-size: 12px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 27px; }
  .hero-story { height: 390px; }
  .hero-caption h2 { font-size: 35px; }
  .editor-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 22px; }
  .aside-heading { grid-column: 1 / -1; }
  .editor-picks article { padding: 15px 0 0; border-top: 1px solid var(--line); border-bottom: 0; }
  .editor-picks h3 { font-family: var(--sans); font-size: 16px; line-height: 1.55; }
  .editor-picks p { display: none; }
  .editor-picks .meta { font-size: 9px; }
  .quick-links { gap: 20px; }
  .quick-links span { font-size: 19px; }
  .quick-links p { font-size: 11px; }
  .quick-links a { padding-right: 14px; }
  .section { padding-top: 58px; }
  .section-heading { gap: 20px; margin-bottom: 23px; }
  .section-heading h2 { font-size: 31px; }
  .section-heading .text-link { font-size: 12px; }
  .section-description { font-size: 14px; }
  .news-grid { gap: 29px 20px; }
  .news-card h3 { font-size: 19px; }
  .news-card > p { font-size: 13px; }
  .news-card .meta { gap: 5px; font-size: 10px; }
  .date-line { gap: 6px; font-size: 10px; }
  .page-intro { align-items: flex-start; flex-direction: column; gap: 16px; padding: 35px 0 27px; }
  .page-intro h1 { font-size: 43px; margin-bottom: 14px; }
  .filter-tabs { gap: 4px; margin-top: 15px; }
  .filter-tabs button { padding: 8px 13px; font-size: 12px; }
  .search-field { min-height: 51px; padding: 11px 14px; }
  .search-field > input { font-size: 14px; }
  .store-strip { align-items: flex-start; flex-direction: column; gap: 20px; padding: 24px; }
  .store-strip h2, .store-strip h3 { font-size: 27px; }
  .guide-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .guide-art { height: 280px; }
  .art-sheet { width: 120px; height: 157px; }
  .guide-feature-copy { padding: 21px 28px 28px; }
  .guide-feature-copy h3 { font-size: 28px; }
  .guide-row { min-height: 0; padding: 23px 0; }
  .guide-row h3 { font-size: 23px; }
  .resources-strip > span { flex-basis: 100%; }
  .lab-section { margin-top: 55px; padding: 43px 0 46px; }
  .lab-page { margin-top: 0; }
  .lab-heading { flex-direction: column; align-items: flex-start; gap: 26px; }
  .lab-heading h2, .lab-heading h1 { font-size: 35px; }
  .lab-heading p:not(.eyebrow) { font-size: 15px; }
  .vector-art { width: 240px; align-self: flex-end; }
  .lab-links { margin-top: 25px; }
  .lab-links > a { grid-template-columns: minmax(0, 1fr) 25px; gap: 10px 20px; padding: 23px 0; }
  .lab-links h3 { font-size: 21px; }
  .lab-links p { grid-column: 1; font-size: 13px; }
  .lab-links .arrow { grid-column: 2; grid-row: 1 / 3; }
  .lab-explainer { padding-top: 45px; }
  .lab-explainer h2 { font-size: 30px; }
  .lab-explainer > p:not(.eyebrow) { font-size: 15px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 45px; padding-top: 28px; }
  .article-header h1 { font-size: 37px; }
  .article-deck { font-size: 16px; }
  .article-sidebar { position: static; margin-top: 0; }
  .article-sidebar > a:not(.button) { padding-block: 13px; }
  .prose { font-size: 15px; }
  .prose h2 { font-size: 25px; }
  .article-meta { gap: 7px 13px; font-size: 10px; }
  .article-cover { margin: 25px 0; }
  .article-cover figcaption { font-size: 10px; }
  .tool-detail-head { gap: 17px; }
  .tool-detail-head > .tool-icon { width: 64px; height: 64px; font-size: 35px; }
  .tool-detail-head h1 { font-size: 39px; }
  .tool-detail-head .intro-copy { font-size: 15px; }
  .detail-split { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tool-visit { position: static; margin-top: 15px; }
  .tool-visit > .button { width: auto; }
  .guide-step { padding-left: 40px; }
  .guide-step .step-number { font-size: 19px; }
  .prompt-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .lab-workspace { grid-template-columns: minmax(0, 1fr); gap: 31px; padding-top: 26px; }
  .lab-preview { padding-top: 26px; border-top: 1px solid var(--line); }
  .lab-output { min-height: 0; }
  .weekly-edition { grid-template-columns: 75px minmax(0, 1fr); gap: 22px; }
  .weekly-number { font-size: 65px; }
  .weekly-edition h2 { font-size: 28px; }
  .weekly-list h3 { font-size: 22px; }
  .weekly-exercise { padding: 25px; }
  .weekly-exercise h2 { font-size: 26px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 25px; padding-bottom: 25px; }
  .footer-top nav { gap: 14px 22px; font-size: 12px; }
  .footer-bottom { flex-wrap: wrap; gap: 18px; }
  .footer-bottom p { flex-basis: 100%; font-size: 16px; }
  .footer-bottom > span { margin-left: 0; }
  .footer-bottom > .button { margin-left: auto; }
  .search-dialog { padding: 22px; margin-top: 32px; }
}

@media (max-width: 480px) {
  :root { --gutter: 20px; }
  .header-inner { gap: 10px; }
  .brand { gap: 7px; font-size: 26px; letter-spacing: -1.2px; }
  .brand > svg { width: 22px; height: 22px; }
  .header-actions { gap: 5px; }
  .icon-button { flex-basis: 30px; width: 30px; height: 38px; }
  .icon-button svg { width: 20px; height: 20px; }
  .store-button { width: 119px; padding: 8px 10px; font-size: 11px; line-height: 1.35; white-space: normal; gap: 6px; }
  .store-button .arrow { font-size: 15px; flex-shrink: 0; }
  .home-intro h1 { font-size: 39px; letter-spacing: -.045em; }
  .home-intro .intro-copy { font-size: 15px; }
  .eyebrow { font-size: 9px; letter-spacing: .17em; }
  .eyebrow::before { width: 21px; margin-right: 9px; }
  .issue-date { font-size: 10px; gap: 11px; }
  .issue-date time { font-size: 11px; }
  .hero-story { height: 355px; }
  .hero-caption { left: 21px; right: 21px; bottom: 23px; }
  .hero-caption h2 { margin: 10px 0 12px; font-size: clamp(21px, 6.7vw, 29px); }
  .hero-kicker { font-size: 10px; }
  .hero-summary { font-size: 12px; line-height: 1.75; }
  .hero-meta { margin-top: 14px; font-size: 10px; }
  .hero-image-label { top: 12px; right: 12px; font-size: 9px; }
  .editor-picks { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .aside-heading { padding-bottom: 14px; }
  .aside-heading h2 { font-size: 23px; }
  .editor-picks article { padding: 17px 0; }
  .editor-picks h3 { font: 650 20px/1.5 var(--serif); }
  .editor-picks p { display: -webkit-box; -webkit-line-clamp: 2; font-size: 12px; }
  .editor-picks .meta { font-size: 10px; }
  .quick-links { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 17px; }
  .quick-links a { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 15px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-links span { font-size: 21px; }
  .quick-links p { margin: 0; font-size: 12px; }
  .section { padding-top: 46px; }
  .section-heading { align-items: flex-end; gap: 16px; }
  .section-heading h2 { font-size: 27px; line-height: 1.35; }
  .section-heading > .text-link { gap: 6px; font-size: 10px; }
  .mobile-break { display: block; }
  .news-grid, .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .news-grid { row-gap: 33px; }
  .news-card h3 { font-size: 22px; }
  .news-card > p { font-size: 14px; }
  .news-card .meta { font-size: 11px; gap: 9px; }
  .date-line { font-size: 11px; gap: 12px; }
  .page-intro h1 { font-size: 36px; line-height: 1.3; letter-spacing: -.04em; }
  .page-intro .intro-copy { font-size: 16px; }
  .filter-tabs button { padding: 7px 11px; }
  .search-field { gap: 10px; }
  .search-field > input { font-size: 13px; }
  .tool-entry { padding-block: 22px; }
  .tool-main { grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 15px; }
  .tool-icon { width: 44px; height: 44px; font-size: 25px; }
  .tool-main h3 { font-size: 18px; }
  .tool-main p { font-size: 14px; }
  .tool-official { margin-left: 59px; }
  .store-strip { padding: 23px; }
  .store-strip h2, .store-strip h3 { font-size: 24px; line-height: 1.4; }
  .store-strip p { font-size: 13px; }
  .guide-art { height: 230px; }
  .lesson-number { font-size: 71px; left: 23px; top: 12px; }
  .art-sheet { width: 83px; height: 126px; padding: 17px 12px; }
  .art-sheet span { font-size: 16px; margin-bottom: 13px; }
  .art-sheet i { height: 2px; margin-block: 10px; }
  .sheet-a { left: 17%; bottom: 17px; }
  .sheet-b { left: 48%; bottom: 28px; }
  .sheet-c { left: 70%; bottom: 43px; }
  .art-arrow { left: 41%; top: 54%; font-size: 31px; }
  .guide-feature-copy { padding: 19px 23px 25px; }
  .guide-feature-copy h3 { font-size: 25px; }
  .guide-feature-copy p { font-size: 14px; }
  .guide-row h3 { font-size: 21px; }
  .resources-strip { gap: 17px; font-size: 11px; }
  .lab-heading h1, .lab-heading h2 { font-size: 30px; line-height: 1.4; }
  .lab-heading p:not(.eyebrow) { font-size: 14px; }
  .vector-art { width: 220px; }
  .lab-links h3 { font-size: 20px; }
  .article-header h1 { font-size: 31px; }
  .article-deck { font-size: 15px; }
  .article-cover img { aspect-ratio: 1.5; }
  .prose h2 { font-size: 24px; }
  .article-related h2 { font-size: 23px; }
  .tool-detail-head { gap: 15px; }
  .tool-detail-head > .tool-icon { width: 58px; height: 58px; }
  .tool-detail-head h1 { font-size: 34px; }
  .prompt-text, .lab-output { padding: 19px; font-size: 12px; }
  .lab-preview h2 { font-size: 24px; }
  .lab-metrics { column-gap: 16px; }
  .lab-metrics dd { font-size: 26px; }
  .lab-metrics .metric-wide dd { font-size: 37px; }
  .weekly-edition { grid-template-columns: minmax(0, 1fr); gap: 19px; }
  .weekly-number { display: flex; align-items: flex-end; gap: 16px; font-size: 57px; }
  .weekly-number span { margin: 0 0 7px; }
  .weekly-edition h2 { font-size: 26px; }
  .weekly-list > a { grid-template-columns: 27px minmax(0, 1fr) 18px; gap: 12px; }
  .weekly-list h3 { font-size: 20px; }
  .weekly-list p { font-size: 13px; }
  .weekly-exercise { padding: 23px; }
  .weekly-exercise h2 { font-size: 23px; }
  .subscribe-panel h2 { font-size: 26px; }
  .subscribe-panel > p { font-size: 15px; }
  .subscribe-panel code { font-size: 12px; padding: 14px; }
  .footer-top nav { gap: 13px 20px; }
  .footer-bottom > span { font-size: 10px; }
  .search-dialog { width: calc(100% - 24px); padding: 20px; margin-top: 20px; }
  .search-top h2 { font-size: 24px; }
  .search-results h3 { font-size: 16px; }
  main > .container:last-child { padding-bottom: 53px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  body { color: #000; background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .search-dialog, .toast, .skip-link, .article-sidebar, .menu-button, .header-actions { display: none !important; }
  .container { width: 100%; max-width: none; }
  .article-layout, .detail-split, .lab-workspace { display: block; }
  .article-header h1, .page-intro h1, .home-intro h1 { font-size: 26pt; }
  .article-cover img { max-height: 220px; object-fit: contain; }
  .lab-section { color: #000; background: #fff; padding: 20px 0; }
  .lab-section p { color: #333; }
  .lab-links > a { border-color: #bbb; }
  .vector-art { display: none; }
  .button, .icon-button { border: 1px solid #888; background: none !important; color: #000 !important; }
  .lab-preview { margin-top: 25px; }
  a { color: #000; }
  h1, h2, h3 { break-after: avoid; }
  figure, .tool-entry, .lab-metrics > div { break-inside: avoid; }
}
