/* 0001-minimax-h3-image · test-bench notebook: warm paper, ink, ruled lines, one cinnabar accent */
:root {
  --paper: #f4f1ea;
  --sheet: #fbf9f4;
  --ink: #1b1a17;
  --soft: #5c584f;
  --rule: #d8d2c4;
  --rule-strong: #1b1a17;
  --accent: #b5301a;
  --accent-ink: #8f2412;
  --tint: #efe6d6;
  --sans: "IBM Plex Sans Thai", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --gap: clamp(1rem, 2.5vw, 1.75rem);
  --measure: 68ch;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.75 var(--sans); text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.3; font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.9rem); line-height: 1.22; letter-spacing: -.01em; }
h2 { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.6rem); }
h3 { font-size: 1.0625rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

.wrap { width: min(100% - 2rem, 62rem); margin-inline: auto; }
.wrap--wide { width: min(100% - 2rem, 74rem); }
main > section, main > article { margin-block: clamp(2.5rem, 6vw, 4.5rem); }
main > section > h2, .split h2, .sec-head h2 { padding-top: .75rem; border-top: 2px solid var(--rule-strong); margin-bottom: 1.25rem; }
.sec-head h2 { margin-bottom: 0; }

/* top bar */
.top { border-bottom: 1px solid var(--rule); background: var(--paper); }
.top__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding-block: .75rem; width: min(100% - 2rem, 74rem); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 600; text-decoration: none; }
.brand__mark { font: 600 .8125rem/1 var(--mono); background: var(--ink); color: var(--paper); padding: .4rem .45rem; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .9375rem; }
.nav a { color: var(--ink); text-decoration: none; padding-block: .35rem; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--accent); }

/* small text */
.kicker { font-size: .875rem; color: var(--soft); margin: 0 0 .6rem; }
.no { font: 600 .8125rem/1 var(--mono); color: var(--accent-ink); margin-right: .6rem; }
.meta { font-size: .875rem; color: var(--soft); }
.meta--row { display: flex; flex-wrap: wrap; gap: .15rem 1.1rem; margin: .75rem 0 0; }
.meta--row > * + *::before { content: ""; }
.note { font-size: .875rem; color: var(--soft); }
.note--flag { border-left: 3px solid var(--accent); padding-left: .75rem; }
.refs { display: block; font-size: .8125rem; color: var(--soft); margin-top: .2rem; }
.refs a { color: var(--soft); }
.crumbs { font-size: .875rem; color: var(--soft); margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .1rem .5rem; }
.crumbs a { color: var(--soft); }
.crumbs .sep { color: var(--rule); }

/* hero */
.hero { display: grid; gap: var(--gap) clamp(2rem, 5vw, 4rem); margin-top: clamp(1.75rem, 5vw, 3.5rem) !important; }
.hero__text > p { max-width: var(--measure); }
.hero__tag { font-size: clamp(1.0625rem, 1rem + .5vw, 1.3rem); line-height: 1.6; margin: 1rem 0 1.25rem; color: var(--ink); }
.spec { background: var(--sheet); border: 1px solid var(--rule); border-top: 3px solid var(--accent); padding: 1.1rem 1.25rem 1rem; align-self: start; }
.spec h2 { font-size: 1rem; margin-bottom: .5rem; }
.spec dl { margin: 0; }
.spec__row { padding: .6rem 0; border-top: 1px solid var(--rule); }
.spec dt { font-size: .8125rem; color: var(--soft); }
.spec dd { margin: 0; font-weight: 600; line-height: 1.5; }
.spec dd .refs { font-weight: 400; }
.spec__note { font-size: .8125rem; color: var(--soft); margin: .6rem 0 0; }
@media (min-width: 60rem) { .hero { grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 1fr); } }

