/**
 * TNT Article + Feature Styles
 *
 * Covers:
 * - Standard article hero (PHP template)
 * - Full-width template override (Divi feature pages)
 * - Code module elements (tabs, flags, grids, cards, etc.)
 * - CSS Grid (photo grid)
 * - Custom list markers
 */

:root {
  --tnt-pink: #db003a;
  --tnt-pink-dark: #a8002d;
  --tnt-ink: #0a0a0a;
  --tnt-soft: #5a5a5a;
  --tnt-surface: #ffffff;
  --tnt-paper: #f6f4ef;
  --tnt-rule: #e5e5e5;
  --tnt-font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}


/* ═══════════════════════════════════════
   STANDARD ARTICLE HERO (PHP template)
   Generated by single-tnt-article.php.
   Not a Divi section.
   ═══════════════════════════════════════ */

.tnt-hero-section {
  position: relative;
  min-height: 83.5vh;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  margin: 34px 34px 0 34px;
}
body.admin-bar .tnt-hero-section {
  min-height: 79.5vh;
}
.tnt-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.4) 45%,
    rgba(0,0,0,.1) 75%
  );
}
.tnt-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 32px;
  max-width: 60%;
  color: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.tnt-hero__cats {
  display: inline-block;
  background: var(--tnt-pink);
  color: #fff;
  padding: 5px 10px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.tnt-hero__cats a,
.tnt-hero__cats a:visited,
.tnt-hero__cats a:hover {
  color: #fff !important;
  text-decoration: none;
}
.tnt-hero__title {
  font-weight: 800;
  font-size: 85px;
  line-height: 1.1em;
  letter-spacing: .5px;
  margin: 0;
  color: #fff;
}
.tnt-hero__deck {
  font-size: clamp(16px, 1.2vw + 8px, 20px);
  line-height: 1.5;
  margin: 16px 0 0;
  color: rgba(255,255,255,.9);
  max-width: 680px;
}

/* ─── Dark text variant ───
   Triggered by custom field: hero_text = "dark"
   Use on posts with light/bright featured images.
   Same gradient, pink text. */
.tnt-hero--dark .tnt-hero__title {
  color: var(--tnt-pink);
}
.tnt-hero--dark .tnt-hero__deck {
  color: var(--tnt-ink);
}
.tnt-hero--dark .tnt-hero__cats {
  background: var(--tnt-ink);
}

/* ─── Meta bar (flex child, bottom-right of hero) ─── */
.tnt-hero__meta-bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-self: flex-end;
  background: var(--tnt-pink);
  margin-bottom: 43px;
}
.tnt-meta-item {
  padding: 12px 24px;
  color: #fff;
}
.tnt-meta-label {
  display: block;
  font-size: 12px;
  color: #0a0a0a;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}
.tnt-meta-value {
  display: block;
  font-weight: 800;
  font-size: 14px;
  margin-top: 2px;
  color: #fff;
}

/* Article template: hero sits outside #main-content, already full-width */
body.tnt-article #main-content {
  padding-top: 34px !important;
}
body.tnt-article #main-content .container {
  max-width: 100% !important;
  width: auto !important;
  margin-left: 34px;
  margin-right: 34px;
  padding-left: 0;
  padding-right: 0;
}
body.tnt-article #content-area {
  padding-top: 30px;
}
/* Hide duplicate excerpt in the post body — hero already shows it */
body.tnt-article .entry-content > p:first-child.has-excerpt-duplicate,
body.tnt-article .post-meta,
body.tnt-article #left-area > .entry-summary,
body.tnt-article #left-area > .post .entry-summary {
  display: none;
}


/* ═══════════════════════════════════════
   FULL-WIDTH TEMPLATE OVERRIDE
   For Divi feature pages only.
   ═══════════════════════════════════════ */

body.page-template-page-tnt-premium-feature #main-content .container,
body.tnt-feature #main-content .container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.page-template-page-tnt-premium-feature #main-content,
body.tnt-feature #main-content {
  padding-top: 0 !important;
}
body.page-template-page-tnt-premium-feature .et_pb_section,
body.tnt-feature .et_pb_section {
  padding-left: 0;
  padding-right: 0;
}


