/* ─────────────────────────────────────────────────────────
   AniHive — Single article (Option G · Modular)
   Loads after anihive-homepage.css (depends on its
   CSS variables and .ah-work-card styles).

   Styles Gutenberg core blocks inside .ah-article__body:
     core/paragraph, core/heading
     core/quote, core/pullquote        → honey block
     core/image                        → 1 image / row
     core/gallery (cols=2 / 3)         → 2 / 3 images / row
     core/video                        → 1 video / row, ▶ pill
     core/columns + core/video         → 2 / 3 videos / row
   ───────────────────────────────────────────────────────── */

.ah-article {
  background: var(--ah-paper);
  color: var(--ah-ink);
  font-family: Inter, system-ui, sans-serif;
}
.ah-article * { box-sizing: border-box; }

/* Each <section> inherits the same horizontal container ---------- */
.ah-article > section {
  max-width: 1192px;          /* 1080 content + 56·2 padding */
  margin: 0 auto;
  padding-left: 56px;
  padding-right: 56px;
}

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.ah-article__breadcrumb {
  padding-top: 32px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ah-honey-dark); font-weight: 700;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.ah-article__breadcrumb a { color: inherit; text-decoration: none; transition: color .2s; }
.ah-article__breadcrumb a:hover { color: var(--ah-honey-deep); }
.ah-article__breadcrumb .sep { opacity: .35; }
.ah-article__breadcrumb .current { color: var(--ah-ink); }

/* ── INTRO ──────────────────────────────────────────────────── */
.ah-article__intro { padding-top: 24px; padding-bottom: 32px; }
.ah-article__eyebrow {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ah-honey-dark); font-weight: 700; margin-bottom: 22px;
}
.ah-article__title {
  font-family: "Fraunces", Georgia, serif; font-weight: 400;
  font-size: clamp(56px, 8vw, 112px); line-height: .92;
  letter-spacing: -0.04em; margin: 0 0 22px; color: var(--ah-ink);
}
.ah-article__dot { color: var(--ah-honey-deep); }
.ah-article__subtitle {
  font-family: "Fraunces", Georgia, serif !important; font-style: italic !important; font-weight: 300 !important;
  font-size: 24px !important; line-height: 1.4; color: #3A2E22 !important;
  margin: 0; max-width: 46ch;
  text-wrap: pretty;
}
.ah-article__meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 26px;
  font-size: 12px; color: #7A6850; letter-spacing: .04em;
}
.ah-article__meta strong {
  color: var(--ah-honey-dark); letter-spacing: .16em;
  text-transform: uppercase; font-weight: 700; margin-right: 6px;
  font-size: 11px;
}

/* ── HERO IMAGE ─────────────────────────────────────────────── */
.ah-article__hero { padding-top: 32px; padding-bottom: 56px; }
.ah-article__hero-frame {
  position: relative; border-radius: 14px; overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ah-cream);
  box-shadow: 0 24px 50px rgba(26,20,16,.18);
}
.ah-article__hero-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ah-article__hero-sticker {
  position: absolute; top: 24px; right: 24px;
  background: var(--ah-paper); color: var(--ah-ink);
  padding: 10px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  transform: rotate(4deg);
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  letter-spacing: .04em;
}
.ah-article__hero-caption {
  margin-top: 14px;
  font-family: "Fraunces", Georgia, serif; font-style: italic;
  font-size: 13px; color: #7A6850;
}

/* ── BODY (the_content) ─────────────────────────────────────── */
.ah-article__body { padding-bottom: 48px; }

.ah-article__body > *:first-child { margin-top: 0; }
.ah-article__body > *:last-child  { margin-bottom: 0; }

