/* =========================================================================
   GNT Wayfarer — Ghost theme
   Design tokens lifted verbatim from tjunior.dreamvacations.com editorial page
   ========================================================================= */

:root {
  /* --- Editorial content palette (your page — unchanged) --- */
  --navy:       #003d6b;   /* primary brand / hero + section backgrounds */
  --teal:       #00a8b4;   /* accent — buttons, tags, eyebrows, CTAs */
  --cyan:       #7ee8f0;   /* highlight — accent words on dark panels */

  /* --- DV chrome palette (header/nav/footer — matches DV site) --- */
  --dv-navy:    #0B2E6A;   /* DV nav link text + headings */
  --dv-blue:    #0677BD;   /* DV accent — buttons, CTA, links */
  --dv-white:   #ffffff;   /* DV header background */

  --card-fill:  #f0fbfc;   /* soft teal card background */
  --card-border:#e0eef0;   /* light card border */
  --border-2:   #d0edf0;   /* featured-card border */
  --ink:        #003d6b;   /* headings */
  --body-1:     #4b6880;   /* primary body grey (on light) */
  --body-2:     #6b7280;   /* secondary body grey (smaller cards) */
  --white:      #ffffff;
  --radius:     16px;
  --radius-sm:  14px;
  --pill:       100px;
  --maxw:       1200px;
  --maxw-prose: 760px;
  --font: 'Open Sans', Arial, Helvetica, sans-serif;
  --sans: 'Open Sans', Arial, Helvetica, sans-serif;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Fraunces headings sitewide — WONK=0 (no wobble), SOFT slightly up for elegance.
   Body, nav, buttons, pills stay Open Sans for contrast + readability. */
h1, h2, h3, .featured-body h2, .feat h2, .card h3, .post-title, .post-header h1 {
  font-family: var(--serif);
  
  font-weight: 700;
  letter-spacing: -0.01em;
}

img { max-width: 100%; }
a { color: var(--navy); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================================
   DV-MATCHED CHROME — header, nav, footer replicate tjunior.dreamvacations.com
   (white bg, Open Sans, navy #0B2E6A links, blue #0677BD accent, sticky)
   Content area below keeps the editorial palette (navy #003d6b / teal #00a8b4).
   ========================================================================= */
.dv-header {
  background: var(--dv-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: rgba(33,37,41,0.1) 0 3px 6px;
  font-family: 'Open Sans', var(--font);
}
.dv-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.dv-logo { display: block; text-decoration: none; }
.dv-logo img { height: 64px; width: auto; display: block; }
.dv-agency {
  display: flex;
  align-items: center;
  gap: 20px;
}
.dv-agency-text { text-align: right; line-height: 1.35; }
.dv-agency-name { font-size: 15px; font-weight: 700; color: var(--dv-navy); }
.dv-agency-phone { font-size: 15px; font-weight: 700; color: var(--dv-blue); text-decoration: none; display: block; }
.dv-agency-loc { font-size: 12px; color: #667; }
.dv-agency-photo { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 2px solid var(--dv-blue); }
.dv-cta {
  display: inline-block;
  background: var(--dv-white);
  border: 2.5px solid var(--dv-blue);
  color: var(--dv-blue);
  text-decoration: none;
  padding: 11px 22px;
  border-radius: var(--pill);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.dv-cta:hover { background: var(--dv-blue); color: var(--dv-white); }

.dv-nav {
  border-top: 1px solid #eef1f5;
  background: var(--dv-white);
}
.dv-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.dv-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.dv-nav a {
  display: inline-block;
  padding: 14px 0;
  text-decoration: none;
  color: var(--dv-navy);
  font-family: 'Open Sans', var(--font);
  font-size: 16px;
  font-weight: 700;
  border-bottom: 3px solid transparent;
}
.dv-nav a:hover { color: var(--dv-blue); border-bottom-color: var(--dv-blue); }
.dv-nav .nav-current a { color: var(--dv-blue); border-bottom-color: var(--dv-blue); }

/* Secondary nav — slim row for the blog's own pages */
.dv-nav-secondary {
  background: #f6f8fa;
  border-top: 1px solid #eef1f5;
}
.dv-nav-secondary ul { gap: 24px; }
.dv-nav-secondary a {
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--dv-blue);
}
.dv-nav-secondary a:hover { color: var(--dv-navy); border-bottom-color: var(--dv-navy); }

/* Two-line stacked nav label (same font/size/weight, centered) */
.dv-nav a.nav-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.15;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Category eyebrow: if more than one prints, show only the first (one-category rule safety net) */
.eyebrow-cat ~ .eyebrow-cat { display: none; }
.tag-pill-cat ~ .tag-pill-cat { display: none; }

/* Category eyebrow rendered as a teal pill (matches the featured-card pill) */
.eyebrow.eyebrow-cat {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--pill);
  font-weight: 700;
  margin-bottom: 10px;
}
.card-body .eyebrow.eyebrow-cat { display: inline-block; }

/* ---------- Shared eyebrow / section label ---------- */
.eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 44px 0 24px;
}
.section-label .eyebrow { white-space: nowrap; }
.section-label .rule {
  flex: 1;
  height: 2px;
  background: var(--teal);
  opacity: 0.3;
}

/* ---------- Home hero (navy panel) ---------- */
.home-hero { margin: 32px 0 48px; }
.home-hero-img {
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  height: 320px;
}
.home-hero-img img { width: 100%; height: 320px; object-fit: cover; display: block; }
.home-hero-body {
  background: var(--navy);
  padding: 36px 40px 40px;
  border-radius: 0 0 var(--radius) var(--radius);
  position: relative;
}

/* ============ E-STYLE HERO (premium photo + gold bar + serif) ============ */
.e-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-color: var(--navy2, #00284a);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
}
.e-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(0,22,45,0.92), rgba(0,22,45,0.38));
  z-index: 1;
}
.e-hero-inner { position: relative; z-index: 2; max-width: 640px; }
.e-bar { width: 60px; height: 5px; background: var(--gold, #FEBD11); margin-bottom: 22px; }
.e-hero .eyebrow {
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  font-family: var(--sans);
}
.e-hero h1 {
  font-family: var(--serif);
  
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  color: #fff;
}
.e-hero h1 .hl { color: var(--cyan); }
.e-hero p {
  font-family: var(--sans);
  font-size: 17px;
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  line-height: 1.6;
  margin: 0 0 26px;
}
.e-hero-archive { min-height: 300px; }
.e-hero-archive .e-hero-inner { max-width: 680px; }

/* Solid white secondary button (teal text) — pairs with teal primary */
.btn-white {
  display: inline-block;
  background: #fff;
  color: var(--teal) !important;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  font-family: var(--sans);
}
.btn-white:hover { background: var(--cream, #F4EDE3); }

/* Certified-members block: white, centered, lower-right of hero */
.cert-block {
  position: absolute;
  right: 56px;
  bottom: 48px;
  text-align: center;
  z-index: 3;
}
.cert-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
  font-family: var(--sans);
}
.cert-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.cert-logos img {
  height: 38px;
  width: auto;
  display: block;
}
.home-hero-body .eyebrow { color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.home-hero-body h1 {
  font-size: 40px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.home-hero-body h1 .hl { color: var(--cyan); }
.home-hero-body p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  line-height: 1.75;
  margin: 0 0 24px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}
.btn-ghost {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.45);
  color: var(--white);
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

/* ---------- Featured post (split card) ---------- */
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-2);
  margin-bottom: 40px;
}
.featured-img { min-height: 260px; }
.featured-img img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; }
.featured-body {
  padding: 32px 30px;
  background: var(--card-fill);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tag-pill {
  display: inline-block;
  align-self: flex-start;
  background: var(--teal);
  color: var(--white);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--pill);
  font-weight: 700;
  margin-bottom: 14px;
}
.featured-body h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 10px;
}
.featured-body .dek {
  font-size: 13px;
  color: var(--body-1);
  line-height: 1.7;
  margin: 0 0 20px;
}
.read-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.read-link:hover { color: var(--teal); }

/* ---------- Post grid (two-up cards) ---------- */
.post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 18px;
  margin-bottom: 48px;
}
.card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-img { display: block; }
.card-img img { width: 100%; height: 170px; object-fit: cover; display: block; }
.card-body { padding: 18px 20px; }
.card-body .eyebrow { display: block; margin-bottom: 8px; }
.card-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin: 0 0 7px;
}
.card-body h3 a { color: var(--navy); text-decoration: none; }
.card-body h3 a:hover { color: var(--teal); }
.card-body .dek {
  font-size: 12px;
  color: var(--body-2);
  line-height: 1.6;
  margin: 0 0 12px;
}
.card-read {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

/* ---------- CTA panel (navy, centered) ---------- */
.cta-panel {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
}
.cta-panel-img img { width: 100%; height: 220px; object-fit: cover; display: block; }
.cta-panel-body {
  background: var(--navy);
  padding: 40px 44px;
  text-align: center;
}
.cta-panel-body .tag-pill { align-self: center; margin-bottom: 18px; }
.cta-panel-body h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin: 0 0 12px;
}
.cta-panel-body p {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.7;
}
.cta-panel-body .btn-primary { padding: 15px 32px; font-weight: 800; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 8px 0 56px;
}
.pagination a {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
}
.pagination .page-number {
  font-size: 12px;
  color: var(--body-2);
  letter-spacing: 1px;
}

