/* FixTheRobot Robotics Digest: one stylesheet for the responsive web edition and the multi-page PDF (A4). Self-contained: it does not depend on site.css tokens,
   so the PDF (printed from a local file) looks identical. Navy + orange on warm paper; strong editorial type; restrained rules. */
.issue {
  --navy: #13203a; --navy-2: #2b3a56; --muted: #5d6b84; --rule: #d8dee8; --paper: #fffdf9; --soft: #f3f1ec; --orange: #d94f1a; --blue: #2451b7; --green: #1f7a4a; --amber: #8a5a00; --red: #b3261e;
  color-scheme: light; color: var(--navy); background: var(--paper);
  font: 400 16px/1.6 'Archivo', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact;
  max-width: 50rem; margin: 0 auto; overflow-wrap: anywhere;
}
.issue *, .issue *::before, .issue *::after { box-sizing: border-box; }
.issue a { color: var(--blue); text-underline-offset: 2px; } .issue a:hover { color: var(--orange); }
.issue a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 2px; }
.issue p { margin: 0 0 .75em; } .issue ul, .issue ol { margin: 0; padding-left: 1.2em; } .issue li { margin: 0 0 .35em; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* masthead */
.mast { background: var(--navy); color: #fff; padding: 28px clamp(18px, 5vw, 40px) 22px; border-bottom: 6px solid var(--orange); }
.mast .dg-brand { margin: 0; font: 800 14px/1 'Archivo', sans-serif; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.mast h1 { margin: 14px 0 4px; font: 800 clamp(30px, 6vw, 46px)/1.04 'Archivo', sans-serif; font-stretch: 90%; letter-spacing: -.01em; }
.mast .when { margin: 0; font-size: 18px; opacity: .92; }
.mast .tag-line { margin: 12px 0 0; max-width: 40em; font-size: 14px; opacity: .78; }

/* at a glance */
.glance, .synth, .issue > section, .method { padding: 0 clamp(18px, 5vw, 40px); }
.glance { margin: 24px 0 8px; } .glance h2, .synth h2, .sec, .method h2 { font: 800 clamp(20px, 3.4vw, 26px)/1.15 'Archivo', sans-serif; font-stretch: 92%; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--navy); }
.glance ol { list-style: none; padding: 0; counter-reset: g; } .glance li { counter-increment: g; display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.glance li::before { content: counter(g); grid-row: 1 / span 2; font: 800 20px/1.2 'Archivo', sans-serif; color: var(--orange); }
.glance li a { font-weight: 700; color: var(--navy); text-decoration: none; } .glance li a:hover { text-decoration: underline; }
.glance .one { grid-column: 2 / span 2; color: var(--navy-2); font-size: 14.5px; }
.tier { font: 700 11px/1.6 ui-monospace, 'JetBrains Mono', Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; padding: 0 8px; border-radius: 999px; border: 1px solid var(--rule); color: var(--muted); align-self: start; }
.tier-1 { background: var(--navy); border-color: var(--navy); color: #fff; } .tier-2 { border-color: var(--navy-2); color: var(--navy-2); }

/* synthesis */
.synth { margin: 24px 0; padding-top: 18px; padding-bottom: 6px; background: var(--soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.synth .dg-ed { color: var(--muted); font-size: 13.5px; margin-bottom: 10px; font-style: italic; }
.syn-lead { font: 700 clamp(18px, 3vw, 21px)/1.35 'Archivo', sans-serif; margin-bottom: 14px; }
.refs { color: var(--muted); font-size: 13px; } .refs a { color: var(--muted); }

/* stories */
.sec { margin-top: 30px; }
.dg-story { padding: 20px clamp(18px, 5vw, 40px) 8px; border-top: 1px solid var(--rule); margin: 0 clamp(-40px, -5vw, -18px); }
.dg-story.t1 { background: #fff; }
.kick { margin: 0 0 4px; font: 700 11.5px/1.5 ui-monospace, 'JetBrains Mono', Menlo, monospace; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.dg-story h3 { margin: 0 0 10px; font: 800 clamp(22px, 4vw, 30px)/1.15 'Archivo', sans-serif; font-stretch: 92%; letter-spacing: -.005em; text-wrap: balance; }
.dg-story.t2 h3 { font-size: clamp(19px, 3.2vw, 23px); }
.pic { margin: 0 0 14px; } .pic img { display: block; width: 100%; aspect-ratio: 16 / 8; max-height: 320px; object-fit: cover; border-radius: 8px; background: var(--soft); } .pic figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.lead { font-size: 17px; line-height: 1.55; color: var(--navy); }
.dg-story.t2 .lead { font-size: 16px; }
.note { padding: 9px 12px; border-left: 4px solid var(--amber); background: #fbf3e2; font-size: 14.5px; border-radius: 0 6px 6px 0; }
.note.info { border-left-color: var(--blue); background: #eef2fb; }
.blk { margin: 0 0 14px; } .blk h4 { margin: 0 0 4px; font: 800 12px/1.3 'Archivo', sans-serif; letter-spacing: .09em; text-transform: uppercase; color: var(--orange); }
.blk p:last-child { margin-bottom: 0; }
.issue .flow { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 4px; padding: 0; margin: 0 0 14px; counter-reset: f; }
.flow li { counter-increment: f; margin: 0; padding: 5px 12px 5px 10px; background: var(--soft); border: 1px solid var(--rule); border-radius: 6px; font-size: 13.5px; font-weight: 600; }
.flow li + li::before { content: '→'; color: var(--orange); margin-right: 8px; font-weight: 800; }
.dg-metrics table { width: 100%; border-collapse: collapse; font-size: 14px; } .dg-metrics th, .dg-metrics td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.dg-metrics thead th { font: 700 11px/1.4 ui-monospace, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--navy); } .dg-metrics tbody th { font-weight: 700; } .dg-metrics td:nth-child(2) { font-weight: 800; white-space: nowrap; }
.evidence li { list-style: none; margin-left: -1.2em; padding-left: 0; } .evidence q { display: block; margin: 3px 0 0 0; padding-left: 10px; border-left: 3px solid var(--rule); color: var(--navy-2); font-style: italic; font-size: 14.5px; quotes: '“' '”'; }
.tag { display: inline-block; font: 700 10.5px/1.7 ui-monospace, Menlo, monospace; letter-spacing: .05em; text-transform: uppercase; padding: 0 7px; border-radius: 4px; border: 1px solid; margin-right: 4px; }
.tag-paper { color: var(--green); background: #e8f4ed; border-color: #b9dcc7; } .tag-company { color: var(--amber); background: #fbf3e2; border-color: #ecd9a8; } .tag-reported { color: var(--blue); background: #e9eefb; border-color: #c3d0f1; } .tag-quote { color: #6b3fa0; background: #f1eafa; border-color: #d6c4ee; }
.cite { font-size: 11px; margin-left: 2px; } .cite a { color: var(--muted); text-decoration: none; padding: 0 1px; } .cite a:hover { color: var(--orange); }
.srcs { padding-left: 1.4em; margin: 0 0 6px; } .srcs li { margin: 0 0 3px; }
.levels .lv { display: grid; gap: 10px; } .levels .lv > div { padding: 10px 12px; background: var(--soft); border-radius: 6px; border-left: 4px solid var(--navy); } .levels .lv > div:nth-child(2) { border-left-color: var(--blue); } .levels .lv > div:nth-child(3) { border-left-color: var(--orange); }
.levels b { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; } .levels p { margin: 0; font-size: 15px; }
.terms dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; font-size: 14px; } .terms dt { font-weight: 700; } .terms dd { margin: 0; }
.sources { padding: 10px 12px; background: var(--soft); border-radius: 6px; font-size: 14px; } .sources ul { list-style: none; padding: 0; } .sources li { margin: 0 0 3px; }
.conf { padding-left: 8px; border-left: 4px solid var(--muted); } .conf-high { border-color: var(--green); } .conf-medium { border-color: var(--amber); } .conf-low { border-color: var(--red); }
.d { color: var(--muted); font-size: 12.5px; }
.briefs { list-style: none; padding: 0; } .brief { padding: 12px 0; border-bottom: 1px solid var(--rule); } .brief h3 { font-size: 17px; margin: 0 0 4px; font-stretch: 100%; } .brief p { margin: 0 0 4px; font-size: 15px; } .brief .src { font-size: 13.5px; }
.intro { margin: 18px 0 6px; } .intro p:last-child { font: 600 clamp(16px, 2.4vw, 18px)/1.5 'Archivo', sans-serif; margin: 0; } .intro .dg-ed { color: var(--muted); font-size: 12.5px; font-style: italic; margin: 0 0 4px; }
.watch { margin: 26px 0 0; } .watch .dg-ed { color: var(--muted); font-size: 13px; font-style: italic; } .watch ul { padding-left: 1.2em; } .watch li { margin: 0 0 8px; } .watch q { quotes: '“' '”'; color: var(--navy-2); }
.srcs .u { display: block; color: var(--muted); font: 12.5px/1.3 ui-monospace, 'JetBrains Mono', Menlo, monospace; word-break: break-all; }
.method { margin: 30px 0 0; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--navy-2); } .method h2 { font-size: 16px; }

/* web edition extras */
.digest-main { padding: 18px 16px 48px; } .digest-main .dl { max-width: 50rem; margin: 0 auto 12px; } .issue { box-shadow: 0 1px 0 var(--rule), 0 20px 50px -30px rgba(19, 32, 58, .45); border-radius: 10px; overflow: hidden; }
@media (max-width: 560px) {
  .glance li { grid-template-columns: 1.6em minmax(0, 1fr); } .glance li .tier { grid-column: 2; justify-self: start; } .glance .one { grid-column: 2; }
  .dg-metrics table, .dg-metrics thead, .dg-metrics tbody, .dg-metrics tr, .dg-metrics th, .dg-metrics td { display: block; } .dg-metrics thead { position: absolute; left: -9999px; }
  .dg-metrics tr { padding: 6px 0; border-bottom: 1px solid var(--rule); } .dg-metrics td, .dg-metrics th { border: 0; padding: 1px 0; } .dg-metrics td:nth-child(3)::before { content: 'Context: '; color: var(--muted); } .dg-metrics td:nth-child(4)::before { content: 'Type: '; color: var(--muted); }
  .terms dl { grid-template-columns: 1fr; } .terms dd { margin-bottom: 6px; }
}
@media (min-width: 900px) { .levels .lv { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* the PDF: A4, sensible breaks, no clipping */
@page { size: A4; margin: 14mm 14mm 16mm; @bottom-right { content: counter(page) ' / ' counter(pages); font: 8pt 'Archivo', sans-serif; color: #6b7a95; } @bottom-left { content: 'FixTheRobot · Weekly Robotics Digest'; font: 8pt 'Archivo', sans-serif; color: #6b7a95; } }
body.pdf { margin: 0; background: #fffdf9; } html:has(> body.pdf) { background: #fffdf9; }
@media print {
  .issue { box-shadow: none; border-radius: 0; max-width: none; font-size: 10.5pt; line-height: 1.5; overflow: visible; }
  .mast { margin: 0 0 6mm; padding: 9mm 10mm 7mm; border-radius: 2.5mm; } .glance, .synth, .issue > section, .method { padding-left: 0; padding-right: 0; } .dg-story { margin: 0; padding: 16px 0 4px; } .dg-story.t1 { background: none; }
  .mast h1 { font-size: 27pt; } .dg-story h3 { font-size: 17pt; } .dg-story.t2 h3 { font-size: 13.5pt; } .lead { font-size: 11pt; } .pic img { max-height: 62mm; }
  .method { margin: 12px 0 0; padding: 10px 0 0; font-size: 9pt; line-height: 1.45; } .method h2 { font-size: 12pt; margin-bottom: 6px; } .dg-story { orphans: 3; widows: 3; } .dg-story .kick + h3 + .lead, .dg-story h3 + .lead { break-inside: avoid; } .watch li, .intro p { break-inside: avoid; } .method { break-inside: avoid; }
  .dg-story h3, .kick, .blk h4, .sec, h2 { break-after: avoid; } .dg-story .lead { break-before: avoid; } .blk, .dg-metrics tr, .flow, .evidence li, .brief, .levels .lv > div, .sources, .note, .pic, .glance li { break-inside: avoid; }
  .levels .lv { grid-template-columns: 1fr; } .digest-main { padding: 0; } .topbar, .footer, .digest-main .dl { display: none !important; }
  .issue a { color: var(--blue); text-decoration: none; }
}
/* a tighter print, used only when it saves a page: body text stays at 10 pt */
@media print {
  body.pdf.compact .issue { font-size: 10pt; line-height: 1.42; } body.pdf.compact .lead { font-size: 10.5pt; } body.pdf.compact .mast { padding: 6mm 9mm 5mm; margin-bottom: 4mm; } body.pdf.compact .mast h1 { font-size: 24pt; }
  body.pdf.compact .dg-story { padding: 10px 0 2px; } body.pdf.compact .dg-story h3 { font-size: 15.5pt; } body.pdf.compact .dg-story.t2 h3 { font-size: 12.5pt; } body.pdf.compact .blk { margin-top: 6px; } body.pdf.compact .pic img { max-height: 48mm; }
}
.status { margin: 4px 0 8px; font-size: 12.5px; color: var(--muted); padding-left: 8px; border-left: 4px solid var(--muted); } .status b { color: inherit; }
.status-verified { border-color: var(--green); } .status-paper { border-color: var(--blue); } .status-company { border-color: var(--amber); } .status-press, .status-none { border-color: var(--red); }
@media print {
  .status { font-size: 9pt; break-after: avoid; }
  /* long blocks may continue on the next page (their items stay whole); only short ones are kept together. A page is no longer left with a gap because a whole block did not fit */
  .evidence, .limits, .levels, .try, .terms { break-inside: auto; } .limits li, .try li, .terms dd, .terms dt, .levels .lv > div { break-inside: avoid; }
}
@media print {
  /* a short item may continue on the next page rather than leave a gap: its heading stays with its status line and first paragraph, and each paragraph and the source line stay whole */
  .brief { break-inside: auto; } .brief > p, .brief .src { break-inside: avoid; } .brief h3, .brief .status { break-after: avoid; } .brief .src { break-before: avoid; }
}