/* Headings inside body */
.ah-article__body h1,
.ah-article__body h2,
.ah-article__body h3,
.ah-article__body h4,
.ah-article__body h5,
.ah-article__body h6,
.ah-article__body .elementor-heading-title,
.ah-article__body .elementor-widget-heading h1,
.ah-article__body .elementor-widget-heading h2,
.ah-article__body .elementor-widget-heading h3,
.ah-article__body .elementor-widget-heading h4,
.ah-article__body .elementor-widget-heading h5,
.ah-article__body .elementor-widget-heading h6 {
  font-family: "Fraunces", Georgia, serif !important;
  color: var(--ah-ink) !important;
}
.ah-article__body h2,
.ah-article__body .wp-block-heading[id]:where(h2),
.ah-article__body .elementor-widget-heading h2 {
  font-weight: 400 !important;
  font-size: 40px !important; letter-spacing: -.025em; line-height: 1.05;
  margin: 56px 0 20px; max-width: 24ch;
}
.ah-article__body h3,
.ah-article__body .elementor-widget-heading h3 {
  font-weight: 400 !important; font-style: italic !important;
  font-size: 28px !important; letter-spacing: -.02em; line-height: 1.15;
  margin: 40px 0 14px; color: var(--ah-honey-dark) !important;
}
.ah-article__body h4,
.ah-article__body .elementor-widget-heading h4 {
  font-weight: 500 !important;
  font-size: 22px !important; margin: 32px 0 10px;
}

/* Paragraph */
.ah-article__body p,
.ah-article .ah-article__body p,
.ah-article__body .wp-block-paragraph,
.ah-article__body .elementor-widget-text-editor p,
.ah-article__body .elementor-widget-text-editor li,
.ah-article__body .elementor-widget-heading p {
  font-family: "Fraunces", Georgia, serif !important;
  font-weight: 300 !important;
  font-size: 20px !important;
  line-height: 1.65 !important;
  color: var(--ah-ink) !important;
  font-style: normal !important;
  margin: 0 0 20px; max-width: 60ch;
  text-wrap: pretty;
}

/* Force Fraunces onto every inline child too — Elementor / TinyMCE
   wraps pasted text in <span style="font-family:'Segoe UI'..."> without
   !important. External !important + descendant selector beats it. */
.ah-article__body p span,
.ah-article__body p font,
.ah-article__body p em,
.ah-article__body p strong,
.ah-article__body li span,
.ah-article__body li font,
.ah-article__body .elementor-widget-text-editor span,
.ah-article__body .elementor-widget-text-editor font {
  font-family: "Fraunces", Georgia, serif !important;
  font-size: inherit !important;
  color: inherit !important;
}
.ah-article__body p strong,
.ah-article__body li strong { font-weight: 600 !important; }
.ah-article__body p em,
.ah-article__body li em { font-style: italic !important; }

/* Centered / right-aligned paragraphs (Elementor "Align center" or
   Gutenberg has-text-align-*) — also center/right the box itself,
   otherwise the 60ch max-width keeps it pinned to the left while only
   the text inside floats. */
.ah-article__body p[style*="text-align: center"],
.ah-article__body p[style*="text-align:center"],
.ah-article__body p.has-text-align-center,
.ah-article__body .elementor-widget-text-editor.elementor-align-center p,
.ah-article__body .elementor-widget-heading.elementor-align-center p,
.ah-article__body .elementor-widget-text-editor[data-align="center"] p {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: none !important;
  text-align: center !important;
}
.ah-article__body p[style*="text-align: right"],
.ah-article__body p[style*="text-align:right"],
.ah-article__body p.has-text-align-right,
.ah-article__body .elementor-widget-text-editor.elementor-align-right p {
  margin-left: auto !important;
  margin-right: 0 !important;
  max-width: none !important;
  text-align: right !important;
}

.ah-article__body strong { font-weight: 600 !important; color: var(--ah-ink) !important; }
.ah-article__body em     { font-style: italic !important; color: var(--ah-honey-deep) !important; }

/* Drop-cap on first body paragraph (toggle in Customizer) */
.ah-article--dropcap .ah-article__body > p:first-of-type::first-letter {
  float: left; font-family: "Fraunces", Georgia, serif;
  font-weight: 400; font-style: italic;
  font-size: 72px; line-height: .85;
  margin: 6px 12px 0 0;
  color: var(--ah-honey-deep);
}

/* Inline links */
.ah-article__body a {
  color: var(--ah-honey-dark);
  border-bottom: 1px solid var(--ah-honey);
  text-decoration: none;
  transition: color .2s, background .2s;
}
.ah-article__body a:hover { background: rgba(245,184,0,.18); color: var(--ah-ink); }

