/* ============================================================
   TV RADAR UK — Main Stylesheet v1.0.0
   Font: Inter (Google Fonts)
   Header: orange-400 #fb923c → pink-500 #ec4899 gradient
   Page BG: blue-400 #60a5fa → green-300 #86efac gradient
   Footer: indigo-900 #1e1b4b
   Accent: yellow-400 #facc15
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand */
  --c-header-from:   #fb923c;
  --c-header-to:     #ec4899;
  --c-footer-bg:     #1e1b4b;
  --c-page-from:     #60a5fa;
  --c-page-to:       #86efac;
  --c-yellow:        #facc15;
  --c-yellow-light:  #fde047;
  --c-yellow-hover:  #eab308;
  --c-pink:          #ec4899;
  --c-orange:        #fb923c;

  /* Indigo scale */
  --c-indigo-100:    #e0e7ff;
  --c-indigo-600:    #4f46e5;
  --c-indigo-700:    #4338ca;
  --c-indigo-900:    #1e1b4b;

  /* Teal (prose links) */
  --c-teal:          #2A94B8;
  --c-teal-dark:     #1C6A8C;

  /* Neutrals */
  --c-white:         #ffffff;
  --c-gray-50:       #f9fafb;
  --c-gray-100:      #f3f4f6;
  --c-gray-200:      #e5e7eb;
  --c-gray-300:      #d1d5db;
  --c-gray-400:      #9ca3af;
  --c-gray-500:      #6b7280;
  --c-gray-600:      #4b5563;
  --c-gray-700:      #374151;
  --c-gray-800:      #1f2937;
  --c-gray-900:      #111827;

  /* Layout */
  --container-max:   1280px;
  --header-h:        72px;
  --radius:          0.5rem;
  --radius-lg:       0.75rem;
  --radius-xl:       1rem;
  --radius-full:     9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / .05);
  --shadow-md:  0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --shadow-xl:  0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);

  /* Transitions */
  --t-fast:  150ms ease;
  --t-base:  200ms ease;
  --t-slow:  300ms ease;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-gray-700);
  background: var(--c-gray-50);
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--c-teal);
  text-decoration: none;
  transition: color var(--t-base);
}
a:hover { color: var(--c-teal-dark); }

ul, ol { list-style: none; }

button, input, textarea, select {
  font: inherit;
}

/* ============================================================
   3. LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px)  { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

/* Full-page wrapper — solid light blue, header is OUTSIDE this div */
.page-wrapper {
  min-height: calc(100vh - var(--header-h));
  background: #7dd3fc;
}

/* White semi-transparent card */
.content-card {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}
@media (min-width: 768px) { .content-card { padding: 2.5rem; } }

/* ============================================================
   4. HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(to right, var(--c-header-from), var(--c-header-to));
  box-shadow: var(--shadow-lg);
  color: white;
  overflow: visible; /* must be visible so dropdowns can escape */
  transition: transform .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: white;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo:hover { color: var(--c-yellow-light); }

.site-logo-icon {
  width: 32px;
  height: 32px;
  color: var(--c-yellow-light);
  flex-shrink: 0;
}

.site-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Desktop nav */
.site-nav { display: none; }
@media (min-width: 768px) { .site-nav { display: block; } }

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.site-nav a {
  color: white;
  font-size: .9375rem;
  font-weight: 500;
  padding: .25rem 0;
  transition: color var(--t-base);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--c-yellow-light);
}

/* Header actions (search + mobile toggle) */
.header-actions {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-shrink: 0;
}

/* Search toggle button */
.header-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: .5rem;
  border-radius: var(--radius);
  transition: background var(--t-base);
  line-height: 1;
}
.header-search-toggle:hover { background: rgba(255,255,255,.12); }
.header-search-toggle svg { display: block; }
.header-search-toggle .search-icon-close { display: none; }
.header-search-toggle.is-open .search-icon-open { display: none; }
.header-search-toggle.is-open .search-icon-close { display: block; }

/* Search dropdown panel */
.header-search {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(to right, var(--c-header-from), var(--c-header-to));
  box-shadow: var(--shadow-lg);
  padding: .75rem 0;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--t-slow), opacity var(--t-slow), visibility var(--t-slow);
  z-index: 98;
}
.header-search.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.header-search-form {
  display: flex;
  gap: .5rem;
}
.header-search-input {
  flex: 1;
  padding: .625rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-family: inherit;
  outline: none;
  background: rgba(255,255,255,.95);
  color: var(--c-gray-800);
}
.header-search-input::placeholder {
  color: var(--c-gray-400);
}
.header-search-input:focus {
  background: white;
  box-shadow: 0 0 0 3px rgba(255,255,255,.3);
}
.header-search-submit {
  padding: .625rem 1.5rem;
  background: var(--c-yellow);
  color: #111;
  border: none;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--t-base);
  white-space: nowrap;
}
.header-search-submit:hover {
  background: var(--c-yellow-hover);
}

/* Mobile toggle */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: .5rem;
  border-radius: var(--radius);
  transition: background var(--t-base);
  line-height: 1;
}
.mobile-menu-toggle:hover { background: rgba(255,255,255,.12); }
.mobile-menu-toggle svg   { width: 24px; height: 24px; display: block; }
@media (min-width: 768px) { .mobile-menu-toggle { display: none; } }

/* ============================================================
   5. MOBILE NAVIGATION
   ============================================================ */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 85vw;
  max-width: 360px;
  bottom: 0;
  z-index: 99;
  background: linear-gradient(to bottom, var(--c-header-from), var(--c-header-to));
  box-shadow: var(--shadow-xl);
  transform: translateX(-110%);
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  transition: transform var(--t-slow), opacity var(--t-slow), visibility var(--t-slow);
}
.mobile-nav.is-open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

/* Mobile search inside drawer */
.mobile-nav-search {
  padding: 1rem 1rem 0;
}
.mobile-search-form {
  display: flex;
  gap: .375rem;
}
.mobile-search-input {
  flex: 1;
  padding: .5rem .75rem;
  border: none;
  border-radius: var(--radius);
  font-size: .875rem;
  font-family: inherit;
  background: rgba(255,255,255,.2);
  color: white;
  outline: none;
}
.mobile-search-input::placeholder { color: rgba(255,255,255,.6); }
.mobile-search-input:focus { background: rgba(255,255,255,.3); }
.mobile-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .5rem;
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: var(--radius);
  color: white;
  cursor: pointer;
  transition: background var(--t-base);
}
.mobile-search-btn:hover { background: rgba(255,255,255,.25); }

