:root {
  --page: #f7f3ea;
  --hair: #c9c4b8;
  --ink: #141414;
  --muted: #4f4a42;
  --sidebar: #efe6d2;
  --accent: #8e1c1c;
  --left: #2e5e8c;
  --right: #a04a12;
  --note: #f5ebbf;
  --display: Didot, "Bodoni 72", "Bodoni MT", "Bodoni Moda", Georgia, serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--serif); }
a { color: inherit; }
.page { max-width: 1100px; margin: 0 auto; padding: 12px 20px 140px; }
.loading { font-family: var(--sans); color: var(--muted); }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 600 12px var(--sans); color: var(--muted); }
.levels { display: inline-flex; border: 1px solid var(--ink); }
.levels button { font: 700 12px var(--sans); background: transparent; border: 0; padding: 6px 10px; cursor: pointer; color: var(--ink); }
.levels button[aria-pressed="true"] { background: var(--ink); color: var(--page); }

.masthead { text-align: center; font: 700 clamp(48px, 10vw, 92px)/0.95 var(--display); letter-spacing: -0.01em; margin: 4px 0; }
.nameplate.with-ears { display: grid; grid-template-columns: 180px 1fr 180px; gap: 16px; align-items: center; margin: 6px 0; }
.ear { border: 1px solid var(--ink); padding: 8px; text-align: center; }
.ear strong { display: block; font: 600 19px var(--serif); margin-top: 2px; }
.ear em { display: block; font-size: 13px; color: var(--muted); }
.masthead a { text-decoration: none; }
.dateline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); padding: 4px 0; font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }

.front { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; margin-top: 14px; }
.front > :last-child { border-left: 1px solid var(--hair); padding-left: 20px; margin-left: -1px; }
.sidebar { align-self: start; display: grid; gap: 14px; }
.good-news { background: var(--sidebar); padding: 12px; }
.good-news h2 { text-align: center; font: 600 24px var(--serif); margin: 0; }
.good-news .stars { text-align: center; letter-spacing: 0.4em; font-size: 11px; border-bottom: 1px solid var(--ink); padding-bottom: 6px; margin-bottom: 8px; }
.good-news p { margin: 0 0 10px; font-size: 15px; line-height: 1.4; }
.good-news .count { font: 11px var(--sans); color: var(--muted); }

