/* Single Content Playbook styles. Consolidated from the per-guide
   embedded <style> blocks so post HTML in the CMS stays clean.
   Base: tiktok-youtube-shorts variant + additive selectors from other
   guides + a :has()-based layout resolver (see bottom). */

/* Global Font Override to enforce Plus Jakarta Sans */
    body,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    input,
    button,
    select,
    textarea,
    span,
    p,
    a,
    div,
    li,
    ul,
    ol,
    th,
    td,
    label {
      font-family: 'Plus Jakarta Sans', 'Plus_Jakarta_Sans', sans-serif !important;
    }

    /* =========================================
   LOCAL FONTS — Plus Jakarta Sans
   ========================================= */
    @font-face {
      font-family: 'Plus Jakarta Sans';
      src: url('../fonts/PlusJakartaSans-VariableFont_wght.ttf') format('truetype-variations'),
        url('../fonts/PlusJakartaSans-VariableFont_wght.ttf') format('truetype');
      font-weight: 200 800;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: 'Plus Jakarta Sans';
      src: url('../fonts/PlusJakartaSans-Italic-VariableFont_wght.ttf') format('truetype-variations'),
        url('../fonts/PlusJakartaSans-Italic-VariableFont_wght.ttf') format('truetype');
      font-weight: 200 800;
      font-style: italic;
      font-display: swap;
    }

    /* =========================================
   DESIGN TOKENS
   ========================================= */
    :root {
      --green: #1a7a5e;
      --green-bright: #23c48c;
      --green-light: rgba(35, 196, 140, 0.1);
      --green-border: rgba(35, 196, 140, 0.25);
      --navy: #0b1826;
      --navy-mid: #0d2233;
      --navy-teal: #0a2535;
      --light: #f7f8fa;
      --light-alt: #f0f2f5;
      --white: #ffffff;
      --text-dark: #0f1724;
      --text-body: #374151;
      --text-muted: #6b7280;
      --text-light: #94a3b8;
      --border-light: #e5e7eb;
      --border-dark: rgba(255, 255, 255, 0.08);
      --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
      --radius: 10px;
      --radius-lg: 16px;
      --radius-pill: 100px;
      --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
      --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
      --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    }

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

    html {
      scroll-behavior: smooth;
      overflow-x: clip;
    }

    body {
      font-family: var(--font);
      color: var(--text-dark);
      background: var(--white);
      line-height: 1.6;
      overflow-x: clip;
      -webkit-font-smoothing: antialiased;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

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

    ::-webkit-scrollbar {
      width: 5px;
    }

    ::-webkit-scrollbar-track {
      background: var(--light);
    }

    ::-webkit-scrollbar-thumb {
      background: #cbd5e1;
      border-radius: 3px;
    }

    /* =========================================
   ANNOUNCEMENT BAR
   ========================================= */
    #announce-bar {
      background: #0a2a1e;
      color: #fff;
      font-size: 14px;
      font-weight: 500;
      padding: 12px 24px;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      position: relative;
      letter-spacing: 0.01em;
    }

    #announce-bar a {
      background: var(--green-bright);
      color: #071424;
      font-weight: 700;
      padding: 5px 16px;
      border-radius: 6px;
      font-size: 13px;
      letter-spacing: 0.02em;
      white-space: nowrap;
      transition: var(--transition);
    }

    #announce-bar a:hover {
      background: #2dd498;
    }

    #announce-bar .close-btn {
      position: absolute;
      right: 16px;
      background: none;
      border: none;
      color: rgba(255, 255, 255, 0.5);
      cursor: pointer;
      font-size: 18px;
      line-height: 1;
      padding: 2px 6px;
      transition: var(--transition);
    }

    #announce-bar .close-btn:hover {
      color: #fff;
    }

    .announce-star {
      color: var(--green-bright);
    }

    /* =========================================
   HEADER
   ========================================= */
    #header {
      position: sticky;
      top: 0;


      z-index: 1000;
      background: rgba(255, 255, 255, 0.96);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border-light);
      height: 72px;
      display: flex;
      align-items: center;
    }

    .header-inner {
      max-width: 1200px;
      width: 100%;
      margin: 0 auto;
      padding: 0 24px;
      display: flex;
      align-items: center;
      gap: 20px;
    }

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

    .logo-img {
      height: 42px;
      width: auto;
      object-fit: contain;
      background-color: transparent !important;
      border: none !important;
      box-shadow: none !important;
      display: block;
    }

    .header-collapse { display: contents; }

    .header-nav {
      display: flex;
      gap: 2px;
      justify-content: flex-start;
    }

    .header-nav a {
      font-size: 14px;
      font-weight: 500;
      color: var(--text-body);
      padding: 6px 10px;
      border-radius: 7px;
      transition: var(--transition);
      white-space: nowrap;
    }

    .header-nav>a:hover {
      background: var(--light);
      color: var(--text-dark);
    }

    .header-nav>a.active {
      color: #1d9e75 !important;
      font-weight: 700;
    }

    .header-nav .nav-dropdown-trigger:hover,
    .nav-dropdown-wrapper:hover .nav-dropdown-trigger,
    .nav-dropdown-wrapper.active .nav-dropdown-trigger {
      color: #1d9e75 !important;
      font-weight: 700;
      background: transparent;
    }

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

    .btn-ghost {
      font-family: var(--font);
      font-size: 14px;
      font-weight: 600;
      color: var(--text-dark);
      background: transparent;
      border: 1.5px solid var(--border-light);
      padding: 8px 16px;
      border-radius: var(--radius);
      cursor: pointer;
      transition: var(--transition);
      white-space: nowrap;
    }

    .btn-ghost:hover {
      border-color: #9ca3af;
      background: var(--light);
      transform: translateY(-2px);
    }

    .btn-cta {
      font-family: var(--font);
      font-size: 14px;
      font-weight: 700;
      color: #fff;
      background: var(--green);
      border: none;
      padding: 9px 18px;
      border-radius: var(--radius);
      cursor: pointer;
      transition: var(--transition);
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .btn-cta:hover {
      background: #155f48;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(26, 122, 94, 0.3);
    }

    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 4px;
      margin-left: auto;
    }

    .hamburger span {
      display: block;
      width: 22px;
      height: 2px;
      background: var(--text-dark);
      border-radius: 2px;
      transition: var(--transition);
    }

    /* =========================================
   MEGA MENU STYLES
   ========================================= */
    .nav-dropdown-wrapper {
      position: relative;
      display: flex;
      align-items: center;
    }

    .mega-menu {
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%) translateY(10px);
      width: 1160px;
      min-width: unset;
      max-width: calc(100vw - 48px);
      background: var(--white);
      border: 1px solid var(--border-light);
      border-radius: var(--radius-lg);
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
      opacity: 0;
      visibility: hidden;
      transition: all 0.2s ease;
      z-index: 99999;
      display: flex;
      overflow: hidden;
      /* overflow: hidden only on the card itself */
      padding: 0;
    }

    .nav-dropdown-wrapper:hover .mega-menu {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(0);
    }

    .mega-zone {
      padding: 32px 32px 40px;
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
    }

    .mega-zone-1 {
      background: #ffffff;
      flex: 0 0 35%;
      min-width: 0;
    }

    .mega-zone-2 {
      background: #f0fdf4;
      border-left: 1px solid var(--border-light);
      border-right: 1px solid var(--border-light);
      flex: 0 0 25%;
      min-width: 0;
    }

    .mega-zone-3 {
      background: #002d33;
      color: #ffffff;
      flex: 1;
      min-width: 0;
      padding: 32px 40px 40px 40px;
    }

    .mega-pill-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      font-weight: 700;
      color: #0a2540;
      border: 1px solid #cbd5e1;
      padding: 6px 14px;
      border-radius: 100px;
      margin-bottom: 24px;
      transition: all 0.2s ease;
      letter-spacing: 0.05em;
      align-self: flex-start;
      text-decoration: none;
    }

    .mega-pill-badge:hover {
      border-color: #1d9e75;
      color: #1d9e75;
      background: #f0fdf4;
    }

    .mega-pill-badge svg {
      color: #1d9e75;
    }

    .mega-pill-badge-dark {
      color: #ffffff !important;
      border-color: rgba(255, 255, 255, 0.4) !important;
    }

    .mega-pill-badge-dark:hover {
      border-color: #2dd498 !important;
      color: #2dd498 !important;
      background: rgba(45, 212, 152, 0.1) !important;
    }

    .mega-pill-badge-dark svg {
      color: #ffffff !important;
    }

    .mega-pill-badge-dark:hover svg {
      color: #2dd498 !important;
    }

    .mega-links-grid {
      display: grid;
      grid-template-columns: 1fr 1.1fr;
      gap: 16px;
      margin-bottom: 32px;
    }

    .mega-links-list {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .mega-link-item {
      font-size: 14px;
      font-weight: 600;
      color: #334155;
      transition: color 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: space-between;
      text-decoration: none;
    }

    .mega-link-item:hover {
      color: #1d9e75;
    }

    .mega-section-label {
      font-size: 11px;
      font-weight: 700;
      color: #94a3b8;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 16px;
    }

    .mega-gems-list {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .mega-gem-card {
      display: flex;
      align-items: center;
      gap: 16px;
      transition: transform 0.2s ease;
      text-decoration: none;
    }

    .mega-gem-card:hover .mega-gem-img {
      transform: translateY(-2px) scale(1.02);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    }

    .mega-gem-card:hover .mega-gem-text {
      color: #1d9e75;
    }

    .mega-gem-img {
      width: 92px;
      height: 64px;
      border-radius: 12px;
      background: #e6fbf1;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mega-gem-img img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
      padding: 2px;
      transition: transform 0.2s ease;
    }

    .mega-gem-text {
      font-size: 13px;
      font-weight: 500;
      color: #475569;
      line-height: 1.4;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: color 0.2s ease;
    }

    .mega-asset-card {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      background: #1a3a4a;
      border: 1px solid transparent;
      border-radius: 12px;
      padding: 16px 20px;
      margin-bottom: 10px;
      transition: all 0.25s ease;
      position: relative;
      text-decoration: none;
      box-sizing: border-box;
      width: 100%;
      overflow: hidden;
    }

    .mega-asset-card:last-child {
      margin-bottom: 0;
    }

    .mega-asset-card:hover {
      filter: brightness(1.15);
      border-color: rgba(0, 200, 150, 0.3) !important;
    }

    .mega-asset-card::after {
      content: "+";
      position: absolute;
      top: 12px;
      right: 12px;
      font-size: 14px;
      color: rgba(255, 255, 255, 0.3);
      line-height: 1;
      z-index: 5;
    }

    .mega-asset-content {
      position: relative;
      z-index: 3;
      flex: 1;
      padding-right: 20px;
      box-sizing: border-box;
    }

    .mega-asset-name {
      font-size: 14px;
      font-weight: bold;
      color: #ffffff;
      margin-bottom: 6px;
      transition: color 0.25s ease;
    }

    .mega-asset-desc {
      font-size: 12px;
      color: rgba(255, 255, 255, 0.55);
      line-height: 1.5;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
      white-space: normal;
      word-wrap: break-word;
    }

    .mega-asset-card:hover .mega-asset-name {
      color: #2dd498;
    }

    .mega-mcp-card {
      display: flex;
      align-items: center;
      gap: 12px;
      background: #e6fbf1;
      border: 1px dashed #1d9e75;
      border-radius: 8px;
      padding: 12px 16px;
      text-decoration: none;
      transition: all 0.2s ease;
      margin-top: auto;
      box-sizing: border-box;
      width: 100%;
    }

    .mega-mcp-card:hover {
      background: #d1f7e4 !important;
      border-color: #157347 !important;
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(29, 158, 117, 0.15);
    }

    .mega-mcp-icon {
      color: #1d9e75;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .mega-mcp-info {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .mega-mcp-title {
      color: #0f5132;
      font-weight: 700;
      font-size: 13px;
      line-height: 1.2;
    }

    .mega-mcp-subtitle {
      color: #157347;
      font-size: 11px;
      font-weight: 500;
      line-height: 1.2;
    }

    /* Viewport-relative centering desktop layout overlay rules */
    @media (min-width: 1101px) {
      .header-inner {
        position: relative !important;
      }

      .nav-dropdown-wrapper {
        position: static !important;
      }

      .mega-menu {
        position: absolute !important;
        top: 100% !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(10px) !important;
        width: 1160px !important;
      }

      .nav-dropdown-wrapper:hover .mega-menu {
        transform: translateX(-50%) translateY(0) !important;
      }
    }

    /* Mobile & Tablet stacked dropdown layout rules */
    @media (max-width: 1100px) {
      .nav-dropdown-wrapper {
        flex-direction: column !important;
        align-items: flex-start !important;
        position: relative !important;
        width: 100% !important;
      }

      .mega-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        max-height: none !important;
        padding: 0 !important;
        background: transparent !important;
      }

      .nav-dropdown-wrapper:hover .mega-menu {
        display: none !important;
      }

      .nav-dropdown-wrapper.active .mega-menu {
        display: flex !important;
      }

      .mega-zone {
        width: 100% !important;
        padding: 24px 16px !important;
        background: transparent !important;
        border: none !important;
      }

      .mega-zone-1 {
        background: #ffffff !important;
      }

      .mega-zone-2 {
        background: #f0fdf4 !important;
        border-top: 1px solid var(--border-light) !important;
        border-bottom: 1px solid var(--border-light) !important;
        border-left: none !important;
        border-right: none !important;
      }

      .mega-zone-3 {
        background: #002d33 !important;
        color: #ffffff !important;
      }
    }

    /* =========================================
   HEADER NAV UNDERLINE ANIMATION
   ========================================= */
    .header-nav>a,
    .nav-dropdown-trigger {
      position: relative;
    }

    .header-nav>a::after,
    .nav-dropdown-trigger::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0%;
      height: 2px;
      background-color: #00C896;
      transition: width 0.2s ease;
    }

    .header-nav>a:hover::after,
    .header-nav>a.active::after,
    .nav-dropdown-trigger:hover::after,
    .nav-dropdown-wrapper:hover .nav-dropdown-trigger::after {
      width: 100%;
    }

    /* =========================================
   HERO SECTION — Light sage editorial style
   ========================================= */
    .guide-hero {
      background: #e8efec;
      position: relative;
      overflow: hidden;
      padding: 56px 28px 64px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .guide-hero-inner {
      max-width: 1160px;
      margin: 0 auto;
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: 0.6fr 1.4fr;
      gap: 20px 0;
      align-items: center;
      min-height: 340px;
    }

    .guide-hero-left {}
    .guide-hero-left > :last-child { margin-bottom: 0; }

    .guide-breadcrumb {
      grid-column: 1 / -1;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      color: #6b7280;
      margin-bottom: 0px;
      font-weight: 500;
      max-width: 1200px;
      width: 100%;
    }

    @media (min-width: 769px) {
      .guide-breadcrumb {
        flex-wrap: nowrap;
      }

      .guide-breadcrumb a,
      .guide-breadcrumb .sep {
        white-space: nowrap;
      }

      .guide-breadcrumb .current {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }

    .guide-breadcrumb a {
      color: #4b9e7a;
      transition: color 0.2s;
      text-decoration: none;
    }

    .guide-breadcrumb a:hover {
      color: var(--green);
    }

    .guide-breadcrumb .sep {
      color: #9ca3af;
      font-size: 12px;
      margin: 0 2px;
    }

    .guide-breadcrumb .current {
      color: #374151;
      font-weight: 600;
    }

    .guide-hero-title {
      font-size: clamp(34px, 5.5vw, 56px);
      font-weight: 900;
      color: #0f1724;
      letter-spacing: -0.035em;
      line-height: 1.08;
      margin-bottom: 18px;
    }

    .guide-hero-subtitle {
      font-size: 17px;
      color: #4b5563;
      line-height: 1.7;
      margin-bottom: 24px;
      max-width: 500px;
    }

    .guide-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 32px;
    }

    .guide-tag {
      display: inline-flex;
      align-items: center;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.07em;
      padding: 5px 12px;
      border-radius: 100px;
      background: rgba(26, 122, 94, 0.09);
      border: 1px solid rgba(26, 122, 94, 0.2);
      color: #1a7a5e;
    }

    .guide-hero-btns {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
    }

    .hero-btn-angles {
      background: var(--green);
      color: #ffffff;
      font-family: var(--font);
      font-weight: 700;
      font-size: 15px;
      padding: 12px 26px;
      border-radius: var(--radius);
      border: none;
      cursor: pointer;
      transition: var(--transition);
      display: inline-flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
      box-shadow: 0 2px 8px rgba(26, 122, 94, 0.18);
    }

    .hero-btn-angles:hover {
      background: #155f48;
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(26, 122, 94, 0.3);
    }

    .hero-btn-angles:hover .hero-btn-arrow {
      transform: translateX(4px);
    }

    .hero-btn-arrow {
      transition: transform 0.2s ease;
    }

    /* Hero illustration placeholder */
    .guide-hero-visual {
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      height: 100%;
    }

    .guide-hero-illus-placeholder {
      width: 100%;
      min-height: 300px;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.55);
      border: 1.5px dashed rgba(26, 122, 94, 0.25);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 14px;
      padding: 40px 32px;
      position: relative;
      overflow: hidden;
    }

    .guide-hero-illus-placeholder::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 80% 20%, rgba(35, 196, 140, 0.07) 0%, transparent 55%),
        radial-gradient(circle at 20% 80%, rgba(26, 122, 94, 0.05) 0%, transparent 45%);
      pointer-events: none;
    }

    .illus-placeholder-icon {
      width: 64px;
      height: 64px;
      border-radius: 18px;
      background: rgba(26, 122, 94, 0.1);
      border: 1.5px solid rgba(26, 122, 94, 0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #1a7a5e;
      position: relative;
      z-index: 1;
    }

    .illus-placeholder-label {
      font-size: 13px;
      font-weight: 600;
      color: #6b7280;
      letter-spacing: 0.04em;
      text-align: center;
      position: relative;
      z-index: 1;
    }

    .illus-placeholder-sublabel {
      font-size: 11px;
      color: #9ca3af;
      text-align: center;
      position: relative;
      z-index: 1;
    }

    /* =========================================
   GUIDE BODY LAYOUT — 2 COLUMN
   ========================================= */
    .guide-body {
      background: var(--white);
      padding: 48px 32px 96px;
      /* Hero -> Article space 80px, bottom padding 96px */
    }

    .guide-body-inner {
      max-width: 860px;
      margin: 0 auto;
    }

    /* =========================================
   BLOG ARTICLE LAYOUT
   ========================================= */
    .guide-content {
      max-width: 100%;
      font-size: 22px;
      font-weight: 400;
      color: #2D3748;
      line-height: 1.8;
    }

    .article-top-label {
      font-size: 14px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--green);
      margin-bottom: 24px;
    }

    .article-section {
      margin-bottom: 80px;
      /* reduced from 120px */
    }

    .article-h2 {
      font-size: 36px;
      font-weight: 800;
      color: #0F172A;
      letter-spacing: -0.025em;
      margin: 56px 0 28px;
      /* reduced from 80px 0 36px */
      line-height: 1.25;
    }

    /* Only the very first heading in the body sits flush; subsequent section
       headings keep their top margin (the body is now one .article-section). */
    .article-section > .article-h2:first-child {
      margin-top: 0;
    }

    .article-h3 {
      font-size: 28px;
      font-weight: 700;
      color: #0F172A;
      margin: 48px 0 20px;
      /* reduced from 64px 0 28px */
      line-height: 1.3;
    }

    .article-p {
      margin-bottom: 24px;
      /* reduced from 40px */
      text-align: justify;
    }

    /* Unified Callout / Note Boxes in "Quick Recap" Style */
    .callout-box {
      border-left: 4px solid var(--green, #10b981);
      padding-left: 32px;
      margin: 36px 0;
      background: transparent !important;
      border-radius: 0 !important;
      box-shadow: none !important;
    }

    .callout-box.emerald {
      border-left-color: var(--green, #10b981);
    }

    .callout-box.warning {
      border-left-color: #f97316;
    }

    .callout-box.mistake {
      border-left-color: #EF4444;
    }

    .callout-title {
      font-size: 20px;
      font-weight: 700;
      color: var(--green, #10b981);
      margin-bottom: 18px;
      font-family: var(--font-family, inherit);
    }

    .callout-box.warning .callout-title {
      color: #ea580c;
    }

    .callout-box.mistake .callout-title {
      color: #EF4444;
    }

    .callout-bullets {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .callout-row {
      display: flex;
      align-items: flex-start;
      gap: 16px;
    }

    .callout-icon {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 1.5px dashed var(--green, #10b981);
      color: var(--green, #10b981);
      margin-top: 2px;
      box-sizing: border-box;
    }

    .callout-box.warning .callout-icon {
      border-color: #f97316;
      color: #f97316;
    }

    .callout-box.mistake .callout-icon {
      border-color: #EF4444;
      color: #EF4444;
    }

    .callout-icon svg {
      width: 14px;
      height: 14px;
      fill: currentColor;
    }

    .callout-text {
      font-size: 18px;
      line-height: 1.8;
      color: var(--text-color, #334155);
    }

    @media (max-width: 768px) {
      .callout-box {
        padding-left: 24px;
      }

      .callout-title {
        font-size: 18px;
      }

      .callout-text {
        font-size: 16px;
        line-height: 1.7;
      }

      .callout-bullets {
        gap: 16px;
      }
    }

    /* Fix content hidden under sticky header */
    .article-section,
    [id] {
      scroll-margin-top: 120px;
    }


    /* Lists */
    .article-list {
      margin: 40px 0 48px 40px;
      list-style-type: disc;
    }

    .article-list li {
      margin-bottom: 20px;
      padding-left: 8px;
      font-size: 22px;
      line-height: 1.8;
    }

    .article-list li::marker {
      color: var(--green);
    }

    /* Editorial Pull Quote */
    .article-pullquote {
      font-size: 28px;
      /* decreased from 32px to prevent wrapping */
      font-weight: 400;
      font-style: italic;
      color: #0F172A;
      line-height: 1.5;
      margin: 80px 0;
      padding: 24px 0;
      border-top: 1px solid var(--border-light);
      border-bottom: 1px solid var(--border-light);
      border-left: none;
      text-align: center;
      letter-spacing: -0.01em;
    }

    /* Angle Links */
    .article-links {
      display: flex;
      flex-direction: column;
      gap: 16px;
      margin: 48px 0;
    }

    .article-link-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 76px;
      padding: 0 28px;
      background: #f7f8fa;
      border: 1px solid rgba(0, 0, 0, 0.06);
      border-radius: 12px;
      text-decoration: none;
      transition: var(--transition);
    }

    .article-link-row:hover {
      background: var(--white);
      border-color: var(--green-bright);
      box-shadow: 0 8px 24px rgba(35, 196, 140, 0.08);
      transform: translateY(-2px);
    }

    .article-link-text {
      font-size: 16px;
      font-weight: 600;
      color: var(--navy);
      display: flex;
      align-items: center;
      gap: 8px;
      flex: 1;
      min-width: 0;
    }

    .article-link-text strong {
      flex-shrink: 0;
    }

    .article-link-text span {
      font-weight: 400;
      color: var(--text-body);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .article-link-arrow-wrapper {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      width: 32px;
      flex-shrink: 0;
    }

    .article-link-arrow {
      color: var(--green);
      transition: transform 0.2s;
    }

    .article-link-row:hover .article-link-arrow {
      transform: translateX(4px);
    }

    /* Image Placeholders */
    .article-image-placeholder {
      width: 100%;
      height: auto;
      aspect-ratio: 16/9;
      background: #f0f2f5;
      border-radius: 16px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin: 48px 0;
      color: #9ca3af;
      font-size: 14px;
      border: 1px dashed #cbd5e1;
    }

    .article-image-placeholder.wide-banner {
      aspect-ratio: 21/9;
      background: #0b1826;
      border-color: rgba(255, 255, 255, 0.1);
      color: rgba(255, 255, 255, 0.4);
    }

    .text-emerald {
      color: var(--green);
      font-weight: 700;
    }

    /* =========================================
   STICKY SIDEBAR (Right)
   ========================================= */
    .guide-sidebar {
      position: sticky;
      top: 110px;
    }

    .sidebar-card {
      background: var(--white);
      border: 1.5px solid var(--border-light);
      border-radius: var(--radius-lg);
      padding: 28px;
      /* increased padding */
      margin-bottom: 24px;
      box-shadow: var(--shadow-md);
    }

    .sidebar-card-title {
      font-size: 13px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--text-muted);
      margin-bottom: 18px;
    }

    .sidebar-toc {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .sidebar-toc li {
      border-bottom: 1px solid var(--border-light);
    }

    .sidebar-toc li:last-child {
      border-bottom: none;
    }

    .sidebar-toc a {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 14px;
      font-weight: 500;
      color: var(--text-body);
      height: 48px;
      /* TOC height ~48px */
      text-decoration: none;
      transition: all 0.2s ease;
    }

    .sidebar-toc a:hover,
    .sidebar-toc a.active {
      color: var(--green);
      font-weight: 600;
      /* active state semibold */
    }

    .sidebar-toc a::before {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--border-light);
      flex-shrink: 0;
      transition: background 0.2s ease;
    }

    .sidebar-toc a:hover::before,
    .sidebar-toc a.active::before {
      background: var(--green-bright);
    }

    .sidebar-cta-text {
      font-size: 16px;
      /* 16-17px */
      color: var(--text-body);
      line-height: 1.6;
      margin-bottom: 20px;
    }

    .sidebar-btn-primary {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 52px;
      /* button height 52-56px */
      background: var(--green);
      color: #fff;
      font-family: var(--font);
      font-size: 15px;
      font-weight: 700;
      border-radius: var(--radius);
      text-decoration: none;
      transition: var(--transition);
      margin-bottom: 14px;
    }

    .sidebar-btn-primary:hover {
      background: #155f48;
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(26, 122, 94, 0.3);
    }

    .sidebar-link {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      font-size: 13.5px;
      font-weight: 600;
      color: var(--green);
      text-decoration: none;
      transition: gap 0.18s ease;
    }

    .sidebar-link:hover {
      gap: 10px;
    }

    /* Progress bar mini indicator */
    .sidebar-progress {
      background: var(--navy);
      border-radius: var(--radius-lg);
      padding: 24px 28px;
      /* increased padding by ~15% */
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 24px;
      border: 1px solid rgba(35, 196, 140, 0.15);
    }

    .sidebar-progress-icon {
      color: var(--green-bright);
      flex-shrink: 0;
    }

    .sidebar-progress-text {
      font-size: 18px;
      /* 18px semibold */
      font-weight: 600;
      color: rgba(255, 255, 255, 0.95);
      line-height: 1.35;
    }

    .sidebar-progress-text span {
      color: var(--green-bright);
      display: block;
      font-size: 14px;
      /* 14-15px meta text */
      font-weight: 500;
      opacity: 0.85;
      margin-top: 4px;
    }

    /* =========================================
   RELATED GUIDES
   ========================================= */
    .related-section {
      background: var(--light-alt);
      padding: 80px 28px 80px;
      /* rhythm: Article -> More Playbooks 80px, bottom padding 80px to prevent card overflow */
      border-top: 1px solid var(--border-light);
    }

    .related-inner {
      max-width: 1280px;
      /* increased to match guide-body-inner width */
      margin: 0 auto;
    }

    .related-header {
      margin-bottom: 48px;
    }

    .related-label {
      font-size: 14px;
      /* increased from 12px */
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--green);
      margin-bottom: 12px;
    }

    .related-title {
      font-size: 36px;
      /* increased from 28px */
      font-weight: 800;
      color: var(--text-dark);
      letter-spacing: -0.02em;
    }

    .related-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 32px;
      /* increased grid gap to 32px */
    }

    .related-card {
      background: var(--white);
      border: 1.5px solid var(--border-light);
      border-radius: var(--radius-lg);
      padding: 32px;
      /* increased card padding to ~32px */
      text-decoration: none;
      display: flex;
      flex-direction: column;
      gap: 12px;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
    }

    /* Featured image thumbnail at the top of each related card (full-bleed). */
    .related-card-img {
      margin: -32px -32px 0;
      height: 150px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #f1f5f9;
      border-bottom: 1px solid var(--border-light);
      padding: 0;
      box-sizing: border-box;
      overflow: hidden;
    }
    .related-card-img img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      display: block;
    }

    .related-card:hover {
      border-color: var(--green-bright);
      box-shadow: 0 12px 32px rgba(35, 196, 140, 0.1);
      transform: translateY(-4px);
    }
    .related-card:hover .related-card-img img { transform: scale(1.03); transition: transform 0.25s ease; }

    .related-card:hover .related-card-arrow {
      transform: translateX(4px);
    }

    .related-card-tag {
      display: inline-block;
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--green);
      background: var(--green-light);
      border: 1px solid var(--green-border);
      border-radius: 100px;
      padding: 3px 10px;
      align-self: flex-start;
    }

    .related-card-title {
      font-size: 28px;
      /* card titles 28-30px */
      font-weight: 800;
      color: var(--text-dark);
      letter-spacing: -0.015em;
      line-height: 1.35;
    }

    .related-card-desc {
      font-size: 16px;
      /* card description 16-17px */
      color: var(--text-muted);
      line-height: 1.65;
      flex: 1;
    }

    .related-card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 12px;
      padding-top: 16px;
      border-top: 1px solid var(--border-light);
    }

    .related-card-link {
      font-size: 14px;
      font-weight: 700;
      color: var(--green);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .related-card-arrow {
      transition: transform 0.2s ease;
    }

    /* =========================================
   BOTTOM CTA
   ========================================= */
    .guide-cta-section {
      background-color: #051d29;
      background-image: linear-gradient(rgba(5, 29, 41, 0.6), rgba(5, 29, 41, 0.6)), url('../images/16.svg');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      position: relative;
      padding: 80px 28px;
      /* rhythm: More Playbooks -> CTA: 80px, CTA -> Footer: 80px */
      text-align: center;
      overflow: hidden;
    }

    .guide-cta-inner {
      max-width: 720px;
      margin: 0 auto;
      position: relative;
      z-index: 2;
    }

    .guide-cta-h2 {
      font-size: 48px;
      /* headline size 48-56px */
      font-weight: 900;
      color: #fff;
      margin-bottom: 20px;
      letter-spacing: -0.025em;
      line-height: 1.25;
    }

    .guide-cta-h2 span {
      color: var(--green-bright);
    }

    .guide-cta-sub {
      font-size: 18px;
      /* subheadline 18-20px */
      color: rgba(255, 255, 255, 0.7);
      margin-bottom: 40px;
      line-height: 1.7;
    }

    .guide-cta-btns {
      display: flex;
      gap: 24px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .btn-cta-white {
      background: #fff;
      color: var(--navy);
      font-weight: 700;
      height: 56px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 32px;
      border-radius: var(--radius);
      transition: var(--transition);
      font-family: var(--font);
      font-size: 16px;
    }

    .btn-cta-white:hover {
      background: var(--light);
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
    }

    .btn-cta-ghost {
      background: transparent;
      color: #fff;
      border: 1.5px solid rgba(255, 255, 255, 0.3);
      font-weight: 700;
      height: 56px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 32px;
      border-radius: var(--radius);
      transition: var(--transition);
      font-family: var(--font);
      font-size: 16px;
    }

    .btn-cta-ghost:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: #fff;
      transform: translateY(-2px);
    }

    /* =========================================
   FOOTER
   ========================================= */
    footer {
      background: #051d29;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
      padding: 52px 28px 32px;
    }

    .footer-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 40px;
      flex-wrap: wrap;
      padding-bottom: 36px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      margin-bottom: 28px;
    }

    .footer-tagline {
      font-size: 13px;
      color: rgba(255, 255, 255, 0.35);
      max-width: 240px;
      line-height: 1.55;
    }

    .footer-links a {
      display: block;
      font-size: 13px;
      color: rgba(255, 255, 255, 0.4);
      margin-bottom: 9px;
      transition: var(--transition);
    }

    .footer-links a:hover {
      color: var(--green-bright);
      transform: translateX(4px);
    }

    .footer-links h5 {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: rgba(255, 255, 255, 0.25);
      margin-bottom: 14px;
    }

    .footer-bottom {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 12px;
      color: rgba(255, 255, 255, 0.25);
    }

    /* =========================================
   SCROLL ANIMATIONS
   ========================================= */
    .scroll-animate {
      opacity: 0;
      transform: translateY(24px);
    }

    .scroll-animate.animated {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .stagger-enter {
      opacity: 0;
      animation: fadeInSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes fadeInSlideUp {
      0% {
        opacity: 0;
        transform: translateY(20px);
      }

      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* =========================================
   RESPONSIVE
   ========================================= */
    @media (max-width: 1100px) {
      .header-nav {
        display: none;
      }

      .header-actions {
        display: none;
      }

      .hamburger {
        display: flex;
      }

      #header.nav-open { background: #ffffff; }
  #header.nav-open .header-collapse {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 16px 24px 24px;
    gap: 4px;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 16px 32px rgba(0,0,0,0.12);
    z-index: 999;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
  }
  #header.nav-open .header-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  #header.nav-open .header-nav a {
    padding: 12px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--border-light);
  }

      #header.nav-open .header-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 16px 0 0;
    width: 100%;
  }
  #header.nav-open .header-actions a {
    justify-content: center;
    text-align: center;
  }
    }

    @media (max-width: 1024px) {
      .guide-hero-inner {
        grid-template-columns: 1fr;
        gap: 20px 48px;
      }

      .guide-hero-visual {
        max-width: 500px;
        margin-top: 28px;
      }

      .guide-body-inner {
        grid-template-columns: 1fr;
      }

      .guide-sidebar {
        position: static;
        top: auto;
      }

      .audience-block {
        grid-template-columns: 1fr;
      }

      .audience-visual {
        order: -1;
      }

      .info-cards {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 768px) {
      .hamburger {
        display: flex;
      }

      .guide-hero {
        padding: 48px 20px 56px;
      }

      .guide-breadcrumb {
        font-size: 14px;
        margin-bottom: 16px;
      }

      .guide-hero-title {
        line-height: 1.2;
      }

      .guide-content {
        line-height: 1.4;
      }

      .guide-body {
        padding: 32px 20px 80px;
      }

      .article-p {
        font-size: 16px;
        margin-bottom: 12px;
        text-align: left;
      }

      h4.wp-block-heading {
        margin-bottom: 8px;
      }

      .article-h2 {
        font-size: 24px;
        margin: 20px 0 14px;
      }

      .article-h3 {
        font-size: 20px;
        margin: 18px 0 12px;
      }

      .article-list {
        margin: 20px 0 28px 20px;
      }

      .article-list li {
        margin-bottom: 10px;
        line-height: 1.4;
        font-size: 16px;
      }

      .related-grid {
        /* Overrides the inline grid-template-columns on the related section. */
        grid-template-columns: 1fr !important;
      }

      .related-card-img {
        margin: -34px -32px 12px;
        height: auto;
      }

      .related-card-title {
        font-size: 24px;
      }

      .guide-cta-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
      }

      .article-section {
        margin-bottom: 40px;
      }

      .related-section {
        padding: 40px 28px 40px;
      }

      .related-header {
        margin-bottom: 24px;
      }

      .guide-cta-h2 {
        font-size: 32px;
      }

      .guide-cta-sub {
        font-size: 16px;
      }

      .btn-cta-white,
      .btn-cta-ghost {
        height: 40px;
        font-size: 14px;
      }

      .footer-inner {
        flex-direction: column;
        gap: 28px;
      }

      .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
      }

      .footer-links a {
        font-size: 14px;
      }

      .footer-tagline {
        font-size: 14px;
        max-width: 100%;
      }

      .angle-card {
        flex-wrap: wrap;
      }
    }






