/* ══════════════════════════════════════════════════════════════
   AIRHOME — ARTICLE PAGE
   Page-specific rules composed on the foundation tokens in
   airhome.css (Cormorant/Jost, walnut / sienna / sand palette).
   Loaded by blog-detail.blade.php and every blog-detail-{type}
   wrapper, all of which render airhome/partials/article.blade.php.
   ══════════════════════════════════════════════════════════════ */

/* Breadcrumb */
.article-breadcrumb {
  max-width: var(--maxw); margin: 0 auto; padding: 22px var(--hpad) 0;
  font-family: var(--fb); font-size: 11px; font-weight: 500;
  color: var(--soft); display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.article-breadcrumb a { color: var(--soft); transition: color 0.15s; }
.article-breadcrumb a:hover { color: var(--sienna); }
.article-breadcrumb .sep { color: var(--border); }
.article-breadcrumb .current { color: var(--sienna); font-weight: 600; }

/* Article header */
.article-header { max-width: 760px; margin: 0 auto; padding: 24px var(--hpad) 0; text-align: center; }
.article-header .kicker {
  font-family: var(--fb); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--sienna);
  margin-bottom: 16px; display: block;
}
.article-header h1 {
  font-family: var(--fd); font-size: 52px; font-weight: 600; line-height: 1.08;
  color: var(--walnut); letter-spacing: -0.01em; margin-bottom: 20px;
}
.article-header .standfirst {
  font-family: var(--fb); font-size: 18px; font-weight: 300; line-height: 1.6;
  color: var(--mid); margin-bottom: 28px;
}
.article-byline {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding-bottom: 32px; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.article-byline .avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fd); font-size: 16px; font-weight: 600; color: var(--walnut); flex-shrink: 0;
}
.article-byline .by-info { text-align: left; }
.article-byline .by-name { font-family: var(--fb); font-size: 13px; font-weight: 600; color: var(--ink); }
.article-byline .by-meta { font-family: var(--fb); font-size: 11.5px; font-weight: 400; color: var(--soft); margin-top: 2px; }
.article-share {
  display: flex; align-items: center; gap: 10px;
  margin-left: 18px; padding-left: 18px; border-left: 1px solid var(--border);
}
.share-btn {
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--mid); cursor: pointer; transition: all 0.15s;
}
.share-btn:hover { background: var(--walnut); border-color: var(--walnut); color: var(--white); }

/* Featured image */
.article-featured-img { max-width: 1100px; margin: 36px auto 8px; padding: 0 var(--hpad); }
.article-featured-img img { width: 100%; height: 520px; object-fit: cover; display: block; }
.article-img-caption {
  max-width: 1100px; margin: 0 auto 48px; padding: 10px var(--hpad) 0;
  font-family: var(--fb); font-size: 12px; font-weight: 300; color: var(--soft); text-align: center;
}

/* Article body layout */
.article-layout {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--hpad) 60px;
  display: grid; grid-template-columns: 200px 1fr 320px; gap: 48px; align-items: start;
}

/* Social rail (sticky left) */
.social-rail { position: sticky; top: 100px; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 8px; }
.social-rail .rail-label {
  font-family: var(--fb); font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--soft); margin-bottom: 4px;
}
.social-rail .rail-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; transition: all 0.2s; color: var(--mid);
}
.social-rail .rail-btn:hover { background: var(--walnut); border-color: var(--walnut); color: var(--white); transform: translateY(-2px); }
.social-rail .rail-divider { width: 24px; height: 1px; background: var(--border); margin: 6px 0; }

