@charset "UTF-8";
:root {
  color-scheme: light;
  /* Document design-assets palette: 藍鉄・生成・灰青・紫水晶・練色. */
  --ink: #393f4c;
  --canvas: #fbfaf5;
  --border-subtle: #c0c6c9;
  --nav-accent: var(--ink);
  --text-muted: color-mix(in srgb, var(--ink) 72%, var(--canvas));

  /* Component roles derived from the shared palette above. */
  --surface-link-dark: color-mix(in srgb, var(--canvas) 5.5%, transparent);
  --surface-link-dark-hover: color-mix(in srgb, var(--canvas) 9.5%, transparent);
  --surface-link-dark-active: color-mix(in srgb, var(--canvas) 13%, transparent);
  --surface-hero-link: color-mix(in srgb, var(--ink) 86%, transparent);
  --surface-hero-link-hover: color-mix(in srgb, var(--ink) 92%, transparent);
  --surface-hero-link-active: color-mix(in srgb, var(--ink) 98%, transparent);
  --surface-link-light: color-mix(in srgb, var(--canvas) 58%, var(--border-subtle));
  --surface-link-hover: color-mix(in srgb, var(--canvas) 40%, var(--border-subtle));
  --surface-link-active: color-mix(in srgb, var(--canvas) 28%, var(--border-subtle));
  --hero-photo-shade: color-mix(in srgb, var(--ink) 68%, transparent);
  --serif: Georgia, "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --fade-duration: 1.6s;
  --optical-heading-offset: -.085em;
  --ease: cubic-bezier(.2,.75,.2,1);
  --gutter: clamp(24px, 6vw, 96px);
  --layout-max: 1600px;
  --reading-width: 1100px;
  --reading-compact-width: 800px;
  --control-height: 56px;
  --control-compact-height: 48px;
  --control-icon-size: 26px;
  --arrow-size: 18px;
  --feedback-error-base: #77332e;
  --feedback-error: var(--feedback-error-base);
  --reveal-offset: 18px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 80px;
  --space-8: 96px;
  --space-9: 112px;
  --space-10: 128px;
  --section-boundary-gap: var(--space-10);
  --section-padding: var(--space-6);
  --article-list-gap: var(--space-5);
  --content-flow-gap: var(--space-3);
  /* Shared typography roles. */
  --page-title-size: 112px;
  --page-title-leading: 1.0;
  --important-heading-size: 96px;
  --important-heading-leading: 1.0;
  --normal-heading-size: 48px;
  --normal-heading-leading: 1.4;
  --article-heading-size: 42px;
  --keyword-size: 28px;
  --keyword-leading: 1.6;
  --important-keyword-size: calc(var(--keyword-size) * 1.5);
  --normal-text-size: 20px;
  --normal-text-leading: 1.6;
  --auxiliary-text-size: 16px;
  --auxiliary-text-leading: 1.6;
  --surface-link-standby: color-mix(in srgb, var(--ink) 7%, var(--canvas));
  --text-link-standby: color-mix(in srgb, var(--ink) 52%, var(--canvas));
}
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: auto; scroll-padding-top: var(--space-3); }
body { margin: 0; background: var(--ink); color: var(--ink); font: var(--normal-text-size)/var(--normal-text-leading) var(--serif); -webkit-font-smoothing: antialiased; overflow-x: clip; }
.photo-backdrop { position: fixed; z-index: 0; inset: 0 0 auto; width: 100%; height: 100vh; height: 100lvh; overflow: hidden; background: var(--ink); pointer-events: none; }
.photo-backdrop::after { content: ""; position: absolute; z-index: 1; inset: 0; background: var(--hero-photo-shade); opacity: var(--photo-shade-opacity, 1); pointer-events: none; }
.backdrop-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: var(--photo-opacity,0); }
main,.site-footer { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
button,input,select,textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { cursor: default; }
a,button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline: 2px solid var(--nav-accent); outline-offset: 5px; }
h1,h2,h3,h4,p,figure,dl,dd,ul { margin: 0; }
ul { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.page-gutter { padding-inline: var(--gutter); }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.eyebrow { text-transform: uppercase; }
.skip-link { position: fixed; z-index: 100; left: 12px; top: -100px; padding: 10px 20px; background: var(--canvas); color: var(--ink); }
.skip-link:focus { top: 12px; }
.text-link { border: 0; background: var(--theme-control); color: var(--theme-text); }
.auxiliary-text { margin-block-start: 0; }
.link-arrow { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; color: inherit; opacity: .6; transition: transform .3s var(--ease),opacity .3s; }
.link-arrow svg { display: block; width: var(--arrow-size); height: var(--arrow-size); }

/* Themes are inherited by every shared control and content component. */
.theme-light {
  --theme-text: var(--ink); --theme-surface: var(--canvas);
  --feedback-error: var(--feedback-error-base);
  --theme-muted: var(--text-muted); --theme-control: var(--surface-link-light);
  --theme-control-hover: var(--surface-link-hover); --theme-focus: var(--ink);
  --theme-control-active: var(--surface-link-active);
  --theme-disabled-control: var(--surface-link-standby); --theme-disabled-text: var(--text-link-standby);
}
.theme-dark {
  --theme-text: var(--canvas); --theme-surface: var(--ink);
  --feedback-error: color-mix(in srgb,var(--feedback-error-base) 30%,var(--canvas));
  --theme-muted: color-mix(in srgb,var(--canvas) 72%,var(--ink));
  --theme-control: var(--surface-link-dark); --theme-control-hover: var(--surface-link-dark-hover);
  --theme-control-active: var(--surface-link-dark-active);
  --theme-disabled-control: var(--surface-link-dark);
  --theme-disabled-text: color-mix(in srgb,var(--canvas) 52%,var(--ink));
  --theme-focus: var(--canvas);
}
.theme-light,.theme-dark { color: var(--theme-text); --surface-color: color-mix(in srgb,var(--theme-surface) 94%,transparent); }
:where(.theme-light,.theme-dark) :is(a,button,input,select,textarea):focus-visible { outline-color: var(--theme-focus); }
.paired-english { display: block; }
.section-heading :is(h2,h3) { margin-left: var(--optical-heading-offset); }
.section-frame { padding-block: var(--section-padding); }
.section-content { display: flex; flex-direction: column; padding-top: var(--space-4); }
.section-content>:not(:first-child) { margin-block-start: var(--content-flow-gap); }
.section-content>:not(:first-child).auxiliary-text { margin-block-start: 0; }

/* Explicit type roles are independent of section names and heading levels. */
.page-title { font: var(--page-title-size)/var(--page-title-leading) var(--serif); }
.important-heading { font: var(--important-heading-size)/var(--important-heading-leading) var(--serif); }
.normal-heading { font: var(--normal-heading-size)/var(--normal-heading-leading) var(--serif); text-wrap: balance; line-break: strict; }
.article-heading { font: var(--article-heading-size)/var(--normal-heading-leading) var(--serif); text-wrap: initial; line-break: strict; }
.keyword { font: var(--keyword-size)/var(--keyword-leading) var(--serif); }
.important-keyword { font: var(--important-keyword-size)/var(--keyword-leading) var(--serif); }
.normal-text { font: var(--normal-text-size)/var(--normal-text-leading) var(--serif); }
.auxiliary-text { font: var(--auxiliary-text-size)/var(--auxiliary-text-leading) var(--serif); }
.text-link { font: var(--normal-text-size)/var(--normal-text-leading) var(--serif); }
.text-link,.send-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  row-gap: var(--space-1);
  min-height: var(--control-height);
  padding: 10px var(--space-2);
}

