/* iAdvize Design Tokens — extracted from production CSS (iadvize.com 2025) */

/* ===== FONTS ===== */
/* Variable font files — one declaration covers the full weight range */
@font-face {
  font-family: "Open Sans";
  src: url("fonts/OpenSans-VariableFont_wdth_wght.ttf") format("truetype-variations");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("fonts/OpenSans-Italic-VariableFont_wdth_wght.ttf") format("truetype-variations");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("fonts/Raleway-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("fonts/Raleway-Italic-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* === BRAND COLORS === */
  --ia-mint: #3BE1A4;          /* Primary brand — buttons, metrics, accent */
  --ia-mint-soft: #D0FBF4;     /* Highlight underline */

  /* === INK / NEUTRALS === */
  --ia-ink: #0A0A09;           /* Headings, primary text */
  --ia-ink-button: #111010;    /* Button text on mint, button border */
  --ia-body: #3D3D38;          /* Body answer text */
  --ia-body-muted: #6C6C68;    /* Body description, secondary */
  --ia-tertiary: #9B9B97;      /* Footer text, customer logos, dividers */

  /* === SURFACES === */
  --ia-bg: #FFFFFF;            /* Page background */
  --ia-surface: #F0F0EC;       /* Cards, FAQ items, hero bottom band */

  /* === SUPPORTING (used selectively) === */
  --ia-deep: #0B3B37;          /* Deep teal — highlight pill text */
  --ia-blue: #002AA8;          /* Pricing CTA accent */
  --ia-slate: #3A4A55;         /* Tag border / pricing accent */

  /* === TYPE === */
  --ia-font-display: "Raleway", sans-serif;
  --ia-font-body: "Open Sans", sans-serif;

  /* === RADII === */
  --ia-radius-sm: 8px;          /* Teaser pill */
  --ia-radius-md: 12px;         /* FAQ items */
  --ia-radius-lg: 16px;         /* Media wrappers */
  --ia-radius-xl: 18px;         /* Metric panel */
  --ia-radius-2xl: 24px;        /* Hero band */
  --ia-radius-3xl: 32px;        /* Hero outer, shopping panel */
  --ia-radius-pill: 50px;       /* Buttons */

  /* === SPACING (8pt base, observed multiples) === */
  --ia-space-1: 4px;
  --ia-space-2: 8px;
  --ia-space-3: 12px;
  --ia-space-4: 16px;
  --ia-space-5: 20px;
  --ia-space-6: 24px;
  --ia-space-8: 32px;
  --ia-space-10: 40px;
  --ia-space-15: 60px;
  --ia-space-20: 80px;
  --ia-space-30: 120px;        /* Section bottom margin */

  /* === LAYOUT === */
  --ia-container: 1324px;
  --ia-container-wide: 1512px;
}

/* ===== BASE ===== */
.ia-page {
  font-family: var(--ia-font-body);
  color: var(--ia-body);
  background: var(--ia-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ia-h1 { font-family: var(--ia-font-display); font-weight: 500; font-size: 64px; line-height: 1.05; color: var(--ia-ink); letter-spacing: -0.02em; }
.ia-h2 { font-family: var(--ia-font-display); font-weight: 600; font-size: 40px; line-height: 1.2; color: var(--ia-ink); letter-spacing: -0.02em; }
.ia-h3 { font-family: var(--ia-font-display); font-weight: 700; font-size: 24px; line-height: 1.2; color: var(--ia-ink); }
.ia-h4 { font-family: var(--ia-font-display); font-weight: 700; font-size: 16px; line-height: 1.2; color: var(--ia-ink); }
.ia-body-lg { font-family: var(--ia-font-body); font-weight: 400; font-size: 18px; line-height: 1.4; color: var(--ia-body-muted); }
.ia-body { font-family: var(--ia-font-body); font-weight: 400; font-size: 16px; line-height: 1.6; color: var(--ia-body-muted); }
.ia-body-tight { font-family: var(--ia-font-body); font-weight: 400; font-size: 16px; line-height: 1.6; color: var(--ia-body); }
.ia-caption { font-family: var(--ia-font-body); font-weight: 400; font-size: 12px; line-height: 1.4; color: var(--ia-body-muted); }
.ia-meta { font-family: var(--ia-font-body); font-weight: 400; font-size: 14px; line-height: 1.5; color: var(--ia-tertiary); }
.ia-eyebrow { font-family: var(--ia-font-body); font-weight: 600; font-size: 16px; color: var(--ia-mint); letter-spacing: 0; }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body { font-family: var(--ia-font-body); background: var(--ia-bg); color: var(--ia-body); -webkit-font-smoothing: antialiased; }
  a { color: inherit; text-decoration: none; }

  /* ===== Top nav ===== */
  .nav { padding: 20px 56px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #EDEDE7; }
  .brand { display: flex; align-items: center; gap: 14px; transition: opacity .15s ease; }
  .brand:hover { opacity: .7; }
  .brand img { height: 24px; }
  .brand-sub { font-size: 13.5px; font-weight: 500; color: var(--ia-body-muted); }
  .brand-sep { color: #D8D8D2; }
  .nav-right { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; color: var(--ia-body); }
  .nav-right a:not(.btn-ghost):hover { color: var(--ia-ink); }

  /* Language switcher */
  .lang {
    display: inline-flex; align-items: center;
    padding: 3px;
    border-radius: 50px;
    background: var(--ia-surface);
    gap: 2px;
  }
  .lang button {
    padding: 5px 12px;
    border: none;
    background: transparent;
    font-family: var(--ia-font-body);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ia-body-muted);
    cursor: pointer;
    border-radius: 50px;
    letter-spacing: 0.04em;
    transition: all .15s ease;
  }
  .lang button:hover { color: var(--ia-ink); }
  .lang button.is-on {
    background: var(--ia-ink);
    color: #fff;
  }

  /* ===== Slim page header ===== */
  .page-head {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 56px 16px;
    display: flex; align-items: baseline; gap: 24px;
    flex-wrap: wrap;
  }
  .page-head h1 {
    font-family: var(--ia-font-display);
    font-weight: 600;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ia-ink);
    margin: 0;
  }
  .page-head .tagline {
    font-family: var(--ia-font-body);
    font-size: 15px;
    color: var(--ia-body-muted);
    line-height: 1.5;
    margin: 0;
  }
  .page-head .tagline a { color: var(--ia-mint); font-weight: 600; }
  .page-head .tagline a:hover { color: var(--ia-deep); }

  /* ===== Two-column layout ===== */
  .layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 56px 120px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 64px;
    align-items: start;
  }
  .sidebar {
    position: sticky;
    top: 32px;
    display: flex; flex-direction: column; gap: 32px;
    padding-top: 8px;
  }
  .side-group { display: flex; flex-direction: column; gap: 2px; }
  .side-lbl {
    font-size: 11.5px; font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ia-tertiary);
    margin-bottom: 10px;
    padding: 0 12px;
  }
  .side-item {
    display: flex; align-items: center; gap: 10px;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--ia-font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--ia-body);
    text-align: left;
    transition: background .12s ease, color .12s ease;
  }
  .side-item:hover { background: rgba(10,10,9,0.04); color: var(--ia-ink); }
  .side-item.is-on { background: var(--ia-mint-soft); color: var(--ia-ink); font-weight: 700; }
  .side-item .lbl { flex: 1; }
  .side-item .cnt {
    font-size: 12px; font-weight: 600;
    color: var(--ia-tertiary);
    background: rgba(10,10,9,0.05);
    padding: 1px 8px;
    border-radius: 50px;
    min-width: 22px; text-align: center;
    font-variant-numeric: tabular-nums;
  }
  .side-item.is-on .cnt { background: rgba(255,255,255,0.85); color: var(--ia-deep); }
  .side-dot {
    width: 8px; height: 8px; border-radius: 50%;
    flex-shrink: 0;
    background: var(--ia-tertiary);
  }
  .side-dot--ink   { background: var(--ia-ink); }
  .side-dot--mint  { background: var(--ia-mint); }
  .side-dot--slate { background: var(--ia-slate); }
  .side-dot--blue  { background: var(--ia-blue); }
  .side-dot--deep  { background: var(--ia-deep); }

  .search {
    position: relative;
    display: flex; align-items: center;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: var(--ia-surface);
    border-radius: 10px;
    transition: background .15s ease;
  }
  .search:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--ia-ink); }
  .search-icon { color: var(--ia-body-muted); flex-shrink: 0; margin-right: 8px; }
  .search-input {
    flex: 1; min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    font-family: var(--ia-font-body);
    font-size: 14px;
    color: var(--ia-ink);
    padding: 4px 0;
    -webkit-appearance: none;
  }
  .search-input::placeholder { color: var(--ia-body-muted); font-weight: 400; }
  .search-input::-webkit-search-cancel-button { display: none; }
  .search-clear {
    background: rgba(10,10,9,0.08);
    border: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    color: var(--ia-body-muted);
    font-size: 14px; line-height: 1;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0;
    flex-shrink: 0;
  }
  .search-clear:hover { background: var(--ia-ink); color: #fff; }

  /* ===== Timeline ===== */
  .tl {
    position: relative;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 22px;
  }
  .tl::before {
    content: "";
    position: absolute;
    left: 100px; top: 8px; bottom: 0;
    width: 1px;
    background: #EDEDE7;
  }
  .tl-row { display: contents; }
  .tl-date-wrap { position: relative; padding-top: 4px; }
  .tl-date {
    font-family: var(--ia-font-body);
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ia-tertiary);
    font-variant-numeric: tabular-nums;
    text-align: right;
    padding-right: 24px;
  }
  .tl-date b {
    display: block;
    font-family: var(--ia-font-display);
    font-size: 26px; font-weight: 400;
    color: var(--ia-ink);
    margin-top: 4px;
    letter-spacing: -0.02em;
    text-transform: none;
  }
  .tl-dot {
    position: absolute;
    right: -7px; top: 10px;
    width: 13px; height: 13px;
    border-radius: 50%;
    background: var(--ia-bg);
    border: 2px solid var(--ia-ink);
    z-index: 1;
  }
  .tl-row.new         .tl-dot { background: var(--ia-mint); border-color: var(--ia-ink); }
  .tl-row.improvement .tl-dot { background: var(--ia-bg);   border-color: var(--ia-ink); }
  .tl-row.bug         .tl-dot { background: var(--ia-ink); }

  .tl-body { padding: 0 0 22px 24px; }

  /* Featured entries — extra padding so cover band sits cleanly */
  .tl-row.is-featured .tl-body {
    padding-bottom: 30px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    column-gap: 32px;
    align-items: start;
  }
  .tl-row.is-featured .cover {
    grid-column: 2;
    grid-row: 1 / span 10;
    align-self: start;
    margin-bottom: 0;
    height: 150px;
    min-height: 0;
  }

  /* Cover banner (featured cards only) */
  .cover {
    height: 140px;
    border-radius: 16px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 24px;
  }
  .cover::after {
    /* large decorative glyph in the corner */
    content: attr(data-glyph);
    position: absolute;
    right: -28px; bottom: -64px;
    font-family: var(--ia-font-display);
    font-weight: 800;
    font-size: 220px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: inherit;
    opacity: 0.16;
    user-select: none;
    pointer-events: none;
  }
  .cover-mint-grad  { background: linear-gradient(135deg, #3BE1A4 0%, #D0FBF4 100%); color: var(--ia-deep); }
  .cover-ink-grad   { background: linear-gradient(135deg, #0A0A09 0%, #3A4A55 100%); color: var(--ia-mint); }
  .cover-slate-grad { background: linear-gradient(135deg, #3A4A55 0%, #6C6C68 100%); color: var(--ia-mint); }
  .cover-blue-grad  { background: linear-gradient(135deg, #002AA8 0%, #3A4A55 100%); color: var(--ia-mint); }
  .cover .cover-eyebrow {
    font-family: var(--ia-font-body);
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    position: relative; z-index: 1;
  }

  .tl-tags { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
  .tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px 5px;
    border-radius: 50px;
    font-size: 12px; font-weight: 600;
    font-family: var(--ia-font-body);
    line-height: 1;
  }
  .tag-feature     { border: 1px solid var(--ia-ink); color: var(--ia-ink); }
  .tag-new         { background: var(--ia-mint); color: var(--ia-ink); }
  .tag-improvement { border: 1px solid var(--ia-ink); color: var(--ia-ink); background: transparent; }
  .tag-bug         { background: var(--ia-ink); color: var(--ia-mint); }

  .tl-title {
    font-family: var(--ia-font-display);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ia-ink);
    margin: 0 0 6px;
    text-wrap: pretty;
  }
  .tl-row.is-featured .tl-title { font-size: 22px; }
  .tl-body p {
    font-family: var(--ia-font-body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ia-body);
    margin: 0 0 8px;
    max-width: 60ch;
    text-wrap: pretty;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Learn more — discreet text link */
  .learn-more {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 0;
    background: transparent;
    color: var(--ia-body-muted);
    border-radius: 0;
    font-family: var(--ia-font-body);
    font-size: 12.5px; font-weight: 600;
    border: none;
    cursor: pointer;
    transition: color .15s ease;
    margin-top: 0;
    align-self: flex-start;
    justify-self: start;
    width: fit-content;
  }
  .learn-more:hover { background: transparent; color: var(--ia-ink); }
  .learn-more svg { transition: transform .2s ease; }
  .learn-more:hover svg { transform: translateX(2px); }

  .empty { padding: 80px 0; text-align: center; color: var(--ia-body-muted); }
  .empty h3 { font-family: var(--ia-font-display); font-size: 28px; color: var(--ia-ink); margin: 0 0 8px; }

  /* ===== Detail page ===== */
  .detail {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px 56px 120px;
  }
  .detail-back {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--ia-font-body);
    font-size: 14px; font-weight: 600;
    color: var(--ia-body-muted);
    margin-bottom: 32px;
    cursor: pointer;
    background: none; border: none; padding: 8px 12px 8px 0;
    transition: color .15s ease;
  }
  .detail-back:hover { color: var(--ia-ink); }

  .detail-tags { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
  .detail-date {
    font-family: var(--ia-font-body);
    font-size: 14px; font-weight: 500;
    color: var(--ia-tertiary);
    margin-bottom: 16px;
    letter-spacing: 0.04em;
  }
  .detail h1 {
    font-family: var(--ia-font-display);
    font-weight: 600;
    font-size: clamp(20px, 2.5vw, 28px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ia-ink);
    margin: 0 0 20px;
    text-wrap: pretty;
  }
  .detail-lede {
    font-family: var(--ia-font-display);
    font-weight: 400;
    font-size: 22px;
    line-height: 1.4;
    color: var(--ia-body);
    margin: 0 0 40px;
    max-width: 60ch;
    text-wrap: pretty;
  }
  .detail-cover {
    height: 280px;
    border-radius: 24px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 32px;
  }
  .detail-cover::after {
    content: attr(data-glyph);
    position: absolute;
    right: -40px; bottom: -100px;
    font-family: var(--ia-font-display);
    font-weight: 800;
    font-size: 360px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: inherit;
    opacity: 0.18;
  }
  .detail-cover-eyebrow {
    font-family: var(--ia-font-body);
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    position: relative; z-index: 1;
  }
  .detail-body p {
    font-family: var(--ia-font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ia-body);
    margin: 0 0 20px;
    max-width: 64ch;
    text-wrap: pretty;
  }
  /* Lien vers le help center en fin d'entrée. La règle globale « a { color:
     inherit; text-decoration: none } » le rendrait indistinguable du texte. */
  .detail-body a {
    color: var(--ia-deep);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--ia-mint);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
  }
  .detail-body a:hover { text-decoration-color: var(--ia-deep); }

  /* Entrées bug fix : chaque correctif est un paragraphe « titre gras + description ».
     Un filet et plus d'air entre eux pour montrer que ce sont des correctifs distincts. */
  .detail-body--bug p + p {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #EDEDE7;
  }

  .detail-body p code {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.92em;
    background: var(--ia-surface);
    padding: 1px 6px;
    border-radius: 4px;
  }
  .detail-share {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #EDEDE7;
    display: flex; align-items: center; gap: 16px;
    flex-wrap: wrap;
  }
  .detail-share-label {
    font-family: var(--ia-font-body);
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ia-tertiary);
  }
  .copy-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px;
    background: transparent;
    color: var(--ia-ink);
    border: 1.5px solid var(--ia-ink);
    border-radius: 50px;
    font-family: var(--ia-font-body);
    font-size: 13.5px; font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
  }
  .copy-link:hover { background: var(--ia-ink); color: #fff; }
  .copy-link.is-done { background: var(--ia-mint); border-color: var(--ia-mint); color: var(--ia-ink); }


/* Fix: remove default list bullets from sidebar */
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.side-list li { list-style: none; }

/* Footer */
.footer {
  border-top: 1px solid var(--ia-border);
  background: var(--ia-bg);
  padding: 24px 0;
  margin-top: 64px;
}
.ft-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ft-inner > span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ia-tertiary);
}
.ft-inner > span img {
  height: 20px;
  width: auto;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--ia-tertiary);
  text-decoration: none;
}
.footer-links a:hover { color: var(--ia-ink); }

/* Entry image — detail page */
.entry-image {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: 32px;
  background: var(--ia-surface);
  cursor: zoom-in;
}

/* Entry image thumbnail — feed */
.tl-img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 16px;
  background: var(--ia-surface);
  cursor: zoom-in;
  transition: opacity .15s;
}
.tl-img:hover { opacity: .9; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,10,9,.85);
  align-items: center; justify-content: center;
  padding: 32px;
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
  cursor: default;
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255,255,255,.12); border: none;
  color: #fff; border-radius: 50%; width: 36px; height: 36px;
  font-size: 18px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .nav { padding: 18px 28px; }
  .page-head { padding: 24px 28px 12px; }
  .layout { padding: 12px 28px 80px; grid-template-columns: 190px 1fr; gap: 40px; }
  .detail { padding: 28px 28px 80px; }
}