.mobile-nav nav { padding: 1rem; }

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  list-style: none;
}

.mobile-nav a {
  display: block;
  padding: .625rem 1rem;
  color: white;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--t-base);
  text-decoration: none;
}
.mobile-nav a:hover { background: rgba(255,255,255,.12); color: white; }

/* ============================================================
   6. HERO
   ============================================================ */
.hero {
  position: relative;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.15);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-inline: 1rem;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,.95);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-inline: auto;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

.hero-icons {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: rgba(255,255,255,.9);
}

.hero-icon-item svg {
  width: 40px;
  height: 40px;
  color: var(--c-yellow-light);
}

/* ============================================================
   6b. TONIGHT HERO (homepage)
   ============================================================ */
.tonight-hero {
  padding: 2rem 0 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.tonight-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}
.tonight-hero-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-lg);
  transition: transform .3s ease, box-shadow .3s ease;
}
.tonight-hero-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}
.tonight-hero-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}
.tonight-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.tonight-hero-card:hover .tonight-hero-image img {
  transform: scale(1.03);
}
.tonight-hero-body {
  padding: 1.5rem 2rem 2rem;
}
.tonight-hero-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: white;
  background: linear-gradient(to right, var(--c-orange), var(--c-pink));
  padding: .25rem .75rem;
  border-radius: var(--radius-full);
  margin-bottom: .75rem;
}
.tonight-hero-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--c-gray-900);
  line-height: 1.25;
  margin-bottom: .5rem;
}
.tonight-hero-excerpt {
  font-size: .9375rem;
  color: var(--c-gray-500);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.tonight-hero-btn {
  display: inline-block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-indigo-600);
  transition: color var(--t-base);
}
.tonight-hero-card:hover .tonight-hero-btn {
  color: var(--c-indigo-700);
}

/* ── Upcoming guides list (full-width stacked cards) ── */
.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}
.upcoming-card {
  display: flex;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.upcoming-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.upcoming-card-image {
  width: 280px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--c-gray-100);
}
.upcoming-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.upcoming-card:hover .upcoming-card-image img {
  transform: scale(1.05);
}
.upcoming-card-body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.upcoming-card-label {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-pink);
  margin-bottom: .35rem;
}
.upcoming-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-gray-900);
  line-height: 1.3;
  margin-bottom: .5rem;
}
.upcoming-card:hover .upcoming-card-title {
  color: var(--c-indigo-700);
}
.upcoming-card-excerpt {
  font-size: .875rem;
  color: var(--c-gray-500);
  line-height: 1.6;
  margin-bottom: .75rem;
  flex: 1;
}
.upcoming-card-link {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--c-indigo-600);
  transition: color var(--t-base);
}
.upcoming-card:hover .upcoming-card-link {
  color: var(--c-indigo-700);
}

/* Mobile: stack image on top */
@media (max-width: 640px) {
  .upcoming-card { flex-direction: column; }
  .upcoming-card-image { width: 100%; aspect-ratio: 16 / 9; }
  .upcoming-card-body { padding: 1rem 1.25rem 1.25rem; }
  .tonight-hero-body { padding: 1rem 1.25rem 1.5rem; }
  .tonight-hero-image { aspect-ratio: 16 / 9; }
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem 2rem;
  height: 2.5rem;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--t-slow);
  white-space: nowrap;
  line-height: 1;
}
.btn-lg {
  height: 2.75rem;
  padding: .75rem 2.5rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--c-yellow);
  color: #111;
}
.btn-primary:hover {
  background: var(--c-yellow-hover);
  color: #111;
  transform: scale(1.05);
}

.btn-secondary {
  background: white;
  color: var(--c-pink);
}
.btn-secondary:hover {
  background: #fef9c3;
  color: var(--c-pink);
}

.btn-indigo {
  background: var(--c-indigo-600);
  color: white;
}
.btn-indigo:hover {
  background: var(--c-indigo-700);
  color: white;
}

/* ============================================================
   8. POST CARDS
   ============================================================ */
.post-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: box-shadow var(--t-slow), transform var(--t-slow);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.post-card > a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 16:9 image */
.post-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-gray-100);
  flex-shrink: 0;
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.post-card:hover .post-card-image img { transform: scale(1.05); }

/* Category badge */
.post-card-category {
  position: absolute;
  bottom: .75rem;
  left: .75rem;
  background: rgba(79,70,229,.9);
  backdrop-filter: blur(4px);
  color: white;
  padding: .375rem 1rem;
  border-radius: var(--radius-full);
  font-size: .8125rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  text-transform: capitalize;
}

/* Card body */
.post-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-gray-800);
  margin-bottom: .75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--t-base);
}
.post-card:hover .post-card-title { color: var(--c-indigo-900); }

.post-card-excerpt {
  font-size: .875rem;
  color: var(--c-gray-600);
  margin-bottom: 1rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8125rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--c-gray-100);
}
.post-card-date  { color: var(--c-gray-500); }
.post-card-more  {
  display: inline-block;
  background: var(--c-orange);
  color: white;
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .875rem;
  border-radius: var(--radius-full);
}
.post-card:hover .post-card-more { background: var(--c-header-to); }

/* ============================================================
   9. SECTION HEADER (title + gradient line)
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.section-header-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--c-gray-800);
  white-space: nowrap;
  flex-shrink: 0;
}
.section-header-line {
  flex: 1;
  height: 3px;
  background: linear-gradient(to right, var(--c-orange), var(--c-pink), transparent);
  border-radius: var(--radius-full);
}

/* On gradient bg (archive header), use white text */
.section-header--light .section-header-title { color: white; }
.section-header--light .section-header-line  {
  background: linear-gradient(to right, rgba(255,255,255,.8), rgba(255,255,255,.2), transparent);
}

/* ============================================================
   10. ARCHIVE / BLOG GRID
   ============================================================ */
.archive-header {
  margin-bottom: 2rem;
}
.archive-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: .5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.archive-description {
  color: rgba(255,255,255,.85);
  font-size: 1.0625rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px)  { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   11. SINGLE POST — 3-COLUMN LAYOUT (TOC | content | sidebar)
   Matching travellon.uk design
   ============================================================ */
.single-post-wrapper {
  padding-block: 1.5rem 4rem;
}

.single-post-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: stretch;
  max-width: 100%;
}
@media (min-width: 1024px) {
  .single-post-layout {
    flex-direction: row;
  }
}