/* Lists */
.ah-article__body ul, .ah-article__body ol {
  font-family: "Fraunces", Georgia, serif !important; font-weight: 300 !important;
  font-size: 19px !important; line-height: 1.6 !important; color: var(--ah-ink) !important;
  margin: 0 0 24px; padding-left: 24px; max-width: 60ch;
}
.ah-article__body li { margin-bottom: 6px; }
.ah-article__body li::marker { color: var(--ah-honey-deep); }

/* ─── Quote / Pullquote — honey block ──────────────────────── */
.ah-article__body .wp-block-quote,
.ah-article__body .wp-block-pullquote,
.ah-article__body blockquote {
  margin: 48px 0; padding: 48px 56px 44px;
  background: var(--ah-honey); color: var(--ah-ink);
  border-radius: 14px; position: relative; overflow: hidden;
  border: none;
}
.ah-article__body .wp-block-quote::before,
.ah-article__body .wp-block-pullquote::before,
.ah-article__body blockquote::before {
  content: '\201C';                 /* curly opening quote */
  position: absolute; top: 8px; left: 24px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 140px; line-height: .7;
  color: var(--ah-ink);
  pointer-events: none;
}
.ah-article__body .wp-block-quote p,
.ah-article__body .wp-block-pullquote p,
.ah-article__body blockquote p {
  font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 400;
  font-size: clamp(26px, 3.2vw, 38px); line-height: 1.25; letter-spacing: -.01em;
  margin: 0 0 0 72px; max-width: 32ch; color: var(--ah-ink);
  text-wrap: balance;
}
.ah-article__body .wp-block-quote cite,
.ah-article__body .wp-block-pullquote cite,
.ah-article__body blockquote cite {
  display: block; margin: 20px 0 0 72px;
  font-family: Inter, sans-serif; font-style: normal;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: var(--ah-ink);
}
.ah-article__body .wp-block-pullquote { text-align: left; }

/* ─── Image · 1 per row (Gutenberg + Elementor) ─────────────── */
.ah-article__body .wp-block-image {
  margin: 32px 0;
}
.ah-article__body .wp-block-image figure { margin: 0; }
.ah-article__body .wp-block-image img,
.ah-article__body .elementor-widget-image img,
.ah-article__body .elementor-widget-image-box img,
.ah-article__body .elementor-widget-image-carousel img,
.ah-article__body .elementor-image img,
.ah-article__body .elementor-image-gallery img,
.ah-article__body figure.elementor-image-box-img img,
.ah-article__body figure img,
.ah-article__body > img,
.ah-article__body .elementor-element img {
  display: block; max-width: 100%; height: auto;
  border-radius: 12px !important;
}
/* Image wrappers — clip too so the rounded corner shows even when
   Elementor adds a background or border on the parent. */
.ah-article__body .elementor-widget-image .elementor-image,
.ah-article__body .elementor-widget-image .elementor-widget-container,
.ah-article__body .elementor-widget-image figure {
  overflow: hidden;
  border-radius: 12px;
}
.ah-article__body .wp-block-image figcaption,
.ah-article__body .elementor-widget-image figcaption,
.ah-article__body figure figcaption {
  margin-top: 10px;
  font-family: "Fraunces", Georgia, serif; font-style: italic;
  font-size: 13px; color: #7A6850;
  text-align: left;
}

/* ─── Gallery · 2 or 3 per row ─────────────────────────────── */
.ah-article__body .wp-block-gallery {
  display: grid; gap: 16px;
  margin: 32px 0; padding: 0; list-style: none;
}
.ah-article__body .wp-block-gallery.columns-1 { grid-template-columns: 1fr; }
.ah-article__body .wp-block-gallery.columns-2 { grid-template-columns: 1fr 1fr; }
.ah-article__body .wp-block-gallery.columns-3 { grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.ah-article__body .wp-block-gallery.columns-4 { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; }

/* gallery items — works for both old (.blocks-gallery-item) and new (.wp-block-image) markup */
.ah-article__body .wp-block-gallery > * { margin: 0; }
.ah-article__body .wp-block-gallery figure { margin: 0; }
.ah-article__body .wp-block-gallery .blocks-gallery-item,
.ah-article__body .wp-block-gallery .wp-block-image { width: 100%; flex: none; }
.ah-article__body .wp-block-gallery img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 10px;
  aspect-ratio: 4 / 5;
}
.ah-article__body .wp-block-gallery.columns-3 img,
.ah-article__body .wp-block-gallery.columns-4 img { border-radius: 8px; }
.ah-article__body .wp-block-gallery figcaption {
  margin-top: 6px;
  font-family: "Fraunces", Georgia, serif; font-style: italic;
  font-size: 12px; color: #7A6850; text-align: left;
}