/* ---------- Single post ---------- */
.post-hero {
  margin: 32px 0 0;
}
.post-hero-img {
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  height: 340px;
}
.post-hero-img img { width: 100%; height: 340px; object-fit: cover; display: block; }
.post-header {
  background: var(--navy);
  padding: 36px 40px 40px;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 40px;
}
.post-header .eyebrow { color: rgba(255,255,255,0.6); margin-bottom: 12px; display: block; }
.post-header h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}
.post-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.post-content {
  font-size: 17px;
  line-height: 1.8;
  color: #26374a;
  max-width: var(--maxw-prose);
  margin-left: auto;
  margin-right: auto;
}
.post-content h2 { font-size: 26px; font-weight: 800; color: var(--navy); margin: 40px 0 14px; letter-spacing: -0.3px; }
.post-content h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin: 30px 0 10px; }
.post-content a { color: var(--teal); font-weight: 600; }
.post-content img { border-radius: var(--radius-sm); display: block; margin: 28px 0; }
.post-content figure { margin: 28px 0; }
.post-content figcaption { font-size: 13px; color: var(--body-2); font-style: italic; text-align: center; margin-top: 8px; }
.post-content blockquote {
  border-left: 3px solid var(--teal);
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  color: var(--body-1);
  font-style: italic;
}
.post-content ul, .post-content ol { padding-left: 22px; }
.post-content li { margin: 6px 0; }

