/* HackerFriction: Justusability brand tokens. Light pages (#E8F6EE) with dark green bands; amber means friction. */
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url(fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --green-950: #041B12; --green-900: #082F20; --green-700: #206347; --green-400: #68DBAA;
  --green-200: #B6EBD1; --green-100: #D8F2E4; --green-50: #E8F6EE; --dot: #17513B;
  --purple-300: #B6A9FF; --purple-deep: #6E5FD3;
  --amber-300: #F0BD72; --amber-texture: #C98F45; --amber-900: #322719;
  --ink: #191B21; --muted: #596170; --white: #FFFFFF;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  /* Dark green breaking up into square pixels: an ordered (Bayer) dither with a gentle wave, 256x80 tile. */
  --dither-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='80'%3E%3Cpath fill='%23082F20' d='M0 0h8v8h-8zM8 0h8v8h-8zM16 0h8v8h-8zM24 0h8v8h-8zM32 0h8v8h-8zM40 0h8v8h-8zM48 0h8v8h-8zM56 0h8v8h-8zM64 0h8v8h-8zM72 0h8v8h-8zM80 0h8v8h-8zM88 0h8v8h-8zM96 0h8v8h-8zM104 0h8v8h-8zM112 0h8v8h-8zM120 0h8v8h-8zM128 0h8v8h-8zM136 0h8v8h-8zM144 0h8v8h-8zM152 0h8v8h-8zM160 0h8v8h-8zM168 0h8v8h-8zM176 0h8v8h-8zM184 0h8v8h-8zM192 0h8v8h-8zM200 0h8v8h-8zM208 0h8v8h-8zM216 0h8v8h-8zM224 0h8v8h-8zM232 0h8v8h-8zM240 0h8v8h-8zM248 0h8v8h-8zM0 8h8v8h-8zM8 8h8v8h-8zM16 8h8v8h-8zM24 8h8v8h-8zM32 8h8v8h-8zM40 8h8v8h-8zM48 8h8v8h-8zM56 8h8v8h-8zM64 8h8v8h-8zM72 8h8v8h-8zM80 8h8v8h-8zM88 8h8v8h-8zM96 8h8v8h-8zM104 8h8v8h-8zM112 8h8v8h-8zM120 8h8v8h-8zM128 8h8v8h-8zM136 8h8v8h-8zM152 8h8v8h-8zM168 8h8v8h-8zM184 8h8v8h-8zM200 8h8v8h-8zM216 8h8v8h-8zM232 8h8v8h-8zM248 8h8v8h-8zM0 16h8v8h-8zM8 16h8v8h-8zM16 16h8v8h-8zM24 16h8v8h-8zM32 16h8v8h-8zM40 16h8v8h-8zM48 16h8v8h-8zM56 16h8v8h-8zM64 16h8v8h-8zM72 16h8v8h-8zM80 16h8v8h-8zM88 16h8v8h-8zM96 16h8v8h-8zM104 16h8v8h-8zM112 16h8v8h-8zM120 16h8v8h-8zM128 16h8v8h-8zM136 16h8v8h-8zM144 16h8v8h-8zM152 16h8v8h-8zM160 16h8v8h-8zM176 16h8v8h-8zM192 16h8v8h-8zM208 16h8v8h-8zM216 16h8v8h-8zM224 16h8v8h-8zM240 16h8v8h-8zM248 16h8v8h-8zM8 24h8v8h-8zM24 24h8v8h-8zM40 24h8v8h-8zM48 24h8v8h-8zM56 24h8v8h-8zM72 24h8v8h-8zM80 24h8v8h-8zM88 24h8v8h-8zM104 24h8v8h-8zM120 24h8v8h-8zM136 24h8v8h-8zM152 24h8v8h-8zM184 24h8v8h-8zM216 24h8v8h-8zM232 24h8v8h-8zM248 24h8v8h-8zM0 32h8v8h-8zM8 32h8v8h-8zM16 32h8v8h-8zM24 32h8v8h-8zM32 32h8v8h-8zM40 32h8v8h-8zM48 32h8v8h-8zM56 32h8v8h-8zM64 32h8v8h-8zM72 32h8v8h-8zM80 32h8v8h-8zM88 32h8v8h-8zM96 32h8v8h-8zM104 32h8v8h-8zM112 32h8v8h-8zM128 32h8v8h-8zM144 32h8v8h-8zM160 32h8v8h-8zM176 32h8v8h-8zM192 32h8v8h-8zM208 32h8v8h-8zM224 32h8v8h-8zM240 32h8v8h-8zM8 40h8v8h-8zM24 40h8v8h-8zM40 40h8v8h-8zM56 40h8v8h-8zM72 40h8v8h-8zM88 40h8v8h-8zM104 40h8v8h-8zM136 40h8v8h-8zM0 48h8v8h-8zM16 48h8v8h-8zM32 48h8v8h-8zM48 48h8v8h-8zM64 48h8v8h-8zM80 48h8v8h-8zM96 48h8v8h-8zM112 48h8v8h-8zM144 48h8v8h-8zM240 48h8v8h-8zM32 64h8v8h-8zM48 64h8v8h-8zM64 64h8v8h-8zM96 64h8v8h-8z'/%3E%3C/svg%3E");
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* The page is a dark frame (bar and sidebar) holding a light sheet of content. The frame has a faint
   grain and dot grid, drawn here rather than loaded, and fixed so the sheet slides over it. */
body { margin: 0; color: var(--ink); font: 400 16px/1.6 var(--body); background-color: var(--green-950);
       background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .41 0 0 0 0 .86 0 0 0 0 .67 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
                         radial-gradient(rgba(104, 219, 170, .16) 1px, transparent 1.6px);
       background-size: 180px 180px, 16px 16px; background-attachment: fixed; }
img, svg { max-width: 100%; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
:focus-visible { outline: 3px solid var(--purple-deep); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.narrow { max-width: 720px; }

/* Kicker, headings */
.kicker { font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--green-700); margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(38px, 7vw, 76px); line-height: 1.0; letter-spacing: -.04em; }
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.08; letter-spacing: -.02em; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.02em; }
.lede { font-size: 18px; max-width: 62ch; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* Site bar */
.bar { color: var(--white); }  /* no fill of its own: the frame's texture runs under it */
.bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font: 500 18px var(--display); letter-spacing: -.02em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand:hover { color: var(--green-400); }
/* Feedback sits in the bar on every page, at every width: right-aligned, beside Menu or the search box. */
.bar-feedback { margin-left: auto; font: 600 14px/1 var(--body); color: var(--green-950); background: var(--green-400);
                border-radius: 999px; padding: 10px 16px; text-decoration: none; }
.bar-feedback:hover { background: var(--green-200); color: var(--green-950); }
@media (max-width: 600px) { .bar .wrap { column-gap: 8px; } .bar-feedback, .menu-button { padding: 9px 13px; } }
/* Menu: on narrow screens the bar's Menu button opens the sidebar (a CSS-only checkbox toggle) */
.menu-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.menu-button { cursor: pointer; font: 600 14px/1 var(--body); color: var(--green-100);
               border: 1px solid rgba(104, 219, 170, .22); border-radius: 999px; padding: 9px 16px; }
.menu-button:hover { background: rgba(104, 219, 170, .1); color: var(--white); }
.menu-button .when-open, .menu-toggle:checked ~ .bar .menu-button .when-closed { display: none; }
.menu-toggle:checked ~ .bar .menu-button .when-open { display: inline; }
.menu-toggle:checked ~ .bar .menu-button { background: var(--green-400); border-color: var(--green-400); color: var(--green-950); }
.menu-toggle:focus-visible ~ .bar .menu-button { outline: 3px solid var(--green-400); outline-offset: 2px; }

/* Hero (home) */
.hero { background: var(--green-900); color: var(--white); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: center; padding-block: 40px 56px; }
.hero h1 em { font-style: normal; color: var(--green-400); }
.hero .lede { color: var(--green-100); margin: 22px 0 0; }
.hero .kicker { color: var(--green-200); margin-bottom: 18px; }
.hero-art { justify-self: end; width: 100%; max-width: 420px; }
@media (max-width: 760px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .hero-art { justify-self: start; max-width: 300px; order: -1; margin-top: -40px; } }

/* Home: the ranking's heading, with the period as a dropdown, and a big search box */
.home-hero { background: var(--green-900); color: var(--white); position: relative; overflow: hidden; }
.home-hero .wrap { position: relative; z-index: 1; }
/* Brand artwork to the right of the headline: it starts just past the 720px search box and runs off the
   right edge, cropped from the right as the sheet narrows, and leaves when there's no room for it. */
.home-art { --art-left: calc(max(0px, (100% - 1200px) / 2) + var(--gutter-l) + 760px);
            position: absolute; top: 0; left: var(--art-left); width: calc(100% - var(--art-left)); height: 100%; max-width: none; }
@container (max-width: 1080px) { .home-art { display: none; } }
/* The dark hero breaks up into the light sheet below in square pixels (ordered dither). */
.home-hero::after { content: ""; display: block; height: 80px; background-color: var(--green-50);
  background-image: var(--dither-edge);
  background-repeat: repeat-x; position: relative; z-index: 1; }
.home-hero .wrap { padding-block: 56px 60px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.home-hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.2; max-width: 22ch; }
.home-hero .hints { margin-top: -18px; }  /* the hints belong to the search box above */
.period { display: inline-block; position: relative; }
.period summary { display: inline; list-style: none; cursor: pointer; color: var(--green-400);
                  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.period summary::-webkit-details-marker { display: none; }
.period summary::after { content: " \25BE"; font-size: .55em; vertical-align: .2em; }
.period ul { position: absolute; z-index: 5; left: 0; top: 100%; margin: 10px 0 0; padding: 6px; list-style: none;
             min-width: 260px; background: var(--white); border-radius: 12px; box-shadow: 0 10px 30px rgba(4, 27, 18, .3);
             font: 600 16px/1.4 var(--body); letter-spacing: 0; }
.period a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.period a:hover { background: var(--green-50); }
.period a[aria-current="page"] { background: var(--green-100); color: var(--green-900); }
.big-search { display: flex; gap: 8px; max-width: 720px; background: var(--white); border-radius: 999px; padding: 6px 6px 6px 22px; }
.big-search input { flex: 1; min-width: 0; border: 0; background: none; font: 400 18px var(--body); color: var(--ink); }
.big-search input:focus { outline: none; }
.big-search:focus-within { outline: 3px solid var(--green-400); outline-offset: 2px; }
.big-search button { font: 600 16px var(--body); background: var(--green-400); color: var(--green-950); border: 0; border-radius: 999px; padding: 10px 22px; cursor: pointer; }
.big-search button:hover { background: var(--green-200); }
.hints { margin: 0; font-size: 15px; color: var(--green-200); }
.hints a { color: var(--green-400); }
.home-list { padding-top: 28px; }
.home-list .wrap { display: grid; gap: 16px; }
/* Home page questions: one tinted panel that opens to two independent columns of questions, so opening
   one question doesn't move the other column. */
.faq { background: var(--green-100); border-radius: 18px; padding: 4px 24px; margin-bottom: 10px;
       border: 1px solid var(--green-200); box-shadow: 0 1px 2px rgba(4, 27, 18, .06), 0 6px 18px rgba(4, 27, 18, .08);
       transition: box-shadow .15s ease, transform .15s ease; }
/* Closed, it lifts like a button when hovered and settles when pressed. */
.faq:not([open]):has(> summary:hover) { box-shadow: 0 2px 4px rgba(4, 27, 18, .08), 0 12px 28px rgba(4, 27, 18, .12); transform: translateY(-1px); }
.faq:not([open]):has(> summary:active) { box-shadow: 0 1px 2px rgba(4, 27, 18, .06); transform: none; }
@media (prefers-reduced-motion: reduce) { .faq { transition: none; } .faq:not([open]):has(> summary:hover) { transform: none; } }
.faq-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 36px;
            border-top: 1px solid var(--green-200); margin-bottom: 4px; }
.faq-col { min-width: 0; }
.faq-item + .faq-item { border-top: 1px solid var(--green-200); }
/* The whole row is the button: it lifts to white on hover, and the round marker fills in. */
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
               gap: 16px; margin: 4px -12px; padding: 10px 12px; border-radius: 12px; user-select: none;
               font: 500 17px/1.3 var(--display); letter-spacing: -.01em; color: var(--ink);
               transition: background-color .15s ease, color .15s ease; }
/* The closed panel reads as a button: a neon "?" disc, the title, a line saying what's inside, and a
   filled marker. */
.faq > summary { font-size: 19px; justify-content: flex-start; padding-block: 12px; }
.faq-mark { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
            background: var(--green-400); color: var(--green-950); font: 500 20px/1 var(--display); }
.faq-teaser { flex: 1; min-width: 0; font: 400 15px/1.4 var(--body); letter-spacing: 0; color: var(--muted); }
details.faq > summary::after { background: var(--green-700); color: var(--white); width: 30px; height: 30px; }
details.faq > summary:hover::after { background: var(--green-900); }
@media (max-width: 600px) { .faq-teaser { display: none; } .faq-title { flex: 1; } }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
                      background: var(--white); color: var(--green-700); font: 500 18px/1 var(--body);
                      transition: transform .2s ease, background-color .15s ease, color .15s ease; }
