/* AHN Hub Component Styles — matches homepage emerald/gold/cream identity */
/* Version: 2.1.0 — hero byline fix, BTF FAQ toggles, stray-n guard */
:root {
  --ahn-ink: #13201B;
  --ahn-emerald: #0E3B32;
  --ahn-teal: #1C6F5C;
  --ahn-gold: #C9A24B;
  --ahn-gold-soft: #E6CD8A;
  --ahn-cream: #F6F1E6;
  --ahn-card: #FFFFFF;
  --ahn-text: #262219;
  --ahn-muted: #6E6555;
  --ahn-line: #E7DECC;
}

/* ===========================================================
   ATF Hero
   =========================================================== */

.ahn-hero {
  background: linear-gradient(135deg, var(--ahn-emerald) 0%, var(--ahn-teal) 100%);
  color: #fff;
  padding: 32px 28px 28px;
  border-radius: 12px;
  margin: 0 0 28px;
}

.ahn-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ahn-gold-soft);
  margin-bottom: 10px;
}

.ahn-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.ahn-hero-cta {
  margin-top: 4px;
}

.ahn-cta-primary {
  display: inline-block;
  background: var(--ahn-gold);
  color: var(--ahn-ink) !important;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.2s;
}
.ahn-cta-primary:hover {
  background: var(--ahn-gold-soft);
}

/* RSS Meta Header byline inside hero — no box, no avatar, text only */
.ahn-hero .rss-mh-wrap {
  margin-top: 12px;
}
.ahn-hero .rss-mh-block {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.ahn-hero .rss-mh-avatars {
  display: none !important;
}
.ahn-hero .rss-mh-row {
  gap: 0 !important;
}
.ahn-hero .rss-mh-lines {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
.ahn-hero .rss-mh-line {
  font-size: 14px !important;
  color: rgba(255,255,255,0.8) !important;
}
.ahn-hero .rss-mh-line--author::after {
  content: " \00b7 ";
  white-space: pre;
}
.ahn-hero .rss-mh-line--updated {
  display: inline !important;
}
.ahn-hero .rss-mh-link {
  color: #fff !important;
  text-decoration: none !important;
}
.ahn-hero .rss-mh-link:hover {
  color: var(--ahn-gold-soft) !important;
  text-decoration: underline !important;
}

/* ===========================================================
   ATF Lede (answer-first paragraph)
   =========================================================== */

.ahn-lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ahn-ink);
  margin: 0 0 28px;
  padding: 20px 24px;
  background: var(--ahn-cream);
  border-left: 4px solid var(--ahn-gold);
  border-radius: 0 8px 8px 0;
}
.ahn-lede strong {
  color: var(--ahn-emerald);
}

/* ===========================================================
   QuickGrid (4 cards in 2x2 grid)
   =========================================================== */

.ahn-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 28px;
}

@media (max-width: 680px) {
  .ahn-quick-grid {
    grid-template-columns: 1fr;
  }
}

.ahn-quick-card {
  background: var(--ahn-card);
  border: 1px solid var(--ahn-line);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}

.ahn-quick-card h3 {
  color: var(--ahn-emerald);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ahn-gold-soft);
}

.ahn-quick-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.ahn-quick-card li {
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ahn-text);
  border-bottom: 1px solid var(--ahn-line);
}
.ahn-quick-card li:last-child {
  border-bottom: none;
}

.ahn-quick-card li strong {
  color: var(--ahn-emerald);
  font-weight: 600;
}

/* ===========================================================
   FAQ accordion (shared: ATF 3-Q + BTF full)
   =========================================================== */

.ahn-atf-faq,
.ahn-btf-faq {
  margin: 0 0 32px;
}

.ahn-atf-faq details,
.ahn-btf-faq details {
  background: var(--ahn-card);
  border: 1px solid var(--ahn-line);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.ahn-atf-faq details:last-child,
.ahn-btf-faq details:last-child {
  margin-bottom: 0;
}

.ahn-atf-faq summary,
.ahn-btf-faq summary {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ahn-emerald);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ahn-atf-faq summary::-webkit-details-marker,
.ahn-btf-faq summary::-webkit-details-marker {
  display: none;
}
.ahn-atf-faq summary::after,
.ahn-btf-faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--ahn-gold);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s;
}
.ahn-atf-faq details[open] summary::after,
.ahn-btf-faq details[open] summary::after {
  content: "\2212";
}

.ahn-atf-faq details > p,
.ahn-atf-faq details > div,
.ahn-btf-faq details > p,
.ahn-btf-faq details > div {
  padding: 0 18px 16px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ahn-text);
  margin: 0;
}

/* ===========================================================
   Existing body component styles (unchanged from v1.0.2)
   =========================================================== */

/* BLUF */
.ahn-bluf {
  background: var(--ahn-cream);
  border-left: 4px solid var(--ahn-gold);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 8px 8px 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ahn-ink);
}
.ahn-bluf strong { color: var(--ahn-emerald); }

/* Callout */
.ahn-callout {
  background: var(--ahn-card);
  border: 1px solid var(--ahn-line);
  border-left: 4px solid var(--ahn-teal);
  padding: 18px 22px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  font-size: 14.5px;
  line-height: 1.65;
}
.ahn-callout strong { color: var(--ahn-emerald); }

/* Table */
.ahn-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
}
.ahn-table th {
  background: var(--ahn-emerald);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
}
.ahn-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--ahn-line);
  color: var(--ahn-text);
}
.ahn-table tr:nth-child(even) td {
  background: var(--ahn-cream);
}

/* List (styled bullets) */
.ahn-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 20px 0;
}
.ahn-list li {
  list-style: none !important;
  padding: 8px 0 8px 24px;
  position: relative;
  line-height: 1.6;
  color: var(--ahn-text);
  border-bottom: 1px solid var(--ahn-line);
}
.ahn-list li::before {
  content: "\2726";
  position: absolute;
  left: 0;
  color: var(--ahn-gold);
  font-size: 12px;
  top: 10px;
}
.ahn-list li:last-child { border-bottom: none; }

/* Resources Used */
.ahn-resources {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.ahn-resources li {
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--ahn-muted);
  border-bottom: 1px solid var(--ahn-line);
}
.ahn-resources li:last-child { border-bottom: none; }
.ahn-resources a { color: var(--ahn-teal); text-decoration: underline; }

/* CTA pill */
.ahn-cta {
  display: block;
  text-align: center;
  margin: 32px auto;
  max-width: 420px;
}
.ahn-cta a {
  display: inline-block;
  background: var(--ahn-gold);
  color: var(--ahn-ink);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.ahn-cta a:hover {
  background: var(--ahn-gold-soft);
}

/* General hub typography — H1 > H2 > H3 hierarchy */
.entry-content h2 {
  color: var(--ahn-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 48px 0 10px;
  padding: 0;
}

.entry-content h3 {
  color: var(--ahn-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 32px 0 8px;
  padding: 0;
}

/* Hide comments form - Divi renders despite comment_status closed */
#respond, #comments, .comment-respond, .comments-area { display: none !important; }