/* Koenig editor width cards (required by Ghost) */
.post-content :not(.kg-card):not(table) {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.post-content .kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin-left: 50%;
  transform: translateX(-50%);
  max-width: 1100px;
}
.post-content .kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
}
.kg-width-full img { border-radius: 0; }
.kg-gallery-container { display: flex; flex-direction: column; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; }
.kg-gallery-image { margin: 6px; }
.kg-gallery-image img { display: block; width: 100%; height: 100%; }
.kg-bookmark-card { width: 100%; }
.kg-bookmark-container {
  display: flex;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

/* ---------- DV-matched Footer (rich two-column) ---------- */
.dv-footer {
  background: var(--dv-navy);
  color: rgba(255,255,255,0.8);
  padding: 48px 32px 0;
  margin-top: 40px;
  font-family: 'Open Sans', var(--font);
}
.dv-footer-top {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.dv-footer-brand img { height: 54px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; display: block; }
.dv-foot-help { font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.dv-foot-phone { font-size: 26px; font-weight: 800; color: #fff; text-decoration: none; display: block; margin-bottom: 14px; }
.dv-foot-pay {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: var(--pill);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}
.dv-foot-addr { font-size: 13px; line-height: 1.7; margin: 0; color: rgba(255,255,255,0.7); }
.dv-foot-addr a { color: rgba(255,255,255,0.7); text-decoration: none; }
.dv-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.dv-foot-col { display: flex; flex-direction: column; gap: 12px; }
.dv-foot-h { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.dv-foot-col a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 14px; }
.dv-foot-col a:hover { color: #fff; }
.dv-footer-legal {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0 40px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ---------- Wayfarer panel (homepage, above the CTA) ---------- */
.wf-strip {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 36px 40px 40px;
  margin: 8px 0 48px;
}
.wf-strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.wf-strip-title { font-size: 28px; font-weight: 800; color: var(--white); }
.wf-strip-title .hl { color: var(--cyan); }
.wf-strip-sub { font-size: 14px; color: rgba(255,255,255,0.65); margin-top: 4px; }
.wf-strip-all {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.wf-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.wf-chip {
  display: block;
  text-decoration: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 16px 18px;
}
.wf-chip:hover { background: rgba(255,255,255,0.1); border-color: var(--cyan); }
.wf-vol { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); font-weight: 700; margin-bottom: 6px; }
.wf-name { font-size: 15px; color: #fff; font-weight: 600; line-height: 1.3; margin-bottom: 10px; }
.wf-chip-read { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cyan); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .dv-header-inner { padding: 14px 20px; }
  .dv-nav-inner { padding: 0 20px; overflow-x: auto; }
  .dv-nav ul { gap: 20px; flex-wrap: nowrap; white-space: nowrap; }
  .dv-logo img { height: 52px; }
}
@media (max-width: 700px) {
  .featured { grid-template-columns: 1fr; }
  .featured-img img { min-height: 200px; height: 200px; }
  .post-grid { grid-template-columns: 1fr; }
  .home-hero-body h1 { font-size: 30px; }
  .home-hero-body, .post-header { padding: 28px 24px; }
  .e-hero { padding: 32px 24px; min-height: 0; }
  .e-hero h1 { font-size: 34px; }
  .e-hero p { font-size: 15px; }
  .cert-block { position: static; text-align: center; margin-top: 28px; right: auto; bottom: auto; }
  .cert-logos { justify-content: center; }
  .cta-panel-body, .featured-body { padding: 28px 24px; }
  .post-hero-img, .home-hero-img { height: 220px; }
  .post-hero-img img, .home-hero-img img { height: 220px; }
  .dv-agency-text { display: none; }
  .wf-strip { padding: 28px 24px; }
  .wf-chips { grid-template-columns: 1fr; }
  .dv-footer-top { grid-template-columns: 1fr; gap: 30px; }
  .dv-footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 701px) and (max-width: 900px) {
  .wf-chips { grid-template-columns: 1fr 1fr; }
}

/* ---------- Accessibility ---------- */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Stacked nav label for the Extras / Wayfarer's Journal item.
   Pure CSS (no Handlebars): targets Ghost's auto-generated slug class on the
   primary-nav item (any class containing "journal"), hides the original
   single-line text, and injects the two-line version. */
.dv-nav:not(.dv-nav-secondary) li[class*="journal"] a {
  font-size: 0;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
}
.dv-nav:not(.dv-nav-secondary) li[class*="journal"] a::before {
  content: "Extras /\A The Wayfarer's Journal";
  white-space: pre-line;
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}