.label { font: 700 11px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.badge { display: inline-block; font: 700 10px var(--sans); text-transform: uppercase; border: 1px solid var(--ink); padding: 3px 6px; background: transparent; color: var(--ink); cursor: pointer; }
.lead { border-bottom: 1px solid var(--ink); padding-bottom: 14px; }
.lead h1 { font: 600 clamp(30px, 4.6vw, 48px)/1.04 var(--serif); margin: 6px 0; }
.lead h1 a, .teaser h2 a { text-decoration: none; }
.deck { font-style: italic; color: var(--muted); font-size: 18px; margin: 4px 0 10px; }
.lead .first { font-size: 17px; line-height: 1.5; columns: 2 240px; column-gap: 20px; column-rule: 1px solid var(--hair); }
/* Drop cap: the lead story and each article open with a large initial. */
.lead .first p:first-child::first-letter, .body p:first-child::first-letter {
  float: left; font: 700 3.5em/0.82 var(--serif); padding: 0.06em 0.08em 0 0; color: var(--ink);
}
.more { font: 700 13px var(--sans); color: var(--left); text-decoration: none; }
.sides { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin-top: 12px; }
.sides > div { padding: 6px 10px 6px 0; }
.sides > div + div { border-left: 1px solid var(--ink); padding-left: 10px; }
.sides .quote { font-style: italic; font-size: 16px; }
/* Rules between columns and rows; the outer edges are clipped away. */
.others { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; margin: 18px -10px 0; overflow: hidden; }
.others .teaser { padding: 12px 10px 14px; margin: -1px 0 0 -1px; border-left: 1px solid var(--hair); border-top: 1px solid var(--hair); }
.others .teaser.featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; align-content: start; }
.teaser.featured > :not(.first) { grid-column: 1; }
.good-page { margin-top: 14px; }
.good-page h1 { font: 600 34px var(--serif); margin: 0 0 4px; }
.teaser.featured h2 { font-size: 30px; }
.teaser.featured .deck { font-size: 17px; }
.teaser.featured .first { grid-column: 2; grid-row: 1 / span 4; margin: 0; padding-left: 20px; border-left: 1px solid var(--hair); font-size: 15px; line-height: 1.5; }
.teaser h2 { font: 600 23px/1.1 var(--serif); margin: 6px 0; }
.label .ago { color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
.teaser .meta { font: 11px var(--sans); color: var(--muted); }
.word-of-day { border: 1px solid var(--ink); padding: 12px; text-align: center; margin-top: 20px; }
.word-of-day strong { display: block; font-size: 24px; }
/* On a wide page the word of the day is in the masthead's ear. */
@media (min-width: 1001px) { .front .word-of-day { display: none; } }

.story { max-width: 760px; margin: 0 auto; }
.story h1 { font: 600 clamp(30px, 5vw, 42px)/1.05 var(--serif); margin: 8px 0; }
.byline { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 6px 0; font: 600 12px var(--sans); }
.byline .author { display: inline-flex; align-items: center; gap: 8px; }
.byline .author img { border-radius: 50%; object-fit: cover; }
.byline .author small { display: block; font: 400 11px var(--sans); color: var(--muted); }
.signature { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--ink); margin-top: 20px; padding-top: 12px; }
.signature img { border-radius: 50%; object-fit: cover; flex: none; }
.signature p { margin: 0; font: 13px/1.4 var(--sans); color: var(--muted); }
.signature strong { color: var(--ink); }
.body p { font-size: 19px; line-height: 1.6; margin: 14px 0; }
.w { cursor: pointer; border-radius: 2px; }
.w:hover { background: var(--note); }
.w.g { text-decoration: underline dotted #6b6457; text-underline-offset: 3px; }
.w.gr { text-decoration: underline dashed var(--accent); text-underline-offset: 3px; }
.w.saved { text-decoration: underline solid var(--accent); text-underline-offset: 3px; }
.w.speaking { background: var(--note); box-shadow: 0 0 0 2px var(--note); }
.body p.reading { background: rgba(245, 235, 191, 0.55); box-shadow: -8px 0 0 rgba(245, 235, 191, 0.55); }
.en { font: 700 10px var(--sans); color: var(--left); background: none; border: 1px solid currentColor; border-radius: 3px; padding: 1px 4px; cursor: pointer; vertical-align: 2px; }
.body p.en-text { font: italic 16px/1.5 var(--serif); color: var(--muted); border-left: 2px solid var(--left); padding-left: 10px; margin-top: -6px; }
.listen { white-space: nowrap; font: 700 12px var(--sans); background: var(--ink); color: var(--page); border: 0; padding: 4px 10px; cursor: pointer; }
.note .lemma { font: 13px var(--sans); color: var(--muted); margin: 2px 0 0; }
.hint { font: 12px var(--sans); color: var(--muted); }

.perspectives { border-top: 3px double var(--ink); margin-top: 24px; padding-top: 8px; }
.perspectives h2 { font: 600 28px var(--serif); margin: 6px 0 12px; }
.agree { background: rgba(239, 230, 210, 0.6); padding: 10px 12px; }
.agree p, .side p, .box p { margin: 6px 0; font-size: 16px; line-height: 1.45; }
.sides-full { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 16px 0; }
.side .quote { font: italic 600 22px/1.2 var(--serif); margin: 6px 0; }
.box { border: 1px solid var(--ink); padding: 12px; }
.calm { font-style: italic; color: var(--muted); }

.note { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%) rotate(-0.6deg); width: min(520px, calc(100% - 32px)); background: var(--note); padding: 14px 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); font-family: var(--serif); }
.note h3 { margin: 0; font: 600 22px var(--serif); display: flex; justify-content: space-between; }
.note h3 button { background: none; border: 0; font: 18px var(--sans); cursor: pointer; }
.note .tr { color: var(--accent); font-style: italic; font-size: 18px; margin: 4px 0; }
.note .ex { color: var(--muted); font-size: 14px; margin: 0; }

