/*
  Ellwanger Painting — Exterior Paint Home Value Article
  Palette: primary #2e5f84, accent #c48416, dark #640505, text #0f172a
  Notes:
  - Mobile-first; breakpoints at 640px, 900px
  - Long-form editorial layout — narrower content column for readability
  - Header & footer styling lives in /bellingham-location/css/header_footer.css
*/

:root{
  --brand-primary:#2e5f84;
  --brand-accent:#c48416;
  --brand-dark:#640505;
  --bg:#ffffff;
  --bg-soft:#f8fafc;
  --bg-tint:rgba(46,95,132,0.06);
  --bg-warn:rgba(100,5,5,0.04);
  --text:#0f172a;
  --text-muted:#475569;
  --text-light:#64748b;
  --border:#e2e8f0;
  --border-strong:#cbd5e1;
  --radius:14px;
  --radius-sm:10px;
  --shadow-sm:0 4px 16px rgba(15,23,42,0.06);
  --shadow:0 6px 18px rgba(15,23,42,0.08);
}

/* ── Page wrap (narrower for long-form reading) ────────────── */
.article-page{
  max-width:780px;
  margin:0 auto;
  padding:1.75rem 1.25rem 3rem;
  color:var(--text);
  line-height:1.7;
  font-size:1.02rem;
}
@media (min-width:768px){
  .article-page{ padding:2.25rem 2rem 4rem; font-size:1.08rem; line-height:1.75; }
}

/* ── Breadcrumbs ───────────────────────────────────────────── */
.art-crumbs{ margin:0 0 1.25rem; }
.art-crumbs ol{
  list-style:none; padding:0; margin:0;
  display:flex; flex-wrap:wrap; align-items:center;
  gap:0.4rem; font-size:0.85rem; color:var(--text-light);
}
.art-crumbs li{ margin:0; }
.art-crumbs a{
  color:var(--brand-primary); text-decoration:none; font-weight:600;
  transition:color 0.15s ease;
}
.art-crumbs a:hover{ color:var(--brand-accent); text-decoration:underline; }
.art-crumbs li[aria-current="page"]{ color:var(--text-muted); font-weight:600; }
.art-crumbs li[aria-hidden="true"]{ color:var(--border-strong); }

/* ── Article container ─────────────────────────────────────── */
.art{ }

/* ── Hero ──────────────────────────────────────────────────── */
.art-hero{
  margin:0 0 2.25rem;
  padding-bottom:1.5rem;
  border-bottom:2px solid var(--border);
}
.art-hero h1{
  color:var(--brand-primary);
  font-size:1.85rem;
  font-weight:800;
  line-height:1.18;
  letter-spacing:-0.015em;
  margin:0 0 0.85rem;
}
@media (min-width:768px){
  .art-hero h1{ font-size:2.4rem; }
}
.art-tag{
  display:inline-flex; align-items:center; gap:0.4rem;
  padding:0.3rem 0.75rem;
  border-radius:999px;
  background:var(--bg-tint);
  color:var(--text-light);
  font-size:0.78rem;
  text-transform:uppercase;
  letter-spacing:0.12em;
  font-weight:600;
  margin-bottom:0.85rem;
}
.art-tag .dot{ width:6px; height:6px; border-radius:50%; background:var(--brand-accent); }
.art-subtitle{
  font-size:1.12rem;
  color:var(--text-muted);
  line-height:1.55;
  margin:0 0 1rem;
  font-style:italic;
}
.art-meta{
  font-size:0.85rem;
  color:var(--text-light);
  margin:0;
}
.art-meta span + span::before{
  content:""; display:none;
}

/* ── Section spacing & headings ────────────────────────────── */
.art-section{ margin:0 0 2.25rem; }
.art-section h2{
  color:var(--brand-primary);
  font-size:1.5rem;
  font-weight:700;
  line-height:1.25;
  letter-spacing:-0.01em;
  margin:0 0 1rem;
}
@media (min-width:768px){
  .art-section h2{ font-size:1.7rem; }
}
.art-section h3{
  color:var(--text);
  font-size:1.15rem;
  font-weight:700;
  margin:1.25rem 0 0.5rem;
}
.art-section p{ margin:0 0 1.05rem; }
.art-section p:last-child{ margin-bottom:0; }
.art-section a{ color:var(--brand-primary); font-weight:600; }
.art-section a:hover{ color:var(--brand-accent); }
.art-section strong{ color:var(--text); }
.art-section em{ color:var(--text-muted); }

/* Lede section: slightly larger first paragraph */
.art-lede > p:first-of-type{
  font-size:1.08rem;
  color:var(--text);
  font-weight:500;
}

/* ── Definition list ───────────────────────────────────────── */
.art-deflist{
  background:var(--bg-soft);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.25rem 1.5rem;
  margin:1rem 0 1.25rem;
}
.art-deflist dt{
  font-weight:800;
  color:var(--brand-primary);
  margin:0.5rem 0 0.25rem;
  font-size:1.02rem;
}
.art-deflist dt:first-child{ margin-top:0; }
.art-deflist dd{
  margin:0 0 0.5rem;
  color:var(--text);
}