/* ── Left: TOC sidebar (dark card) ── */
.toc-sidebar {
  display: none;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .toc-sidebar {
    display: block;
    width: 220px;
    order: 0;
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    max-height: calc(100vh - var(--header-h) - 3rem);
    overflow-y: auto;
  }
}
.toc-inner {
  background: var(--c-indigo-900);
  border-radius: var(--radius-lg);
  padding: 1rem .75rem;
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  .toc-inner {
    max-height: calc(100vh - var(--header-h) - 4rem);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .toc-inner::-webkit-scrollbar {
    display: none;
  }
}
.toc-heading {
  font-size: .75rem;
  font-weight: 700;
  color: white;
  margin-bottom: .5rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
/* TOC toggle button — hidden; TOC always visible */
.toc-toggle {
  display: none;
}
@media (min-width: 1024px) {
  .toc-heading { display: block; }
}

/* Desktop TOC: vertical list */
#toc-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#toc-container ul ul {
  padding-left: .75rem;
  margin-top: .125rem;
}
#toc-container li {
  margin-bottom: .125rem;
}
#toc-container a {
  display: block;
  padding: .25rem .4rem;
  color: #67e8f9;
  font-size: .6875rem;
  line-height: 1.35;
  border-radius: 4px;
  transition: all var(--t-base);
  text-decoration: none;
}
/* H3 sub-items — white for contrast */
#toc-container ul ul a {
  color: rgba(255,255,255,.85);
  font-size: .625rem;
}
#toc-container ul ul a:hover,
#toc-container ul ul a.is-active {
  color: #ffffff;
}
#toc-container a:hover,
#toc-container a.is-active {
  color: #a5f3fc;
  background: rgba(255,255,255,.08);
}

/* ── Centre: White content card ── */
.post-content-area {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.post-card-wrap {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2rem 2rem 2.5rem;
}
@media (min-width: 768px) {
  .post-card-wrap {
    padding: 2.5rem 3rem 3rem;
  }
}

/* ── Right: Product sidebar (white card) ── */
.product-sidebar {
  width: 100%;
}
@media (min-width: 1024px) {
  .product-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    max-height: calc(100vh - var(--header-h) - 3rem);
    overflow-y: auto;
  }
}
.product-sidebar-inner {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}
.product-sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-gray-900);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--c-gray-100);
}

/* Product sidebar toggle — desktop only, hidden on mobile */
.product-sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: var(--c-gray-900);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0 0 .75rem;
  border-bottom: 2px solid var(--c-gray-100);
  margin-bottom: 1rem;
}
.product-sidebar-toggle svg {
  transition: transform var(--t-base);
}
.product-sidebar-toggle.is-open svg {
  transform: rotate(180deg);
}

/* ── Desktop: toggle hidden, static title shown ── */
@media (min-width: 1024px) {
  .product-sidebar-toggle { display: none; }
  .product-sidebar .product-sidebar-title { display: block; }
}

/* Mobile-only elements: hidden on desktop */
.product-sidebar-close,
.product-sidebar-hint { display: none; }

/* ── Mobile: always-visible fixed bar at bottom ── */
@media (max-width: 1023px) {
  /* Prevent page content being hidden behind the bar */
  .single-post-wrapper {
    padding-bottom: calc(7rem + env(safe-area-inset-bottom));
  }

  /* Fix sidebar to the bottom of the viewport */
  .product-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    width: 100%;
    /* sit above iOS home indicator */
    padding-bottom: env(safe-area-inset-bottom);
  }

  /* Card: rounded top corners, upward shadow */
  .product-sidebar-inner {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .14);
    padding: .75rem 1rem .75rem;
  }

  /* Hide desktop toggle */
  .product-sidebar-toggle { display: none; }

  /* Mobile header row: title + X button top-right */
  .product-sidebar-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .5rem;
  }
  .product-sidebar .product-sidebar-title {
    display: block;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-gray-500);
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  .product-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: white;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--t-base);
    box-shadow: 0 2px 8px rgba(239,68,68,.4);
  }
  .product-sidebar-close:hover { background: #dc2626; }
  .product-sidebar-close svg,
  .product-sidebar-close svg * { pointer-events: none; }

  /* White space at the bottom of the open bar */
  .product-sidebar-inner {
    padding-bottom: 1.25rem;
  }

  /* Pulse animation for the red dot */
  @keyframes sidebar-pulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%       { transform: scale(1.5); opacity: .5; }
  }

  /* Collapsed state: hide product list and X button */
  .product-sidebar.is-collapsed .product-sidebar-content,
  .product-sidebar.is-collapsed .product-sidebar-close {
    display: none;
  }
  .product-sidebar.is-collapsed .product-sidebar-mobile-header {
    margin-bottom: 0;
    justify-content: flex-start;
  }
  .product-sidebar.is-collapsed .product-sidebar-inner {
    padding: .6rem 1rem;
    cursor: pointer;
  }
  .product-sidebar.is-collapsed .product-sidebar-title {
    color: var(--c-indigo-600);
    font-weight: 700;
  }

  /* Finger + dot hint — hidden when open, shown when collapsed */
  .product-sidebar-hint {
    display: none;
    align-items: center;
    gap: .4rem;
    margin-left: auto;
    flex-shrink: 0;
  }
  .product-sidebar.is-collapsed .product-sidebar-hint {
    display: flex;
  }

  @keyframes sidebar-point {
    0%, 100% { transform: translateX(0); }
    50%       { transform: translateX(5px); }
  }
  .product-sidebar-finger {
    font-size: 1.1rem;
    line-height: 1;
    animation: sidebar-point .8s ease-in-out infinite;
  }

  .product-sidebar-dot {
    display: block;
    width: 16px;
    height: 16px;
    background: #ef4444;
    border-radius: 50%;
    flex-shrink: 0;
    animation: sidebar-pulse 1.4s ease-in-out infinite;
  }

  /* Product list: horizontal scroll row — always visible unless collapsed */
  .product-sidebar-content {
    display: block;
  }
  .sidebar-post-list {
    display: flex;
    flex-direction: row;
    gap: .75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: .25rem;
  }
  .sidebar-post-list::-webkit-scrollbar { display: none; }

  /* Each product: compact vertical card */
  .sidebar-post-list li {
    flex: 0 0 auto;
    width: 72px;
    padding: 0;
    border-bottom: none;
    text-align: center;
  }
  .sidebar-product-link {
    flex-direction: column;
    gap: .3rem;
    align-items: center;
  }
  .sidebar-product-thumb {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
  }
  .sidebar-product-name {
    font-size: .65rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Sidebar product items (thumb + name) */
.sidebar-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-post-list li {
  padding: .75rem 0;
  border-bottom: 1px solid var(--c-gray-100);
}
.sidebar-post-list li:last-child { border-bottom: none; }

.sidebar-product-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--c-gray-700);
  text-decoration: none;
  transition: color var(--t-base);
}
.sidebar-product-link:hover { color: var(--c-pink); }