/* ─── Video · 1 per row (with honey ▶ pill) ───────────────── */
.ah-article__body .wp-block-video {
  margin: 32px 0; position: relative;
}
.ah-article__body .wp-block-video figure { margin: 0; position: relative; }
.ah-article__body .wp-block-video figure::before {
  content: '▶ video';
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--ah-honey); color: var(--ah-ink);
  padding: 5px 11px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.ah-article__body .wp-block-video video {
  width: 100%; height: auto; display: block;
  border-radius: 12px;
  background: var(--ah-ink);
}
.ah-article__body .wp-block-video figcaption {
  margin-top: 10px;
  font-family: "Fraunces", Georgia, serif; font-style: italic;
  font-size: 13px; color: #7A6850; text-align: left;
}

/* ─── Columns block — used for 2/3 videos per row ─────────── */
.ah-article__body .wp-block-columns {
  margin: 32px 0;
  display: flex; gap: 16px; flex-wrap: wrap;
  align-items: stretch;
}
.ah-article__body .wp-block-columns.is-not-stacked-on-mobile { flex-wrap: nowrap; }
.ah-article__body .wp-block-column {
  flex: 1 1 0; min-width: 200px;
}
.ah-article__body .wp-block-column > *:first-child { margin-top: 0; }
.ah-article__body .wp-block-column > *:last-child  { margin-bottom: 0; }
.ah-article__body .wp-block-column .wp-block-video,
.ah-article__body .wp-block-column .wp-block-image { margin: 0; }
.ah-article__body .wp-block-column .wp-block-video figure::before {
  font-size: 9px; padding: 3px 8px; top: 10px; left: 10px;
}
.ah-article__body .wp-block-column .wp-block-video video,
.ah-article__body .wp-block-column .wp-block-image img { border-radius: 10px; }

/* Embed (YouTube, Vimeo, etc.) — same shape as videos */
.ah-article__body .wp-block-embed { margin: 32px 0; }
.ah-article__body .wp-block-embed iframe,
.ah-article__body .wp-block-embed__wrapper > * {
  border-radius: 12px; max-width: 100%;
}

/* Code / Preformatted (rare but possible) */
.ah-article__body pre {
  background: var(--ah-cream); padding: 18px 20px; border-radius: 10px;
  font-size: 13px; line-height: 1.55; overflow-x: auto;
  border: 1px solid rgba(26,20,16,.10);
}

/* ── CREDITS + CTA ──────────────────────────────────────────── */
.ah-article__credits-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  align-items: stretch;
  padding-top: 56px; padding-bottom: 32px;
  border-top: 1px solid rgba(26,20,16,.22);
}
.ah-article__credits { display: flex; flex-direction: column; }
.ah-article__credits-heading {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ah-honey-dark); font-weight: 700; margin: 0 0 16px;
}
.ah-article__credits dl { margin: 0; display: grid; gap: 0; }
.ah-article__credits-row-item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dotted rgba(26,20,16,.30);
}
.ah-article__credits dt {
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 13px !important; font-weight: 500 !important;
  letter-spacing: .14em !important; text-transform: uppercase !important;
  color: #9A8A72 !important;
}
.ah-article__credits dd {
  font-family: "Fraunces", Georgia, serif !important; font-weight: 500 !important;
  font-size: 15px !important; letter-spacing: .08em !important;
  text-transform: uppercase !important;
  margin: 0; color: var(--ah-ink) !important;
}

