  :root {
    --bg: #0d0f14;
    --amber:    #f0a13c;
    --surface:  #13161e;
    --surface2: #1a1e2a;
    --border:   #2a2f3f;
    --accent:   #F7B605;
    --accent2:  #ff6b35;
    --text:     #d8dce8;
    --muted:    #7a8099;
    --green:    #39ff14;
    --gold:     #C5973A;
    --gold-lt:  #F5E8C8;
    --gold-dk:  #8B6820;
    --ink:      #12110F;
    --ink2:     #2D2A26;
    --ink3:     #5A5550;
    --paper:    #FDFAF4;
    --white:    #FFFFFF;
    --paper2:   #F5F0E5;
    --paper3:   #F4F2EC;
    --red:      #e6584f;
    --tan:      #D2B48C;
    --rule:     #D8D0C0;
    --navy:     #1B2B40;
    --navy2:    #2C4260;
    --blue-lt:  #007CC7;
    --cyan:     #56c9d6;
    --yellow:   #F7B605;

  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--text);
    font-weight: 300;
    line-height: 1.8;
    font-size: 15px;
  }

  #article-hero,
  .article-body {
    position: relative;
  }

  #article-hero::before,
  .article-body::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px), 
                      linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
  }

  #topnav {
    position: fixed;
    top: 0;
    left: 51.1%;
    transform: translateX(-50%);
    z-index: 999;
    background: rgba(13, 15, 20, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 60px;
    border-bottom: 1px solid var(--border);
    width: 100%;
    max-width: 1120px;
  }
  .page-hero-tag {
    text-decoration:none;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .page-hero-tag a {
    text-decoration:none;
  }
  .page-hero-tag::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--gold);
  }
  .nav-brand {
    font-family: 'Share TechMono', monospace;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .nav-brand span {
    color: var(--accent);
  }
  .nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
  }
  .nav-links a {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    transition: color .2s, background .2s;
    white-space: nowrap;
    font-family: 'Share Tech Mono', monospace;
  }
  .nav-links a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
  }
  .nav-links .cta {
    background: var(--accent);
    color: var(--bg);
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 4px;
  }
  .nav-links .cta:hover {
    background: #00b4cc;
  }

  /* WRAP */
  .wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 1;
  }

  /* HERO */
  .hero-sub {
    font-size: 14px;
    color: var(--white);
    max-width: 680px;
    line-height: 1.7;
    margin-bottom: 14px;
    font-family: 'Share Tech Mono', monospace;
  }
  .hero-img  {
    position: absolute;
    top: -30%;
    right: -2%;
    bottom: 0;
    width: 100%;
    object-fit: cover;
    opacity: 0.22;
    mix-blend-mode: luminosity;
  }
  #article-hero {
    background: var(--navy);
    padding: 80px 0 4px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
  }
  #article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(0,229,255,0.05) 0%, transparent 70%);
  }
  .article-hero-inner {
    position: relative;
    z-index: 1;
  }
  .article-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .article-tag::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--accent);
  }
  #article-hero h1 {
    font-family: 'Big Shoulders', sans-serif !important;
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--gold-lt);
    margin-bottom: 18px;
    max-width: 1100px;
  }
  #article-hero h1 em {
    color: var(--text);
    font-style: normal;
  }
  #article-hero a:hover {
    color: var(--navy);
    background: var(--muted);
  }
  .article-meta {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12.5px;
  }
  .article-meta span {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* PILLS (Hero section / aka: Quick action pills */
  .hero-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 14px;
  }
  .hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 5px;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
  }
  .pill-green    {
    background: var(--green);
    color: var(--ink);
  }
  .pill-green:hover {
    background: var(--green-dk);
  }
  .pill-gold    {
    background: var(--gold);
    color: var(--ink);
  }
  .pill-gold:hover {
    background: #d4a84a;
  }
  .pill-blue    {
    background: var(--navy2);
    color: var(--white);
  }
  .pill-red    {
    background: var(--red);
    color: var(--white);
  }
  .pill-red:hover {
    background: var(--red-dk);
  }
  .pill-weather    {
    background: var(--white);
    color: var(--ink);
  }
  .pill-green:hover {
    background: var(--navy);
  }
  .pill-map    {
    background: var(--tan);
    color: var(--ink);
  }
  .pill-map:hover {
    background: var(--navy);
  }
  .pill-outline {
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
  }
  .pill-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
  }

  /* PAGE-HERO */
  #page-hero {
    background: var(--navy);
    padding: 110px 0 14px;
    position: relative;
    overflow: hidden;
  }
  #page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(197,151,58,0.07) 0%, transparent 70%);
  }
  .page-hero-inner {
    position: relative;
    z-index: 1;
  }
  .page-hero-tag {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .page-hero-tag::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--gold);
  }
  #page-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 12px;
  }
  #page-hero h1 em {
    color: var(--gold);
    font-style: normal;
  }
  .hero-sub  {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    max-width: 680px;
  }
  .hero-sub2 {
    font-size: 15px;
    color: var(--gold);
    max-width: 680px;
  }

  /* BUTTONS */
  .page-hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
  .btn-primary {
    width: 200px;
    background: var(--accent);
    color: var(--bg);
    font-weight: 600;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background .2s;
    font-family: 'Share Tech Mono', monospace;
  }
  .btn-primary:hover {
    background: #00b4cc;
  }
  .btn-outline {
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: border-color .2s, color .2s;
    font-family: 'Share Tech Mono', monospace;
    background: var(--surface);
  }
  .btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
  .btn-tertiary {
    width: 200px;
    background: rgba(57,255,20,0.1);
    border: 1px solid rgba(57,255,20,0.3);
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    transition: background .2s;
  }
  .btn-tertiary:hover {
    background: rgba(57,255,20,0.2);
  }
  .btn-fourth {
    width: 200px;
    background: rgba(255,107,53,0.1);
    border: 1px solid rgba(255,107,53,0.3);
    color: var(--accent2);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    transition: background .2s;
  }
  .btn-fourth:hover {
    background: rgba(255,107,53,0.2);
  }
  .btn-yellow {
    width: 200px;
    background: var(--gold);
    color: var(--ink);
    padding: 12px 26px;
    border-radius: 4px;
    text-decoration: none;
    transition: background .2s;
 
  }
  .btn-yellow:hover {
    background: #d4a84a;
  }
  .btn-outline {
    width: 200px;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    padding: 12px 26px;
    border-radius: 4px;
    text-decoration: none;
    transition: border-color .2s, color .2s;
 
  }
  .btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
  }
  .btn-green {
    width: 200px;
    background: var(--green);
    color: var(--ink);
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 14px;
    padding: 12px 26px;
    border-radius: 4px;
    text-decoration: none;
    transition: border-color .2s, color .2s;
  }
  .btn-green:hover {
    border-color: var(--ink2);
    color: var(--ink2);
  }
  .btn-orange {
    width: 200px;
    background: var(--orange);
    color: var(--ink);
    
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    
    padding: 12px 26px;
    border-radius: 4px;
    text-decoration: none;
    transition: border-color .2s, color .2s;
    
  }
  .btn-orange:hover {
    border-color: var(--ink2);
    color: var(--ink2);
  }
  .btn-rotorflight {
    width: 200px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    transition: border-color .2s;
  }
  .btn-rotorflight:hover {
    border-color: var(--accent);
  }


  /* Filter & Search Controls */
  .directory-section {
    padding: 48px 0 80px;
  }
  .manuals-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
  }
  .manuals-search-row input {
    flex: 1;
    max-width: 360px;
    padding: 10px 14px;
    border: 1px solid var(--rule);
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--ink);
    background: var(--paper2);
    outline: none;
    transition: border-color .2s;
  }
  .manuals-search-row input:focus {
    border-color: var(--gold);
  }
  .manuals-search-row input::placeholder {
    color: var(--ink3);
    opacity: 0.6;
  }

  .manuals-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
  }
  .tab-btn {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid var(--rule);
    background: var(--paper2);
    color: var(--ink3);
    transition: background .2s, color .2s, border-color .2s;
  }
  .tab-btn:hover {
    background: var(--gold-lt);
    color: var(--ink);
    border-color: var(--gold);
  }
  .tab-btn.active {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
  }
  
  .dir-path-display {
    font-family: 'DM Mono', monospace;
    font-size: 12.5px;
    background: var(--paper2);
    border: 1px solid var(--rule);
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    color: var(--ink2);
    display: inline-block;
  }
  
  .dir-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
  }
  .dir-btn {
    background: #fff;
    border: 1px solid var(--rule);
    border-left: 4px solid var(--gold);
    border-radius: 6px;
    padding: 16px 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: box-shadow .2s, transform .2s, border-color .2s;
  }
  .dir-btn:hover {
    box-shadow: 0 6px 24px rgba(27,43,64,0.1);
    transform: translateY(-2px);
    border-color: var(--gold);
  }
  .dir-icon {
    font-size: 22px;
    flex-shrink: 0;
  }
  .dir-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 210px;
  }
  .dir-info span {
    font-size: 11px;
    font-family: 'DM Mono', monospace;
    color: var(--ink3);
    text-transform: uppercase;
  }
  .manuals-empty {
    font-size: 14px;
    color: var(--ink3);
    padding: 24px 0;
    grid-column: 1 / -1;
  }


  /* BODY LAYOUT */
  .article-body {
    padding: 40px 0 80px;
  }
  .article-grid-full {
    display: grid;
    width: 100%;
  }
  .article-content-full {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    display: flow-root; /* <--- Add this line to trap floated elements inside */
  }
  .article-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 38px;
    align-items: start;
  }
  .article-grid-list {
    display: grid;
    grid-template-columns: 190px 190px 190px 190px 190px;
    gap: 38px;
  }

  /* PROSE STYLES */
  .article-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 40px;
    display: flow-root; /* <--- Add this line to trap floated elements inside */
  }

  /* H1 */
  .article-content h1 {
    font-family: 'Big Shoulders', sans-serif !important;
    color: var(--muted);
    /* background: rgba(13, 15, 20, 0.95); -- KINDA LOOKS NICE -- */
    font-size: clamp(26px, 4vw, 36px);
  }

  /* H2 */
