/*
Theme Name: Theia v2.3
Theme URI: https://blog.theiahealth.ai
Author: Theia Health
Author URI: https://www.theiahealth.ai
Description: Redesigned Insights Blog theme aligned with the Theia web design system. Light mode only.
Version: 2.3.9
License: Proprietary
Text Domain: theia-education
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
  /* --- Primary (Blues) --- */
  --primary-100: #E9F4FA;
  --primary-200: #D5E9F5;
  --primary-300: #BADBEF;
  --primary-400: #92C6E6;
  --primary-500: #6DB2DE;
  --primary-600: #3E9AD3;
  --primary-700: #287BAF;
  --primary-800: #1E5D84;
  --primary-900: #113449;

  /* --- Secondary (Purples) --- */
  --secondary-100: #F7F0F8;
  --secondary-200: #B97DC0;
  --secondary-300: #A557AE;
  --secondary-400: #7E4085;

  /* --- Neutrals (purple-undertone brand neutrals) --- */
  --neutral-800: #211F54;
  --neutral-700: #4E4775;
  --neutral-600: #6E7191;
  --neutral-500: #A0A3BD;
  --neutral-400: #DCDDEB;
  --neutral-300: #EFF0F6;
  --neutral-200: #F7F7FC;

  /* --- Binary --- */
  --black: #222222;
  --white: #FFFFFF;

  /* --- Success (CTA teal) --- */
  --success-400: #31BEA7;
  --success-hover: #2AA390;
  --success-border: #C1EFE8;

  /* --- Typography --- */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* --- Blog max-width --- */
  --max-width: 1200px;

  /* --- Nav --- */
  --nav-height: 64px;
  --nav-top: 24px;
  --body-top-pad: 88px; /* 24px offset + 64px nav */

  /* --- Shadows --- */
  --shadow-nav: 0 10px 15px rgba(0,0,0,0.10), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-card: 0 1px 3px rgba(17,52,73,0.06);
  --shadow-card-hover: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-btn-hover: 0 4px 12px rgba(0,0,0,0.15);
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 18px;
  line-height: 30px;
  color: var(--primary-900);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--body-top-pad);
}

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

a {
  color: var(--primary-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   CONTAINER
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 80px;
}

/* ============================================================
   NAVIGATION — Floating pill, frosted glass
   ============================================================ */

.site-header {
  position: fixed;
  top: var(--nav-top);
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: var(--max-width);
  height: var(--nav-height);
  z-index: 1000;
  border-radius: 16px;
  background: rgba(78, 71, 117, 0.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-nav);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header.is-hidden {
  transform: translateX(-50%) translateY(calc(-1 * (var(--nav-top) + var(--nav-height) + 20px)));
  opacity: 0;
  pointer-events: none;
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  padding-inline: 20px 12px;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo svg {
  height: 24px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 16px;
}

.site-nav a {
  font-size: 16px;
  font-weight: 500;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.80);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--white);
  text-decoration: none;
}

.site-nav a.current-menu-item {
  color: var(--white);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Nav buttons */
.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(240,230,241,0.34), rgba(228,232,242,0.34));
  border: none;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.btn-login:hover {
  background: linear-gradient(180deg, rgba(240,230,241,0.46), rgba(228,232,242,0.46));
  text-decoration: none;
  color: var(--white);
}

.btn-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
  border-radius: 6px;
  background-color: var(--success-400);
  border: 1px solid var(--success-border);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-signup:hover {
  background-color: var(--success-hover);
  box-shadow: var(--shadow-btn-hover);
  text-decoration: none;
  color: var(--white);
}

/* Mobile toggle */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  transition: background 0.15s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(255,255,255,0.18);
}

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */

.mobile-nav {
  position: fixed;
  top: calc(var(--nav-top) + var(--nav-height) + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: var(--max-width);
  z-index: 999;
  background: rgba(78, 71, 117, 0.95);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 12px 16px;
  display: none;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.mobile-nav a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  text-decoration: none;
}

.mobile-nav-actions {
  display: flex;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 4px;
}

.mobile-nav-actions .btn-login,
.mobile-nav-actions .btn-signup {
  flex: 1;
  justify-content: center;
}

/* ============================================================
   FOCUS STATES
   ============================================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary-700);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   BUTTONS — Standalone (outside nav)
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn-default { height: 44px; padding: 0 24px; font-size: 15px; }
.btn-lg { height: 52px; padding: 0 32px; font-size: 16px; }

.btn-primary {
  background-color: var(--success-400);
  color: var(--white);
  border: 1px solid var(--success-border);
}

.btn-primary:hover {
  background-color: var(--success-hover);
  box-shadow: var(--shadow-btn-hover);
  color: var(--white);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--secondary-300);
  color: var(--white);
  border: none;
}

.btn-secondary:hover {
  background-color: var(--secondary-400);
  box-shadow: var(--shadow-btn-hover);
  color: var(--white);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--secondary-300);
  border: 1.5px solid var(--secondary-300);
}

.btn-outline:hover {
  background: var(--secondary-100);
  color: var(--secondary-300);
  text-decoration: none;
}

.btn-outline-dark {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 12px;
  height: 52px;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-outline-dark:hover {
  background: rgba(255,255,255,0.1);
  text-decoration: none;
  color: var(--white);
}

/* Inside card buttons (stepped radius) */
.btn-card {
  border-radius: 8px;
}

/* ============================================================
   PAGE HEADER — Blog archive
   ============================================================ */

.page-header {
  padding-top: 48px;
  padding-bottom: 36px;
  text-align: center;
}

.page-header .eyebrow {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary-300);
  margin-bottom: 12px;
}

