/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  background: #ffffff;
  color: #251e40;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
}

/* ── OUTLINE TEXT ────────────────────────────────────────────── */
.outline {
  -webkit-text-stroke: 2px #ffffff;
  color: transparent !important;
}

/* ── OVERLAYS ────────────────────────────────────────────────── */
.hero-overlay,
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(37,30,64,0.2) 0%, rgba(37,30,64,0.6) 100%);
  z-index: 1;
}

/* ── NAV ─────────────────────────────────────────────────────── */
#nav {
  background: #251e40;
  height: 80px;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
}
#nav .nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
}
#nav .nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0; padding: 0;
}
#nav .nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}
#nav .nav-links a:hover { color: #c9a84c; }
#nav .nav-cta {
  background: #c9a84c;
  color: #251e40;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s;
}
#nav .nav-cta:hover { background: #ffffff; }

/* ── HOMEPAGE HERO ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  box-sizing: border-box;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px 80px;
  width: 100%;
  box-sizing: border-box;
}
.hero-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 72px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  margin-bottom: 32px;
  color: #ffffff;
}
.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: #c9a84c;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}
.hero-cta {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1.5px solid #c9a84c;
  padding-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-block;
  transition: color 0.3s;
}
.hero-cta:hover { color: #c9a84c; }

/* ── SCROLL INDICATOR ────────────────────────────────────────── */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 32px;
}
.scroll-line {
  width: 1px;
  height: 0;
  background: rgba(255,255,255,0.7);
  display: block;
  animation: scrollDrop 1.8s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { height: 0;    opacity: 1; }
  50%  { height: 48px; opacity: 1; }
  100% { height: 48px; opacity: 0; }
}

/* ── PAGE HEADERS ────────────────────────────────────────────── */
.page-header {
  position: relative;
  min-height: 520px;
  padding: 80px;
  margin-top: 0px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  background-color: #251e40;
  background-size: cover;
  background-position: center;
}
.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(37,30,64,0.4) 0%, rgba(37,30,64,0.75) 100%);
  z-index: 1;
}
.page-header-left,
.page-header-right {
  position: relative;
  z-index: 2;
}
.page-header-right {
  max-width: 360px;
  padding-bottom: 8px;
}
.header-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  color: #ffffff;
}
.header-eyebrow {
  color: #c9a84c;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}
.header-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  font-weight: 300;
}

/* ── SECTION TYPOGRAPHY ──────────────────────────────────────── */
.section-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 12px;
  display: block;
}
.section-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 0.92;
  text-transform: uppercase;
  color: #251e40;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 48px;
  font-weight: 900;
  text-transform: uppercase;
  color: #251e40;
  letter-spacing: 0.04em;
}
.body-text {
  font-size: 16px;
  line-height: 1.82;
  color: rgba(37,30,64,0.85);
  font-weight: 300;
  margin-top: 20px;
}