/* Article body content */
.article-body { font-family: var(--fb); font-size: 17px; font-weight: 300; line-height: 1.85; color: var(--ink); max-width: 680px; }
.article-body p { margin-bottom: 26px; }
.article-body h2 { font-family: var(--fd); font-size: 32px; font-weight: 600; line-height: 1.2; color: var(--walnut); margin: 48px 0 20px; }
.article-body h3 { font-family: var(--fd); font-size: 24px; font-weight: 600; line-height: 1.25; color: var(--walnut); margin: 36px 0 16px; }
.article-body strong { font-weight: 600; color: var(--ink); }
.article-body a { color: var(--sienna); text-decoration: underline; text-underline-offset: 2px; }
.article-body ul, .article-body ol { margin: 0 0 26px 0; padding-left: 24px; }
.article-body li { margin-bottom: 12px; }
.article-body li::marker { color: var(--sienna); }
.article-body img { width: 100%; height: auto; margin: 36px 0; }
.article-body figure { margin: 36px 0; }
.article-body figure img { margin: 0; }
.article-body figcaption { font-family: var(--fb); font-size: 12px; font-weight: 300; color: var(--soft); margin-top: 10px; text-align: center; }
.article-body blockquote {
  margin: 44px 0; padding: 4px 0 4px 28px; border-left: 3px solid var(--walnut);
  font-family: var(--fd); font-size: 28px; font-weight: 500; font-style: italic; line-height: 1.4; color: var(--walnut);
}

/* Pull quote (authored module) */
.pull-quote { margin: 44px 0; padding: 4px 0 4px 28px; border-left: 3px solid var(--walnut); }
.pull-quote p { font-family: var(--fd); font-size: 28px; font-weight: 500; font-style: italic; line-height: 1.4; color: var(--walnut); margin-bottom: 8px !important; }
.pull-quote cite { font-family: var(--fb); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--soft); font-style: normal; }

/* Inline image module */
.inline-img { margin: 36px 0; }
.inline-img img { width: 100%; height: 340px; object-fit: cover; }
.inline-img .cap { font-family: var(--fb); font-size: 12px; font-weight: 300; color: var(--soft); margin-top: 10px; text-align: center; }

/* Stat callout module */
.stat-callout {
  background: var(--warm); border: 1px solid var(--border); padding: 28px 32px; margin: 40px 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center;
}
.stat-callout .num { font-family: var(--fd); font-size: 36px; font-weight: 600; color: var(--walnut); line-height: 1; margin-bottom: 6px; }
.stat-callout .lbl { font-family: var(--fb); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--mid); }

/* Key takeaways module */
.takeaways { background: var(--walnut); color: var(--white); padding: 32px 36px; margin: 44px 0; }
.takeaways .tk-title { font-family: var(--fd); font-size: 20px; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.takeaways ul { padding-left: 0; list-style: none; margin: 0; }
.takeaways li {
  font-family: var(--fb); font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.85);
  padding-left: 26px; position: relative; margin-bottom: 12px; line-height: 1.6;
}
.takeaways li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--yellow); font-weight: 700; }

/* In-body advertisement */
.article-ad { margin: 40px 0; padding: 16px; border: 1px solid var(--border); background: var(--warm); text-align: center; }
.article-ad > span { display: block; font-family: var(--fb); font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); margin-bottom: 10px; }

/* Author box */
.author-box { display: flex; gap: 18px; background: var(--warm); border: 1px solid var(--border); padding: 28px; margin-top: 48px; }
.author-box .avatar-lg {
  width: 64px; height: 64px; border-radius: 50%; background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fd); font-size: 24px; font-weight: 600; color: var(--walnut); flex-shrink: 0;
}
.author-box .author-name { font-family: var(--fd); font-size: 18px; font-weight: 600; color: var(--walnut); margin-bottom: 4px; }
.author-box .author-bio { font-family: var(--fb); font-size: 13px; font-weight: 300; color: var(--mid); line-height: 1.6; }

/* Tags row */
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 36px; }
.article-tags .atag {
  font-family: var(--fb); font-size: 11px; font-weight: 600; color: var(--walnut);
  background: var(--sand); padding: 6px 14px; border-radius: var(--r-pill); transition: background 0.15s;
}
.article-tags .atag:hover { background: var(--tan); }