.page-header h1 {
  font-size: 54px;
  line-height: 66px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-900);
  margin-bottom: 16px;
}

.page-header .page-subtitle {
  font-size: 18px;
  line-height: 30px;
  color: var(--neutral-600);
  max-width: 560px;
  margin-inline: auto;
}

/* ============================================================
   FEATURED POST — Two-column card (image left 55%, content right 45%)
   ============================================================ */

.featured-post {
  margin-bottom: 40px;
}

.featured-post-card {
  display: grid;
  grid-template-columns: 55fr 45fr;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background-color: var(--primary-900);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease;
  text-decoration: none;
  max-height: 400px;
}

.featured-post-card:hover {
  box-shadow: var(--shadow-card-hover);
  text-decoration: none;
}

/* Image column */
.featured-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background-color: var(--primary-800);
  background-image:
    radial-gradient(circle at 30% 50%, rgba(40, 123, 175, 0.35) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(165, 87, 174, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(49, 190, 167, 0.15) 0%, transparent 45%);
}

.featured-post-card .featured-image,
.featured-post-card figure {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
}

.featured-post-card > a img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  padding: 0;
}

.featured-post-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-post-card > a,
.featured-post-card > div {
  box-sizing: border-box;
  min-width: 0;
}

.featured-post-card > a {
  display: block;
  overflow: hidden;
  min-height: 320px;
  outline: none;
  border: none;
  text-decoration: none;
  line-height: 0;
  font-size: 0;
}


/* Content column */
.featured-post-card .featured-content {
  padding: 32px 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  justify-content: center;
  color: var(--white);
  background-color: var(--primary-900);
}

/* Badges row */
.featured-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.featured-tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--secondary-300);
  color: var(--white);
  width: fit-content;
}

.featured-post-card .post-category {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: background 0.15s ease;
}

.featured-post-card .post-category:hover {
  background: rgba(255,255,255,0.2);
  text-decoration: none;
}

.featured-post-card .featured-title {
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-top: 0;
  margin-bottom: 12px;
}

.featured-post-card .featured-card-link {
  color: inherit;
  text-decoration: none;
}

/* Full-card click target */
.featured-post-card .featured-card-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.featured-post-card .featured-excerpt {
  font-size: 15px;
  line-height: 24px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

.featured-post-card .featured-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 14px;
}

.featured-meta .author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
  object-fit: cover;
}

/* ============================================================
   FILTER BAR
   ============================================================ */

.filter-bar {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--neutral-400);
}

.filter-bar-top {
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input-wrapper form {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.search-input-wrapper form .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--neutral-600);
  z-index: 1;
}

.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--neutral-500);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  padding: 0;
  color: var(--white);
  transition: background 0.15s ease;
}

.search-clear:hover {
  background: var(--neutral-700);
}

.search-clear.visible {
  display: flex;
}

.search-input {
  width: 100%;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  color: var(--primary-900);
  background: var(--neutral-100);
  border: 1.5px solid var(--neutral-400);
  border-radius: 12px !important;
  -webkit-appearance: none !important;
  appearance: none;
  padding: 0 40px 0 40px;
  height: 44px;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.search-input::-webkit-search-decoration,
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-results-button,
.search-input::-webkit-search-results-decoration {
  display: none !important;
  -webkit-appearance: none !important;
}

.search-input::placeholder {
  color: var(--neutral-500);
}

.search-input:hover,
.search-input:focus {
  border-color: var(--primary-700);
  border-radius: 12px !important;
  outline: none !important;
  box-shadow: none !important;
}

.filter-bar-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--neutral-600);
  background: transparent;
  border: 1.5px solid var(--neutral-400);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.filter-tab:hover {
  color: var(--primary-900);
  border-color: var(--neutral-600);
  background: var(--neutral-200);
}

.filter-tab.active {
  background: var(--primary-900);
  color: var(--white);
  border-color: var(--primary-900);
  font-weight: 600;
}