/* Shared action frame; variants follow the base instead of repairing it later. */
.control--center { justify-content: center; text-align: center; }
.control--icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--control-compact-height); height: var(--control-compact-height); min-height: var(--control-compact-height); padding: 0; }
.control--auxiliary { font: var(--auxiliary-text-size)/var(--auxiliary-text-leading) var(--serif); }
.control--primary,.control--selectable:is([aria-selected="true"],.control--selected) { --theme-text: var(--canvas); --theme-control: var(--ink); --theme-control-hover: color-mix(in srgb,var(--ink) 90%,var(--canvas)); --theme-control-active: color-mix(in srgb,var(--ink) 80%,var(--canvas)); }
.user-profile-link { position: fixed; z-index: 10; inset: 4px 4px auto auto; width: 52px; height: 52px; border: 2px solid var(--ink); border-radius: 50%; opacity: .5; --theme-control-hover: var(--theme-control); --theme-control-active: var(--theme-control); }
.user-profile-link:focus-visible { outline-color: var(--canvas); outline-offset: -6px; }
.control--light { --theme-text: var(--ink); --theme-control: var(--canvas); --theme-control-hover: color-mix(in srgb,var(--canvas) 92%,var(--ink)); --theme-control-active: color-mix(in srgb,var(--canvas) 84%,var(--ink)); }
.link-banner-standby,.link-banner-current { --theme-control: var(--theme-disabled-control); background: var(--theme-control); color: var(--theme-disabled-text); pointer-events: none; cursor: default; }
.link-banner-standby,.link-banner-current { flex-wrap: wrap; }
.link-banner-standby>:first-child,.link-banner-current>:first-child { flex: 1 1 12em; min-width: 0; }
.link-standby-label { flex: none; }
.text-link>.link-standby-label { margin-inline-start: auto; }
.category-heading { margin-left: var(--optical-heading-offset); }
.section-heading.knowledge-results-heading-stack { display: grid; }
.knowledge-results-heading-layer { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.knowledge-results-heading-layer>.paired-english { order: 2; }

/* Title, photograph and explanation share the opening viewport. */
.hero { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(12svh,1fr) auto; min-height: 100svh; position: relative; isolation: isolate; background: transparent; color: var(--canvas); }
.hero-heading { grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; align-items: flex-start; align-self: start; width: 100%; max-width: var(--layout-max); margin-inline: auto; padding-top: var(--section-padding); z-index: 2; }
.hero-heading h1 { order: 1; width: fit-content; max-width: 100%; }
.hero-heading>.eyebrow { order: 2; }
.hero-word { display: block; white-space: nowrap; }
.hero-intro { grid-area: 3 / 1; position: relative; margin: 0; padding-block: var(--section-padding); background: none; }
.hero-intro.section-layout { max-width: var(--layout-max); }
.hero--compact { grid-template-rows: auto auto auto; min-height: 0; }
.hero--compact .hero-intro { padding-bottom: 0; }
.hero-intro h2 { overflow-wrap: normal; }
.tagline { white-space: nowrap; }
.hero-intro h2>span { display: block; white-space: nowrap; }
.hero-intro { --theme-control: var(--surface-hero-link); --theme-control-hover: var(--surface-hero-link-hover); --theme-control-active: var(--surface-hero-link-active); }

/* Every chapter uses the same heading/body DOM pair. */
.section-heading { display: flex; flex-direction: column; align-items: flex-start; }
.section-heading h2,.section-heading h3 { order: 1; }
.section-heading>.eyebrow,.section-heading>.paired-english { order: 2; }
.section-layout { width: 100%; max-width: 800px; margin-inline: auto; }

/* Main siblings own section spacing; section frames own their internal padding. */
.chapter-passage { position: relative; isolation: isolate; }
.page-subpage .hero { display: flex; flex-direction: column; gap: var(--section-padding); min-height: 0; }
.page-subpage .hero-heading { align-self: stretch; }
.page-subpage .hero-intro { grid-area: auto; padding-block: 0; }
.surface-panel { position: relative; isolation: isolate; }
.surface-panel::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: var(--surface-color); opacity: 1; }
main > * + * { margin-block-start: var(--section-boundary-gap); }
main + .site-footer { margin-block-start: 0; }