.sidebar-product-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--c-gray-100);
}
.sidebar-product-name {
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.35;
}

/* ============================================================
   12. POST HEADER
   ============================================================ */
.post-header { margin-bottom: 1.75rem; }

.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .875rem;
  background: var(--c-indigo-600);
  color: white;
  font-size: .8125rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--t-base);
}
.category-badge:hover {
  background: var(--c-indigo-700);
  color: white;
}

.post-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--c-indigo-900);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: .875rem;
  color: var(--c-gray-500);
  margin-bottom: 1.5rem;
}
.post-meta-item {
  display: flex;
  align-items: center;
  gap: .375rem;
}
.post-meta svg { width: 14px; height: 14px; }

.post-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 16 / 9;
}
.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   13. POST CONTENT (PROSE)
   ============================================================ */
.post-content {
  color: var(--c-gray-700);
  font-size: 15px;
  line-height: 1.75;
}

.post-content p  { margin-bottom: 1.25rem; }
.post-content ul,
.post-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: .375rem; }

.post-content a {
  color: var(--c-indigo-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-content a:hover { color: var(--c-indigo-700); }

.post-content blockquote {
  border-left: 4px solid var(--c-pink);
  margin: 1.5rem 0;
  padding: .75rem 1.25rem;
  background: #fdf2f8;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--c-gray-600);
}

.post-content strong { font-weight: 700; color: var(--c-gray-800); }
.post-content em     { font-style: italic; }
.post-content code {
  font-family: 'Courier New', monospace;
  background: var(--c-gray-100);
  padding: .125rem .375rem;
  border-radius: .25rem;
  font-size: .875em;
  color: var(--c-pink);
}
.post-content pre {
  background: var(--c-gray-900);
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: .875rem;
  line-height: 1.6;
}
.post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* H2 — Pink banner with flanking lines
   JS in main.js wraps h2 text in <span> on page load */
.post-content h2 {
  position: relative;
  width: 100%;
  margin: 2.5rem 0 1.25rem;
  display: flex;
  align-items: center;
  text-align: center;
  gap: 0;
  font-size: 1.0625rem;
  color: white;
  overflow: hidden;
  max-width: 100%;
}
.post-content h2::before,
.post-content h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--c-pink);
}
.post-content h2 > span {
  display: inline-block;
  background-color: var(--c-pink);
  color: white;
  padding: .625rem 2rem;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.4;
  white-space: normal;
  text-align: center;
  flex-shrink: 0;
  max-width: 100%;
}
@media (max-width: 767px) {
  .post-content h2 > span {
    padding: .5rem 1rem;
    font-size: .8125rem;
  }
}
/* Ensure anchor tags inside H2 inherit span styling */
.post-content h2 > span a,
.post-content h2 a {
  color: white;
  text-decoration: none;
}

/* Fallback when no span (no JS, or plugin-modified headings) */
.post-content h2:not(:has(span)) {
  background: var(--c-pink);
  color: white;
  padding: .625rem 1.25rem;
  border-radius: var(--radius);
  display: block;
  text-align: left;
}
.post-content h2:not(:has(span))::before,
.post-content h2:not(:has(span))::after { display: none; }

/* H3 — Indigo pill */
.post-content h3 {
  display: inline-block;
  background: var(--c-indigo-100);
  color: var(--c-indigo-700);
  padding: .25rem 1rem .375rem;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: .25rem;
  margin: 1.75rem 0 .875rem;
  line-height: 1.4;
}

/* H4 */
.post-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-gray-800);
  margin: 1.5rem 0 .625rem;
}

/* H5, H6 */
.post-content h5,
.post-content h6 {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--c-gray-700);
  margin: 1.25rem 0 .5rem;
}

/* ============================================================
   14. TABLES
   ============================================================ */
.post-content .table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
  min-width: 400px;
}

.post-content table th {
  background: var(--c-indigo-900);
  color: white;
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: .875rem;
  white-space: nowrap;
}
.post-content table th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.post-content table th:last-child  { border-radius: 0 var(--radius-lg) 0 0; }

.post-content table td {
  padding: .625rem 1rem;
  border-bottom: 1px solid var(--c-gray-200);
  vertical-align: top;
  line-height: 1.5;
}

.post-content table tr:nth-child(even) td { background: var(--c-gray-50); }
.post-content table tr:hover td          { background: var(--c-indigo-100); }
.post-content table tr:last-child td     { border-bottom: none; }

/* ============================================================
   15. IMAGES IN CONTENT
   ============================================================ */
.post-content img {
  border-radius: var(--radius-lg);
  margin-block: 1.5rem;
}
.post-content figure {
  margin-block: 1.5rem;
}
.post-content figcaption {
  font-size: .8125rem;
  color: var(--c-gray-500);
  text-align: center;
  margin-top: .5rem;
}
.post-content .wp-block-image,
.post-content .aligncenter {
  text-align: center;
  margin-inline: auto;
}
.post-content .alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
  max-width: 50%;
}
.post-content .alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  max-width: 50%;
}
.post-content::after {
  content: '';
  display: table;
  clear: both;
}