.ah-article__cta,
.ah-article .ah-article__cta {
  background: var(--ah-ink) !important;
  color: var(--ah-paper) !important;
  border: 2px solid var(--ah-ink) !important;
  border-radius: 14px !important;
  padding: 28px !important;
  box-shadow: 4px 4px 0 var(--ah-honey-deep) !important;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.ah-article__cta-title {
  font-family: "Fraunces", Georgia, serif !important; font-style: italic !important;
  font-size: 24px !important; line-height: 1.2; margin: 0;
  color: var(--ah-honey) !important;
}
.ah-article__cta-btn,
.ah-article .ah-article__cta-btn,
a.ah-article__cta-btn {
  align-self: flex-start;
  padding: 12px 22px !important;
  background: #F5B802 !important;
  background-color: #F5B802 !important;
  color: var(--ah-ink) !important;
  border: none !important;
  border-radius: 999px !important;
  font-size: 13px !important; font-weight: 700 !important; letter-spacing: .04em !important;
  text-decoration: none !important;
  text-shadow: none !important;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.ah-article__cta-btn:hover {
  transform: translateY(-2px);
  background: #FFC424 !important;
  background-color: #FFC424 !important;
  box-shadow: 0 6px 16px rgba(245,184,2,.45);
}

/* ── MORE FROM THE HIVE ─────────────────────────────────────── */
.ah-article__more { padding-top: 96px; padding-bottom: 100px; }
.ah-article__more-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}
.ah-article__more-title {
  font-family: "Fraunces", Georgia, serif; font-weight: 500;
  font-size: 56px; letter-spacing: -.03em; line-height: 1;
  margin: 0; color: var(--ah-ink);
}
.ah-article__more-title em { font-style: italic; color: var(--ah-honey-deep); }
.ah-article__more-all {
  font-size: 13px; font-weight: 700; color: var(--ah-ink);
  border-bottom: 2px solid var(--ah-honey); padding-bottom: 4px;
  text-decoration: none;
  transition: color .2s;
}
.ah-article__more-all:hover { color: var(--ah-honey-deep); }
.ah-article__more-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.ah-article__more-grid .ah-work-card:nth-child(2n):hover {
  transform: translateY(-10px) rotate(1deg) scale(1.02);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ah-article > section { padding-left: 40px; padding-right: 40px; }
  .ah-article__more-title { font-size: 44px; }
}
@media (max-width: 768px) {
  .ah-article > section { padding-left: 24px; padding-right: 24px; }
  .ah-article__title { font-size: clamp(44px, 11vw, 72px); }
  .ah-article__subtitle { font-size: 20px; }
  .ah-article__body p,
  .ah-article__body h2,
  .ah-article__body ul, .ah-article__body ol { max-width: 100%; }
  .ah-article__body .wp-block-quote p,
  .ah-article__body .wp-block-pullquote p,
  .ah-article__body blockquote p {
    font-size: 22px; margin-left: 56px; max-width: none;
  }
  .ah-article__body .wp-block-quote,
  .ah-article__body .wp-block-pullquote,
  .ah-article__body blockquote { padding: 40px 32px 36px; }
  .ah-article__body .wp-block-quote::before,
  .ah-article__body .wp-block-pullquote::before,
  .ah-article__body blockquote::before { font-size: 96px; left: 16px; }
  .ah-article__body .wp-block-quote cite,
  .ah-article__body .wp-block-pullquote cite,
  .ah-article__body blockquote cite { margin-left: 56px; }
  .ah-article__body .wp-block-gallery.columns-3,
  .ah-article__body .wp-block-gallery.columns-4 { grid-template-columns: 1fr 1fr; }
  .ah-article__body .wp-block-columns { flex-direction: column; }
  .ah-article__credits-row { grid-template-columns: 1fr; }
  .ah-article__more-grid { grid-template-columns: 1fr 1fr; }
  .ah-article__more-title { font-size: 36px; }
}
@media (max-width: 480px) {
  .ah-article__body .wp-block-gallery.columns-2,
  .ah-article__body .wp-block-gallery.columns-3,
  .ah-article__body .wp-block-gallery.columns-4 { grid-template-columns: 1fr; }
  .ah-article__more-grid { grid-template-columns: 1fr; }
  .ah-article--dropcap .ah-article__body > p:first-of-type::first-letter { font-size: 56px; }
}