.section-heading .important-heading>span { display: block; width: fit-content; }
.link-list { display: grid; grid-template-columns: minmax(0,1fr); gap: var(--space-1); }
.link-list li { min-width: 0; }
.link-list .text-link { background: var(--theme-control); }

.articles { display: grid; gap: var(--article-list-gap); }
.article { display: flex; flex-direction: column; gap: var(--content-flow-gap); }
.article-section-heading { display: flex; flex-direction: column; align-items: flex-start; }
.category-english { order: 1; color: var(--theme-muted); }
.article-date { display: flex; flex-wrap: wrap; column-gap: var(--space-2); }
.article-date > .latest-label { padding-inline: var(--space-1); background: var(--canvas); color: var(--ink); }
.article-card { display: grid; gap: var(--space-1); }
.article-card-image { display: block; width: 100%; height: auto; }
.article-card-read { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-1); min-height: var(--control-compact-height); }
.content-after-hero { margin-block-start: var(--section-boundary-gap); }
.hero-wordmark { display: block; width: fit-content; max-width: 100%; color: inherit; }
.reading-layout { width: 100%; max-width: var(--reading-width); margin-inline: auto; }
.reading-layout--compact { --reading-width: var(--reading-compact-width); }
.content-stack { display: flex; flex-direction: column; gap: var(--content-flow-gap); }
.knowledge-article-heading .article-heading { width: 100%; max-width: 100%; overflow-wrap: anywhere; }
.knowledge-article-heading { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.knowledge-issue,.knowledge-author,.knowledge-preview-notice { color: var(--theme-muted); }
.prose { display: flex; flex-direction: column; margin-block-start: var(--space-6); }
.prose > * + * { margin-block-start: var(--space-3); }
.prose > :is(h3,h4,h5,h6) { margin-block-start: var(--space-5); }
.prose :is(p,ul,ol,blockquote,pre,h2,h3,h4,h5,h6) { margin-block-end: 0; }
.prose > :first-child { margin-block-start: 0; }
.prose :is(ul,ol) { display: flex; flex-direction: column; gap: var(--space-1); list-style: disc; padding-inline-start: 1.4em; }
.prose ol { list-style: decimal; }
.prose :is(ul,ol) :is(ul,ol) { margin-block-start: var(--space-1); }
.prose > :is(ul,ol,blockquote,pre) { font: var(--normal-text-size)/var(--normal-text-leading) var(--serif); }
.prose blockquote { border-inline-start: 2px solid var(--border-subtle); padding-inline-start: var(--space-3); }
.prose pre { max-width: 100%; overflow-x: auto; padding: var(--space-3); background: var(--surface-link-light); white-space: pre-wrap; overflow-wrap: anywhere; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.knowledge-results { display: flex; flex-direction: column; gap: var(--content-flow-gap); min-width: 0; }
.knowledge-list-stage { display: grid; min-width: 0; }
.knowledge-list-stage > .knowledge-article-list, .knowledge-list-stage > .loading-status { grid-area: 1 / 1; align-self: start; }
.knowledge-load-more { width: 100%; }
.knowledge-crossfade { opacity: 1 !important; transform: none !important; transition: opacity var(--fade-duration) var(--ease) !important; }
.knowledge-crossfade.knowledge-crossfade--transparent { opacity: 0 !important; }
/* Loading and feedback are immediate state indicators, not scroll reveals. */
.loading-icon { display: inline-block; flex: none; width: 18px; height: 18px; border: 2px solid currentColor; border-inline-start-color: transparent; border-radius: 50%; animation: loading-spin .8s linear infinite; }
.text-link > .loading-icon { display: none; }
.text-link[aria-busy="true"] > .loading-icon { display: inline-block; }
.text-link[aria-busy="true"] > .link-arrow { display: none; }
.loading-status { display: flex; align-items: center; gap: var(--space-1); color: var(--theme-muted); }
@keyframes loading-spin { to { transform: rotate(360deg); } }
.empty-state { padding: var(--space-3); background: var(--theme-control); color: var(--theme-disabled-text); }
.feedback { color: var(--theme-muted); }
.feedback:empty { display: none; }
.feedback[data-state="error"], [aria-invalid="true"], [data-invalid="true"] { color: var(--feedback-error); }
.feedback[data-state="error"] { border-inline-start: 2px solid currentColor; padding-inline-start: var(--space-2); }
.clipboard-fallback { position: fixed; width: 1px; height: 1px; inset: 0 auto auto -10000px; opacity: 0; }
.knowledge-article-meta > .latest-label { margin: 0; padding: 0 var(--space-1); background: var(--ink); color: var(--canvas); }
.knowledge-article-label { display: flex; flex-direction: column; row-gap: 4px; min-width: 0; overflow-wrap: anywhere; line-break: strict; }
.scroll-strip { overflow-x: auto; overflow-y: hidden; padding: 6px; margin-inline: -6px; scroll-padding: 6px; overscroll-behavior-x: contain; }
.tab-selector { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(max-content,1fr); gap: var(--space-1); margin-block-start: var(--content-flow-gap); --theme-control: var(--canvas); }
.tab-selector .text-link { white-space: nowrap; }
.stacked-navigation { display: flex; flex-direction: column; gap: var(--space-2); margin-block-start: var(--space-5); }
.share-tools { margin-block-start: var(--space-5); }
.share-tools > .feedback:not(:empty) { margin-block-start: var(--space-1); }
.knowledge-share { display: flex; align-items: center; gap: var(--space-1); }
.knowledge-share > .auxiliary-text { flex: none; white-space: nowrap; }
.knowledge-share-list { display: flex; flex: 1; flex-wrap: nowrap; min-width: 0; gap: var(--space-1); }
.knowledge-share-list li { flex: none; }
.knowledge-share-list .share-icon { display: block; flex: none; width: var(--control-icon-size); height: var(--control-icon-size); object-fit: contain; }
.knowledge-share-list .link-banner-standby > :first-child { flex: none; }
.navigation-row { display: grid; grid-template-areas: "previous index next"; grid-template-columns: max-content minmax(0,1fr) max-content; gap: var(--space-1); }
.control--previous { grid-area: previous; }
.control--index { grid-area: index; justify-content: center; text-align: center; }
.control--next { grid-area: next; justify-self: end; justify-content: flex-end; text-align: right; }
.navigation-row .text-link { min-width: 0; }
.navigation-row [aria-disabled="true"] { color: var(--theme-muted); pointer-events: none; }
.inline-link,.prose a,.knowledge-author a,.knowledge-preview-notice a { text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.section-content>dl:not(.keyword-list) { display: flex; flex-direction: column; gap: var(--content-flow-gap); }
.profile-list .keyword { display: block; overflow-wrap: anywhere; }
.director-portrait { width: min(100%, 20rem); height: auto; }

/* Shared term/description groups; inline translations reveal independently. */
.keyword-list { margin: 0; min-width: 0; }
.keyword-list>dt,.keyword-list>div>dt { border-block-start: 1px solid var(--theme-muted); margin: 0 0 var(--space-1); padding-block-start: var(--space-2); overflow-wrap: anywhere; }
.keyword-list>dt[data-reveal="linked"] { position: relative; border-block-start-color: transparent; }
.keyword-list>dt[data-reveal="linked"]::before { content: ""; position: absolute; inset: -1px 0 auto; border-block-start: 1px solid var(--theme-muted); }
.keyword-list>dt:has(>.auxiliary-text) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-1); }
.keyword-list dd { margin: 0; min-width: 0; }
.keyword-list dd+dd { margin-top: var(--space-1); }
.keyword-list>div+div { margin-top: var(--space-4); }
.keyword-list dd+dt { margin-top: var(--space-4); }
.keyword-list dd>p+p { margin-top: var(--space-1); }
.keyword-list dd>p+p.auxiliary-text { margin-top: 0; }
.keyword-list .keyword-list { margin-block: var(--space-2); padding-inline-start: var(--space-2); border-inline-start: 1px solid var(--theme-muted); }

/* Settings use shared term columns and body-sized type. */
.keyword-list--settings { display: grid; grid-template-columns: fit-content(35%) minmax(0,1fr); column-gap: var(--space-2); row-gap: var(--space-2); font: var(--normal-text-size)/var(--normal-text-leading) var(--serif); }
.keyword-list--settings>div { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: baseline; border-block-start: 1px solid var(--theme-muted); padding-block-start: var(--space-2); }
.keyword-list--settings>div+div { margin-block-start: 0; }
.keyword-list--settings>div>dt { grid-column: 1; margin: 0; padding: 0; border: 0; font: inherit; }
.keyword-list--settings>div>dd { grid-column: 2; font: inherit; }
.settings-list-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }

/* Body-sized bulleted text with shared spacing. */
.normal-list { display: grid; gap: var(--space-2); list-style: disc; padding-inline-start: 1.25em; margin: 0; font: var(--normal-text-size)/var(--normal-text-leading) var(--serif); }

.contact-form { display: flex; flex-direction: column; gap: var(--content-flow-gap); }
.field { display: flex; flex-direction: column; min-width: 0; gap: var(--space-1); }
.field label { display: block; }
.field small { font: var(--auxiliary-text-size)/var(--auxiliary-text-leading) var(--serif); color: var(--theme-muted); }
.field small[data-invalid="true"] { color: var(--feedback-error); }
.field :is(input,select,textarea)[aria-invalid="true"] { box-shadow: inset 0 -2px var(--feedback-error); }
.field-label-text,.required-note { display: inline-block; }
.required-note { margin-left: .25em; color: var(--theme-muted); white-space: nowrap; }
.field input,.field select,.field textarea { color: var(--theme-text); display: block; width: 100%; margin-top: 0; padding: var(--space-2); background: var(--theme-control); border: 0; border-radius: 0; transition: background .2s; }
.field input,.field select { min-height: var(--control-compact-height); padding-block: var(--space-1); }
.field textarea { min-height: 142px; resize: vertical; }
.field:focus-within label { color: var(--theme-text); }
.send-button { width: 100%; background: var(--theme-control); color: var(--theme-text); }
.send-button:disabled { color: var(--theme-text); }
.send-button:disabled .link-arrow { opacity: .35; }
.site-footer { padding-block: var(--space-2); }
.supplement { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-1); max-width: calc(var(--layout-max) - 2 * var(--gutter)); margin-inline: auto; }
.supplement a { display: flex; align-items: center; min-height: 44px; }