/* iframe / embeds */
.post-content iframe,
.post-content .wp-block-embed__wrapper {
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ============================================================
   16. AMAZON PRODUCT CARD
   ============================================================ */
.amazon-product-card {
  max-width: 320px;
  margin: 1.75rem 0;
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--t-slow), transform var(--t-slow);
}
.amazon-product-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}
.amazon-product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.amazon-product-image {
  background: var(--c-gray-50);
  padding: 1rem;
  text-align: center;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.amazon-product-image img {
  max-width: 160px;
  max-height: 160px;
  width: auto;
  height: auto;
  margin-inline: auto;
}
.amazon-product-info {
  padding: 1rem;
  border-top: 1px solid var(--c-gray-200);
}
.amazon-product-title {
  margin: 0 0 .75rem;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
}
.amazon-product-cta {
  display: inline-block;
  background: var(--c-yellow);
  color: #111;
  padding: .5rem 1.25rem;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #a88734;
  transition: background var(--t-base);
}
.amazon-product-card:hover .amazon-product-cta {
  background: var(--c-yellow-hover);
}
.amazon-product-disclosure {
  font-size: .6875rem;
  color: var(--c-gray-400);
  text-align: center;
  padding: .375rem 1rem;
  margin: 0;
  border-top: 1px solid var(--c-gray-100);
}

/* ============================================================
   17. FLOATING PRODUCT BUTTON (posts > products category)
   ============================================================ */
.featured-product-btn {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  padding: .875rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(220,38,38,.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 2px solid #b91c1c;
  transition: all var(--t-slow);
  white-space: nowrap;
}
.featured-product-btn:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 6px 20px rgba(220,38,38,.55);
  color: #fff;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}
.featured-product-btn svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .featured-product-btn {
    bottom: 1rem;
    padding: .75rem 1.25rem;
    min-width: 180px;
    justify-content: center;
  }
}

/* ============================================================
   18. POST DATE BADGE
   ============================================================ */
.post-updated-date {
  color: var(--c-gray-600);
  font-size: .875rem;
  margin-bottom: 1.5rem;
  padding: .5rem .875rem;
  background: var(--c-gray-50);
  border-left: 3px solid var(--c-teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  display: inline-block;
}
.post-updated-date time { font-weight: 500; }

.affiliate-disclosure {
  font-size: .8125rem;
  color: var(--c-gray-500);
  background: var(--c-gray-50);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius);
  padding: .5rem .875rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.affiliate-disclosure a {
  color: var(--c-indigo-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   18c. DAY GUIDE NAV + SEE-ALSO BOX
   ============================================================ */
.day-guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 2rem 0;
  padding: 1.25rem;
  background: var(--c-gray-50);
  border-radius: var(--radius-lg);
  justify-content: center;
}
.day-guide-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding: .5rem .75rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--c-gray-600);
  background: white;
  border: 1.5px solid var(--c-gray-200);
  transition: all var(--t-base);
  min-width: 70px;
}
.day-guide-link:hover {
  border-color: var(--c-pink);
  color: var(--c-pink);
}
.day-guide-link.current {
  background: linear-gradient(to right, var(--c-orange), var(--c-pink));
  color: white;
  border-color: transparent;
}
.day-guide-link.is-today:not(.current) {
  border-color: var(--c-yellow);
}
.day-guide-link .day-name {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.day-guide-link .day-date {
  font-size: .65rem;
  font-weight: 400;
  opacity: .7;
}

.see-also-box {
  background: linear-gradient(135deg, rgba(251,146,60,.08), rgba(236,72,153,.08));
  border-left: 3px solid var(--c-pink);
  padding: .75rem 1rem;
  margin: 1.25rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .875rem;
}
.see-also-box a {
  color: var(--c-teal);
  font-weight: 600;
  text-decoration: none;
}
.see-also-box a:hover {
  color: var(--c-teal-dark);
  text-decoration: underline;
}

@media (max-width: 540px) {
  .day-guide-nav { gap: .35rem; padding: .75rem; }
  .day-guide-link { min-width: 55px; padding: .4rem .5rem; font-size: .75rem; }
}

/* ============================================================
   19. FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-footer-bg);
  color: white;
  padding-block: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-brand { align-items: flex-start; text-align: left; }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  color: white;
  text-decoration: none;
}
.footer-logo svg     { width: 24px; height: 24px; color: var(--c-yellow); }
.footer-logo-text    { font-size: 1.125rem; font-weight: 700; }
.footer-tagline      { font-size: .875rem; color: rgba(255,255,255,.7); line-height: 1.5; }

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 768px) { .footer-col { align-items: flex-start; } }

.footer-col-title {
  font-size: .9375rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  list-style: none;
}
.footer-links a {
  color: rgba(255,255,255,.7);
  font-size: .875rem;
  text-decoration: none;
  transition: color var(--t-base);
}
.footer-links a:hover { color: var(--c-yellow); }

.footer-social {
  display: flex;
  gap: 1rem;
  list-style: none;
}
.footer-social a {
  color: rgba(255,255,255,.7);
  transition: color var(--t-base);
}
.footer-social a:hover { color: var(--c-yellow); }
.footer-social svg { width: 22px; height: 22px; display: block; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom a {
  color: rgba(255,255,255,.5);
  text-decoration: underline;
}
.footer-bottom a:hover { color: rgba(255,255,255,.8); }
.footer-affiliate-disclosure {
  margin-top: .75rem;
  font-size: .75rem;
  color: rgba(255,255,255,.35);
}

/* ============================================================
   20. HOMEPAGE — TROPICAL SCROLL EXPERIENCE
   ============================================================ */

/* Fixed tropical gradient that shifts colour as you scroll past it */
/* Sections on homepage */
.home-section {
  padding-block: 3rem;
  background: #fff;
}
.home-section--tinted {
  background: #f9fafb;
}

/* ── Section heading ── */
.home-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid rgba(0,0,0,.08);
  padding-bottom: .6rem;
  margin-bottom: 0;
}
/* Gradient text title — matches brand header energy */
.home-section-title {
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: linear-gradient(to right, var(--c-orange), var(--c-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0;
}
.section-header-link {
  font-size: .75rem;
  font-weight: 600;
  color: var(--c-indigo-600);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  border: 1.5px solid rgba(79,70,229,.35);
  border-radius: var(--radius-full);
  padding: .2rem .7rem;
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base);
}
.section-header-link:hover {
  background: var(--c-indigo-600);
  color: white;
  border-color: var(--c-indigo-600);
}

/* ── Post list: thumbnail-left rows ── */
.post-list { display: flex; flex-direction: column; }

.post-list-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: .875rem 0 .875rem .5rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
  border-left: 3px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: border-color .25s, background .25s;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.post-list-item:hover {
  border-left-color: var(--c-orange);
  background: rgba(251,146,60,.04);
}
.post-list-item:last-child { border-bottom: none; }

.post-list-thumb {
  width: 110px;
  height: 82px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--c-gray-100);
}
.post-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.post-list-item:hover .post-list-thumb img { transform: scale(1.06); }
.post-list-no-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fb923c33, #ec489933);
}

.post-list-body { flex: 1; min-width: 0; }

/* Hot gradient pill category badge */
.post-list-category {
  display: inline-block;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: white;
  background: linear-gradient(to right, var(--c-orange), var(--c-pink));
  padding: .15rem .5rem;
  border-radius: 3px;
  margin-bottom: .3rem;
  line-height: 1.4;
}

.post-list-title {
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-gray-900);
  margin-bottom: .3rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.post-list-item:hover .post-list-title { color: var(--c-indigo-700); }