/* ── HOMEPAGE CONTENT ────────────────────────────────────────── */
.featured-stories { padding: 80px; }
.section-header { margin-bottom: 48px; }
.stories-grid-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.story-card { display: flex; flex-direction: column; }
.card-image { display: block; overflow: hidden; }
.card-image img {
  width: 100%; height: 220px;
  object-fit: cover;
  transition: transform 0.4s;
}
.card-image:hover img { transform: scale(1.03); }
.card-body {
  padding: 20px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 10px;
}
.card-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  color: #251e40;
  line-height: 1.05;
  margin-bottom: 10px;
}
.card-headline a { text-decoration: none; color: inherit; transition: color 0.3s; }
.card-headline a:hover { color: #c9a84c; }
.card-excerpt {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(37,30,64,0.6);
  font-weight: 300;
}
.card-meta {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: rgba(37,30,64,0.4);
  margin-top: auto;
  padding-top: 16px;
}

/* ── NEWSLETTER ──────────────────────────────────────────────── */
.newsletter {
  background: #251e40;
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.newsletter-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 48px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 0.92;
  margin-bottom: 12px;
}
.newsletter-body {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  margin-top: 12px;
}
.newsletter-right .mc4wp-form { width: 100%; }
.newsletter-right .mc4wp-form-fields {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
.newsletter-right .mc4wp-form-fields input[type="text"],
.newsletter-right .mc4wp-form-fields input[type="email"] {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-bottom: 1px solid rgba(37,30,64,0.1);
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: #251e40;
  background: #ffffff;
  outline: none;
  box-sizing: border-box;
}
.newsletter-right .mc4wp-form-fields input[type="submit"] {
  width: 100%;
  padding: 16px 28px;
  background: #c9a84c;
  color: #251e40;
  border: none;
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}
.newsletter-right .mc4wp-form-fields input[type="submit"]:hover {
  background: #ffffff;
  color: #251e40;
}

/* ── STORIES LAYOUT ──────────────────────────────────────────── */
.stories-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  align-items: start;
  padding: 60px 80px;
}
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.stories-sidebar {
  padding: 0 0 0 40px;
  position: sticky;
  top: 100px;
}
.sidebar-heading {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 16px;
}
.sidebar-section { margin-bottom: 32px; }
.sidebar-cats {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-cats a {
  font-size: 13px;
  color: rgba(37,30,64,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.sidebar-cats a:hover { color: #c9a84c; }
.ad-square {
  width: 100%;
  height: 250px;
  background: rgba(37,30,64,0.04);
  border: 1px dashed rgba(37,30,64,0.15);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── ABOUT PAGE ──────────────────────────────────────────────── */
.origin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid rgba(37,30,64,0.1);
}
.origin-left {
  padding: 80px 64px 80px 80px;
  border-right: 1px solid rgba(37,30,64,0.1);
}
.origin-right { padding: 80px 80px 80px 64px; }
.timeline { margin-top: 40px; }
.timeline-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(37,30,64,0.08);
}
.timeline-year {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: #c9a84c;
}
.timeline-title {
  font-weight: 700;
  font-size: 14px;
  color: #251e40;
  margin-bottom: 4px;
}
.timeline-desc {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(37,30,64,0.6);
  font-weight: 300;
}
.about-image-full {
  width: 100%;
  height: 60vh;
  background-size: cover;
  background-position: center;
  border-top: 3px solid #251e40;
  border-bottom: 3px solid #251e40;
}
.values {
  padding: 80px;
  border-bottom: 1px solid rgba(37,30,64,0.1);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(37,30,64,0.1);
  margin-top: 48px;
}
.value-item {
  padding: 48px 40px;
  border-right: 1px solid rgba(37,30,64,0.1);
  transition: background 0.4s;
}
.value-item:last-child { border-right: none; }
.value-item:hover { background: #251e40; }
.value-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 56px;
  font-weight: 900;
  color: rgba(37,30,64,0.07);
  line-height: 1;
  margin-bottom: 20px;
}
.value-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  color: #251e40;
  margin-bottom: 12px;
}
.value-desc {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(37,30,64,0.55);
  font-weight: 300;
}
.value-item:hover .value-num  { color: rgba(255,255,255,0.9); }
.value-item:hover .value-title { color: #c9a84c; }
.value-item:hover .value-desc  { color: #ffffff; }
.cyca-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #f2f2f0;
  align-items: stretch;
  border-bottom: 1px solid rgba(37,30,64,0.1);
}
.cyca-left { padding: 80px; }
.cyca-right { min-height: 500px; overflow: hidden; }

/* ── CTA STRIP ───────────────────────────────────────────────── */
.cta-strip {
  background: #0d0b14;
  padding: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #ffffff;
}
.cta-strip-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 16px;
}
.cta-strip-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 56px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 0.92;
}
.cta-strip-btns {
  display: flex;
  gap: 24px;
  align-items: center;
}

/* ── PARTNERS ────────────────────────────────────────────────── */
.partner-cta-buttons {
  padding: 48px 80px;
  display: flex;
  gap: 16px;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid rgba(37,30,64,0.08);
}
.partners-section { padding: 60px 80px 80px; }
.partners-flat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.partner-card {
  background: #f2f2f0;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.partner-category {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c9a84c;
}
.partner-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  color: #251e40;
}
.partner-description {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(37,30,64,0.6);
  font-weight: 300;
}
.partner-link {
  font-size: 11px;
  font-weight: 700;
  color: #251e40;
  text-decoration: none;
  border-bottom: 1.5px solid #c9a84c;
  padding-bottom: 3px;
  display: inline-block;
  margin-top: auto;
  transition: color 0.3s;
}
.partner-link:hover { color: #c9a84c; }

/* ── PITCH FORM ──────────────────────────────────────────────── */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 16px;
  border: none;
  border-bottom: 1.5px solid rgba(37,30,64,0.2);
  border-radius: 0;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: #251e40;
  background: #f2f2f0;
  margin-bottom: 8px;
  box-sizing: border-box;
  outline: none;
  appearance: none;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-bottom-color: #251e40;
  background: #eae8f0;
}
.wpcf7-form textarea { height: 180px; resize: vertical; margin-top: 8px; }
.wpcf7-form input[type="submit"] {
  width: 100%;
  background: #251e40;
  color: #ffffff;
  padding: 18px 36px;
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.3s;
}
.wpcf7-form input[type="submit"]:hover { background: #c9a84c; }
.wpcf7-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23251e40' stroke-width='1.5' fill='none' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: #251e40;
  padding: 64px 80px 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 28px;
}
.footer-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,0.35);
  max-width: 220px;
  font-weight: 300;
}
.footer-col-head {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 18px;
}
.footer-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-list a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-list a:hover { color: #c9a84c; }
.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 10px;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.06em;
}
.footer-cyca {
  font-size: 10px;
  color: rgba(255,255,255,0.22);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-cyca:hover { color: #c9a84c; }
/* ── MOBILE ──────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* NAV */
  #nav {
    height: 64px;
    padding: 0 24px;
    flex-wrap: wrap;
  }
  #nav .nav-links {
    display: none;
  }
  #nav .nav-cta {
    display: none;
  }
  #nav .nav-logo {
    font-size: 16px;
  }

  /* HAMBURGER BUTTON */
  #nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
  }
  #nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s;
  }

  /* MOBILE MENU */
  #mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #251e40;
    z-index: 998;
    padding: 24px;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  #mobile-menu.open {
    display: flex;
  }
  #mobile-menu a {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  #mobile-menu a:last-child {
    border-bottom: none;
    color: #c9a84c;
    margin-top: 8px;
  }

  /* HERO */
  .hero { height: 100vh; min-height: 100vh; }
  .hero-content { padding: 0 24px 80px; }
  .hero-headline { font-size: 48px; }

  /* PAGE HEADERS */
  .page-header {
    padding: 24px 24px 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    min-height: 420px;
  }
  .page-header-right { max-width: 100%; }
  .header-headline { font-size: clamp(40px, 10vw, 64px); }

  /* HOMEPAGE CONTENT */
  .featured-stories { padding: 40px 24px; }
  .stories-grid-home {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* NEWSLETTER */
  .newsletter {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 24px;
  }

  /* STORIES PAGE */
  .stories-layout {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }
  .stories-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stories-sidebar { padding: 40px 0 0 0; }

  /* ABOUT PAGE */
  .origin {
    grid-template-columns: 1fr;
  }
  .origin-left {
    padding: 40px 24px;
    border-right: none;
    border-bottom: 1px solid rgba(37,30,64,0.1);
  }
  .origin-right { padding: 40px 24px; }
  .values { padding: 40px 24px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .value-item { padding: 32px 24px; }
  .cyca-section { grid-template-columns: 1fr; }
  .cyca-left { padding: 40px 24px; }
  .cyca-right { min-height: 300px; }
  .about-image-full { height: 40vh; }

  /* CTA STRIP */
  .cta-strip {
    flex-direction: column;
    gap: 40px;
    padding: 48px 24px;
    align-items: flex-start;
  }
  .cta-strip-btns {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }
  .cta-strip-headline { font-size: 40px; }

  /* PARTNERS */
  .partner-cta-buttons {
    padding: 32px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  .partners-section { padding: 40px 24px; }
  .partners-flat-grid { grid-template-columns: 1fr; }

  /* FOOTER */
  footer { padding: 48px 24px 32px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-base {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  /* BODY TEXT LINE HEIGHT FIX */
  .body-text { line-height: 1.7; }
}
/* ==========================================================================
   OFFSHORE MAGAZINE — ARTICLE TEMPLATE (single.php)
   Add to bottom of /wp-content/themes/offshore-theme/assets/css/offshore.css
   or paste into Appearance → Customize → Additional CSS
   ========================================================================== */

/* ── READING PROGRESS BAR ──────────────────────────────────────────────── */
.article-progress-bar {
  position: fixed;
  top: 68px; /* height of nav */
  left: 0;
  z-index: 199;
  height: 2px;
  background: #c9a84c;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── HERO ──────────────────────────────────────────────────────────────── */
.article-hero {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 520px;
  overflow: hidden;
  background-color: #251e40; /* fallback if no image */
  background-size: cover;
  background-position: center 30%;
  /* Parallax — disabled on touch devices below */
  background-attachment: fixed;
}

/* iOS / Android: fixed attachment causes blank heroes — reset to scroll */
@media (hover: none) {
  .article-hero {
    background-attachment: scroll;
  }
}

/* Gradient overlay — dark at bottom for legible title */
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 20, 35, 0.28) 0%,
    rgba(10, 20, 35, 0.0) 38%,
    rgba(10, 20, 35, 0.78) 100%
  );
  z-index: 1;
}

/* Legacy overlay div — kept for backwards compat */
.article-hero-overlay {
  display: none; /* replaced by ::before */
}

.article-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 48px 56px;
}

/* ── BREADCRUMB ─────────────────────────────────────────────────────────── */
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
}
.article-breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s;
}
.article-breadcrumb a:hover { color: #c9a84c; }
.article-breadcrumb > span:last-child { color: #c9a84c; }

/* ── HERO TAG + TITLE ───────────────────────────────────────────────────── */
.article-tag {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 14px;
}

.article-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.92;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: -0.01em;
  max-width: 820px;
  margin: 0;
}

/* ── META BAR ───────────────────────────────────────────────────────────── */
.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  border-bottom: 1px solid rgba(37, 30, 64, 0.1);
  background: #ffffff;
  position: sticky;
  top: 68px;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(37, 30, 64, 0.06);
}