/* start here */
.picks { display: grid; gap: 0; counter-reset: pick; }
.pick { counter-increment: pick; display: grid; grid-template-columns: 2.5rem 1fr; column-gap: .5rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.pick::before { content: counter(pick, decimal-leading-zero); font: 600 .9375rem/1.9 var(--mono); color: var(--accent-ink); grid-row: span 3; }
.pick p { margin: 0; }
.pick__for { font-size: .875rem; color: var(--soft); }
.pick__title { font-weight: 600; font-size: 1.125rem; line-height: 1.45; margin: .1rem 0 .25rem !important; }
.pick__title a { color: var(--ink); }
.pick__why .meta { display: block; margin-top: .15rem; }
@media (min-width: 48rem) { .picks { grid-template-columns: 1fr 1fr; column-gap: var(--gap); } }

/* clip list */
.sec-head { display: grid; gap: .9rem; margin-bottom: 1.25rem; }
.tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.tools[hidden] { display: none; }
.tools__g, .toc { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font: inherit; font-size: .875rem; line-height: 1.4; background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 0; padding: .3rem .7rem; cursor: pointer; text-decoration: none; }
.chip:hover { background: var(--tint); }
.chip.is-on { background: var(--ink); color: var(--paper); }
.tools__sort { font-size: .875rem; color: var(--soft); display: inline-flex; align-items: center; gap: .5rem; }
.tools__sort select { font: inherit; color: var(--ink); background: var(--sheet); border: 1px solid var(--ink); border-radius: 0; padding: .3rem .5rem; }
.clips { display: grid; gap: 0; }
.clip { display: grid; grid-template-columns: minmax(7rem, 34%) 1fr; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
.clip[hidden] { display: none; }
.clip__thumb { position: relative; display: block; background: var(--tint); aspect-ratio: 16 / 9; overflow: hidden; }
.clip__thumb img { width: 100%; height: 100%; object-fit: cover; }
.clip__dur { position: absolute; right: 0; bottom: 0; background: var(--ink); color: var(--paper); font: 600 .75rem/1 var(--mono); padding: .3rem .4rem; }
.clip__body > * { margin: 0; }
.clip .kicker { font-size: .8125rem; margin-bottom: .2rem; }
.clip__title { font-size: 1.0625rem; line-height: 1.45; }
.clip__title a { color: var(--ink); text-decoration: none; }
.clip__title a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.clip__lede { font-size: .9375rem; line-height: 1.65; color: var(--soft); margin-top: .3rem; display: none; }
.clip .meta { margin-top: .35rem; font-size: .8125rem; }
@media (min-width: 40rem) {
  .clip { grid-template-columns: 13.5rem 1fr; gap: 1.25rem; }
  .clip__lede { display: block; }
  .clip__title { font-size: 1.1875rem; }
}
@media (min-width: 62rem) {
  .clips--compact { grid-template-columns: 1fr 1fr; column-gap: var(--gap); }
  .clips--compact .clip { grid-template-columns: 10rem 1fr; }
}

/* consensus / differences */
.split { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; } }
.points li { position: relative; padding: .75rem 0 .75rem 1.5rem; border-bottom: 1px solid var(--rule); }
.points li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: .6rem; height: .6rem; background: var(--ink); }
.points--alt li::before { background: transparent; border: 2px solid var(--accent); }

/* ranking table */
.tablewrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--sheet); }
.rank { width: 100%; min-width: 38rem; border-collapse: collapse; font-size: .9375rem; }
.rank th, .rank td { padding: .6rem .75rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; font-weight: 400; line-height: 1.5; }
.rank thead th { font-size: .8125rem; color: var(--soft); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.rank tbody tr:last-child > * { border-bottom: 0; }
.rank tbody th a { color: var(--ink); font-weight: 600; }
.rank tbody th .meta { display: block; font-size: .8125rem; }
.rank .n { font-family: var(--mono); font-size: .8125rem; text-align: right; white-space: nowrap; }
.rank td.n { position: relative; padding-top: .75rem; }
.bar { display: block; height: 3px; width: var(--w); background: var(--accent); margin: 0 0 .3rem auto; }

/* timeline */
.tl { display: grid; gap: 1.5rem var(--gap); }
@media (min-width: 52rem) { .tl { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); } }
.tl__m h3 { font-size: .9375rem; color: var(--soft); font-weight: 400; margin-bottom: .25rem; }
.tl__m ol { border-left: 2px solid var(--ink); }
.tl__m li { position: relative; padding: .5rem 0 .5rem 1.1rem; line-height: 1.5; }
.tl__m li::before { content: ""; position: absolute; left: -6px; top: 1.05rem; width: 10px; height: 2px; background: var(--ink); }
.tl__m time { display: block; font: 600 .75rem/1.6 var(--mono); color: var(--accent-ink); }
.tl__m a { color: var(--ink); font-size: .9375rem; }
.tl__m .meta { display: block; font-size: .8125rem; }

