/* guides-v2.css — shared premium design for the 5 new guides (Nov 21, 2026).
   Loaded AFTER article.css, so these rules win. Uses only the site's own
   tokens (--color-accent #FF7A22, --color-text-heading #0F172A,
   --color-text-body #334155, --color-canvas #FCFBF9, --color-surface #fff,
   --color-success #155C30, --color-error #8C1D17).
   No new fonts, no images, no JS libraries. Words/facts unchanged. */

/* --- Hero fixes: kill the dead ::after block, strengthen the glow --- */
.article-hero::after { display: none; }
.article-hero::before {
  background: radial-gradient(ellipse 60% 70% at 10% 60%, rgba(255,122,34,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 90% 20%, rgba(255,122,34,0.10) 0%, transparent 60%);
}
.article-hero__title { max-width: 820px; }

/* Standfirst lead under the hero meta / at the top of the body */
.article-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-text-heading);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* --- Fact strip (hero): 3 glass tiles --- */
.article-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
  max-width: 760px;
}
.article-fact {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}
.article-fact__num {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.article-fact__num em { font-style: normal; color: var(--color-accent); }
.article-fact__label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.65);
}
@media (max-width: 640px) {
  .article-facts { grid-template-columns: 1fr; }
  .article-fact { display: flex; align-items: baseline; gap: 0.75rem; }
  .article-fact__num { font-size: 1.4rem; flex-shrink: 0; }
}

/* --- Short-answer card: green gradient, big verdict --- */
.article-answer {
  background: linear-gradient(135deg, #0f7a44, #12a150);
  border-radius: 20px;
  padding: 1.75rem 1.75rem 1.5rem;
  margin: 2rem 0;
  color: #fff;
  box-shadow: 0 16px 32px -16px rgba(15,122,68,0.55);
}
.article-answer__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.5rem;
}
.article-answer__big {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.article-answer p { color: rgba(255,255,255,0.92); font-size: 1rem; line-height: 1.65; margin-bottom: 0.6rem; }
.article-answer p:last-child { margin-bottom: 0; }
.article-answer__key {
  background: rgba(0,0,0,0.22);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #fff;
}
.article-answer__key strong { color: #fff; }
.article-answer a { color: #fff; text-decoration: underline; }

/* --- Distinct callouts: stop the 11-identical-boxes problem --- */
/* Success/warning callouts get real tint + weight (overrides the 5% wash) */
.article-callout--success { background: #e8f7ee; border-left-width: 4px; }
.article-callout--warning { background: #fff3e0; border-left-width: 4px; }
.article-callout--warning .article-callout__label { color: #7a3c00; }

/* Takeaway: slim strip, deliberately lighter than any card */
.article-takeaway {
  border-left: 4px solid var(--color-accent);
  background: #fff1e6;
  border-radius: 0 12px 12px 0;
  padding: 0.85rem 1.1rem;
  margin: 1.75rem 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--color-text-body);
}
.article-takeaway strong { color: var(--color-text-heading); }
.article-takeaway__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.2rem;
}

/* Kicker: mono uppercase section label (replaces <p><strong> fake headings) */
.article-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin: 2rem 0 0.5rem;
}
.article-kicker + h3, .article-kicker + p { margin-top: 0; }

/* --- Rule cards: 3 parallel rules --- */
.article-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.75rem 0;
}
@media (max-width: 720px) { .article-rule-grid { grid-template-columns: 1fr; } }
.article-rule-card {
  background: var(--color-surface);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 4px 14px -8px rgba(15,23,42,0.18);
}
.article-rule-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
}
.article-rule-card h3 { margin-top: 0; font-size: 1.02rem; }
.article-rule-card p { font-size: 0.95rem; margin-bottom: 0.5rem; }
.article-rule-card p:last-child { margin-bottom: 0; }

/* --- Risk cards: red edge, warning tag --- */
.article-risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.75rem 0;
}
@media (max-width: 720px) { .article-risk-grid { grid-template-columns: 1fr; } }
.article-risk-card {
  background: #fff;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: 14px;
  padding: 1.2rem 1.25rem;
}
.article-risk-card__tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #dc2626;
  display: block;
  margin-bottom: 0.4rem;
}
.article-risk-card h3 { margin-top: 0; font-size: 1.02rem; }
.article-risk-card p { font-size: 0.95rem; margin-bottom: 0; }