.post-list-meta { font-size: .75rem; color: var(--c-gray-400); }

/* ── Two-column list on desktop ── */
.post-list-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 2.5rem;
}
@media (min-width: 900px) { .post-list-2col { grid-template-columns: 1fr 1fr; } }

/* 4-col grid variant (archive pages) */
.posts-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px)  { .posts-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts-grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Keep legacy featured-section class working */
/* ============================================================
   20b. FEATURED DESTINATIONS SECTION (homepage, legacy)
   ============================================================ */
.featured-section {
  padding-block: 4rem;
  background: linear-gradient(to right, #86efac, #67e8f9);
}
.featured-section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--c-indigo-900);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ============================================================
   21. CTA SECTION
   ============================================================ */
.cta-section {
  padding-block: 5rem;
  background: linear-gradient(to right, var(--c-yellow), #f97316, var(--c-pink));
  text-align: center;
  color: white;
}
.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}
.cta-text {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-inline: auto;
  color: rgba(255,255,255,.9);
}
.cta-icons {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.cta-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: rgba(255,255,255,.9);
}
.cta-icon-item svg {
  width: 40px;
  height: 40px;
  color: white;
}

/* ============================================================
   21. FORMS & SEARCH
   ============================================================ */
.search-form {
  display: flex;
  gap: .5rem;
  width: 100%;
  max-width: 480px;
}
.search-input {
  flex: 1;
  padding: .625rem 1rem;
  border: 1px solid var(--c-gray-300);
  border-radius: var(--radius);
  font-size: .9375rem;
  outline: none;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.search-input:focus {
  border-color: var(--c-indigo-600);
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
.search-submit {
  padding: .625rem 1.25rem;
  background: var(--c-indigo-600);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t-base);
  white-space: nowrap;
}
.search-submit:hover { background: var(--c-indigo-700); }

/* ============================================================
   22. PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 3rem;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: .75rem;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--t-base);
}
.pagination a {
  background: white;
  color: var(--c-indigo-600);
  border: 1px solid var(--c-gray-200);
  box-shadow: var(--shadow-sm);
}
.pagination a:hover {
  background: var(--c-indigo-600);
  color: white;
  border-color: var(--c-indigo-600);
}
.pagination .current,
.pagination span.current {
  background: var(--c-indigo-600);
  color: white;
  border: 1px solid var(--c-indigo-600);
}
.pagination .dots {
  background: transparent;
  color: var(--c-gray-400);
  border: none;
  box-shadow: none;
}

/* ============================================================
   23. RELATED POSTS
   ============================================================ */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-gray-200);
}
.related-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (min-width: 640px) {
  .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .related-posts-grid { grid-template-columns: repeat(3, 1fr); }
}
.related-post-item a {
  display: flex;
  gap: .75rem;
  align-items: center;
  color: var(--c-gray-700);
  text-decoration: none;
  padding: .75rem;
  border-radius: var(--radius-lg);
  transition: background var(--t-base);
}
.related-post-item a:hover { background: var(--c-gray-50); }
.related-post-thumb {
  width: 72px;
  height: 56px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}
.related-post-title {
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-gray-800);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--t-base);
}
.related-post-item a:hover .related-post-title { color: var(--c-pink); }

/* ============================================================
   24. 404 & EMPTY STATES
   ============================================================ */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}
.error-code {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--c-orange), var(--c-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}
.error-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--c-gray-800);
  margin-bottom: 1rem;
}
.error-message {
  color: var(--c-gray-600);
  margin-bottom: 2rem;
  max-width: 400px;
  margin-inline: auto;
}

/* ============================================================
   25. UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
.text-center  { text-align: center; }
.mt-0         { margin-top: 0; }
.no-results   { color: var(--c-gray-500); font-size: 1.0625rem; padding: 2rem 0; }

/* Spinner */
.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--c-gray-200);
  border-top-color: var(--c-indigo-600);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin-inline: auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Pulse skeleton */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}
.skeleton { animation: pulse 1.5s cubic-bezier(.4,0,.6,1) infinite; }
.skeleton-line {
  height: 1rem;
  background: var(--c-gray-200);
  border-radius: var(--radius-full);
  margin-bottom: .5rem;
}

/* ============================================================
   26. FIXES & ADDITIONS — align with PHP templates
   ============================================================ */

/* page-wrapper override removed — set in section 3 */

/* Hero: blue/steel-blue gradient matching travellon.uk screenshot */
.hero {
  background: linear-gradient(to bottom, #6b8db5, #5a9aaf);
}

/* Desktop nav — overflow visible so dropdowns can escape the header */
.site-nav {
  flex: 1 1 0;
  overflow: visible;
  margin-left: 1.5rem;
}
.site-nav > ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
  overflow: visible;
}
.site-nav > ul > li {
  flex-shrink: 0;
}
.site-nav > ul > li > a {
  color: white;
  font-size: .8125rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  padding: .25rem 0;
  transition: color var(--t-base);
}
.site-nav > ul > li > a:hover,
.site-nav > ul > li.current-menu-item > a,
.site-nav > ul > li.current_page_item > a {
  color: var(--c-yellow-light);
}
@media (max-width: 767px) { .site-nav { display: none; } }

/* ── Dropdown sub-menus ──
   Key rules:
   - site-header must be overflow:visible (set above)
   - li must be position:relative for absolute child to anchor to it
   - sub-menu z-index must beat everything on the page
──────────────────────────────────────────────────────── */
.site-nav > ul > li {
  position: relative;
}

/* Hidden by default */
.site-nav ul.sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  min-width: 180px;
  background: #ffffff;
  border-radius: 0 0 6px 6px;
  border-top: 3px solid #ec4899;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 9999;
}

/* Show on hover */
.site-nav > ul > li:hover > ul.sub-menu,
.site-nav > ul > li:focus-within > ul.sub-menu {
  display: block !important;
}

/* Sub-menu links */
.site-nav ul.sub-menu li a {
  display: block;
  padding: 8px 18px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  background: transparent;
  transition: background 150ms ease, color 150ms ease;
}
.site-nav ul.sub-menu li a:hover {
  background: #e0e7ff;
  color: #4338ca;
}