/* faq */
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: .9rem 2rem .9rem 0; font-weight: 600; position: relative; list-style: none; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .7rem; font: 400 1.25rem/1.5 var(--mono); color: var(--accent-ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { max-width: var(--measure); margin: 0 0 1rem; }

/* channel list, callout */
.chlist li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.chlist a { color: var(--ink); font-weight: 600; }
.callout p { max-width: 48ch; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; padding: .6rem 1.1rem; font-weight: 600; }
.btn:hover { background: var(--accent-ink); color: #fff; }

/* video page */
.video { margin-top: 1.5rem !important; }
.video__head { max-width: 54rem; margin-bottom: 1.5rem; }
.orig { font-size: .9375rem; color: var(--soft); margin: .75rem 0 0; }
.meta--row a { color: var(--ink); font-weight: 600; }
.player { background: var(--ink); aspect-ratio: 16 / 9; position: relative; }
.player__link { display: block; position: relative; height: 100%; }
.player img, .player iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.player__btn { position: absolute; left: 0; bottom: 0; width: clamp(3.5rem, 9vw, 5rem); aspect-ratio: 1; background: var(--accent); }
.player__btn::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-style: solid; border-width: .65rem 0 .65rem 1.1rem; border-color: transparent transparent transparent #fff; transform: translateX(.1rem); }
.player__link:hover .player__btn { background: var(--ink); }
.cols { display: grid; gap: 2rem clamp(2rem, 5vw, 3.5rem); margin-top: 1.75rem; }
@media (min-width: 62rem) { .cols { grid-template-columns: minmax(0, 1fr) 21rem; align-items: start; } }
.cols__main > * + * { margin-top: 2rem; }
.cols__main h2 { font-size: 1.25rem; margin-bottom: .75rem; }
.lede { font-size: clamp(1.125rem, 1.05rem + .4vw, 1.3rem); line-height: 1.65; margin: 0; }
.take { background: var(--sheet); border: 1px solid var(--rule); border-left: 3px solid var(--accent); padding: 1.1rem 1.25rem; }
.take li { position: relative; padding: .35rem 0 .35rem 1.4rem; line-height: 1.65; }
.take li::before { content: ""; position: absolute; left: 0; top: 1rem; width: .55rem; height: .55rem; background: var(--ink); }
.prose h3 { font-size: 1.125rem; margin: 1.75rem 0 .5rem; }
.prose h3:first-of-type { margin-top: 0; }
.prose p, .verdict p { max-width: var(--measure); }
.verdict { border-top: 2px solid var(--ink); padding-top: 1rem; }
.verdict p { font-size: 1.125rem; line-height: 1.65; margin: 0; }
.cols__side { display: grid; gap: 1.25rem; }
.box { background: var(--sheet); border: 1px solid var(--rule); padding: 1rem 1.1rem; }
.box h2 { font-size: 1rem; margin-bottom: .5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--ink); }
.box p { margin: 0 0 .5rem; font-size: .9375rem; }
.box p:last-child { margin: 0; }
.chapters a { display: grid; grid-template-columns: 3.6rem 1fr; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-size: .9375rem; line-height: 1.5; }
.chapters li:last-child a { border-bottom: 0; }
.chapters a:hover { background: var(--tint); }
.chapters .t { font: 600 .8125rem/1.75 var(--mono); color: var(--accent-ink); }
.kv { margin: 0; }
.kv > div { padding: .45rem 0; border-bottom: 1px solid var(--rule); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { font-size: .8125rem; color: var(--soft); }
.kv dd { margin: 0; font-weight: 600; font-size: .9375rem; line-height: 1.5; }
.reslist li { padding: .5rem 0; border-bottom: 1px solid var(--rule); font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; }
.reslist li:last-child { border-bottom: 0; }
.reslist .meta { display: block; font-size: .8125rem; }
@media (min-width: 48rem) { .reslist--cols { columns: 2; column-gap: var(--gap); } .reslist--cols li { break-inside: avoid; } .reslist--cols li:last-child { border-bottom: 1px solid var(--rule); } }

/* generic pages */
.pagehead { margin-top: 1.75rem; max-width: 54rem; }
.pagehead h1 { margin-bottom: 1rem; }
.pagehead p { max-width: var(--measure); }
.toc { margin-top: 1rem; }
.prose--page { max-width: var(--measure); margin-block: 2rem 4rem; }
.prose--page h2 { font-size: 1.25rem; margin: 2rem 0 .5rem; }
.prose--page ul { list-style: square; padding-left: 1.25rem; margin-bottom: 1em; }
.prose--page li { padding: .2rem 0; overflow-wrap: anywhere; }

/* footer */
.foot { border-top: 2px solid var(--ink); margin-top: 4rem; padding: 1.5rem 0 2.5rem; font-size: .875rem; color: var(--soft); }
.foot .wrap { width: min(100% - 2rem, 74rem); }
.foot p { max-width: 80ch; margin: 0 0 .5rem; }
.foot__nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin-bottom: 1rem; }
.foot a { color: var(--ink); }

@media print { .top, .foot__nav, .tools, .player__btn { display: none; } body { background: #fff; } }