/* Sidebar (right) */
.article-sidebar { display: flex; flex-direction: column; gap: 36px; }
.sidebar-box { background: var(--white); border: 1px solid var(--border); }
.sidebar-box-header {
  padding: 16px 20px; border-bottom: 2px solid var(--walnut);
  font-family: var(--fd); font-size: 16px; font-weight: 600; color: var(--walnut);
}
.related-item { display: flex; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.related-item:last-child { border-bottom: none; }
.related-item:hover .related-title { color: var(--sienna); }
.related-thumb { width: 64px; height: 64px; flex-shrink: 0; object-fit: cover; background: var(--sand); }
.related-tag { font-family: var(--fb); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sienna); margin-bottom: 4px; }
.related-title { font-family: var(--fd); font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--walnut); transition: color 0.15s; }

/* Quiz / CTA box */
.quiz-box { background: var(--yellow); padding: 28px 24px; text-align: center; }
.quiz-box h4 { font-family: var(--fd); font-size: 20px; font-weight: 600; color: var(--walnut); margin-bottom: 10px; line-height: 1.25; }
.quiz-box p { font-family: var(--fb); font-size: 12.5px; font-weight: 400; color: var(--mid); margin-bottom: 18px; line-height: 1.5; }
.quiz-box .btn { width: 100%; text-align: center; }

/* Newsletter sidebar box */
.nl-sidebar-box { background: var(--walnut); padding: 28px 24px; text-align: center; }
.nl-sidebar-box h4 { font-family: var(--fd); font-size: 20px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.nl-sidebar-box p { font-family: var(--fb); font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.nl-sidebar-box input {
  width: 100%; padding: 10px 12px; border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1); color: var(--white);
  font-family: var(--fb); font-size: 12px; margin-bottom: 10px; outline: none;
}
.nl-sidebar-box input::placeholder { color: rgba(255,255,255,0.4); }
.nl-sidebar-box button {
  width: 100%; padding: 10px; background: var(--yellow); color: var(--ink); border: none;
  font-family: var(--fb); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.nl-sidebar-box button:hover { background: var(--yellow-d); }
.nl-sidebar-box .nl-status { font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 4px; min-height: 1em; }

/* Sidebar category list */
.sidebar-box .cat-list { padding: 6px 0; }
.sidebar-box .cat-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 20px; border-bottom: 1px solid var(--border);
  font-family: var(--fb); font-size: 13px; color: var(--mid);
}
.sidebar-box .cat-list li:last-child { border-bottom: none; }
.sidebar-box .cat-list li a { color: var(--walnut); font-weight: 500; transition: color 0.15s; }
.sidebar-box .cat-list li a:hover { color: var(--sienna); }
.sidebar-box .cat-list .cat-count { font-size: 11px; color: var(--soft); }

/* Prev / next nav */
.next-article { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--hpad) 60px; }
.next-article-inner { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); }
.next-item { padding: 32px; transition: background 0.2s; }
.next-item:hover { background: var(--warm); }
.next-item.prev { border-right: 1px solid var(--border); text-align: left; }
.next-item.next { text-align: right; }
.next-dir { font-family: var(--fb); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); margin-bottom: 8px; }
.next-title { font-family: var(--fd); font-size: 19px; font-weight: 600; color: var(--walnut); line-height: 1.3; }

/* Responsive */
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .social-rail {
    position: static; flex-direction: row; justify-content: flex-start;
    flex-wrap: wrap; gap: 10px; padding-top: 0; padding-bottom: 8px; border-bottom: 1px solid var(--border);
  }
  .social-rail .rail-label { margin-bottom: 0; margin-right: 4px; }
  .social-rail .rail-divider { display: none; }
  .article-body { max-width: none; }
}
@media (max-width: 640px) {
  .article-header h1 { font-size: 36px; }
  .article-featured-img img { height: 300px; }
  .article-body { font-size: 16px; }
  .stat-callout { grid-template-columns: 1fr; gap: 16px; }
  .next-article-inner { grid-template-columns: 1fr; }
  .next-item.prev { border-right: none; border-bottom: 1px solid var(--border); }
  .next-item.next { text-align: left; }
}