.faq summary:hover { background: rgba(255, 255, 255, .7); color: var(--green-900); }
.faq summary:hover::after { background: var(--green-700); color: var(--white); }
.faq summary:active { background: var(--white); }
.faq summary:focus-visible { outline-offset: 0; border-radius: 12px; }
.faq[open] > summary::after, .faq-item[open] > summary::after { transform: rotate(45deg); background: var(--green-700); color: var(--white); }
.faq[open] > summary, .faq-item[open] > summary { color: var(--green-900); }
.faq-item p { margin: 0 0 16px; font-size: 15px; color: var(--ink); max-width: 62ch; }
@media (prefers-reduced-motion: reduce) { .faq summary, .faq summary::after { transition: none; } }
@media (max-width: 760px) {
  .faq { padding: 4px 18px; }
  .faq-body { grid-template-columns: minmax(0, 1fr); }
  .faq-col + .faq-col .faq-item:first-child { border-top: 1px solid var(--green-200); }
}
.issue-row .line a { color: var(--green-700); }

.hero .byline { margin: 26px 0 0; font: 500 13px/1.4 var(--mono); letter-spacing: .04em; color: var(--green-200); }

/* Figures strip */
.figures { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 30px; }
.figures div { display: grid; }
.figures b { font: 500 34px/1 var(--display); letter-spacing: -.03em; color: var(--white); }
.figures span { font-size: 13px; color: var(--green-200); }