/* ═══════════════════════════════════════
   CODE MODULE ELEMENTS
   For Divi code modules and shared
   components. Font inherits from theme.
   ═══════════════════════════════════════ */

/* ─── TNT+ flag ─── */
.tnt-flag {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--tnt-pink);
  color: #fff;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  letter-spacing: .04em;
  z-index: 3;
}
.tnt-hero-section .tnt-flag { top: 16px; right: 16px; }

/* ─── Pink tab label ─── */
.tnt-tab {
  display: inline-block;
  background: var(--tnt-pink);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 10px;
}

/* ─── Hero breadcrumb (Divi code module) ─── */
.tnt-hero__top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.tnt-hero__crumb {
  display: flex;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  opacity: .9;
}
.tnt-hero__crumb span:nth-child(2) { opacity: .5; }

/* ─── Hero meta bar (Divi code module version) ─── */
.tnt-hero__meta {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: #fff;
}
.tnt-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tnt-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  border: 1.5px solid #fff;
}
.tnt-author__name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  color: #fff;
}
.tnt-author__role {
  font-size: 12px;
  opacity: .7;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  margin-top: 2px;
}
.tnt-mc__lbl {
  font-size: 12px;
  opacity: .6;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tnt-mc__val {
  font-weight: 800;
  font-size: 16px;
  margin-top: 2px;
  color: #fff;
}
.tnt-mc__val--accent { color: var(--tnt-pink); }

/* ─── Figure caption ─── */
.tnt-cap {
  max-width: 820px;
  margin: 14px auto 0;
  padding: 12px 24px 0;
  display: flex;
  gap: 14px;
  border-top: 1.5px solid var(--tnt-ink);
  color: var(--tnt-ink);
}
.tnt-cap__num {
  font-family: var(--tnt-font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--tnt-pink);
  flex-shrink: 0;
}
.tnt-cap__txt {
  font-size: 14px;
  line-height: 1.5;
  opacity: .85;
}

/* ─── Full-bleed images ─── */
.tnt-fullbleed { margin: 56px 0; }
.tnt-fullbleed img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  display: block;
}

/* ─── Placeholder wireframes (temporary) ─── */
.tnt-ph {
  background: repeating-linear-gradient(135deg, #1f1f1f 0 18px, #2a2a2a 18px 19px);
  position: relative;
  display: flex;
  align-items: flex-end;
  color: #9a9a9a;
  font-family: var(--tnt-font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px;
}
.tnt-ph--medium {
  background: repeating-linear-gradient(135deg, #3a3a3a 0 18px, #4a4a4a 18px 19px);
  color: #ccc;
}
.tnt-ph .tnt-ph__lbl { background: #1f1f1f; padding: 2px 6px; }
.tnt-ph--medium .tnt-ph__lbl { background: #3a3a3a; }

/* ─── Photo grid (CSS Grid) ─── */
.tnt-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 320px 220px;
  gap: 12px;
}
.tnt-grid > .tnt-grid__tall { grid-row: 1 / span 2; }
.tnt-grid > .tnt-grid__wide { grid-column: span 2; }
.tnt-grid .tnt-ph,
.tnt-grid img { width: 100%; height: 100%; object-fit: cover; }
.tnt-grid__note {
  margin-top: 10px;
  font-family: var(--tnt-font-mono);
  font-size: 12px;
  color: #888;
}

/* ─── Route map ─── */
.tnt-map-wrap {
  background: #fff;
  padding: 28px;
  color: var(--tnt-ink);
}
.tnt-map {
  background: var(--tnt-paper);
  padding: 24px 28px;
}
.tnt-map svg { width: 100%; height: auto; display: block; }

/* ─── Trip sheet ─── */
.tnt-trip__row {
  display: grid;
  grid-template-columns: 90px 1fr;
  padding: 10px 0;
  border-bottom: 1px solid var(--tnt-rule);
}
.tnt-trip__row:last-child { border-bottom: none; }
.tnt-trip__row dt {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tnt-soft);
  padding-top: 4px;
  margin: 0;
}
.tnt-trip__row dd {
  font-weight: 600;
  font-size: 15px;
  color: var(--tnt-ink);
  margin: 0;
}
.tnt-trip__h {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tnt-pink);
  margin-bottom: 8px;
}
.tnt-trip__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--tnt-ink);
}
.tnt-trip__list li { padding-left: 16px; position: relative; }
.tnt-trip__list li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--tnt-pink);
  font-weight: 900;
}
.tnt-trip__cta {
  background: var(--tnt-ink);
  color: #fff;
  border: none;
  padding: 12px 18px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-top: 12px;
  min-height: 48px;
}

