/* Outfit is hosted on this site (static/fonts), so visitors' devices never contact Google. Georgia is already on readers' devices. */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/outfit-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/outfit-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Newsreader is the editorial face for headlines, cards and article text. Hosted here too,
   so no visitor's device contacts Google. The optical-size axis is left out deliberately:
   it more than doubled the file, and the tracking below does that job by hand instead. */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/newsreader-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/newsreader-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #111318;
  --text: #23262d;
  --muted: #5f6672;
  --line: #e6e8ec;
  --bg: #ffffff;
  --accent: #1d5fe0;
  --accent-soft: #eef3fd;
  --hl: #f59e0b;
  --hl-ink: #c2410c;
  --measure: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
:root {
  --shell: 1120px; --reading: 680px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  /* Radius scale, November 2026. Four sizes by role, plus the pill and the circle.
     Nested surfaces step down: a panel is --r-lg, the rows inside it are --r-sm. */
  --r-xs: 3px;    /* pictures, inline marks, gaps and inputs in exercises */
  --r-sm: 6px;    /* anything sitting inside a panel */
  --r-md: 8px;    /* standalone controls: buttons, tabs, fields */
  --r-lg: 12px;   /* panels, menus, cards, dialogs */
  --r-pill: 999px;  /* only for thin tracks such as the audio bar. Buttons, chips and badges are rounded rectangles (John, 2026-11-23): never pills. */
  --radius-sm: 6px; --radius-md: 8px;
  --control-h: 44px; --control-h-desktop: 38px;
  --shadow-popover: 0 12px 30px rgb(17 19 24 / 12%);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-style: normal;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

em, i, cite, address, blockquote, dfn, var { font-style: normal; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-xs); }

.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap, .site-footer .wrap { max-width: 1120px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; min-width: 0; gap: 9px; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand svg { flex: none; color: var(--accent); }
.brand .wm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand .wm span { color: var(--accent); }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.9375rem; padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

main { flex: 1; width: 100%; }

/* shared bits */
.meta { font-size: 0.9375rem; color: var(--muted); }
.meta span + span::before { content: '\00b7\200b'; margin: 0 0.55em; }

h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -0.01em; word-spacing: 0.08em; }

/* gallery */
/* the line under the menu is a banner, a quiet band that sets the site apart from the articles below it */
.banner { background: #f4f6fa; border-bottom: 1px solid var(--line); }
.banner .wrap { padding-bottom: 22px; }
.intro { margin: 0; padding: 22px 0 0; font-size: clamp(1rem, 3.8vw, 1.25rem); font-weight: 500; line-height: 1.4; letter-spacing: 0; word-spacing: normal; color: var(--text); }

/* Section headings carry the page, so they are set in the editorial face. */
.sec-h { margin: 0; font-family: var(--rf); font-size: clamp(1.5rem, 3.4vw, 1.9375rem); line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); text-transform: none; }
.latest-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin: 28px 0 0; }
.latest-head .browse-status { flex: 0 0 auto; }

