/*
Theme Name: Pawn & Plan
Theme URI: https://pawnandplan.com/
Author: Pawn & Plan
Author URI: https://pawnandplan.com/
Description: A clean, modern theme for a beginner-focused chess education site. Features category-driven mega-menu navigation, tabbed guide archives, and ready-made pages for About, Contact, and legal content.
Version: 1.6.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pawn-and-plan
*/


    :root {
      --white: #ffffff;
      --canvas: #f6f7f8;
      --ink: #11151d;
      --ink-2: #252b36;
      --muted: #626b7a;
      --blue: #3d434c;
      --blue-dark: #23262c;
      --blue-pale: #ececee;
      --blue-soft: #f4f5f7;
      --line: #dfe5ee;
      --green: #13795b;
      --shadow-sm: 0 7px 22px rgba(24, 38, 65, .07);
      --shadow-lg: 0 22px 55px rgba(24, 38, 65, .13);
      --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      background: var(--white);
      color: var(--ink);
      font-family: var(--sans);
      font-size: 17px;
      line-height: 1.62;
      -webkit-font-smoothing: antialiased;
    }
    a { color: inherit; }
    .wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      margin: 0 0 16px;
      color: var(--blue);
      font-size: .76rem;
      font-weight: 850;
      letter-spacing: .12em;
      text-transform: uppercase;
    }
    .eyebrow::before {
      content: "";
      width: 22px;
      height: 3px;
      background: currentColor;
      border-radius: 3px;
    }
    h1, h2, h3 { margin-top: 0; letter-spacing: -.035em; line-height: 1.1; }
    h2 { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3.05rem); }
    p { margin-top: 0; }
    .muted { color: var(--muted); }
    :focus-visible { outline: 3px solid rgba(20,22,27,.32); outline-offset: 4px; }

    .utility {
      background: var(--ink);
      color: #dfe5ef;
      font-size: .8rem;
    }
    .utility-inner {
      min-height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      text-align: center;
    }
    .utility strong { color: white; }
    .utility a { color: #cfd2d7; font-weight: 800; text-decoration: none; }
    .utility a:hover { text-decoration: underline; }

    .site-header {
      position: sticky;
      z-index: 20;
      top: 0;
      background: rgba(255,255,255,.96);
      border-bottom: 1px solid var(--line);
      backdrop-filter: blur(12px);
    }
    .header-inner {
      min-height: 78px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 28px;
    }
    .logo {
      display: inline-flex;
      align-items: center;
      gap: 11px;
      font-size: 1.24rem;
      font-weight: 900;
      letter-spacing: -.035em;
      text-decoration: none;
      white-space: nowrap;
    }
    .logo-img {
      height: 34px;
      width: auto;
      display: block;
    }
    .logo-mark {
      width: 38px;
      height: 38px;
      display: grid;
      place-items: center;
      background: var(--blue);
      border-radius: 10px;
      color: white;
      font-size: 1.28rem;
      box-shadow: inset 0 -3px 0 rgba(0,0,0,.13);
    }
    .nav-group { display: flex; align-items: center; gap: 25px; }
    nav ul {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 24px;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    nav a {
      color: #454d5a;
      font-size: .86rem;
      font-weight: 750;
      text-decoration: none;
    }
    nav a:hover { color: var(--blue); }
    .header-cta {
      padding: 10px 15px;
      background: var(--blue-pale);
      border-radius: 8px;
      color: var(--blue-dark);
      font-size: .82rem;
      font-weight: 850;
      text-decoration: none;
      white-space: nowrap;
    }
    .header-cta:hover { background: #e4e5e8; }

    .hero {
      position: relative;
      overflow: hidden;
      padding: 78px 0 58px;
      background:
        linear-gradient(90deg, rgba(20,22,27,.05) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(rgba(20,22,27,.05) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(145deg, #fff 0%, #f9fafb 68%, #eef0f3 100%);
    }
    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
      gap: clamp(48px, 8vw, 100px);
      align-items: center;
    }
    .hero h1 {
      max-width: 700px;
      margin-bottom: 22px;
      font-size: clamp(3.25rem, 6vw, 5.65rem);
      font-weight: 900;
    }
    .hero h1 span { color: var(--blue); }
    .hero-copy {
      max-width: 650px;
      margin-bottom: 28px;
      color: var(--muted);
      font-size: 1.13rem;
    }
    .primary-button {
      display: inline-flex;
      align-items: center;
      gap: 11px;
      padding: 15px 21px;
      background: var(--blue);
      border: 2px solid var(--blue);
      border-radius: 9px;
      color: white;
      font-size: .94rem;
      font-weight: 850;
      text-decoration: none;
      box-shadow: 0 10px 24px rgba(0,0,0,.22);
    }
    .primary-button::after { content: "→"; font-size: 1.1rem; }
    .primary-button:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
    .cta-note {
      display: inline-block;
      margin-left: 16px;
      color: var(--muted);
      font-size: .78rem;
      vertical-align: middle;
    }

    .hero-board {
      position: relative;
      width: min(100%, 420px);
      aspect-ratio: 1;
      justify-self: end;
      padding: 14px;
      background: white;
      border: 1px solid var(--line);
      border-radius: 24px;
      box-shadow: var(--shadow-lg);
    }
    .board-grid {
      height: 100%;
      overflow: hidden;
      display: grid;
      place-items: center;
      background: repeating-conic-gradient(#edf1f7 0 25%, #2b2f37 0 50%) 0 / 50% 50%;
      border-radius: 13px;
    }
    .hero-piece {
      color: white;
      font-size: clamp(8rem, 17vw, 12rem);
      line-height: 1;
      text-shadow: 0 8px 2px rgba(0,0,0,.22);
    }
    .idea-card {
      position: absolute;
      left: -26px;
      bottom: 28px;
      width: 205px;
      padding: 13px 15px;
      background: var(--ink);
      border: 1px solid #333a47;
      border-radius: 10px;
      color: white;
      box-shadow: var(--shadow-sm);
    }
    .idea-card span {
      display: block;
      margin-bottom: 3px;
      color: #c9ccd2;
      font-size: .65rem;
      font-weight: 850;
      letter-spacing: .1em;
      text-transform: uppercase;
    }
    .idea-card strong { font-size: .82rem; line-height: 1.35; }

    .trust-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      margin-top: 58px;
      background: var(--line);
      border: 1px solid var(--line);
      border-radius: 12px;
      overflow: hidden;
    }
    .trust-item {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 11px;
      min-height: 64px;
      padding: 12px 20px;
      background: rgba(255,255,255,.91);
      color: #444c59;
      font-size: .82rem;
      font-weight: 750;
      text-align: center;
    }
    .trust-item span { color: var(--blue); font-size: 1.35rem; }

    .route-section { padding: 82px 0 72px; }
    .section-heading {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 35px;
      margin-bottom: 32px;
    }
    .section-heading h2 { margin-bottom: 0; }
    .section-heading > p { max-width: 520px; margin: 0 0 6px; color: var(--muted); }
    .route-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }
    .route-card {
      position: relative;
      min-height: 205px;
      padding: 26px;
      background: var(--canvas);
      border: 1px solid var(--line);
      border-radius: 14px;
      text-decoration: none;
    }
    .route-card:hover {
      background: white;
      border-color: #c6c9cf;
      box-shadow: var(--shadow-sm);
      transform: translateY(-2px);
    }
    .route-label {
      display: inline-block;
      margin-bottom: 35px;
      padding: 5px 8px;
      background: white;
      border: 1px solid var(--line);
      border-radius: 5px;
      color: var(--blue);
      font-size: .65rem;
      font-weight: 850;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .route-card h3 { margin-bottom: 9px; font-size: 1.25rem; }
    .route-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
    .route-arrow { position: absolute; top: 23px; right: 24px; color: var(--blue); font-weight: 900; }

    .path-section { padding: 78px 0; background: var(--ink); color: white; }
    .path-section .eyebrow { color: #c9ccd2; }
    .path-intro { max-width: 680px; margin-bottom: 36px; }
    .path-intro p:last-child { color: #b8c0cd; }
    .path-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 15px;
    }
    .path-card {
      position: relative;
      min-height: 245px;
      padding: 24px;
      background: #1a202b;
      border: 1px solid #303746;
      border-radius: 14px;
    }
    .path-card.recommended {
      background: var(--blue);
      border-color: #3a3f47;
    }
    .recommended-tag {
      position: absolute;
      top: -12px;
      left: 18px;
      padding: 5px 9px;
      background: white;
      border-radius: 5px;
      color: var(--blue-dark);
      font-size: .62rem;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .step-number {
      display: block;
      margin: 8px 0 44px;
      color: #7e8a9d;
      font-size: .76rem;
      font-weight: 850;
      letter-spacing: .08em;
    }
    .recommended .step-number { color: #cbced3; }
    .path-piece {
      position: absolute;
      top: 17px;
      right: 20px;
      color: #343c4b;
      font-size: 3.25rem;
      line-height: 1;
    }
    .recommended .path-piece { color: rgba(255,255,255,.24); }
    .path-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
    .path-card p { margin: 0; color: #aeb7c5; font-size: .88rem; line-height: 1.5; }
    .recommended p { color: #e7e9ec; }

    .ad-band { padding: 52px 0; background: var(--canvas); }
    .ad-slot {
      min-height: 112px;
      display: grid;
      place-items: center;
      background: white;
      border: 1px dashed #bac4d2;
      color: #8a94a3;
      font-size: .7rem;
      letter-spacing: .13em;
      text-align: center;
      text-transform: uppercase;
    }

    .articles { padding: 84px 0 92px; }
    .articles-head {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 30px;
      margin-bottom: 34px;
    }
    .articles-head h2 { margin-bottom: 0; }
    .view-all { color: var(--blue); font-size: .88rem; font-weight: 850; text-decoration: none; }
    .article-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
    }
    .article-card {
      min-height: 270px;
      display: flex;
      flex-direction: column;
      padding: 26px;
      background: white;
      border: 1px solid var(--line);
      border-radius: 14px;
    }
    .article-card:hover { border-color: #c6c9cf; box-shadow: var(--shadow-sm); }
    .article-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 29px;
    }
    .category {
      color: var(--blue);
      font-size: .68rem;
      font-weight: 850;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .difficulty {
      color: #737d8c;
      font-size: .69rem;
      font-weight: 750;
    }
    .article-card h3 { margin-bottom: 12px; font-size: 1.3rem; }
    .article-card p { margin-bottom: 21px; color: var(--muted); font-size: .88rem; line-height: 1.52; }
    .read-link { margin-top: auto; font-size: .82rem; font-weight: 850; text-decoration: none; }
    .read-link:hover { color: var(--blue); }

    .about { padding: 58px 0; background: var(--blue-soft); border-top: 1px solid #e5e7ea; }
    .about-inner {
      display: grid;
      grid-template-columns: 210px minmax(0, 1fr);
      gap: 60px;
      align-items: center;
    }
    .about h2 { margin: 0; font-size: 1.85rem; }
    .about p { max-width: 790px; margin: 0; color: var(--muted); }

    footer { padding: 34px 0; background: #0b0e13; color: #bbc3cf; }
    .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
    .footer-brand { color: white; font-weight: 900; }
    .footer-links { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; padding: 0; list-style: none; }
    .footer-links a { font-size: .82rem; text-decoration: none; }
    .footer-links a:hover { color: white; }

    @media (max-width: 980px) {
      .header-inner { padding: 16px 0; align-items: flex-start; }
      .nav-group { align-items: flex-end; flex-direction: column-reverse; gap: 10px; }
      nav ul { justify-content: flex-end; }
      .hero-grid { grid-template-columns: 1fr .62fr; gap: 38px; }
      .route-grid { grid-template-columns: 1fr; }
      .route-card { min-height: 0; }
      .path-grid { grid-template-columns: repeat(2, 1fr); }
      .article-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 680px) {
      .wrap { width: min(100% - 28px, 1180px); }
      body { font-size: 16px; }
      .utility-inner { padding: 8px 0; }
      .header-inner, .footer-inner, .section-heading, .articles-head { align-items: flex-start; flex-direction: column; }
      .nav-group { width: 100%; align-items: flex-start; }
      nav ul { justify-content: flex-start; gap: 9px 17px; }
      .header-cta { display: none; }
      .hero { padding: 58px 0 46px; }
      .hero-grid, .about-inner { grid-template-columns: 1fr; }
      .hero h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
      .cta-note { display: block; margin: 12px 0 0; }
      .hero-board { width: min(88%, 370px); justify-self: center; }
      .idea-card { left: -12px; }
      .trust-row { grid-template-columns: 1fr; }
      .route-section, .path-section, .articles { padding-block: 64px; }
      .path-grid, .article-grid { grid-template-columns: 1fr; }
      .path-card { min-height: 0; }
      .about-inner { gap: 14px; }
    }

    /* Mega-menu dropdowns */
    .mainnav .has-mega { position: static; }
    .nav-top { display: inline-flex; align-items: center; gap: 6px; }
    .nav-top .caret { transition: transform .18s; opacity: .8; }
    .has-mega:hover .nav-top .caret, .has-mega:focus-within .nav-top .caret { transform: rotate(180deg); }
    .mega {
      position: absolute;
      left: 0; right: 0;
      top: 100%;
      background: #fff;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      box-shadow: var(--shadow-lg);
      opacity: 0;
      visibility: hidden;
      transform: translateY(-8px);
      transition: opacity .16s ease, transform .16s ease, visibility .16s;
      z-index: 19;
    }
    .has-mega:hover > .mega, .has-mega:focus-within > .mega { opacity: 1; visibility: visible; transform: none; }
    .mega-inner { display: grid; grid-template-columns: 268px minmax(0,1fr); gap: 48px; padding: 32px 0 36px; }
    .mega-intro .mega-title { display: inline-block; margin-bottom: 10px; color: var(--blue); font-size: 1.35rem; font-weight: 900; letter-spacing: -.035em; text-decoration: none; }
    .mega-intro .mega-title:hover { color: var(--blue-dark); }
    .mega-intro p { margin: 0 0 20px; color: var(--muted); font-size: .92rem; line-height: 1.55; }
    .mega-btn { display: inline-block; padding: 11px 16px; background: var(--blue); border-radius: 8px; color: #fff; font-size: .82rem; font-weight: 850; text-decoration: none; }
    .mega-btn:hover { background: var(--blue-dark); }
    .mega-cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px 26px; align-content: start; }
    .mega-item { display: block; padding: 10px 12px; border-radius: 9px; text-decoration: none; }
    .mega-item:hover { background: var(--blue-soft); }
    .mega-item strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: .92rem; font-weight: 800; }
    .mega-item span { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
    @media (max-width: 980px) {
      .mainnav .has-mega { position: relative; }
      .mega { display: none; }
      .nav-top .caret { display: none; }
    }
  
/* About page */
    .page-hero { padding: 70px 0 34px; background: linear-gradient(145deg,#fff 0%, #f9fafb 68%, #eef0f3 100%); border-bottom: 1px solid var(--line); }
    .page-hero h1 { max-width: 760px; margin-bottom: 18px; font-size: clamp(2.5rem, 5vw, 3.9rem); font-weight: 900; }
    .page-hero .lead { max-width: 640px; color: var(--muted); font-size: 1.13rem; }
    .about-section { padding: 68px 0; }
    .about-section.alt { background: var(--canvas); border-block: 1px solid var(--line); }
    .prose { max-width: 720px; }
    .prose p { margin-bottom: 18px; color: var(--ink-2); }
    .prose p:last-child { margin-bottom: 0; }
    .value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
    .value-card { padding: 26px; background: white; border: 1px solid var(--line); border-radius: 14px; }
    .value-card .vnum { display: inline-block; margin-bottom: 14px; padding: 5px 8px; background: var(--blue-pale); border-radius: 6px; color: var(--blue-dark); font-size: .65rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
    .value-card h3 { margin-bottom: 8px; font-size: 1.2rem; }
    .value-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
    .about-cta { padding: 62px 0; background: var(--ink); color: white; text-align: center; }
    .about-cta h2 { margin-bottom: 14px; }
    .about-cta p { max-width: 540px; margin: 0 auto 26px; color: #b8c0cd; }
    @media (max-width: 980px) { .value-grid { grid-template-columns: 1fr; } }

    
/* Content pages */
    .page-hero { padding: 66px 0 30px; background: linear-gradient(145deg,#fff 0%, #f9fafb 68%, #eef0f3 100%); border-bottom: 1px solid var(--line); }
    .page-hero h1 { max-width: 760px; margin-bottom: 12px; font-size: clamp(2.3rem, 4.6vw, 3.4rem); font-weight: 900; }
    .page-hero .updated { color: var(--muted); font-size: .92rem; }
    .legal { padding: 56px 0 78px; }
    .legal-body { max-width: 760px; }
    .legal-body h2 { margin: 40px 0 12px; font-size: 1.5rem; }
    .legal-body h2:first-child { margin-top: 0; }
    .legal-body h3 { margin: 24px 0 8px; font-size: 1.12rem; }
    .legal-body p { margin: 0 0 16px; color: var(--ink-2); }
    .legal-body ul { margin: 0 0 16px; padding-left: 22px; color: var(--ink-2); }
    .legal-body li { margin-bottom: 8px; }
    .legal-body a { color: var(--blue); font-weight: 700; }
    .note-box { margin: 8px 0 34px; padding: 16px 18px; background: var(--blue-soft); border: 1px solid #e5e7ea; border-radius: 12px; color: var(--ink-2); font-size: .92rem; }
    /* Contact */
    .contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.8fr); gap: 46px; align-items: start; padding: 56px 0 80px; }
    .contact-form { padding: 30px; background: var(--canvas); border: 1px solid var(--line); border-radius: 16px; }
    .field { margin-bottom: 18px; }
    .field label { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 800; }
    .field input, .field select, .field textarea { width: 100%; padding: 12px 13px; background: white; border: 1px solid var(--line); border-radius: 9px; font-family: inherit; font-size: .95rem; color: var(--ink); }
    .field textarea { min-height: 140px; resize: vertical; }
    .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20,22,27,.14); }
    .contact-info h3 { margin: 0 0 6px; font-size: 1.1rem; }
    .contact-info p { margin: 0 0 22px; color: var(--muted); font-size: .95rem; }
    .contact-info a { color: var(--blue); font-weight: 700; text-decoration: none; }
    @media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 30px; } }

    
/* Category / guides pages */
    .cat-body { padding: 40px 0 84px; }
    .tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
    .tab { padding: 9px 14px; background: var(--canvas); border: 1px solid var(--line); border-radius: 999px; color: #3c4653; font-size: .82rem; font-weight: 800; cursor: pointer; white-space: nowrap; font-family: inherit; transition: background .15s, border-color .15s, color .15s; }
    .tab:hover { border-color: #c6c9cf; color: var(--blue-dark); }
    .tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }
    .result-count { margin: 0 0 22px; color: var(--muted); font-size: .86rem; font-weight: 700; }
    .empty { grid-column: 1 / -1; padding: 46px; text-align: center; color: var(--muted); background: var(--canvas); border: 1px dashed #bac4d2; border-radius: 14px; }

    
/* Subcategory pages */
    .breadcrumb { margin: 0 0 16px; font-size: .82rem; }
    .breadcrumb a { color: var(--muted); text-decoration: none; font-weight: 700; }
    .breadcrumb a:hover { color: var(--blue); }
    .breadcrumb span { margin: 0 8px; color: #c2cad6; }
    .breadcrumb .current { color: var(--ink-2); font-weight: 700; }
    .sub-body { padding: 44px 0 60px; }
    .more-section { padding: 40px 0 84px; border-top: 1px solid var(--line); }
    .more-section h2 { font-size: 1.4rem; margin-bottom: 16px; }
    .topic-links { display: flex; flex-wrap: wrap; gap: 9px; }
    .topic-links a { padding: 9px 14px; background: var(--canvas); border: 1px solid var(--line); border-radius: 999px; color: #3c4653; font-size: .82rem; font-weight: 800; text-decoration: none; transition: border-color .15s, color .15s; }
    .topic-links a:hover { border-color: #c6c9cf; color: var(--blue-dark); }
    .topic-links a.all { background: var(--blue-pale); border-color: #d6d8dc; color: var(--blue-dark); }

    /* Mobile nav */
    .nav-toggle {
      display: none;
      align-items: center;
      justify-content: center;
      width: 44px; height: 44px;
      padding: 0;
      background: var(--blue-pale);
      border: 1px solid var(--line);
      border-radius: 10px;
      color: var(--blue-dark);
      cursor: pointer;
    }
    .nav-toggle-bars { position: relative; display: block; width: 18px; height: 12px; }
    .nav-toggle-bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s, top .2s; }
    .nav-toggle-bars span:nth-child(1) { top: 0; }
    .nav-toggle-bars span:nth-child(2) { top: 5px; }
    .nav-toggle-bars span:nth-child(3) { top: 10px; }
    .nav-group.is-open .nav-toggle-bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
    .nav-group.is-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
    .nav-group.is-open .nav-toggle-bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

    @media (max-width: 980px) {
      .header-inner { flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 0; gap: 14px; }
      .nav-group { flex-direction: row; align-items: center; gap: 0; }
      .nav-toggle { display: inline-flex; }

      .nav-group > nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        display: none;
        z-index: 30;
        max-height: calc(100vh - 92px);
        overflow-y: auto;
      }
      .nav-group.is-open > nav { display: block; }

      .mainnav { flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0; width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
      .mainnav > li { width: 100%; border-bottom: 1px solid var(--line); }
      .mainnav > li:last-child { border-bottom: none; }
      .mainnav > li > a { display: flex; align-items: center; justify-content: space-between; padding: 14px 8px; font-size: 1rem; font-weight: 800; color: var(--ink); }
      .mainnav > li > a:hover { color: var(--blue); }
      .nav-top .caret { display: inline-block; opacity: .7; }
      .has-mega.expanded .nav-top .caret { transform: rotate(180deg); }

      .mega { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--canvas); }
      .has-mega.expanded > .mega { display: block; }
      .mega-inner { grid-template-columns: 1fr; gap: 0; padding: 6px 0 12px; width: auto; }
      .mega-intro { padding: 0; }
      .mega-intro .mega-title, .mega-intro p { display: none; }
      .mega-btn { display: inline-block; margin: 6px 8px 10px 24px; }
      .mega-cols { grid-template-columns: 1fr; gap: 0; }
      .mega-item { padding: 10px 8px 10px 24px; }
      .mega-item strong { font-size: .92rem; }
      .mega-item span { display: none; }
    }


    /* Custom logo + hero image (P&P Options) */
    .site-header .custom-logo-link { display: inline-flex; align-items: center; }
    .site-header .custom-logo, .site-header .logo-img { height: 34px; width: auto; max-width: 100%; object-fit: contain; }
    .hero-board--image .board-grid { background: none; padding: 0; }
    .hero-board--image .board-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 13px; display: block; }
