/**
 * Editorial Article Template — Zenterra Theme
 *
 * Shared styles for long-form editorial blog posts.
 * Used by single-editorial.php / content-single-editorial.php.
 */

.single-post-page .site-main > .single-post-article:only-child {
  margin: 0;
}

.single-post-page .zt-article {
  margin-left: -20px;
  margin-right: -20px;
}

.zt-article {
  --zt-accent: #3e87cb;
  --zt-accent-dark: #2d6ba3;
  --zt-accent-rgb: 62, 135, 203;
  --zt-ink: #343a40;
  --zt-muted: rgba(52, 58, 64, 0.72);
  --zt-line: rgba(52, 58, 64, 0.12);
  --zt-hero-bg: #2E373E;
  --zt-white: #ffffff;
  --zt-off-white: #F7F8F9;
  color: var(--zt-ink);
  background: var(--zt-white);
  font: 400 18px/1.85 "Gotham Book", Arial, sans-serif;
}

.zt-article,
.zt-article * {
  box-sizing: border-box;
}

.zt-article img {
  display: block;
  max-width: 100%;
}

.zt-article a {
  color: inherit;
  text-decoration: none;
}

/* ── Hero ─────────────────────────────── */

.zt-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.zt-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 56px 52px;
  background: var(--zt-hero-bg);
  color: var(--zt-white);
}

.zt-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.zt-hero-meta::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--zt-accent);
  flex-shrink: 0;
}

.zt-hero-category,
.zt-hero-category a {
  color: var(--zt-accent);
  font: 600 11px/1.2 "Gotham Medium", Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.zt-hero-date {
  color: rgba(255, 255, 255, 0.5);
  font: 400 11px/1.2 "Gotham Book", Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.zt-hero h1 {
  margin: 0;
  font: 300 clamp(30px, 3.4vw, 48px)/1.14 "Gotham Light", "Gotham Book", Arial, sans-serif;
  letter-spacing: -0.01em;
}

.zt-hero-subtitle {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.6);
  font: 400 18px/1.5 "Gotham Book", Arial, sans-serif;
}

.zt-hero-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.48);
  font: 400 11px/1.2 "Gotham Book", Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.zt-hero-footer span + span::before {
  content: "\B7";
  margin-right: 8px;
}

.zt-hero-share {
  margin-left: auto;
  color: var(--zt-accent);
  font: 600 11px/1.2 "Gotham Medium", Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.zt-hero-share-panel {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  padding: 14px 18px;
  background: var(--zt-white);
  border: 1px solid var(--zt-line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  z-index: 10;
}

.zt-hero-share-wrap {
  position: relative;
}

.zt-hero-share-wrap.is-open .zt-hero-share-panel {
  display: flex;
  gap: 10px;
}

.zt-hero-share-panel a,
.zt-hero-share-panel a i,
.zt-hero-share-panel a svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--zt-accent);
  transition: background 0.2s ease, color 0.2s ease;
}

.zt-hero-share-panel a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(var(--zt-accent-rgb), 0.38);
  border-radius: 999px;
  background: var(--zt-white);
  font-size: 14px;
}

.zt-hero-share-panel a:hover,
.zt-hero-share-panel a:hover i,
.zt-hero-share-panel a:hover svg {
  background: var(--zt-accent);
  color: var(--zt-white);
}

.zt-hero-share-panel a:hover i,
.zt-hero-share-panel a:hover svg {
  background: transparent;
}

.zt-hero-image {
  overflow: hidden;
}

.zt-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Shell ────────────────────────────── */

.zt-shell {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
}

/* ── Body ─────────────────────────────── */

.zt-body {
  padding: 56px 0 0;
}

.zt-body p {
  margin: 0;
  color: var(--zt-muted);
  line-height: 1.85;
}

.zt-body p + p {
  margin-top: 24px;
}

.zt-body h2 {
  margin: 48px 0 18px;
  color: var(--zt-ink);
  font: 700 clamp(24px, 2.8vw, 34px)/1.12 "Gotham Bold", Arial, sans-serif;
}

.zt-body h2:first-child {
  margin-top: 0;
}

.zt-body a.zt-inline-link {
  color: var(--zt-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.zt-body a.zt-inline-link:hover {
  color: var(--zt-accent-dark);
}

/* ── Figure ───────────────────────────── */

.zt-figure {
  margin: 48px 0;
}

.zt-figure img {
  width: 100%;
  display: block;
}

.zt-figure figcaption {
  margin-top: 14px;
  color: var(--zt-muted);
  font: 400 14px/1.6 "Gotham Book", Arial, sans-serif;
  font-style: italic;
}

/* ── Blockquote ───────────────────────── */

.zt-blockquote {
  margin: 56px 0;
  padding: 0 0 0 28px;
  border-left: 3px solid var(--zt-accent);
}

.zt-blockquote p {
  margin: 0;
  color: var(--zt-ink);
  font: 300 clamp(22px, 2.6vw, 30px)/1.38 "Gotham Light", "Gotham Book", Arial, sans-serif;
  font-style: italic;
}

.zt-blockquote cite {
  display: block;
  margin-top: 20px;
  color: var(--zt-muted);
  font: 400 12px/1.4 "Gotham Medium", Arial, sans-serif;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.zt-blockquote cite span {
  margin-left: 6px;
  font-family: "Gotham Book", Arial, sans-serif;
  letter-spacing: 0.08em;
}

/* ── Awards list ──────────────────────── */

.zt-awards {
  margin: 40px 0;
  padding: 8px 28px;
  list-style: none;
  background: var(--zt-off-white);
  border-top: 1px solid var(--zt-ink);
  border-bottom: 1px solid var(--zt-line);
}

.zt-award-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--zt-line);
}

.zt-award-item:first-child {
  border-top: 0;
}

.zt-award-item h3 {
  margin: 0;
  font: 700 clamp(15px, 1.5vw, 17px)/1.35 "Gotham Bold", Arial, sans-serif;
  color: var(--zt-ink);
  min-width: 0;
}

.zt-award-item h3 a {
  color: inherit;
  text-decoration: none;
}

.zt-award-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.zt-award-item p {
  margin: 0;
  color: var(--zt-muted);
  text-align: right;
  font: 400 14px/1.5 "Gotham Book", Arial, sans-serif;
}

.zt-award-index {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background: var(--zt-accent);
  color: var(--zt-white);
  border-radius: 999px;
  font: 600 10px/1.2 "Gotham Medium", Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── CTA link ─────────────────────────── */

.zt-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--zt-accent);
  font: 600 14px/1.4 "Gotham Medium", Arial, sans-serif;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.zt-cta-link:hover {
  color: var(--zt-accent-dark);
}

/* ── Article footer ───────────────────── */

.zt-article-footer {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 2px solid var(--zt-ink);
}

.zt-article-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.zt-tagline {
  font: 300 18px/1.5 "Gotham Light", "Gotham Book", Arial, sans-serif;
  font-style: italic;
  color: var(--zt-muted);
}

.zt-site-link {
  font: 600 12px/1.2 "Gotham Medium", Arial, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zt-ink);
}

