:root {
  color-scheme: light dark;
  --paper:#fff; --ground:#f2f5f9; --ink:#102941; --muted:#495f72; --line:#cbd6df;
  --blue:#174db6; --tint:#eff5ff; --amber:#794600; --cream:#fff1cf;
  font:16px/1.6 -apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
  color:var(--ink); background:var(--ground);
}
* { box-sizing:border-box }
body { margin:0; overflow-wrap:anywhere }
a { color:var(--blue); text-underline-offset:.2em }
button,summary { cursor:pointer }
:focus-visible { outline:3px solid var(--blue); outline-offset:3px }
[hidden] { display:none !important }
.skip { position:absolute; left:12px; top:-5em; z-index:2; background:var(--paper); padding:10px }
.skip:focus { top:5px }
header { background:var(--paper); border-bottom:1px solid var(--line) }
.bar, main { width:min(100% - 32px,960px); margin:auto }
.bar { min-height:64px; display:flex; align-items:center; justify-content:space-between; gap:12px }
.bar a,footer a { display:inline-flex; align-items:center; min-height:44px; font-weight:650; font-size:.87rem }
.bar .brand { gap:9px; color:var(--ink); font-size:1rem; font-weight:800; text-decoration:none }
.brand span { background:linear-gradient(150deg,#69bded,#285fd9 72%); color:white; width:31px; height:31px; border-radius:9px; display:grid; place-items:center }
main { padding-bottom:4rem }
.trail,small,.maker,.spec,dt { color:var(--muted) }
.trail,small,.spec { font-size:.875rem }
.intro { margin:1.6rem 0 1rem }
.maker { margin:0 0 .2rem; font-weight:650 }
h1,h2,h3,h4,p { margin:0 }
h1 { font-size:clamp(1.62rem,4vw,2.45rem); letter-spacing:-.035em; line-height:1.3 }
.strength { white-space:nowrap }
h2 { font-size:1.2rem; line-height:1.4; margin:0 0 .65rem }
h3 { font-size:1.08rem; line-height:1.55 }
.spec { margin-top:.5rem }
.spec span { margin-inline-start:.55rem; font-variant-numeric:tabular-nums }
.trail { margin:1rem 0 0 }
.summary,.manufacturer-notices,#history,#compare,.choices li { background:var(--paper); border:1px solid var(--line); border-radius:14px; padding:clamp(16px,3vw,28px) }
.summary { border-top:4px solid var(--blue) }
.summary h2 { font-size:.87rem; color:var(--muted) }
.statusline,.actions,.jumps,.sources,footer { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px }
.statusline { justify-content:space-between }
.statusline>span { font-size:.86rem; font-variant-numeric:tabular-nums; color:var(--muted) }
.status { display:inline-block; font-size:1.05rem; padding:4px 10px; border-radius:6px }
.limited,.caution { color:var(--amber); background:var(--cream) }
.stopped,.ended { color:#86232a; background:#ffe7e5 }
.ok { color:#15503b; background:#def5e8 }
.facts { display:grid; grid-template-columns:1fr 1fr; gap:16px; border-block:1px solid var(--line); padding:12px 0; margin:14px 0 0 }
dt { font-size:.81rem; font-weight:650 }
dd { margin:3px 0 0; font-weight:700 }
summary { color:var(--blue); padding:10px 0; font-size:.88rem; font-weight:650 }
details p,.manufacturer-notices p,#compare>p,#history li,.choices p { font-size:.92rem }
#freshness { font-size:.85rem; color:var(--muted) }
#freshness.warning,.supp-warning { background:var(--cream); color:var(--amber); padding:8px 12px }
.actions { margin:12px 0 0 }
.actions a,.actions button,.jumps a,.source-link { display:inline-flex; align-items:center; justify-content:center; min-height:44px; border-radius:9px; font:inherit; font-weight:650; padding:8px 14px; text-decoration:none }
.actions a,.source-link { border:1px solid var(--line); background:var(--paper); color:var(--blue) }
.actions button,.actions .primary { border:1px solid #2454ae; background:#2454ae; color:white }
.jumps { margin:12px 0; gap:6px }
.jumps a { background:var(--tint); color:var(--blue); font-size:.87rem }
.sources { margin-bottom:12px }
.source-link small { margin-left:7px }
#feedback:not(:empty) { padding:8px 0 }
textarea { width:100%; min-height:6em; font:inherit }
.manufacturer-notices,#history,#compare { margin:16px 0; scroll-margin:16px }
.supp-notice { border-top:1px solid var(--line); margin-top:14px; padding-top:16px }
.supp-notice p { margin:8px 0 }
.supp-notice h4 { margin:1rem 0 .3rem }
.supp-notice ul,#history ul { padding-left:1.3em }
.package-supply { margin:14px 0; border-left:3px solid var(--line); padding-left:12px }
.package-supply-row { display:grid; grid-template-columns:minmax(7em,1fr) 2fr; gap:6px }
#history small,th small { display:block; font-weight:400 }
.table-scroll { overflow:auto; margin-top:12px }
table { width:100%; min-width:620px; border-collapse:collapse; font-size:.92rem }
th,td { text-align:left; vertical-align:top; padding:10px; border-bottom:1px solid var(--line) }
thead th { color:var(--muted); background:var(--ground); font-size:.81rem }
tbody tr:first-child { background:var(--tint) }
.choices { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr)); gap:12px; list-style:none; padding:0 }
.choices li { display:flex; flex-direction:column; align-items:flex-start }
.choices .actions { margin-top:auto; padding-top:16px }
footer { margin-top:18px; border-top:1px solid var(--line); padding-top:10px }
@media(max-width:420px) { .facts { gap:10px }.package-supply-row {display:block}.statusline {gap:6px}.spec span {display:block;margin:0} }
@media(prefers-color-scheme:dark) {
  :root { --paper:#182431; --ground:#101922; --ink:#e8f0f7; --muted:#b6c5d3; --line:#445566; --blue:#9bbfff; --tint:#233751; --amber:#ffe1a1; --cream:#48381e }
  .ok {color:#c2f5d9;background:#1b4938}.stopped,.ended {color:#ffd1cf;background:#532a30}
}