@media (max-width: 860px) {
  .nav { padding: 14px 20px; flex-wrap: wrap; gap: 10px 16px; }
  .nav-right { gap: 16px; font-size: 13px; flex-wrap: wrap; }
  .page-head { padding: 20px 20px 4px; }
  .page-head h1 { font-size: 24px; }

  /* Sidebar collapses above the feed, filters become chip rows */
  .layout { grid-template-columns: 1fr; gap: 24px; padding: 8px 20px 64px; }
  .sidebar { position: static; gap: 18px; padding-top: 0; }
  .search { margin-bottom: 0; }
  .search-input { font-size: 16px; } /* keeps iOS from zooming on focus */
  .side-lbl { padding: 0; margin-bottom: 8px; }
  .side-list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .side-item {
    width: auto; padding: 7px 14px;
    background: var(--ia-surface); border-radius: 50px;
    font-size: 13px;
  }
  .side-item .lbl { flex: 0 0 auto; }
  .side-item.is-on { background: var(--ia-ink); color: #fff; }
  .side-item.is-on .cnt { background: rgba(255,255,255,.18); color: #fff; }

  /* Timeline: narrower date gutter */
  .tl { grid-template-columns: 62px 1fr; gap: 14px; }
  .tl::before { left: 62px; }
  .tl-date { padding-right: 16px; font-size: 10.5px; letter-spacing: 0.08em; }
  .tl-date b { font-size: 20px; margin-top: 2px; }
  .tl-body { padding: 0 0 26px 14px; }
  .tl-title { font-size: 17px; }
  .tl-body p { font-size: 14px; }

  /* Featured entries: cover stacks above the text */
  .tl-row.is-featured .tl-body { display: block; padding-bottom: 26px; }
  .tl-row.is-featured .cover { height: 110px; margin-bottom: 16px; }
  .tl-row.is-featured .tl-title { font-size: 19px; }
  .cover { padding: 16px; }
  .cover::after { font-size: 150px; right: -20px; bottom: -44px; }

  /* Detail page */
  .detail { padding: 20px 20px 72px; }
  .detail-lede { font-size: 18px; margin-bottom: 28px; }
  .detail-cover { height: 170px; padding: 20px; border-radius: 18px; margin-bottom: 28px; }
  .detail-cover::after { font-size: 210px; right: -24px; bottom: -60px; }
  .detail-body p { font-size: 16px; }

  .lightbox { padding: 16px; }
  .ft-inner { padding: 0 20px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .nav-right { gap: 12px; width: 100%; justify-content: space-between; }
  .tl { grid-template-columns: 52px 1fr; gap: 10px; }
  .tl::before { left: 52px; }
  .tl-date { padding-right: 12px; }
  .tl-date b { font-size: 18px; }
  .tl-body { padding-left: 12px; }
  .tag { padding: 5px 10px 4px; font-size: 11px; }
}