.sort-select {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-900);
  background: var(--white);
  border: 1.5px solid var(--neutral-400);
  min-width: 140px;
  margin-left: auto;
  flex-shrink: 0;
  border-radius: 8px;
  padding: 0 12px;
  height: 36px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236E7191' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 34px;
  transition: border-color 0.15s ease;
}

.sort-select:hover,
.sort-select:focus {
  border-color: var(--primary-700);
  outline: none;
}

/* ============================================================
   POST GRID
   ============================================================ */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 24px;
  margin-bottom: 64px;
}

/* ============================================================
   POST CARD
   ============================================================ */

.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--neutral-400);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.post-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.post-card a {
  text-decoration: none;
}

.post-card-image,
.post-card-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 12px 12px 0 0;
  display: block;
  flex-shrink: 0;
}

.post-card-image-placeholder {
  background: var(--neutral-300);
}

.post-card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-category {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary-300);
  background: var(--secondary-100);
  border-radius: 100px;
  margin-bottom: 10px;
  width: fit-content;
  text-decoration: none;
  transition: background 0.15s ease;
}

.post-category:hover {
  background: #EDD9EF;
  text-decoration: none;
}

.post-card-title {
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 8px;
  letter-spacing: 0;
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.post-card-title a:hover {
  color: var(--primary-700);
  text-decoration: none;
}

.post-card-excerpt {
  font-size: 14px;
  line-height: 22px;
  color: var(--neutral-600);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  column-gap: 6px;
  row-gap: 2px;
  margin-bottom: 14px;
}

.post-card-tag {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--secondary-300);
  text-decoration: none;
  text-transform: lowercase;
  transition: color 0.15s ease;
}

.post-card-tag:hover {
  color: var(--secondary-600);
  text-decoration: none;
}

.post-card-spacer {
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 24px;
  color: var(--neutral-600);
  padding-top: 16px;
  border-top: 1px solid var(--neutral-300);
  margin-top: auto;
}

.post-card-meta .author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 100px;
  object-fit: cover;
  flex-shrink: 0;
}

.post-card-meta .author-name {
  font-weight: 600;
  color: var(--primary-900);
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-card-meta .post-date {
  color: var(--neutral-500);
  flex-shrink: 0;
  white-space: nowrap;
}

.post-card-meta .post-date::before {
  content: "·";
  margin-right: 8px;
  color: var(--neutral-400);
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 0 96px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-900);
  border: 1.5px solid var(--neutral-400);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pagination .page-numbers:hover {
  background: var(--neutral-200);
  border-color: var(--neutral-600);
  text-decoration: none;
}

.pagination .page-numbers.current {
  background: var(--primary-900);
  border-color: var(--primary-900);
  color: var(--white);
  font-weight: 600;
}

.pagination .page-numbers.dots {
  border: none;
  background: transparent;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-state {
  text-align: center;
  padding: 96px 0;
  font-size: 18px;
  color: var(--neutral-600);
}

/* ============================================================
   SINGLE POST — HERO
   ============================================================ */

.post-hero {
  padding-top: 80px;
  padding-bottom: 48px;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.post-hero .post-category {
  margin-bottom: 16px;
}

.post-hero h1 {
  font-size: 54px;
  line-height: 66px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-900);
  margin-bottom: 16px;
}


.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  color: var(--neutral-600);
}

.post-meta .author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 100px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--neutral-400);
}

.author-info {
  text-align: left;
}

.author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-900);
  line-height: 20px;
}

.author-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--neutral-600);
}

.text-subtle {
  color: var(--neutral-400);
}

.read-time {
  color: var(--neutral-600);
}

/* Hide WP Time to Read plugin injection next to title */
.wtr-time-wrap.after-title {
  display: none;
}

/* ============================================================
   IMAGE MOOD FILTER
   Applies a subtle consistent treatment to all editorial images:
   slight desaturation + very mild cool tint.
   Uploaded files are untouched — this is display-only.
   ============================================================ */

.post-card-image,
.featured-post-card figure img,
.post-featured-image {
  filter: saturate(0.88) brightness(0.97) hue-rotate(5deg);
  transition: filter 0.2s ease;
}

/* Slightly lift the filter on card hover so images feel alive */
.post-card:hover .post-card-image,
.featured-post-card:hover figure img {
  filter: saturate(0.95) brightness(1.0) hue-rotate(3deg);
}

/* ============================================================
   SINGLE POST — FEATURED IMAGE
   ============================================================ */

.post-featured-image {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  margin-bottom: 64px;
}

/* ============================================================
   SINGLE POST — CONTENT LAYOUT
   ============================================================ */

.post-layout {
  max-width: 900px;
  margin-inline: auto;
  padding: 0 48px 96px;
}

