* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 96px; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 var(--text-base)/1.75 var(--font); letter-spacing: 0; }
button, input { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, summary { cursor: pointer; }
button { letter-spacing: .02em; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--action); text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-skip-ink: auto; transition: color var(--motion-feedback) ease-out, background-color var(--motion-feedback) ease-out; }
a:visited { color: var(--visited); }
:where(a,button,input,summary):focus-visible { outline: 3px solid var(--action); outline-offset: 4px; }
main:focus { outline: none; }
p, h1, h2, h3, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--font); font-weight: 600; letter-spacing: 0; line-height: 1.4; overflow-wrap: anywhere; text-wrap: pretty; }
p { overflow-wrap: anywhere; text-wrap: pretty; }
time { white-space: nowrap; }
.shell { width: min(calc(100% - 112px), 1280px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: var(--space-2); left: var(--space-4); padding: var(--space-3) var(--space-4); z-index: 100; background: var(--surface); color: var(--action); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.preview-notice { padding-top: var(--space-3); color: var(--muted); font-size: var(--text-xs); letter-spacing: .01em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; min-width: 44px; padding: var(--space-2) var(--space-4); border: 1px solid var(--control-line); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); text-decoration: none; font-size: var(--text-sm); font-weight: 500; line-height: 1.5; white-space: nowrap; transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
.button-primary, .button-primary:visited { color: var(--on-action); background: var(--action); border-color: var(--action); }
.button-quiet { color: var(--ink); background: var(--surface); }

.masthead { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding-block: 24px 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--muted); font-size: var(--text-xs); font-weight: 500; letter-spacing: .02em; }
.eyebrow[lang="en"] { letter-spacing: .08em; }
.masthead h1 { margin-block: 8px 12px; font-size: clamp(40px,4.6vw,52px); font-weight: 750; line-height: 1.32; }
.masthead .eyebrow { color: var(--action); font-size: 18px; font-weight: 600; letter-spacing: .05em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.hero-actions .button { min-height: 48px; padding: 12px 24px; font-size: 16px; font-weight: 650; }
.button-secondary { background: var(--soft-action); color: var(--action); border-color: var(--action); }
.masthead-subtitle { font-size: var(--text-base); color: var(--muted); }
.edition-note { --od-gap: var(--space-2); color: var(--muted); font-size: var(--text-sm); text-align: right; }
.reader-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 32px; }
.news-column, .sidebar { min-width: 0; }
.section-heading { --od-gap: var(--space-4); justify-content: space-between; margin-bottom: var(--space-6); }
.section-heading h2 { font-size: 32px; font-weight: 550; line-height: 1.3; }
.section-heading h2::before, .section-kicker::before { content: ""; display: inline-block; width: 34px; height: 3px; margin-right: 12px; vertical-align: middle; background: var(--curio); }
.section-heading > span { color: var(--muted); font-size: var(--text-sm); }
.filters-panel { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 8px 24px; margin-bottom: 24px; }
.discover-links { display: flex; flex-wrap: wrap; gap: 20px; }
.discover-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.search-row { display: flex; align-items: end; gap: var(--space-3); }
.search-row label { --od-gap: var(--space-2); font-size: var(--text-sm); color: var(--muted); }
input[type="search"] { display: block; width: 100%; min-width: 0; min-height: 48px; padding: var(--space-3) var(--space-4); border: 1px solid var(--control-line); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); font-size: var(--text-base); line-height: 1.5; }
input::placeholder { color: var(--muted); opacity: 1; }
.search-row .button { min-height: 48px; }
.filter-buttons { --od-gap: var(--space-2); margin-top: 0; }
.filter-button { display: block; min-height: 44px; padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--ink); font-size: var(--text-sm); line-height: 1.5; white-space: nowrap; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.filter-button[aria-pressed="true"] { background: var(--brand-cyber); color: #fff; border-color: var(--brand-cyber); font-weight: 500; }
.result-count { grid-column: 1 / -1; margin-top: var(--space-2); color: var(--muted); font-size: var(--text-xs); letter-spacing: .01em; }
.story-list { display: grid; gap: 24px; }
.story-row { min-width: 0; padding: 28px; background: var(--card-surface); border: 1px solid var(--card-line); border-radius: 14px; transition: background .18s ease, border-color .18s ease; }
.story-row:focus-within { background: var(--card-hover); border-color: var(--line); }
.story-meta { --od-gap: var(--space-3); color: var(--muted); font-size: var(--text-xs); letter-spacing: .01em; }
.section-label { color: var(--ink); font-weight: 500; }
.story-meta > span + span:not(.story-number)::before { content: "/"; padding-right: var(--space-3); color: var(--muted); }
.story-number { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); }
.story-link { --od-gap: var(--space-3); margin-block: var(--space-3); padding: var(--space-2); border-radius: var(--radius-control); color: var(--action); text-decoration: none; }
.story-link:visited { color: var(--action); }
.story-link h3 { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: var(--space-2); color: inherit; font-size: var(--text-list); font-weight: 550; line-height: 1.45; }
.story-link p { max-width: 65ch; color: var(--muted); font-size: var(--text-base); line-height: 1.8; }
.read-arrow { display: inline-block; padding-inline-start: var(--space-1); white-space: nowrap; transition: transform var(--motion-feedback) ease-out; }
.source-meta { --od-gap: var(--space-4); font-size: var(--text-xs); color: var(--muted); letter-spacing: .01em; }
.source-meta a { display: inline-flex; align-items: center; min-height: 44px; }
.external { font-size: .9em; white-space: nowrap; }
.sidebar { --od-gap: var(--space-6); }
.side-panel { --od-gap: var(--space-4); padding: 28px; border: 1px solid var(--card-line); border-radius: var(--radius-panel); background: var(--card-surface); }
.side-label { --od-gap: var(--space-2); font-size: var(--text-sm); font-weight: 500; color: var(--muted); }
.side-label h2 { color: var(--action); font-size: 24px; font-weight: 650; line-height: 1.4; }
#tip-heading, #weekly-heading { scroll-margin-top: 32px; }
.source-badge { display: inline-block; margin-top: 8px; padding: 3px 8px; border-radius: 99px; background: var(--surface); color: var(--muted); font-size: 12px; }
.tip-panel .side-label { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.tip-panel .source-badge { margin-top: 0; font-size: 11px; }
.tip-panel { --od-gap: 12px; border-top: 3px solid var(--action); background: var(--soft-action); }
.tip-panel h3 { font-size: 20px; }
.weekly-panel .side-label { color: var(--action); font-size: 24px; font-weight: 650; }
.weekly-panel h3 { font-size: 20px; line-height: 1.5; }
.weekly-dates { color: var(--muted); }
.orange-marker { display: block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--curio); }
.tip-panel h3, .weekly-panel h2 { font-size: var(--text-section); line-height: 1.6; }
.side-panel p { font-size: var(--text-sm); line-height: 1.8; }
.side-panel .tip-premise { color: var(--muted); }
.tip-panel blockquote { padding: var(--space-4); border-radius: var(--radius-control); background: var(--canvas); color: var(--ink); font-size: var(--text-base); line-height: 1.8; }
summary { display: list-item; min-height: 44px; padding-block: var(--space-3); color: var(--action); font-size: var(--text-sm); text-underline-offset: 4px; }
.detail-content { --od-gap: var(--space-3); padding-top: var(--space-2); }
.text-action { display: inline-flex; align-items: center; gap: var(--space-2); align-self: start; min-height: 44px; font-size: var(--text-sm); font-weight: 500; }
.sidebar-note { max-width: 65ch; padding-inline: var(--space-2); font-size: var(--text-sm); line-height: 1.8; color: var(--muted); }
.revision { margin-top: var(--space-6); font-size: var(--text-xs); color: var(--muted); }
.revision summary { color: var(--muted); }
.revision p { padding-block: var(--space-2); }
.empty-state { padding: var(--space-12) var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.empty-state h3 { font-size: var(--text-section); margin-bottom: var(--space-3); }
.empty-state p { color: var(--muted); margin-bottom: var(--space-6); }
.noscript-note { margin-block: var(--space-4); color: var(--muted); font-size: var(--text-sm); }
.site-footer { margin-top: 80px; padding: 32px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumbs { --od-gap: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-6); margin-block: var(--space-6) var(--space-8); font-size: var(--text-sm); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.article-shell { max-width: 100%; }
.article-shell > .breadcrumbs { width: min(760px, 100%); margin-inline: auto; }
.reading-article { width: min(760px,100%); margin-inline: auto; }
.article-heading { padding-bottom: var(--space-8); border-bottom: 1px solid var(--line); }
.article-heading h1 { margin-block: 20px; font-size: 44px; font-weight: 650; line-height: 1.3; }
.article-summary { font-size: var(--text-reading); line-height: 1.8; }
.article-dates { --od-gap: var(--space-4); margin-top: var(--space-6); font-size: var(--text-xs); color: var(--muted); }
.article-outline { margin-top: 20px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; }
.article-outline ol { margin: 0; padding: 0 0 16px 24px; }
.article-outline a { display: inline-flex; min-height: 44px; align-items: center; font-size: 16px; }
.article-figure { margin: 32px 0; padding: 20px; background: var(--card-surface); border: 1px solid var(--line); border-radius: 14px; }
.editorial-diagram { display: block; width: min(100%,480px); height: auto; margin-inline: auto; }
.editorial-diagram text { font-family: var(--font); }
.article-figure figcaption { margin-top: 16px; font-size: 15px; color: var(--muted); line-height: 1.7; }
.article-body { padding-top: 8px; font-size: 20px; line-height: 1.95; }
.article-body h2 { margin-block: 48px 18px; font-size: 30px; line-height: 1.45; }
.article-body p + p { margin-top: var(--space-4); }
.article-body a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-line: underline; }
.article-body a .sr-only { font-size: 0; }
.sources { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.sources h2 { font-size: var(--text-section); }
.source-list { display: grid; gap: var(--space-3); list-style: none; margin: var(--space-4) 0 0; padding: 0; }
.source-list a { display: inline-flex; flex-wrap: wrap; align-items: center; min-height: 44px; font-size: var(--text-base); }
.source-list p { font-size: var(--text-xs); color: var(--muted); }
.article-bottom { --od-gap: var(--space-6); justify-content: space-between; margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.weekly-shell { max-width: 900px; }
.weekly-heading { padding-bottom: var(--space-8); margin-bottom: var(--space-8); border-bottom: 1px solid var(--line); }
.weekly-heading h1 { max-width: 24em; margin-block: 20px 24px; font-size: 46px; font-weight: 550; line-height: 1.3; }
.weekly-range { color: var(--muted); font-size: var(--text-sm); }
.weekly-intro { max-width: 65ch; margin-top: var(--space-6); font-size: var(--text-reading); line-height: 1.8; }
.weekly-back { margin-top: var(--space-6); }
.review-shell { max-width: 900px; }
.review-heading { margin-block: var(--space-8); }
.review-heading h1 { margin-block: var(--space-3) var(--space-4); font-size: var(--text-title); }
.review-heading p { max-width: 65ch; }
.review-panel { margin-top: var(--space-8); }
.review-panel > h2 { margin-bottom: var(--space-4); font-size: 24px; }
.review-help, .motion-status { margin-block: var(--space-3) var(--space-4); font-size: var(--text-sm); color: var(--muted); }
.motion-status { min-height: 24px; }
.review-list { padding-left: var(--space-6); max-width: 65ch; }
.review-list li + li { margin-top: var(--space-3); }
@media (hover: hover) {
  a:hover { color: var(--action-hover); text-decoration-thickness: 2px; }
  .button:hover { transform: translateY(calc(-1 * var(--motion-shift))); background: var(--soft-action); color: var(--action); border-color: var(--action); box-shadow: var(--button-shadow); }
  .button-primary:hover { color: #fff; background: #4933BA; border-color: #4933BA; }
  .filter-button:hover { color: var(--ink); background: color-mix(in srgb, var(--action) 18%, var(--canvas)); box-shadow: 0 0 0 2px var(--action); }
  .filter-button[aria-pressed="true"]:hover { background: var(--brand-cyber); color: #fff; }
  .story-link:hover { color: var(--action-hover); background: var(--card-hover); }
  .story-link:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
  .story-link:hover .read-arrow, .text-action:hover .read-arrow, .site-footer a:hover .read-arrow { transform: translateX(var(--motion-shift)); }
  summary:hover { text-decoration: underline; }
}
.story-link:focus-visible { background: var(--card-hover); }
.story-link:focus-visible h3 { text-decoration: underline; text-underline-offset: 5px; }
.story-link:focus-visible .read-arrow { transform: translateX(var(--motion-shift)); }
.button:focus-visible { transform: translateY(-3px); box-shadow: var(--button-shadow); }
.button-primary:focus-visible { background: #4933BA; color: #fff; border-color: #4933BA; }
.button:active { transform: translateY(0) scale(.98); box-shadow: inset 0 1px 2px #16151c18, 0 2px 5px #16151c14; }
.filter-button:active { transform: none; }
.button .read-arrow { transform: none; transition: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready { opacity: 0; transform: translateY(24px); }
  .animate-in { animation: reader-enter var(--motion-enter) var(--ease-enter) backwards, reader-fade var(--motion-fade) ease backwards; }
  @keyframes reader-enter { from { transform: translateY(var(--motion-arrival)); } to { transform: translateY(0); } }
  @keyframes reader-fade { from { opacity: 0; } to { opacity: 1; } }
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; animation-timing-function: ease-out; }
}
@media (max-width: 1100px) {
  .shell { width: calc(100% - 64px); }
  .reader-layout { grid-template-columns: minmax(0,1fr) 300px; gap: var(--space-6); }
}
@media (max-width: 900px) {
  .filters-panel { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 84px; }
  :root { --text-list: 22px; --text-title: 28px; --text-reading: 17px; }
  .shell { width: calc(100% - 40px); }
  .reader-layout { grid-template-columns: minmax(0,1fr); gap: var(--space-8); }
  .masthead { align-items: flex-start; padding-block: 24px 32px; margin-bottom: 28px; gap: 24px; }
  .masthead h1 { font-size: 40px; }
  .masthead .eyebrow { font-size: 20px; }
  .hero-actions { gap: 12px; margin-top: 24px; }
  .hero-actions .button { padding-inline: 16px; }
  .section-heading h2 { font-size: 28px; }
  .story-list { gap: 16px; }
  .edition-note { margin-top: var(--space-1); }
  .story-row, .side-panel { padding: 24px; }
  .sidebar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-6); }
  .article-figure { padding: 12px; }
  .sidebar-note { grid-column: 1 / -1; }
  .article-heading h1 { font-size: 34px; }
  .article-body { font-size: 18px; line-height: 1.9; }
  .article-body h2 { font-size: 25px; margin-top: 38px; }
  .weekly-heading h1 { font-size: 34px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-footer { font-size: 13px; }
  .article-shell > .breadcrumbs { margin-block: var(--space-4) var(--space-6); }
  .source-list time { white-space: normal; }
}
@media (max-width: 520px) {


  .brand-en { font-size: 12px; }
  .nav a { min-width: 44px; padding-inline: var(--space-2); font-size: var(--text-sm); }

  .masthead { flex-direction: column; justify-content: center; padding-block: 24px 32px; margin-bottom: 28px; }
  .edition-note { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: 0; text-align: left; font-size: var(--text-xs); }
  .masthead-subtitle { font-size: var(--text-sm); }
  .discover-links { gap: 16px; }
  .section-heading { gap: 8px; }
  .section-heading { margin-bottom: var(--space-4); }
  .filter-buttons { --od-gap: var(--space-2); }
  .filter-button { padding-inline: var(--space-2); }
  .sidebar { display: flex; flex-direction: column; }
  .story-link { padding-inline: var(--space-1); }
  .story-link p { line-height: 1.8; }
  .article-dates { --od-gap: var(--space-2); align-items: flex-start; flex-direction: column; }
  .article-bottom { align-items: flex-start; flex-direction: column; }

  .site-footer { align-items: flex-start; gap: var(--space-2); }
  .site-footer p { max-width: 100%; }
}
@media (max-width: 374px) {

  .filter-buttons { gap: var(--space-2); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
  .button, .filter-button, .read-arrow, .story-link, .story-row, .header-row, .nav-bar, .skip-link { transition: none; }
  .reveal-ready { opacity: 1; transform: none; }
  .button:hover, .button:focus-visible, .button:active, .filter-button:hover, .filter-button:active,
  .story-link:hover .read-arrow, .story-link:focus-visible .read-arrow,
  .text-action:hover .read-arrow, .site-footer a:hover .read-arrow { transform: none; }
}


@supports not (backdrop-filter: blur(1px)) { .site-header.is-floating .header-row { background: var(--canvas); } }
@media (forced-colors: active) { .site-header.is-floating .header-row { background: Canvas; border: 1px solid CanvasText; } }

.article-body > blockquote { margin: 24px 0; padding: 20px 24px; background: var(--soft-action); border-left: 3px solid var(--action); border-radius: 0 12px 12px 0; }

.review-help code { overflow-wrap: anywhere; font-size: 12px; }

/* Shared reader controls: the same states in Website and MCP App. */
.button:disabled { cursor: not-allowed; opacity: .55; }
.button:disabled:hover { transform: none; box-shadow: none; }
:where(textarea):focus-visible { outline: 3px solid var(--action); outline-offset: 3px; }