section.block { padding-block: 56px; }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; }

/* Issue list (theme page) */
.issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.issue-row { background: var(--white); border-radius: 18px; padding: 20px 22px; display: grid; grid-template-columns: 52px minmax(0, 1fr) 200px; gap: 6px 20px; align-items: start; }
.issue-row .rank { font: 500 30px/1 var(--display); color: var(--green-700); letter-spacing: -.03em; }
.issue-row h3 a { color: var(--ink); text-decoration: none; }
/* The whole card opens the issue: the title link stretches over it, the product link stays on top.
   On hover the card gets a green edge, lifts a little and underlines its title; it settles when pressed. */
.issue-row { position: relative; transition: box-shadow .15s ease, transform .15s ease; }
.issue-row h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.issue-row .line a { position: relative; z-index: 1; }
.issue-row:hover { box-shadow: 0 0 0 1px var(--green-200), 0 8px 24px rgba(4, 27, 18, .08); transform: translateY(-1px); }
.issue-row:hover h3 a { text-decoration: underline; text-decoration-color: var(--green-400); text-decoration-thickness: 2px; }
.issue-row:active { box-shadow: 0 0 0 1px var(--green-200); transform: none; }
.issue-row h3 a:focus-visible { outline: none; }
.issue-row:has(h3 a:focus-visible) { outline: 3px solid var(--purple-deep); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .issue-row { transition: none; } .issue-row:hover { transform: none; } }
.issue-row .line { margin: 6px 0 0; font-size: 15px; }
.issue-row .principle { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.issue-row .spark { grid-column: 3; grid-row: 1 / span 2; }
@media (max-width: 700px) { .issue-row { grid-template-columns: 40px minmax(0, 1fr); } .issue-row .spark { grid-column: 2; grid-row: auto; } }

/* Tags */
.tag { display: inline-block; font: 500 11px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 1px 9px; border-radius: 999px; vertical-align: 2px; margin-left: 6px; white-space: nowrap; }

/* Charts */
.chart { display: grid; gap: 4px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .axis { display: flex; justify-content: space-between; font: 500 11px var(--mono); color: var(--muted); }

/* Issue page */
.issue-head { background: var(--green-900); color: var(--white); }
.issue-head .wrap { padding-block: 40px 44px; display: grid; gap: 16px; }
.issue-head .kicker, .issue-head .kicker a { color: var(--green-200); }
.issue-head h1 { font-size: clamp(32px, 5.4vw, 56px); line-height: 1.04; }
.issue-head .says { font-size: 19px; color: var(--green-100); max-width: 60ch; margin: 0; }
.issue-head .says b { color: var(--white); font-weight: 600; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 760px) { .panel-grid { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--white); border-radius: 18px; padding: 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.panel p { margin: 0; }
.panel.fix { background: var(--green-100); }
.stat-row { display: flex; flex-wrap: wrap; gap: 10px 30px; }
.stat-row div { display: grid; }
.stat-row b { font: 500 30px/1.05 var(--display); letter-spacing: -.03em; }
.stat-row span { font-size: 13px; color: var(--muted); }
.quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.quotes li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
.quotes time { font: 500 12px/1.9 var(--mono); color: var(--muted); }
.quotes blockquote { margin: 0; font-size: 17px; line-height: 1.5; }
.quotes blockquote::before { content: "\201C"; } .quotes blockquote::after { content: "\201D"; }
.quotes a { font-size: 13px; white-space: nowrap; }
@media (max-width: 520px) { .quotes li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
details.sources summary { cursor: pointer; font-weight: 600; }
details.sources ol { columns: 3 170px; column-gap: 24px; padding-left: 0; list-style: none; font: 500 13px/1.9 var(--mono); }
.reviewed { font-size: 14px; color: var(--muted); }

/* Prose (method page) */
.prose { max-width: 68ch; }
.prose h2 { margin: 40px 0 12px; }
.prose p, .prose li { font-size: 17px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.table-wrap { overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--green-200); }
.prose td.num, .prose th.num { text-align: right; }


/* Header search */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search-form { flex: 1 1 220px; max-width: 300px; }
.search-form input { width: 100%; font: 400 14px var(--body); color: var(--white); background: var(--green-900); border: 1px solid rgba(104, 219, 170, .22); border-radius: 999px; padding: 7px 14px; }
.search-form input::placeholder { color: var(--green-200); opacity: .8; }
.search-form input:focus { outline: 2px solid var(--green-400); outline-offset: 1px; }
@media (max-width: 760px) { .search-form { max-width: none; flex-basis: 100%; } }

/* Search results */
.result-group { display: grid; gap: 12px; margin-bottom: 32px; }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.result { background: var(--white); border-radius: 18px; padding: 14px 18px; }
.result.raw { background: transparent; border: 1px dashed var(--muted); }
.result h3 { font-size: 19px; }
.result h3 a { color: var(--ink); text-decoration: none; }
.result h3 a:hover { text-decoration: underline; }
.result p { margin: 4px 0 0; font-size: 14px; }

/* Reviewed / unreviewed badges */
.tag.reviewed { background: var(--green-100); color: var(--green-900); }
.issue-head .tag.reviewed { background: var(--green-400); color: var(--green-950); }
.tag.unreviewed { background: transparent; color: inherit; border: 1px dashed currentColor; }
.kicker .tag.unreviewed { margin-left: 0; }
.raw-note { background: transparent; border: 1px dashed var(--muted); font-size: 15px; }
.parts { margin: 0; padding-left: 20px; }
.raw-table td, .raw-table th { text-align: left; padding: 7px 14px 7px 0; border-bottom: 1px solid var(--green-100); font-size: 15px; }
.raw-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Principles */
.tag-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.tag-list li { background: var(--white); border-radius: 18px; padding: 16px 20px; display: grid; gap: 2px; }
.tag-list a { font: 500 20px/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.tag-list a:hover { color: var(--green-700); }
.tag-list span { font-size: 13px; }
.issue-row.no-rank { grid-template-columns: minmax(0, 1fr) 200px; }
.issue-row.no-rank .spark { grid-column: 2; }
.issue-row .kicker { margin-bottom: 4px; }
@media (max-width: 700px) { .issue-row.no-rank { grid-template-columns: minmax(0, 1fr); } .issue-row.no-rank .spark { grid-column: 1; } }

/* Footer */
footer { background: var(--green-900); color: var(--green-100); font-size: 14px; }
footer .wrap { padding-block: 40px; display: grid; gap: 14px; }
footer a { color: var(--green-400); }
footer p { margin: 0; max-width: 80ch; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
.raw-issues { margin: 0; padding-left: 22px; display: grid; gap: 14px; }
.raw-issue { margin: 0; font-weight: 600; }
.raw-meta { margin: 2px 0 4px; color: var(--muted); font-size: 14px; }
.src-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; font-size: 15px; }
.src-date { margin-left: 10px; font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; }
details.raw-more summary { cursor: pointer; font-weight: 600; font-size: 14px; margin-top: 6px; }
/* Period switch on product pages: CSS-only radio switch, each period its own list */
.sort-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sort-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.sort-bar .kicker { margin-right: 4px; }
.sort-bar label { cursor: pointer; font: 600 14px var(--body); padding: 4px 14px; border-radius: 999px; border: 1px solid var(--green-700); color: var(--green-700); }
#per-this-year:checked ~ .sort-bar label[for="per-this-year"], #per-5-years:checked ~ .sort-bar label[for="per-5-years"],
#per-all-time:checked ~ .sort-bar label[for="per-all-time"] { background: var(--green-700); color: var(--white); }
#per-this-year:focus-visible ~ .sort-bar label[for="per-this-year"], #per-5-years:focus-visible ~ .sort-bar label[for="per-5-years"],
#per-all-time:focus-visible ~ .sort-bar label[for="per-all-time"] { outline: 3px solid var(--purple-deep); outline-offset: 2px; }
.period-list { display: none; }
#per-this-year:checked ~ .p-this-year, #per-5-years:checked ~ .p-5-years, #per-all-time:checked ~ .p-all-time { display: block; }
.ranked { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ranked li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
.ranked .rank { font: 500 20px/1.3 var(--display); color: var(--green-700); }
.ranked a { font-weight: 600; }
.raw-issues li { scroll-margin-top: 16px; }
.raw-issues li:target { background: var(--green-100); border-radius: 10px; outline: 8px solid var(--green-100); }
.correct { font-size: 13px; color: var(--muted); }

/* Item pages: reading column with a counts rail beside it on wide screens. The rail
   comes first in the source, so phones and screen readers get counts first, as before. */
.detail, .detail-main { display: grid; gap: 18px; align-items: start; }
.rail .chart { max-width: 560px; }
/* Measured against the space beside the sidebar, not the window */
.shell-main { container-type: inline-size; min-width: 0; background: var(--green-50); overflow: clip;
              border-radius: 22px 22px 0 0;
              box-shadow: 0 -6px 40px rgba(0, 0, 0, .35); }
@container (min-width: 1000px) {
  .detail { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
  .detail-main { grid-column: 1; grid-row: 1; }
  .rail { grid-column: 2; grid-row: 1; }
}
@media (min-height: 680px) { @container (min-width: 1000px) { .rail { position: sticky; top: 16px; } } }
.rail .stat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px 20px; }
.rail .axis { flex-wrap: wrap; }
.rail .axis span:nth-child(2):not(:last-child) { order: 3; flex-basis: 100%; }
/* Browsing sidebar: wide screens only; below that the top bar's nav does the job */
.side { display: none; }
@media (max-width: 1199px) {
  .menu-toggle:checked ~ .shell .side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; align-items: start;
                                         padding: 4px var(--gutter-r) 22px var(--gutter-l); font-size: 15px; }
}
/* Tablets: Browse and Project on the left, the product list beside them */
@media (min-width: 600px) and (max-width: 1199px) {
  .menu-toggle:checked ~ .shell .side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .side-group:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
  .side-group:nth-child(3) { grid-column: 1; grid-row: 2; }
}
@media (min-width: 1200px) {
  .shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); padding-right: 12px; }
  .shell-main { border-radius: 28px 28px 0 0; }
  .side { display: block; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 8px 12px 32px;
          font-size: 14px; scrollbar-color: var(--green-700) transparent; }
  .menu-button { display: none; }
  .bar .search-form { margin-left: 0; }
  .bar .wrap { max-width: none; padding-left: 22px; }
}
.side ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.side-head { display: flex; justify-content: space-between; font: 600 12px/1.4 var(--body); color: var(--green-400); margin: 0 10px 8px; }
.side-head span { font-weight: 400; color: var(--green-200); opacity: .7; }
.side a { display: flex; justify-content: space-between; gap: 10px; padding: 5px 10px; border-radius: 999px;
          color: var(--green-100); text-decoration: none; line-height: 1.35; }
.side a span:first-child { min-width: 0; }
.side a .num { font: 500 12px/1.6 var(--mono); color: var(--green-200); opacity: .7; }
.side a:hover { background: rgba(104, 219, 170, .1); color: var(--white); }
.side a[aria-current="page"] { background: var(--green-400); color: var(--green-950); font-weight: 600; }
.side a[aria-current="page"] .num { color: var(--green-950); opacity: .75; }
.side a:focus-visible { outline-color: var(--green-400); }
.side .side-more { display: block; margin: -14px 0 22px 10px; font-size: 13px; color: var(--green-400); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--white); color: var(--green-900);
        font-weight: 600; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.issue-entry { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 4px 16px; align-items: start; }
@media (max-width: 520px) { .issue-entry { grid-template-columns: minmax(0, 1fr); } .issue-entry .chart { max-width: 200px; } }

/* Comment panel (web/comments.js): slides in from the right over a dimmed page; a bottom sheet on phones. */
.cp { position: fixed; inset: 0; z-index: 60; }
.cp[hidden] { display: none; }
.cp-lock { overflow: hidden; }
.cp-scrim { position: absolute; inset: 0; background: rgba(4, 27, 18, .5); opacity: 0; transition: opacity .3s cubic-bezier(.2, 0, 0, 1); }
.cp.open .cp-scrim { opacity: 1; }
.cp-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--white); display: flex; flex-direction: column;
            border-radius: 22px 0 0 22px; overflow: hidden; box-shadow: -12px 0 48px rgba(4, 27, 18, .35);
            transform: translateX(104%); transition: transform .3s cubic-bezier(.2, 0, 0, 1); }
.cp.open .cp-panel { transform: none; }
.cp-panel:focus { outline: none; }
.cp-head { background: var(--green-900); color: var(--white); padding: 22px 26px 26px; position: relative; }
.cp-head::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 40px;
                  background-image: var(--dither-edge); background-size: 128px 40px; background-repeat: repeat-x; }