.post-content {
  font-size: 18px;
  line-height: 30px;
  color: var(--primary-900);
  margin-bottom: 48px;
}

/* Article typography */
.post-content h2 {
  font-size: 38px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--primary-900);
  margin-top: 56px;
  margin-bottom: 20px;
}

.post-content h3 {
  font-size: 28px;
  line-height: 38px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--primary-900);
  margin-top: 40px;
  margin-bottom: 16px;
}

.post-content h4 {
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  color: var(--primary-900);
  margin-top: 32px;
  margin-bottom: 12px;
}

.post-content p {
  margin-bottom: 24px;
}

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

.post-content a:hover {
  color: var(--primary-800);
}

/* All lists */
.post-content ul,
.post-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
  list-style: none;
}

.post-content li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 4px;
}

/* Default unordered — bullet */
.post-content ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--neutral-600);
  font-weight: 400;
}

/* Ordered — numbers */
.post-content ol {
  counter-reset: list-counter;
}

.post-content ol li {
  counter-increment: list-counter;
}

.post-content ol li::before {
  content: counter(list-counter) '.';
  position: absolute;
  left: 0;
  color: var(--neutral-600);
  font-weight: 600;
  font-size: 15px;
}

/* Nested lists */
.post-content ul ul,
.post-content ol ul {
  margin-top: 6px;
  margin-bottom: 6px;
}

.post-content ul ul li::before {
  content: '○';
  font-size: 11px;
  top: 2px;
  color: var(--neutral-500);
}

.post-content ol ol li::before,
.post-content ul ol li::before {
  color: var(--neutral-500);
}

/* Block style: Dash (explicit, same as default) */
.post-content ul.is-style-dash li::before {
  content: '–';
  color: var(--neutral-600);
}

/* Block style: Checklist */
.post-content ul.is-style-checklist {
  list-style: none;
}

.post-content ul.is-style-checklist li {
  padding-left: 28px;
}

.post-content ul.is-style-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--success-400);
  border-bottom: 2px solid var(--success-400);
  transform: rotate(-45deg);
}

.post-content blockquote {
  position: relative;
  border-left: none;
  padding: 24px 0 8px 0;
  margin: 40px 0;
  font-size: 20px;
  line-height: 32px;
  font-style: italic;
  font-weight: 600;
  color: var(--neutral-700);
}

.post-content blockquote::before {
  content: '\201C';
  position: absolute;
  top: -16px;
  left: -8px;
  font-size: 96px;
  line-height: 1;
  font-style: normal;
  font-weight: 700;
  color: var(--secondary-200);
  pointer-events: none;
}

.post-content blockquote p {
  margin-bottom: 0;
}

/* Pull quote — large typographic emphasis */
.post-content .pull-quote,
.post-content .wp-block-pullquote {
  border-left: none;
  border-top: 2px solid var(--secondary-300);
  border-bottom: 2px solid var(--secondary-300);
  padding: 24px 0;
  margin: 40px 0;
  text-align: center;
  font-style: italic;
  font-size: 24px;
  line-height: 38px;
  font-weight: 500;
  color: var(--primary-800);
}

.post-content .wp-block-pullquote cite,
.post-content .pull-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--neutral-500);
}

/* Callout box — info/tip/warning highlight */
.post-content .callout,
.post-content .wp-block-group.is-style-callout {
  background: var(--primary-100);
  border-left: 4px solid var(--primary-700);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 17px;
  line-height: 28px;
  color: var(--primary-900);
}

.post-content .callout strong,
.post-content .wp-block-group.is-style-callout strong {
  color: var(--primary-800);
}

/* Callout variant — tip (teal accent) */
.post-content .callout-tip,
.post-content .wp-block-group.is-style-callout-tip {
  background: #E6F8F5;
  border-left: 4px solid var(--success-400);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 17px;
  line-height: 28px;
  color: var(--primary-900);
}

/* Callout variant — warning (yellow accent) */
.post-content .callout-warning,
.post-content .wp-block-group.is-style-callout-warning {
  background: #FFF6E4;
  border-left: 4px solid #FFA800;
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 17px;
  line-height: 28px;
  color: var(--primary-900);
}

.post-content img {
  border-radius: 12px;
  margin: 32px 0;
}

.post-content figure {
  margin: 32px 0;
}

.post-content figcaption {
  font-size: 13px;
  line-height: 20px;
  color: var(--neutral-500);
  text-align: center;
  margin-top: 8px;
}

.post-content code {
  font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 14px;
  background: var(--neutral-300);
  color: var(--primary-800);
  padding: 2px 6px;
  border-radius: 4px;
}

.post-content pre {
  background: var(--primary-900);
  color: var(--primary-100);
  padding: 24px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 32px 0;
}

.post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--neutral-400);
  margin: 40px 0;
}