/* ── Menu icons (add CSS classes in Appearance > Menus) ──
   Enable "CSS Classes" via Screen Options at top of Menus page.
   Classes: menu-icon-destinations, menu-icon-experiences, menu-icon-cuisine
──────────────────────────────────────────────────────── */
.site-nav li[class*="menu-icon-"] > a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.site-nav li[class*="menu-icon-"] > a::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* Destinations — Lucide Landmark */
.site-nav li.menu-icon-destinations > a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' x2='21' y1='22' y2='22'/%3E%3Cline x1='6' x2='6' y1='18' y2='11'/%3E%3Cline x1='10' x2='10' y1='18' y2='11'/%3E%3Cline x1='14' x2='14' y1='18' y2='11'/%3E%3Cline x1='18' x2='18' y1='18' y2='11'/%3E%3Cpolygon points='12 2 20 7 4 7'/%3E%3C/svg%3E");
}

/* Experiences — Lucide Umbrella */
.site-nav li.menu-icon-experiences > a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12a10.06 10.06 0 0 0-20 0Z'/%3E%3Cpath d='M12 12v8a2 2 0 0 0 4 0'/%3E%3Cpath d='M12 2v1'/%3E%3C/svg%3E");
}

/* Cuisine — Lucide Fan */
.site-nav li.menu-icon-cuisine > a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.827 16.379a6.082 6.082 0 0 1-8.618-7.002l5.412 1.45a6.082 6.082 0 0 1 7.002-8.618l-1.45 5.412a6.082 6.082 0 0 1 8.618 7.002l-5.412-1.45a6.082 6.082 0 0 1-7.002 8.618l1.45-5.412Z'/%3E%3Cpath d='M12 12v.01'/%3E%3C/svg%3E");
}

/* Down-arrow on parent items */
.site-nav > ul > li.menu-item-has-children > a::after {
  content: ' ▾';
  font-size: .6em;
  opacity: .75;
  vertical-align: middle;
}

/* Mobile nav: WordPress ul output */
.mobile-nav > nav > ul {
  display: flex;
  flex-direction: column;
  gap: .125rem;
  list-style: none;
  margin: 0;
  padding: 1rem;
}
.mobile-nav > nav > ul > li {
  position: relative;
}
.mobile-nav > nav > ul > li > a {
  display: block;
  padding: .625rem 1rem;
  color: white;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--t-base);
  text-decoration: none;
}
.mobile-nav > nav > ul > li > a:hover {
  background: rgba(255,255,255,.12);
  color: white;
}

/* Accordion toggle button */
.mobile-submenu-toggle {
  position: absolute;
  top: .375rem;
  right: .5rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: var(--radius);
  color: white;
  cursor: pointer;
  transition: transform var(--t-base), background var(--t-base);
}
.mobile-submenu-toggle:hover {
  background: rgba(255,255,255,.25);
}
.submenu-open > .mobile-submenu-toggle {
  transform: rotate(180deg);
}

/* Sub-menu hidden by default on mobile */
.mobile-nav .sub-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0 0 .5rem 1rem;
}
.mobile-nav .submenu-open > .sub-menu {
  display: flex;
  flex-direction: column;
  gap: .125rem;
}
.mobile-nav .sub-menu a {
  display: block;
  padding: .5rem 1rem;
  color: rgba(255,255,255,.85);
  font-size: .875rem;
  font-weight: 400;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--t-base);
}
.mobile-nav .sub-menu a:hover {
  background: rgba(255,255,255,.12);
  color: white;
}

/* Footer widget title (from WordPress widget area before_title) */
.footer-widget-title {
  font-size: .9375rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

/* Footer inner grid wrapper (class="footer-inner container") */
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: repeat(3, 1fr); }
}
/* Also works when class="footer-grid" */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr auto; }
}
/* 2-col variant matching travellon.uk homepage footer */
.footer-grid--two {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid--two { grid-template-columns: 1fr auto; }
}
.footer-col--right {
  text-align: center;
}
@media (min-width: 768px) {
  .footer-col--right { text-align: right; }
}
.footer-col--right .footer-social {
  justify-content: center;
}
@media (min-width: 768px) {
  .footer-col--right .footer-social { justify-content: flex-end; }
}

/* Post nav (prev/next within single) */
.post-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-gray-200);
}
.post-nav-link {
  display: inline-block;
  color: var(--c-indigo-600);
  font-weight: 500;
  font-size: .9375rem;
  text-decoration: none;
  transition: color var(--t-base);
}
.post-nav-link:hover { color: var(--c-pink); }

/* Sidebar post list */
.sidebar-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-post-list li {
  border-bottom: 1px solid var(--c-gray-100);
  padding: .5rem 0;
}
.sidebar-post-list li:last-child { border-bottom: none; }
.sidebar-post-list a {
  color: var(--c-gray-700);
  font-size: .875rem;
  text-decoration: none;
  line-height: 1.4;
  display: block;
  transition: color var(--t-base);
}
.sidebar-post-list a:hover { color: var(--c-pink); }

/* Post card no-image placeholder */
.post-card-no-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--c-indigo-100), var(--c-gray-200));
}

/* Page wrapper padding (applied to main content) */
.site-main {
  padding-bottom: 4rem;
}

/* single-post-wrapper top padding */
.single-post-wrapper {
  padding-top: 0;
}
.single-post-wrapper .post-header {
  padding-top: 2rem;
}

/* Ensure post content links are clearly clickable */
.post-content a,
.post-content a:visited {
  position: relative;
  z-index: 1;
}

/* Table wrapper (added by JS) */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
.table-wrap table {
  margin: 0;
}

/* WordPress search form defaults */
.wp-block-search__input,
.search-field {
  flex: 1;
  padding: .625rem 1rem;
  border: 1px solid var(--c-gray-300);
  border-radius: var(--radius);
  font-size: .9375rem;
  font-family: inherit;
  outline: none;
}
.search-field:focus {
  border-color: var(--c-indigo-600);
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
.search-submit {
  padding: .625rem 1.25rem;
  background: var(--c-indigo-600);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--t-base);
}
.search-submit:hover { background: var(--c-indigo-700); }

/* WordPress default alignment helpers */
.alignleft  { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }

/* WordPress captions */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .8125rem; color: var(--c-gray-500); text-align: center; margin-top: .375rem; }