/* ── Lists ─────────────────────────────────────────────────── */
.art-section ul,
.art-section ol{ margin:0.5rem 0 1.1rem; padding-left:1.4rem; }
.art-section li{ margin:0.4rem 0; line-height:1.65; }

.art-numbered{ counter-reset:art-num; list-style:none; padding-left:0; }
.art-numbered > li{
  counter-increment:art-num;
  position:relative;
  padding:0.5rem 0 0.6rem 2.75rem;
  border-bottom:1px solid var(--border);
}
.art-numbered > li:last-child{ border-bottom:none; }
.art-numbered > li::before{
  content:counter(art-num);
  position:absolute;
  left:0;
  top:0.5rem;
  width:1.85rem; height:1.85rem;
  border-radius:50%;
  background:var(--brand-primary);
  color:#fff;
  font-weight:700;
  font-size:0.9rem;
  display:flex;
  align-items:center;
  justify-content:center;
}

.art-checklist{
  list-style:none;
  padding:0;
  margin:0.75rem 0 0;
  background:var(--bg-soft);
  border:1px solid var(--border);
  border-left:4px solid var(--brand-accent);
  border-radius:var(--radius);
  padding:1.1rem 1.4rem;
}
.art-checklist li{
  position:relative;
  padding:0.4rem 0 0.4rem 1.85rem;
  border-bottom:1px dashed var(--border);
}
.art-checklist li:last-child{ border-bottom:none; }
.art-checklist li::before{
  content:"\2713";
  position:absolute;
  left:0.25rem;
  top:0.4rem;
  color:var(--brand-accent);
  font-weight:700;
  font-size:1rem;
}

.art-warn-list{
  list-style:none;
  padding:0;
  margin:0.75rem 0 0;
}
.art-warn-list li{
  padding:0.6rem 0.9rem 0.6rem 2.25rem;
  position:relative;
  border-radius:var(--radius-sm);
  background:var(--bg-warn);
  margin-bottom:0.6rem;
  border-left:3px solid var(--brand-dark);
}
.art-warn-list li::before{
  content:"\26A0";
  position:absolute;
  left:0.65rem;
  top:0.6rem;
  color:var(--brand-dark);
  font-size:1rem;
}

/* ── Key research callout ──────────────────────────────────── */
.art-section--key{
  background:linear-gradient(135deg, rgba(46,95,132,0.04), rgba(196,132,22,0.05));
  border-radius:var(--radius);
  padding:1.5rem 1.6rem;
  border:1px solid var(--border);
  border-left:4px solid var(--brand-primary);
  margin-bottom:2.25rem;
}
.art-section--key h2{ margin-top:0; }

/* ── PNW pull quote ────────────────────────────────────────── */
.art-section--pnw{
  background:var(--bg-soft);
  border-radius:var(--radius);
  padding:1.5rem 1.6rem;
  border:1px solid var(--border);
}
.art-section--pnw h2{ margin-top:0; }
.art-pull{
  background:#fff;
  border-left:4px solid var(--brand-accent);
  padding:0.85rem 1.1rem;
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
  margin:1.25rem 0 0;
  font-size:1.02rem;
  color:var(--text);
  box-shadow:var(--shadow-sm);
}
.art-pull p{ margin:0; }

/* ── Warning section header ────────────────────────────────── */
.art-section--warn h2{ color:var(--brand-dark); }

/* ── Economics breakdown ───────────────────────────────────── */
.art-econ{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:0.5rem 0;
  margin:1.25rem 0;
  box-shadow:var(--shadow-sm);
}
.art-econ__row{
  display:grid;
  grid-template-columns:1fr;
  gap:0.25rem;
  padding:1rem 1.25rem;
  border-bottom:1px solid var(--border);
}
.art-econ__row:last-child{ border-bottom:none; }
@media (min-width:640px){
  .art-econ__row{
    grid-template-columns:1fr auto;
    grid-template-areas:
      "label val"
      "note note";
    column-gap:1.25rem;
    align-items:baseline;
  }
  .art-econ__label{ grid-area:label; }
  .art-econ__val{ grid-area:val; }
  .art-econ__note{ grid-area:note; }
}
.art-econ__label{
  font-weight:700;
  color:var(--text);
  font-size:1rem;
}
.art-econ__val{
  font-weight:800;
  color:var(--brand-primary);
  font-size:1.05rem;
  white-space:nowrap;
}
.art-econ__note{
  font-size:0.92rem;
  color:var(--text-muted);
  line-height:1.55;
  margin-top:0.15rem;
}