/* --- Warning cards (two mistakes): numbered, Mistake -> What happens -> Fix --- */
.article-warn-grid { display: grid; gap: 1rem; margin: 1.75rem 0; }
.article-warn-card {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
}
.article-warn-card h3 { margin-top: 0; }
.article-warn-card p { font-size: 0.95rem; margin-bottom: 0.5rem; }
.article-warn-card p:last-child { margin-bottom: 0; }

/* --- Checklist: the ONE bullet-style element per guide --- */
.article-checklist {
  background: #e8f7ee;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  margin: 1.75rem 0;
  list-style: none;
}
.article-checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.6rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--color-text-body);
}
.article-checklist li:last-child { margin-bottom: 0; }
.article-checklist li::before {
  content: '\2713';
  position: absolute;
  left: 0; top: 0.1rem;
  width: 1.35rem; height: 1.35rem;
  border-radius: 6px;
  background: #0f7a44;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-checklist__title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0f7a44;
  margin-bottom: 0.75rem;
}

/* --- Quote blocks --- */
.article-body blockquote {
  border-left: 4px solid var(--color-accent);
  background: #fff7ed;
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-heading);
}
.article-body blockquote .attr, .article-body blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-style: normal;
}
.article-body blockquote p { margin-bottom: 0.4rem; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body blockquote.article-quote--green {
  border-left-color: #0f7a44;
  background: #f0fdf4;
}

/* --- Styled tables: the ONLY table style on the site --- */
.article-table-wrap { overflow-x: auto; margin: 1.75rem 0; border-radius: 16px; box-shadow: 0 4px 14px -8px rgba(15,23,42,0.18); }
.article-table-wrap table { margin: 0; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.92rem;
  line-height: 1.55;
}
.article-body th {
  background: #0b1226;
  color: #fff;
  text-align: left;
  padding: 0.8rem 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}
.article-body td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
  color: var(--color-text-body);
}
.article-body tbody tr:nth-child(even) td { background: #f8fafc; }
.article-body tbody tr:last-child td { border-bottom: none; }
.article-body td b, .article-body td strong { color: var(--color-text-heading); }
/* Closed column tint: 3rd column of the Guide 4 table */
.article-body table.article-table--tracks td:nth-child(3),
.article-body table.article-table--tracks th:nth-child(3) { background: #fff7ed; }
.article-body table.article-table--tracks th:nth-child(3) { background: #7c2d12; }
.article-pill {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  white-space: nowrap;
}
.article-table-caption {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: -1rem 0 1.75rem;
}

/* --- Track cards (Guide 4 intro) --- */
.article-tracks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.75rem 0;
}
@media (max-width: 720px) { .article-tracks { grid-template-columns: 1fr; } }
.article-track {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 4px 14px -8px rgba(15,23,42,0.18);
}
.article-track--highlight {
  border: 2px solid var(--color-accent);
  box-shadow: 0 10px 24px -12px rgba(255,122,34,0.45);
}
.article-track__tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.4rem;
}
.article-track h3 { margin-top: 0; font-size: 1.05rem; }
.article-track__num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-heading);
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0.5rem;
}
.article-track p { font-size: 0.94rem; margin-bottom: 0.5rem; }
.article-track p:last-child { margin-bottom: 0; }

/* --- Two-panel comparison (Guide 1 big change; Guide 3 controls) --- */
.article-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75rem 0;
}
@media (max-width: 640px) { .article-compare { grid-template-columns: 1fr; } }
.article-compare__panel {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
}
.article-compare__panel h3 { margin-top: 0; font-size: 1.02rem; }
.article-compare__panel p { font-size: 0.95rem; margin-bottom: 0.4rem; }
.article-compare__panel p:last-child { margin-bottom: 0; }