/* ── Author box (E-E-A-T enhanced) ── */
.author-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--c-gray-50);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 639px) {
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
.author-avatar-link {
  flex-shrink: 0;
}
.author-avatar-link img,
.author-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--c-indigo-100);
  transition: border-color var(--t-base);
}
.author-avatar-link:hover img {
  border-color: var(--c-pink);
}
.author-label {
  font-size: .75rem;
  color: var(--c-gray-500);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.author-name {
  margin: .15rem 0 .25rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-gray-900);
}
.author-name a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-base);
}
.author-name a:hover {
  color: var(--c-indigo-600);
}
.author-job-title {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--c-indigo-600);
  margin-bottom: .5rem;
}
.author-bio {
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--c-gray-600);
  margin: 0 0 .75rem;
}
.author-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .75rem;
}
@media (max-width: 639px) {
  .author-badges { justify-content: center; }
}
.author-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 500;
  color: var(--c-gray-700);
  background: white;
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-full);
  padding: .25rem .75rem;
}
.author-badge svg {
  color: var(--c-indigo-600);
  flex-shrink: 0;
}
.author-socials {
  display: flex;
  gap: .5rem;
}
@media (max-width: 639px) {
  .author-socials { justify-content: center; }
}
.author-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-gray-200);
  color: var(--c-gray-600);
  transition: background var(--t-base), color var(--t-base);
}
.author-social-icon:hover {
  background: var(--c-indigo-600);
  color: white;
}
.author-social-icon svg {
  width: 16px;
  height: 16px;
}

/* ── Author profile page ── */
.author-profile-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .author-profile-card { padding: 2.5rem 3rem; }
}
.author-profile-top {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
@media (max-width: 639px) {
  .author-profile-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
.author-profile-avatar {
  flex-shrink: 0;
}
.author-profile-avatar img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--c-indigo-100);
}
@media (max-width: 639px) {
  .author-profile-avatar img {
    width: 120px;
    height: 120px;
  }
}
.author-profile-details {
  flex: 1;
  min-width: 0;
}
.author-profile-name {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--c-indigo-900);
  margin: 0 0 .25rem;
  line-height: 1.2;
}
.author-profile-job {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--c-indigo-600);
  margin: 0 0 .75rem;
}
.author-profile-bio {
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--c-gray-600);
  margin: 0 0 1rem;
}
.author-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 639px) {
  .author-expertise { justify-content: center; }
}
.expertise-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 500;
  color: var(--c-indigo-700);
  background: var(--c-indigo-100);
  padding: .25rem .75rem;
  border-radius: var(--radius-full);
}
.author-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 639px) {
  .author-stats { justify-content: center; }
}
.author-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.author-stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-indigo-900);
  line-height: 1.2;
}
.author-stat-label {
  font-size: .75rem;
  color: var(--c-gray-500);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.author-profile-socials {
  display: flex;
  gap: .625rem;
}
@media (max-width: 639px) {
  .author-profile-socials { justify-content: center; }
}
.author-profile-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-gray-100);
  color: var(--c-gray-600);
  transition: background var(--t-base), color var(--t-base);
}
.author-profile-social-icon:hover {
  background: var(--c-indigo-600);
  color: white;
}
.author-profile-social-icon svg {
  width: 18px;
  height: 18px;
}

/* Gutenberg block styles reset (don't let WP blocks override our design) */
.wp-block-table table { min-width: auto; }
.wp-block-table { overflow-x: auto; }

/* Fix: make sure nothing blocks pointer events on content */
.page-wrapper,
.site-main,
.container,
.post-content-area,
.post-content {
  pointer-events: auto;
}

/* ── Recently Updated section (footer widget) ── */
.recently-updated {
  background: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 100%);
  padding: 3rem 0 3.5rem;
}
.recently-updated-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px)  { .recently-updated-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  { .recently-updated-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .recently-updated-grid { grid-template-columns: repeat(6, 1fr); } }

/* Compact cards for 6-column layout */
@media (min-width: 1200px) {
  .recently-updated-grid .post-card-body { padding: 1rem; }
  .recently-updated-grid .post-card-title { font-size: .875rem; -webkit-line-clamp: 2; }
  .recently-updated-grid .post-card-meta { font-size: .75rem; }
  .recently-updated-grid .post-card-more { font-size: .6875rem; padding: .2rem .625rem; }
}

/* ── Image lightbox ── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: .25rem;
}
.post-content a > img,
.post-content img:not([class*="sidebar"]) {
  cursor: zoom-in;
}

/* Affiliate disclosure */
.affiliate-disclosure {
  font-size: .65rem;
  color: rgba(255,255,255,.25);
  text-align: center;
  margin: 1.25rem 0 0;
  padding: 0;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}

/* ============================================================
   Sticky Bottom Bar — HBO Max Promo
   ============================================================ */
.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, var(--c-indigo-900), var(--c-indigo-700));
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 -4px 20px rgb(0 0 0 / .25);
  transition: transform .3s ease;
}
.sticky-bottom-bar.is-hidden {
  transform: translateY(100%);
  pointer-events: none;
}
.sticky-bottom-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sticky-bottom-text {
  color: #fff;
  font-size: .95rem;
  white-space: nowrap;
}
.sticky-bottom-cta {
  display: inline-block;
  background: var(--c-yellow);
  color: var(--c-indigo-900);
  font-weight: 700;
  font-size: .85rem;
  padding: 8px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, transform .2s;
}
.sticky-bottom-cta:hover {
  background: var(--c-yellow-hover);
  transform: scale(1.05);
  color: var(--c-indigo-900);
}
.sticky-bottom-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.sticky-bottom-close:hover { color: #fff; }

body { padding-bottom: 56px; }

@media (max-width: 640px) {
  .sticky-bottom-bar { padding: 8px 10px; }
  .sticky-bottom-text { font-size: .8rem; }
  .sticky-bottom-cta { font-size: .75rem; padding: 6px 14px; }
  .sticky-bottom-close { right: 4px; font-size: 1.2rem; }
}

/* ============================================================
   HBO Max Offer Section
   ============================================================ */
.hbo-offer-section {
  background: var(--c-indigo-900);
  padding: 3rem 1rem;
  text-align: center;
}
.hbo-offer-inner {
  max-width: 640px;
  margin: 0 auto;
}
.hbo-offer-badge {
  display: inline-block;
  background: var(--c-yellow);
  color: var(--c-indigo-900);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.hbo-offer-title {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 .5rem;
}
.hbo-offer-desc {
  color: var(--c-indigo-100);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}
.hbo-offer-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--c-yellow), var(--c-yellow-light));
  color: var(--c-indigo-900);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 36px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 15px rgb(250 204 21 / .3);
}
.hbo-offer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgb(250 204 21 / .5);
  color: var(--c-indigo-900);
}
@media (max-width: 640px) {
  .hbo-offer-section { padding: 2rem 1rem; }
  .hbo-offer-title { font-size: 1.35rem; }
  .hbo-offer-btn { font-size: .95rem; padding: 12px 28px; }
}