/* Table — scroll wrapper for mobile overflow */
.post-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.post-content table > * {
  display: table;
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 16px;
  line-height: 26px;
}

.post-content th {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 16px;
  background: var(--primary-100);
  border-bottom: 2px solid var(--primary-300);
  color: var(--primary-800);
  white-space: nowrap;
}

.post-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--neutral-300);
  color: var(--primary-900);
  vertical-align: top;
}

/* Header column — th inside tbody */
.post-content tbody th {
  background: var(--neutral-200);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--primary-800);
  border-right: 2px solid var(--primary-300);
  white-space: nowrap;
}

.post-content tr:last-child td {
  border-bottom: none;
}

/* Block style: Striped (zebra rows) */
.post-content table.is-style-striped tbody tr:nth-child(even) td {
  background: var(--neutral-200);
}

/* Block style: Plain (no header tint, minimal borders) */
.post-content table.is-style-plain th {
  background: transparent;
  border-bottom: 2px solid var(--neutral-400);
  color: var(--primary-900);
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
}

.post-content table.is-style-plain tbody th {
  background: transparent;
  border-right: 1px solid var(--neutral-300);
  font-size: 15px;
  letter-spacing: 0;
}

.post-content table.is-style-plain td {
  border-bottom: 1px solid var(--neutral-300);
}

/* Striped — header column stays consistent across zebra rows */
.post-content table.is-style-striped tbody th {
  background: var(--neutral-200);
}

/* Clearfix — prevent floated images bleeding into subsequent elements */
.post-content::after {
  content: '';
  display: table;
  clear: both;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content hr,
.post-content .wp-block-separator {
  clear: both;
}

/* wp-block-quote — Gutenberg quote block */
.post-content .wp-block-quote {
  border-left: 3px solid var(--secondary-300);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  font-size: 20px;
  line-height: 32px;
  font-style: italic;
  color: var(--neutral-600);
}

.post-content .wp-block-quote cite,
.post-content .wp-block-quote footer {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--neutral-500);
}

/* wp-block-separator — Gutenberg separator block */
.post-content .wp-block-separator {
  border: none;
  border-top: 1px solid var(--neutral-400);
  margin: 40px 0;
}

.post-content .wp-block-separator.is-style-wide {
  border-top-width: 2px;
  border-color: var(--primary-300);
}

.post-content .wp-block-separator.is-style-dots {
  border: none;
  text-align: center;
  line-height: 1;
  height: auto;
  color: var(--neutral-500);
}

.post-content .wp-block-separator.is-style-dots::before {
  content: '···';
  font-size: 24px;
  letter-spacing: 0.5em;
  color: var(--neutral-400);
}

/* wp-block-embed — video and iframe embeds */
.post-content .wp-block-embed {
  margin: 32px 0;
}

.post-content .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.post-content .wp-block-embed__wrapper iframe,
.post-content .wp-block-embed__wrapper video,
.post-content .wp-block-embed__wrapper embed,
.post-content .wp-block-embed__wrapper object {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Wistia async/inline embed */
.post-content .wistia_embed {
  margin: 32px 0;
  border-radius: 12px;
  overflow: hidden;
}

/* Wistia responsive wrapper — their recommended implementation */
.post-content .wistia_responsive_padding {
  padding-bottom: 56.25%; /* 16:9 */
  position: relative;
  margin: 32px 0;
}

.post-content .wistia_responsive_wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.post-content .wistia_responsive_wrapper iframe,
.post-content .wistia_responsive_wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* wp-block-buttons — button blocks in articles */
.post-content .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}

.post-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  background-color: var(--success-400);
  color: var(--white);
  border: 1px solid var(--success-border);
}

.post-content .wp-block-button__link:hover {
  background-color: var(--success-hover);
  box-shadow: var(--shadow-btn-hover);
  color: var(--white);
  text-decoration: none;
}

.post-content .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--secondary-300);
  border: 1.5px solid var(--secondary-300);
}

.post-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--secondary-100);
  color: var(--secondary-300);
  box-shadow: none;
}

/* Heading-follows-heading — reduce excess top margin */
.post-content h2 + h3,
.post-content h3 + h4 {
  margin-top: 16px;
}

/* Inline emphasis */
.post-content strong {
  font-weight: 700;
  color: var(--primary-800);
}

.post-content em {
  font-style: italic;
  color: inherit;
}

/* Wide and full-width image alignments (Gutenberg) */
.post-content .alignwide {
  margin-left: -80px;
  margin-right: -80px;
  max-width: calc(100% + 160px);
  width: calc(100% + 160px);
}

.post-content .alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

.post-content .alignwide img,
.post-content .alignfull img {
  width: 100%;
  border-radius: 0;
}

.post-content .alignleft {
  float: left;
  margin: 8px 28px 16px 0;
  max-width: 45%;
}