/* Clean H2 styling using Big Shoulders */
 /* Unified Big Shoulders Header Rule */
  h2, h3, 
  .article-content h2, 
  .sec-head {
    display:flex;
    align-items:baseline;
    gap:14px;
    margin-bottom:8px;
  }
  .sec-head h2 {
    scroll-margin-top: 130px; /* Adjust this value if you need more or less breathing room */
    font-family: 'Big Shoulders', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 700;
    font-size: clamp(26px, 4vw, 28px);
    color: var(--tan);
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 0 0;
  } 
  .sec-num {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 14px;
    color: var(--amber);
  }
  .article-content h2:first-child {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
  }
  .article-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gold);
    margin: 28px 0 10px;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 0.05em;
  }
  .article-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gold);
    margin: 20px 0 8px;
  }
  .article-content p {
    color: var(--text);
    margin-bottom: 16px;
  }
  .article-content strong {
    color: #fff;
  }
  .article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .article-content a:hover {
    color: #fff;
  }
  .article-content code {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 2px 6px;
    color: var(--accent);
  }
  .article-content pre {
    background: var(--bg);
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px;
    margin: 0 0;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
  }
/* ──────────────────────────────────────────────────
     Custom Styled Lists & Lead-ins for .article-content
  ────────────────────────────────────────────────── */
  .article-content ul, 
  .article-content ol {
    padding-left: 0;
    margin: 1.5rem 0;
    list-style: none; /* Strips default browser bullets */
  }

  .article-content ul li, 
  .article-content ol li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.8;
    color: var(--text);
  }
  /* Custom Clean Accent Bullets for Unordered Lists */
  .article-content ul li::before {
    content: "";
    position: absolute;
    left: 0.25rem;
    top: 0.625rem;
    width: 6px;
    height: 6px;
    background-color: var(--muted);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(247, 182, 5, 0.15);
  }

  /* Custom Highlight for <strong> tags (Lead-ins) */
  .article-content li strong {
    color: var(--muted);
    font-family: 'Share Tech Mono', monospace;
    font-weight: 600;
    margin-right: 4px;
  }

  /* CALLOUT BOXES */
  .callout {
    background: var(--surface2);
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    padding: 18px 20px;
    margin: 24px 0;
    font-size: 14px;
    color: var(--text);
  }
  .callout strong {
    color: #fff;
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Share Tech Mono', monospace;
  }

  /* IMAGES */
  .img-wrap {
    margin: 28px 0;
  }
  .img-wrap img {
    width: 100%;
    border-radius: 6px;
    display: block;
    border: 1px solid var(--border);
  }
  .img-wrap figcaption {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 8px;
    text-align: center;
    font-style: italic;
    font-family: 'Share Tech Mono', monospace;
  }

  /* TABLES */
  .table-wrap {
    overflow-x: auto;
    margin: 28px 0;
    border-radius: 6px;
    border: 1px solid var(--border);
  }
  table.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: var(--surface);
  }
  .spec-table thead tr {
    background: var(--surface2);
    color: #fff;
  }
  .spec-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.05em;
    font-family: 'Share Tech Mono', monospace;
    color: var(--muted);
  }
  .spec-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.015);
  }
  .spec-table tbody tr:hover {
    background: rgba(0,229,255,0.03);
  }
  .spec-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: top;
  }
  .spec-table td a {
    text-decoration: none;
    color: var(--muted);
  }
  .spec-table td:first-child {
    font-weight: 600;
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12.5px;
  }

  /* STEPS */
  .steps {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    counter-reset: step-counter;
  }
  .steps > li {
    counter-increment: step-counter;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 22px;
  }
  .steps > li::before {
    content: counter(step-counter);
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(0,229,255,0.1);
    border: 1px solid rgba(0,229,255,0.3);
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
  }
  .steps li .step-body h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
  }
  .steps li .step-body p {
    font-size: 14px;
    color: var(--text);
    margin: 0;
    line-height: 1.65;
  }
  .steps .step-body ul {
    list-style: disc;
    margin: 10px 0 0 20px;
    padding: 0;
  }
  .steps .step-body ul li {
    counter-increment: none;
    display: list-item;
    margin-bottom: 8px;
    color: var(--text);
  }
  .steps .step-body ul li::before {
    content: none !important;
    display: none !important;
  }
  .steps .step-body ul li strong {
    color: #fff;
  }

  /* Reference GRIDS */
  .ref-grid3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 24px;
    text-align: center;
  }
  .ref-card3 {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--surface2);
    transition: border-color .2s;
  }
  .ref-card3:hover {
    border-color: var(--accent);
  }
  .ref-card3 img {
    max-width: 100%;
    border-radius: 4px;
  }
  .ref-type {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    font-family: 'Share Tech Mono', monospace;
  }
  .ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 24px;
  }
  .ref-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color .2s;
  }
  .ref-card:hover {
    border-color: var(--accent);
  }
  .ref-card a {
    font-size: 14px;
    font-weight: 600;
    color: var(--tan);
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
  }
  .ref-card a:hover {
    color: var(--accent);
  }
  .ref-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
  }

  /* SIDEBAR */
  .article-sidebar {
    position: sticky;
    top: 80px;
  }
  .sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 22px 20px;
    margin-bottom: 20px;
  }
  .sidebar-card h4 {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
  }
  .toc-list {
    list-style: none;
    padding: 0;
  }
  .toc-list li {
    margin-bottom: 4px;
  }
  .toc-list a {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    transition: color .2s;
  }
  .toc-list a::before {
    content: '›';
    color: var(--accent);
    font-size: 15px;
    flex-shrink: 0;
  }
  .toc-list a:hover, .toc-list a.active {
    color: #fff;
  }
  .toc-list a.active {
    font-weight: 600;
    color: var(--accent);
  }
  .sidebar-meta-item {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
  }
  .sidebar-meta-item strong {
    color: #fff;
    min-width: 70px;
  }
  .sidebar-btn {
    display: block;
    text-align: center;
    background: var(--surface2);
    color: var(--text);
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 8px;
    border: 1px solid var(--border);
    transition: all .2s;
  }
  .sidebar-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0,229,255,0.05);
  }
  .sidebar-btn.gold {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
  }
  .sidebar-btn.gold:hover {
    background: #00b4cc;
  }

  /* DIVIDER */
  .gold-rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
    opacity: 0.2;
    margin: 40px 0;
  }

  /* MEDIA */
