@font-face {
  font-family: 'Inter';
  src: url('./fonts/inter.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans JP';
  src: url('./fonts/noto-sans-jp.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --paper: #f6f7f9;
  --ink: #203448;
  --muted: #596b7b;
  --line: #dce3e9;
  --accent: #245d78;
  --wash: #edf3f6;
  --white: #fff;
  --green: #286447;
  --ui-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: var(--ui-font);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
:root[lang='ja'] {
  --ui-font: 'Inter', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  line-break: strict;
}
:root[lang='zh-Hans'] {
  --ui-font: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
:root[lang='ko'] {
  --ui-font: 'Inter', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  word-break: keep-all;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.75; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button, select, summary { cursor: pointer; }
button { border: 0; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid #4383a3; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; background: var(--ink); color: white; padding: 12px; z-index: 20; }
.skip:focus { top: 10px; }
.masthead {
  padding: 20px max(32px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 24px;
  background: var(--white);
}
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--ink); color: white;
  border-radius: 10px; font-size: 26px;
}
.brand strong { display: block; font-size: 18px; font-weight: 650; letter-spacing: -.35px; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.top-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; flex-shrink: 0; }
.language select {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 7px; padding: 8px 10px; min-height: 42px;
}
main { max-width: 1304px; margin: auto; padding: 0 32px; }
.intro {
  display: grid; grid-template-columns: minmax(0,1fr) 360px;
  gap: 64px; align-items: center; padding: 46px 0 34px;
}
.eyebrow { font-size: 12px; letter-spacing: 1.25px; font-weight: 600; color: var(--accent); margin-bottom: 17px; }
h1 {
  font-size: clamp(32px, 3.25vw, 46px); line-height: 1.27;
  letter-spacing: -1.3px; margin: 0 0 19px; font-weight: 650;
  white-space: pre-line; text-wrap: balance;
}
:lang(ja) h1 { font-size: clamp(30px,3.2vw,42px); letter-spacing: .035em; line-height: 1.5; }
.lead { font-size: 16px; color: var(--muted); max-width: 660px; margin: 0 0 13px; line-height: 1.9; text-wrap: pretty; }
.reading-link { font-size: 14px; color: var(--accent); font-weight: 550; }
.reading-link::after { content: ' ↓'; }
.overview { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px 10px; }
.stat strong { display: block; font-size: 30px; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.stat.date { grid-column: 1/-1; border-top: 1px solid var(--line); padding-top: 15px; display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; }
.stat.date strong { font-size: 15px; font-weight: 550; }
.stat.date span { margin: 0; }
.audit-note { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--muted); margin: 17px 0 0; line-height: 1.85; }
.audit-dot { display: inline-block; background: var(--green); width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.workspace { display: grid; grid-template-columns: 254px minmax(0,1fr); gap: 28px; padding-top: 18px; scroll-margin-top: 16px; }
.filters { align-self: start; position: sticky; top: 24px; border: 1px solid var(--line); border-radius: 12px; padding: 23px 20px; background: white; }
.filters h2, .results-toolbar h2 { font-size: 18px; margin: 0 0 20px; font-weight: 600; }
.filter-field { min-width: 0; margin: 18px 0; }
.filter-toggle { display: none; }
.filters label { display: block; font-size: 14px; font-weight: 550; margin: 0 0 9px; }
.filters select { width: 100%; min-width: 0; background: var(--paper); border: 1px solid var(--line); padding: 10px 8px; min-height: 44px; border-radius: 6px; font-size: 13px; }
.text-button { padding: 8px 2px; min-height: 36px; color: var(--muted); background: transparent; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.aside-rule { height: 1px; background: var(--line); margin: 21px 0; }
.filters h3 { font-size: 14px; margin: 0 0 10px; font-weight: 550; }
.filter-options > a { display: block; color: var(--accent); font-size: 13px; padding: 5px 0; }
.filter-note { font-size: 12px; color: var(--muted); line-height: 1.95; margin: 20px 0 0; }
.search-row { display: flex; gap: 14px; align-items: center; border: 1px solid #b9c9d5; background: white; padding: 9px 10px 9px 18px; border-radius: 9px; min-height: 58px; }
.search-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #245d7810; }
.search-icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--muted); }
input[type=search] { border: 0; background: transparent; width: 100%; min-width: 0; font-size: 16px; padding: 5px 0; }
input[type=search]:focus-visible { outline: 0; }
.secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: white; border: 1px solid var(--line); padding: 8px 13px; min-height: 42px; border-radius: 6px; white-space: nowrap; font-size: 13px; }
.secondary svg { width: 19px; height: 19px; }
.primary { background: var(--ink); color: white; padding: 9px 16px; min-height: 44px; border-radius: 6px; font-size: 14px; font-weight: 550; }
.quick-search { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 12px; }
.quick-search > span { color: var(--muted); margin-right: 4px; }
.quick-search button { border: 1px solid var(--line); background: white; padding: 5px 12px; min-height: 34px; border-radius: 20px; font-size: 12px; }
.quick-search button:hover, .quick-search button[aria-pressed='true'] { border-color: var(--accent); color: var(--accent); background: var(--wash); }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 27px; }
.results-toolbar h2 { margin: 0; }
.result-count { display: inline-block; color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 8px; }
.results-toolbar select { font-size: 13px; background: transparent; border: 1px solid transparent; padding: 8px; min-height: 42px; max-width: 190px; }
.compare-hint { font-size: 13px; color: var(--muted); margin: 10px 0 19px; line-height: 1.85; }
.selection-bar { display: flex; align-items: center; gap: 15px; background: #e2edf3; padding: 11px 16px; border-radius: 8px; margin-top: 16px; font-size: 14px; position: sticky; top: 10px; z-index: 5; box-shadow: 0 4px 15px #20344808; }
.paper { padding: 26px 28px; border: 1px solid var(--line); border-radius: 10px; background: white; margin-bottom: 18px; }
.paper-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; margin-bottom: 14px; line-height: 1.6; }
.scope-badge { color: var(--accent); background: var(--wash); border-radius: 4px; padding: 4px 9px; }
.paper-date { color: var(--muted); font-variant-numeric: tabular-nums; margin-left: auto; }
.paper-title-row { display: flex; gap: 18px; justify-content: space-between; align-items: start; }
.paper h3 { margin: 0; font-size: 23px; line-height: 1.4; font-weight: 650; letter-spacing: -.3px; }
.original-title { font-size: 15px; line-height: 1.7; margin: 8px 0; color: #41576a; overflow-wrap: anywhere; }
.paper-claim { margin: 18px 0; padding: 14px 17px; border-left: 3px solid #7b9eaf; border-radius: 0 7px 7px 0; background: #f0f5f8; }
.claim-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; font-size: 12px; color: var(--accent); }
.claim-heading strong { font-weight: 600; }
.claim-heading a { flex-shrink: 0; }
.claim-text { font-size: 16px; line-height: 1.9; margin: 8px 0 0; }
.method-summary { margin-top: 18px; }
.method-summary > span { font-size: 12px; color: var(--muted); font-weight: 550; }
.method-summary .summary { margin-top: 7px; }
.compare-select { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 13px; padding: 8px 0 8px 10px; min-height: 44px; color: var(--muted); }
.compare-select:has(input:checked) { color: var(--accent); font-weight: 550; }
.compare-select input { accent-color: var(--accent); width: 18px; height: 18px; }
.authors { font-size: 12px; color: var(--muted); margin: 10px 0; line-height: 1.85; }
.summary { font-size: 16px; line-height: 1.9; margin: 17px 0; color: #2f465a; text-wrap: pretty; }
.pairs { background: #f5f7f9; border: 1px solid #e8edf1; border-radius: 7px; padding: 12px 15px; font-size: 13px; margin: 18px 0; overflow-wrap: anywhere; line-height: 1.9; }
.pairs small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.pairs p { margin: 3px 0; }
.implementation { margin: 18px 0; padding: 13px 0; border-top: 1px solid #e8edf1; border-bottom: 1px solid #e8edf1; }
.implementation-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.code-badge { display: inline-block; font-size: 13px; font-weight: 500; border-radius: 5px; padding: 5px 10px; background: #eef1f4; color: #495e70; line-height: 1.65; }
.code-badge.public { background: #edf5ee; color: #286447; }
.code-badge.pending { background: #fff4e8; color: #87532e; }
.code-badge::before { content: '◦'; margin-right: 6px; font-weight: 700; }
.code-badge.public::before { content: '✓'; }
.implementation-row > a { font-size: 13px; color: var(--accent); font-weight: 550; }
.paper .code-info { margin-top: 9px; }
.code-info > summary { font-size: 12px; color: var(--muted); min-height: 30px; padding: 4px 0; }
.code-explanation { margin-top: 8px; padding: 13px 15px; background: #f6f8fa; border-radius: 6px; font-size: 13px; line-height: 1.9; }
.code-explanation p { margin: 0 0 8px; }
.code-explanation p:last-child { margin: 0; }
.code-explanation .checked-date { color: var(--muted); font-size: 12px; }
.implementation-concern { font-size: 13px; color: #87532e; margin: 10px 0 0; }
.paper-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; margin: 18px 0 0; }
.paper-actions a, .paper-actions button { display: inline-flex; align-items: center; background: #f5f7f9; border: 1px solid var(--line); padding: 7px 12px; min-height: 38px; border-radius: 5px; font-size: 13px; font-weight: 500; }
.paper-actions a:hover, .paper-actions button:hover { border-color: var(--accent); color: var(--accent); }
.paper details { margin-top: 18px; font-size: 14px; }
.paper summary { min-height: 36px; padding: 5px 0; color: var(--accent); font-size: 13px; list-style-position: inside; }
.detail-content { padding: 18px 20px; background: #f5f7f9; border-radius: 7px; margin-top: 10px; }
.source-note { font-size: 12px; color: var(--muted); margin: 0 0 15px; line-height: 1.9; }
dl { margin: 0; }
dt { font-size: 13px; font-weight: 600; margin-top: 18px; color: #425d72; }
dt:first-child { margin-top: 0; }
dd { margin: 6px 0 0; font-size: 14px; overflow-wrap: anywhere; line-height: 1.9; }
dd ul { margin: 0; padding-left: 19px; }
.source-original { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 20px; }
.evidence-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; font-size: 13px; color: var(--accent); }
.empty { border: 1px solid var(--line); border-radius: 10px; background: white; padding: 40px 25px; color: var(--muted); }
.reading { margin: 50px 0 32px; scroll-margin-top: 24px; }
.reading h2 { font-size: 24px; font-weight: 600; margin: 0 0 12px; letter-spacing: .01em; }
.reading > p { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.reading-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.reading-grid article { padding: 22px 20px; border: 1px solid var(--line); background: white; border-radius: 10px; }
.reading-grid h3 { font-size: 16px; font-weight: 600; line-height: 1.7; margin: 0 0 11px; }
.reading-grid p { font-size: 13px; color: var(--muted); line-height: 1.95; margin: 0 0 18px; }
.reading-grid article > div { display: flex; flex-wrap: wrap; gap: 10px; color: var(--accent); font-size: 13px; }
.survey-languages { display: flex; flex-wrap: wrap; gap: 22px; font-size: 13px; margin: 0 0 28px; }
footer { padding: 22px max(32px,calc((100vw - 1240px) / 2)); border-top: 1px solid var(--line); display: flex; gap: 24px; align-items: start; justify-content: space-between; font-size: 12px; color: var(--muted); background: white; }
footer p { margin: 0; max-width: 950px; }
footer > a { flex-shrink: 0; color: var(--accent); }
dialog { border: 1px solid var(--line); border-radius: 12px; color: var(--ink); padding: 28px; max-width: 1250px; width: calc(100% - 48px); max-height: 90vh; background: var(--paper); }
dialog::backdrop { background: #20344899; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.dialog-heading h2 { font-size: 22px; margin: 0; }
.compare-grid { display: grid; grid-template-columns: repeat(var(--columns),minmax(0,1fr)); gap: 20px; margin: 20px 0; }
.compare-card { background: white; border: 1px solid var(--line); padding: 20px; border-radius: 9px; }
.compare-card h3 { font-size: 19px; margin: 0 0 12px; }
.compare-card > p { font-size: 14px; line-height: 1.9; }
.compare-card .code-badge { margin-top: 10px; }
#copy-dialog { max-width: 800px; }
#copy-text { width: 100%; min-height: 240px; font-family: ui-monospace,monospace; font-size: 13px; border: 1px solid var(--line); padding: 16px; border-radius: 5px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 13px 20px; border-radius: 8px; max-width: min(520px,90vw); font-size: 14px; z-index: 30; box-shadow: 0 4px 18px #20344822; }
.mobile-downloads { display: none; }
@media (max-width: 1100px) {
  .intro { grid-template-columns: minmax(0,1fr) 320px; gap: 32px; }
  .workspace { grid-template-columns: 235px minmax(0,1fr); gap: 22px; }
  .paper { padding: 24px; }
  .reading-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 850px) {
  .masthead { padding: 18px 24px; }
  main { padding: 0 24px; }
  .top-nav { gap: 14px; }
  .top-nav > a:first-child { display: none; }
  .intro { grid-template-columns: 1fr; gap: 25px; padding: 32px 0 22px; }
  .intro-copy { max-width: 650px; }
  .overview { padding: 18px 22px; }
  .stats { grid-template-columns: repeat(3,minmax(0,1fr)) 180px; gap: 18px; align-items: start; }
  .stat strong { font-size: 27px; }
  .stat span { margin-top: 5px; }
  .stat.date { grid-column: auto; border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 6px; align-items: start; }
  .stat.date strong { font-size: 15px; }
  .audit-note { margin-top: 12px; }
  .workspace { grid-template-columns: 1fr; gap: 20px; }
  .filters { position: static; padding: 15px 19px; }
  .filters h2 { display: none; }
  .filter-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0; background: white; text-align: left; font-size: 15px; font-weight: 550; }
  .filter-toggle small { font-size: 11px; color: var(--accent); font-weight: 400; }
  .filter-chevron { margin-left: auto; font-size: 23px; line-height: 1; }
  .filter-toggle[aria-expanded='true'] .filter-chevron { transform: rotate(180deg); }
  .filter-toggle[aria-expanded='false'] + .filter-options { display: none; }
  .filter-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px 12px; padding-top: 14px; }
  .filter-field { margin: 0; }
  .filters label { font-size: 13px; margin: 0 0 8px; }
  .filters select { font-size: 13px; }
  .filters .text-button { grid-column: 1/-1; justify-self: start; }
  .filters .aside-rule, .filters h3, .filter-options > a { display: none; }
  .filter-note { grid-column: 1/-1; margin: 0; font-size: 12px; }
  .results-toolbar { margin-top: 22px; }
  .compare-grid { grid-template-columns: 1fr; }
  .mobile-downloads { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; padding-top: 22px; }
  footer { padding: 22px 24px; display: block; }
  footer > a { display: inline-block; margin-top: 14px; }
}
@media (max-width: 560px) {
  .masthead { padding: 15px 18px; gap: 12px; }
  .brand { gap: 10px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 8px; font-size: 22px; }
  .brand strong { font-size: 15px; }
  .brand small { max-width: 230px; font-size: 11px; line-height: 1.6; }
  .top-nav > a { display: none; }
  .language select { font-size: 12px; padding: 7px 5px; max-width: 90px; }
  main { padding: 0 18px; }
  .intro { padding-top: 27px; }
  .eyebrow { font-size: 11px; letter-spacing: .7px; line-height: 1.8; }
  h1 { font-size: 33px; letter-spacing: -.8px; line-height: 1.3; }
  :lang(ja) h1 { font-size: clamp(25px,6.6vw,32px); letter-spacing: .02em; line-height: 1.6; }
  .lead { font-size: 15px; line-height: 1.95; }
  .overview { padding: 18px; }
  .stats { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px 8px; }
  .stat strong { font-size: 27px; }
  .stat span { font-size: 11px; }
  .stat.date { grid-column: 1/-1; border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; flex-direction: row-reverse; align-items: baseline; }
  .filters { padding: 12px 18px; }
  .filter-options { grid-template-columns: 1fr; }
  .filter-field { display: grid; grid-template-columns: 1fr; gap: 7px; }
  .filter-field label { margin: 0; line-height: 1.7; }
  .filters select { min-height: 44px; font-size: 13px; }
  .filter-note { line-height: 1.9; }
  .search-row { padding: 8px 8px 8px 13px; gap: 10px; }
  .search-row input { font-size: 16px; }
  .search-row .secondary { gap: 5px; font-size: 12px; padding: 7px 9px; }
  .search-row .secondary svg { width: 16px; height: 16px; }
  .quick-search { gap: 7px; }
  .quick-search > span { width: 100%; margin-bottom: 1px; }
  .quick-search button { min-height: 36px; }
  .results-toolbar { flex-wrap: wrap; gap: 5px; }
  .results-toolbar h2 { font-size: 17px; }
  .results-toolbar select { font-size: 12px; max-width: 155px; padding-right: 0; }
  .selection-bar { flex-wrap: wrap; gap: 8px 12px; font-size: 13px; padding: 11px 13px; }
  .compare-hint { font-size: 12px; }
  .paper { padding: 21px 19px; margin-bottom: 15px; }
  .paper-meta { gap: 8px; font-size: 11px; margin-bottom: 10px; }
  .paper-date { margin-left: 0; }
  .paper-title-row { gap: 8px; flex-wrap: wrap; }
  .paper-title-row h3 { flex: 1 1 180px; }
  .paper h3 { font-size: 20px; line-height: 1.55; }
  .original-title { font-size: 14px; line-height: 1.85; }
  .compare-select { font-size: 12px; gap: 6px; padding-left: 3px; }
  .summary { font-size: 15px; line-height: 2; }
  .paper-claim { padding: 13px 14px; }
  .claim-text { font-size: 15px; line-height: 2; }
  .pairs { padding: 12px; font-size: 13px; }
  .implementation-row { align-items: start; }
  .code-badge { font-size: 12px; }
  .detail-content { padding: 17px 15px; }
  dd { font-size: 14px; }
  .reading-grid { grid-template-columns: 1fr; }
  .reading-grid article { padding: 20px; }
  .reading h2 { font-size: 21px; }
  dialog { width: calc(100% - 24px); padding: 18px; }
  .dialog-heading h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