.meta-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.meta-author {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #251e40;
}

.meta-detail {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #8a8a8a;
  letter-spacing: 0.06em;
}

.meta-divider {
  width: 1px;
  height: 18px;
  background: rgba(37, 30, 64, 0.14);
  flex-shrink: 0;
}

.meta-share {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-label {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin-right: 4px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(37, 30, 64, 0.15);
  color: #251e40;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Barlow', sans-serif;
  letter-spacing: 0.06em;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.share-btn:hover {
  background: #251e40;
  color: #ffffff;
  border-color: #251e40;
}

/* ── 3-COLUMN ARTICLE BODY ──────────────────────────────────────────────── */
.article-body {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 60vh;
}

/* ── LEFT SIDEBAR: TOC ──────────────────────────────────────────────────── */
.article-sidebar-left {
  padding: 56px 32px 56px 32px;
  border-right: 1px solid rgba(37, 30, 64, 0.08);
  position: sticky;
  top: calc(68px + 61px); /* nav + meta bar */
  align-self: start;
  height: fit-content;
}

.sidebar-label {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(37, 30, 64, 0.3);
  margin-bottom: 18px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.toc-list a {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(37, 30, 64, 0.45);
  text-decoration: none;
  transition: color 0.3s;
  display: block;
}
.toc-list a:hover { color: #c9a84c; }
.toc-list a.active {
  color: #251e40;
  font-weight: 600;
}

/* ── MAIN CONTENT ───────────────────────────────────────────────────────── */
.article-main {
  padding: 56px 52px;
  border-right: 1px solid rgba(37, 30, 64, 0.08);
  min-width: 0; /* prevent grid blowout */
}

/* ── STANDFIRST ─────────────────────────────────────────────────────────── */
.article-standfirst {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.68;
  color: rgba(37, 30, 64, 0.72);
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(37, 30, 64, 0.1);
}

/* ── BODY TEXT ──────────────────────────────────────────────────────────── */
.article-text p,
.article-text .wp-block-paragraph {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.88;
  color: rgba(37, 30, 64, 0.78);
  margin-bottom: 24px;
}

.article-text h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 30px;
  line-height: 1.0;
  text-transform: uppercase;
  color: #251e40;
  letter-spacing: -0.01em;
  margin: 52px 0 20px;
}

.article-text h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  text-transform: uppercase;
  color: #251e40;
  margin: 40px 0 16px;
}

.article-text strong { font-weight: 600; color: #251e40; }
.article-text em { font-style: italic; }

.article-text a {
  color: #251e40;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(201, 168, 76, 0.5);
  transition: text-decoration-color 0.3s;
}
.article-text a:hover { text-decoration-color: #c9a84c; }

.article-text ul,
.article-text ol {
  margin: 0 0 24px 20px;
}
.article-text li {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(37, 30, 64, 0.78);
  margin-bottom: 8px;
}

/* ── PULL QUOTE ─────────────────────────────────────────────────────────── */
/* Covers both custom .pull-quote class AND WordPress core Quote block */
.article-text .pull-quote,
.article-text blockquote,
.article-text .wp-block-quote {
  margin: 48px 0;
  padding: 40px 0 40px 28px;
  border-left: 3px solid #c9a84c;
  border-top: none;
  border-right: none;
  border-bottom: none;
  background: none;
}

.article-text .pull-quote p,
.article-text blockquote p,
.article-text .wp-block-quote p,
.article-text .wp-block-quote cite {
  margin: 0 !important;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 26px;
  line-height: 1.22;
  color: #251e40;
}

.article-text blockquote cite,
.article-text .wp-block-quote cite,
.article-text .pull-quote cite {
  display: block;
  margin-top: 14px !important;
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a8a8a;
  font-style: normal;
}

/* ── IMAGES WITHIN ARTICLE ──────────────────────────────────────────────── */

/* Standard inline image */
.article-text img,
.article-text .wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Wide image: bleeds beyond column padding */
.article-text .alignwide,
.article-text .wp-block-image.alignwide {
  margin-left: -52px;
  margin-right: -52px;
  width: calc(100% + 104px);
  max-width: none;
}

/* Full-width image (matches .article-img-full from design) */
.article-text .alignfull,
.article-text .wp-block-image.alignfull,
.article-text .article-img-full {
  margin: 48px -52px;
  width: calc(100% + 104px);
  max-width: none;
}

.article-text .article-img-full-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}

/* Caption */
.article-text figcaption,
.article-text .wp-block-image figcaption,
.article-text .article-img-caption {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 11px;
  font-style: italic;
  color: #8a8a8a;
  letter-spacing: 0.04em;
  padding: 10px 0 0;
}
.article-text .alignfull figcaption,
.article-text .article-img-caption {
  padding-left: 52px;
}

/* Two-photo collage gallery */
.article-text .article-img-collage,
.article-text .wp-block-gallery.columns-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin: 48px 0;
}
.article-text .collage-photo,
.article-text .wp-block-gallery.columns-2 .wp-block-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.article-text .collage-photo {
  background-size: cover;
  background-position: center;
}
.article-text .wp-block-gallery.columns-2 .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── ARTICLE END: TAGS + AUTHOR ─────────────────────────────────────────── */
.article-end {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 2px solid #251e40;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.tag-chip {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #251e40;
  border: 1px solid rgba(37, 30, 64, 0.2);
  padding: 6px 14px;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.tag-chip:hover {
  background: #251e40;
  color: #ffffff;
}

.author-block {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px;
  background: #f2f2f0;
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: rgba(37, 30, 64, 0.1);
  flex-shrink: 0;
}

.author-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  color: #251e40;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.author-bio {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(37, 30, 64, 0.6);
  margin: 0;
}

/* ── RIGHT SIDEBAR: RELATED STORIES ─────────────────────────────────────── */
.article-sidebar-right {
  padding: 56px 32px;
}

.sidebar-related-label {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(37, 30, 64, 0.3);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(37, 30, 64, 0.1);
}

.related-card {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(37, 30, 64, 0.08);
}
.related-card:last-child { border-bottom: none; }

.related-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: 12px;
}

.related-photo {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease;
}
.related-card:hover .related-photo { transform: scale(1.04); }

.related-tag {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 7px;
}

.related-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.05;
  text-transform: uppercase;
  color: #251e40;
  text-decoration: none;
  display: block;
  transition: color 0.3s;
}
.related-headline:hover { color: #c9a84c; }

.sidebar-ad-wrap {
  margin-top: 32px;
}

/* ── COMMENTS ───────────────────────────────────────────────────────────── */
.article-comments-section {
  background: #f2f2f0;
  border-top: 1px solid rgba(37, 30, 64, 0.08);
  padding: 64px 40px;
}

/* WordPress native comments within our container */
.article-comments-section .comments-area {
  max-width: 860px;
  margin: 0 auto;
}

.article-comments-section .comments-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 28px;
  text-transform: uppercase;
  color: #251e40;
  border-bottom: 2px solid #251e40;
  padding-bottom: 20px;
  margin-bottom: 40px;
}