/* MEDIA / FLOATS */
  .event-video {
    float: right;
    width: 300px;
    max-width: 100%;
    margin: 0 0 15px 25px;
  }
  .event-media {
    float: right;
    width: 150px;
    max-width: 100%;
    margin: 0 0 15px 25px;
    position: relative;
    z-index: 5; /* Ensures links/images stay clickable above grid backgrounds */
  }
  .event-media a {
    pointer-events: auto; /* Guarantees clickability */
    display: block;
  }
  .event-media img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 8px 25px rgba(0,0,0,.35);
  }
  .event-media-large {
    width: 300px;
  }
  .event-media-xlarge {
    width: 100%; /* Changed from fixed 800px so it doesn't break containers */
    max-width: 600px;
    float: none; /* Centered or full-width items shouldn't float right */
    margin: 20px auto;
  }

  /* Clearfix to prevent container collapse */
  .article-content::after {
    content: "";
    display: table;
    clear: both;
  }

  /* MOBILE RESPONSIVE FIX FOR FLOATS */
  @media (max-width: 820px) {
    .article-grid {
      grid-template-columns: 1fr;
    }
    .article-sidebar {
      position: static;
    }
    /* Stop floats from breaking mobile screens */
    .event-video,
    .event-media,
    .event-media-large,
    .event-media-xlarge {
      float: none !important;
      width: 100% !important;
      max-width: 100% !important;
      margin: 15px 0 !important;
    }
  }

  @media (max-width: 700px) {
    .nav-links a:not(.cta) {
      display: none;
    }
  }

  /* ── TECH CARDS - USED FOR "LIBRARY CIRCULATION DESK" ── */
  .tech-comparison {
      display: flex;
      gap: 20px;
      margin: 25px 0;
  }
  .tech-card {
      flex: 1;
      padding: 20px;
      border-radius: 6px;
      border: 1px solid var(--surface);
  }
  .tech-card1 {
      background-color: #f0fff4;
      border-top: 4px solid #27DAF5;
  }
  .tech-card2 {
      background-color: #ebf8ff;
      border-top: 4px solid #ce3182;
  }
  .tech-card3 {
      background-color: #ebf8ff;
      border-top: 4px solid #38a169;
  }
  .tech-card4 {
      background-color: #ebf8ff;
      border-top: 4px solid #445EA0;
  }


  /* ── SIGNAL CARDS - USED FOR PWM PAGE ── */
    /* Signal visualizer */
    .signal-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      margin-bottom: 48px;
      animation: fadeUp 0.7s 0.2s ease both;
    }
    @media (max-width: 620px) {
      .signal-row { grid-template-columns: 1fr; }
    }
    .signal-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 28px 24px 20px;
      position: relative;
      overflow: hidden;
    }
    .signal-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
    }
    .signal-card.pwm-servo::before {
      background: var(--accent);
    }
    .signal-card.pwm-dc::before {
      background: var(--accent2);
    }
    .signal-label {
      font-family: 'Share Tech Mono', monospace;
      font-size: 0.7rem;
      letter-spacing: 0.15em;
      margin-bottom: 12px;
      text-transform: uppercase;
    }
    .pwm-servo .signal-label {
      color: var(--accent);
    }
    .pwm-dc .signal-label {
      color: var(--accent2);
    }
    .signal-card h3 {
      font-size: 1.05rem;
      font-weight: 600;
      color: #fff;
      margin-bottom: 18px;
    }
    svg.waveform {
      width: 100%;
      height: 70px;
      display: block;
    }
    .wave-note {
      font-family: 'Share Tech Mono', monospace;
      font-size: 0.7rem;
      color: var(--muted);
      margin-top: 10px;
      text-align: center;
    }
    /* Pulse width annotation */
    .pulse-anim rect {
      animation: pulseWidth 2s ease-in-out infinite alternate;
    }
    @keyframes pulseWidth {
      from { width: 18px; }
      to   { width: 50px; }
    }
    /* DC smoothing animation */
    .dc-anim .dc-fill {
      animation: dcLevel 2.5s ease-in-out infinite alternate;
    }
    @keyframes dcLevel {
      from { height: 16px; y: 34px; }
      to   { height: 46px; y: 4px; }
    }
    /* Sections */
    section {
      border-bottom:1px solid var(--line);
      animation: fadeUp 0.7s ease both;
    }
    section:last-of-type {
      border-bottom:none;
    }
    section:nth-of-type(1) { animation-delay: 0.3s; }
    section:nth-of-type(2) { animation-delay: 0.4s; }
    section:nth-of-type(3) { animation-delay: 0.5s; }
    section:nth-of-type(4) { animation-delay: 0.6s; }
    .section-header {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 10px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--border);
    }
    .section-tag {
      font-family: 'Share Tech Mono', monospace;
      font-size: 0.68rem;
      letter-spacing: 0.15em;
      padding: 4px 10px;
      border-radius: 4px;
      text-transform: uppercase;
      white-space: nowrap;
    }
    .tag-servo {
      background: rgba(0,229,255,0.1);
      color: var(--accent);
      border: 1px solid rgba(0,229,255,0.25);
    }
    .tag-dc    {
      background: rgba(255,107,53,0.1);
      color: var(--accent2);
      border: 1px solid rgba(255,107,53,0.25);
    }
    .tag-both  {
      background: rgba(57,255,20,0.08);
      color: var(--green);
      border: 1px solid rgba(57,255,20,0.2);
    }


  /* ── SECTION HEADERS ── */
  .section-label {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
    font-weight: 600;
  }
  .section-head h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 600;
    line-height: 1.15;
    color: var(--gold);
    margin-bottom: 10px;
  }
  .section-head p {
    color: var(--gold);
    margin-bottom: 10px;
  }
  .section-head-light h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
  }
  .section-head-light p {
    color: var(--ink);
    margin-bottom: 10px;
  }
  .section-head-light .section-label {
    color: rgba(197,151,58,0.85);
  }
  .section-head-light .section-sub {
    color: rgba(255,255,255,0.55);
  }
  .section-sub {
    color: var(--ink3);
    max-width: 800px;
  }


  /* ---------- ROTORFLIGHT MANUAL ---------- */
  /*
  h1,h2,h3{
    font-family: 'Big Shoulders', sans-serif !important;
    text-transform:uppercase;
    letter-spacing:0.02em;
    font-weight:700;
    color:var(--yellow);
    margin:0;
  }
  */
  /* a{color:var(--cyan);} */
  .eyebrow{
    font-family:'IBM Plex Mono',monospace;
    font-size:12px;
    letter-spacing:0.18em;
    text-transform:uppercase;
    color:var(--text-dim);
  }
  code, .mono{font-family:'IBM Plex Mono',monospace;}
  .credit-box{
    font-family:'IBM Plex Mono',monospace;
    font-size:12px;
    color:var(--text-dim);
    border-left:2px solid var(--amber);
    padding-left:12px;
    min-width:220px;
  }
  .credit-box b{
    color:var(--text);display:block;font-size:13px;
  }
  .scope{
    margin-top:36px;
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:4px;
    padding:18px 18px 8px;
  }
  .scope-label{
    display:flex;justify-content:space-between;
    font-family:'IBM Plex Mono',monospace;
    font-size:11px;color:var(--text-dim);letter-spacing:0.08em;
    margin-bottom:6px;
  }
  .scope svg{display:block;width:100%;height:auto;}
  .trace-bad{stroke:var(--red);opacity:0.55;}
  .trace-good{stroke:var(--green);}
  .anim-trace{stroke-dasharray:1400;stroke-dashoffset:1400;animation:dash 2.6s ease-out forwards;}
  @keyframes dash{ to { stroke-dashoffset:0; } }

  .card{
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:4px;
    padding:20px 22px;
    margin:18px 0;
  }
  .card h3{
    font-size:19px;
    margin-bottom:8px;
    color:var(--text);
  }
  .card h3 .tag{
    font-family:'IBM Plex Mono',monospace;
    font-size:11px;
    color:var(--bg);
    background:var(--amber);
    padding:2px 7px;
    border-radius:2px;
    margin-right:8px;
    vertical-align:middle;
    letter-spacing:0.04em;
  }
  .card.d .tag{background:var(--cyan);}
  .card.i .tag{background:var(--violet);}
  .card.warn{border-color:var(--red);}
  .card.warn h3 .tag{background:var(--red);}

  .grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
  @media(max-width:640px){.grid2{grid-template-columns:1fr;}}

  .meter{margin-top:10px;}
  .meter-row{display:flex;align-items:center;gap:10px;font-family:'IBM Plex Mono',monospace;font-size:12px;color:var(--text-dim);margin-bottom:6px;}
  .meter-track{flex:1;height:6px;background:var(--panel-2);border-radius:3px;overflow:hidden;position:relative;}
  .meter-fill{height:100%;border-radius:3px;}

  .callout{
    border-left:3px solid var(--cyan);
    background: var(--surface2);
    padding:14px 18px;
    font-size:14.5px;
    color:var(--text-dim);
    margin:16px 0;
  }
  .callout b{color:var(--text);}
  .callout.amber{border-color:var(--amber);}
  .callout.violet{border-color:var(--violet);}
  .method{
    display:flex;gap:14px;align-items:flex-start;
    margin:14px 0;
  }
  .method .num{
    font-family:'IBM Plex Mono',monospace;
    color:var(--amber);
    font-size:13px;
    border:1px solid var(--line);
    border-radius:50%;
    width:26px;height:26px;
    display:flex;align-items:center;justify-content:center;
    flex-shrink:0;
  }
  .method p{margin:0;color:var(--text-dim);font-size:14.5px;}
  .method p b{color:var(--text);}

  .gap-badge{
    display:inline-block;
    font-family:'IBM Plex Mono',monospace;
    font-size:11px;
    color:var(--bg);
    background:var(--green);
    padding:2px 8px;
    border-radius:2px;
    letter-spacing:0.05em;
    margin-bottom:8px;
  }

  .quote{
    font-family:'Big Shoulders',sans-serif;
    font-weight:600;
    font-size:22px;
    color:var(--text);
    max-width:640px;
    margin:20px 0;
    line-height:1.25;
  }
  .quote span{color:var(--amber);}
  nav.toc{
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:4px;
    margin:32px 0 8px;
    padding:18px 22px;
  }
  nav.toc .eyebrow{margin-bottom:10px;display:block;}
  nav.toc ol{
    columns:2;
    -webkit-columns:2;
    gap:24px;
    margin:0;padding:0 0 0 18px;
    font-family:'IBM Plex Mono',monospace;
    font-size:13px;
  }
  nav.toc li{
    margin-bottom:8px;break-inside:avoid;
  }
  nav.toc a{
    color:var(--text-dim);text-decoration:none;
  }
  nav.toc a:hover{
    color:var(--cyan);
  }
  @media(max-width:600px){nav.toc ol{columns:1;}}

  berts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
  }

  /* ── FOOTER ── */
  footer {
    background: var(--ink);
    color: rgba(255,255,255,0.35);
    padding: 36px 0;
    text-align: center;
    font-size: 12px;
    line-height: 2;
  }
  footer strong {
    color: rgba(255,255,255,0.6);
  }
  footer a {
    color: rgba(197,151,58,0.6);
    text-decoration: none;
  }