/* --- Do / Don't paired panels (Guide 3) --- */
.article-dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.75rem 0; }
@media (max-width: 640px) { .article-dodont { grid-template-columns: 1fr; } }
.article-dodont__panel { border-radius: 16px; padding: 1.2rem 1.3rem; }
.article-dodont__panel--do { background: #e8f7ee; border: 1px solid #bbf7d0; }
.article-dodont__panel--dont { background: #f1f5f9; border: 1px solid #e2e8f0; }
.article-dodont__panel h3 { margin-top: 0; font-size: 1.02rem; }
.article-dodont__panel ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.article-dodont__panel li { padding-left: 1.6rem; position: relative; margin-bottom: 0.55rem; font-size: 0.95rem; line-height: 1.6; }
.article-dodont__panel li:last-child { margin-bottom: 0; }
.article-dodont__panel--do li::before { content: '\2713'; position: absolute; left: 0; color: #0f7a44; font-weight: 800; }
.article-dodont__panel--dont li::before { content: '\2715'; position: absolute; left: 0; color: #64748b; font-weight: 800; }

/* --- Fact / spec grid (name-value pairs) --- */
.article-fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.75rem 0;
}
@media (max-width: 640px) { .article-fact-grid { grid-template-columns: 1fr; } }
.article-fact-grid__item {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
}
.article-fact-grid__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 0.25rem;
}
.article-fact-grid__val { font-size: 0.98rem; font-weight: 600; color: var(--color-text-heading); line-height: 1.5; }

/* --- Action grid 2x2 (Guide 1 big-change precautions) --- */
.article-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.75rem 0;
}
@media (max-width: 640px) { .article-actions { grid-template-columns: 1fr; } }
.article-actions__tile {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-body);
}
.article-actions__tile strong { color: var(--color-text-heading); }

/* --- Limits panel (grey boundary, Guide 1) --- */
.article-limits {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  margin: 1.75rem 0;
}
.article-limits ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.article-limits li { padding-left: 1.6rem; position: relative; margin-bottom: 0.55rem; font-size: 0.95rem; line-height: 1.6; }
.article-limits li:last-child { margin-bottom: 0; }
.article-limits li::before { content: '\2715'; position: absolute; left: 0; color: #64748b; font-weight: 800; }

/* --- Diagnostic cause cards (Guide 5 why-0) --- */
.article-cause-grid { display: grid; gap: 0.85rem; margin: 1.75rem 0; }
.article-cause-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 1.05rem 1.2rem;
  align-items: start;
}
.article-cause-card__num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,122,34,0.12);
  border: 2px solid rgba(255,122,34,0.35);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.article-cause-card h3 { margin-top: 0.15rem; font-size: 1rem; }
.article-cause-card p { font-size: 0.95rem; margin-bottom: 0.4rem; }
.article-cause-card p:last-child { margin-bottom: 0; }