.cp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cp-head .kicker { color: var(--green-200); }
.cp-close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
            background: rgba(255, 255, 255, .1); color: var(--white); font: 400 24px/1 var(--body); }
.cp-close:hover { background: var(--green-400); color: var(--green-950); }
.cp-sum { margin: 20px 0 0; font: 500 24px/1.2 var(--display); letter-spacing: -.02em; }
.cp-note { margin: 10px 0 0; font-size: 13px; color: var(--green-200); }
.cp-body { padding: 56px 26px 24px; overflow: auto; flex: 1; display: grid; gap: 18px; align-content: start; }
.cp-facts { margin: 0; display: grid; gap: 12px; }
.cp-facts div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
.cp-facts dt { font: 500 11px/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cp-facts dd { margin: 0; font-size: 15px; }
.cp-go { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
         background: var(--green-400); color: var(--green-950); font: 600 16px var(--body); text-decoration: none; margin-top: 6px; }
.cp-go:hover { background: var(--green-200); color: var(--green-950); }
.cp-thread { justify-self: center; font-size: 15px; }
.cp-thread[hidden] { display: none; }
.cp-why { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.cp-nav { display: flex; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--green-100); }
.cp-nav[hidden] { display: none; }
.cp-nav button { border: 0; background: none; cursor: pointer; font: 600 15px var(--body); color: var(--green-700); padding: 8px; border-radius: 10px; }
.cp-nav button:hover:not(:disabled) { background: var(--green-50); }
.cp-nav button:disabled { color: var(--muted); opacity: .45; cursor: default; }
.src-list a.cm::after { content: " ›"; color: var(--green-700); }
@media (max-width: 600px) {
  .cp-panel { top: auto; height: 88%; width: 100%; border-radius: 22px 22px 0 0; transform: translateY(104%); }
}
@media (prefers-reduced-motion: reduce) { .cp-scrim, .cp-panel { transition: none; } }

/* Motion. Moving between pages, the dark frame (bar and sidebar) stays put while the light sheet swaps:
   the old one fades out quickly and the new one fades in, rising a little (brand easing: leaving
   cubic-bezier(.4,0,1,1), entering cubic-bezier(0,0,.2,1)). Browsers without view transitions just
   load the page. All of it is off for people who ask for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .bar { view-transition-name: bar; }
  .shell-main { view-transition-name: sheet; }
  @media (min-width: 1200px) { .side { view-transition-name: side; } }
  ::view-transition-group(sheet) { animation: none; }
  ::view-transition-old(sheet) { animation: hf-fade-out .14s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(sheet) { animation: hf-rise-in .34s cubic-bezier(0, 0, .2, 1) both; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }

  /* The home hero's one moment: the routes of dots draw down into the U, then the amber circle drops
     in where they stop, with a little overshoot. */
  .art-routes { animation: hf-draw-down .7s cubic-bezier(.2, 0, 0, 1) .15s both; }
  .art-stuck { transform-box: fill-box; transform-origin: center; animation: hf-drop .6s cubic-bezier(0, 0, .2, 1) .7s both; }

  /* Accordions open and close smoothly where the browser can animate to and from auto heights. */
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .faq::details-content, .faq-item::details-content, details.raw-more::details-content, details.sources::details-content {
      height: 0; overflow: clip; transition: height .28s cubic-bezier(.2, 0, 0, 1), content-visibility .28s allow-discrete; }
    .faq[open]::details-content, .faq-item[open]::details-content, details.raw-more[open]::details-content,
    details.sources[open]::details-content { height: auto; }
  }
  .period[open] ul { animation: hf-pop .16s cubic-bezier(0, 0, .2, 1); }
  .side a, .bar a, .hints a, .big-search button { transition: background-color .15s ease, color .15s ease; }
}
@keyframes hf-fade-out { to { opacity: 0; } }
@keyframes hf-rise-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes hf-draw-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hf-drop { 0% { opacity: 0; transform: translateY(-70px) scale(.9); } 65% { opacity: 1; transform: translateY(6px) scale(1.02); }
                     100% { transform: none; } }
@keyframes hf-pop { from { opacity: 0; transform: translateY(-6px); } }

/* Feedback page */
.feedback-ways h2 { font-size: 24px; }
.feedback-ways .panel { gap: 14px; }
.pill-button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; text-decoration: none;
               background: var(--green-400); color: var(--green-950); font: 600 15px var(--body); }
.pill-button:hover { background: var(--green-200); color: var(--green-950); }
.feedback-more { margin-top: 18px; }