.gallery { list-style: none; margin: 26px 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; row-gap: 44px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .gallery { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .gallery .card { padding: 22px 0; border-top: 1px solid var(--line); }
  .gallery .card:first-child { border-top: 0; padding-top: 6px; }
}

/* Numbered pages, so the archive arrives in readable amounts. */
.pager-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0 0 64px; }
.pager-nav[hidden] { display: none; }
.pager-pages { display: flex; flex-wrap: wrap; gap: 6px; }
.pager-btn, .pager-num { font: inherit; font-size: 0.875rem; font-weight: 600; min-height: 44px; min-width: 44px; padding: 6px 14px; color: var(--ink); background: #fff; border: 1px solid #cfd4dc; border-radius: var(--r-md); cursor: pointer; }
.pager-btn:hover:not(:disabled), .pager-num:hover { border-color: var(--accent); color: var(--accent); }
.pager-btn:disabled { opacity: 0.45; cursor: default; }
.pager-num.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager-btn:focus-visible, .pager-num:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card { position: relative; min-width: 0; }
.thumb { aspect-ratio: 3 / 2; border-radius: var(--r-xs); overflow: hidden; background: var(--accent-soft); margin-bottom: 12px; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focal, 50% 50%); transition: transform 240ms ease; }
@media (prefers-reduced-motion: reduce) { .thumb img { transition: none; } }
.card:hover .thumb img { transform: scale(1.02); }
.thumb .blank { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; color: var(--accent); text-align: center; padding: 12px; }
.card h2 { font-size: 1.375rem; line-height: 1.25; margin: 2px 0 6px; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a::after { content: ''; position: absolute; inset: 0; }
.card:hover h2 a, .card h2 a:focus-visible { color: var(--accent); }
.card h2 a:focus-visible { outline: none; }
.card:has(h2 a:focus-visible) .thumb { outline: 2px solid var(--accent); outline-offset: 3px; }
.card .sub { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { display: flex; flex-wrap: nowrap; align-items: baseline; gap: 0 10px; margin: 0 0 4px; font-size: 0.8125rem; }
.card .meta span + span::before { content: none; }
.card .meta .lvl { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta .c-date { flex: none; white-space: nowrap; }
.card h2, .card .sub { font-family: var(--rf); }
.card h2 { letter-spacing: var(--hls); }
.lvl { color: var(--accent); font-weight: 600; }
.card .meta .acct-read { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; white-space: nowrap; }
.card .meta .acct-read::before { content: ''; width: 12px; height: 12px; flex: none; background: currentColor;
  -webkit-mask: var(--dot) center / contain no-repeat; mask: var(--dot) center / contain no-repeat; }
.card .meta .acct-read.done::before { -webkit-mask-image: var(--tick); mask-image: var(--tick); }
:root { --dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23000' stroke-width='2.6'/%3E%3Cpath d='M12 7v5l3 2' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
@media (max-width: 599px) {
  .card .meta .acct-read-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
.acct-read { display: inline-flex; align-items: center; gap: 4px; }
.card .acct-read.done::before { content: ''; width: 13px; height: 13px; background: currentColor;
  -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }
:root { --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
.page-title { font-size: clamp(2rem, 6vw, 2.5rem); line-height: 1.1; margin: 52px 0 28px; }

.social { list-style: none; margin: 0 0 80px; padding: 0; display: grid; gap: 12px; }
.social a { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none; font-size: 1.1875rem; font-weight: 600; }
.social a:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* reading font and level tabs inside an article */
/* the chosen reading font applies to the title, the subheading and the article text */
:root { --rf: 'Newsreader', Georgia, 'Times New Roman', serif; --hls: -0.022em; --hlh: 1.1; }
[data-font="outfit"] { --rf: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --fs: 1; --hls: -0.015em; --hlh: 1.12; }
.article-head h1, .dek, .prose { font-family: var(--rf); }
.article-head h1 { letter-spacing: var(--hls); line-height: var(--hlh); }
.prose { line-height: var(--pl, 1.65); }
.metarow { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.metarow .meta { margin: 0; }
.metaleft { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; min-width: 0; }
.vtabs { display: inline-flex; background: #fff; border: 1px solid #cfd4dc; border-radius: var(--r-md); overflow: hidden; }
.vtabs button { font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 0; padding: 4px 16px; min-height: var(--control-h-desktop); cursor: pointer; }
.vtabs button + button { border-left: 1px solid #cfd4dc; }
.vtabs button:hover { color: var(--ink); }
.vtabs button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); }
.vtabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tools { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.pdfbtn { display: flex; align-items: center; gap: 6px; min-height: var(--control-h-desktop); font: inherit; font-size: 0.8125rem; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid #cfd4dc; border-radius: var(--r-md); padding: 4px 11px 4px 9px; cursor: pointer; }
.pdfbtn svg { width: 14px; height: 14px; color: var(--muted); }
.pdfbtn:hover { border-color: var(--accent); }
.pdfbtn:hover svg { color: var(--accent); }
.pdfbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pdrop { position: relative; }
.pdfbtn[aria-expanded="true"] { border-color: var(--accent); }
.pmenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 230px; max-width: calc(100vw - 40px); padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 12px 32px rgba(17, 19, 24, 0.16); }
.pmenu[hidden] { display: none; }
.pmenu-h { margin: 2px 2px 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pmenu-list { margin: 0 0 8px; padding: 0; list-style: none; }
.popt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 12px; font: inherit; font-size: 1rem; line-height: 1.3; color: var(--ink); text-align: left; background: none; border: 0; border-radius: var(--r-sm); cursor: pointer; }
.popt:hover, .popt:focus-visible { background: #f3f5f8; outline: none; }
.popt:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.popt[aria-checked="true"] { color: var(--accent); font-weight: 700; }
.popt .chk { visibility: hidden; flex: none; width: 16px; height: 16px; }
.popt[aria-checked="true"] .chk { visibility: visible; }
.pmenu-go { display: block; width: 100%; min-height: 38px; font: inherit; font-size: 0.9375rem; font-weight: 700; color: #fff; background: var(--accent); border: 0; border-radius: var(--r-md); cursor: pointer; }
.pmenu-go:hover { filter: brightness(1.06); }
.pmenu-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The answer key is for the teacher's printout only. On screen the exercises mark themselves. */
.ex-ans { display: none; }

.fdrop { position: relative; }
.fbtn { display: flex; align-items: center; gap: 6px; min-height: var(--control-h-desktop); font: inherit; font-size: 0.8125rem; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid #cfd4dc; border-radius: var(--r-md); padding: 4px 8px 4px 10px; cursor: pointer; }
.fbtn svg { width: 14px; height: 14px; }
.fbtn .flab { font-weight: 500; color: var(--muted); }
.fbtn .flab::after { content: ':'; }
.fbtn:hover { border-color: var(--accent); }
.fbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fmenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px; max-width: calc(100vw - 40px); margin: 0; padding: 5px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 12px 32px rgba(17, 19, 24, 0.16); }
.fmenu[hidden] { display: none; }
.fmenu li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 1rem; line-height: 1.3; color: var(--ink); cursor: pointer; }
.fmenu li:hover, .fmenu li:focus-visible { background: #f3f5f8; outline: none; }
.fmenu li[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.fmenu .chk { visibility: hidden; flex: none; width: 16px; height: 16px; }
.fmenu li[aria-selected="true"] .chk { visibility: visible; }
.fo-default { font-family: 'Newsreader', Georgia, serif; }
.fo-outfit { font-family: 'Outfit', system-ui, sans-serif; }
.lvl-head { display: none; font-size: 1.5rem; margin: 1.6em 0 0; }

/* article */
/* The article header reads top to bottom: where you came from and the tools,
   the reading level, then what the story is and when it ran. */
.article-head { padding: 24px 0 28px; }
.art-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin: 0 0 var(--space-4); }
.art-top .back { margin: 0; }
.art-top .tools { margin-left: auto; }
.art-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: var(--space-4) 0 0; font-size: 0.875rem; color: var(--muted); }
.art-meta .story-id { margin: 0; }
.art-date { color: var(--muted); }
.article-head h1 { font-size: calc(clamp(2rem, 6.4vw, 2.875rem) * var(--fs, 1)); margin: 12px 0 16px; }
.hero-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-xs); background: var(--line); }
.hero { margin: 0; }
.credit { font-size: 0.8125rem; line-height: 1.4; color: var(--muted); margin: 8px 2px 0; }
.credit a { color: var(--muted); text-underline-offset: 0.18em; }
.credit a:hover { color: var(--accent); }
.dek { font-size: calc(1.3rem * var(--fs, 1)); line-height: 1.45; color: var(--muted); margin: 0 0 26px; }
.prose { font-size: calc(1.1875rem * var(--fs, 1)); line-height: 1.65; padding-bottom: 28px; }
.prose p { margin: 0 0 0.9em; }
.prose h2 { font-size: 1.5rem; line-height: 1.25; margin: 2em 0 0.6em; }
.prose h3 { font-size: 1.25rem; line-height: 1.3; margin: 1.7em 0 0.5em; }
.prose ul { margin: 0 0 1.25em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; background: var(--accent-soft); border-radius: var(--r-lg); color: var(--ink); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose figure { margin: 1.8em 0; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: var(--r-xs); }
.source { font-size: 0.9375rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin: 12px 0 0; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); margin: 36px 0 64px; padding-top: 24px; }
.pager > * { min-width: 0; }
.pager a { display: block; text-decoration: none; color: var(--ink); font-weight: 600; line-height: 1.35; }
.pager a:hover { color: var(--accent); }
.pager small { display: block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pager .next { text-align: right; grid-column: 2; }

.empty { padding: 24px 0 96px; color: var(--muted); font-size: 1.125rem; }

.back { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.125rem; font-weight: 600; color: var(--ink); text-decoration: none; margin: -8px 0 10px; }
.back:hover { color: var(--accent); }

/* wide (gallery) pages */
.wide .wrap { max-width: 1120px; }

/* highlights */
mark.hl { background: none; color: inherit; text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 3px; text-underline-offset: 0.22em; text-decoration-skip-ink: none; cursor: pointer; }
mark.hl:hover { background: rgba(245, 158, 11, 0.16); }
mark.hl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }
.hl-hint { font-size: 0.875rem; color: var(--muted); margin: 0 0 14px; }
.hl-hint[hidden], .hl-list[hidden], .hl-pill[hidden] { display: none; }
.hl-pill { position: absolute; z-index: 40; display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; border: 0; border-radius: var(--r-md); padding: 8px 14px 8px 11px; font: 600 0.8125rem/1 'Outfit', system-ui, sans-serif; white-space: nowrap; cursor: pointer; box-shadow: 0 8px 22px rgba(17, 19, 24, 0.28); }
.hl-pill:hover { background: #000; }
.hl-pill:focus-visible { outline: 2px solid var(--hl); outline-offset: 2px; }
.hl-list { margin: 34px 0 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.hl-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hl-ink); margin: 0 0 8px; }
.hl-list ol { list-style: none; margin: 0; padding: 0; }
.hl-list li { display: block; border-bottom: 1px solid #f0f1f4; }
.hl-list li:last-child { border-bottom: 0; }
.hl-item > summary { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto auto; align-items: center; gap: 0 8px; min-height: 46px; padding: 8px 0; cursor: pointer; list-style: none; font-size: 1rem; font-weight: 400; letter-spacing: normal; text-transform: none; color: var(--text); }
.hl-item > summary::-webkit-details-marker { display: none; }
.hl-item > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
.hl-item > summary:hover .w { color: var(--accent); }
/* the word, and beside it the first sense, so a shut row still says something */
.hl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 10px; min-width: 0; }
.hl-peek { flex: 1 1 10rem; min-width: 0; font-family: var(--sf); font-size: 0.875rem; line-height: 1.45; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-item[open] .hl-peek { display: none; }
.hl-chev { display: flex; flex: none; color: var(--muted); transition: transform 0.15s; }
.hl-chev svg { margin-left: 0; transform: none; }
/* remove and open sit side by side, so on a touch screen they each need a target */
@media (pointer: coarse) {
  .hl-list .x { display: flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0; }
  .hl-chev { min-width: 40px; min-height: 40px; align-items: center; justify-content: center; }
}
.hl-item[open] .hl-chev { transform: rotate(180deg); }
.hl-main { min-width: 0; padding: 0 0 15px 2.4rem; }
.hl-list .n { font-size: 0.8125rem; font-weight: 700; color: var(--hl-ink); font-variant-numeric: tabular-nums; }
.hl-list .w { display: block; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.hl-list .x { background: none; border: 0; color: var(--muted); font: inherit; font-size: 1.25rem; line-height: 1; padding: 2px 8px; border-radius: var(--r-sm); cursor: pointer; }
.hl-list .x:hover { color: var(--hl-ink); background: #fff7e6; }
.hl-list .x:focus-visible, .hl-actions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hl-actions { display: flex; gap: 18px; margin-top: 10px; }
.hl-actions button { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 0.8125rem; font-weight: 600; color: var(--accent); cursor: pointer; }
.hl-list .w { font-family: var(--rf); }

/* topics: filter chips, search and the links under an article */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 28px 0 0; }
.browse { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin: 16px 0 0; }
.browse .finder { order: -1; flex: 0 0 320px; max-width: 100%; }
.browse .finder[hidden] { display: none; }
.browse .chips { flex: 1 1 auto; }
.browse .chips-rest { flex-basis: 100%; }
.browse .chips-rest[hidden] { display: none; }
.chip-more { cursor: pointer; font-family: inherit; color: var(--accent); border-color: var(--accent); }
.browse-status { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 0.875rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 820px) {
  .browse { flex-wrap: nowrap; flex-direction: column; align-items: stretch; }
  .browse .finder { flex: 0 0 auto; }
  .browse .chips { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 2px;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .browse .chips::-webkit-scrollbar { display: none; }
  .browse .chips-rest { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .latest-head { align-items: flex-start; }
}
.browse-status .linkbtn[hidden] { display: none; }
.browse + .gallery, .browse + .empty { margin-top: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; min-width: 0; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 16px; border: 1px solid #cfd4dc; border-radius: var(--r-md); background: #fff; color: var(--text); font-size: 0.875rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-current="page"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.finder { flex: 0 1 260px; min-width: 0; }
.finder[hidden] { display: none; }
.finder input { width: 100%; min-height: 44px; font: inherit; font-size: 0.9375rem; color: var(--ink); background: #fff; border: 1px solid #cfd4dc; border-radius: var(--r-md); padding: 10px 14px; }
.finder input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.filters + .gallery { margin-top: 28px; }
.topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 0; }
.topics-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.topics .chip { min-height: 30px; padding: 2px 12px; font-size: 0.8125rem; }

/* listen: a quiet player row under the picture */
.listen { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 22px 0 0; padding: 16px 0; }
.listen[hidden] { display: none; }
.listen-head { flex: none; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; font-size: 0.8125rem; line-height: 1.3; }
.listen-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.listen-voice { color: var(--muted); }
.listen-audio { display: block; width: 100%; margin-top: 8px; }
.listen.lp-on { display: flex; align-items: center; gap: 14px; }
.listen.lp-on[hidden] { display: none; }
.listen.lp-on .listen-audio { display: none; }
.lp-play { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; }
.lp-play:hover { background: #174fc0; }
.lp-play:disabled { background: #b9c0cb; cursor: default; }
.lp-play:focus-visible, .lp-back:focus-visible, .lp-speed:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-body { display: contents; }
.lp-seek { -webkit-appearance: none; appearance: none; flex: 1 1 auto; min-width: 0; order: 3; margin: 0; height: 6px; border-radius: var(--r-pill); cursor: pointer;
  background: linear-gradient(to right, var(--accent) var(--p, 0%), #dfe3ea var(--p, 0%)); }
.lp-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 1px 3px rgb(17 19 24 / 28%); }
.lp-seek::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; }
.lp-seek::-moz-range-track { height: 6px; border-radius: var(--r-pill); background: #dfe3ea; }
.lp-seek:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.lp-side { flex: none; order: 4; display: flex; align-items: center; gap: 14px; }
.lp-time { font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.lp-tools { display: flex; align-items: center; gap: 2px; }
.lp-back, .lp-speed { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; min-width: 30px; padding: 0 6px; border: 0; border-radius: var(--r-sm); background: none; color: var(--muted); font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
.lp-back:hover, .lp-speed:hover { color: var(--accent); background: var(--accent-soft); }
.lp-rate { position: relative; }
.lp-menu { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 20; min-width: 132px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-popover); }
.lp-menu[hidden] { display: none; }
.lp-opt { display: flex; align-items: baseline; gap: 8px; width: 100%; min-height: 36px; padding: 6px 10px; border: 0; border-radius: var(--r-md); background: none; color: var(--ink); font: inherit; font-size: 0.875rem; font-weight: 600; text-align: left; cursor: pointer; }
.lp-opt span { font-weight: 400; color: var(--muted); }
.lp-opt:hover { background: #f3f5f8; }
.lp-opt:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.lp-opt[aria-checked="true"] { color: var(--accent); }
.lp-sep { height: 1px; margin: 5px 6px; background: var(--line); }
.lp-opt.lp-toggle { font-weight: 500; white-space: nowrap; }
.lp-opt.lp-toggle::before { content: ""; flex: none; width: 15px; height: 15px; border: 1.5px solid #c3cad6; border-radius: var(--r-xs); }
.lp-opt.lp-toggle[aria-checked="true"]::before { border-color: var(--accent); background: var(--accent) no-repeat center/10px 10px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.lp-menu:has(.lp-toggle) { min-width: 232px; }

/* the player keeps its place in the page while it is docked at the foot of the screen */
.lp-spacer[hidden] { display: none; }
.listen.lp-float { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: 0;
  width: min(var(--reading), calc(100vw - 24px)); margin: 0; padding: 12px 18px;
  background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: 0 -8px 28px rgb(17 19 24 / 12%); }
.listen.lp-float .lp-menu { bottom: calc(100% + 6px); }
@media (max-width: 560px) { .listen.lp-float { padding: 10px 14px; } }
/* the word being spoken; painted as a Range, so the article markup is untouched */
::highlight(readalong) { background-color: #cfe0fb; color: var(--ink); }
@media (pointer: coarse) { .lp-back, .lp-speed { min-height: 44px; min-width: 44px; } .lp-opt { min-height: 44px; } }
/* On a phone the one-line layout squeezes the bar to nothing, so it drops to a line of its own. */
@media (max-width: 560px) {
  .listen.lp-on { flex-wrap: wrap; row-gap: 11px; }
  .listen-head { flex: 1; min-width: 0; }
  .lp-seek { flex: 1 1 100%; order: 5; }
  .lp-side { margin-left: auto; }
}

/* questions: quiet rows that open on request */
.qs { margin: 22px 0 0; }
.qs > summary { display: flex; align-items: center; gap: 12px; min-height: 46px; cursor: pointer; list-style: none; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.qs > summary::-webkit-details-marker { display: none; }
.qs > summary:hover .qs-label { color: var(--accent); }
.qs > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }
.qs-count { font-weight: 500; letter-spacing: 0; text-transform: none; }
.qs > summary svg { margin-left: auto; flex: none; transition: transform 0.15s; }
.qs[open] > summary svg { transform: rotate(180deg); }
.qs ol { margin: 2px 0 20px; padding-left: 1.5em; font-size: 1.0625rem; line-height: 1.6; color: var(--ink); }
.qs li { margin: 0 0 0.6em; padding-left: 0.25em; }
.qs li::marker { color: var(--accent); font-weight: 700; }
.qs ol { font-family: var(--rf); }

/* every study row sits in a rounded panel: "Before you read" on its own above
   the article, "Talk about it" and the exercises together below it */
.qs-group { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 24px 0 0; }
.qs-group .qs { margin: 0; padding: 0 18px; }
.qs-group .qs + .qs { border-top: 1px solid var(--line); }
.qs-group .qs[open] { background: #fbfcfe; }
.qs-group .qs > summary { min-height: 50px; }
.qs-group .qs > ol { margin: 0 0 18px; }
.qs-note { margin: 2px 0 18px; font-size: 0.875rem; line-height: 1.6; color: var(--muted); background: #f4f5f7; border-radius: var(--r-md); padding: 14px 18px; }
.listen:not([hidden]) ~ .qs-group { margin-top: 18px; }

/* exercises: four tasks in their own cards, then a scoreboard.
   The text stays in Outfit whatever the reader picks for the article,
   because a sentence with a gap in it is interface, not journalism. */
.ex-wrap { --sf: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif; margin: 2px 0 22px; }
/* The task row. One activity shows at a time, so the panel below it needs no second frame. */
.ex-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.ex-nav button { font: inherit; font-size: 0.875rem; font-weight: 600; min-height: 40px; padding: 6px 15px; color: var(--muted); background: none; border: 1px solid transparent; border-radius: var(--r-md); cursor: pointer; }
.ex-nav button:hover { color: var(--accent); background: var(--accent-soft); }
.ex-nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ex-nav button[aria-selected="true"] { color: var(--accent); background: var(--accent-soft); border-color: #d5e0f6; }
.ex-block { background: #fff; border: 0; padding: 0; }
.ex-block[hidden] { display: none; }
.ex-total { margin-top: 0; }
.ex-h { font-size: 0.9375rem; font-weight: 700; color: var(--ink); margin: 0 0 4px; letter-spacing: 0; text-transform: none; }
.ex-lead { margin: 0 0 14px; font-size: 0.9375rem; color: var(--muted); }

.ex-bank { display: flex; flex-wrap: wrap; gap: 8px; padding: 13px 14px; background: var(--accent-soft); border-radius: var(--r-lg); margin: 0 0 18px; min-height: 56px; }
.ex-bank.over { outline: 2px dashed var(--accent); outline-offset: -3px; }
.ex-chip { font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--accent); background: #fff; border: 1px solid #d5e0f6; border-radius: var(--r-md); padding: 7px 15px; min-height: 38px; cursor: grab; }
.ex-chip:hover { border-color: var(--accent); }
.ex-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ex-chip.sel { background: var(--accent); color: #fff; border-color: var(--accent); }
.ex-chip.used { color: transparent; background: transparent; border-style: dashed; border-color: #ccd7ea; pointer-events: none; cursor: default; }
.ex-chip.drag, .ex-gap.drag { opacity: 0.4; }

.ex-wrap .ex-list { margin: 0; padding-left: 1.5em; font-family: var(--sf); font-size: 1rem; line-height: 2.05; color: var(--ink); }
@media (max-width: 560px) {
  .ex-match li { display: grid; gap: 6px; line-height: 1.4; padding: 8px 0; }
  .ex-match .ex-sel { width: 100%; }
  .ex-nav { gap: 4px; }
  .ex-nav button { flex: 1 1 auto; padding: 6px 10px; }
}
.ex-list li { margin: 0 0 0.35em; padding-left: 0.25em; }
.ex-list li::marker { color: var(--accent); font-weight: 700; }

.ex-gap { font: inherit; font-family: var(--sf); font-size: 0.9375rem; font-weight: 600; color: var(--accent); background: #fff; border: 0; border-bottom: 2px dashed #b9c2d0; border-radius: var(--r-xs); min-width: 9ch; min-height: 2.1em; padding: 3px 9px; margin: 0 2px; cursor: pointer; vertical-align: baseline; }
.ex-gap:hover { border-bottom-color: var(--accent); background: var(--accent-soft); }
.ex-gap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ex-gap.filled { border-bottom-style: solid; border-bottom-color: var(--accent); background: var(--accent-soft); }
.ex-gap.armed, .ex-gap.over { background: var(--accent-soft); border-bottom-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.ex-gap.ok { color: #1f8a4c; border-bottom-color: #1f8a4c; background: #eaf6ee; box-shadow: none; }
.ex-gap.no { color: #c33; border-bottom-color: #c33; background: #fdeeee; box-shadow: none; }

.ex-match li { line-height: 1.5; margin-bottom: 0.7em; }
.ex-term { display: inline-block; min-width: 10.5em; font-weight: 700; }
.ex-sel { font: inherit; font-family: var(--sf); font-size: 0.9375rem; color: var(--ink); background: #fff; border: 1px solid #cfd4dc; border-radius: var(--r-md); padding: 8px 10px; min-height: 40px; max-width: 100%; }
.ex-sel:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.ex-sel.ok { border-color: #1f8a4c; color: #1f8a4c; }
.ex-sel.no { border-color: #c33; color: #c33; }

.ex-in { font: inherit; font-family: var(--sf); font-size: 0.9375rem; font-weight: 600; color: var(--accent); background: #fff; border: 0; border-bottom: 2px dashed #b9c2d0; border-radius: var(--r-xs); min-width: 7ch; padding: 1px 6px; margin: 0 2px; text-align: center; }
.ex-in:focus { outline: 0; border-bottom-color: var(--accent); background: var(--accent-soft); }
.ex-in.ok { color: #1f8a4c; border-bottom-color: #1f8a4c; background: #eaf6ee; }
.ex-in.no { color: #c33; border-bottom-color: #c33; background: #fdeeee; }
.ex-cue { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.ex-tfns li { line-height: 1.5; margin-bottom: 0.9em; }
.ex-stmt { display: block; margin-bottom: 7px; }
.ex-tfn { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.ex-opt { font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid #cfd4dc; border-radius: var(--r-md); padding: 6px 16px; min-height: 38px; cursor: pointer; }
.ex-opt:hover { border-color: var(--accent); color: var(--accent); }
.ex-opt.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.ex-opt.ok { background: #eaf6ee; border-color: #1f8a4c; color: #1f8a4c; }
.ex-opt.no { background: #fdeeee; border-color: #c33; color: #c33; }
.ex-write, .ex-key, .ex-write-hint { display: none; }
.ex-why { margin: 7px 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); background: #f4f5f7; border-radius: var(--r-md); padding: 7px 11px; }

.ex-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ex-btn { font: inherit; font-size: 0.875rem; font-weight: 600; min-height: 40px; padding: 6px 16px; color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: var(--r-md); cursor: pointer; }
.ex-btn:hover { filter: brightness(1.06); }
.ex-ghost { color: var(--ink); background: #fff; border-color: #cfd4dc; }
.ex-ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; }
.about h2 { margin: 32px 0 8px; font-size: 1.125rem; }
.about p { margin: 0 0 12px; line-height: 1.65; }
.about-lead { font-size: 1.125rem; color: var(--muted); }
.about-levels { margin: 0 0 14px; padding-left: 20px; line-height: 1.65; }
.about-levels li { margin: 0 0 6px; }
.about .social { margin-top: 16px; }

/* The saving tip, and the confirmation that follows a save. */
.hl-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.hl-hint-x { font: inherit; font-size: 0.8125rem; font-weight: 700; color: var(--accent); background: none; border: 0; padding: 4px 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hl-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 16px; max-width: calc(100vw - 32px); padding: 12px 18px; font-size: 0.9375rem; color: #fff; background: #1b1d22; border-radius: var(--r-lg); box-shadow: 0 10px 30px rgba(17, 19, 24, 0.28); }
.hl-toast[hidden] { display: none; }
.hl-toast-btn { font: inherit; font-weight: 700; color: #fff; background: none; border: 0; padding: 4px 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hl-toast-link { color: #9ec2ff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) { .hl-toast { animation: hl-rise 160ms ease-out; } }
@keyframes hl-rise { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* The floating timer says what it is until it is counting. */
.jt-word { font-weight: 600; }
.jt:not(.jt-idle) .jt-word { display: none; }

/* On touch, every control a learner presses is at least 44px. */
@media (pointer: coarse) {
  .ex-btn, .ex-nav button, .ex-opt, .ex-sel, .pager-btn, .pager-num, .pdfbtn, .fbtn, .acct-btn, .vtabs button { min-height: var(--control-h); }
  .ex-chip { min-height: 40px; }
}

/* Study this story: one joined accordion for highlights, discussion and practice. */
.study-tools { margin: var(--space-12) 0 0; }
.study-tools + .continue-reading { margin-top: var(--space-16); }
.study-tools .sec-h-sm { margin: 0 0 var(--space-4); }
/* The study panel is tinted and its rows are named plainly, so it reads as a place to work
   rather than three quiet grey bars at the end of the page. */
.study-tools .qs-group { background: var(--accent-soft); border: 1px solid #d5e0f6; border-radius: var(--r-md); overflow: hidden; }
.study-lead { margin: -4px 0 var(--space-4); color: var(--muted); font-size: 0.9375rem; }
.study-tools .qs-label { font-size: 1rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }
.study-tools .qs > summary:hover .qs-label { color: var(--accent); }
.study-tools .qs-count { color: var(--muted); }
.study-tools .qs > summary svg { color: var(--accent); }
.study-tools .qs[open] { background: #fff; }
.study-tools .qs + .qs { border-top: 1px solid #d5e0f6; }
.study-tools .qs > summary { min-height: 56px; }
.study-tools .qs-group .qs { padding: 0 22px; }
.hl-slot { padding: 0 0 22px; }
/* The meanings, the wording and the controls are interface, not journalism, so
   they stay in Outfit whatever font the reader picks for the article. Only the
   saved word itself keeps the reading font, the way a dictionary sets a headword. */
.hl-list { --sf: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.hl-empty { font-family: var(--sf); }
.hl-list { margin: 0; }
.hl-empty { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.hl-list ol { margin: 0; padding: 0; list-style: none; }
.hl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-3); }
.hl-copy, .hl-clear { font: inherit; font-size: 0.875rem; font-weight: 600; min-height: var(--control-h-desktop); padding: 4px 14px; border-radius: var(--r-md); cursor: pointer; }
.hl-copy { color: var(--accent); background: #fff; border: 1px solid #cfd4dc; }
.hl-copy:hover { border-color: var(--accent); }
.hl-clear { color: #a3343a; background: none; border: 0; padding: 4px 2px; text-decoration: underline; text-underline-offset: 3px; }
.hl-clear:hover { color: #7e2328; }
.hl-said { min-width: 5.5em; font-size: 0.875rem; font-weight: 600; color: #1f8a4c; }

/* A saved word is a small entry, not a line: the sentence it came from, every
   sense the dictionary holds, and a box for the reader's own wording. This is
   where the meanings live now, so the card over the text can stay one line. */
.hl-sent { font-family: var(--sf); margin: 4px 0 0; font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }
.hl-sent b { font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 2px; text-underline-offset: 0.2em; text-decoration-skip-ink: none; }
.hl-senses { font-family: var(--sf); margin-top: 8px; font-size: 0.9375rem; line-height: 1.5; color: var(--text); }
.hl-senses[hidden] { display: none; }
.hl-senses .hl-sense-list { counter-reset: sense; list-style: none; margin: 0; padding: 0; font-size: inherit; line-height: inherit; font-family: inherit; color: inherit; }
.hl-senses .hl-sense-list li { display: block; position: relative; padding: 0 0 0 18px; margin: 5px 0 0; border: 0; }
.hl-senses .hl-sense-list li:first-child { margin-top: 0; }
.hl-senses .hl-sense-list li::before { counter-increment: sense; content: counter(sense); position: absolute; left: 0; top: 0; font-size: 0.75rem; font-weight: 700; line-height: 1.9; color: var(--accent); }
.hl-sense-one { margin: 0; }
.hl-pos { font-family: var(--sf); font-size: 0.8125rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: var(--r-xs); padding: 1px 7px; margin-right: 8px; }
.hl-sense-note { font-family: var(--sf); margin: 0; color: #98a0ad; }
.hl-look { font: inherit; font-family: var(--sf); font-size: 0.875rem; font-weight: 600; color: var(--accent); background: #fff; border: 1px solid #cfd4dc; border-radius: var(--r-md); padding: 5px 12px; cursor: pointer; }
.hl-look:hover:enabled { border-color: var(--accent); }
.hl-look:disabled { color: var(--muted); cursor: default; }
.hl-look:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hl-note-wrap { margin-top: 11px; }
.hl-note-lab { display: block; }
.hl-note-cap { display: block; font-family: var(--sf); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hl-note { display: block; width: 100%; margin-top: 5px; font: inherit; font-family: var(--sf); font-size: 0.9375rem; line-height: 1.5; color: var(--text); background: #fffbf2; border: 1px solid #ead9b6; border-radius: var(--r-md); padding: 8px 11px; resize: none; overflow: hidden; }
.hl-note::placeholder { color: #b0a58d; }
.hl-note:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.hl-note-print { display: none; }

/* The same box on My words, so a wording can be written or changed wherever the word is read. */
.wd-note-wrap { display: flex; align-items: flex-start; gap: 10px; margin-top: 11px; }
.wd-note-lab { display: block; flex: 1 1 auto; min-width: 0; }
.wd-note-cap { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.wd-note { display: block; width: 100%; margin-top: 5px; font: inherit; font-size: 0.9375rem; line-height: 1.5; color: var(--text); background: #fffbf2; border: 1px solid #ead9b6; border-radius: var(--r-md); padding: 8px 11px; resize: none; overflow: hidden; }
.wd-note::placeholder { color: #b0a58d; }
.wd-note:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.wd-note-said { flex: 0 0 auto; padding-top: 18px; font-size: 0.8125rem; font-weight: 600; color: #1f8a4c; }
/* the wording a member wrote, in the teacher's table of saves */
.t-note { margin: 4px 0 0; font-size: 0.875rem; line-height: 1.45; color: var(--text); }
/* one rhythm down the footer, so the source, the note and the topics are not stacked on top of each other */
.article-info { display: grid; gap: 20px; margin: var(--space-8) 0 0; padding-top: var(--space-6); border-top: 1px solid var(--line); font-size: 0.9375rem; }
.article-info .source, .article-info .topics, .article-info .art-about { margin: 0; padding-top: 0; border-top: 0; }

/* Continue reading, and the same row on the 404 page. */
.nextup, .continue-reading { margin: var(--space-12) 0 var(--space-16); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.sec-h-sm { font-size: 1.25rem; }
.nx-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); margin: var(--space-6) 0 0; padding: 0; }
.nx { position: relative; min-width: 0; }
.nx-img { display: block; aspect-ratio: 3 / 2; border-radius: var(--r-xs); overflow: hidden; background: var(--accent-soft); }
.nx-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focal, 50% 50%); }
.nx-text { padding-top: var(--space-2); }
.nx-kicker { margin: 0 0 2px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.nx-kicker:empty { display: none; }
.nx-h { margin: 0; font-family: var(--rf); font-size: 1.0625rem; line-height: 1.3; }
.nx-h a { color: var(--ink); text-decoration: none; }
.nx-h a::after { content: ''; position: absolute; inset: 0; }
.nx:hover .nx-h a, .nx-h a:focus-visible { color: var(--accent); }
.nx-sub { margin: 4px 0 0; font-size: 0.875rem; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) { .nx-list { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .nx { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--space-3); align-items: start; }
  .nx-text { padding-top: 0; } .nx-sub { display: none; } }

/* A search that finds nothing should say what to try next. */
.empty-h { margin: 0 0 4px; font-size: 1.125rem; font-weight: 700; color: var(--ink); }
.empty-p { margin: 0 0 var(--space-4); color: var(--muted); }
#clearempty { min-height: var(--control-h); }
.nf-lead { color: var(--muted); margin: 0 0 var(--space-4); }

/* The three levels, side by side where there is room. */
.levels-strip { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin: 0 0 var(--space-4); padding: 0; }
.levels-strip li { padding: var(--space-4); background: var(--accent-soft); border-radius: var(--r-md); }
.levels-strip b { display: block; margin-bottom: 4px; color: var(--accent); }
.levels-strip span { font-size: 0.9375rem; line-height: 1.5; }
@media (max-width: 700px) { .levels-strip { grid-template-columns: minmax(0, 1fr); } }

.ex-gap.blank, .ex-in.blank, .ex-sel.blank, .ex-tfn.blank { outline: 2px dashed #a15c00; outline-offset: 2px; }
.ex-score { font-size: 0.875rem; font-weight: 700; color: var(--muted); margin-left: 2px; }
.ex-score.good { color: #1f8a4c; }

.ex-total { background: var(--accent-soft); border: 1px solid #d5e0f6; border-radius: var(--r-lg); padding: 18px 20px 20px; }
.ex-total .ex-h { margin-bottom: 2px; }
.ex-total .ex-lead { margin-bottom: 14px; }
.ex-total-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-big { font-size: 0.875rem; min-height: 38px; padding: 6px 18px; }
.ex-total-out { margin-top: 18px; padding-top: 16px; border-top: 1px solid #d5e0f6; }
.ex-total-num { display: flex; align-items: baseline; gap: 9px; }
.ex-total-num > b { font-size: 2.25rem; font-weight: 700; line-height: 1; color: var(--accent); }
.ex-total-num span { font-size: 0.9375rem; color: var(--muted); }
.ex-total-list { list-style: none; margin: 14px 0 0; padding: 0; font-size: 0.9375rem; }
.ex-total-list li { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; border-top: 1px solid #dde6f7; }
.ex-total-list li:first-child { border-top: 0; }
.ex-total-list b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ex-total-list .full { color: #1f8a4c; }
.ex-total-list .shown { color: var(--muted); font-weight: 500; }
.ex-total-msg { margin: 12px 0 0; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }

@media (max-width: 640px) {
  .ex-term { min-width: 0; display: block; margin-bottom: 3px; }
  .ex-sel { width: 100%; }
  .ex-chip { padding: 6px 13px; }
  .ex-gap { min-height: 2.1em; }
  .ex-opt { padding: 5px 13px; }
}

/* the story keeps one name while the headline changes with the level */
.story-id { margin: 14px 0 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

/* what the site is for, under the home page headline */
.intro-sub { margin: 10px 0 0; max-width: 46ch; font-size: 1.0625rem; color: var(--muted); }
.intro-links { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 14px 0 0; }
.intro-links[hidden] { display: none; }
.intro-link { font-size: 0.9375rem; font-weight: 600; color: var(--accent); background: #fff; border: 1px solid var(--accent); border-radius: var(--r-md); padding: 5px 14px; text-decoration: none; }
.intro-link:hover { background: var(--accent-soft); }

/* the first article a reader opens explains the routine, once */
.guide { margin: 18px 0 0; padding: 16px 18px 14px; background: var(--accent-soft); border-radius: var(--r-lg); }
.guide[hidden] { display: none; }
.guide h2 { margin: 0 0 8px; font-size: 1rem; color: var(--ink); }
.guide ul { margin: 0; padding-left: 1.2em; font-size: 0.9375rem; line-height: 1.6; color: var(--ink); }
.guide li { margin: 0 0 4px; }
.guide li::marker { color: var(--accent); }
.guide-x { margin-top: 12px; font: inherit; font-size: 0.875rem; font-weight: 600; color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: var(--r-md); padding: 6px 16px; cursor: pointer; }
.guide-x:hover { filter: brightness(1.06); }

/* loading placeholders on My words and the teacher view */
.acct-loading { color: var(--muted); }
.acct-skel { margin: 14px 0 0; }
.sk-row { height: 56px; border-radius: var(--r-lg); margin-bottom: 10px; background: linear-gradient(90deg, #f2f4f7 25%, #e9edf3 37%, #f2f4f7 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; }
.sk-row:nth-child(2n) { height: 44px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .sk-row { animation: none; } }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0 34px; font-size: 0.875rem; color: var(--muted); }

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .site-nav { gap: 18px; }
  .intro { padding: 18px 0 0; }
  .gallery { gap: 0; margin: 0 0 48px; }
  .filters { margin-top: 20px; }
  .filters + .gallery { margin-top: 0; }
  .finder { order: -1; flex: 1 0 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px 2px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .card { padding: 36px 0 40px; }
  .card:not([hidden]) ~ .card:not([hidden]) { border-top: 1px solid #b9c0cb; }
  .thumb { margin-bottom: 18px; }
  .card h2 { line-height: 1.3; margin: 6px 0 8px; }
  .article-head { padding: 36px 0 22px; }
  .page-title { margin-top: 36px; }
  .prose { font-size: calc(1.125rem * var(--fs, 1)); }
  .fbtn, .pdfbtn { min-height: 36px; }
  .vtabs button { min-height: 34px; }
  .metarow.has-tabs .metaleft { display: contents; }
  .metarow.has-tabs .vtabs { order: 1; flex: 1 0 100%; }
  .metarow.has-tabs .vtabs button { flex: 1; }
  .metarow.has-tabs .meta { order: 2; flex: 1 0 auto; white-space: nowrap; }
  .metarow.has-tabs .tools { order: 3; margin-left: auto; }
}

/* saving as a PDF: the page is printed as a tidy two-column sheet */
.print-foot { display: none; }

.kl { text-decoration: underline; text-decoration-style: dotted; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; text-decoration-skip-ink: none; cursor: pointer; border-radius: var(--r-xs); }
.kl:hover, .kl:focus-visible { background: var(--accent-soft); outline: none; }
.kl-pop { position: absolute; z-index: 45; max-width: min(320px, calc(100vw - 16px)); background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 10px 14px 11px; font-family: 'Outfit', system-ui, sans-serif; font-size: 0.9375rem; line-height: 1.45; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2); }
.kl-pop b { display: block; font-size: 1.0625rem; }
.kl-pop .kl-kind { display: block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; margin: 1px 0 5px; }
.kl-box { margin: 26px 0 32px; background: var(--accent-soft); border-radius: var(--r-lg); }
.kl-box summary { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 20px; cursor: pointer; list-style: none; }
.kl-box summary::-webkit-details-marker { display: none; }
.kl-box summary:hover .kl-title { text-decoration: underline; text-underline-offset: 3px; }
.kl-box summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-lg); }
.kl-box summary svg { margin-left: auto; flex: none; color: var(--accent); transition: transform 0.15s; }
.kl-box[open] summary svg { transform: rotate(180deg); }
.kl-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.kl-count { font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.kl-body { padding: 0 20px 10px; }
.kl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 2px; }
.kl-note { font-size: 0.75rem; color: var(--muted); }
.kl-btns { margin-left: auto; display: flex; gap: 16px; }
.kl-toggle, .kl-copy { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 0.8125rem; font-weight: 600; color: var(--accent); cursor: pointer; white-space: nowrap; }
.kl-toggle:focus-visible, .kl-copy:focus-visible, .kl-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }
.kl-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 22px; }
.kl-h { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 14px 0 4px; }
.kl-list { margin: 0 0 6px; padding: 0; list-style: none; }
.kl-row { position: relative; padding: 4px 0 6px; font-family: var(--rf); line-height: 1.35; }
.kl-row::before { content: "\2022"; position: absolute; left: -14px; top: 2px; color: var(--accent); font-size: 1.05rem; line-height: 1.35; }
.kl-blur .kl-row { cursor: pointer; }
.kl-blur .kl-row:hover .kl-t { color: var(--accent); }
.kl-note:empty { display: none; }
.kl-t { display: block; font-size: 1rem; font-weight: 700; color: var(--ink); }
.kl-m { display: block; font-size: 0.875rem; color: var(--muted); transition: filter 0.15s; }
.kl-blur .kl-m:not(.kl-show) { filter: blur(6px); user-select: none; -webkit-user-select: none; }
.kl-m.kl-done, .kl-copy.kl-done { color: #14633a; }
@media (max-width: 700px) { .kl-cols { grid-template-columns: 1fr; } .kl-box summary { padding: 6px 18px; } .kl-body { padding: 0 18px 8px; } .kl-btns { margin-left: 0; width: 100%; } }

.jt-bar { position: fixed; left: 0; top: 0; bottom: 0; width: 4px; z-index: 30; background: transparent; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.jt-bar.jt-on { opacity: 1; background: rgba(29, 95, 224, 0.08); }
.jt-fill { width: 100%; height: 0; background: var(--accent); opacity: 0.55; transition: height 0.3s linear; }
.jt-bar.jt-late .jt-fill { background: #f59e0b; opacity: 0.85; }
.jt { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-family: 'Outfit', system-ui, sans-serif; }
.jt-float { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 35; }
.jt-inline { position: relative; }
.jt-inline .jt-pill { opacity: 1; box-shadow: none; min-height: var(--control-h-desktop); border-color: #cfd4dc; color: var(--ink); border-radius: var(--r-md); padding: 4px 11px 4px 9px; }
.jt-inline .jt-pill:hover { border-color: var(--accent); }
.jt-inline .jt-panel { right: 0; left: auto; }
@media (max-width: 560px) {
  /* the utilities take their own row and their menus hang off that row rather than off one
     button, so a menu opened from the middle of the row cannot run off the screen edge */
  .art-top .tools { flex: 1 1 100%; margin-left: 0; position: relative; }
  .art-top .fdrop, .art-top .pdrop, .art-top .timerpick { position: static; }
  .art-top .fmenu, .art-top .pmenu, .art-top .jt-panel { right: 0; left: auto; top: calc(100% + 6px); }
  .jt-inline .jt-face { display: none; }
}
.jt-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.92); color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px 12px 6px 10px; font: inherit; font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; opacity: 0.75; box-shadow: 0 2px 10px rgba(16, 24, 40, 0.08); transition: opacity 0.15s, color 0.15s; }
.jt-pill:hover, .jt-pill:focus-visible, .jt-running .jt-pill, .jt-done .jt-pill { opacity: 1; }
.jt-running .jt-pill { color: var(--accent); }
.jt-late .jt-pill { color: #b45309; }
.jt-done .jt-pill { color: #fff; background: #d97706; border-color: #d97706; animation: jt-pulse 1.4s ease-in-out 3; }
.jt-pill:focus-visible, .jt-go:focus-visible, .jt-reset:focus-visible, .jt-preset:focus-visible, .jt-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes jt-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.jt-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; box-shadow: 0 8px 28px rgba(16, 24, 40, 0.14); width: 220px; }
.jt-panel[hidden] { display: none; }
.jt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.jt-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.jt-input { width: 76px; font: inherit; font-size: 1rem; font-weight: 600; text-align: center; color: var(--ink); background: #fff; border: 1px solid #cfd4dc; border-radius: var(--r-md); padding: 6px 8px; font-variant-numeric: tabular-nums; }
.jt-input:disabled { background: #f6f7f9; color: var(--muted); }
.jt-hint { margin: 4px 0 0; text-align: right; font-size: 0.75rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.jt-presets { display: flex; gap: 6px; margin: 10px 0; }
.jt-preset { flex: 1; font: inherit; font-size: 0.8125rem; font-weight: 600; padding: 5px 0; color: var(--accent); background: var(--accent-soft); border: 0; border-radius: var(--r-md); cursor: pointer; }
.jt-preset.jt-cur { background: var(--accent); color: #fff; }
.jt-preset:disabled { opacity: 0.45; cursor: default; }
.jt-acts { display: flex; gap: 8px; }
.jt-go, .jt-reset { flex: 1; font: inherit; font-size: 0.875rem; font-weight: 600; padding: 8px 0; border-radius: var(--r-md); cursor: pointer; }
.jt-go { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.jt-reset { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
@media (max-width: 560px) { .jt { right: 10px; bottom: 10px; } }

/* accounts: sign-in button, dialog, My words and the teacher view */
.site-nav { margin-left: auto; }
.acct { position: relative; margin-left: 22px; min-width: 72px; display: flex; justify-content: flex-end; }  /* the width is held open so the nav does not move when the account button is drawn */
.acct-btn { white-space: nowrap; font: inherit; font-size: 0.875rem; font-weight: 600; min-height: var(--control-h-desktop); color: var(--accent); background: #fff; border: 1px solid var(--accent); border-radius: var(--r-md); padding: 6px 14px; cursor: pointer; line-height: 1.2; display: inline-flex; align-items: center; gap: 7px; }
.acct-btn:hover { background: var(--accent-soft); }
.acct-btn:focus-visible, .acct-go:focus-visible, .acct-link:focus-visible, .acct-x:focus-visible, .wd-btn:focus-visible, .wd-x:focus-visible, .t-tab:focus-visible, .t-name:focus-visible, .acct-menu a:focus-visible, .acct-menu button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.acct-me { padding: 3px 12px 3px 4px; }
.acct-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.8125rem; display: inline-flex; align-items: center; justify-content: center; }
.acct-name { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 10px 30px rgba(16, 24, 40, 0.14); padding: 6px; z-index: 40; }
.acct-menu[hidden] { display: none; }
.acct-who { margin: 0; padding: 8px 12px 6px; font-size: 0.8125rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.acct-menu .acct-out { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-md) var(--r-md); }
.acct-menu a, .acct-menu button { display: block; width: 100%; text-align: left; font: inherit; font-size: 0.9375rem; font-weight: 500; color: var(--ink); background: none; border: 0; border-radius: var(--r-md); padding: 8px 12px; cursor: pointer; text-decoration: none; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--accent-soft); }
.acct-back { position: fixed; inset: 0; z-index: 60; background: rgba(17, 19, 24, 0.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.acct-dlg { position: relative; background: #fff; border-radius: var(--r-lg); width: 100%; max-width: 380px; padding: 28px 26px 22px; box-shadow: 0 20px 60px rgba(16, 24, 40, 0.3); }
.acct-dlg h2 { margin: 0 0 14px; font-size: 1.375rem; line-height: 1.2; color: var(--ink); }
.acct-x { position: absolute; right: 10px; top: 8px; font: inherit; font-size: 1.5rem; line-height: 1; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 6px 10px; border-radius: var(--r-md); }
.acct-x:hover { color: var(--ink); }
.acct-notice { margin: 0 0 14px; padding: 10px 12px; font-size: 0.9375rem; background: var(--accent-soft); border-radius: var(--r-lg); color: var(--ink); }
.acct-field { margin: 0 0 14px; }
.acct-field label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.acct-field input { width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid #cfd4dc; border-radius: var(--r-lg); color: var(--ink); background: #fff; }
.acct-field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.acct-small { margin: 0 0 14px; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.acct-err { margin: 0 0 12px; font-size: 0.875rem; font-weight: 500; color: #b42318; }
.acct-err[hidden] { display: none; }
.acct-go { font: inherit; font-size: 1rem; font-weight: 600; width: 100%; padding: 11px 0; color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: var(--r-lg); cursor: pointer; }
.acct-go:disabled { opacity: 0.6; cursor: default; }
.acct-alt { margin: 14px 0 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.acct-link { font: inherit; font-size: 0.875rem; font-weight: 500; color: var(--accent); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.acct-lead { margin: -6px 0 16px; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
html.acct-lock { overflow: hidden; }
.acct-back { animation: acct-fade 0.35s ease both; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.acct-dlg { animation: acct-rise 0.4s ease both; max-height: calc(100vh - 32px); overflow-y: auto; }
@keyframes acct-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes acct-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .acct-back, .acct-dlg { animation: none; } }
/* readers who are not signed in can open only the free articles (site.json); the rest carry a Members tag and show a members panel */
html.jpn-guest .card[data-free] .thumb::after { content: 'Free'; position: absolute; top: 10px; left: 10px; padding: 3px 10px; font-size: 0.8125rem; font-weight: 600; color: var(--ink); background: #fff; border-radius: var(--r-xs); }
html.jpn-guest .card[data-free] .thumb { position: relative; }
html.jpn-guest article[data-locked] > :not(.article-head),
html.jpn-guest article[data-locked] .article-head > :not(.back):not(h1):not(.dek):not(.hero):not(.lock-panel) { display: none !important; }  /* a guest still sees the headline, summary and picture */
html.jpn-guest article[data-locked] .article-head > .hero { margin-bottom: 0; }
.gate-note, .lock-panel { margin: 26px 0 40px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--accent-soft); }
.gate-note p, .lock-panel p { margin: 0 0 14px; color: var(--text); }
.gate-note strong, .lock-panel strong { color: var(--ink); }
.gate-note .acct-go, .lock-panel .acct-go { width: auto; padding: 10px 22px; }
.gate-note { display: none; }
html.jpn-guest .gate-note { margin: 0 0 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.gate-note p { flex: 0 0 100%; margin: 0; }
.gate-note .more { font-size: 0.9375rem; }
.lock-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.lock-panel p { flex: 0 0 100%; margin: 0; }
.lock-panel .acct-link { font-size: 0.9375rem; padding: 6px 0; }
.lock-panel .more { font-size: 0.9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--accent); text-decoration: underline; }
.ai-note { margin: 4px 0 0; font-size: 0.8125rem; color: var(--muted); }
.art-about { margin: 0; font-size: 0.75rem; }
.art-about > summary { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 2px 0; color: var(--muted); cursor: pointer; list-style: none; }
.art-about > summary::-webkit-details-marker { display: none; }
.art-about > summary::after { content: ""; width: 5px; height: 5px; border-right: 1.25px solid currentColor; border-bottom: 1.25px solid currentColor; opacity: 0.7; transform: translateY(-2px) rotate(45deg); }
.art-about[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.art-about > summary:hover::after { opacity: 1; }
.art-about > summary:hover { color: var(--ink); }
.art-about > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }
@media (pointer: coarse) { .art-about > summary { min-height: 44px; } }
.art-about .ai-note { margin: 6px 0 0; }
.ai-print { display: none; }
.ai-note a { color: var(--muted); }
.legal { padding-bottom: 40px; }
.legal h2 { font-size: 1.25rem; line-height: 1.3; margin: 32px 0 8px; color: var(--ink); }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 4px 0; }
.legal-date { color: var(--muted); font-size: 0.875rem; }
.acct-danger { margin: 46px 0 10px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.acct-danger h2 { margin: 0 0 8px; font-size: 1.0625rem; color: var(--ink); }
.acct-danger p { margin: 0 0 14px; font-size: 0.9375rem; color: var(--muted); }
.acct-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.acct-confirm[hidden] { display: none; }
.acct-confirm label { flex: 0 0 100%; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.acct-confirm input { font: inherit; font-size: 1rem; padding: 9px 12px; border: 1px solid #cfd4dc; border-radius: var(--r-lg); width: 160px; }
.acct-confirm .acct-err { flex: 0 0 100%; margin: 0; }
.wd-btn.wd-danger { color: #b42318; border-color: #b42318; }
.wd-btn.wd-danger:hover { background: #fdecea; }
.wd-btn.wd-danger:disabled { opacity: 0.45; cursor: default; background: #fff; }
.wd-btn.wd-danger:focus-visible { outline: 2px solid #b42318; outline-offset: 2px; }
.acct-toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 70; background: var(--ink); color: #fff; font-size: 0.9375rem; padding: 10px 18px; border-radius: var(--r-md); transition: opacity 0.25s, transform 0.25s; }
.acct-toast.on { opacity: 1; transform: translate(-50%, 0); }
.acct-read { color: var(--muted); }
.acct-read.done { color: #14633a; font-weight: 600; }
.acct-intro { margin: -14px 0 24px; color: var(--muted); }
.acct-note { color: var(--muted); margin: 0 0 16px; }
.wd-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.wd-search { flex: 1 1 200px; font: inherit; font-size: 1rem; padding: 9px 12px; border: 1px solid #cfd4dc; border-radius: var(--r-lg); color: var(--ink); background: #fff; }
.wd-btn { font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--accent); background: #fff; border: 1px solid var(--accent); border-radius: var(--r-lg); padding: 8px 14px; cursor: pointer; }
.wd-btn:hover { background: var(--accent-soft); }
.wd-count { margin: 0 0 18px; font-size: 0.875rem; color: var(--muted); }
.wd-art { margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--r-xs); background: #fff; overflow: hidden; }
.wd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 13px 18px; background: var(--accent-soft); }
.wd-head h2, .t-detail h3 { margin: 0; font-size: 1.0625rem; line-height: 1.3; font-weight: 600; }
.wd-head h2 a, .t-detail h3 a { color: var(--accent); text-decoration: none; }
.wd-head h2 a::after, .t-detail h3 a::after { content: ' \2192'; font-weight: 500; opacity: 0.7; }
.wd-head h2 a:hover, .t-detail h3 a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.wd-n { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.wd-words { list-style: none; margin: 0; padding: 0; }
.wd-art .wd-words li { border-top: 1px solid var(--line); }
/* the teacher view reuses .wd-words with a plain row; .t-detail and .t-art pad those */
.wd-top { display: flex; align-items: center; gap: 10px; }
.wd-top + .wd-sent { margin-top: 5px; }
.wd-art .wd-words li:first-child { border-top: 0; }
.wd-item > summary { display: flex; align-items: center; gap: 10px; padding: 10px 18px; cursor: pointer; list-style: none; }
.wd-item > summary::-webkit-details-marker { display: none; }
.wd-item > summary:hover { background: #fafbfc; }
.wd-item > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.wd-item[open] > summary { background: #fafbfc; }
.wd-w { font-size: 1.0625rem; font-weight: 500; color: var(--ink); }
.wd-lv { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: #f1f3f6; border-radius: var(--r-sm); padding: 2px 9px; }
.wd-lv:empty { display: none; }
.wd-chev { margin-left: auto; width: 9px; height: 9px; flex: none; border-right: 2px solid #98a0ad; border-bottom: 2px solid #98a0ad; transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.15s; }
.wd-item[open] .wd-chev { transform: rotate(-135deg) translate(-2px, -2px); }
.wd-body { padding: 0 18px 13px; }
.wd-acts { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.wd-dict { font-size: 0.8125rem; font-weight: 600; color: var(--accent); background: #fff; border: 1px solid var(--accent); border-radius: var(--r-md); padding: 4px 12px; text-decoration: none; }
.wd-dict:hover { background: var(--accent-soft); }
.wd-x { margin-left: auto; font: inherit; font-size: 0.8125rem; font-weight: 600; color: #98a0ad; background: none; border: 0; cursor: pointer; padding: 4px 10px; border-radius: var(--r-md); }
.wd-x:hover { color: #b42318; background: #fdecea; }
.wd-sent { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }
.wd-sent b { font-weight: 500; color: var(--text); background: rgba(245, 158, 11, 0.24); border-radius: var(--r-xs); padding: 1px 2px; }
/* The definition, fetched from the dictionary when the word is opened. */
.wd-def { margin-top: 9px; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.wd-def:empty { display: none; }
.wd-pos { font-style: normal; font-size: 0.8125rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: var(--r-xs); padding: 1px 7px; margin-right: 8px; }
.wd-gloss { color: var(--text); }
/* Numbered senses, for a word the dictionary holds more than one meaning for. */
.wd-def { counter-reset: sense; }
.wd-sense { display: block; position: relative; padding-left: 17px; margin-top: 4px; color: var(--text); }
.wd-sense:first-child { margin-top: 0; }
.wd-sense::before { counter-increment: sense; content: counter(sense); position: absolute; left: 0; top: 0; font-size: 0.75rem; font-weight: 700; line-height: 1.9; color: var(--accent); }
.wd-def-note { color: #98a0ad; }
.t-detail h3 { margin-top: 14px; }
.t-detail h3:first-child { margin-top: 0; }
.t-detail .wd-words { margin-top: 4px; }
.t-detail .wd-words li { padding: 9px 0; border-top: 1px solid var(--line); }
.t-open { display: inline-block; margin: 0 0 8px; font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.t-open::after { content: ' \2192'; }
.t-open:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.t-art .wd-words li { padding: 10px 0; border-top: 1px solid var(--line); }
.t-tabs { display: flex; gap: 6px; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.t-tab { font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; cursor: pointer; margin-bottom: -1px; }
.t-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.t-pane[hidden] { display: none; }
.t-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.t-table th { text-align: left; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.t-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.t-table .num { text-align: right; white-space: nowrap; }
.t-table .t-date, .t-table .t-time { display: block; }
/* the column headings are the sort controls: the arrow is faint until that column is the one in use */
.t-table .t-sort { display: inline-flex; align-items: center; gap: 5px; padding: 2px 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.t-table .t-sort:hover { color: var(--ink); }
.t-table .t-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-xs); }
.t-table .t-sort::after { content: ""; flex: none; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: 0.28; }
.t-table th[aria-sort="descending"] .t-sort, .t-table th[aria-sort="ascending"] .t-sort { color: var(--ink); }
.t-table th[aria-sort="descending"] .t-sort::after { opacity: 1; }
.t-table th[aria-sort="ascending"] .t-sort::after { opacity: 1; border-top: 0; border-bottom: 5px solid currentColor; }
.t-table .t-time { font-size: 0.8125rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.t-name { display: block; font: inherit; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.t-mail { display: block; font-size: 0.8125rem; color: var(--muted); overflow-wrap: anywhere; }
.t-detail td { background: #fafbfc; padding: 14px 16px; }
.t-detail[hidden] { display: none; }
.t-detail h3 { margin-top: 12px; }
.t-detail h3:first-child { margin-top: 0; }
.t-art { border-top: 1px solid var(--line); padding: 4px 0; }
.t-art summary { cursor: pointer; display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-weight: 600; color: var(--ink); }
.t-art-n { font-size: 0.8125rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.t-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; }
.t-stat { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--accent-soft); min-width: 0; }
.t-stat strong { display: block; font-size: 1.625rem; line-height: 1.1; color: var(--ink); }
.t-stat span { display: block; font-size: 0.8125rem; color: var(--muted); }
.t-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 10px; }
.t-filter select { font: inherit; font-size: 0.875rem; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--ink); }
.t-count { font-size: 0.8125rem; color: var(--muted); }
.t-filter select { max-width: 230px; text-overflow: ellipsis; }
.t-filter .t-search { flex: 1 1 220px; min-width: 180px; max-width: 320px; font: inherit; font-size: 0.875rem; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--ink); }
.t-scroll { overflow-x: auto; }
.t-words .t-wd { display: block; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.t-words td { vertical-align: top; }
.t-words .wd-sent { margin: 4px 0 0; font-size: 0.8125rem; line-height: 1.4; color: var(--muted); }
.t-words .wd-sent b { color: var(--ink); background: #fdebd0; border-radius: var(--r-xs); padding: 0 2px; }
.t-words .t-who { display: block; font-weight: 600; }
.t-table .t-link { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.t-table .t-link:hover { color: #174fc0; }
.t-table .t-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }
.t-sub { font-size: 0.75rem !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.t-reads { list-style: none; margin: 4px 0 12px; padding: 0; }
.t-reads li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.t-reads a { color: var(--accent); text-decoration: none; }
.t-reads a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.t-who { font-weight: 600; color: var(--ink); }
.t-when { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
/* Reflow: at small sizes or large text, a long headline word must break rather than
   push the page sideways, and the footer links wrap onto a second line. */
.card h2, .card .sub, .page-title, .article-head h1, .lvl-head h2 { overflow-wrap: break-word; }
.foot-links { flex-wrap: wrap; }
.thumb .blank { padding: 12px 6px; }

/* Narrow phones: About is in the footer, so it stands down and Articles stays, which is the way back to
   the list. On the very narrowest screens Articles goes too: the logo still goes home. */
@media (max-width: 480px) {
  .site-header .wrap { gap: 8px; min-height: 58px; }
  .brand { font-size: 1.0625rem; gap: 7px; }
  .brand svg { width: 22px; height: 22px; }
  .site-nav .nav-about { display: none; }
  .acct { margin-left: 2px; }
}

@media (max-width: 560px) {
  .site-header .wrap { gap: 10px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 0.875rem; }
  .acct { margin-left: 4px; }
  .acct-btn { padding: 5px 11px; font-size: 0.8125rem; }
  .acct-name { display: none; }
  .acct-me { padding: 3px; }
  .t-members td:nth-child(2), .t-members th:nth-child(2), .t-members td:nth-child(3), .t-members th:nth-child(3), .t-members td:nth-child(5), .t-members th:nth-child(5) { display: none; }
  .t-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-detail td { padding: 12px; }
}

@media print {
  @page {
    size: A4;
    margin: 14mm 15mm 17mm;
    @bottom-left { content: "johnplusnews.com"; font: 500 7.5pt 'Outfit', system-ui, sans-serif; color: #7a808c; vertical-align: top; padding-top: 3mm; }
    @bottom-right { content: counter(page) " / " counter(pages); font: 500 7.5pt 'Outfit', system-ui, sans-serif; color: #7a808c; vertical-align: top; padding-top: 3mm; }
  }
  html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { display: block; min-height: 0; background: #fff; color: #1b1d22; font-size: 10pt; line-height: 1.5; }
  .jt, .jt-bar,
  .skip, .site-header, .site-footer, .continue-reading, .nextup, .pager-nav, .acct-toast, .acct-back, .back, .vtabs, .tools, .pager, .listen, .topics, .filters, .hl-hint, .guide, .intro-links, .hl-pill, .hl-actions, .hl-list .x, .lvl-head, noscript { display: none !important; }
  main { display: block; }
  .wrap { max-width: none; width: auto; margin: 0; padding: 0; }
  a { color: inherit; text-decoration: none; }

  .article-head { padding: 0 0 5mm; margin: 0 0 6mm; border-bottom: 0.5pt solid #cfd4dc; }
  .metarow { display: block; margin: 0; }
  .metaleft { display: flex; align-items: center; gap: 0 3mm; }
  .metaleft[data-print-level]::before { content: attr(data-print-level); font-size: 7.5pt; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
  .meta { font-size: 8.5pt; }
  .article-head h1 { font-size: calc(25pt * var(--fs, 1)); line-height: 1.08; letter-spacing: -0.025em; margin: 3mm 0 3mm; break-after: avoid; text-wrap: balance; }
  .dek { font-size: calc(12pt * var(--fs, 1)); line-height: 1.4; color: #4a4f5a; margin: 0 0 5mm; }
  .hero { break-inside: avoid; max-width: none; }
  .hero-img { display: block; width: auto; max-width: 100%; height: auto; max-height: 80mm; margin: 0 auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; }
  .credit { font-size: 7pt; line-height: 1.35; color: #6b7280; margin: 1.5mm 0 0; }

  .prose { font-family: Georgia, 'Times New Roman', serif; font-size: calc(9.8pt * var(--fs, 1)); line-height: 1.5; padding: 0; column-count: 2; column-gap: 9mm; column-rule: 0.5pt solid #dcdfe5; text-align: justify; -webkit-hyphens: auto; hyphens: auto; orphans: 3; widows: 3; }
  [data-font] .prose { line-height: 1.55; }
  .prose p { margin: 0 0 0.7em; }
  .prose h2 { font-size: 12pt; margin: 1em 0 0.35em; break-after: avoid; }
  .prose h3 { font-size: 10.5pt; margin: 0.9em 0 0.3em; break-after: avoid; }
  .prose ul { margin: 0 0 0.7em; }
  .prose blockquote { margin: 0.8em 0; padding: 3mm 4mm; background: #f2f5fc; break-inside: avoid; }
  .prose figure { margin: 0.8em 0; break-inside: avoid; }
  .prose figure img { border-radius: 0; }

  mark.hl { text-decoration-color: var(--hl); text-decoration-thickness: 1.3pt; text-underline-offset: 0.2em; }

  .hl-list { margin: 7mm 0 0; padding-top: 4mm; border-top: 0.5pt solid #cfd4dc; }
  .hl-title { font-size: 7.5pt; margin: 0 0 2mm; break-after: avoid; }
  /* One column on paper: each word is an entry now, not a line, so two columns
     broke the sentences up. The handout is the article plus the reader's own
     glossary, with a ruled line under any word they have not written up yet. */
  .hl-list ol { column-count: 1; }
  .hl-list li { padding: 2.6mm 0; border-bottom: 0.3pt solid #e6e8ec; break-inside: avoid; }
  .hl-item > summary { grid-template-columns: 7mm minmax(0, 1fr); padding: 0; }
  .hl-chev, .hl-peek { display: none !important; }
  .hl-main { padding: 0 0 0 7mm; }
  .hl-list .n { font-size: 7.5pt; padding-top: 0; }
  .hl-list .w { font-size: 9.5pt; line-height: 1.35; }
  .hl-sent { margin: 0.8mm 0 0; font-size: 8.5pt; line-height: 1.4; color: #4b5563; }
  .hl-senses { margin-top: 1.2mm; font-size: 8.5pt; line-height: 1.4; }
  .hl-senses .hl-sense-list { font-size: inherit; line-height: inherit; }
  .hl-senses .hl-sense-list li { padding: 0 0 0 4.5mm; margin: 0.6mm 0 0; border: 0; }
  .hl-senses .hl-sense-list li::before { font-size: 7pt; line-height: 1.7; }
  .hl-note, .hl-look, .wd-note-said { display: none !important; }
  .hl-note-wrap { margin-top: 1.6mm; }
  .hl-note-cap { font-size: 6.5pt; letter-spacing: 0.08em; }
  .hl-note-print { display: block; min-height: 4.6mm; margin: 0.6mm 0 0; font-size: 8.5pt; line-height: 1.4; border-bottom: 0.4pt dotted #9aa1ad; }

  .qs-group { border: 0; border-radius: 0; margin: 0; }
  .qs-group .qs, .qs { border: 0; margin: 5mm 0 0; padding: 4mm 5mm 3mm; background: #f3f6fc; break-inside: avoid; }
  .qs::details-content { content-visibility: visible; display: block; }
  .qs > summary { display: block; min-height: 0; margin: 0 0 2mm; font-size: 7.5pt; color: var(--accent); }
  .qs > summary svg, .qs-count { display: none; }
  .qs ol { margin: 0; padding-left: 5mm; font-family: Georgia, 'Times New Roman', serif; font-size: calc(9.6pt * var(--fs, 1)); line-height: 1.45; }
  .qs li { margin: 0 0 1.2mm; padding-left: 0; }
  .ex-wrap { margin: 0; }
  .study-tools .qs-group { border: 0; background: none; }
  .study-lead { display: none; }
  .hl-slot { padding: 0; }
  .hl-actions { display: none !important; }
  .ex-nav { display: none !important; }
  .ex-block[hidden] { display: block !important; }
  .ex-block, .ex-total { border: 0.3pt solid #ccc; border-radius: 0; padding: 3mm 4mm; margin-top: 3mm; break-inside: avoid; }
  .ex-actions, .ex-sel, .ex-total { display: none; }
  .ex-term { display: inline-block; min-width: 42mm; margin-bottom: 0; }
  .ex-write { display: inline-block; min-width: 11mm; margin-left: 2mm; border-bottom: 0.5pt solid #333; }
  .ex-write-hint { display: block; margin: 1.5mm 0 0; font-size: 8pt; color: #4a4f5a; }
  .ex-key { display: block; list-style: none; margin: 1.5mm 0 0; padding: 0; font-size: calc(9pt * var(--fs, 1)); line-height: 1.5; }
  .ex-key li { margin: 0 0 0.8mm; }
  .ex-key b { display: inline-block; min-width: 5mm; color: var(--accent); }
  .ex-bank { background: #f3f6fc; padding: 2.5mm 3mm; margin-bottom: 3mm; }
  .ex-chip { font-size: 8pt; padding: 0.6mm 2.2mm; }
  .ex-chip.used { color: var(--accent); background: #fff; border-style: solid; }
  .ex-wrap .ex-list { font-size: calc(9.2pt * var(--fs, 1)); line-height: 2; padding-left: 5mm; }
  .ex-gap, .ex-in { border-bottom: 0.5pt solid #333; background: none; box-shadow: none; color: #333; min-width: 16mm; }
  .ex-opt { color: #333; border-color: #777; background: none; font-size: 7.5pt; padding: 0.4mm 2mm; min-height: 0; }
  .ex-h { font-size: 9pt; }
  .ex-lead { font-size: 8pt; }
  .qs-before { margin: 6mm 0 0; }
  .qs-after { margin: 7mm 0 0; }
  .kl { text-decoration-color: var(--accent); text-decoration-thickness: 0.8pt; text-underline-offset: 0.18em; }
  .kl-pop { display: none !important; }
  .kl-box { margin: 5mm 0 6mm; padding: 0 5mm 1.5mm; background: #f3f6fc; border-radius: 0; break-inside: avoid; }
  .kl-box::details-content { content-visibility: visible; display: block; }
  .kl-box summary { display: block; min-height: 0; padding: 3.5mm 0 1mm; }
  .kl-box summary svg, .kl-count { display: none; }
  .kl-body { padding: 0; }
  .kl-head { margin: 0; }
  .kl-title { font-size: 7.5pt; }
  .kl-note, .kl-btns { display: none !important; }
  .kl-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 5mm; }
  .kl-h { font-size: 6.5pt; margin: 2mm 0 0.5mm; }
  .kl-list { margin: 0 0 1mm; padding: 0; }
  .kl-row::before { left: -3.2mm; top: 0; font-size: 9pt; }
  .kl-row { padding: 0.5mm 0 1mm; line-height: 1.3; }
  .kl-t { font-size: calc(9pt * var(--fs, 1)); }
  .kl-m { font-size: calc(8pt * var(--fs, 1)); filter: none !important; }

  .pdf-no-photo .hero { display: none !important; }
  .pdf-no-qs .qs-group, .pdf-no-qs .qs-before, .pdf-no-qs .qs-after, .pdf-no-qs .act { display: none !important; }
  .pdf-no-ex .ex-block, .pdf-no-ex .ex-total { display: none !important; }
  .pdf-no-ex:not(.pdf-key) .qs-ex { display: none !important; }
  .pdf-key .ex-ans { display: block; margin: 5mm 0 0; padding-top: 3mm; border-top: 0.5pt solid #cfd4dc; break-inside: avoid; }
  .ex-ans-list { margin: 0; padding-left: 5mm; font-size: calc(9pt * var(--fs, 1)); line-height: 1.45; }
  .ex-ans-list li { margin: 0 0 1.5mm; }
  .ex-ans-list b { display: block; font-size: 8pt; color: var(--accent); }

  .source { font-size: 8pt; margin: 5mm 0 0; padding-top: 2.5mm; }
  .article-info { gap: 2.5mm; }
  .art-about { display: none; }
  .ai-print { display: block; font-size: 7.5pt; margin: 0; }
  .print-foot { display: block; margin: 3mm 0 0; font-size: 7pt; color: #7a808c; }
}

/* Chrome and Edge print their own date, title and web address in the page margin unless the margin is zero.
   So where each page can repeat its own padding, the page margin is set to zero and the padding makes the white border instead. */
@supports (box-decoration-break: clone) or (-webkit-box-decoration-break: clone) {
  @media print {
    @page { margin: 0; @bottom-left { content: none; } @bottom-right { content: none; } }
    main > article.wrap { padding: 14mm 15mm 17mm; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  }
}

/* The definition shown when a reader taps one of their own highlights. Sits
   below the line where there is room, so the word itself stays visible, and
   repeats the word so the reader keeps their place. */
.hl-def { position: absolute; z-index: 70; max-width: min(300px, calc(100vw - 16px)); background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 14px 34px -14px rgba(16, 24, 40, 0.38); padding: 11px 14px 12px; font-size: 0.9375rem; line-height: 1.45; }
.hl-def[hidden] { display: none; }
.hl-def-w { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 3px; }
.hl-def-body { display: block; }
.hl-def-pos { font-size: 0.8125rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: var(--r-xs); padding: 1px 7px; margin-right: 7px; }

/* A word with more than one sense lists them all, numbered, so the reader can
   match the one on the page instead of trusting the first. */
/* A first sense can run long, so the peek is capped: past three lines it would
   start covering the text again, which is the whole thing this replaced. */
.hl-def-g { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hl-def-note { color: #98a0ad; }
.hl-def-more { display: block; margin-top: 5px; font-size: 0.8125rem; font-weight: 600; color: var(--accent); }
.hl-def-ask { color: var(--accent); font-weight: 600; cursor: pointer; }
/* A quiet pill floating below the panel, outside its card: the same shape
   language as the highlight pill, but light rather than black, so removing
   stays available without competing with the meaning the reader came for. */
.hl-rm { position: absolute; z-index: 69; font: inherit; font-size: 0.8125rem; font-weight: 600; line-height: 1; color: #6b7280; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 7px 14px; cursor: pointer; white-space: nowrap; box-shadow: 0 4px 12px -6px rgba(16, 24, 40, 0.3); transition: color 0.12s, border-color 0.12s, background 0.12s; }
.hl-rm[hidden] { display: none; }
.hl-rm:hover, .hl-rm:focus-visible { color: #b42318; border-color: #f0c2bd; background: #fdf4f3; }

/* Teens: the collection page, its cards and the activity block */
.eyebrow { margin: 0; padding-top: 30px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.teens-h { margin: 6px 0 0; font-size: clamp(2rem, 7.5vw, 3.25rem); line-height: 1.08; letter-spacing: -0.025em; word-spacing: normal; max-width: 14em; }
.teens-copy { margin: 14px 0 0; max-width: 36em; font-size: 1.125rem; line-height: 1.55; color: var(--text); }
.teens-small { margin: 8px 0 0; font-size: 0.9375rem; color: var(--muted); }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 20px; padding: 0 26px; border-radius: var(--r-lg); background: var(--accent); color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none; }
.btn-primary:hover { background: #174cb8; }
.btn-primary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.teens-hero .wrap { padding-top: 14px; padding-bottom: 18px; }
.teens-filters { margin-top: 30px; }
.browse .chips[hidden] { display: none; }
button.chip { font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; min-height: 44px; padding: 4px 16px; }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.tcount { margin: 0; font-size: 0.875rem; color: var(--muted); white-space: nowrap; }
.tcard .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; }
.tcard .meta span + span::before { content: none; }
.feat { display: inline-block; padding: 1px 9px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.thumb .blank { background: var(--accent-soft); }
.linkbtn { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; text-underline-offset: 0.18em; }
.teens-note { margin: 10px 0 0; font-size: 0.9375rem; color: var(--muted); }
.act { margin: 0; padding: 18px 18px 8px; background: var(--accent-soft); border-top: 1px solid var(--line); }
.act-h { margin: 0 0 6px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); word-spacing: normal; }
.act p { margin: 0 0 0.8em; color: var(--ink); }
.qs-group .qs-after[open] { background: #fff; }
/* on the Teens page the members notice is a slim strip, so the first story stays in view */
#stories .gate-note { margin: 14px 0 0; padding: 12px 16px; gap: 8px 16px; border-radius: var(--r-lg); }
#stories .gate-note p { font-size: 0.9375rem; line-height: 1.45; }
#stories .gate-note .acct-go { padding: 8px 18px; font-size: 0.9375rem; min-height: 40px; }
#stories .gate-note + .gallery { margin-top: 22px; }
.teens-copy { font-size: 1.0625rem; }
@media (min-width: 700px) { .teens-copy { font-size: 1.125rem; } }
@media (max-width: 560px) {
  .eyebrow { padding-top: 18px; }
  .teens-h { font-size: 1.875rem; margin-top: 4px; }
  .teens-copy { font-size: 1rem; line-height: 1.5; margin-top: 10px; }
  .teens-small { font-size: 0.875rem; margin-top: 6px; }
  .teens-hero .wrap { padding-top: 10px; padding-bottom: 14px; }
  .teens-filters { margin-top: 18px; }
  #stories .gate-note { margin-top: 12px; }
  #tgrid .card { padding-top: 22px; }
}
/* the smallest phones: the Teens link needs the room, so the logo shows as a wordmark only */
@media (max-width: 340px) {
  .brand svg { display: none; }
  .site-nav { gap: 10px; }
}

/* Right and wrong are never shown by colour alone: a tick or cross, a strike-through and a border style say it too */
.ex-opt.ok::before, .ex-opt.no::before, .ex-gap.ok::after, .ex-gap.no::after {
  content: ""; display: inline-block; width: 0.85em; height: 0.85em; vertical-align: -0.08em; background: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat;
}
.ex-opt.ok::before { margin-right: 0.4em; }
.ex-opt.no::before { margin-right: 0.4em; }
.ex-gap.ok::after, .ex-gap.no::after { margin-left: 0.4em; }
.ex-opt.ok, .ex-gap.ok { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ex-opt.no, .ex-gap.no { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ex-gap.no, .ex-in.no { text-decoration: line-through; text-decoration-thickness: 2px; }
.ex-in.ok { border-bottom-width: 3px; }
.ex-in.no { border-bottom-style: dashed; }
.ex-sel.ok { border-width: 2px; border-style: solid; }
.ex-sel.no { border-width: 2px; border-style: dashed; }

.qs-help { margin: -6px 0 12px; font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.qs-help b { font-weight: 600; color: var(--ink); }

/* ===========================================================================
   The editorial pass, November 2026. Everything above still does the work;
   this block changes how much room it gets and how the type is set.
   Three ideas only: one editorial face carrying the words, Outfit demoted to
   furniture, and considerably more air.
   =========================================================================== */

/* Section headers become a quiet label over a firm rule, so the headlines
   underneath are the only large type on the page. */
.latest-head { margin: 56px 0 0; border-bottom: 1px solid var(--ink); padding-bottom: 12px; align-items: baseline; }
.sec-h { font-family: 'Outfit', system-ui, sans-serif; font-size: 1rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.2; }
.latest-head .browse-status { font-variant-numeric: tabular-nums; }

/* More room between stories, and the thumbnail corners pulled in: a softer
   radius reads as an app, a tighter one reads as a page. */
.gallery { margin: 40px 0 56px; column-gap: 36px; row-gap: 64px; }
.thumb { border-radius: var(--r-xs); }
.thumb img { transition: transform 700ms cubic-bezier(.22,1,.36,1); }
.card:hover .thumb img { transform: scale(1.03); }
.card h2 { font-size: clamp(1.28rem, 2.1vw, 1.6rem); line-height: 1.22; margin: 4px 0 8px; font-weight: 600; }
.card .sub { font-size: 1rem; line-height: 1.55; }
.card .meta .lvl { color: var(--accent); }

/* The newest story leads the page at a size nothing else gets. */
@media (min-width: 900px) {
  /* Placed explicitly rather than by order: the card's children are thumb, meta,
     headline, summary, and auto-placement puts the picture in the wrong row. */
  .gallery > .card:first-child { grid-column: 1 / -1; display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    grid-template-rows: auto auto auto; column-gap: 44px; align-items: center;
    padding-bottom: 56px; border-bottom: 1px solid var(--line); }
  .gallery > .card:first-child .thumb { grid-column: 2; grid-row: 1 / -1; align-self: center; margin-bottom: 0; }
  .gallery > .card:first-child .meta { grid-column: 1; grid-row: 1; align-self: end; }
  .gallery > .card:first-child h2 { grid-column: 1; grid-row: 2; align-self: center;
    font-size: clamp(2.1rem, 3.9vw, 3.1rem); line-height: 1.04; letter-spacing: -0.03em; margin: 10px 0 14px; }
  .gallery > .card:first-child .sub { grid-column: 1; grid-row: 3; align-self: start;
    font-size: 1.22rem; line-height: 1.5; -webkit-line-clamp: 3; max-width: 36ch; }
}

/* The members line stops being a blue slab and becomes a rule across the page. */
html.jpn-guest .gate-note { background: none; border: 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); border-radius: 0; padding: 28px 0; margin: 0 0 8px; gap: 16px 28px; }
html.jpn-guest .gate-note p { flex: 1 1 28ch; font-size: 1.0625rem; line-height: 1.5; }
html.jpn-guest .gate-note .acct-go { background: var(--ink); border-color: var(--ink); border-radius: var(--r-md); }
html.jpn-guest .gate-note .acct-go:hover { background: transparent; color: var(--ink); }

/* Articles: more room above the headline, tighter tracking on it, and a
   dropped capital to start the text the way a magazine would. */
.article-head { padding: 48px 0 36px; }
.article-head h1 { margin: 18px 0 20px; font-weight: 600; }
.dek { margin: 0 0 34px; line-height: 1.45; }
.prose > p:first-of-type::first-letter { float: left; font-family: var(--rf); font-weight: 600;
  font-size: 3.7em; line-height: 0.84; padding: 0.06em 0.09em 0 0; color: var(--ink); }
[data-font="outfit"] .prose > p:first-of-type::first-letter { font-size: 3.2em; line-height: 0.9; }
.prose { padding-bottom: 40px; }

/* Motion. Everything here animates from a visible resting state, so the page is
   complete with the scripts blocked, and none of it runs for a reader who has
   asked their device for less movement. */
.jpn-rev { will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) { .jpn-rev { will-change: auto; } }

@media (max-width: 599px) {
  .latest-head { margin-top: 32px; }
  .gallery { row-gap: 0; margin-top: 24px; }
  .article-head { padding: 24px 0 24px; }
  .prose > p:first-of-type::first-letter { font-size: 3.2em; }
}

/* Pop-outs. Each of these is shown by removing [hidden], so matching :not([hidden])
   replays the animation every time it opens. Entrances only: a menu that animates
   shut is a menu that feels slow. */
@media (prefers-reduced-motion: no-preference) {
  .pmenu:not([hidden]), .fmenu:not([hidden]) {
    animation: jpn-drop 170ms cubic-bezier(.22,1,.36,1) both;
    transform-origin: top right;
  }
  .hl-def:not([hidden]) { animation: jpn-rise 180ms cubic-bezier(.22,1,.36,1) both; }
  .hl-pill:not([hidden]) { animation: jpn-pop 180ms cubic-bezier(.34,1.56,.64,1) both; }
  .acct-dlg { animation: jpn-rise 220ms cubic-bezier(.22,1,.36,1) both; }

  /* The saved words arrive a list at a time once the account answers. */
  .wd-item { transition: border-color 220ms cubic-bezier(.22,1,.36,1); }
}
@keyframes jpn-drop { from { opacity: 0; transform: translateY(-6px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes jpn-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes jpn-pop  { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }

/* The underline that marks a highlighted word thickens on approach rather than
   switching on, and the look-up it opens is the one thing it should feel like. */
mark.hl { transition: background-color 180ms cubic-bezier(.22,1,.36,1), text-decoration-color 180ms cubic-bezier(.22,1,.36,1); }
@media (prefers-reduced-motion: reduce) { mark.hl { transition: none; } }

/* Audit pass, November 2026. Three things the layout review turned up.
   The radius values are deliberately left alone: there are 95 hard-coded ones
   across 14 sizes, and normalising them is a visible change to every surface
   on the site, not a tidy-up. */

/* 1. Crisper text on macOS, where the default rendering runs heavy. */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* 2. Headings broke wherever the line happened to run out, which at these larger
   sizes leaves one word stranded. Balance evens the lines instead. Body text gets
   pretty, which only prevents the last line being a single word. */
h1, h2, h3, .sec-h, .card h2, .article-head h1, .nx-h { text-wrap: balance; }
/* The standfirst runs to three or four lines, and balance squeezes a paragraph that
   long into a column narrower than the text under it. Pretty only stops an orphan. */
.dek, .prose p, .prose li, .card .sub, .nx-sub, .ex-list li { text-wrap: pretty; }

/* 3. The two close buttons on the study tools were below a comfortable target at
   every pointer size, not just touch. The visible button is unchanged; the hit
   area is extended underneath it. */
.hl-hint-x, .hl-list .x { position: relative; }
.hl-hint-x::after, .hl-list .x::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px; transform: translate(-50%, -50%);
}

/* The article bar (November 2026): one row on a hairline. Back arrow, the reading levels as
   underlined words, then PDF and the timer as plain text buttons. Replaces the boxed controls. */
.art-top.artbar { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 0 var(--space-4); margin: 0; border-bottom: 1px solid var(--line); min-height: 46px; }
.artbar .back { margin: 0; min-height: 44px; font-size: 0.9375rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.artbar .back:hover { color: var(--accent); }
.artbar.has-tabs .back { color: var(--ink); font-size: 1.125rem; line-height: 1; min-width: 34px; padding-right: 18px; margin-right: 6px; position: relative; }
.artbar.has-tabs .back::after { content: ""; position: absolute; right: 0; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.artbar.has-tabs .back-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.artbar .metaleft { display: flex; align-self: stretch; align-items: stretch; flex-wrap: nowrap; min-width: 0; }
.artbar .vtabs { display: flex; align-items: stretch; gap: 26px; background: none; border: 0; border-radius: 0; overflow: visible; order: 0; flex: 0 1 auto; }
.artbar .vtabs button { flex: 0 0 auto; padding: 2px 0 0; min-height: 44px; font-size: 0.9375rem; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; transition: color var(--t-base), border-color var(--t-base); }
.artbar .vtabs button + button { border-left: 0; }
.artbar .vtabs button[aria-selected="true"] { background: none; color: var(--ink); border-bottom-color: var(--accent); }
.artbar .vtabs button:focus-visible { outline-offset: 2px; border-radius: var(--r-xs); }
.art-top.artbar .tools { margin-left: auto; flex: 0 0 auto; flex-wrap: nowrap; gap: 2px; order: 0; }
.artbar .pdfbtn, .artbar .jt-inline:not(.jt-done) .jt-pill { min-height: 36px; padding: 4px 8px; border: 0; border-radius: var(--r-md); background: none; box-shadow: none; color: var(--muted); font-size: 0.9375rem; font-weight: 600; }
.artbar .pdfbtn svg { width: 16px; height: 16px; color: currentColor; }
.artbar .pdfbtn svg + span + svg { display: none; }
.artbar .pdfbtn:hover, .artbar .pdfbtn[aria-expanded="true"] { color: var(--accent); background: var(--accent-soft); }
.artbar .jt-inline { right: auto; bottom: auto; }
.artbar .jt-inline .jt-panel { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; }
.artbar .jt-inline .jt-word { display: none; }
.artbar .jt-inline.jt-idle .jt-pill { color: var(--ink); }
.artbar .jt-inline:not(.jt-done) .jt-pill:hover { color: var(--accent); background: var(--accent-soft); }
@media (max-width: 599px) {
  .art-top.artbar { gap: 0 10px; }
  .art-top.artbar .metaleft { display: flex; }
  .art-top.artbar .vtabs { gap: 16px; flex: 0 1 auto; order: 0; }
  .art-top.artbar .vtabs button { flex: 0 0 auto; font-size: 0.875rem; }
  .artbar.has-tabs .back { padding-right: 12px; margin-right: 2px; min-width: 28px; }
  .art-top.artbar .tools { flex: 0 0 auto; margin-left: auto; gap: 0; }
  .artbar.has-tabs .pdfbtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .artbar .pdfbtn, .artbar .jt-inline:not(.jt-done) .jt-pill { padding: 4px 7px; min-width: 36px; justify-content: center; }
}
@media (max-width: 350px) { .art-top.artbar .vtabs { gap: 11px; } .art-top.artbar .vtabs button { font-size: 0.8125rem; } }
@media (prefers-reduced-motion: reduce) { .artbar .vtabs button { transition: none; } }
@media print { .art-top.artbar { border: 0; min-height: 0; } }

/* Lesson layout (an article with "layout: lesson"): nine numbered tasks around the text.
   No rules between tasks; spacing and the number badges do the separating. */
.ls { --sf: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif; --ls-ok: #12805c; --ls-ok-s: #e6f5ee; --ls-no: #c2372d; --ls-no-s: #fdecea; }
.ls em, .ls i { font-style: normal; }
.ls-head .back { margin-bottom: 0; }
.ls-bar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 2px 0 30px; }
.ls .vtabs { display: flex; gap: 6px; border: 0; background: none; overflow: visible; min-width: 0; }
.ls .vtabs button { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-family: var(--sf); font-size: 0.875rem; font-weight: 600; color: var(--ink); white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.ls .vtabs button + button { border-left: 1px solid var(--line); }
.ls .vtabs button::after { font-weight: 500; font-size: 0.78rem; color: var(--muted); padding-left: 7px; border-left: 1px solid var(--line); }
.ls .vtabs button[data-level="core"]::after { content: 'B1'; }
.ls .vtabs button[data-level="intermediate"]::after { content: 'B2'; }
.ls .vtabs button[data-level="advanced"]::after { content: 'C1/C2'; }
.ls .vtabs button:hover { border-color: var(--accent); }
.ls .vtabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.ls .vtabs button[aria-selected="true"]::after { color: #fff; opacity: .85; border-color: rgba(255,255,255,.55); }
.ls .vtabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ls-tools { display: flex; align-items: center; gap: 14px; margin-left: auto; min-width: 0; }
.ls-pdf { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-family: var(--sf); font-size: 0.9rem; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.ls-pdf[hidden] { display: none; }
.ls-pdf:hover { text-decoration: underline; }
.ls-bar .timerpick { position: relative; }
.ls-bar .jt-inline { right: auto; bottom: auto; }
.ls-bar .jt-inline:not(.jt-done) .jt-pill { min-height: 36px; padding: 4px 6px; border: 0; border-radius: 8px; background: none; box-shadow: none; color: var(--ink); font-size: 0.9rem; font-weight: 600; }
.ls-bar .jt-inline:not(.jt-done) .jt-pill:hover { color: var(--accent); background: var(--accent-soft); }
.ls-bar .jt-inline .jt-word { display: none; }
.ls-bar .jt-inline .jt-panel { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; }
.ls-kicker { margin: 0 0 8px; font-family: var(--sf); font-size: 0.76rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.ls-kicker span { color: var(--muted); font-weight: 500; letter-spacing: .04em; text-transform: none; margin-left: 10px; }
.ls .article-head h1 { font-family: var(--sf); font-weight: 600; font-size: clamp(1.85rem, 5.6vw, 2.6rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.ls .dek { font-weight: 500; font-size: 1.25rem; line-height: 1.4; color: #3a4250; margin: 14px 0 0; max-width: 36em; }
.ls .hero { margin: 26px 0 0; }
.ls .hero-img { aspect-ratio: 16 / 9; object-position: 50% 35%; border-radius: 14px; }
.ls-stage { display: flex; align-items: baseline; gap: 12px; margin: 48px 0 4px; font-family: var(--sf); font-size: 0.78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ls-stage button { margin-left: auto; padding: 0; border: 0; background: none; font: inherit; font-size: 0.82rem; letter-spacing: 0; text-transform: none; color: var(--accent); cursor: pointer; }
.ls-level[hidden] { display: none; }
.ls-task > summary { display: flex; align-items: center; gap: 12px; padding: 11px 0; cursor: pointer; list-style: none; font-family: var(--sf); font-size: 1.14rem; font-weight: 600; color: var(--ink); }
.ls-task > summary::-webkit-details-marker { display: none; }
.ls-task > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ls-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--sf); font-size: 0.9rem; font-weight: 600; }
.ls-t { min-width: 0; }
.ls-hint { font-weight: 400; font-size: 0.86rem; color: var(--muted); white-space: nowrap; }
.ls-sp { margin-left: auto; }
.ls-done { margin-left: auto; font-size: 0.82rem; font-weight: 600; color: var(--ls-ok); white-space: nowrap; }
.ls-task > summary svg { flex: none; color: var(--muted); transform: rotate(-90deg); transition: transform .2s; }
.ls-done + svg { margin-left: 10px; }
.ls-task[open] > summary svg { transform: none; }
.ls-body { padding: 0 0 22px 40px; font-family: var(--sf); font-size: 1.0625rem; line-height: 1.5; color: var(--ink); }
.ls-how { margin: 0 0 14px; font-family: var(--sf); font-size: 0.95rem; color: var(--muted); }
ol.ls-qs, ol.ls-rows { margin: 0; padding-left: 22px; }
ol.ls-qs li, ol.ls-rows li { padding-left: 4px; margin: 0 0 10px; }
ol.ls-qs li::marker, ol.ls-rows li::marker { color: var(--accent); font-weight: 600; }
ol.ls-rows li { line-height: 2.1; margin-bottom: 6px; }
.ls-kw { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 0 34px; }
.ls-kw ol, .ls-kw ul { margin: 0; padding: 0; list-style: none; }
.ls-kw li { display: flex; align-items: center; gap: 10px; min-height: 42px; min-width: 0; }
.ls-kw-w { counter-reset: lskw; }
.ls-kw-w li { counter-increment: lskw; }
.ls-kw-w li::before { content: counter(lskw); flex: none; width: 18px; font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.ls-kw-w b { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.ls-kw-w select { flex: none; margin-left: auto; width: 54px; height: 32px; border: 1px solid var(--ink); border-radius: 6px; background: #fff; font: inherit; font-weight: 600; text-align: center; text-align-last: center; }
.ls-kw-m b { flex: none; width: 20px; font-weight: 600; color: var(--accent); }
.ls-kw-m li { font-size: 0.97rem; line-height: 1.3; padding: 6px 0; }
.ls-bank { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; padding: 9px 14px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent-soft); font-weight: 500; }
select.ls-g, input.ls-g { height: 30px; min-width: 130px; margin: 0 4px; padding: 1px 4px; border: 0; border-bottom: 1px solid #4b5563; border-radius: 0; background: transparent; font: inherit; font-weight: 500; color: inherit; text-align: center; text-align-last: center; }
input.ls-g { width: 170px; }
select.ls-g:focus-visible, input.ls-g:focus-visible, .ls-kw-w select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ls-cue { font-size: 0.82rem; font-weight: 600; letter-spacing: .03em; color: var(--muted); }
.ls-st { display: flex; align-items: flex-start; gap: 14px; line-height: 1.45; }
.ls-st > span:first-child { flex: 1; min-width: 0; padding-top: 3px; }
.ls-tfn { display: flex; flex: none; gap: 6px; }
.ls-tfn button { min-width: 40px; height: 32px; border: 1px solid #7b8494; border-radius: var(--r-md); background: #fff; font: inherit; font-size: 0.8rem; font-weight: 600; color: #3a4250; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.ls-tfn button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ls-why { margin: 2px 0 6px; font-size: 0.9rem; line-height: 1.45; color: var(--muted); }
.ls .ls-ok { background: var(--ls-ok-s) !important; border-color: var(--ls-ok) !important; color: var(--ls-ok) !important; }
.ls .ls-no { background: var(--ls-no-s) !important; border-color: var(--ls-no) !important; color: var(--ls-no) !important; }
.ls-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ls-btn { padding: 8px 16px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); font: inherit; font-size: 0.9rem; font-weight: 600; color: #fff; cursor: pointer; transition: background-color .15s, border-color .15s; }
.ls-btn:hover { background: #1549b3; border-color: #1549b3; }
.ls-btn.ls-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.ls-btn.ls-ghost:hover { background: #fff; border-color: var(--ink); }
.ls-score { font-size: 0.92rem; font-weight: 600; color: var(--muted); }
.ls-score.ls-good { color: var(--ls-ok); }
.ls-readhead { display: flex; align-items: center; gap: 12px; margin: 0; padding: 11px 0 0; font-family: var(--sf); font-size: 1.14rem; font-weight: 600; color: var(--ink); }
.ls-readhow { margin: 4px 0 14px 40px; }
.ls .panels { margin: 6px 0 0; padding: 30px 34px 14px 74px; border: 1px solid var(--line); border-radius: 16px; background: #f7f9fc; }
.ls .prose { counter-reset: lsp; padding-bottom: 0; font-size: 1.22rem; line-height: 1.62; }
.ls .prose > p { position: relative; counter-increment: lsp; margin: 0 0 18px; }
.ls .prose > p::before { content: counter(lsp); position: absolute; left: -40px; top: 5px; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 50%; background: var(--accent-soft); font-family: var(--sf); font-size: 0.76rem; font-weight: 600; line-height: 1; color: var(--accent); }
.ls .prose > p:first-of-type::first-letter { float: none; padding: 0; font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; }
.ls .article-info { margin: 18px 0 0; padding-top: 0; border-top: 0; }
.ls-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.ls-card { padding: 14px 16px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent-soft); }
.ls-card h4, .ls-phr h4 { margin: 0 0 6px; font-family: var(--sf); font-size: 0.88rem; font-weight: 600; color: var(--accent); }
.ls-card p { margin: 0; font-size: 0.98rem; }
.ls-phr { padding-left: 16px; border-left: 3px solid var(--accent); }
.ls-phr ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 30px; font-size: 0.98rem; }
.ls-phr li { margin: 0 0 6px; break-inside: avoid; }
.ls-after { margin: 16px 0 0; font-weight: 500; }
.ls-words { margin-top: 0; }
.ls-words .ls-stage { margin-bottom: 10px; }
@media (max-width: 640px) {
  .ls-bar { margin-bottom: 22px; }
  .ls .vtabs { width: 100%; }
  .ls .vtabs button { flex: 1; justify-content: center; padding: 7px 4px; }
  .ls-tools { margin-left: 0; width: 100%; justify-content: space-between; }
  .ls .hero { margin-top: 18px; }
  .ls .hero-img { aspect-ratio: 3 / 2; }
  .ls-body { padding-left: 0; }
  .ls-readhow { margin-left: 0; }
  .ls .panels { padding: 20px 18px 6px; border-radius: 14px; }
  .ls .prose > p::before { position: static; margin-right: 8px; vertical-align: 2px; }
  .ls-kw { grid-template-columns: minmax(0, 1fr); gap: 16px 0; }
  .ls-cards { grid-template-columns: minmax(0, 1fr); }
  .ls-phr ul { columns: 1; }
  .ls-st { flex-direction: column; gap: 6px; }
  .ls-hint { display: none; }
  select.ls-g { min-width: 110px; }
}
@media (prefers-reduced-motion: reduce) { .ls *, .ls *::before, .ls *::after { transition: none !important; } }

/* One rule for every fold-out row on the site: the arrow points right when the row is closed
   and down when it is open. A down arrow on a closed row read as "already open". */
.qs > summary svg, .hl-chev { transform: rotate(-90deg); }
.qs[open] > summary svg, .hl-item[open] .hl-chev { transform: none; }
.wd-chev { transform: rotate(-45deg) translate(-2px, -2px); }
.wd-item[open] .wd-chev { transform: rotate(45deg) translate(-2px, -2px); }
.art-about > summary::after { transform: rotate(-45deg); }
.art-about[open] > summary::after { transform: translateY(-2px) rotate(45deg); }
/* Lesson layout: the saved words and the next stories follow the same no-rules look. */
.ls-words .qs-group { margin-top: 0; border: 0; border-radius: 0; background: none; overflow: visible; }
.ls-words .qs-group .qs { padding: 0; background: none; }
.ls-words .qs-group .qs + .qs, .ls-words .hl-list { border-top: 0; }
.ls-words .qs-label { font-family: var(--sf); font-size: 1.14rem; font-weight: 600; }
.ls .continue-reading { padding-top: 0; border-top: 0; }

/* Lesson layout: each stage is one panel, so the page reads as four clear blocks with the saved
   words after them. Sources and topics sit below the lesson, out of its way. */
.ls-sec { margin: 22px 0 0; padding: 20px 24px 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.ls-head .ls-sec { margin-top: 30px; }
.ls .article-head.ls-head { padding-bottom: 0; }
.ls .ls-sec .ls-stage { margin: 0 0 6px; }
.ls-sec-read { padding-bottom: 6px; background: #f7f9fc; }
.ls .ls-sec-read .panels { margin: 0; padding: 0 0 0 40px; border: 0; border-radius: 0; background: none; }
.ls .ls-words.ls-sec { margin-top: 22px; padding-bottom: 14px; }
.ls .ls-words .ls-stage { margin-bottom: 4px; }
.ls .article-info { margin: 26px 0 0; padding: 0 24px; }
@media (max-width: 640px) {
  .ls-sec { padding: 16px 16px 6px; border-radius: 14px; }
  .ls .ls-sec-read .panels { padding: 0; }
  .ls .article-info { padding: 0 4px; }
}

/* ================================================================= How it works tour (static/tour.js)
   Dims the page and lights one part at a time, with a short card. Same pattern as the Word Rooms tour. */
.tourbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0; font: inherit; font-family: var(--sf); font-size: 0.9rem; font-weight: 600; color: var(--accent); background: none; border: 0; cursor: pointer; white-space: nowrap; }
.tourbtn:hover span { text-decoration: underline; }
.tourbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tourbtn svg .d { fill: currentColor; }
.tourbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-xs); }
@media (max-width: 560px) { .tourbtn span { display: none; } }
.jt-tour { position: fixed; inset: 0; z-index: 700; pointer-events: none; }
.jt-tour .block { position: fixed; inset: 0; pointer-events: auto; }
.jt-tour .hole { position: fixed; left: 0; top: 0; width: 0; height: 0; border-radius: var(--r-lg); pointer-events: none;
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 200vmax rgb(14 18 26 / 60%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), width .35s cubic-bezier(.2,.7,.2,1), height .35s cubic-bezier(.2,.7,.2,1); }
.jt-tour .tip { position: fixed; pointer-events: auto; width: min(360px, calc(100vw - 24px)); background: var(--bg); color: var(--ink);
  border-radius: 16px; padding: 16px 18px 14px; box-shadow: 0 24px 60px rgb(8 10 16 / 45%);
  transition: left .3s cubic-bezier(.2,.7,.2,1), top .3s cubic-bezier(.2,.7,.2,1); }
.jt-tour .hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 6px; }
.jt-tour .st { font: 600 12.5px/1 var(--sf); color: var(--accent); }
.jt-tour .sk { all: unset; cursor: pointer; font: 500 13px/1 var(--sf); color: var(--muted); padding: 6px 8px; border-radius: var(--r-md); }
.jt-tour .sk:hover { background: var(--accent-soft); color: var(--ink); }
.jt-tour h3 { margin: 0 0 6px; font: 700 19px/1.2 var(--sf); letter-spacing: -.01em; }
.jt-tour p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text); }
.jt-tour .ft { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.jt-tour .dotsrow { display: flex; gap: 4px; margin-right: auto; flex-wrap: wrap; min-width: 0; }
.jt-tour .dotsrow i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); }
.jt-tour .dotsrow i.on { width: 16px; background: var(--accent); }
.jt-tour .bk, .jt-tour .nx { all: unset; cursor: pointer; font: 600 14px/1 var(--sf); padding: 10px 15px; border-radius: var(--r-md); }
.jt-tour .bk { color: var(--ink); border: 1.5px solid var(--line); }
.jt-tour .nx { background: var(--accent); color: #fff; }
.jt-tour .bk:focus-visible, .jt-tour .nx:focus-visible, .jt-tour .sk:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.jt-tour .bk[hidden] { display: none; }
.jt-invite { position: fixed; right: 20px; bottom: 20px; z-index: 640; width: min(330px, calc(100vw - 32px)); background: var(--ink); color: #fff;
  border-radius: 16px; padding: 15px 16px 14px; box-shadow: 0 20px 50px rgb(8 10 16 / 40%); animation: jtrise .35s cubic-bezier(.2,.7,.2,1); }
.jt-invite b { display: block; font: 700 16px/1.2 var(--sf); }
.jt-invite span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: #c9d0db; }
.jt-invite .ac { display: flex; gap: 8px; margin-top: 12px; }
.jt-invite button { all: unset; cursor: pointer; font: 600 14px/1 var(--sf); padding: 10px 14px; border-radius: var(--r-md); }
.jt-invite .go { background: var(--accent); color: #fff; }
.jt-invite .no { color: #c9d0db; }
.jt-invite button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes jtrise { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 700px) {
  .jt-tour .tip.dock { left: 12px !important; right: 12px; width: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); top: auto !important; }
  .jt-tour .tip.dock-top { top: 12px !important; bottom: auto; }
  .jt-invite { left: 16px; right: 16px; width: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .jt-tour .hole, .jt-tour .tip { transition: none; } .jt-invite { animation: none; } }

/* A tick or a cross beside a checked answer, so right and wrong do not depend on colour alone. */
.ls { --cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ls-mark { display: inline-block; flex: none; width: 16px; height: 16px; margin-left: 6px; vertical-align: -2px; background: var(--ls-ok);
  -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }
.ls-mark-no { background: var(--ls-no); -webkit-mask-image: var(--cross); mask-image: var(--cross); }
.ls-tfn .ls-mark { align-self: center; margin-left: 2px; }
.ls-btn[hidden] { display: none; }

/* The home page's one-line introduction, for visitors who are not signed in. */
.home-intro { display: none; margin: 36px 0 -8px; font-family: var(--sf); font-size: clamp(1.15rem, 3.4vw, 1.4rem); line-height: 1.4; color: var(--muted); max-width: 40em; }
.home-intro b { color: var(--ink); font-weight: 600; }
html.jpn-guest .home-intro { display: block; }

@media (max-width: 359px) { .site-nav .nav-articles { display: none; } }

/* Touch screens: every control in a lesson is at least 44px tall, or has an invisible area that makes it so. */
@media (pointer: coarse), (max-width: 700px) {
  .ls-tfn { gap: 8px; }
  .ls-tfn button { min-width: 48px; height: 44px; border-radius: var(--r-md); font-size: 0.9rem; }
  select.ls-g, input.ls-g { height: 44px; }
  .ls-kw li { min-height: 52px; }
  .ls-kw-w select { width: 62px; height: 44px; }
  .ls-stage button { position: relative; }
  .ls-stage button::after { content: ""; position: absolute; inset: -14px -10px; }
  .topics .chip { min-height: 40px; }
  /* the audio bar keeps its thin look; a clear border above and below gives the thumb room to be caught */
  .lp-seek { box-sizing: content-box; border: solid transparent; border-width: 16px 0; margin: -16px 0; background-clip: padding-box; }
}

/* One quiet line after a lesson asking for support. */
.ls-support { margin: 28px 0 0; text-align: center; font-family: var(--sf); font-size: 0.95rem; color: var(--muted); }
.ls-support a { display: inline-block; margin-left: 8px; padding: 8px 16px; border: 1px solid var(--accent); border-radius: var(--r-md); color: var(--accent); font-weight: 600; text-decoration: none; }
.ls-support a:hover { background: var(--accent); color: #fff; }
@media (max-width: 560px) { .ls-support a { display: block; margin: 10px auto 0; width: fit-content; } }
@media print { .ls-support { display: none; } }

/* ================================================================= the sign-in box, tidied (2026-11-24)
   No ring round the whole box, white fields even when the browser fills them in, the site's own corners,
   and one quiet line under the button in place of a stack of links. */
.acct-dlg { max-width: 400px; padding: 30px 28px 24px; border-radius: 16px; }
.acct-dlg:focus, .acct-dlg:focus-visible { outline: none; }
.acct-dlg h2 { margin: 0 0 6px; font-family: var(--sf, inherit); font-size: 1.5rem; letter-spacing: -0.01em; }
.acct-dlg form { margin-top: 18px; }
.acct-dlg .acct-lead { margin: 0; font-size: 0.9375rem; color: var(--muted); }
.acct-x { right: 12px; top: 12px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; }
.acct-x:hover { background: var(--accent-soft); }
.acct-field { margin: 0 0 16px; }
.acct-flabel { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.acct-field .acct-flabel label { margin: 0; color: var(--ink); }
.acct-flabel .acct-link { padding: 0; font-size: 0.8125rem; text-decoration: none; }
.acct-flabel .acct-link:hover { text-decoration: underline; }
.acct-field input { min-height: 46px; border-radius: var(--r-md); }
.acct-field input:-webkit-autofill, .acct-field input:-webkit-autofill:hover, .acct-field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px #fff inset; box-shadow: 0 0 0 100px #fff inset; -webkit-text-fill-color: var(--ink); caret-color: var(--ink); }
.acct-field input:-webkit-autofill::first-line { font-family: inherit; font-size: 1rem; }
.acct-pw { position: relative; }
.acct-pw input { padding-right: 64px; }
.acct-show { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 38px; padding: 0 10px; font: inherit; font-size: 0.8125rem; font-weight: 600; color: var(--accent); background: none; border: 0; border-radius: var(--r-sm); cursor: pointer; }
.acct-show:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.acct-dlg .acct-go { min-height: 46px; border-radius: var(--r-md); margin-top: 4px; }
.acct-go:hover:not(:disabled) { background: #1549b3; border-color: #1549b3; }
.acct-alt { display: block; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; font-size: 0.9375rem; color: var(--muted); }
.acct-alt .acct-link { font-size: inherit; font-weight: 600; text-decoration: none; padding: 0; }
.acct-alt .acct-link:hover { text-decoration: underline; }
