/* ============================================================
   blog-article.css — shared styles for all Linen Journal articles
   Loaded by every blog-*.html article page (after styles.css).
   Base layout + typography is common to all; component blocks
   (cards, tables, calc box, etc.) are uniquely named, so each
   article only uses the ones it references.
   ============================================================ */

/* ── HERO ─────────────────────────────────────────────────── */
.article-hero{
  background: linear-gradient(135deg, #0f1535 0%, #1a2148 100%);
  color: #fff;
  padding: 70px 24px 50px;
}
.article-hero .wrap{ max-width: 780px; margin: 0 auto; }
.article-hero .crumb{
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #d4b568;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.article-hero .crumb a{ color: #d4b568; text-decoration: none; }
.article-hero h1{
  font-family: var(--f-serif);
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 18px;
}
.article-hero h1 em{ font-style: italic; color: #d4b568; }
.article-hero .meta{
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
}

/* ── BODY TYPOGRAPHY ──────────────────────────────────────── */
.article-body{
  max-width: 720px;
  margin: 0 auto;
  padding: 50px 24px 40px;
  font-size: 16px;
  line-height: 1.75;
  color: #2a2d40;
}
.article-body p{ margin-bottom: 22px; }
.article-body h2{
  font-family: var(--f-serif);
  font-size: 30px;
  font-weight: 500;
  color: #0f1535;
  margin: 44px 0 18px;
  line-height: 1.25;
}
.article-body h2 em{ font-style: italic; color: #c9a84c; }
.article-body h3{
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #0f1535;
  margin: 30px 0 12px;
}
.article-body strong{ color: #0f1535; font-weight: 600; }
.article-body em{ font-style: italic; }
.article-body a{
  color: #c9a84c;
  text-decoration: none;
  border-bottom: 1px solid #d4b568;
}
.article-body a:hover{ color: #0f1535; }
.article-body ul, .article-body ol{
  margin: 0 0 22px 0;
  padding-left: 22px;
}
.article-body li{ margin-bottom: 10px; }

/* ── CALLOUT ──────────────────────────────────────────────── */
.callout{
  background: #f8f6f1;
  border-left: 3px solid #d4b568;
  padding: 22px 26px;
  margin: 30px 0;
  font-size: 15px;
}
.callout strong{
  display: block;
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9a84c;
}
.callout.warn{ border-left-color: #b03030; }
.callout.warn strong{ color: #b03030; }

/* ── STAT CARDS (linen-guide) ─────────────────────────────── */
.stats-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 30px 0;
}
.stat-card{
  background: #0f1535;
  color: #fff;
  padding: 22px 18px;
  text-align: center;
  border-radius: 3px;
}
.stat-card .num{
  font-family: var(--f-serif);
  font-size: 32px;
  color: #d4b568;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card .lbl{
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  line-height: 1.4;
}

/* ── TEST / CHECKLIST / KIT CARDS (discard, airbnb, hotel) ── */
.test-card{
  background: #fff;
  border: 1px solid #e2e0d8;
  border-radius: 4px;
  padding: 22px 24px;
  margin: 0 0 16px;
  box-shadow: 0 3px 14px rgba(15,21,53,0.05);
}
.test-card .test-num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: #0f1535;
  color: #d4b568;
  border-radius: 50%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.test-card h3{ margin: 0 0 8px; }
.test-card p{ font-size: 14.5px; margin: 0 0 14px; color: #4a4d63; line-height: 1.6; }
.test-card .verdict{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.test-card .pass, .test-card .fail{
  padding: 6px 12px;
  border-radius: 3px;
  text-transform: uppercase;
}
.test-card .pass{ background: #e6f2ea; color: #2a7a4a; }
.test-card .fail{ background: #fbeaea; color: #b03030; }

/* ── TRIGGER / PAR / SPEC TABLE (discard, airbnb, hotel) ──── */
.trigger-table{
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 14px;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15,21,53,0.06);
}
.trigger-table th{
  background: #0f1535;
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.trigger-table td{
  padding: 13px 16px;
  border-bottom: 1px solid #e2e0d8;
  vertical-align: top;
}
.trigger-table tr:last-child td{ border-bottom: none; }
.trigger-table tr:nth-child(even) td{ background: #faf9f6; }
.trigger-table strong{ color: #0f1535; }

/* ── COMPARE TABLE (lifecycle, gsm) ───────────────────────── */
.compare-table{
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 14px;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15,21,53,0.06);
}
.compare-table th{
  background: #0f1535;
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.compare-table td{
  padding: 14px 16px;
  border-bottom: 1px solid #e2e0d8;
  vertical-align: top;
}
.compare-table tr:last-child td{ border-bottom: none; }
.compare-table tr:nth-child(even) td{ background: #faf9f6; }
.compare-table strong{ color: #0f1535; }
.compare-table .win{ color: #2a7a4a; font-weight: 600; }
.compare-table .loss{ color: #b03030; }

/* ── LIFECYCLE CALC BOX (lifecycle) ───────────────────────── */
.calc-box{
  background: #0f1535;
  color: #fff;
  padding: 32px 30px;
  margin: 36px 0;
  border-radius: 4px;
}
.calc-box .calc-title{
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d4b568;
  margin-bottom: 18px;
}
.calc-box .calc-formula{
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 16px;
}
.calc-box .calc-note{
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* ── HIDDEN COST TILES (lifecycle) ────────────────────────── */
.cost-tiles{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 30px 0;
}
.cost-tile{
  background: #f8f6f1;
  padding: 20px 18px;
  border-radius: 3px;
  border-top: 3px solid #d4b568;
}
.cost-tile .tile-label{
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 8px;
}
.cost-tile .tile-heading{
  font-family: var(--f-serif);
  font-size: 17px;
  color: #0f1535;
  margin-bottom: 8px;
  line-height: 1.25;
}
.cost-tile p{
  font-size: 13px;
  color: #6b6e85;
  line-height: 1.55;
  margin: 0;
}

/* ── GSM RANGE TABLE (gsm) ────────────────────────────────── */
.gsm-table{
  margin: 30px 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15,21,53,0.06);
}
.gsm-row{
  display: grid;
  grid-template-columns: 130px 1fr;
  border-bottom: 1px solid #e2e0d8;
  background: #fff;
}
.gsm-row:last-child{ border-bottom: none; }
.gsm-row.header{
  background: #0f1535;
  color: #fff;
}
.gsm-row.header .gsm-weight,
.gsm-row.header .gsm-desc{
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.gsm-weight{
  background: #f8f6f1;
  padding: 18px 16px;
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 600;
  color: #0f1535;
  text-align: center;
  border-right: 1px solid #e2e0d8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gsm-row.header .gsm-weight{ background: #0f1535; }
.gsm-desc{ padding: 18px 22px; }
.gsm-desc .gsm-tier{
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 6px;
}
.gsm-desc p{
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
  color: #2a2d40;
}

/* ── TOOLKIT CTA (discard, airbnb, hotel) ─────────────────── */
.toolkit-cta{
  background: linear-gradient(135deg, #0f1535 0%, #1a2148 100%);
  color: #fff;
  padding: 40px 34px;
  margin: 44px 0;
  border-radius: 6px;
  text-align: center;
}
.toolkit-cta .kit-label{
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d4b568;
  margin-bottom: 14px;
}
.toolkit-cta h3{
  font-family: var(--f-serif);
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.2;
}
.toolkit-cta h3 em{ font-style: italic; color: #d4b568; }
.toolkit-cta p{ color: rgba(255,255,255,0.78); font-size: 14.5px; margin: 0 auto 22px; max-width: 460px; line-height: 1.6; }
.toolkit-cta .btn{
  display: inline-block;
  background: #d4b568;
  color: #0f1535;
  padding: 14px 30px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
}
.toolkit-cta .btn:hover{ background: #fff; }

/* ── ARTICLE CTA (all) ────────────────────────────────────── */
.article-cta{
  background: #f8f6f1;
  border: 1px solid #e2e0d8;
  padding: 36px 30px;
  text-align: center;
  margin: 40px 0 0;
  border-radius: 4px;
}
.article-cta h3{
  font-family: var(--f-serif);
  font-size: 26px;
  font-weight: 500;
  color: #0f1535;
  margin: 0 0 10px;
}
.article-cta h3 em{ color: #c9a84c; font-style: italic; }
.article-cta p{ color: #6b6e85; font-size: 14px; margin-bottom: 20px; }
.article-cta .btn{
  display: inline-block;
  background: #0f1535;
  color: #fff;
  padding: 13px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  border: none;
  text-decoration: none;
}
.article-cta .btn:hover{ background: #c9a84c; }

/* ── SOURCES (all) ────────────────────────────────────────── */
.sources{
  background: #fafaf6;
  padding: 28px 30px;
  margin-top: 40px;
  border-radius: 4px;
  font-size: 13px;
  color: #6b6e85;
}
.sources h4{
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #0f1535;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.sources ol{ padding-left: 20px; }
.sources li{ margin-bottom: 8px; line-height: 1.6; }
.sources a{ color: #6b6e85; border: none; text-decoration: underline; }

/* ── BACK LINK (all) ──────────────────────────────────────── */
.back-link{
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 30px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.back-link a{ color: #6b6e85; text-decoration: none; }
.back-link a:hover{ color: #c9a84c; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 600px){
  .stats-row{ grid-template-columns: 1fr; }
  .cost-tiles{ grid-template-columns: 1fr; }
  .calc-box .calc-formula{ font-size: 15px; }
  .gsm-row{ grid-template-columns: 100px 1fr; }
  .gsm-weight{ font-size: 18px; padding: 14px 8px; }
  .gsm-desc{ padding: 14px 16px; }
  .toolkit-cta{ padding: 30px 22px; }

  /* ── TABLE REFLOW — trigger + compare tables scroll horizontally ── */
  .trigger-table,
  .compare-table{
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: none;
  }
  .trigger-table thead,
  .trigger-table tbody,
  .compare-table thead,
  .compare-table tbody{ display: table; width: 100%; min-width: 520px; }
}