.post-content .alignright {
  float: right;
  margin: 8px 0 16px 28px;
  max-width: 45%;
}

.post-content .aligncenter {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ============================================================
   POST TAGS
   ============================================================ */

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--neutral-400);
}

.post-tag {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--neutral-700);
  background: var(--neutral-200);
  border: 1px solid var(--neutral-400);
  border-radius: 100px;
  text-decoration: none;
  text-transform: lowercase;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.post-tag::before {
  content: '#';
  color: var(--neutral-500);
  margin-right: 1px;
}

.post-tag:hover {
  background: var(--neutral-300);
  border-color: var(--neutral-600);
  text-decoration: none;
  color: var(--primary-900);
}

/* ============================================================
   POST NAVIGATION
   ============================================================ */

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid var(--neutral-400);
}

.post-nav__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-700);
  text-decoration: none;
  max-width: 45%;
  line-height: 22px;
  transition: color 0.15s ease;
}

.post-nav__link:hover {
  color: var(--primary-800);
  text-decoration: none;
}

.post-nav__link--next {
  text-align: right;
  margin-left: auto;
}

/* ============================================================
   RELATED POSTS
   ============================================================ */

.related-posts {
  background: var(--neutral-200);
  padding: 96px 0;
  margin-top: 0;
}

.related-posts h2 {
  font-size: 38px;
  line-height: 50px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--primary-900);
  margin-bottom: 40px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */

.cta-banner {
  background: var(--primary-900);
  padding: 64px 0 0;
  text-align: center;
}

.cta-banner .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.cta-text {
  margin-bottom: 24px;
}

.cta-text h2 {
  font-size: 38px;
  line-height: 50px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-text p {
  font-size: 18px;
  line-height: 30px;
  color: rgba(255,255,255,0.7);
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.cta-screenshot {
  display: block;
  width: 100%;
  border-radius: 16px 16px 0 0;
  border: 1px solid rgba(255,255,255,0.15);
  border-bottom: none;
  margin: 0 auto;
}

/* CTA banner specific button (teal CTA) */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  background: var(--success-400);
  color: var(--white);
  border: 1px solid var(--success-border);
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-cta:hover {
  background: var(--success-hover);
  box-shadow: var(--shadow-btn-hover);
  text-decoration: none;
  color: var(--white);
}

/* ============================================================
   NEWSLETTER STRIP
   ============================================================ */

.newsletter-strip {
  background: #000000;
  padding: 64px 0;
}

.newsletter-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.newsletter-strip-text {
  flex: 1;
  min-width: 0;
}

.newsletter-strip-text h3 {
  font-size: 28px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 8px;
}

.newsletter-strip-text p {
  font-size: 16px;
  line-height: 26px;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
}

.newsletter-form {
  flex-shrink: 1;
  min-width: 0;
}

.newsletter-input-row {
  display: flex;
  gap: 8px;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  font-family: var(--font-family);
  font-size: 15px;
  color: var(--primary-900);
  background: var(--white);
  border: 1.5px solid var(--neutral-400);
  border-radius: 6px;
  height: 44px;
  padding: 0 16px;
  width: 260px;
  max-width: 100%;
  min-width: 0;
  outline: none;
  transition: border-color 0.15s ease;
}

.newsletter-form input:focus {
  border-color: var(--primary-700);
}

.newsletter-form input::placeholder {
  color: var(--neutral-500);
}

.newsletter-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--secondary-300);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.newsletter-form button[type="submit"]:hover {
  background: var(--secondary-400);
  box-shadow: var(--shadow-btn-hover);
}

.newsletter-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.newsletter-message {
  margin-top: 10px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.newsletter-message--success {
  color: #05C168;
}

.newsletter-message--error {
  color: #FF5A65;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: #000000;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 64px;
  padding-bottom: 48px;
}

.footer-top {
  margin-bottom: 48px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 24px;
}

.footer-logo svg {
  height: 28px;
  width: auto;
}

.footer-disclaimer {
  font-size: 13px;
  line-height: 22px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 24px;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-copyright {
  font-size: 13px;
  line-height: 24px;
  color: rgba(255,255,255,0.5);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-social a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   404 PAGE
   ============================================================ */

.error-page {
  min-height: calc(100vh - var(--body-top-pad) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 20px;
}

.error-page > div {
  max-width: 520px;
}

.error-code {
  font-size: 120px;
  line-height: 1;
  font-weight: 700;
  color: var(--neutral-300);
  letter-spacing: -0.04em;
  margin-bottom: 0;
  user-select: none;
}

.error-page h1 {
  font-size: 38px;
  line-height: 50px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--primary-900);
  margin-bottom: 16px;
}

.error-page p {
  font-size: 18px;
  line-height: 30px;
  color: var(--neutral-600);
  margin-bottom: 32px;
}

.error-page .btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-page .btn-group .btn {
  width: 200px;
}

/* ============================================================
   STATIC PAGE (page.php)
   ============================================================ */

.page-content-wrap {
  max-width: 760px;
  margin-inline: auto;
  padding: 80px 80px 96px;
}

.page-content-wrap h1 {
  font-size: 54px;
  line-height: 66px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-900);
  margin-bottom: 32px;
}


/* Table of Contents Plus plugin */
#toc_container {
  background: var(--neutral-100) !important;
  border: 1px solid var(--neutral-300) !important;
  border-radius: 12px !important;
  padding: 20px 24px !important;
  margin: 32px 0 !important;
  width: auto !important;
  display: inline-block;
}

#toc_container .toc_title {
  font-family: var(--font-family) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--primary-900) !important;
  margin-bottom: 12px !important;
  text-align: left !important;
}