/* One reveal policy across public pages; surfaces fade through their own paint layer. */
[data-reveal] { --reveal-delay: 0ms; }
html.motion-ready [data-reveal]:where(:not([data-reveal="surface"]):not([data-reveal="linked"])) { opacity: 0; }
html.motion-ready .motion-target:where(:not([data-reveal="load"]):not([data-reveal="surface"]):not([data-reveal="linked"])) { transform: translateY(var(--reveal-offset)); }
html.motion-ready [data-reveal].is-visible { opacity: 1; transform: none; }
html.motion-ready [data-reveal].is-leaving { opacity: 0; transform: none; }
html.motion-ready :is([data-reveal="surface"],[data-reveal="linked"])::before { opacity: 0; }
html.motion-ready :is([data-reveal="surface"],[data-reveal="linked"]).is-visible::before { opacity: 1; }
.motion-target,.motion-target::before {
  transition: opacity var(--fade-duration) var(--ease) var(--reveal-delay),transform var(--fade-duration) var(--ease) var(--reveal-delay);
}
.text-link,.send-button {
  transition: opacity var(--fade-duration) var(--ease) var(--reveal-delay,0ms),transform var(--fade-duration) var(--ease) var(--reveal-delay,0ms),background var(--control-duration,.25s),color var(--control-duration,.25s);
}
@media(hover:hover) {
  :is(.text-link,.send-button):not(:disabled):not([aria-disabled="true"]):hover { background: var(--theme-control-hover); }
  :is(a.text-link,.article-card):hover .link-arrow { transform: translateX(2px); opacity: 1; }
}
:is(.text-link,.send-button):not(:disabled):not([aria-disabled="true"]):focus-visible { background: var(--theme-control-hover); }
.article-card:focus-visible .link-arrow { opacity: 1; }
:is(.text-link,.send-button):not(:disabled):not([aria-disabled="true"]):active { --control-duration: .08s; background: var(--theme-control-active); }
a.text-link:active .link-arrow { transform: translateX(2px); opacity: 1; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; }
.public-dialog { width: min(440px,calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto; margin: auto; padding: var(--space-3); border: 0; background: var(--theme-surface); }
.public-dialog > * + * { margin-block-start: var(--space-2); }
.public-dialog::backdrop { background: rgb(57 63 76 / .68); }
.public-dialog[open],.public-dialog[open]::backdrop { animation: public-dialog-in .24s ease both; }
@keyframes public-dialog-in { from { opacity: 0; } to { opacity: 1; } }
.form-status a,.form-fallback a { text-decoration: underline; text-underline-offset: .2em; }
.form-fallback { padding-inline: var(--gutter); padding-block-end: var(--space-3); }
@media(prefers-reduced-motion:reduce) {
  :root { --reveal-offset: 0px; }
  .loading-icon { animation: none; }
  .public-dialog[open],.public-dialog[open]::backdrop { animation: none; }
}
@media(min-width:960px) {
  :root { --section-padding: var(--space-8); --column-left: clamp(352px,32vw,400px); --column-right: minmax(0,1fr); --column-gap: clamp(5%,6vw,9%); --article-list-gap: var(--space-6); }
  .hero { grid-template-rows: auto auto minmax(0,1fr); }
  .hero-intro { grid-area: 2 / 1; }
  .hero-heading { width: 100%; max-width: var(--layout-max); margin-inline: auto; }
  .section-layout { display: grid; width: 100%; max-width: var(--layout-max); margin-inline: auto; grid-template-columns: minmax(0,var(--column-left)) var(--column-right); column-gap: var(--column-gap); align-items: start; }
  .section-layout>.section-heading { grid-column: 1; min-width: 0; }
  .section-layout>.section-content { grid-column: 2; width: 100%; min-width: 0; max-width: none; padding-top: 0; }
}
h1[tabindex="-1"]:focus,h2[tabindex="-1"]:focus,h3[tabindex="-1"]:focus,main[tabindex="-1"]:focus { outline: none; }
/* Keep title, reading and explanation in normal flow at narrow widths. */
@media(max-width:959px) {
  .hero { grid-template-rows: auto auto minmax(var(--space-9),1fr); }

  .hero-intro { grid-area: 2 / 1; padding-block: var(--section-padding); }
}

.public-page--immediate .surface-panel, .surface-panel--solid { --surface-color: var(--theme-surface); }
