/* ==========================================================================
   FlightTracker - Airport Wayfinding Theme
   High-contrast international signage aesthetic.
   Helvetica-style type, flat panels, bold arrows, strict alignment.
   ========================================================================== */

:root {
  --bg:       #ffffff;
  --panel:    #f5f5f5;
  --panel-2:  #ececec;
  --text:     #0b0b0b;
  --muted:    #555555;
  --accent:   #ffd200;       /* yellow - primary accent, like airport signs */
  --blue:     #005eb8;       /* blue - information / services */
  --danger:   #d71920;       /* red - alerts / warnings */
  --green:    #00843d;       /* green - go / active / success */
  --border:   #cccccc;
  --border-strong: #999999;

  --sans: 'Inter', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
}

.hero-logo {
  width: 100px;
  margin: 0;
  flex-shrink: 0;
}

.hero-headline {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}

.hero-text {
  flex: 1;
  min-width: 280px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #dd972c;
  text-decoration: none;
  transition: color .15s;
}
a:hover { color: #000; }

/* Bootstrap's .container handles the max-width and centering now.
   We just constrain it to match the original 960px design. */
.container {
  max-width: 960px;
}

/* ---------------------------------------------------------------------------
   Nav - heavy yellow bar, like an airport sign
   --------------------------------------------------------------------------- */
.nav {
  background: var(--accent);
  color: #000;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid #CCC;
}
/* Bootstrap's .container + d-flex utilities handle the nav layout.
   We just set the height and visual treatment. The position: relative
   anchors the mobile dropdown panel to the nav. */
.nav > .container { height: 56px; position: relative; }
.nav-brand {
  font-weight: 800;
  font-size: 1rem;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav-brand img { width: 28px; height: 28px; }
/* Bootstrap's d-flex handles the nav-links layout. */
.nav-links a {
  color: #000;
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(0,0,0,.15);
  transition: background .15s;
}
.nav-links a:first-child { border-left: 1px solid rgba(0,0,0,.15); }
.nav-links a:hover { background: rgba(0,0,0,.1); color: #000; }
.nav-links a.nav-cta { background: #000; color: var(--accent); }
.nav-links a.nav-cta:hover { background: #222; color: var(--accent); }

@media (max-width: 768px) {
  .nav-links a { padding: 0 12px; font-size: .7rem; }
}

/* Hamburger toggle button - hidden on desktop, shown on mobile. */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  height: 56px;
  justify-content: center;
}
.nav-toggle-bar {
  display: block;
  width: 26px;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
/* Animate the bars into an X when the menu is open. */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  /* Show the hamburger button. */
  .nav-toggle { display: flex; }

  /* Collapse the links into a dropdown panel below the bar.
     !important overrides Bootstrap's .d-flex utility on the same element. */
  .nav-links {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--accent);
    border-top: 1px solid rgba(0,0,0,.15);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    /* Hidden state - collapsed and not focusable. */
    display: none !important;
  }
  .nav-links.open { display: flex !important; }

  /* Stack links vertically as full-width rows. */
  .nav-links a {
    width: 100%;
    height: auto;
    padding: 14px 20px;
    font-size: .8rem;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,.15);
  }
  .nav-links a:first-child { border-left: none; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.nav-cta { border: none; }
}

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */
.hero {
  background: var(--bg);
  padding: 64px 0 48px;
  border-bottom: 2px solid var(--border);
}
/* Bootstrap's row/col-lg-6 handles the hero layout. */
.hero-image {
  border: 2px solid var(--border);
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  display: block;
}
.hero-label {
  font-weight: 800;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #000;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  padding: 6px 16px;
  display: inline-flex;
}
.hero-label::before {
  content: '→';
  font-size: 1rem;
  font-weight: 800;
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero h1 .yellow { color: var(--accent); }
.hero p {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}
.hero-actions .btn {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
}
.hero-actions .btn .btn-label {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: .9;
}
.hero-actions .btn .btn-subtext {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}
.hero-actions .btn-yellow .btn-label,
.hero-actions .btn-yellow .btn-subtext {
  color: #000;
}
.hero-actions .btn-dark .btn-label {
  color: var(--accent);
}
.hero-actions .btn-dark .btn-subtext {
  color: #fff;
}
@media (max-width: 700px) {
  .hero-actions {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-actions .btn + .btn { margin-top: 10px; margin-left: 0; }
}

/* ---------------------------------------------------------------------------
   Hero carousel
   --------------------------------------------------------------------------- */
.hero-carousel {
  position: relative;
  border: 2px solid var(--border);
  overflow: hidden;
  background: #000;
}
.hero-carousel-slides {
  position: relative;
}
.hero-carousel-slide {
  display: none;
  /* Fixed aspect ratio matching the images (2048x1536 = 4:3).
     Videos are 2:1, so they get letterboxed with black bars. */
  aspect-ratio: 4 / 3;
}
.hero-carousel-slide.active {
  display: block;
}
.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;    /* preserve video aspect ratio, black bars fill the rest */
  background: #000;
  display: block;
}
/* Prev / next arrows */
.hero-carousel-prev,
.hero-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  z-index: 2;
}
.hero-carousel-prev:hover,
.hero-carousel-next:hover {
  background: rgba(0,0,0,.8);
}
.hero-carousel-prev { left: 12px; }
.hero-carousel-next { right: 12px; }
/* Dot indicators */
.hero-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 0;
  transition: background .15s;
}
.hero-carousel-dot.active {
  background: var(--accent);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 800;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--sans);
}
.btn-yellow {
  background: var(--accent);
  color: #000;
}
.btn-yellow:hover { background: #000; color: var(--accent); }
.btn-dark {
  background: #000;
  color: #fff;
  border: 2px solid var(--border-strong);
}
.btn-dark:hover { border-color: var(--accent); color: var(--accent); }
.btn-blue {
  background: var(--blue);
  color: #fff;
}
.btn-blue:hover { background: #0078d4; }
.btn + .btn { margin-left: -2px; }

/* ---------------------------------------------------------------------------
   Section structure - airport signage coded labels
   --------------------------------------------------------------------------- */
section { padding: 20px 0; }
.section-code {
  font-weight: 800;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-code::before {
  content: '';
  width: 48px;
  height: 6px;
  background: var(--accent);
}
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* ---------------------------------------------------------------------------
   Feature list - inline items with pictogram tiles
   Bootstrap's row/col handles the grid; we keep the visual treatment.
   --------------------------------------------------------------------------- */
.feature-row-item {
  padding: 16px 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.feature-row-item .feature-tile {
  width: 36px;
  height: 36px;
  margin-bottom: 0;
  font-size: 1rem;
}
.feature-row-item h3 {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Config list */
.config-list {
  list-style: none;
  padding: 0;
  margin-bottom: 18px;
}
.config-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: .95rem;
}
.config-list li:last-child { border-bottom: none; }

/* ---------------------------------------------------------------------------
   Feature grid - flat panels, hard edges, pictogram tiles
   --------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border: 2px solid var(--border);
}
.feature-card {
  background: var(--panel);
  padding: 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.feature-card:hover { background: var(--panel-2); }
.feature-card:hover .feature-tile { transform: scale(1.05); }
.feature-card:last-child { border-right: none; }

/* responsive borders fix */
@media (min-width: 769px) {
  .feature-grid > .feature-card:nth-child(3n) { border-right: none; }
}
@media (max-width: 768px) {
  .feature-card { border-right: none; }
}

.feature-tile {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #000;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-weight: 800;
  transition: transform .15s;
}
/* Alternating tile colours for visual rhythm */
.feature-card:nth-child(2) .feature-tile { background: var(--blue); color: #fff; }
.feature-card:nth-child(3) .feature-tile { background: var(--danger); color: #fff; }
.feature-card:nth-child(5) .feature-tile { background: var(--blue); color: #fff; }
.feature-card:nth-child(6) .feature-tile { background: var(--danger); color: #fff; }
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--muted);
  font-size: .9rem;
}

/* ---------------------------------------------------------------------------
   Gallery - Bootstrap's row/col handles the grid; we keep the visual treatment
   --------------------------------------------------------------------------- */
.gallery-item {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  overflow: hidden;
  transition: background .15s;
}
.gallery-item:hover { background: var(--panel-2); }
.gallery-item img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.gallery-caption {
  padding: 14px 18px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.gallery-placeholder {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 24px;
}
.gallery-placeholder .ph-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: var(--border-strong);
}

/* ---------------------------------------------------------------------------
   Build story
   --------------------------------------------------------------------------- */
.narrative {
  max-width: 680px;
}
.narrative p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1rem;
}
.narrative strong { color: var(--text); }
.narrative .quote {
  border-left: 4px solid var(--accent);
  padding: 12px 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--text);
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.narrative-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0;
  margin: 32px 0;
  border: 2px solid var(--border);
}
.narrative-images img {
  width: 100%;
  display: block;
  border-right: 1px solid var(--border);
}
.narrative-images img:last-child { border-right: none; }

/* ---------------------------------------------------------------------------
   Timeline
   --------------------------------------------------------------------------- */
.timeline {
  position: relative;
  padding-left: 36px;
  border-left: 2px solid var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -43px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--accent);
}
.timeline-item.active::before { background: var(--green); }
.timeline-date {
  font-weight: 800;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.timeline-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}
.timeline-desc {
  color: var(--muted);
  font-size: .9rem;
}

/* ---------------------------------------------------------------------------
   Getting started - panel with code blocks
   --------------------------------------------------------------------------- */
.info-panel {
  background: var(--panel);
  border: 2px solid var(--border);
  padding: 0;
}
.info-panel-header {
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 24px;
}
.info-panel-body {
  padding: 32px;
}
.info-panel-body h3 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: var(--accent);
}
.info-panel-body ol {
  padding-left: 20px;
  margin-bottom: 20px;
}
.info-panel-body li {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: .95rem;
}
.info-panel-body li strong { color: var(--text); }

.code-block {
  font-family: var(--mono);
  font-size: .82rem;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 16px;
  overflow-x: auto;
  margin: 12px 0;
  color: #333;
  line-height: 1.5;
}
.code-block .cmt { color: #555; }
.code-block .kw  { color: var(--accent); }
.code-block .str { color: #6ab0f3; }

/* Hardware list */
/* Bootstrap's row/col handles the hardware grid layout. */
.hardware-grid { margin-bottom: 24px; }
.hardware-item {
  background: var(--panel);
  padding: 16px 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hardware-item strong {
  display: block;
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
  color: var(--text);
}
.hardware-item span {
  color: var(--muted);
  font-size: .82rem;
}

/* ---------------------------------------------------------------------------
   Theme swatches
   --------------------------------------------------------------------------- */
.theme-row {
  display: flex;
  gap: 0;
  border: 2px solid var(--border);
  flex-wrap: wrap;
}
.theme-swatch {
  flex: 1;
  min-width: 200px;
  background: var(--panel);
  padding: 24px;
  text-align: center;
  border-right: 2px solid var(--border);
}
.theme-swatch:last-child { border-right: none; }
.theme-swatch h4 {
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--accent);
}
.theme-colours {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.theme-colour {
  width: 28px;
  height: 28px;
}

/* ---------------------------------------------------------------------------
   Status bar - like an airport info display
   --------------------------------------------------------------------------- */
.status-bar {
  background: var(--panel);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  padding: 14px 32px;
  gap: 24px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  overflow-x: auto;
}
.status-bar .status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.status-bar .dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  flex-shrink: 0;
}
.status-bar .dot.yellow { background: var(--accent); }

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.footer {
  border-top: 2px solid var(--border);
  padding: 48px 0;
  text-align: center;
}
/* Bootstrap's d-flex handles the footer-links layout. */
.footer-links {
  margin-bottom: 20px;
  border: 2px solid var(--border);
  max-width: 480px;
}
.footer-links a {
  color: var(--muted);
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 20px;
  border-right: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.footer-links a:last-child { border-right: none; }
.footer-links a:hover { background: var(--panel); color: var(--accent); }

.footer p {
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 8px;
}
.footer p:last-child {
  font-size: .75rem;
  color: #888;
}

/* ---------------------------------------------------------------------------
   Utilities
   --------------------------------------------------------------------------- */
.divider {
  height: 2px;
  background: var(--border);
  margin: 0;
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .section-title { font-size: 1.6rem; }
}

/* ---------------------------------------------------------------------------
   Screen captures - Bootstrap's row/col handles the grid; we keep the visuals
   --------------------------------------------------------------------------- */
.capture-item {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.capture-screen {
  background: #0b0b0b;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.capture-screen video,
.capture-screen img {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
  image-rendering: pixelated;
}
.capture-label {
  padding: 10px 16px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  border-top: 2px solid var(--border);
  background: var(--panel);
}

.capture-inline {
  max-width: 640px;
  margin: 32px auto 0;
  border: 2px solid var(--border);
}
.capture-inline .capture-screen {
  background: #0b0b0b;
}
.capture-inline .capture-screen video,
.capture-inline .capture-screen img {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}
.capture-inline .capture-label {
  text-align: center;
}

.gallery-video {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

/* ---------------------------------------------------------------------------
   Utility classes - replacements for the inline styles in the original HTML
   --------------------------------------------------------------------------- */
.section-sub--flush { margin-bottom: 0; }
.section-sub--tight { margin-top: 32px; margin-bottom: 0; }
.narrative--tight { margin-bottom: 32px; }
.capture-screen--light { background: #fff; }

/* Inline code used inside narrative prose */
.inline-code {
  font-family: var(--mono);
  background: var(--panel-2);
  padding: 2px 6px;
  font-size: .85em;
}

/* Active nav link */
.nav-links a[aria-current="page"] {
  background: rgba(0,0,0,.1);
}

/* ---------------------------------------------------------------------------
   Info-panel body text helpers - used in the data-sources section
   --------------------------------------------------------------------------- */
.info-panel-body p {
  color: var(--muted);
  margin-bottom: 12px;
}
.info-panel-body p:last-child {
  margin-bottom: 0;
}
.info-panel-body .panel-punchline {
  color: var(--text);
  font-weight: 700;
  margin-top: 16px;
}
.info-panel + .info-panel {
  margin-top: 24px;
}
.info-panel-body code {
  font-family: var(--mono);
  background: var(--panel-2);
  padding: 2px 6px;
}

/* ---------------------------------------------------------------------------
   Code card - a consistent styled box for showing commands with optional copy
   --------------------------------------------------------------------------- */
.code-card {
  border: 2px solid var(--border);
  margin-bottom: 1.5rem;
  max-width: 680px;
}
.code-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.code-card-body {
  padding: 1rem;
  background: var(--bg);
  overflow-x: auto;
}
.code-card-body pre {
  margin: 0;
}
.code-card-body code {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
  white-space: pre;
  display: block;
}
.code-card-copy {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: all 0.15s;
}
.code-card-copy:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ── Ko-fi floating button ───────────────────────────── */
.kofi-fab {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 1000;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.kofi-fab:hover {
  opacity: 1;
}
.kofi-fab img {
  display: block;
  border: 0;
  height: 36px;
}