#toc_container .toc_title a,
#toc_container .toc_toggle a {
  color: var(--primary-700) !important;
  font-weight: 500 !important;
  font-size: 13px !important;
}

#toc_container ul.toc_list li,
#toc_container ul.toc_list li a {
  font-family: var(--font-family) !important;
  font-size: 14px !important;
  color: var(--primary-700) !important;
  font-weight: 400 !important;
}

/* ============================================================
   RESPONSIVE — TABLET (768px)
   ============================================================ */

@media (max-width: 1023px) {
  :root {
    --body-top-pad: 88px;
  }

  .container {
    padding-inline: 40px;
  }

  /* Nav */
  .site-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .btn-login,
  .header-actions .btn-signup {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Page header */
  .page-header {
    padding-top: 64px;
    padding-bottom: 48px;
  }

  .page-header h1 {
    font-size: 42px;
    line-height: 54px;
  }

  /* Featured — keep two-col at tablet, reduce padding */
  .featured-post-card {
    grid-template-columns: 50% 50%;
    max-height: 360px;
  }

  .featured-post-card .featured-content {
    padding: 28px 28px;
  }

  .featured-post-card .featured-title {
    font-size: 22px;
    line-height: 30px;
  }

  .featured-post-card .featured-excerpt {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  /* Post grid */
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }

  /* Single post */
  .post-hero h1 {
    font-size: 42px;
    line-height: 54px;
  }

  .post-layout {
    padding-inline: 40px;
  }

  /* CTA banner */
  .cta-text h2 {
    font-size: 30px;
    line-height: 40px;
  }

  /* Newsletter */
  .newsletter-strip .container {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .newsletter-strip-text p {
    max-width: none;
  }

  .newsletter-form {
    width: 100%;
  }

  .newsletter-input-row {
    flex-direction: column;
    gap: 12px;
  }

  .newsletter-form input[type="text"],
  .newsletter-form input[type="email"] {
    width: 100%;
    min-width: 0;
  }

  .newsletter-form button[type="submit"] {
    width: 100%;
  }

  /* Page content */
  .page-content-wrap {
    padding-inline: 40px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (< 768px)
   ============================================================ */

@media (max-width: 1023px) {
  /* Article headings — tablet scale */
  .post-content h2 { font-size: 30px; line-height: 40px; }
  .post-content h3 { font-size: 22px; line-height: 32px; }
  .post-content h4 { font-size: 20px; line-height: 26px; }
}

@media (max-width: 767px) {
  :root {
    --body-top-pad: 88px;
  }

  .container {
    padding-inline: 20px;
  }

  /* Page header */
  .page-header {
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .page-header h1 {
    font-size: 32px;
    line-height: 42px;
  }

  .page-header .page-subtitle {
    font-size: 16px;
    line-height: 26px;
  }

  /* Featured post — stack vertically on mobile */
  .featured-post-card {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .featured-post-card .featured-image,
  .featured-post-card figure,
  .featured-post-card > a {
    min-height: 0;
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .featured-post-card .featured-content {
    padding: 24px;
    justify-content: flex-start;
  }

  .featured-post-card .featured-title {
    font-size: 22px;
    line-height: 30px;
  }

  .featured-post-card .featured-excerpt {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  /* Filter bar */
  .filter-bar-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .filter-tabs {
    width: 100%;
  }

  .sort-select {
    width: 100%;
    margin-left: 0;
  }

  /* Post grid */
  .post-grid {
    grid-template-columns: 1fr;
  }

  /* Single post hero */
  .post-hero {
    padding-top: 48px;
    padding-bottom: 32px;
  }

  .post-hero h1 {
    font-size: 36px;
    line-height: 46px;
  }

  /* Clamp wide/full image alignments on mobile */
  .post-content .alignwide {
    margin-left: -20px;
    margin-right: -20px;
    max-width: calc(100% + 40px);
    width: calc(100% + 40px);
  }

  .post-content .alignleft,
  .post-content .alignright {
    float: none;
    margin: 24px 0;
    max-width: 100%;
  }

  /* Post layout */
  .post-layout {
    padding: 0 20px 64px;
  }

  .post-content h2 {
    font-size: 26px;
    line-height: 34px;
  }

  .post-content h3 {
    font-size: 20px;
    line-height: 28px;
  }

  .post-content h4 {
    font-size: 18px;
    line-height: 24px;
  }

  .post-featured-image {
    border-radius: 12px;
    margin-bottom: 40px;
  }

  /* Post nav */
  .post-nav {
    flex-direction: column;
    gap: 16px;
  }

  .post-nav__link--next {
    text-align: left;
    margin-left: 0;
  }

  /* CTA banner */
  .cta-banner {
    padding: 40px 0 0;
  }

  .cta-text h2 {
    font-size: 26px;
    line-height: 34px;
  }


  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn-cta,
  .cta-actions .btn-outline-dark {
    width: 100%;
    justify-content: center;
  }

  /* Newsletter */
  .newsletter-strip {
    padding: 40px 0;
  }

  /* Newsletter — already column from tablet breakpoint */

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* 404 */
  .error-code {
    font-size: 80px;
  }

  .error-page h1 {
    font-size: 28px;
    line-height: 38px;
  }

  .error-page .btn-group {
    flex-direction: column;
  }

  .error-page .btn-group .btn {
    width: 100%;
  }

  /* Page */
  .page-content-wrap {
    padding: 48px 20px 64px;
  }

  .page-content-wrap h1 {
    font-size: 32px;
    line-height: 42px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE LARGE (≤ 430px)
   ============================================================ */

@media (max-width: 430px) {
  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
}

/* ============================================================
   WORDPRESS ALIGNMENT UTILITIES
   ============================================================ */

.alignwide {
  margin-left: calc(-1 * (100vw - 760px) / 2);
  margin-right: calc(-1 * (100vw - 760px) / 2);
  max-width: 100vw;
}

.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 13px;
  color: var(--neutral-500);
  text-align: center;
  margin-top: 8px;
}

/* ============================================================
   SCREEN READER ONLY
   ============================================================ */

.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;
}

/* ============================================================
   PODCAST TEMPLATE
   ============================================================ */

.post-hero--podcast .post-meta {
  margin-top: 12px;
}

.podcast-host-label {
  font-size: 13px;
  color: var(--neutral-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-right: 4px;
}

.podcast-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 40px;
}

.podcast-platform-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.podcast-platform-link:hover {
  opacity: 0.85;
  text-decoration: none;
}

.podcast-platform-link--spotify {
  background: #1DB954;
  color: #fff;
}

.podcast-platform-link--apple {
  background: #FC3C44;
  color: #fff;
}

@media ( max-width: 640px ) {
  .podcast-platforms {
    flex-direction: column;
  }
  .podcast-platform-link {
    justify-content: center;
  }
}

/* ============================================================
   PROVIDER SPOTLIGHT TEMPLATE
   ============================================================ */

.spotlight-profile {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--neutral-200);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 48px;
}

.spotlight-profile__headshot {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.spotlight-profile__headshot--placeholder {
  background: var(--neutral-400);
}

.spotlight-profile__right {
  flex: 1;
  min-width: 0;
}

.spotlight-profile__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-900);
  margin: 0 0 6px;
  line-height: 1.3;
}

.spotlight-profile__details {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 16px;
}

.spotlight-profile__detail {
  font-size: 14px;
  color: var(--neutral-600);
  line-height: 1.5;
}

.spotlight-profile__detail--location::before {
  content: '📍 ';
  font-style: normal;
}

.spotlight-profile__quote {
  font-size: 16px;
  line-height: 26px;
  font-style: italic;
  color: var(--primary-800);
  border-left: 3px solid var(--secondary-300);
  margin: 0;
  padding-left: 16px;
}

@media ( max-width: 640px ) {
  .spotlight-profile {
    flex-direction: column;
    padding: 20px;
  }
}

/* ============================================================
   VIDEO TEMPLATE
   ============================================================ */

.video-embed-wrap {
  background: var(--primary-900);
  padding: 40px 0;
  margin-bottom: 48px;
}

.video-embed-wrap .wp-block-embed,
.video-embed-wrap .wp-block-video {
  margin: 0 auto;
  max-width: 900px;
  border-radius: 12px;
  overflow: hidden;
}

.video-embed-wrap .wp-block-embed__wrapper {
  border-radius: 12px;
  overflow: hidden;
}

@media ( max-width: 768px ) {
  .video-embed-wrap {
    padding: 24px 0;
    margin-bottom: 32px;
  }
}