/* --- Flow diagram (Guide 5 dropout; Guide 4 open order) --- */
.article-flow {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin: 1.75rem 0;
  flex-wrap: wrap;
}
.article-flow__node {
  flex: 1;
  min-width: 140px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-heading);
  line-height: 1.45;
}
.article-flow__node--locked { background: #f1f5f9; color: var(--color-text-muted); }
.article-flow__arrow {
  align-self: center;
  color: var(--color-accent);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* --- Two-check strip (Guide 5 Step 4) --- */
.article-checkstrip { display: grid; gap: 0.6rem; margin: 1.5rem 0; }
.article-checkstrip__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  font-size: 0.94rem;
  line-height: 1.55;
}
@media (max-width: 640px) { .article-checkstrip__row { grid-template-columns: 1fr; gap: 0.25rem; } }
.article-checkstrip__row strong { color: var(--color-text-heading); }

/* --- Definition rows (Guide 4 beta) --- */
.article-defs { display: grid; gap: 0.6rem; margin: 1.75rem 0; }
.article-defs__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
@media (max-width: 640px) { .article-defs__row { grid-template-columns: 1fr; gap: 0.2rem; } }
.article-defs__row dt { font-weight: 700; color: var(--color-text-heading); }
.article-defs__row dd { margin: 0; color: var(--color-text-body); }

/* --- Per-tester clock diagram (Guide 1, pure CSS) --- */
.article-clock { margin: 1.75rem 0; background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; padding: 1.2rem 1.3rem; }
.article-clock__label { font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); margin-bottom: 0.9rem; }
.article-clock__row { display: grid; grid-template-columns: 74px 1fr; gap: 0.75rem; align-items: center; margin-bottom: 0.45rem; font-size: 0.78rem; color: var(--color-text-muted); }
.article-clock__bar { height: 10px; border-radius: 9999px; background: #e2e8f0; position: relative; overflow: visible; }
.article-clock__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 9999px; background: linear-gradient(90deg, #12a150, #0f7a44); display: block; }
.article-clock__bar::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--color-accent); }
.article-clock__note { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 0.75rem; margin-bottom: 0; }
.article-clock__note strong { color: var(--color-accent); }

/* --- Steps upgrade: solid numbers, card content --- */
.article-step__num { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.article-step:not(:last-child)::before { background: linear-gradient(180deg, rgba(255,122,34,0.55) 0%, rgba(255,122,34,0.15) 100%); }
.article-step__content {
  background: var(--color-surface);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  box-shadow: 0 4px 14px -10px rgba(15,23,42,0.22);
}
.article-step__content h3 { margin-top: 0; }
.article-step__content p { margin-bottom: 0.5rem; }
.article-step__content p:last-child { margin-bottom: 0; }
.article-step__content ul, .article-step__content ol { margin-bottom: 0.5rem; }
.article-step__content table { margin: 0.75rem 0 0.25rem; }

/* --- FAQ as cards --- */
.article-faq details {
  background: var(--color-surface);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 0 1.2rem;
  margin-bottom: 0.6rem;
}
.article-faq details[open] { border-color: rgba(255,122,34,0.35); }
.article-faq summary { padding: 1rem 0; }
.article-faq summary::after { color: var(--color-accent); }
.article-faq details p { padding-bottom: 1.1rem; }

/* --- See also cards --- */
.article-seealso { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.75rem 0; }
@media (max-width: 720px) { .article-seealso { grid-template-columns: 1fr; } }
.article-seealso__card {
  display: block;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
}
.article-seealso__card:hover { border-color: rgba(255,122,34,0.5); }
.article-seealso__card strong { display: block; color: var(--color-text-heading); font-size: 0.97rem; line-height: 1.45; margin-bottom: 0.3rem; }
.article-seealso__card span { font-size: 0.86rem; color: var(--color-text-muted); line-height: 1.5; display: block; }

/* --- Orange list markers (safety net for any remaining list) --- */
.article-body ul li::marker, .article-body ol li::marker { color: var(--color-accent); font-weight: 700; }

/* --- Mobile TOC chips (sidebar hidden <1024px today) --- */
.article-toc-mobile { display: none; }
@media (max-width: 1023px) {
  .article-toc-mobile {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0 0 1.5rem;
  }
  .article-toc-mobile a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-body);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 9999px;
    padding: 0.4rem 0.8rem;
    text-decoration: none;
  }
  .article-sidebar { display: block; }
  .article-sidebar .sidebar-cta { display: none; }
}
/* TOC open by default on desktop is markup (open attribute); keep sticky */
@media (min-width: 1024px) {
  .sidebar-toc details[open] .sidebar-toc__label { margin-bottom: 1rem; }
}

/* --- Sources footer block --- */
.article-sources {
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: 2.5rem;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
