/* Stage 2 additions. The approved Stage 1 typography and core demo remain in base.css.
   No new display colours, decorative surfaces, external font files or scroll effects. */
input { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
button, a, input, summary { touch-action: manipulation; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
input[type="search"] { -webkit-appearance: none; appearance: none; border-radius: 0; }
#main:focus { outline: none; }
.header-row { gap: 28px; }
.desktop-nav { gap: 24px; }
.header-actions { gap: 22px; }
.desktop-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.header-release[aria-current="page"] { outline: 1px solid var(--black); outline-offset: 3px; }
.section-anchor { scroll-margin-top: 0; }
.line-title { white-space: pre-line; }
.feature-section { width: min(var(--page-width), calc(100% - 80px)); margin: 0 auto; padding: 76px 0; display: grid; grid-template-columns: 1fr 1.13fr; align-items: center; gap: 80px; }
.feature-copy { max-width: 450px; }
.feature-copy h2 { font-size: 42px; line-height: 1.22; letter-spacing: -.04em; }
.feature-copy > p { font-size: 16px; color: var(--gray); line-height: 1.75; margin: 22px 0 10px; }
.feature-copy .text-link { margin-top: 10px; font-weight: 500; }
.feature-visual { min-width: 0; }
.feature-reverse { grid-template-columns: 1.13fr 1fr; }
.feature-reverse .feature-copy { order: 2; }
.feature-reverse .feature-visual { order: 1; }
.dictionary-example, .history-example { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 36px; min-height: 358px; }
.dictionary-example .pane-label, .history-example .pane-label { margin-bottom: 22px; }
.search-control { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; min-height: 48px; overflow: hidden; }
.search-control:focus-within { border-color: var(--black); outline: 1px solid var(--black); outline-offset: 2px; }
.search-control input { width: 100%; min-width: 0; background: none; border: 0; outline: 0; font-size: 16px; height: 46px; padding: 0 16px; }
.search-control input::placeholder { color: var(--gray); opacity: 1; }
.search-control button { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; }
.term-list { margin: 8px 0 0; min-height: 144px; }
.term-list p { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--line); margin: 0; padding: 9px 0; font-size: 18px; }
.term-list p:last-child { border: 0; }
.example-count { margin: 12px 0 0; color: var(--gray); font-size: 12px; }
.empty-message { margin: 22px 0; color: var(--gray); font-size: 15px; }
.term-list:has(+ .empty-message:not([hidden])) { min-height: 0; }
.history-tabs { width: fit-content; gap: 28px; margin-bottom: 20px; }
.history-tabs button[aria-selected="true"]::after { background: var(--green); height: 3px; }
#history-panel { min-height: 180px; }
.history-sample { margin: 24px 0 16px; font-size: 23px; line-height: 1.65; letter-spacing: -.015em; }
.history-footnote { font-size: 13px; line-height: 1.7; color: var(--gray); margin: 18px 0 0; }
.history-example .copy-button { font-size: 14px; }
.privacy-summary { width: min(var(--page-width), calc(100% - 80px)); margin: 72px auto 0; padding: 72px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.13fr; gap: 80px; }
.privacy-summary h2 { font-size: 42px; }
.privacy-summary-copy p { color: var(--gray); font-size: 16px; margin: 0 0 18px; line-height: 1.75; }
.privacy-summary-copy .text-link { font-weight: 500; }
.faq-section { width: min(var(--page-width), calc(100% - 80px)); margin: 0 auto; padding: 96px 0 104px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.faq-section > div > .text-link { margin-top: 16px; color: var(--gray); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { min-height: 72px; padding: 20px 0; font-size: 17px; font-weight: 500; line-height: 1.6; }
.faq-item summary img { flex-shrink: 0; width: 20px; }
.faq-item summary:hover span { text-decoration: underline; text-underline-offset: 4px; }
.faq-answer { padding: 0 30px 22px 0; }
.faq-answer p { color: var(--gray); font-size: 15px; line-height: 1.75; margin: 0; }
.faq-answer .text-link { font-size: 14px; margin-top: 8px; }
.site-footer { width: min(var(--page-width), calc(100% - 80px)); margin: 0 auto; border-top: 1px solid var(--line); padding: 40px 0 30px; }
.footer-main { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.footer-brand { min-height: 44px; display: flex; align-items: center; }
.footer-brand img { width: 136px; height: auto; aspect-ratio: 1332 / 224; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.footer-nav a { display: flex; align-items: center; min-height: 44px; font-size: 13px; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { margin-top: 32px; display: flex; justify-content: space-between; gap: 24px; color: var(--gray); font-size: 12px; }
.document-page { width: min(1040px, calc(100% - 80px)); margin: 76px auto 0; padding: 0 0 96px; }
.page-heading, html[lang="en"] .page-heading { font-size: clamp(42px, 4.6vw, 66px); letter-spacing: -.04em; line-height: 1.15; font-weight: 600; white-space: pre-line; outline: 0; max-width: 900px; }
.page-lead { max-width: 760px; margin: 22px 0 0; font-size: 19px; color: var(--gray); line-height: 1.75; }
.reading-body { max-width: 740px; margin-top: 72px; }
.reading-body section { padding: 0 0 42px; }
.reading-body h2 { font-size: 27px; line-height: 1.4; letter-spacing: -.025em; }
.reading-body p { font-size: 16px; line-height: 1.9; color: var(--gray); margin: 16px 0 0; }
.reading-body .text-link { font-weight: 500; }
.approach-page { max-width: 860px; margin-top: 82px; }
.approach-page .page-heading, html[lang="en"] .approach-page .page-heading { font-size: clamp(60px, 6.5vw, 86px); }
.approach-page .page-lead { max-width: 700px; font-size: 23px; margin-top: 30px; }
.approach-page .reading-body { margin-top: 68px; }
.approach-page .reading-body section { padding-bottom: 40px; }
.document-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 8px; }
.guide-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 68px; align-items: start; margin-top: 64px; }
.guide-sidebar { position: sticky; top: 136px; }
.guide-sidebar nav { display: flex; flex-direction: column; border-left: 1px solid var(--line); padding-left: 16px; gap: 4px; }
.guide-sidebar a { min-height: 44px; display: flex; align-items: center; color: var(--gray); font-size: 14px; }
.guide-sidebar a:hover, .guide-sidebar a[aria-current="location"] { color: var(--black); }
.guide-sidebar a[aria-current="location"] { font-weight: 600; }
.guide-sidebar a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.guide-body > section { border-top: 1px solid var(--line); padding: 32px 0 46px; }
.guide-body > section:first-child { padding-top: 0; border-top: 0; }
.guide-body h2 { font-size: 30px; line-height: 1.4; letter-spacing: -.03em; }
.guide-body h3 { font-size: 18px; line-height: 1.5; font-weight: 600; margin: 0; }
.guide-body p { font-size: 15px; line-height: 1.85; color: var(--gray); margin: 14px 0; }
.instruction-list { list-style-type: decimal; padding-left: 23px; margin: 28px 0 14px; }
.instruction-list li { padding-left: 10px; margin: 0 0 24px; }
.instruction-list li::marker { font-weight: 500; }
.instruction-list li p { margin: 8px 0 0; }
.shortcut-list { padding: 6px 0; margin: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shortcut-list div { display: grid; grid-template-columns: 100px 1fr; gap: 16px; align-items: center; min-height: 56px; padding: 6px 0; }
.shortcut-list dd { margin: 0; color: var(--gray); font-size: 15px; }
kbd { font: inherit; font-size: 13px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 6px; display: inline-block; color: var(--black); }
.support-questions { margin: 24px 0 16px; }
.support-questions .faq-item summary { font-size: 16px; min-height: 64px; padding: 16px 0; }
.support-links { margin-top: 24px; }
.support-links > div { padding: 16px 0; border-top: 1px solid var(--line); }
.support-links .text-link { font-weight: 500; font-size: 17px; }
.support-links p { font-size: 14px; margin: 0; }
.small-note, .guide-body p.small-note { font-size: 12px; color: var(--gray); line-height: 1.75; }
.release-layout { margin-top: 56px; display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 68px; align-items: start; }
.release-primary { padding-top: 1px; }
.release-primary .button { white-space: normal; text-align: center; }
.release-primary .button img { flex-shrink: 0; }
.release-primary .small-note { margin: 10px 0 0; }
.release-date { font-size: 13px; line-height: 1.85; color: var(--gray); margin-top: 28px; max-width: 320px; }
.release-facts { margin: 0; border-top: 1px solid var(--line); }
.release-facts > div { border-bottom: 1px solid var(--line); padding: 22px 0; }
.release-facts dt { font-size: 15px; font-weight: 600; }
.release-facts dd { font-size: 15px; color: var(--gray); line-height: 1.85; margin: 8px 0 0; }
.release-bottom { margin-top: 48px; max-width: 660px; }
.release-bottom p { font-size: 15px; color: var(--gray); line-height: 1.85; }
.not-found { min-height: 60vh; }
.not-found .button { margin-top: 28px; }
.noscript-note { width: min(100% - 48px, 900px); margin: 24px auto; color: var(--gray); font-size: 14px; }
.noscript-note a { text-decoration: underline; }
/* All mobile components reflow, rather than shrinking a desktop screenshot. */
@media (max-width: 1020px) and (min-width: 761px) {
 .desktop-nav { gap: 16px; font-size: 13px; }
 .header-actions { gap: 14px; }
 .header-row { gap: 20px; padding-left: 24px; }
 .brand img { width: 120px; }
 .header-release { padding: 0 16px; }
 .feature-section, .privacy-summary { gap: 40px; }
 .dictionary-example, .history-example { padding: 26px; }
 .feature-copy h2, .privacy-summary h2 { font-size: 36px; }
 .guide-layout { grid-template-columns: 180px minmax(0,1fr); gap: 40px; }
 .release-layout { grid-template-columns: 290px minmax(0,1fr); gap: 40px; }
 .footer-nav { gap: 12px 20px; }
}
@media (max-width: 760px) {
 .header-row { gap: 12px; }
 .header-actions { gap: 16px; }
 .mobile-nav a[aria-current="page"] { font-weight: 600; }
 .section-anchor { scroll-margin-top: 0; }
 .feature-section, .feature-reverse { width: calc(100% - 40px); padding: 44px 0; display: flex; flex-direction: column; gap: 26px; align-items: stretch; }
 .feature-copy { max-width: none; }
 .feature-copy h2, .privacy-summary h2 { font-size: 32px; }
 .feature-copy > p { font-size: 15px; margin-top: 16px; max-width: 580px; }
 .feature-copy .text-link { margin-top: 4px; }
 .feature-reverse .feature-copy, .feature-reverse .feature-visual { order: initial; }
 .dictionary-example, .history-example { padding: 24px; min-height: 0; }
 .history-example { min-height: 352px; }
 .dictionary-example .pane-label, .history-example .pane-label { margin-bottom: 18px; }
 .history-sample { font-size: 21px; }
 .privacy-summary { width: calc(100% - 40px); margin: 32px auto 0; padding: 44px 0; display: block; }
 .privacy-summary-copy { margin-top: 24px; }
 .privacy-summary-copy p { font-size: 15px; }
 .faq-section { width: calc(100% - 40px); padding: 48px 0 56px; display: block; }
 .faq-section h2 { font-size: 32px; }
 .faq-section > div > .text-link { margin-top: 8px; }
 .faq-list { margin-top: 26px; }
 .faq-item summary { min-height: 66px; padding: 18px 0; font-size: 16px; }
 .faq-answer { padding-right: 4px; padding-bottom: 20px; }
 .site-footer { width: calc(100% - 40px); padding: 30px 0 24px; }
 .footer-main { display: block; }
 .footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 22px; }
 .footer-nav a { min-height: 46px; font-size: 13px; }
 .footer-bottom { margin-top: 28px; font-size: 11px; }
 .document-page { width: calc(100% - 40px); margin: 44px auto 0; padding-bottom: 56px; }
 .page-heading, html[lang="en"] .page-heading { font-size: 40px; line-height: 1.18; letter-spacing: -.04em; }
 .page-lead { font-size: 16px; line-height: 1.8; margin-top: 18px; }
 .reading-body { margin-top: 42px; }
 .reading-body h2 { font-size: 24px; line-height: 1.4; }
 .reading-body p { font-size: 15px; line-height: 1.85; margin-top: 12px; }
 .reading-body section { padding-bottom: 32px; }
 .approach-page { margin-top: 44px; }
 .approach-page .page-heading, html[lang="en"] .approach-page .page-heading { font-size: 55px; }
 .approach-page .page-lead { font-size: 19px; margin-top: 24px; }
 .approach-page .reading-body { margin-top: 44px; }
 .approach-page .reading-body section { padding-bottom: 34px; }
 .guide-layout { display: block; margin-top: 36px; }
 .guide-sidebar { position: static; margin-bottom: 36px; }
 .guide-sidebar nav { display: grid; grid-template-columns: 1fr 1fr; border-left: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; gap: 0 16px; }
 .guide-sidebar a { font-size: 13px; }
 .guide-body h2 { font-size: 26px; }
 .guide-body > section { padding: 28px 0 32px; }
 .guide-body h3 { font-size: 17px; }
 .guide-body p { font-size: 15px; }
 .instruction-list { padding-left: 20px; }
 .instruction-list li { padding-left: 6px; }
 .shortcut-list div { grid-template-columns: 80px 1fr; gap: 12px; }
 .shortcut-list dd { font-size: 14px; }
 .support-links .text-link { font-size: 16px; }
 .release-layout { display: block; margin-top: 32px; }
 .release-primary .button { max-width: 100%; font-size: 14px; }
 .release-date { max-width: none; font-size: 12px; margin: 20px 0 32px; }
 .release-facts > div { padding: 20px 0; }
 .release-facts dd { font-size: 14px; }
 .release-bottom { margin-top: 28px; }
 .document-links .text-link { white-space: normal; font-size: 14px; }
 .document-links .text-link img { flex-shrink: 0; }
}
@media (max-width: 359px) {
 .header-actions { gap: 8px; }
 .header-row { gap: 10px; }
 .feature-copy h2, .privacy-summary h2, .faq-section h2 { font-size: 29px; }
 .dictionary-example, .history-example { padding: 20px; }
 .page-heading, html[lang="en"] .page-heading { font-size: 34px; }
 .approach-page .page-heading, html[lang="en"] .approach-page .page-heading { font-size: 47px; }
 .feature-copy .text-link, .privacy-summary .text-link { font-size: 14px; }
 .footer-nav a { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 *, *::before, *::after { animation: none !important; transition: none !important; }
}