.footer { margin-top: 40px; border-top: 1px solid #c9c4b8; padding-top: 10px; font: 12px var(--sans); color: var(--muted); }

/* Section bar under the masthead, like a printed paper's index */
.sections { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--ink); font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: 0.06em; }
.sections a { text-decoration: none; color: var(--ink); }
.sections a[aria-current="page"] { color: var(--accent); }
.sections .num { font-weight: 600; color: var(--muted); }
.sections .streak { margin-left: auto; color: var(--accent); }

/* "Tu progreso" box in the sidebar */
.progress-box { border: 1px solid var(--ink); padding: 10px 12px; }
.progress-box dl { margin: 8px 0; display: grid; gap: 4px; }
.progress-box dl div { display: flex; justify-content: space-between; border-bottom: 1px dotted #c9c4b8; padding-bottom: 3px; }
.progress-box dt { font: 13px var(--serif); }
.progress-box dd { margin: 0; font: 700 14px var(--serif); }

/* «¿Lo has entendido?» */
/* «¿Lo has entendido?»: boxed like a paper's puzzle corner */
.quiz { margin-top: 28px; padding: 16px; background: #fffdf5; border: 1px solid var(--ink); }
.quiz-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
.quiz-head h2 { margin: 2px 0 0; }
.quiz-sub { margin: 2px 0 0; font: italic 14px var(--serif); color: var(--muted); }
.tally { display: flex; gap: 4px; }
.tally span { width: 12px; height: 12px; border: 1px solid var(--ink); }
.tally .right { background: var(--ink); }
.tally .wrong { background: var(--accent); border-color: var(--accent); }
.quiz .question { display: grid; grid-template-columns: 28px 1fr; gap: 12px; margin: 0; padding: 14px 0; }
.quiz .question + .question { border-top: 1px solid var(--hair); }
.quiz .question .n { font: 700 34px/1 var(--serif); color: var(--accent); }
.quiz .question .q { margin: 0 0 6px; }
.quiz .options { gap: 0; }
.quiz .option { display: flex; align-items: flex-start; gap: 10px; border: 0; padding: 7px 0; background: none; text-decoration: none; }
.quiz .option:hover:not([aria-disabled]) .letter { background: var(--sidebar); }
.quiz .option[aria-disabled] { cursor: default; }
.quiz .letter { flex: none; margin-top: 1px; display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--ink); font: 700 12px var(--sans); }
.quiz .option.right { border: 0; background: none; font-weight: 600; }
.quiz .option.right::after { content: none; }
.quiz .option.right .letter { background: var(--ink); color: #fffdf5; }
.quiz .option.wrong { color: var(--accent); }
.quiz .option.wrong span:last-child { text-decoration: line-through; }
.quiz .option.wrong .letter { background: var(--accent); border-color: var(--accent); color: #fffdf5; }
.quiz .option.other { color: var(--muted); }
.quiz .option.other .letter { border-color: var(--hair); }
.quiz .explanation { font: 15px/1.4 var(--serif); font-style: normal; border-left: 2px solid var(--ink); padding-left: 8px; margin: 8px 0 0; }
.quiz .explanation.missed { border-color: var(--accent); }
.quiz .score { display: flex; align-items: baseline; gap: 10px; margin: 0; padding-top: 10px; border-top: 3px double var(--ink); font: inherit; text-transform: none; letter-spacing: 0; }
.quiz .score.top { border-top: 0; border-bottom: 3px double var(--ink); padding: 12px 0; }
.quiz .question.large .q { font-size: 21px; }
.quiz .question.large .option { font-size: 18px; padding: 10px 0; }
.quiz .next { text-align: right; margin: 12px 0 0; }
.quiz .next .listen { font-size: 14px; padding: 9px 16px; }
.quiz .option span:last-child { text-align: left; }
.quiz .score strong { font: 600 30px var(--serif); white-space: nowrap; }
.quiz .score em { font: italic 15px var(--serif); color: var(--muted); }
.grammar { border-top: 3px double var(--ink); margin-top: 24px; padding-top: 8px; }
.grammar h2 { font: 600 28px var(--serif); margin: 6px 0 12px; }
.grammar-note { border-left: 2px solid var(--accent); padding-left: 10px; margin: 0 0 16px; }
.grammar-note p { margin: 4px 0; font: 16px/1.45 var(--serif); }
.grammar-note .phrase { font: italic 600 19px var(--serif); }
.grammar-note .ex { color: var(--muted); font-size: 15px; }
.note .note-grammar { border-top: 1px solid rgba(0,0,0,0.15); margin-top: 6px; padding-top: 4px; font-size: 14px; }
.note .note-grammar p { margin: 3px 0; }
.note .note-grammar .label { color: var(--ink); }
.note .note-grammar .label span { color: var(--accent); }
.note .note-grammar .ex { color: var(--muted); font-style: italic; }
.quiz h2 { font: 600 28px var(--serif); margin: 6px 0 12px; }
.question { margin-bottom: 16px; }
.question .q { font: 600 18px/1.35 var(--serif); margin: 0 0 8px; }
.question .n { color: var(--accent); }
.options { display: grid; gap: 6px; }
.option { text-align: left; font: 16px/1.35 var(--serif); color: var(--ink); background: transparent; border: 1px solid var(--ink); padding: 8px 10px; cursor: pointer; }
.option:hover:not(:disabled) { background: var(--sidebar); }
.option:disabled { cursor: default; color: var(--muted); border-color: #c9c4b8; }
.option.right { color: var(--ink); border: 2px solid var(--ink); background: var(--sidebar); }
.option.right::after { content: "  ✓"; font-weight: 700; }
.option.wrong { color: var(--accent); border-color: var(--accent); text-decoration: line-through; }
.explanation { font: italic 15px var(--serif); color: var(--muted); margin: 6px 0 0; }
.score { font: 700 14px var(--sans); text-transform: uppercase; letter-spacing: 0.06em; border-top: 1px solid var(--ink); padding-top: 8px; }

/* Mi vocabulario: set like the classified ads */
.page-section { max-width: 760px; margin: 0 auto; }
.page-section h1 { font: 600 clamp(30px, 5vw, 42px)/1.05 var(--serif); margin: 14px 0 4px; }
.classifieds { list-style: none; padding: 0; columns: 2 260px; column-gap: 24px; column-rule: 1px solid #c9c4b8; }
.classifieds li { break-inside: avoid; position: relative; padding: 8px 22px 8px 0; border-bottom: 1px dotted #c9c4b8; font-size: 16px; line-height: 1.35; }
.classifieds strong { font-size: 18px; }
.classifieds .lemma { font: 12px var(--sans); color: var(--muted); }
.classifieds em { display: block; color: var(--accent); }
.classifieds .ex { display: block; font-size: 13px; color: var(--muted); }
.classifieds .box-level { font-size: 9px; letter-spacing: 2px; color: var(--muted); }
.classifieds .remove { position: absolute; right: 0; top: 6px; background: none; border: 0; font: 18px var(--sans); color: var(--muted); cursor: pointer; }
a.listen { display: inline-block; text-decoration: none; }

/* Hemeroteca: days set like a printed index */
.archive-day h2 { font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: 0.06em; border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); padding: 6px 0; margin: 22px 0 4px; }
.archive-day ul { list-style: none; padding: 0; margin: 0; }
.archive-day li { padding: 10px 0; border-bottom: 1px dotted #c9c4b8; }
.archive-day li a { display: block; font: 600 21px/1.15 var(--serif); text-decoration: none; margin-top: 3px; }
.archive-day li .deck { font-size: 15px; margin: 4px 0 0; }
.archive-day .ago { font: 600 11px var(--sans); color: var(--muted); }

/* Level test: the puzzles page, numbered boxes in two columns */
.invite { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; border: 1px solid var(--ink); border-left: 6px solid var(--accent); padding: 8px 12px; margin-top: 12px; font: 15px var(--serif); }
.link { background: none; border: 0; font: 600 12px var(--sans); color: var(--muted); text-decoration: underline; cursor: pointer; }
.puzzle-grid { list-style: none; counter-reset: puzzle; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.puzzle { counter-increment: puzzle; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 12px; }
.puzzle .q::before { content: counter(puzzle); display: inline-block; min-width: 22px; margin-right: 6px; font: 700 12px var(--sans); color: var(--page); background: var(--ink); text-align: center; padding: 1px 4px; vertical-align: 2px; }
.puzzle .q { font: 600 17px/1.35 var(--serif); margin: 0 0 8px; }
.card .label { margin: 0 0 4px; }

/* Mi cuenta */
.login label { display: block; font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.login input { display: block; width: 100%; margin-top: 4px; font: 17px var(--serif); padding: 8px 10px; border: 1px solid var(--ink); background: #fffdf5; color: var(--ink); }
.error { color: var(--accent); font: italic 15px var(--serif); }
.tabs { margin: 0 0 12px; }
button.google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; font: 700 14px var(--sans); padding: 10px 14px; border: 1px solid var(--ink); background: #fffdf5; color: var(--ink); cursor: pointer; }
button.google:disabled { opacity: 0.6; cursor: default; }
.or { font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 14px 0 10px; }
button.link.danger { color: var(--accent); }
.card-actions button.danger { background: var(--accent); border-color: var(--accent); color: var(--page); }

/* Review cards: an index card on the desk */
.card { background: #fffdf5; border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 28px 20px; text-align: center; margin: 18px auto; max-width: 460px; }
.card .big { font: 600 40px/1.1 var(--serif); margin: 0 0 10px; }
.card .lemma { font: 13px var(--sans); color: var(--muted); margin: 0; }
.card .tr { font: italic 22px var(--serif); color: var(--accent); margin: 8px 0; }
.card .ex { font-size: 15px; color: var(--muted); }
.card .sentence { font: 19px/1.4 var(--serif); margin: 6px 0; }
.card .options { margin-top: 14px; text-align: left; }
.card .write { font: 20px var(--serif); text-align: center; width: 100%; box-sizing: border-box; padding: 8px; border: 1px solid var(--ink); background: transparent; color: var(--ink); margin-top: 10px; }
.card-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.card-actions button { font: 700 13px var(--sans); text-transform: uppercase; letter-spacing: 0.05em; padding: 9px 16px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.card-actions .primary { background: var(--ink); color: var(--page); }
.card-actions a.listen { font: 700 13px var(--sans); text-transform: uppercase; letter-spacing: 0.05em; padding: 9px 16px; border: 1px solid var(--ink); }

/* Justified, hyphenated columns where they are wide enough not to open gaps. */
@media (min-width: 761px) {
  .lead .first, .teaser.featured .first, .body p:not(.en-text) { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
}

@media (max-width: 1000px) {
  .nameplate.with-ears { grid-template-columns: 1fr; }
  .nameplate .ear { display: none; }
  .dateline .motto { display: none; }
}

@media (max-width: 760px) {
  .front { grid-template-columns: 1fr; }
  .front > :last-child { border-left: 0; padding-left: 0; margin-left: 0; }
  .others .teaser.featured { display: block; }
  .teaser.featured .first { display: none; }
  .sidebar { order: 2; }
  .sides-full, .sides { grid-template-columns: 1fr; }
  .sides > div + div { border-left: 0; border-top: 1px solid var(--ink); padding-left: 0; }
}
.note .audio-report { font: 13px var(--sans); color: var(--muted); margin: 8px 0 0; }
.note .audio-report .link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* A story's image: the photo in black and white, the locator map in ink, as a paper prints them */
figure { margin: 12px 0; }
figure img, figure svg { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; }
figure.photo img { filter: grayscale(1) contrast(1.1); background: var(--sidebar); }
figure.map svg { aspect-ratio: 3 / 2; border: 1px solid var(--ink); background: var(--page); }
figure.map path { fill: var(--sidebar); stroke: var(--ink); stroke-width: 0.6; stroke-opacity: 0.7; }
figure.map path.here { fill: var(--hair); }
figure.map circle { fill: var(--accent); }
figure.map text.country { font: 10px var(--sans); letter-spacing: 1.5px; fill: var(--muted); text-anchor: middle; dominant-baseline: middle; }
figure.map text.place { font: 700 15px var(--serif); fill: var(--ink); dominant-baseline: middle; paint-order: stroke; stroke: var(--page); stroke-width: 3px; }
figure.map .inset rect { fill: var(--page); }
figure.map .inset rect.frame { fill: none; stroke: var(--ink); }
figure.map .inset path { stroke-width: 0.4; }
figure.chart .chart-box { border: 1px solid var(--ink); padding: 10px 12px; }
figure.chart strong { display: block; font: 600 17px var(--serif); margin-bottom: 6px; }
figure.chart ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
figure.chart li { display: grid; grid-template-columns: 1fr auto; row-gap: 2px; font: 14px var(--serif); }
figure.chart .bar-value { font-weight: 700; font-variant-numeric: tabular-nums; }
figure.chart .bar { grid-column: 1 / -1; height: 10px; background: var(--ink); opacity: 0.55; }
figure.chart .bar[data-first] { opacity: 1; }
figure.chart .unit { display: block; margin-top: 8px; font: 700 9px var(--sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
figcaption { font: 11px/1.35 var(--sans); color: var(--ink); margin-top: 4px; }
figcaption .credit, figcaption .credit a { color: var(--muted); text-decoration: none; }
.lead-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.lead-pair .first { columns: auto; }
.lead-pair figure { margin: 4px 0 0; padding-left: 20px; border-left: 1px solid var(--hair); }
@media (max-width: 760px) {
  .lead-pair { grid-template-columns: 1fr; }
  .lead-pair figure { order: -1; padding-left: 0; border-left: 0; }
}

/* ---------- Wide screens: the iPad's front page and two-pane article ---------- */
/* The lead with its photo down the right, at the photo's own shape; text and headline beside it. */
.lead .lead-words { min-width: 0; }
@media (min-width: 1100px) {
  .page { max-width: 1480px; padding-left: 28px; padding-right: 28px; }
  /* Headline and summary across the width; the text and the photo side by side under them. */
  .lead.has-image { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: 24px; align-items: start; }
  .lead.has-image .lead-words { display: contents; }
  .lead.has-image .lead-words > * { grid-column: 1 / -1; }
  .lead.has-image .lead-words > .first, .lead.has-image .lead-words > .more, .lead.has-image .lead-words > .sides { grid-column: 1; }
  .lead.has-image .first { columns: auto; margin-top: 10px; }
  .lead.has-image .badge { justify-self: start; }
  .lead.has-image > figure { grid-column: 2; grid-row: 5 / span 3; margin: 10px 0 0; padding-left: 24px; border-left: 1px solid var(--hair); }
  .lead.has-image > figure img, .lead.has-image > figure svg { max-height: min(56vh, 520px); }
  .others { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .others .teaser.featured { grid-column: span 2; }

  /* The article: the text at a comfortable measure, a margin beside it. */
  .story-panes { display: grid; grid-template-columns: minmax(0, 720px) 340px; gap: 0 28px; justify-content: center; }
  .story-panes .story { margin: 0; max-width: none; }
  .story-panes .in-text-figure { display: none; }
  .margin { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow: auto; padding-left: 28px; border-left: 1px solid var(--hair); }
  .margin-note { min-height: 64px; margin-bottom: 16px; }
  .margin-note.open { background: var(--note); padding: 14px 16px; }
  .margin-note h3 { margin: 0; font: 600 22px var(--serif); display: flex; justify-content: space-between; }
  .margin-note h3 button { background: none; border: 0; font: 18px var(--sans); cursor: pointer; }
  .margin-note .tr { color: var(--accent); font-style: italic; font-size: 18px; margin: 4px 0; }
  .margin-note .ex, .margin-note .lemma { color: var(--muted); font-size: 14px; margin: 0; }
  .margin-note .note-grammar { border-top: 1px solid rgba(0,0,0,0.15); margin-top: 6px; padding-top: 4px; font-size: 14px; }
  .margin figure { margin: 0 0 18px; }
  .margin-words ul { list-style: none; padding: 0; margin: 8px 0 18px; border-top: 1px solid var(--ink); }
  .margin-words button { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--hair); padding: 7px 0; font: 15px var(--serif); color: var(--ink); cursor: pointer; }
  .margin-words em { color: var(--muted); font-size: 14px; text-align: right; }
  .margin-words button:hover strong { color: var(--accent); }
  .margin-sides { border-top: 1px solid var(--ink); padding-top: 8px; }
  .margin-sides p { font: italic 15px/1.4 var(--serif); margin: 2px 0 10px; }
}
/* Narrower screens: one column, the margin's extras hidden (the note floats as before). */
@media (max-width: 1099px) {
  .margin { display: none; }
}
.progress-box .week { font: 13px/1.4 var(--serif); margin: 6px 0; }
.w.new { background: var(--sidebar); border-radius: 2px; box-shadow: 0 0 0 1px var(--sidebar); }