.article-comments-section .comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-comments-section .comment {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(37, 30, 64, 0.08);
}

.article-comments-section .comment-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: block;
}

.article-comments-section .comment-author .fn {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #251e40;
  font-style: normal;
}

.article-comments-section .comment-metadata a,
.article-comments-section .comment-metadata time {
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  color: #8a8a8a;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.article-comments-section .comment-content p {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(37, 30, 64, 0.72);
  margin-top: 10px;
}

/* Comment form */
.article-comments-section .comment-form label {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #251e40;
  display: block;
  margin-bottom: 8px;
}

.article-comments-section .comment-form input[type="text"],
.article-comments-section .comment-form input[type="email"],
.article-comments-section .comment-form input[type="url"],
.article-comments-section .comment-form textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(37, 30, 64, 0.15);
  padding: 13px 18px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: #251e40;
  outline: none;
  margin-bottom: 16px;
  transition: border-color 0.3s;
  border-radius: 0;
  appearance: none;
}

.article-comments-section .comment-form input:focus,
.article-comments-section .comment-form textarea:focus {
  border-color: #c9a84c;
}

.article-comments-section .comment-form textarea {
  height: 130px;
  resize: vertical;
}

.article-comments-section .comment-form .submit,
.article-comments-section .form-submit input[type="submit"] {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  background: #251e40;
  border: none;
  padding: 14px 32px;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 0;
}
.article-comments-section .comment-form .submit:hover,
.article-comments-section .form-submit input[type="submit"]:hover {
  background: #c9a84c;
}