/* ══════════════════════════════════════════════════════════════
   EDITORIAL SECTIONS — typed articles only
   (expert debate / the take / how-to / comparison)

   These blocks used to render through the shared Tailwind
   templates, which ignored this design system entirely. They are
   deliberately built from the SAME Cormorant + Jost pairing and
   walnut / sienna / sand / yellow palette as the rest of the page,
   so a typed article reads as one continuous AirHome layout rather
   than an article with a foreign module bolted onto it.

   Everything here lives inside .article-body, so element-level
   rules (p / a / li / img) are written with an .ah-* ancestor and
   placed after the base rules to win the cascade cleanly.
   ══════════════════════════════════════════════════════════════ */

/* Article-type label, sat beside the category kicker in the header */
.article-kicker-row {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.article-kicker-row .kicker { margin-bottom: 0; }
.article-kicker-row .kicker-rule { width: 1px; height: 12px; background: var(--border); }
.article-type-label {
  font-family: var(--fb); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--walnut);
  background: var(--sand); padding: 5px 12px; border-radius: var(--r-pill);
}

/* Section head — Cormorant caps + hairline, the same device as .section-label */
.ah-section-head { display: flex; align-items: center; gap: 14px; margin: 52px 0 22px; }
.ah-section-head .ah-head-title {
  font-family: var(--fd); font-size: 24px; font-weight: 500; line-height: 1.2;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--walnut);
  white-space: nowrap; margin: 0;
}
.ah-section-head .line { flex: 1; height: 1px; background: var(--border); }
.ah-eyebrow {
  display: block; font-family: var(--fb); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--sienna); margin-bottom: 12px;
}

/* Key metrics */
.ah-stats { margin: 0 0 44px; }
.ah-stats-grid {
  background: var(--warm); border: 1px solid var(--border); padding: 28px 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px; text-align: center;
}
.ah-stats-grid .num { font-family: var(--fd); font-size: 36px; font-weight: 600; color: var(--walnut); line-height: 1; margin-bottom: 6px; }
.ah-stats-grid .lbl { font-family: var(--fb); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; line-height: 1.45; color: var(--mid); }

/* Expert voices */
.ah-voice { border: 1px solid var(--border); background: var(--white); padding: 22px 24px; margin-bottom: 14px; }
.ah-voice:last-child { margin-bottom: 0; }
.ah-voice-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ah-voice-avatar {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; overflow: hidden;
  background: var(--sand); display: flex; align-items: center; justify-content: center;
  font-family: var(--fd); font-size: 17px; font-weight: 600; color: var(--walnut);
}
.ah-voice-avatar img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.ah-voice-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ah-voice-id .ah-voice-role {
  font-family: var(--fb); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--sienna);
}
.ah-voice .ah-voice-name {
  font-family: var(--fd); font-size: 19px; font-weight: 600; line-height: 1.2;
  color: var(--walnut); text-decoration: none; transition: color 0.15s;
}
.ah-voice .ah-voice-name:hover { color: var(--sienna); }
.ah-voice-position {
  margin-left: auto; flex-shrink: 0; background: var(--white);
  font-family: var(--fb); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill);
  border: 1.5px solid var(--border); color: var(--mid);
}
.ah-pos--for { border-color: var(--walnut); background: var(--sand); color: var(--walnut); }
.ah-pos--against { border-color: var(--sienna); color: var(--sienna); }
.ah-voice .ah-voice-argument {
  font-family: var(--fb); font-size: 15px; font-weight: 300;
  line-height: 1.75; color: var(--ink); margin: 0;
}

