/* Article + guides-index styles. Loaded only by /guides/ pages, on top of
   styles.css — kept separate so the 1000-line landing stylesheet stays put. */

:root {
  /* The signal layer's accent has no equivalent in styles.css, so it is defined
     here rather than by editing the landing stylesheet.

     Contrast, measured against the page's real backdrop: styles.css sets
     body { background: var(--paper) } = #faf6ef, and neither .article nor .layer
     paints a background, so each border sits on its own tint over --paper — for
     this layer, rgba(184,134,11,0.06) over #faf6ef = rgb(246,239,225).
     --amber-deep is only ever a border-color, so the applicable bar is WCAG
     1.4.11 non-text contrast, 3:1 — not the 4.5:1 text threshold.

       #b8860b (stock darkgoldenrod)  2.84:1  — just under the 3:1 minimum
       #7a5807 (this value)           5.69:1
       --red-deep / --green-deep      5.84:1 / 6.28:1  (siblings, for reference)

     Measuring over #ffffff instead gives 3.07:1 and 6.13:1; --paper is the
     correct backdrop here. The body::before washi grain shifts these by <0.2. */
  --amber-deep: #7a5807;
}

.article { max-width: 720px; margin: 0 auto; padding: 32px 20px 72px; }
.article-head { border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 20px; margin-bottom: 28px; }
.article-head h1 { font-size: 1.9rem; line-height: 1.35; margin: 0 0 12px; }
.article-meta { font-size: 0.85rem; color: var(--ink-soft); }
.article p { line-height: 1.9; margin: 0 0 18px; }
.article h2 { font-size: 1.35rem; margin: 40px 0 14px; line-height: 1.4; }
/* .calc h3 below has equal specificity and wins by source order — keep it after. */
.article h3 { font-size: 1.1rem; margin: 28px 0 10px; }
.article ul, .article ol { line-height: 1.9; margin: 0 0 18px; padding-left: 1.4em; }

/* The three experience layers (spec section 3) */
/* Base border-color keeps a bare .layer from inheriting currentColor. */
.layer { border-left: 4px solid; border-color: rgba(0,0,0,0.15); padding: 14px 18px; margin: 24px 0; border-radius: 0 6px 6px 0; }
.layer-title { font-weight: 700; margin: 0 0 8px; font-size: 1rem; }
/* Tints stay literal and use the lighter brand value, matching how styles.css
   pairs a -deep border with its softer background. */
.layer-fail { border-color: var(--red-deep); background: rgba(199,58,43,0.05); }
.layer-signal { border-color: var(--amber-deep); background: rgba(184,134,11,0.06); }
.layer-fix { border-color: var(--green-deep); background: rgba(30,110,70,0.05); }

/* Facts table — every row carries its primary source */
.facts { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.9rem; }
.facts th, .facts td { border: 1px solid rgba(0,0,0,0.12); padding: 9px 11px; text-align: left; vertical-align: top; }
.facts th { background: rgba(0,0,0,0.04); font-weight: 700; }
.facts a { word-break: break-all; }

/* Embedded calculator */
.calc { border: 2px solid var(--green-deep); border-radius: 10px; padding: 20px; margin: 32px 0; background: rgba(30,110,70,0.04); }
.calc h3 { margin: 0 0 14px; font-size: 1.05rem; }
.calc-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.calc-row label { flex: 1 1 190px; font-size: 0.9rem; }
.calc-row input, .calc-row select { flex: 0 0 150px; padding: 8px; border: 1px solid rgba(0,0,0,0.25); border-radius: 5px; font-size: 1rem; }
.calc-out { border-top: 1px dashed rgba(0,0,0,0.2); margin-top: 14px; padding-top: 14px; }
.calc-out dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.calc-out dt { color: var(--ink-soft); font-size: 0.9rem; }
.calc-out dd { margin: 0; font-weight: 700; }
.calc-big { font-size: 1.5rem; color: var(--green-deep); }
.calc-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 10px; }

/* CTA + disclaimer */
.article-cta { border-radius: 10px; padding: 24px; margin: 40px 0 24px; background: rgba(30,110,70,0.07); text-align: center; }
.article-cta p { margin: 0 0 14px; font-weight: 700; }
.article-cta a { display: inline-block; background: var(--green-deep); color: #fff; padding: 12px 26px; border-radius: 7px; text-decoration: none; font-weight: 700; }
.disclaimer { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.7; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 16px; margin-top: 40px; }
.article-nav { margin-top: 28px; font-size: 0.9rem; }

/* /guides/ index */
.guides-list { max-width: 760px; margin: 0 auto; padding: 32px 20px 72px; }
.guide-card { display: block; border: 1px solid rgba(0,0,0,0.12); border-radius: 9px; padding: 18px 20px; margin-bottom: 14px; text-decoration: none; color: inherit; }
.guide-card:hover { border-color: var(--green-deep); }
.guide-card h2 { margin: 0 0 6px; font-size: 1.1rem; line-height: 1.45; }
.guide-card p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.65; }

@media (max-width: 600px) {
  .article-head h1 { font-size: 1.5rem; }
  .calc-row input, .calc-row select { flex: 1 1 100%; }
}