/* ── MOBILE: ≤ 768px ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  .article-hero {
    height: 70vh;
    min-height: 420px;
    background-attachment: scroll; /* always scroll on mobile */
  }

  .article-hero-content {
    padding: 0 24px 40px;
  }

  .article-title {
    font-size: clamp(36px, 10vw, 56px);
  }

  .article-meta-bar {
    padding: 16px 24px;
    flex-wrap: wrap;
    gap: 12px;
    position: static; /* unstick on mobile to save space */
  }

  .meta-left {
    gap: 12px;
  }

  /* 3-column collapses to single column */
  .article-body {
    grid-template-columns: 1fr;
  }

  /* TOC sidebar: move above content as horizontal strip */
  .article-sidebar-left {
    position: static;
    border-right: none;
    border-bottom: 1px solid rgba(37, 30, 64, 0.08);
    padding: 24px;
  }

  .toc-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  .toc-list a {
    font-size: 11px;
  }

  .article-main {
    border-right: none;
    padding: 32px 24px;
  }

  /* Full-width images reset for mobile column width */
  .article-text .alignwide,
  .article-text .wp-block-image.alignwide {
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
  }

  .article-text .alignfull,
  .article-text .wp-block-image.alignfull,
  .article-text .article-img-full {
    margin: 40px -24px;
    width: calc(100% + 48px);
  }

  .article-text .alignfull figcaption,
  .article-text .article-img-caption {
    padding-left: 24px;
  }

  .article-text .article-img-collage,
  .article-text .wp-block-gallery.columns-2 {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .article-text .collage-photo,
  .article-text .wp-block-gallery.columns-2 .wp-block-image {
    aspect-ratio: 16 / 9;
  }

  .article-standfirst {
    font-size: 18px;
  }

  .article-text p,
  .article-text .wp-block-paragraph {
    font-size: 16px;
  }

  .author-block {
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 20px;
  }
  .author-avatar {
    width: 56px;
    height: 56px;
  }

  /* Right sidebar: show after content */
  .article-sidebar-right {
    padding: 32px 24px;
    border-top: 1px solid rgba(37, 30, 64, 0.08);
  }

  .article-comments-section {
    padding: 40px 24px;
  }

  .article-comments-section .comment {
    grid-template-columns: 40px 1fr;
    gap: 14px;
  }
}

/* ── TABLET: 769px–1024px ───────────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {

  .article-body {
    grid-template-columns: 180px 1fr 180px;
  }

  .article-sidebar-left {
    padding: 48px 20px;
  }

  .article-main {
    padding: 48px 36px;
  }

  .article-sidebar-right {
    padding: 48px 20px;
  }

  .article-text .alignwide,
  .article-text .wp-block-image.alignwide {
    margin-left: -36px;
    margin-right: -36px;
    width: calc(100% + 72px);
  }

  .article-text .alignfull,
  .article-text .wp-block-image.alignfull,
  .article-text .article-img-full {
    margin: 48px -36px;
    width: calc(100% + 72px);
  }
}