*{margin:0;padding:0;box-sizing:border-box}
body{font-family:Georgia,'Times New Roman',serif;line-height:1.8;color:#222;background:#f4f1eb}
.astro-LIucu7c5{max-width:1100px;margin:0 auto;padding:0 24px}
.astro-kF4Q4mY9{background:linear-gradient(135deg,#2c3e50,#34495e);color:#fff;padding:48px 0;text-align:center;margin-bottom:48px}
.astro-kF4Q4mY9 h1{font-size:36px;letter-spacing:2px;text-transform:uppercase;margin-bottom:6px}
.astro-kF4Q4mY9 p{font-size:16px;opacity:.8;font-style:italic}
.astro-kF4Q4mY9 .astro-SClcSRHM{color:#fff;text-decoration:none;font-size:20px;letter-spacing:1px;text-transform:uppercase}
.astro-gJQgEHyJ{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:28px}
.astro-EExcIK2G{background:#fff;border-radius:4px;box-shadow:0 2px 12px rgba(0,0,0,.08);padding:28px;transition:box-shadow .2s}
.astro-EExcIK2G:hover{box-shadow:0 4px 20px rgba(0,0,0,.14)}
.astro-EExcIK2G h2{font-size:22px;margin-bottom:10px;line-height:1.3}
.astro-EExcIK2G h2 a{color:#2c3e50;text-decoration:none}
.astro-EExcIK2G .astro-Kk4KAem3{font-size:12px;color:#888;margin-bottom:10px;text-transform:uppercase;letter-spacing:1px}
.astro-EExcIK2G p{font-size:15px;color:#555;margin-bottom:14px}
.astro-hdfZFGRX{color:#e74c3c;text-decoration:none;font-weight:700;font-size:13px;text-transform:uppercase;letter-spacing:.5px}
.astro-GIQACn8n{max-width:780px;margin:0 auto;padding:0 24px 60px}
.astro-GIQACn8n h1{font-size:36px;margin-bottom:10px;line-height:1.2}
.astro-GIQACn8n .astro-Kk4KAem3{font-size:13px;color:#888;display:block;margin-bottom:28px;text-transform:uppercase;letter-spacing:1px}
.astro-GIQACn8n h2{font-size:24px;margin:36px 0 14px}
.astro-GIQACn8n h3{font-size:19px;margin:28px 0 10px}
.astro-GIQACn8n p{margin-bottom:18px;font-size:17px}
.astro-GIQACn8n ul,.astro-GIQACn8n ol{margin:0 0 18px 28px}
.astro-GIQACn8n a{color:#e74c3c}
.astro-GIQACn8n img{max-width:100%;height:auto;border-radius:4px;margin:20px 0}
.astro-GCUyBUEp{border-top:2px solid #ddd;padding:28px 0;margin-top:48px;text-align:center;font-size:13px;color:#888}
.astro-GCUyBUEp a{color:#888}
.astro-4zOaPvGC{border-top:1px solid #ccc;border-bottom:1px solid #ccc;padding:14px 0;margin-bottom:28px;font-size:14px;color:#888;font-style:italic;text-align:center}
.astro-tzKYL4b4{background:#f9f3e3;padding:16px 20px;margin-top:28px;font-size:13px;color:#7a6230;border-radius:4px}
.astro-PTerSBdj{font-size:11px;color:#888;margin:-22px 0 28px;text-transform:uppercase;letter-spacing:1.5px}
.astro-lepxdbBE{margin:0 0 28px}
.astro-N3FpUanJ{width:100%;height:auto;border-radius:4px}
.astro-sX1Pnmci{border-top:2px solid #ddd;margin-top:40px;padding-top:24px}
.astro-sX1Pnmci h4{font-size:16px;text-transform:uppercase;letter-spacing:1px;margin-bottom:16px;color:#888}
.mag-related-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mag-related-item a{color:#2c3e50;text-decoration:none;font-size:15px}
.mag-related-item a:hover{color:#e74c3c}
.astro-ojFQB2Ur{background:#fff;border-radius:4px;box-shadow:0 2px 12px rgba(0,0,0,.08);padding:22px 28px;margin-top:28px}
.astro-ojFQB2Ur p{font-size:15px;padding:4px 0;margin:0}
.astro-ojFQB2Ur .astro-Kk4KAem3{margin:0 8px 0 0;display:inline}
.astro-ojFQB2Ur a{color:#2c3e50;text-decoration:none}
.astro-ojFQB2Ur a:hover{color:#e74c3c}
/* === Theme === */
:root{--primary:#1E3052;--accent:#C87D16;--bg:#ECEAE5;--fg:#1E3052;--border:#BEB9AE;--r:9px;--fb:'IBM Plex Sans';--fh:'Barlow Condensed'}
/* === Custom === */
/* === QA round-1 fixes (2026-07-23T06:22:14+0800) === */
/*
 * Site: cd-cad-es — Plano Experto
 * Design: "Bloque de Rótulo" — architectural title-block editorial.
 * Blueprint navy + copper + linen. Condensed-sans display (drawing-sheet
 * titles), IBM Plex Sans text, IBM Plex Mono for technical meta / sheet
 * numbers. One loud featured "lámina", a 3-up "Selección del editor" band,
 * then a quiet chronological archive. Persona: freelance CAD drafter, TJ.
 *
 * @font-face declared inline (the top-of-file @import is dropped by the
 * concat pipeline, so fonts must be position-independent here).
 */

@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/barlowcondensed/v13/HTxwL3I-JCGChYJ8VI-L6OO_au7B4-Lwz3bWuYMBYro.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;}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/barlowcondensed/v13/HTxwL3I-JCGChYJ8VI-L6OO_au7B4873z3bWuYMBYro.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;}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/barlowcondensed/v13/HTxwL3I-JCGChYJ8VI-L6OO_au7B46r2z3bWuYMBYro.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;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxeKYbSB4Zh.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+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexmono/v20/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o.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+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexmono/v20/-F6qfjptAgt5VM-kVkqdyU8n3twJwlBFgsAXHNk.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+2212,U+2215,U+FEFF,U+FFFD;}

:root{ --fm: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace; --rust: #B34F2A; }

/* ─── Global Base ─────────────────────────────────────────────────────────── */

:root body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--fb);
  font-size: 1rem;
  line-height: 1.72;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fh);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.18;
  text-transform: uppercase;
  color: var(--fg);
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

p { margin: 0 0 1.1em 0; }

a, a:visited {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover { color: var(--accent); text-decoration-color: var(--accent); }

ul, ol { padding-left: 1.5em; margin: 0 0 1.1em 0; }
li { margin-bottom: 0.3em; }

blockquote {
  border-left: 4px solid var(--accent);
  margin: 1.6em 0;
  padding: 0.6em 1.2em;
  font-style: italic;
  color: var(--fg);
  background: transparent;
}

hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }
::selection { background: var(--accent); color: #fff; }
strong, b { font-weight: 600; }

/* ─── Masthead (nav) — blueprint title-block ──────────────────────────────── */

:root > body > nav {
  position: relative;
  background-color: var(--primary);
  background-image:
    linear-gradient(135deg, rgba(30,48,82,0.92), rgba(23,38,66,0.97)),
    repeating-linear-gradient(0deg, rgba(200,214,232,0.07) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(200,214,232,0.07) 0 1px, transparent 1px 32px);
  border-bottom: 3px solid var(--accent);
  overflow: hidden;
}

:root > body > nav > div {
  position: relative;
  padding-top: 2.6rem;
  padding-bottom: 2.9rem;
}

/* corner sheet-number tag, top-right, mono — the title-block signature */
:root > body > nav > div::before {
  content: "N.º PE-18 · ESC 1:50";
  position: absolute;
  top: 1.1rem;
  right: 0;
  font-family: var(--fm);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
  opacity: 0.85;
}

:root > body > nav h1 {
  font-family: var(--fh);
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0 0 0.15rem 0;
  line-height: 1.02;
}

:root > body > nav h1 a { color: inherit; text-decoration: none; }
:root > body > nav h1 a:hover { color: var(--accent); }

:root > body > nav p {
  font-family: var(--fb);
  font-size: 0.95rem;
  color: #b9c6d8;
  margin: 0;
  max-width: 46ch;
  font-style: normal;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
}

/* manifesto line — persona voice, mono italic, copper hairline above */
:root > body > nav > div::after {
  content: "Planos que se dibujan para cobrar — no para aprobar un curso.";
  display: block;
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(200,125,22,0.4);
  max-width: 52ch;
  font-family: var(--fm);
  font-style: italic;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: #d8b98a;
}

/* ─── Main Content Area ───────────────────────────────────────────────────── */

:root main { max-width: 1080px; margin: 0 auto; padding: 2.6rem 1.5rem 3.5rem; }

:root main:has(> article) { max-width: 820px; }

:root main > h1 {
  font-family: var(--fh);
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.4em;
  margin-bottom: 0.4em;
}

:root main > time,
:root main > article + * time,
:root main > .astro-Kk4KAem3,
:root main > time.astro-Kk4KAem3 {
  display: block;
  font-family: var(--fm);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a8898;
  margin-bottom: 1.8em;
}

/* ─── Article Body ────────────────────────────────────────────────────────── */

:root main > article > p { font-size: 1.02rem; line-height: 1.85; }

/* editorial drop cap on the opening paragraph */
:root main:has(> article) > article > p:first-of-type::first-letter {
  float: left;
  font-family: var(--fh);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 0.78;
  padding: 0.06em 0.14em 0 0;
  margin: 0.04em 0.06em 0 0;
  color: var(--accent);
}

:root main > article > h2 {
  position: relative;
  font-size: 1.5rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.65em;
  margin-top: 2.9em;
  margin-bottom: 0.5em;
}

/* setting-out-point dinkus between sections (a CAD grid-cross motif) */
:root main > article > h2:not(:first-of-type)::before {
  content: "✕   ✕   ✕";
  position: absolute;
  left: 0;
  right: 0;
  top: -1.65em;
  text-align: center;
  font-family: var(--fm);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  opacity: 0.65;
}

:root main > article > h3 { font-size: 1.2rem; color: var(--primary); }
:root main > article > h4 { font-size: 1.05rem; }
:root main > article > h5 { font-size: 0.95rem; }
:root main > article > h6 { font-size: 0.88rem; color: #5a6a7a; }

:root main > article ul, :root main > article ol { font-size: 1rem; }
:root main > article li { margin-bottom: 0.35em; }

:root main > article blockquote {
  position: relative;
  border-left: 4px solid var(--accent);
  padding: 0.7em 1.3em 0.7em 2.4em;
  margin: 1.8em 0;
  background-color: rgba(190, 185, 174, 0.18);
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic;
}

/* hanging Spanish quotation mark */
:root main > article > blockquote::before {
  content: "«";
  position: absolute;
  left: 0.5rem;
  top: 0.1em;
  font-family: var(--fh);
  font-style: normal;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.5;
}

:root main > article > p strong { font-weight: 600; color: var(--primary); }

:root main > article > p a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  font-weight: 500;
}
:root main > article > p a:hover { color: var(--accent); text-decoration-color: var(--accent); }

:root main > article figure > img {
  max-width: 100%;
  border-radius: var(--r);
  border: 1px solid var(--border);
  display: block;
}

:root main > article figure > figcaption {
  font-family: var(--fm);
  font-size: 0.74rem;
  color: #7a8898;
  margin-top: 0.5em;
  letter-spacing: 0.03em;
  font-style: normal;
}

:root main > article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border-radius: var(--r);
  overflow: hidden;
  margin: 1.6em 0;
  border: 1px solid var(--border);
}

:root main > article table th {
  background-color: var(--primary);
  color: #fff;
  font-family: var(--fh);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.55em 0.85em;
  text-align: left;
  font-size: 0.82rem;
}

:root main > article table td {
  padding: 0.5em 0.85em;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

:root main > article table tr:nth-child(even) { background-color: rgba(190, 185, 174, 0.22); }

/* ─── Home Page — editorial grid (hero → picks band → archive) ────────────── */

:root main > div:has(> div > h2) {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.9rem 1.75rem;
  align-items: start;
}

/* shared quiet card treatment */
:root main > div > div:has(> h2) {
  position: relative;
  background-color: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 1.3rem 1.4rem 1.5rem;
  margin: 0;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

:root main > div > div:has(> h2):hover {
  box-shadow: 0 6px 22px rgba(30, 48, 82, 0.12);
  border-top-color: var(--primary);
  transform: translateY(-2px);
}

:root main > div > div:has(> h2) > p:first-child {
  font-family: var(--fm);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.45em;
}

:root main > div > div:has(> h2) > h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5em 0;
  border: none;
  padding: 0;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

:root main > div > div:has(> h2) > h2 a { color: var(--primary); text-decoration: none; font-weight: 700; }
:root main > div > div:has(> h2) > h2 a:hover { color: var(--accent); }

:root main > div > div:has(> h2) > p:not(:first-child) {
  font-size: 0.92rem;
  color: #4a5a6a;
  margin-bottom: 0.9em;
  line-height: 1.6;
}

:root main > div > div:has(> h2) > a:last-child {
  display: inline-block;
  font-family: var(--fh);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
  transition: color 0.15s ease;
}
:root main > div > div:has(> h2) > a:last-child:hover { color: var(--accent); }

/* ---- HERO: card 1 spans full width, the loud voice ---- */
:root main > div > div:nth-of-type(1):has(> h2) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1.5rem 2.4rem;
  padding: 2rem 2.2rem 2.1rem;
  border-top-width: 5px;
  background-color: #fbfaf7;
  background-image:
    repeating-linear-gradient(0deg, rgba(30,48,82,0.035) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, rgba(30,48,82,0.035) 0 1px, transparent 1px 30px);
}

/* "LÁMINA DESTACADA" badge + sheet number in the right column */
:root main > div > div:nth-of-type(1):has(> h2)::before {
  content: "Lámina destacada · N.º 01";
  grid-column: 1 / -1;
  font-family: var(--fm);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--rust);
}

:root main > div > div:nth-of-type(1):has(> h2) > p:first-child {
  grid-column: 1;
  font-size: 0.72rem;
  margin-bottom: 0;
  align-self: start;
}

:root main > div > div:nth-of-type(1):has(> h2) > h2 {
  grid-column: 1;
  grid-row: 3;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 0.98;
  margin: 0;
  letter-spacing: 0.005em;
}

:root main > div > div:nth-of-type(1):has(> h2) > p:not(:first-child) {
  grid-column: 2;
  grid-row: 2 / 5;
  align-self: stretch;
  font-size: 1rem;
  line-height: 1.62;
  color: #3a4a5a;
  padding-left: 1.6rem;
  border-left: 1px solid var(--border);
  margin: 0;
}

/* drop cap on the hero excerpt */
:root main > div > div:nth-of-type(1):has(> h2) > p:not(:first-child)::first-letter {
  float: left;
  font-family: var(--fh);
  font-weight: 700;
  font-size: 3rem;
  line-height: 0.72;
  padding: 0.05em 0.12em 0 0;
  color: var(--rust);
}

:root main > div > div:nth-of-type(1):has(> h2) > a:last-child {
  grid-column: 1;
  grid-row: 4;
  justify-self: start;
  align-self: end;
  font-size: 0.88rem;
  border: 2px solid var(--primary);
  border-radius: 2px;
  padding: 0.5rem 1.2rem;
}
:root main > div > div:nth-of-type(1):has(> h2) > a:last-child:hover {
  color: #fff;
  background-color: var(--primary);
}

/* ---- EDITOR'S PICKS band: cards 2–4, three across, labelled ---- */
:root main > div > div:nth-of-type(n+2):nth-of-type(-n+4):has(> h2) {
  grid-column: span 2;
  margin-top: 3.4rem;
  background-color: #fdfcfa;
}

/* band label anchored above card 2, growing upward if it wraps */
:root main > div > div:nth-of-type(2):has(> h2)::before {
  content: "Selección del editor — empieza por aquí";
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.85rem);
  white-space: nowrap;
  font-family: var(--fm);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
}
:root main > div > div:nth-of-type(2):has(> h2)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.55rem);
  width: 2.2rem;
  height: 3px;
  background-color: var(--accent);
}

/* ---- ARCHIVE: cards 5+, two across, hairline label above the first row ---- */
:root main > div > div:nth-of-type(n+5):has(> h2) { grid-column: span 3; }

:root main > div > div:nth-of-type(5):has(> h2),
:root main > div > div:nth-of-type(6):has(> h2) { margin-top: 3.4rem; }

:root main > div > div:nth-of-type(5):has(> h2)::before {
  content: "Archivo — todos los análisis";
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.9rem);
  white-space: nowrap;
  font-family: var(--fm);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #7a8898;
}
:root main > div > div:nth-of-type(5):has(> h2)::after {
  content: "";
  position: absolute;
  left: 0;
  right: calc(-100% - 1.75rem);
  bottom: calc(100% + 1.7rem);
  border-top: 1px solid var(--border);
}

/* ─── Related Articles Widget ─────────────────────────────────────────────── */

.mag-related-grid .mag-related-item {
  background-color: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--r);
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  transition: border-top-color 0.15s ease;
}
.mag-related-grid .mag-related-item:hover { border-top-color: var(--accent); }

/* ─── Footer ──────────────────────────────────────────────────────────────── */

:root footer {
  background-color: var(--primary);
  color: #a8b4c4;
  font-family: var(--fm);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  padding: 1.6rem 2rem;
  text-align: center;
  border-top: 2px solid var(--accent);
}
:root footer a { color: #c8d4e0; text-decoration: none; }
:root footer a:hover { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent); }

/* ─── Course / affiliate links (external in this build; kept for safety) ──── */
a[href^="/to/"], a[href^="/deal/"], a[href^="/link/"] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  color: var(--primary);
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  :root main > div > div:nth-of-type(n+5):has(> h2) { grid-column: span 3; }
  :root main > div > div:nth-of-type(1):has(> h2) {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  :root main > div > div:nth-of-type(1):has(> h2) > h2,
  :root main > div > div:nth-of-type(1):has(> h2) > p:first-child,
  :root main > div > div:nth-of-type(1):has(> h2) > p:not(:first-child),
  :root main > div > div:nth-of-type(1):has(> h2) > a:last-child {
    grid-column: 1;
    grid-row: auto;
  }
  :root main > div > div:nth-of-type(1):has(> h2) > p:not(:first-child) {
    padding-left: 0;
    border-left: none;
  }
}

@media (max-width: 640px) {
  :root > body > nav > div { padding-top: 2.1rem; padding-bottom: 2.3rem; }
  :root > body > nav h1 { font-size: 2.1rem; }
  :root > body > nav > div::before { position: static; display: block; margin-bottom: 0.9rem; }

  :root main { padding: 1.4rem 1.1rem 2rem; }
  :root main > h1 { font-size: 1.65rem; }
  :root main > article > h2 { font-size: 1.25rem; }

  /* collapse the editorial grid to a single column, reset every span */
  :root main > div:has(> div > h2) { grid-template-columns: 1fr; gap: 1.1rem; }
  :root main > div > div:nth-of-type(1):has(> h2),
  :root main > div > div:nth-of-type(n+2):nth-of-type(-n+4):has(> h2),
  :root main > div > div:nth-of-type(n+5):has(> h2) {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
  :root main > div > div:nth-of-type(1):has(> h2) { padding: 1.4rem 1.3rem; }
  :root main > div > div:nth-of-type(1):has(> h2) > h2 { font-size: 1.7rem; }

  /* keep the two band labels from colliding with cards */
  :root main > div > div:nth-of-type(2):has(> h2) { margin-top: 3rem; }
  :root main > div > div:nth-of-type(5):has(> h2) { margin-top: 3rem; }
  :root main > div > div:nth-of-type(6):has(> h2) { margin-top: 0; }
  :root main > div > div:nth-of-type(2):has(> h2)::before,
  :root main > div > div:nth-of-type(5):has(> h2)::before { white-space: normal; }
  :root main > div > div:nth-of-type(5):has(> h2)::after { right: 0; }

  :root main > article table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  :root footer { padding: 1.1rem; font-size: 0.7rem; }
}


/* === QA tail polish (2026-07-24T15:36:11.033232+00:00) — style Lambda [SB-20] compact tail across templates === */
/* The tail wrapper is always the LAST block child of <main> on the homepage,
   containing title-only rows of older articles. Various templates use different
   inner structures (ul>li / p / direct <a>) — this handles all three. */

:root main > *:last-child:not(:has(h2)):not(:has(h1)):not(:has(article)) {
  grid-column: 1 / -1;
  max-width: min(720px, 92vw);
  margin: 88px auto 0;
  padding: 40px 0 32px;
  border-top: 2px double rgba(0, 0, 0, .16);
  background: transparent;
  box-shadow: none;
}

:root main > *:last-child:not(:has(h2)):not(:has(h1)):not(:has(article))::before {
  content: "\2014  MORE FROM THE ARCHIVE  \2014";
  display: block;
  text-align: center;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .5;
  margin-bottom: 36px;
}

/* Any list / paragraph rows: 2-col on desktop, single on mobile */
:root main > *:last-child ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 48px;
}
@media (max-width: 899px) {
  :root main > *:last-child ul { columns: 1; }
}

:root main > *:last-child li,
:root main > *:last-child > p,
:root main > *:last-child > a {
  padding: 10px 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  line-height: 1.4;
  border-bottom: 1px dotted rgba(0, 0, 0, .12);
  break-inside: avoid;
  display: block;
}

:root main > *:last-child li a,
:root main > *:last-child p a,
:root main > *:last-child > a {
  text-decoration: none;
  font-weight: 600;
}

:root main > *:last-child li a:hover,
:root main > *:last-child p a:hover,
:root main > *:last-child > a:hover {
  text-decoration: underline;
}

/* dates (first inline child of li/p) — subtle mono */
:root main > *:last-child p > :first-child,
:root main > *:last-child li > :first-child:not(a) {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  letter-spacing: .1em;
  opacity: .5;
  margin-right: 10px;
}