/* The take — the walnut block, the same editorial device as .takeaways */
.ah-take { background: var(--walnut); color: var(--white); padding: 34px 36px; margin: 48px 0; }
.ah-take .ah-take-label {
  display: block; font-family: var(--fb); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px;
}
.ah-take .ah-take-title {
  font-family: var(--fd); font-size: 28px; font-weight: 600; line-height: 1.2;
  letter-spacing: -0.01em; color: var(--white); margin: 0 0 14px;
}
.ah-take .ah-take-verdict {
  font-family: var(--fd); font-size: 21px; font-weight: 400; font-style: italic;
  line-height: 1.5; color: rgba(255,255,255,0.92); margin: 0 0 16px;
}
.ah-take-body { font-family: var(--fb); font-size: 14.5px; font-weight: 300; line-height: 1.75; color: rgba(255,255,255,0.82); }
.ah-take-body p { margin: 0 0 14px; }
.ah-take-body p:last-child { margin-bottom: 0; }
.ah-take-body strong { color: var(--white); font-weight: 600; }
.ah-take-body a { color: var(--yellow); text-decoration: underline; text-underline-offset: 2px; }
.ah-take-body ul, .ah-take-body ol { margin: 0 0 14px; padding-left: 20px; list-style: disc; }
.ah-take-body ol { list-style: decimal; }
.ah-take-body li { margin-bottom: 8px; }
.ah-take-body li::marker { color: var(--yellow); }
.ah-take .ah-take-badge {
  display: inline-block; margin-top: 18px; background: var(--yellow); color: var(--ink);
  font-family: var(--fb); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 16px; border-radius: var(--r-pill);
}

/* Reader vote meter */
.ah-meter { margin: 44px 0; }
.ah-meter-bar { height: 10px; border-radius: var(--r-pill); background: var(--sand); overflow: hidden; }
.ah-meter-bar span { display: block; height: 100%; background: var(--walnut); }
.ah-meter-legend {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 12px;
  font-family: var(--fb); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--mid);
}
.ah-meter-legend .ah-meter-no { color: var(--sienna); }

/* Attached quiz */
.ah-quiz { margin: 44px 0; }

/* References */
.ah-references .ah-ref-list { margin: 0; padding-left: 22px; list-style: decimal; }
.ah-references .ah-ref-list li {
  font-family: var(--fb); font-size: 14px; font-weight: 300;
  line-height: 1.65; color: var(--ink); margin-bottom: 12px;
}
.ah-references .ah-ref-list li::marker { color: var(--sienna); font-weight: 600; }
.ah-references .ah-ref-list a { color: var(--walnut); text-decoration: underline; text-underline-offset: 2px; }
.ah-references .ah-ref-list a:hover { color: var(--sienna); }
.ah-references .ah-ref-source {
  display: block; margin-top: 3px; font-family: var(--fb); font-size: 10.5px;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft);
}

/* Sidebar sources — matches the .related-item rhythm of the other sidebar boxes */
.ah-source-item { display: block; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.ah-source-item:last-child { border-bottom: none; }
.ah-source-name {
  font-family: var(--fb); font-size: 9px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--sienna); margin-bottom: 4px;
}
.ah-source-title { font-family: var(--fd); font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--walnut); transition: color 0.15s; }
.ah-source-item:hover .ah-source-title { color: var(--sienna); }

@media (max-width: 640px) {
  .ah-section-head { margin: 40px 0 18px; }
  .ah-section-head .ah-head-title { font-size: 20px; white-space: normal; }
  .ah-take { padding: 26px 22px; }
  .ah-take .ah-take-title { font-size: 24px; }
  .ah-take .ah-take-verdict { font-size: 19px; }
  .ah-voice-head { flex-wrap: wrap; }
  .ah-voice-position { margin-left: 0; }
  .ah-meter-legend { flex-direction: column; gap: 5px; }
}