/* Mobile Dropdown styles (outside media query so JS can toggle it safely, or inside media query) */
    .mobile-menu-dropdown {
      display: none;
      position: fixed;
      top: 64px;
      /* Adjust based on new header height 12px*2 + 40px = 64px */
      left: 0;
      width: 100%;
      z-index: 9999;
      background: #0D1F2D;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      box-sizing: border-box;
    }

    .mobile-menu-dropdown.active {
      display: block;
    }

    .mobile-menu-dropdown a {
      display: block;
      padding: 14px 20px;
      color: white;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      text-decoration: none;
      font-family: 'Inter', sans-serif;
      transition: background 0.2s;
    }

    .mobile-menu-dropdown a:hover {
      background: rgba(255, 255, 255, 0.05);
    }

    .mobile-menu-dropdown a.mobile-btn-cta {
      background: #00C896;
      color: #0D1F2D;
      text-align: center;
      font-weight: 600;
      border-radius: 8px;
      margin: 16px 20px;
      padding: 14px 20px;
      border-bottom: none;
    }

    .mobile-menu-dropdown a.mobile-btn-cta:hover {
      background: #00B085;
    }










    /* Hook visual panels: the AH Hook Panel block (affhub/hook-panel) styles
       every element inline to match the source /guides exactly (flex layout,
       no panel padding, per-panel warm colours). No class rules here so nothing
       conflicts with those inline styles. */

    /* Responsive and premium tables styling */
    .article-table-wrapper {
      overflow-x: auto;
      border-radius: 16px;
      border: 1px solid #DDE4F0;
      margin: 24px 0 40px;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
      background: #ffffff;
      -webkit-overflow-scrolling: touch;
      width: 100%;
      max-width: 100%;
    }

    .article-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 16px;
      min-width: 900px;
    }

    .article-table thead tr {
      background: #E9EDF7 !important;
    }

    .article-table th {
      background: #E9EDF7 !important;
      color: #0f172a;
      font-weight: 700;
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      padding: 18px 22px;
      text-align: left;
      border-bottom: 2px solid #DDE4F0;
      white-space: nowrap;
    }

    .article-table td {
      padding: 18px 22px;
      border-bottom: 1px solid #f1f5f9;
      vertical-align: top;
      line-height: 1.65;
      color: #374151;
    }

    .article-table tr:last-child td {
      border-bottom: none;
    }

    .article-table tbody tr:hover td {
      background: #f0fdf4;
    }

    .article-table td:first-child,
    .article-table th:first-child {
      font-weight: 700;
      color: #0f172a;
    }

    /* Scrollbar styling */
    .article-table-wrapper::-webkit-scrollbar {
      height: 6px;
    }

    .article-table-wrapper::-webkit-scrollbar-track {
      background: #f1f5f9;
    }

    .article-table-wrapper::-webkit-scrollbar-thumb {
      background: #cbd5e1;
      border-radius: 3px;
    }

    /* =========================================
       Native block-editor tables (core/table) added in the CMS.
       Matches the source /guides/*.html inline table styling exactly.
       ========================================= */
    .guide-content .wp-block-table {
      margin: 32px 0;
    }
    .guide-content .wp-block-table table {
      width: 100%;
      border-collapse: collapse;
      font-size: 16px;
      border: 1px solid var(--border-light);
    }
    /* neutralise WP core's default thead/cell borders so only the source's
       right-borders + row bottom-borders show */
    .guide-content .wp-block-table thead { border-bottom: 0; }
    .guide-content .wp-block-table thead tr {
      background: var(--light);
      border-bottom: 2px solid var(--border-light);
    }
    .guide-content .wp-block-table th {
      border: none;
      border-right: 1px solid var(--border-light);
      padding: 16px;
      text-align: left;
      font-weight: 700;
      color: var(--navy);
    }
    .guide-content .wp-block-table tbody tr {
      border-bottom: 1px solid var(--border-light);
    }
    .guide-content .wp-block-table td {
      border: none;
      border-right: 1px solid var(--border-light);
      padding: 16px;
      vertical-align: top;
      line-height: 1.6;
      color: var(--text-body);
    }
    .guide-content .wp-block-table th:last-child,
    .guide-content .wp-block-table td:last-child { border-right: none; }

    /* TikTok Mockup iframe styling */
    .tiktok-video-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin: 36px auto;
      max-width: 300px;
    }

    .tiktok-video-placeholder {
      display: block;
      position: relative;
      width: 300px;
      aspect-ratio: 9 / 16;
      border-radius: 24px;
      border: 1px solid rgba(16, 185, 129, 0.45);
      overflow: hidden;
      background: transparent;
      box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
      transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
      cursor: pointer;
    }

    .tiktok-video-placeholder:hover {
      transform: scale(1.025);
      border-color: rgba(16, 185, 129, 0.65);
      box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
    }

    .tiktok-video-img {
      display: block;
      width: 100%;
      height: 100%;
      border: none;
      outline: none;
      box-shadow: none;
      filter: none;
      border-radius: inherit;
      object-fit: cover;
      object-position: center;
      transform: scale(1.03);
    }

    .tiktok-play-icon {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 64px;
      height: 64px;
      background: rgba(16, 185, 129, 0.8);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      transition: transform 0.25s ease, background 0.25s ease;
    }

    .tiktok-video-placeholder:hover .tiktok-play-icon {
      transform: translate(-50%, -50%) scale(1.1);
      background: rgba(16, 185, 129, 0.95);
    }

    .tiktok-caption-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 16px;
      color: var(--green);
      font-size: 16px;
      font-weight: 700;
      text-decoration: none;
      transition: gap 0.2s ease;
    }

    .tiktok-caption-link:hover {
      text-decoration: underline;
      gap: 10px;
    }

    .video-intro-line {
      margin-bottom: 24px;
    }

    @media (min-width: 1024px) {
      .video-intro-line {
        white-space: nowrap;
        font-size: 19px;
      }
    }

    @media (max-width: 1023px) {
      .video-intro-line {
        white-space: normal;
      }
    }

    .preview-card {
      transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .preview-card:hover {
      border-color: var(--green-bright) !important;
      box-shadow: var(--shadow-md) !important;
      transform: translateY(-2px);
    }

    .preview-card:hover .preview-card-link {
      color: var(--green-bright) !important;
    }

    @media (max-width: 768px) {
      .preview-grid-3 {
        grid-template-columns: 1fr !important;
      }
    }

    /* ── Article reference / learn-more / back-to link ─────────── */
    .article-reference-link {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      color: #2563eb;
      font-size: 18px;
      font-weight: 700;
      text-decoration: none;
      line-height: 1.4;
      padding: 2px 0;
      border-bottom: 1.5px solid transparent;
      transition: color 0.18s, border-color 0.18s, opacity 0.18s;
    }

    .article-reference-link:hover {
      color: #1d4ed8;
      border-bottom-color: #1d4ed8;
      opacity: 0.9;
    }

    .article-reference-link .ref-icon {
      font-size: 15px;
      color: #60a5fa;
      flex-shrink: 0;
    }

    .article-reference-link .ref-arrow {
      font-size: 18px;
      flex-shrink: 0;
    }

/* ---- additive selectors present only in some guides ---- */
.affiliate-link-code-pill {
      background: #e6fbf1;
      border: 1px solid #a7f3d0;
      color: #047857;
      font-family: monospace;
      font-size: 15px;
      padding: 2px 6px;
      border-radius: 6px;
      font-weight: 600;
    }
.article-in-post-img {
      width: 100%;
      border: 3px solid #cbd5e1;
      border-radius: 12px;
      transition: transform 0.3s ease, border-color 0.3s ease;
      box-shadow: var(--shadow-md);
      cursor: zoom-in;
      max-width: 720px;
      display: block;
      margin: 40px auto;
    }
.article-in-post-img:hover {
      transform: scale(1.02);
      border-color: #10b981;
    }

    /* =========================================
       Native image blocks (core/image) added in the CMS. The source class now
       lands on the <figure>; the rules below make the <img> fill it and match
       the source /guides styling for each image kind.
       ========================================= */
    .guide-content .wp-block-image { max-width: 100%; }
    .guide-content .wp-block-image img { display: block; height: auto; }
    /* full-width bordered content image + centered framed figure */
    .guide-content .wp-block-image.article-in-post-img img,
    .guide-content .wp-block-image.guide-figure img { width: 100%; border-radius: inherit; }
    .guide-content .wp-block-image.guide-figure {
      max-width: 720px;
      margin: 40px auto;
      border: 3px solid #cbd5e1;
      border-radius: 12px;
      box-shadow: var(--shadow-md);
    }
    /* hook-panel image (contained, centered, no frame) */
    .guide-content .wp-block-image.hook-panel-img {
      display: flex;
      justify-content: center;
      border: none;
      box-shadow: none;
    }
    .guide-content .wp-block-image.hook-panel-img img {
      width: auto;
      max-width: 90%;
      max-height: 280px;
      object-fit: contain;
      border-radius: 12px;
    }
    /* Hook visual panel (raw-HTML variant used by the MCP guides). The
       affhub/hook-panel block renders full inline styles that override these;
       these rules style the plain-HTML panels imported from the source. */
    .guide-content .hook-visual-panel {
      display: grid;
      grid-template-columns: 40% 1fr;
      gap: 40px;
      background: #f0fdf4;
      border-radius: 24px;
      border: 1px solid rgba(15, 23, 42, 0.08);
      padding: 32px 40px;
      margin: 32px 0;
      overflow: hidden;
      align-items: center;
    }
    .guide-content .hook-panel-img-col {
      border-radius: 16px;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .guide-content .hook-panel-img-col img {
      width: 100%;
      height: auto;
      border-radius: 12px;
      object-fit: cover;
      display: block;
      max-height: 340px;
    }
    .guide-content .hook-panel-text-col {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .guide-content .hook-panel-eyebrow {
      font-size: 11px;
      font-weight: 700;
      color: #1d9e75;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }
    .guide-content .hook-panel-title {
      font-size: 22px;
      font-weight: 700;
      color: #0f172a;
      line-height: 1.3;
      letter-spacing: -0.02em;
    }
    .guide-content .hook-panel-body {
      font-size: 16px;
      color: #475569;
      line-height: 1.7;
      text-align: justify;
    }
    .guide-content .hook-panel-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 8px;
    }
    .guide-content .hook-panel-tag {
      background: #fff;
      border: 1px solid #d1fae5;
      color: #065f46;
      font-size: 12px;
      font-weight: 600;
      padding: 4px 12px;
      border-radius: 100px;
    }
    @media (max-width: 768px) {
      .guide-content .hook-visual-panel {
        grid-template-columns: 1fr;   /* raw-HTML grid variant */
        flex-direction: column;       /* affhub/hook-panel block flex variant */
        padding: 12px;
        gap: 24px;
      }
      /* block variant sets these inline — override so the columns stack full-width */
      .guide-content .hook-panel-img-col {
        max-width: none !important;
        flex: none !important;
        width: 100%;
      }
      .guide-content .hook-panel-text-col {
        flex: none !important;
        padding: 12px !important;
      }
      .guide-content .hook-panel-title { margin-bottom: 0 !important; }
      .guide-content .hook-panel-body { margin-bottom: 6px !important; }
      .guide-content .hook-panel-img-col img { max-height: 240px; }
    }
.callout-box.warning .callout-icon, .callout-box.mistake .callout-icon {
      border-color: #f97316;
      color: #f97316;
    }
.callout-box.warning .callout-title, .callout-box.mistake .callout-title {
      color: #ea580c;
    }
.callout-box.warning, .callout-box.mistake {
      border-left-color: #f97316;
    }
.copy-post-box {
      background: #F8FAFC;
      border: 1px solid var(--border-light);
      border-radius: 20px;
      padding: 38px;
      position: relative;
      margin: 24px 0 40px;
      font-family: inherit;
      font-size: 19px;
      line-height: 1.8;
      color: #1e293b;
      text-align: justify;
      transition: border-color 0.25s ease, box-shadow 0.25s ease;
    }
.copy-post-box p {
      margin-bottom: 16px;
    }
.copy-post-box p:last-child {
      margin-bottom: 0;
    }
.copy-post-box:hover {
      border-color: #10b981;
      box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
    }
.copy-post-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #e6fbf1;
      border: 1px solid #10b981;
      color: #047857;
      font-size: 13px;
      font-weight: 700;
      padding: 8px 16px;
      border-radius: 100px;
      cursor: pointer;
      transition: all 0.2s ease;
    }
.copy-post-btn-wrapper {
      display: flex;
      justify-content: flex-end;
      margin-bottom: -12px;
      position: relative;
      z-index: 10;
    }
.copy-post-btn:active {
      transform: translateY(0);
    }
.copy-post-btn:hover {
      background: #d1fae5;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    }
    /* "Copied!" confirmation state (matches source inline feedback) */
    .copy-post-btn.copied {
      background: #047857;
      color: #fff;
      border-color: #047857;
    }
.grid-2-col {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
      align-items: center;
    }
.header-nav > a, .nav-dropdown-trigger { position: relative; }
.header-nav > a.active { color: #1d9e75 !important; font-weight: 700; }
.header-nav > a::after, .nav-dropdown-trigger::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px;
  background-color: #00C896; transition: width 0.2s ease;
}
.header-nav > a:hover { background: var(--light); color: var(--text-dark); }
.header-nav > a:hover::after, .header-nav > a.active::after, .nav-dropdown-trigger:hover::after, .nav-dropdown-wrapper:hover .nav-dropdown-trigger::after { width: 100%; }
.mockup-avatar {
      width: 40px;
      height: 40px;
      background: var(--green-bright);
      border-radius: 50%;
      flex-shrink: 0;
    }
.mockup-body {
      font-size: 15px;
      color: var(--text-body);
      line-height: 1.6;
      background: var(--light-alt);
      padding: 16px;
      border-radius: 8px;
      font-style: italic;
      margin-bottom: 16px;
    }
.mockup-card {
      background: var(--white);
      border-radius: var(--radius-lg);
      padding: 24px;
      box-shadow: var(--shadow-lg);
      border: 1px solid var(--border-light);
    }
.mockup-footer {
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      color: var(--green);
      text-align: right;
    }
.mockup-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
    }
.mockup-name {
      font-weight: 700;
      color: var(--navy);
      font-size: 15px;
    }
.mockup-time {
      font-size: 12px;
      color: var(--text-muted);
    }

/* =========================================================================
   Affiliate Hub — single playbook layout resolver (merged from per-guide CSS)
   Guides ship two layouts: a 2-column grid (article + TOC sidebar) and a
   centered single column (angle guides, no sidebar). We detect the sidebar
   with :has() so one stylesheet serves both.
   ========================================================================= */
.guide-body-inner { max-width: 900px; margin: 0 auto; display: block; }
.guide-content { max-width: 100%; }
.guide-body-inner:has(.guide-sidebar) {
  max-width: 1280px; display: grid; grid-template-columns: 1fr 320px;
  gap: 60px; align-items: start;
}
.guide-body-inner:has(.guide-sidebar) .guide-content { max-width: 900px; }
@media (max-width: 900px) {
  .guide-body-inner:has(.guide-sidebar) { display: block; grid-template-columns: 1fr; }
}