/* ─── Author card ─── */
.tnt-bio {
  padding: 24px;
  background: var(--tnt-ink);
  color: #fff;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 20px;
  align-items: center;
}
.tnt-bio .tnt-avatar { width: 72px; height: 72px; min-width: 72px; font-size: 26px; }
.tnt-bio__kicker {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tnt-pink);
}
.tnt-bio h3 {
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  margin: 2px 0 6px;
  color: #fff;
}
.tnt-bio p {
  font-size: 14px;
  line-height: 1.5;
  opacity: .8;
  margin: 0;
  max-width: 580px;
  color: #fff;
}
.tnt-bio__btns { display: flex; flex-direction: column; gap: 8px; }
.tnt-bio__btns button {
  padding: 12px 18px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  min-height: 48px;
}
.tnt-bio__btns button:first-child { background: var(--tnt-pink); color: #fff; }
.tnt-bio__btns button:last-child {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
}

/* ─── Related article cards ─── */
.tnt-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tnt-cards article {
  position: relative;
  height: 340px;
  overflow: hidden;
  background: #0a0a0a;
  cursor: pointer;
}
.tnt-cards .tnt-ph,
.tnt-cards img { width: 100%; height: 100%; object-fit: cover; }
.tnt-cards__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 75%);
}
.tnt-cards__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  color: #fff;
}
.tnt-cards h3 {
  font-weight: 800;
  font-size: 22px;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
  color: #fff;
}


/* ═══════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════ */

@media (max-width: 980px) {
  .tnt-hero-section {
    min-height: 85vh;
    margin: 0;
    padding-bottom: 60px;
  }
  body.admin-bar .tnt-hero-section {
    min-height: 80vh;
  }
  .tnt-hero__content { padding: 0 20px; max-width: 80%; }
  .tnt-hero__title { font-size: 48px; }
  .tnt-hero__meta-bar {
    right: 0;
    left: auto;
    flex-wrap: wrap;
  }
  .tnt-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .tnt-grid > .tnt-grid__tall,
  .tnt-grid > .tnt-grid__wide {
    grid-row: auto;
    grid-column: auto;
  }
  .tnt-grid .tnt-ph,
  .tnt-grid img { height: 240px; }
  .tnt-bio { grid-template-columns: 1fr; }
  .tnt-bio .tnt-avatar { width: 56px; height: 56px; min-width: 56px; font-size: 20px; }
  .tnt-cards { grid-template-columns: 1fr; }
  .tnt-cards article { height: 280px; }
  .tnt-fullbleed img { height: 320px; }
  .tnt-hero__meta { gap: 16px; }
  .tnt-trip__row { grid-template-columns: 80px 1fr; }
}

@media (max-width: 480px) {
  .tnt-hero__title { font-size: 36px; }
  .tnt-hero__content { max-width: 100%; }
  .tnt-hero__meta-bar {
    left: 0;
    right: 0;
    flex-direction: row;
    justify-content: center;
  }
  .tnt-cap { flex-direction: column; gap: 4px; }
  .tnt-bio__btns { flex-direction: row; }
  .tnt-bio__btns button { flex: 1; }
}