/*
 * Purific Australia — Blog Template Stylesheet
 * Version: 1.0.0
 * Author: Purific Australia
 * Description: Blog post template styles for WordPress FSE theme
 */

@font-face { font-family: Urbanist; font-style: normal; font-weight: 400; font-display: swap; src: url("https://purific.com/wp-content/uploads/fonts/L0xjDF02iFML4hGCyOCpRdycFsGxSrqDyx4fE5OrS8SlKw.woff2") format("woff2"); }
  @font-face { font-family: Urbanist; font-style: normal; font-weight: 500; font-display: swap; src: url("https://purific.com/wp-content/uploads/uag-plugin/assets/fonts/urbanist/L0xjDF02iFML4hGCyOCpRdycFsGxSrqDLBkvEZmq.woff2") format("woff2"); }
  @font-face { font-family: Urbanist; font-style: normal; font-weight: 700; font-display: swap; src: url("https://purific.com/wp-content/uploads/uag-plugin/assets/fonts/urbanist/L0xjDF02iFML4hGCyOCpRdycFsGxSrqDLBkvH5mqe8Q.woff2") format("woff2"); }

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

  :root {
    --ink:          #0a0a0a;
    --ink-mid:      #3a3a3a;
    --ink-soft:     #6b6b6b;
    --ink-muted:    #9b9b9b;
    --navy:         #022640;
    --surface:      #ffffff;
    --surface-2:    #f7f8f8;
    --surface-3:    #eef0f1;
    --brand:        rgb(0, 209, 251);
    --brand-dark:   rgb(0, 170, 204);
    --brand-pale:   rgba(0, 209, 251, 0.06);   /* consolidated from 0.04/0.05/0.06/0.07 */
    --brand-pale-strong: rgba(0, 209, 251, 0.12); /* highlighted tint — active/focus states */
    --rule:         #e2e4e5;
    --nav-h:        56px;
    --content-w:    1440px;
    --gutter:       40px;
    --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --font-body:    "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --font-ui:      Urbanist, "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif;

    /* ── Overlay / scrim ── */
    --scrim:             rgba(10, 12, 16, 0.48);

    /* ── Focus ring ── */
    --focus-ring:        rgba(0, 209, 251, 0.12);

    /* ── Brand border ── */
    --brand-border:      rgba(0, 209, 251, 0.25);

    /* ── Surface ghost (white overlays on dark) ── */
    --surface-ghost:     rgba(255, 255, 255, 0.12);

    /* ── Footer palette ── */
    --footer-text:       rgba(255, 255, 255, 0.45);
    --footer-text-mid:   rgba(255, 255, 255, 0.65);
    --footer-text-muted: rgba(255, 255, 255, 0.3);
    --footer-rule:       rgba(255, 255, 255, 0.1);
    --footer-text-bright: rgba(255, 255, 255, 0.9);

    /* ── Brand gradient ── */
    --gradient-brand: linear-gradient(90deg, var(--navy), var(--brand));

    /* ── Image fallback ── */
    --img-fallback:  #d6e5ed;

    /* ── Footer background ── */
    --footer-bg:     var(--navy);

    /* ── Nav overlay palette ── */
    --nav-text-ghost:   rgba(255, 255, 255, 0.85);
    --nav-border-ghost: rgba(255, 255, 255, 0.55);
    --nav-hover-bg:     rgba(255, 255, 255, 0.12);

    /* ── Transitions ── */
    --t-fast:     0.15s;
    --t-mid:      0.20s;
    --t-slow:     0.33s;
    --ease-slide: cubic-bezier(0.4, 0, 0.2, 1);

    /* ── Shadows ── */
    --shadow-nav:        0 1px 0 rgba(0, 0, 0, 0.08);
    --shadow-panel:      0 12px 48px rgba(2, 38, 64, 0.14);
    --shadow-card:       0 8px 32px rgba(2, 38, 64, 0.10);
    --shadow-hover:      0 6px 24px rgba(2, 38, 64, 0.10);

    /* ── Error / status ── */
    --color-error:       #b04040;
  }

  /* gradient — h1 only */
  .gradient-text-purific {
    background-image: var(--gradient-brand);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }

  html { scroll-behavior: smooth; }
  body { overflow-x: hidden; }

  .skip-to-content:focus {
    position: fixed;
    top: 8px; left: 8px;
    z-index: 9999;
    padding: 8px 16px;
    background: var(--navy);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 13px;
    border-radius: 3px;
    text-decoration: none;
    clip: auto;
    width: auto; height: auto;
  }

  .visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }

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

  /* ── NAV — transparent-on-scroll + mega menu ── */
  #site-header-wrapper {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 500;
    height: var(--nav-h);
  }

  nav#main-nav {
    width: 100%;
    height: var(--nav-h);
    background: transparent;
    transition: background 0.33s;
    position: relative;
    z-index: 501;
  }

  nav#main-nav.scrolled {
    background: var(--surface);
    box-shadow: var(--shadow-nav);
  }

  nav#main-nav.mega-open {
    background: var(--surface);
    box-shadow: var(--shadow-nav);
  }

  .nav-inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }

  .nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    z-index: 1;
  }

  .nav-logo img {
    height: 14px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    transition: filter 0.33s;
  }

  nav#main-nav.scrolled .nav-logo img,
  nav#main-nav.mega-open .nav-logo img {
    filter: brightness(0);
  }

  .nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    list-style: none;
    height: var(--nav-h);
    gap: 0;
  }

  .nav-menu > li {
    position: static;
    height: var(--nav-h);
    display: flex;
    align-items: center;
  }

  .nav-menu > li > a {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    color: var(--nav-text-ghost);
    text-decoration: none;
    padding: 0 14px;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: color 0.2s, opacity 0.2s;
    position: relative;
  }

  .nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 14px; right: 14px;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s;
  }

  .nav-menu > li > a:hover,
  .nav-menu > li.is-active > a { color: rgba(255,255,255,1); }

  .nav-menu > li.is-active > a::after { transform: scaleX(1); }

  nav#main-nav.scrolled .nav-menu > li > a,
  nav#main-nav.mega-open .nav-menu > li > a {
    color: var(--ink-soft);
  }

  nav#main-nav.scrolled .nav-menu > li > a:hover,
  nav#main-nav.scrolled .nav-menu > li.is-active > a,
  nav#main-nav.mega-open .nav-menu > li > a:hover,
  nav#main-nav.mega-open .nav-menu > li.is-active > a {
    color: var(--ink);
  }

  .nav-menu > li.has-mega > a .chevron {
    display: inline-block;
    width: 5px; height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.55;
    transition: transform 0.2s, opacity 0.2s;
    flex-shrink: 0;
    margin-left: 1px;
  }

  .nav-menu > li.is-active > a .chevron {
    transform: rotate(-135deg) translateY(-2px);
    opacity: 0.9;
  }

  /* right side actions */
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    z-index: 1;
  }

  .nav-icon-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--nav-text-ghost);
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.3s;
  }

  .nav-icon-btn:hover { background: var(--nav-hover-bg); color: #fff; }

  nav#main-nav.scrolled .nav-icon-btn,
  nav#main-nav.mega-open .nav-icon-btn { color: var(--ink-soft); }

  nav#main-nav.scrolled .nav-icon-btn:hover,
  nav#main-nav.mega-open .nav-icon-btn:hover {
    background: var(--surface-2);
    color: var(--ink);
  }

  .nav-icon-btn svg {
    width: 18px; height: 18px;
    stroke: currentColor; fill: none;
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  }

  .nav-cta {
    font-family: var(--font-ui);
    font-size: 13px; font-weight: 500;
    letter-spacing: 0;
    color: #fff;
    background: transparent;
    border: 1.5px solid var(--nav-border-ghost);
    padding: 6px 17px;
    border-radius: 20px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
    margin-left: 6px;
    opacity: 0.85;
  }

  .nav-cta:hover { border-color: var(--footer-text-bright); opacity: 1; }

  nav#main-nav.scrolled .nav-cta,
  nav#main-nav.mega-open .nav-cta {
    color: var(--ink-mid);
    border-color: rgba(0,0,0,0.25);
    opacity: 1;
  }

  nav#main-nav.scrolled .nav-cta:hover,
  nav#main-nav.mega-open .nav-cta:hover {
    border-color: var(--ink-mid);
    color: var(--ink);
  }

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

  .nav-hamburger span {
    display: block;
    width: 22px; height: 1.5px;
    background: #fff;
    transition: transform 0.25s, opacity 0.2s, background 0.33s;
  }

  nav#main-nav.scrolled .nav-hamburger span,
  nav#main-nav.mega-open .nav-hamburger span { background: var(--ink); }

  /* ── Mega scrim ── */
  #mega-scrim {
    position: fixed;
    inset: 0;
    top: var(--nav-h);
    background: var(--scrim);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    z-index: 400;
    pointer-events: none;
  }

  #mega-scrim.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* ── Mega panels ── */
  .mega-panel {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--surface);
    border-top: 2px solid var(--brand);
    box-shadow: var(--shadow-panel);
    z-index: 450;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    pointer-events: none;
  }

  .mega-panel.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mega-panel-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px 48px;
    display: grid;
    gap: 0 48px;
  }

  .mega-panel-inner.cols-3-feature { grid-template-columns: 1fr 1fr 1fr 280px; }
  .mega-panel-inner.cols-2-feature { grid-template-columns: 1fr 1fr 280px; }

  .mega-col-heading {
    font-family: var(--font-ui);
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--brand-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rule);
    display: flex; align-items: center; gap: 8px;
    text-decoration: none;
  }

  .mega-col-heading:hover { color: var(--navy); }

  .mega-col-heading svg {
    width: 13px; height: 13px;
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    opacity: 0.5; flex-shrink: 0;
  }

  .mega-links { list-style: none; display: flex; flex-direction: column; }

  .mega-links li a {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-ui);
    font-size: 13px; font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 9px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: color 0.15s, padding-left 0.15s;
  }

  .mega-links li:last-child a { border-bottom: none; }

  .mega-links li a:hover { color: var(--navy); padding-left: 4px; }

  .mega-links li a .link-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--brand);
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s;
  }

  .mega-links li a:hover .link-dot { opacity: 1; }

  .mega-col-heading + .mega-col-heading,
  .mega-links + .mega-col-heading { margin-top: 28px; }

  /* flat icon rows */
  .mega-flat-links { list-style: none; display: flex; flex-direction: column; }

  .mega-flat-links li a {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-decoration: none;
  }

  .mega-flat-links li:last-child a { border-bottom: none; }

  .mega-flat-icon {
    width: 36px; height: 36px;
    border-radius: 6px;
    background: var(--brand-pale);
    border: 1px solid var(--brand-border);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }

  .mega-flat-icon svg {
    width: 16px; height: 16px;
    stroke: var(--brand-dark); fill: none;
    stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  }

  .mega-flat-title {
    font-family: var(--font-ui);
    font-size: 13px; font-weight: 600;
    color: var(--navy); margin-bottom: 2px;
    transition: color 0.15s;
  }

  .mega-flat-links li a:hover .mega-flat-title { color: var(--brand-dark); }

  .mega-flat-desc { font-size: 12px; line-height: 1.55; color: var(--ink-soft); }

  /* feature card */
  .mega-feature {
    display: flex; flex-direction: column;
    background: var(--surface-2);
    border-radius: 4px; overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.2s;
    align-self: start;
    border: 1px solid var(--rule);
  }

  .mega-feature:hover { box-shadow: var(--shadow-hover); }

  .mega-feature-img {
    width: 100%; aspect-ratio: 4/3;
    overflow: hidden; background: var(--surface-3);
    position: relative;
  }

  .mega-feature-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.4s ease;
  }

  .mega-feature:hover .mega-feature-img img { transform: scale(1.04); }

  .mega-feature-badge {
    position: absolute; top: 12px; left: 12px;
    font-family: var(--font-ui);
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--navy); background: var(--brand);
    padding: 3px 8px; border-radius: 2px;
  }

  .mega-feature-body { padding: 16px 18px 20px; }

  .mega-feature-label {
    font-family: var(--font-ui);
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--brand-dark); margin-bottom: 6px; display: block;
  }

  .mega-feature-title {
    font-family: var(--font-display);
    font-size: 15px; font-weight: 600;
    line-height: 1.35; color: var(--navy); margin-bottom: 8px;
  }

  .mega-feature-desc {
    font-size: 12px; line-height: 1.6;
    color: var(--ink-soft); margin-bottom: 14px;
  }

  .mega-feature-cta {
    font-family: var(--font-ui);
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--navy);
    display: flex; align-items: center; gap: 6px;
  }

  .mega-feature-cta svg {
    width: 12px; height: 12px;
    stroke: currentColor; fill: none;
    stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
    transition: transform 0.15s;
  }

  .mega-feature:hover .mega-feature-cta svg { transform: translateX(3px); }

  /* ── HERO ── */
  .hero {
    margin-top: 0;
    display: flex;
    flex-direction: column;
  }

  .hero-image {
    width: 100%;
    height: clamp(300px, 48vw, 580px);
    overflow: hidden;
    background: var(--navy);
    position: relative;
  }

  .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
  }

  .hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(2, 38, 64, 0.38);
    pointer-events: none;
    z-index: 1;
  }

  .hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      transparent 40%,
      rgba(2, 38, 64, 0.55) 75%,
      rgba(2, 38, 64, 0.82) 100%
    );
    pointer-events: none;
    z-index: 2;
  }

  .hero-content {
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    width: 100%;
  }

  .hero-inner {
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 56px var(--gutter) 56px;
  }

  .hero-text {
    max-width: 720px;
  }

  .hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }

  .hero-breadcrumb a,
  .hero-breadcrumb span {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-dark);
    text-decoration: none;
    transition: color 0.15s;
  }

  .hero-breadcrumb a:hover { color: var(--navy); }

  .hero-breadcrumb span[aria-hidden] {
    color: rgba(0,170,204,0.4);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
  }

  .hero-breadcrumb span:last-child {
    color: var(--ink-muted);
    font-weight: 500;
  }

  .hero-headline {
    font-family: var(--font-display);
    font-size: clamp(34px, 4.2vw, 60px);
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin-bottom: 0;
  }

  .hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

  .btn-primary {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    background: var(--brand);
    padding: 14px 36px;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    display: inline-block;
  }

  .btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }

  .btn-ghost {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid var(--navy);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
  }

  .btn-ghost:hover { color: var(--brand-dark); border-color: var(--brand-dark); }

  /* ── META BAR ── */
  .article-head-meta-block {
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: var(--surface-2);
  }

  .article-head-meta-inner {
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 16px var(--gutter);
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .meta-item { display: flex; flex-direction: column; gap: 2px; }

  .meta-label {
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-dark);
  }

  .meta-value { font-family: var(--font-ui); font-size: 11px; font-weight: 500; color: var(--ink-muted); }
  .meta-sep { width: 1px; height: 28px; background: var(--rule); }

  /* ── Audio meta item ── */
  .meta-audio {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .meta-audio-label {
    font-family: var(--font-ui);
    font-size: 9px; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--brand-dark);
  }

  .meta-audio-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 18px;
  }

  .meta-audio-btn {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--navy);
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.15s;
  }

  .meta-audio-btn:hover { background: var(--brand-dark); transform: scale(1.08); }

  .meta-audio-btn svg {
    width: 7px; height: 7px;
    fill: #fff;
    flex-shrink: 0;
  }

  .meta-audio-btn .icon-pause { display: none; }

  .meta-audio-btn.playing .icon-play  { display: none; }
  .meta-audio-btn.playing .icon-pause { display: block; }

  .meta-audio-progress {
    width: 0;
    overflow: hidden;
    transition: width 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .meta-audio-progress.visible { width: 120px; }

  .meta-audio-track {
    flex: 1;
    height: 3px;
    background: var(--rule);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
  }

  .meta-audio-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0%;
    background: var(--brand);
    border-radius: 2px;
    transition: width 0.1s linear;
  }

  .meta-audio-time {
    font-family: var(--font-ui);
    font-size: 10px;
    color: var(--ink-muted);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .breadcrumb { display: flex; align-items: center; gap: 8px; margin-left: auto; }

  .breadcrumb a, .breadcrumb span {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--ink-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .breadcrumb a:hover { color: var(--navy); }
  .breadcrumb-sep { color: var(--rule); font-size: 10px; }

  /* ── LAYOUT ── */
  .content-wrapper {
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 80px var(--gutter) 120px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 80px;
    align-items: start;
  }

  /* ── ARTICLE ── */
  .article-body { min-width: 0; }

  .article-body > p,
  .article-body > blockquote p,
  .article-body > .callout-box p,
  .article-body > .key-takeaway-body p {
    font-size: 17px;
    line-height: 1.78;
    color: var(--ink-mid);
    margin-bottom: 28px;
  }

  /* hard reset author card and comments from inheriting article-body p */
  .author-label,
  .author-name,
  .author-title,
  .author-bio,
  #comments .comment-author,
  #comments .comment-date,
  #comments .comment-body p,
  #comments .comment-form-heading,
  #comments .comment-field label {
    font-size: revert;
    line-height: revert;
    color: revert;
    margin-bottom: revert;
  }

  .article-body h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--navy);
    margin: 64px 0 22px;
    padding-top: 64px;
    border-top: 1px solid var(--rule);
  }

  .article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

  .article-body h3 {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--navy);
    margin: 40px 0 12px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .article-body h3::before {
    content: '';
    display: block;
    width: 16px;
    height: 2px;
    background: var(--brand);
    flex-shrink: 0;
  }

  .article-body strong { color: var(--navy); font-weight: 600; }

  .article-body a {
    color: var(--brand-dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,170,204,0.3);
    transition: border-color 0.15s;
  }

  .article-body a:hover { border-bottom-color: var(--brand-dark); }

  .article-body blockquote {
    border-left: 3px solid var(--brand);
    margin: 40px 0;
    padding: 24px 32px;
    background: var(--brand-pale);
    border-radius: 0 2px 2px 0;
  }

  .article-body blockquote p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--navy);
    font-style: italic;
    margin: 0;
  }

  .callout-box {
    background: var(--surface-2);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--navy);
    padding: 28px 32px;
    margin: 40px 0;
    border-radius: 0 2px 2px 0;
  }

  .callout-box p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-mid); }

  .callout-box strong {
    display: block;
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-dark);
    margin-bottom: 10px;
  }

  /* ── KEY TAKEAWAY ── */
  .key-takeaway {
    margin: 40px 0;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--brand-border);
  }

  .key-takeaway-header {
    background: var(--navy);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .key-takeaway-header svg {
    width: 15px; height: 15px;
    stroke: var(--brand); fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
  }

  .key-takeaway-header span {
    font-family: var(--font-ui);
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--brand);
  }

  .key-takeaway-body {
    background: var(--brand-pale);
    padding: 24px 28px;
  }

  .key-takeaway-body ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
  }

  .key-takeaway-body ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--ink-mid);
  }

  .key-takeaway-body ul li::before {
    content: '';
    display: block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--brand);
    flex-shrink: 0;
    margin-top: 8px;
  }

  .article-image { width: 100%; margin: 40px 0; border-radius: 2px; overflow: hidden; background: var(--surface-3); }
  .article-image img { width: 100%; display: block; height: auto; }

  .article-image figcaption {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--ink-muted);
    padding: 12px 0 4px;
    letter-spacing: 0.04em;
    line-height: 1.5;
  }

  /* comparison table */
  .compare-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 40px 0; }
  .compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }

  .compare-table th {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding: 14px 20px;
    text-align: left;
    border-bottom: 2px solid var(--rule);
    background: var(--surface-2);
  }

  .compare-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--rule);
    color: var(--ink-mid);
    vertical-align: top;
    line-height: 1.5;
  }

  .compare-table tr:last-child td { border-bottom: none; }
  .compare-table td:first-child { font-weight: 600; color: var(--navy); width: 30%; }
  .check { color: var(--brand-dark); font-weight: 700; }
  .cross { color: var(--color-error); font-weight: 700; }

  /* ── SIDEBAR ── */
  .sidebar { position: sticky; top: calc(var(--nav-h) + 32px); }

  .sidebar-section {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 24px;
  }

  .sidebar-header {
    padding: 14px 20px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--rule);
  }

  .sidebar-header h4 {
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-dark);
  }

  .sidebar-body { padding: 20px; }

  .product-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--surface-3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
  }

  .product-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }

  .product-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
  .product-desc { font-size: 13px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 18px; }

  .sidebar-btn {
    display: block;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    background: var(--brand);
    padding: 12px 20px;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
  }

  .sidebar-btn:hover { background: var(--brand-dark); transform: translateY(-1px); }

  /* toc */
  .toc-list { list-style: none; display: flex; flex-direction: column; }

  .toc-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 9px 0;
    border-bottom: 1px solid var(--rule);
    line-height: 1.4;
    transition: color 0.15s;
  }

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

  .toc-list li a::before {
    content: '';
    display: block;
    width: 12px;
    height: 1.5px;
    background: var(--brand);
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.15s;
  }

  .toc-list li a:hover { color: var(--navy); }
  .toc-list li a:hover::before { opacity: 1; }

  .toc-list li a.is-active {
    color: var(--navy);
    font-weight: 600;
  }

  .toc-list li a.is-active::before {
    opacity: 1;
    width: 16px;
    background: var(--brand);
  }

  /* related posts */
  .related-post {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    text-decoration: none;
  }

  .related-post:last-child { border-bottom: none; padding-bottom: 0; }
  .related-post:first-child { padding-top: 0; }

  .related-tag {
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-dark);
  }

  .related-title { font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--navy); transition: color 0.15s; }
  .related-post:hover .related-title { color: var(--brand-dark); }
  .related-meta { font-family: var(--font-ui); font-size: 11px; color: var(--ink-muted); letter-spacing: 0.04em; }

  /* ── FOOTER ── */
  footer { background: var(--footer-bg); color: var(--footer-text); }

  .footer-inner {
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 60px var(--gutter) 0;
  }

  /* main grid: brand col + 3 link cols + locations col */
  .footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.6fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--footer-rule);
  }

  /* brand column */
  .footer-brand-logo {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 900;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--brand);
    text-decoration: none;
    display: block;
    margin-bottom: 16px;
  }

  .footer-brand-desc {
    font-size: 13px; line-height: 1.7;
    color: var(--footer-text);
    margin-bottom: 16px;
    max-width: 280px;
  }

  .footer-abn {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--footer-text-muted);
  }

  .footer-abn strong {
    color: var(--footer-text-mid);
    font-weight: 600;
  }

  /* link columns */
  .footer-col h5 {
    font-family: var(--font-ui);
    font-size: 12px; font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: 0;
  }

  .footer-col ul { list-style: none; }
  .footer-col ul li { margin-bottom: 10px; }

  .footer-col ul li a {
    font-size: 13px;
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.15s;
  }

  .footer-col ul li a:hover { color: var(--footer-text-bright); }

  /* locations column */
  .footer-location { margin-bottom: 20px; }
  .footer-location:last-child { margin-bottom: 0; }

  .footer-location-name {
    font-family: var(--font-ui);
    font-size: 12px; font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
  }

  .footer-location-addr {
    font-size: 12px; line-height: 1.6;
    color: var(--footer-text);
    margin-bottom: 4px;
  }

  .footer-location-contact {
    font-size: 12px;
    color: var(--footer-text);
  }

  .footer-location-contact strong {
    color: var(--footer-text-mid);
    font-weight: 600;
  }

  /* bottom bar */
  .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 24px;
    flex-wrap: wrap;
  }

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

  .footer-social a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.15s;
    display: flex;
  }

  .footer-social a:hover { color: var(--nav-text-ghost); }

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

  /* copyright */
  .footer-copy {
    font-size: 12px;
    color: var(--footer-text-muted);
  }

  /* payment icons */
  .footer-payments {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .footer-payments img {
    height: 22px;
    width: auto;
    opacity: 0.7;
    filter: grayscale(0.3);
    border-radius: 3px;
  }

  .payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    padding: 0 8px;
    background: var(--surface-ghost);
    border: 1px solid var(--surface-ghost);
    border-radius: 3px;
    font-family: var(--font-ui);
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--nav-border-ghost);
    white-space: nowrap;
  }

  /* ── RESPONSIVE ── */

  /* 1024px — tablet landscape */
  @media (max-width: 1024px) {
    .content-wrapper { grid-template-columns: 1fr; padding: 60px var(--gutter) 80px; }
    .sidebar { position: static; }
    .article-head-meta-inner { gap: 16px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .post-nav-item:first-child { padding-right: 28px; }
    .post-nav-item:last-child  { padding-left: 28px; }
  }

  /* 960px — tablet / nav collapse */
  @media (max-width: 960px) {
    .nav-menu { display: none; }
    .nav-hamburger { display: flex; }
    .nav-cta { display: none; }
    .nav-inner { padding: 0 20px; }
    .mega-panel { display: none; }
    #mega-scrim { display: none; }
  }

  /* 768px — large mobile */
  @media (max-width: 768px) {
    :root { --gutter: 20px; }

    /* hero */
    .hero-image { height: 52vw; min-height: 200px; }
    .hero-inner { padding-top: 28px; padding-bottom: 36px; }
    .hero-text { max-width: none; }
    .hero-breadcrumb { margin-bottom: 14px; }
    .hero-headline { font-size: clamp(28px, 7vw, 40px); }
    .hero-excerpt { padding: 16px 18px; margin-top: 16px; }
    .hero-excerpt p { font-size: 14px; }

    /* head meta */
    .article-head-meta-inner { flex-wrap: wrap; gap: 10px; }

    /* article */
    .content-wrapper { padding-top: 32px; padding-bottom: 48px; gap: 40px; }
    .article-body h2 { font-size: 24px; }
    .article-body h3 { font-size: 17px; }
    .article-body blockquote { padding: 16px 20px; }
    .callout-box { padding: 20px 20px; }
    .key-takeaway-body { padding: 18px 20px; }
    .compare-table { font-size: 12px; }
    .compare-table th,
    .compare-table td { padding: 10px 12px; }

    /* foot meta + social */
    .article-foot-meta-block { flex-wrap: wrap; gap: 14px; padding: 18px 20px; }
    .article-foot-meta-divider { display: none; }
    .social-share { padding: 16px 20px; gap: 12px; }
    .share-btn { padding: 7px 12px; font-size: 11px; }

    /* author */
    .author-card { flex-direction: column; gap: 16px; padding: 24px 20px; }
    .author-avatar { width: 56px; height: 56px; }

    /* post nav */
    .post-nav-inner { grid-template-columns: 1fr; }
    .post-nav-item:first-child { border-right: none; border-bottom: 1px solid var(--rule); padding-right: 0; padding-bottom: 24px; }
    .post-nav-item:last-child { padding-left: 0; padding-top: 24px; align-items: flex-start; text-align: left; }

    /* related */
    .related-section { padding: 48px 0 56px; }
    .related-section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .related-grid { grid-template-columns: 1fr; gap: 20px; }

    /* footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-inner { padding-top: 40px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  }

  /* 480px — small mobile */
  @media (max-width: 480px) {
    :root { --gutter: 16px; }

    .article-head-meta-inner { gap: 12px; }
    .meta-sep { display: none; }

    .hero-image { height: 60vw; }
    .hero-headline { font-size: clamp(24px, 8vw, 32px); }

    .article-foot-meta-tags { gap: 4px; }
    .article-foot-meta-tag { font-size: 10px; padding: 2px 8px; }

    .share-btn span { display: none; }
    .share-btn { padding: 8px 10px; }

    .post-nav-title { font-size: 14px; }

    .related-section-title { font-size: 18px; }
  }

  /* ── COMMENTS ── */
  .comments-section {
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 64px var(--gutter) 72px;
    border-top: 1px solid var(--rule);
  }

  .comments-heading {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 600;
    color: var(--navy);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .comments-count {
    font-family: var(--font-ui);
    font-size: 12px; font-weight: 700;
    color: var(--brand-dark);
    background: var(--brand-pale);
    border: 1px solid var(--brand-border);
    padding: 2px 9px;
    border-radius: 20px;
    letter-spacing: 0.04em;
  }

  /* form */
  .comment-form-heading {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 600;
    color: var(--navy);
    margin-bottom: 24px;
  }


  .comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .comment-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .comment-field label {
    font-family: var(--font-ui);
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink-soft);
  }

  .comment-field input,
  .comment-field textarea {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--navy);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
    resize: vertical;
    min-height: 120px;
  }

  .comment-field input::placeholder,
  .comment-field textarea::placeholder { color: var(--ink-muted); }

  .comment-field input:focus,
  .comment-field textarea:focus {
    border-color: var(--brand-dark);
    box-shadow: 0 0 0 3px var(--focus-ring);
  }


  .comment-submit {
    font-family: var(--font-ui);
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--navy);
    background: var(--brand);
    border: none; cursor: pointer;
    padding: 13px 32px;
    border-radius: 2px;
    align-self: flex-start;
    transition: background 0.2s, transform 0.15s;
  }

  .comment-submit:hover { background: var(--brand-dark); transform: translateY(-1px); }

  @media (max-width: 640px) {
    .comment-form-row { grid-template-columns: 1fr; }
    .comments-section { padding-top: 44px; padding-bottom: 52px; }
    .comment-list { margin-bottom: 40px; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
  }

  /* ── MOBILE DRAWER ── */
  #mobile-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 85vw);
    background: var(--surface);
    z-index: 600;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: none;
  }

  #mobile-drawer.open {
    transform: translateX(0);
    box-shadow: -8px 0 40px rgba(2,38,64,0.18);
  }

  #mobile-scrim {
    position: fixed;
    inset: 0;
    background: var(--scrim);
    z-index: 590;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s, visibility 0.28s;
  }

  #mobile-scrim.visible { opacity: 1; visibility: visible; }

  .drawer-header {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--rule);
    flex-shrink: 0;
  }

  .drawer-logo img {
    height: 13px;
    width: auto;
    display: block;
    filter: brightness(0);
  }

  .drawer-close {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    color: var(--ink-soft);
    border-radius: 50%;
    transition: background 0.15s;
  }

  .drawer-close:hover { background: var(--surface-2); }

  .drawer-close svg {
    width: 18px; height: 18px;
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  }

  .drawer-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 24px;
  }

  /* top-level links */
  .drawer-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    height: 52px;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    border-bottom: 1px solid var(--rule);
    transition: background 0.12s;
  }

  .drawer-nav-item:last-of-type { border-bottom: none; }
  .drawer-nav-item:hover { background: var(--surface-2); }

  .drawer-chevron {
    width: 6px; height: 6px;
    border-right: 2px solid var(--ink-muted);
    border-bottom: 2px solid var(--ink-muted);
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform 0.2s;
  }

  /* accordion sub-panel */
  .drawer-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--surface-2);
    border-bottom: 1px solid var(--rule);
  }

  .drawer-sub.open { max-height: 600px; }

  .drawer-sub-heading {
    font-family: var(--font-ui);
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--brand-dark);
    padding: 16px 20px 8px;
  }

  .drawer-sub a {
    display: block;
    font-family: var(--font-ui);
    font-size: 13px; font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 11px 20px 11px 28px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: color 0.12s, background 0.12s;
  }

  .drawer-sub a:last-child { border-bottom: none; }
  .drawer-sub a:hover { color: var(--navy); background: var(--brand-pale); }

  .drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--rule);
    flex-shrink: 0;
  }

  .drawer-cta {
    display: block;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--navy);
    background: transparent;
    border: 1.5px solid rgba(0,0,0,0.25);
    padding: 13px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
  }

  .drawer-cta:hover { border-color: var(--navy); }

  /* hamburger open state — X */
  .nav-hamburger.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav-hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-hamburger.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }


  /* ── CATEGORY META ── */
  .article-foot-meta-block {
    margin-top: 16px;
    padding: 24px 28px;
    background: var(--surface-2);
    border: 1px solid var(--rule);
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
  }

  .article-foot-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .article-foot-meta-label {
    font-family: var(--font-ui);
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ink-muted);
  }

  .article-foot-meta-value {
    font-family: var(--font-ui);
    font-size: 13px; font-weight: 600;
    color: var(--navy);
  }

  .article-foot-meta-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  .article-foot-meta-tag {
    font-family: var(--font-ui);
    font-size: 11px; font-weight: 600;
    color: var(--navy);
    background: var(--brand-pale);
    border: 1px solid var(--brand-border);
    padding: 3px 10px;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.15s, border-color 0.15s;
  }

  .article-foot-meta-tag:hover {
    background: rgba(0,209,251,0.15);
    border-color: rgba(0,209,251,0.5);
  }

  .article-foot-meta-divider {
    width: 1px;
    height: 36px;
    background: var(--rule);
    flex-shrink: 0;
  }

  /* ── SOCIAL SHARE ── */
  .social-share {
    margin-top: 16px;
    padding: 20px 28px;
    border: 1px solid var(--rule);
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .social-share-label {
    font-family: var(--font-ui);
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ink-muted);
    flex-shrink: 0;
    margin-right: 4px;
  }

  .social-share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 3px;
    border: 1px solid var(--rule);
    color: var(--ink-mid);
    background: var(--surface);
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    cursor: pointer;
  }

  .share-btn svg {
    width: 15px; height: 15px;
    fill: currentColor;
    flex-shrink: 0;
  }

  .share-btn:hover { background: var(--surface-2); border-color: var(--ink-muted); color: var(--navy); }

  .share-btn.share-x:hover       { border-color: #000; color: #000; }
  .share-btn.share-linkedin:hover { border-color: #0077b5; color: #0077b5; }
  .share-btn.share-facebook:hover { border-color: #1877f2; color: #1877f2; }
  .share-btn.share-copy:hover     { border-color: var(--brand-dark); color: var(--brand-dark); }

  .share-btn.copied {
    border-color: var(--brand-dark);
    color: var(--brand-dark);
    background: var(--brand-pale);
  }

  /* ── AUTHOR CARD ── */
  .author-card {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0 18px;
    padding: 32px;
    border: 1px solid var(--rule);
    border-radius: 3px;
    background: var(--surface-2);
  }

  .author-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-3);
    border: 2px solid var(--rule);
    grid-row: 1;
    grid-column: 1;
    align-self: start;
    margin-top: 2px;
  }

  .author-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

  .author-info {
    grid-row: 1;
    grid-column: 2;
  }

  .author-label {
    font-family: var(--font-ui);
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--brand-dark);
    display: block;
    margin-bottom: 6px;
  }

  .author-name {
    font-family: var(--font-ui);
    font-size: 15px; font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 2px;
  }

  .author-title {
    font-family: var(--font-ui);
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 10px;
  }

  .author-bio {
    font-family: var(--font-body);
    font-size: 13px; line-height: 1.6;
    color: var(--ink-soft);
  }

  @media (max-width: 600px) {
    .author-card {
      grid-template-columns: 1fr;
      gap: 14px;
      padding: 24px;
    }
    .author-avatar { grid-row: 1; grid-column: 1; }
    .author-info { grid-row: 2; grid-column: 1; }
  }

  /* ── COMMENTS ── */
  .comments-section {
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 64px var(--gutter) 72px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 64px;
    align-items: start;
  }

  .comments-section-label {
    font-family: var(--font-ui);
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--brand-dark);
    margin-bottom: 6px;
    display: block;
  }

  .comments-section-title {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 600;
    color: var(--navy);
    margin-bottom: 32px;
  }

  /* individual comment */
  .comment-list {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .comment {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 0 14px;
    padding: 24px 0;
    border-bottom: 1px solid var(--rule);
  }

  .comment:last-child { border-bottom: none; }

  .comment-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-3);
    border: 1px solid var(--rule);
    grid-row: 1 / 3;
    align-self: start;
    flex-shrink: 0;
  }

  .comment-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

  .comment-avatar-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-ui);
    font-size: 13px; font-weight: 700;
    color: var(--ink-soft);
    background: var(--surface-3);
    border: 1px solid var(--rule);
    border-radius: 50%;
    text-transform: uppercase;
  }

  .comment-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
  }

  .comment-author {
    font-family: var(--font-ui);
    font-size: 13px; font-weight: 700;
    color: var(--navy);
  }

  .comment-date {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--ink-muted);
  }

  .comment-reply-btn {
    margin-left: auto;
    font-family: var(--font-ui);
    font-size: 11px; font-weight: 600;
    color: var(--ink-muted);
    background: none; border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
    display: flex; align-items: center; gap: 4px;
  }

  .comment-reply-btn:hover { color: var(--brand-dark); }

  .comment-reply-btn svg {
    width: 12px; height: 12px;
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  }

  .comment-body {
    font-size: 13px; line-height: 1.7;
    color: var(--ink-soft);
    grid-column: 2;
  }

  /* nested reply */
  .comment-reply {
    margin-top: 20px;
    margin-left: 54px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 0 12px;
  }

  .comment-reply .comment-avatar {
    width: 32px; height: 32px;
    grid-row: 1 / 3;
  }

  .comment-reply .comment-avatar-placeholder { font-size: 11px; }
  .comment-reply .comment-body { font-size: 13px; }

  /* reply from author */
  .comment-reply.is-author .comment-author::after {
    content: 'Author';
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--navy);
    background: var(--brand);
    padding: 1px 6px;
    border-radius: 2px;
    margin-left: 6px;
    vertical-align: middle;
  }

  /* comment form */
  .comment-form-wrap {
    position: sticky;
    top: 72px;
  }

  .comment-form-title {
    font-family: var(--font-display);
    font-size: 17px; font-weight: 600;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rule);
  }

  .comment-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .form-field label {
    font-family: var(--font-ui);
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink-soft);
  }

  .form-field input,
  .form-field textarea {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--navy);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 10px 13px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    resize: none;
    width: 100%;
  }

  .form-field input::placeholder,
  .form-field textarea::placeholder { color: var(--ink-muted); }

  .form-field input:focus,
  .form-field textarea:focus {
    border-color: var(--brand-dark);
    box-shadow: 0 0 0 3px var(--focus-ring);
  }

  .form-field textarea { height: 110px; line-height: 1.65; }

  .form-submit {
    font-family: var(--font-ui);
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--navy);
    background: var(--brand);
    border: none;
    border-radius: 2px;
    padding: 12px 24px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    align-self: flex-start;
  }

  .form-submit:hover { background: var(--brand-dark); transform: translateY(-1px); }

  .form-note {
    font-size: 11px;
    color: var(--ink-muted);
    line-height: 1.6;
  }

  @media (max-width: 1024px) {
    .comments-section {
      grid-template-columns: 1fr;
      gap: 48px;
      padding-top: 48px;
      padding-bottom: 56px;
    }
    .comment-form-wrap { position: static; }
    .comment-form-wrap { order: -1; }
  }

  @media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
    .comment-reply { margin-left: 24px; }
  }

  /* ── PREV / NEXT ── */
  .post-nav {
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: var(--surface-2);
  }

  .post-nav-inner {
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .post-nav-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 28px 0;
    text-decoration: none;
    transition: background 0.15s;
  }

  .post-nav-item:first-child { padding-right: 40px; border-right: 1px solid var(--rule); }
  .post-nav-item:last-child  { padding-left: 40px; align-items: flex-end; text-align: right; }

  .post-nav-item:hover { opacity: 0.75; }

  .post-nav-dir {
    font-family: var(--font-ui);
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ink-muted);
    display: flex; align-items: center; gap: 6px;
  }

  .post-nav-dir svg {
    width: 13px; height: 13px;
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  }

  .post-nav-tag {
    font-family: var(--font-ui);
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--brand-dark);
  }

  .post-nav-title {
    font-family: var(--font-display);
    font-size: 16px; font-weight: 600;
    line-height: 1.35;
    color: var(--navy);
    transition: color 0.15s;
  }

  .post-nav-item:hover .post-nav-title { color: var(--brand-dark); }

  .post-nav-meta {
    font-family: var(--font-ui);
    font-size: 11px; color: var(--ink-muted);
  }

  @media (max-width: 640px) {
    .post-nav-inner { grid-template-columns: 1fr; }
    .post-nav-item:first-child { border-right: none; border-bottom: 1px solid var(--rule); padding-right: 0; }
    .post-nav-item:last-child { padding-left: 0; align-items: flex-start; text-align: left; }
  }

  /* ── RELATED POSTS ── */
  .related-section {
    padding: 72px 0 80px;
    border-top: 1px solid var(--rule);
  }

  .related-section-inner {
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
  }

  .related-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 36px;
  }

  .related-section-eyebrow {
    font-family: var(--font-ui);
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--brand-dark);
    margin-bottom: 6px;
    display: block;
  }

  .related-section-title {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 600;
    color: var(--navy);
  }

  .related-all-link {
    font-family: var(--font-ui);
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1px;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
    flex-shrink: 0;
  }

  .related-all-link:hover { color: var(--brand-dark); border-color: var(--brand-dark); }

  .related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border: 1px solid var(--rule);
    border-radius: 3px;
    overflow: hidden;
    background: var(--surface);
    transition: box-shadow 0.2s, transform 0.2s;
  }

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

  .related-card-img {
    width: 100%; aspect-ratio: 16/9;
    overflow: hidden; background: var(--navy);
    position: relative;
  }

  .related-card-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.4s ease;
  }

  .related-card:hover .related-card-img img { transform: scale(1.04); }

  .related-card-img-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(2,38,64,0.5), transparent);
    pointer-events: none;
  }

  .related-card-body {
    padding: 20px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 2px solid transparent;
    transition: border-color 0.2s;
  }

  .related-card:hover .related-card-body { border-top-color: var(--brand); }

  .related-card-tag {
    font-family: var(--font-ui);
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--brand-dark);
  }

  .related-card-title {
    font-family: var(--font-display);
    font-size: 15px; font-weight: 600;
    line-height: 1.4;
    color: var(--navy);
    transition: color 0.15s;
  }

  .related-card:hover .related-card-title { color: var(--brand-dark); }

  .related-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-ui);
    font-size: 11px; color: var(--ink-muted);
    margin-top: auto;
    padding-top: 10px;
  }

  .related-card-meta-sep {
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--rule);
    flex-shrink: 0;
  }

  .related-card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .related-card-meta-item svg {
    width: 11px; height: 11px;
    stroke: currentColor; fill: none;
    stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
    opacity: 0.6;
  }

  @media (max-width: 900px) {
    .related-grid { grid-template-columns: 1fr 1fr; }
  }

  @media (max-width: 580px) {
    .related-grid { grid-template-columns: 1fr; }
    .related-section { padding: 48px 0 56px; }
  }

  /* ── SIDEBAR SEARCH ── */
  .sidebar-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 0 14px;
    height: 42px;
    transition: border-color 0.15s, box-shadow 0.15s;
  }

  .sidebar-search:focus-within {
    border-color: var(--brand-dark);
    box-shadow: 0 0 0 3px var(--focus-ring);
  }

  .sidebar-search svg {
    width: 15px; height: 15px;
    stroke: var(--ink-muted); fill: none;
    stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
  }

  .sidebar-search input {
    flex: 1;
    border: none; outline: none;
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--navy);
    background: transparent;
  }

  .sidebar-search input::placeholder { color: var(--ink-muted); }

  /* ── HERO EXCERPT ── */
  .hero-excerpt {
    margin-top: 24px;
    padding: 20px 24px;
    border-left: 3px solid var(--brand);
    background: var(--brand-pale);
    border-radius: 0 3px 3px 0;
  }

  .hero-excerpt p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink-soft);
    font-style: italic;
  }