/* Thesis statement */
.art-thesis{
  background:linear-gradient(135deg, rgba(46,95,132,0.06), rgba(196,132,22,0.07));
  border-left:4px solid var(--brand-accent);
  padding:1rem 1.25rem;
  border-radius:0 var(--radius) var(--radius) 0;
  font-size:1.05rem;
  line-height:1.6;
  color:var(--text);
}

/* ── Evidence ranking table ────────────────────────────────── */
.art-section--evidence h2{ }

.art-evidence{
  width:100%;
  border-collapse:collapse;
  margin:1rem 0 1.25rem;
  font-size:0.95rem;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
}
.art-evidence thead{
  background:var(--brand-primary);
  color:#fff;
}
.art-evidence th{
  text-align:left;
  padding:0.75rem 0.85rem;
  font-weight:700;
  font-size:0.88rem;
  letter-spacing:0.02em;
  text-transform:uppercase;
}
.art-evidence td{
  padding:0.85rem;
  vertical-align:top;
  border-top:1px solid var(--border);
  line-height:1.5;
}
.art-evidence td:first-child{
  font-weight:700;
  color:var(--text);
  white-space:nowrap;
  width:8.5rem;
}
.art-evidence--strong td:first-child{ color:#15803d; }
.art-evidence--moderate td:first-child{ color:var(--brand-accent); }
.art-evidence--weak td:first-child{ color:var(--brand-dark); }

@media (max-width:640px){
  .art-evidence{ font-size:0.88rem; }
  .art-evidence th, .art-evidence td{ padding:0.65rem 0.5rem; }
  .art-evidence td:first-child{ width:auto; white-space:normal; }
}

.art-take{
  background:var(--bg-tint);
  border-left:3px solid var(--brand-primary);
  padding:0.85rem 1.1rem;
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
  font-size:1rem;
  color:var(--text);
  margin:1rem 0 0;
}

/* ── FAQ ───────────────────────────────────────────────────── */
.art-faq{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  margin:0 0 0.75rem;
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}
.art-faq summary{
  cursor:pointer;
  list-style:none;
  padding:0.95rem 1.25rem;
  font-weight:700;
  color:var(--brand-primary);
  font-size:1rem;
  position:relative;
  padding-right:2.5rem;
  user-select:none;
  line-height:1.4;
}
.art-faq summary::-webkit-details-marker{ display:none; }
.art-faq summary::after{
  content:"+";
  position:absolute;
  right:1.25rem;
  top:50%;
  transform:translateY(-50%);
  font-size:1.4rem;
  font-weight:400;
  color:var(--brand-accent);
  line-height:1;
}
.art-faq[open] summary{ border-bottom:1px solid var(--border); }
.art-faq[open] summary::after{ content:"\2013"; }
.art-faq summary:hover{ background:var(--bg-soft); }
.art-faq > p{
  padding:0 1.25rem 1.1rem;
  margin:1rem 0 0;
  color:var(--text);
}

/* ── CTA ───────────────────────────────────────────────────── */
.art-cta{
  text-align:center;
  background:var(--brand-primary);
  color:#fff;
  border-radius:var(--radius);
  padding:2rem 1.5rem;
  margin:0 0 2.25rem;
  box-shadow:var(--shadow);
}
.art-cta h2{
  color:#fff;
  margin:0 0 0.6rem;
  font-size:1.45rem;
}
.art-cta p{
  color:rgba(255,255,255,0.92);
  font-size:1rem;
  margin:0 0 1.25rem;
}
.art-cta .btn-primary{
  display:inline-block;
  background:var(--brand-accent);
  color:#fff;
  padding:0.85rem 1.5rem;
  border-radius:999px;
  font-weight:700;
  text-decoration:none;
  font-size:1rem;
  letter-spacing:0.01em;
  box-shadow:0 4px 14px rgba(196,132,22,0.4);
  transition:transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.art-cta .btn-primary:hover{
  background:#a86f12;
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(196,132,22,0.5);
}

/* ── Sources ───────────────────────────────────────────────── */
.art-sources{
  background:var(--bg-soft);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.25rem 1.5rem;
  font-size:0.92rem;
}
.art-sources h2{
  font-size:1.2rem;
  margin-top:0;
}
.art-sourcelist{
  padding-left:1.25rem;
  margin:0 0 1rem;
  color:var(--text-muted);
}
.art-sourcelist li{
  margin:0.4rem 0;
  line-height:1.55;
}
.art-sourcelist a{
  color:var(--brand-primary);
  word-break:break-word;
}
.art-disclosure{
  margin:1rem 0 0 !important;
  padding-top:1rem;
  border-top:1px solid var(--border);
  font-size:0.88rem;
  color:var(--text-muted);
  line-height:1.55;
}

/* ── Print ─────────────────────────────────────────────────── */
@media print{
  .site-header, footer, .art-cta, .art-crumbs{ display:none !important; }
  .article-page{ max-width:100%; padding:0; }
  .art-faq, .art-econ, .art-evidence{ box-shadow:none; }
  .art-section{ break-inside:avoid; }
}