/* ── Latest Stories ───────────────────── */

.zt-latest {
  margin-top: 72px;
  padding: 56px 0 72px;
  background: var(--zt-off-white);
}

.zt-latest-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  font: 600 12px/1.2 "Gotham Medium", Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--zt-muted);
}

.zt-latest-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--zt-line);
}

.zt-latest-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  background: var(--zt-white);
  border-top: 2px solid var(--zt-ink);
  box-shadow: 0 18px 42px rgba(16, 27, 38, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.zt-latest-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(16, 27, 38, 0.1);
}

.zt-latest-card + .zt-latest-card {
  margin-top: 18px;
}

.zt-latest-card-link {
  display: contents;
  color: inherit;
  text-decoration: none;
}

.zt-latest-thumb {
  background: #f6f8fb;
  overflow: hidden;
}

.zt-latest-thumb img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
}

.zt-latest-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 32px;
}

.zt-latest-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.zt-latest-card-cat {
  color: var(--zt-accent);
  font: 600 11px/1.2 "Gotham Medium", Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.zt-latest-card-date {
  color: var(--zt-muted);
  font: 400 13px/1.2 "Gotham Book", Arial, sans-serif;
}

.zt-latest-card-date::before {
  content: "\B7  ";
  margin-right: 2px;
}

.zt-latest-card-title {
  margin: 0;
  font: 700 clamp(22px, 2.2vw, 30px)/1.16 "Gotham Bold", Arial, sans-serif;
  color: var(--zt-ink);
  transition: color 0.2s ease;
}

.zt-latest-card:hover .zt-latest-card-title {
  color: var(--zt-accent);
}

/* ── Carousel ─────────────────────────── */

.zt-carousel {
  position: relative;
  margin: 48px 0;
}

.zt-carousel-viewport {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.zt-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.zt-carousel-slide {
  position: relative;
  margin: 0;
  min-width: 0;
  scroll-snap-align: start;
}

.zt-carousel-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.zt-carousel-slide figcaption {
  margin-top: 14px;
  color: var(--zt-muted);
  font: 400 14px/1.6 "Gotham Book", Arial, sans-serif;
  font-style: italic;
}

.zt-carousel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.zt-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zt-carousel-dots button,
.zt-carousel-nav button {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.zt-carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(52, 58, 64, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.zt-carousel-dots button.is-active {
  background: var(--zt-accent);
  transform: scale(1.15);
}

.zt-carousel-nav {
  display: flex;
  gap: 8px;
}

.zt-carousel-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--zt-white);
  border: 1px solid var(--zt-line);
  color: var(--zt-ink);
  font: 600 12px/1 "Gotham Medium", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.zt-carousel-nav button:hover,
.zt-carousel-nav button:focus-visible {
  background: var(--zt-accent);
  border-color: var(--zt-accent);
  color: var(--zt-white);
}

/* ── Responsive ───────────────────────── */

@media (max-width: 900px) {
  .zt-hero {
    grid-template-columns: 1fr;
  }

  .zt-hero-text {
    order: 2;
    padding: 40px 28px 36px;
  }

  .zt-hero-image {
    order: 1;
    max-height: 380px;
  }

  .zt-award-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .zt-award-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .zt-award-item p {
    text-align: left;
  }
}

@media (max-width: 767px) {
  .zt-article {
    font-size: 16px;
    line-height: 1.75;
  }

  .zt-shell {
    width: calc(100% - 32px);
  }

  .zt-hero h1 {
    font-size: clamp(26px, 6vw, 36px);
  }

  .zt-body {
    padding-top: 36px;
  }

  .zt-blockquote {
    margin: 40px 0;
    padding-left: 20px;
  }

  .zt-figure {
    margin: 36px 0;
  }

  .zt-article-footer-row {
    flex-direction: column;
    gap: 12px;
  }

  .zt-carousel {
    margin: 36px 0;
  }

  .zt-carousel-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .zt-latest-card {
    grid-template-columns: 1fr;
  }

  .zt-latest-thumb img {
    min-height: 180px;
  }

  .zt-latest-card-body {
    padding: 20px 22px;
  }

  .zt-awards {
    padding: 4px 18px;
  }
}
