/* ═══════════════════════════════════════════════════════════════
   Helix — "Heirloom" design system (replaced "Sunline", 2026-11-05)
   Nostalgic and sentimental: aged paper, sepia ink, handwritten notes,
   old photographs. Palette (Sid): #7E4A3C #C99078 #E8D5B5 #8C8B70 #FAF5EA.
   Token names are kept from Sunline (--rust, --mustard, --teal…) so every
   page picks the new palette up without renaming; comments give the role.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Paper */
  --cream:       #F1E5CF;   /* page background — parchment blended with paper */
  --cream-deep:  #E8D5B5;   /* parchment: recessed / hover surfaces */
  --paper:       #FAF5EA;   /* card surfaces, like a fresh sheet of letter paper */

  /* Ink — sepia, never pure black */
  --ink:         #3A2A22;   /* primary text */
  --ink-soft:    #6E5A4E;   /* secondary text (5.2:1 on the page) */
  --ink-faint:   #857060;   /* tertiary / placeholder text */
  --ink-line:    rgba(58,42,34,0.12);   /* hairlines on paper */
  --ink-line-2:  rgba(58,42,34,0.20);

  /* Accents */
  --rust:        #7E4A3C;   /* heirloom brown — primary accent, buttons, links (6.6:1 on paper) */
  --rust-deep:   #63382D;
  --rust-wash:   rgba(126,74,60,0.10);
  --mustard:     #C99078;   /* clay rose — fills, badges, borders only (too light for text) */
  --mustard-wash:rgba(201,144,120,0.18);
  --sage:        #8C8B70;   /* sage — fills and borders only (too light for text) */
  --teal:        #5F5E48;   /* deep sage — the text-safe sage */
  --teal-wash:   rgba(140,139,112,0.18);
  --navy:        #4E5560;   /* faded slate */
  --rose:        #B07468;   /* dusty rose */
  --plum:        #7A5F6B;   /* faded plum */

  /* Type: old-book serif headings, letter-like serif body, handwriting for
     personal touches (signatures, captions, dates) — never for long reading. */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-hand:    'Caveat', 'Segoe Print', 'Bradley Hand', cursive;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  /* Soft, photo-album shadows instead of Sunline's hard offset "stickers" */
  --shadow-pop: 0 1px 2px rgba(58,42,34,0.08), 0 4px 14px rgba(58,42,34,0.10);
  --shadow-pop-sm: 0 1px 2px rgba(58,42,34,0.08), 0 2px 6px rgba(58,42,34,0.08);
}

* { box-sizing: border-box; }

/* Nothing may make the page wider than the screen (e.g. the decorative
   .sunburst-decor hanging off the top-right corner). */
html, body { max-width: 100%; overflow-x: clip; }

body.theme-sun {
  font-family: var(--font-body);
  /* Aged paper: a little lighter in the middle, warmer toward the edges. */
  background:
    radial-gradient(ellipse at 50% 0%, rgba(250,245,234,0.65), transparent 60%),
    radial-gradient(ellipse at 50% 120%, rgba(201,144,120,0.10), transparent 55%),
    var(--cream);
  background-attachment: fixed;
  color: var(--ink);
}

/* Old photographs: a faint warm, faded tone on family photos. */
.life-polaroid img, .person-avatar, img.hn-photo, .fbe-photo img {
  filter: sepia(0.18) saturate(0.88) contrast(0.97);
}

/* Handwritten touches — short personal bits only, sized up because
   handwriting fonts run small. */
body.theme-sun .subtitle,
body.theme-sun .hero-sub,
body.theme-sun .polaroid-caption,
body.theme-sun .hn-from,
body.theme-sun .otd-date,
body.theme-sun .add-sub {
  font-family: var(--font-hand);
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}
body.theme-sun .subtitle      { font-size: calc(20px * var(--ts, 1)); }
body.theme-sun .hero-sub      { font-size: calc(21px * var(--ts, 1)); }
body.theme-sun .polaroid-caption { font-size: calc(18px * var(--ts, 1)); }
body.theme-sun .hn-from       { font-size: calc(20px * var(--ts, 1)); font-weight: 600; }
body.theme-sun .otd-date      { font-size: calc(17px * var(--ts, 1)); font-weight: 600; }
body.theme-sun .add-sub       { font-size: calc(19px * var(--ts, 1)); line-height: 1.35; }

/* ── Brand mark: the app icon's two woven arches (rust + sage). The same
   art is public/helix-mark.svg; regenerate both with
   "App Design/icon-concepts/src/gen_mark.py". ── */
.brandmark { display: inline-block; vertical-align: middle; flex-shrink: 0; line-height: 0; }
.brandmark svg { width: 24px; height: 25px; display: block; }

.wordmark-row { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.005em;
  color: var(--ink);
}

/* ── Header ── */
.header {
  height: 56px;
  background: var(--cream);
  /* a fine double rule, like the head of old letter paper */
  border-bottom: 1px solid var(--ink-line-2);
  box-shadow: 0 2px 0 var(--paper), 0 3px 0 var(--ink-line);
  display: flex;
  align-items: center;
  padding: 0 24px;
  flex-shrink: 0;
  gap: 12px;
}
.nav-link {
  font-family: 'Lora', Georgia, serif;
  font-size: calc(11px * var(--ts, 1));
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 14px;
  border: 1.5px solid var(--ink-line-2);
  border-radius: var(--radius-pill);
  transition: all 0.15s;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--paper);
  cursor: pointer;
}
.nav-link:hover { color: var(--ink); border-color: var(--ink); }
.nav-link.gold  { color: var(--rust); border-color: var(--rust); background: var(--rust-wash); }
.nav-link.gold:hover { background: var(--rust); color: var(--paper); }

/* ── Buttons ── */
.btn, .mbtn.gold, .hero-cta {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
}
.btn {
  width: 100%;
  background: var(--rust);
  color: var(--paper);
  border: 1px solid var(--ink-line-2);
  border-radius: var(--radius-sm);
  padding: 13px;
  font-size: calc(14px * var(--ts, 1));
  cursor: pointer;
  margin-top: 8px;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-pop-sm);
  transition: transform 0.1s, box-shadow 0.1s, background 0.15s;
}
.btn:hover { background: var(--rust-deep); }
.btn-secondary { background: var(--paper); color: var(--rust); border: 1.5px solid var(--rust); box-shadow: none; }
.btn-secondary:hover { background: var(--rust-wash); }

/* ── Cards / surfaces ── */
.card {
  background: var(--paper);
  border: 1px solid var(--ink-line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
}

/* ── Form fields ── */
label {
  display: block;
  font-size: calc(11px * var(--ts, 1));
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  background: var(--cream);
  border: 1.5px solid var(--ink-line-2);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: calc(14px * var(--ts, 1));
  font-family: 'Lora', Georgia, serif;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
input::placeholder { color: var(--ink-faint); }

/* Press-and-hold show-password eye (added by /password-peek.js) */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 44px; }
.pw-peek {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 34px; height: 34px; padding: 0; border: none; background: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); cursor: pointer; border-radius: 8px;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.pw-peek:hover, .pw-peek.on { color: var(--rust); }
.pw-peek:focus-visible { outline: 2px solid var(--rust); outline-offset: 1px; }
.pw-peek svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
input:focus, select:focus, textarea:focus { border-color: var(--rust); background: var(--paper); }

.err {
  background: rgba(99,56,45,0.10);
  border: 1.5px solid var(--rust);
  color: var(--rust-deep);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: calc(13px * var(--ts, 1));
  margin-bottom: 20px;
  display: none;
  font-weight: 600;
}

.footer-links { margin-top: 24px; text-align: center; font-size: calc(13px * var(--ts, 1)); color: var(--ink-soft); }
.footer-links a { color: var(--rust); text-decoration: none; font-weight: 700; }
.footer-links a:hover { text-decoration: underline; }

.divider { height: 2px; background: var(--ink-line); margin: 24px 0; border-radius: 1px; }
.section-label { font-size: calc(11px * var(--ts, 1)); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }

/* ── Sunburst decoration (radiating rays, low opacity, pure CSS) ── */
.sunburst-decor {
  position: absolute;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--ink) 0deg 1.2deg, transparent 1.2deg 15deg);
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
}

/* ── Scrollbars (thin, warm) ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink-line-2); border-radius: 3px; }

/* ── Toast (brief confirmation after a save/action) ── */
.fb-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  background: var(--ink);
  color: var(--paper);
  font-family: 'Lora', Georgia, serif;
  font-size: calc(13px * var(--ts, 1));
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-pop);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.fb-toast.show { opacity: 1; transform: translate(-50%, 0); }
.fb-toast.error { background: var(--rust-deep); }

/* ═══════════════════════════════════════════════════════════════
   Phones (and the Capacitor app on a phone)
   One set of pages: desktop layout above 760px, this below it.
   ═══════════════════════════════════════════════════════════════ */

/* Bottom tab bar + "More" sheet are injected by /mobile-nav.js and only ever
   shown on phones. */
.tabbar, .more-sheet, .more-backdrop { display: none; }

@media (max-width: 760px) {
  /* Every font-size ≤16px in the app is written as calc(Npx * var(--ts, 1)),
     so this one knob makes all small text ~20% bigger on phones. */
  :root { --ts: 1.2; --tabbar-h: 64px; }

  /* Below 16px, iOS zooms the page in whenever a field is tapped. */
  input, select, textarea { font-size: 16px !important; }

  .btn { min-height: 48px; font-size: 16px; }

  /* Header: just the logo plus any page-specific actions (marked .nav-keep);
     site navigation lives in the bottom tab bar instead. Clears the notch. */
  .header {
    height: auto;
    min-height: 56px;
    padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    gap: 8px;
  }
  .header .nav-link:not(.nav-keep) { display: none; }
  .nav-link { font-size: 13px; padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; }

  body.has-tabbar { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  body.has-tabbar .fb-toast { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px); }

  .tabbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 150;
    background: var(--paper);
    border-top: 1px solid var(--ink-line-2);
    padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
  .tab {
    flex: 1;
    height: var(--tabbar-h);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: none;
    padding: 0;
    font-family: 'Lora', Georgia, serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-soft);
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .tab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .tab .tab-icon { display: flex; padding: 2px 14px; border-radius: var(--radius-pill); }
  .tab.active { color: var(--rust); }
  .tab.active .tab-icon { background: var(--rust-wash); }
  .tab .tab-icon { position: relative; }
  .tab-badge {
    position: absolute; top: -4px; right: 4px;
    min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
    background: var(--rust); color: var(--paper); border: 2px solid var(--paper);
    font-size: 11px; font-weight: 700; line-height: 16px; text-align: center;
  }
  .tab:active .tab-icon { background: var(--cream-deep); }

  .more-backdrop.open {
    display: block;
    position: fixed; inset: 0;
    z-index: 9000;
    background: rgba(58,42,34,0.40);
  }
  .more-sheet.open {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9001;
    background: var(--paper);
    border-top: 1px solid var(--ink-line-2);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
    animation: sheetUp 0.18s ease-out;
  }
  @keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .more-grip { width: 44px; height: 5px; border-radius: 3px; background: var(--ink-line-2); margin: 0 auto 12px; }
  .more-owner { text-align: center; font-size: 13px; font-weight: 600; color: var(--teal); background: var(--teal-wash); border-radius: var(--radius-pill); padding: 6px 14px; margin: 0 auto 10px; width: fit-content; max-width: 100%; }
  .more-owner[hidden] { display: none; }
  .more-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 58px;
    padding: 0 12px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--ink-line);
    font-family: 'Lora', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    text-align: left;
    cursor: pointer;
  }
  .more-item[hidden] { display: none; }
  .more-item:last-of-type { border-bottom: none; }
  .more-item:active { background: var(--cream-deep); }
  .more-item svg { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: var(--rust); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .more-close { margin-top: 10px; background: var(--cream-deep); color: var(--ink); border-color: var(--ink-line-2); box-shadow: none; }
}

/* ═══ Simple content pages (Photo Albums, Family Recipes) ═══ */
.pg-wrap { max-width: 1100px; margin: 0 auto; padding: 28px 28px 80px; }
.pg-eyebrow { font-size: calc(11px * var(--ts, 1)); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust); }
.pg-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 38px); margin: 4px 0; color: var(--ink); line-height: 1.15; overflow-wrap: anywhere; }
.pg-sub { font-family: var(--font-hand); font-size: calc(21px * var(--ts, 1)); color: var(--ink-soft); margin: 0 0 22px; }
.pg-back { display: inline-flex; align-items: center; min-height: 40px; font-size: calc(14px * var(--ts, 1)); font-weight: 700; color: var(--rust); text-decoration: none; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.pg-btn { min-height: 52px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--rust); color: var(--paper); border: 1px solid var(--ink-line-2); border-radius: var(--radius-md); box-shadow: var(--shadow-pop-sm);
  font-family: var(--font-body); font-size: calc(16px * var(--ts, 1)); font-weight: 700; cursor: pointer; text-decoration: none; }
.pg-btn:hover { background: var(--rust-deep); }
.pg-btn.secondary { background: var(--paper); color: var(--rust); border: 1.5px solid var(--rust); box-shadow: none; }
.pg-btn.secondary:hover { background: var(--rust-wash); }
.pg-btn.quiet { background: var(--paper); color: var(--ink-soft); border: 1.5px solid var(--ink-line-2); box-shadow: none; }
.pg-btn.danger { background: var(--paper); color: var(--rust-deep); border: 1.5px solid rgba(99,56,45,0.3); box-shadow: none; }
.pg-btn:disabled { opacity: 0.6; cursor: default; }
.pg-empty { background: var(--paper); border: 1.5px dashed var(--ink-line-2); border-radius: var(--radius-md); padding: 28px 20px; text-align: center;
  color: var(--ink-soft); font-size: calc(15px * var(--ts, 1)); line-height: 1.5; }
.pg-empty b { color: var(--ink); }

/* Form in a sheet (new album, add a recipe…) — a bottom sheet on phones. */
.fm-overlay { position: fixed; inset: 0; z-index: 700; background: rgba(58,42,34,0.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.fm-sheet { background: var(--paper); border: 1px solid var(--ink-line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop);
  width: min(560px, 100%); max-height: 92dvh; display: flex; flex-direction: column; overflow: hidden; }
.fm-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid var(--ink-line); }
.fm-title { flex: 1; font-family: var(--font-display); font-weight: 600; font-size: calc(19px * var(--ts, 1)); color: var(--ink); }
.fm-x { width: 40px; height: 40px; border: none; border-radius: 10px; background: var(--cream-deep); font-size: 22px; color: var(--ink-soft); cursor: pointer; }
.fm-body { padding: 14px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.fm-field { display: flex; flex-direction: column; gap: 6px; }
.fm-label { font-size: calc(12px * var(--ts, 1)); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.fm-hint { font-size: calc(13px * var(--ts, 1)); color: var(--ink-soft); line-height: 1.4; }
.fm-input, .fm-text, .fm-select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--ink-line-2); border-radius: var(--radius-sm);
  background: var(--cream); font-family: var(--font-body); font-size: 16px; color: var(--ink); }
.fm-text { min-height: 110px; resize: vertical; line-height: 1.5; }
.fm-input:focus, .fm-text:focus, .fm-select:focus { outline: none; border-color: var(--rust); background: var(--paper); }
.fm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-chip { min-height: 42px; padding: 0 14px; border: 1.5px solid var(--ink-line-2); background: var(--paper); border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: calc(14px * var(--ts, 1)); font-weight: 600; color: var(--ink); cursor: pointer; }
.fm-chip.on { background: var(--rust-wash); border-color: var(--rust); color: var(--rust-deep); }
.fm-pick { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--ink-line-2); border-radius: var(--radius-sm);
  background: var(--cream); font-family: var(--font-body); font-size: 16px; color: var(--ink); cursor: pointer; text-align: left; width: 100%; }
.fm-err { display: none; color: var(--rust-deep); font-size: calc(14px * var(--ts, 1)); font-weight: 600; }
.fm-foot { display: flex; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ink-line); }
.fm-foot button { flex: 1; min-height: 50px; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: calc(15px * var(--ts, 1)); font-weight: 700; cursor: pointer; }
.fm-cancel { background: var(--cream-deep); border: 1.5px solid var(--ink-line-2); color: var(--ink); }
.fm-save { background: var(--rust); border: 1px solid var(--ink-line-2); color: var(--paper); flex: 2 !important; }
.fm-save:disabled { opacity: 0.6; cursor: default; }

@media (max-width: 760px) {
  .pg-wrap { padding: 22px 16px 40px; }
  .pg-actions .pg-btn { flex: 1 1 auto; }
  .fm-overlay { align-items: flex-end; padding: 0; }
  .fm-sheet { width: 100%; max-height: 94dvh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: none; }
  .fm-row { grid-template-columns: 1fr; }
}

/* ═══ Sage accents: the app icon's second strand ═══
   Rust stays the action color (buttons, links). Sage carries the supporting
   roles — labels, the selected tab, filters, chips, and the decor — so the
   app reads as the same rust + sage pair as the icon. Text uses --teal
   (deep sage, 5.3:1 on the page); --sage is for fills and borders only.
   "body.theme-sun" outranks the per-page <style> rules these replace. */
body.theme-sun .hero-eyebrow,
body.theme-sun .page-eyebrow,
body.theme-sun .pg-eyebrow,
body.theme-sun .section-label,
body.theme-sun .tl-section-lbl,
body.theme-sun .activity-hdr,
body.theme-sun .otd-hdr { color: var(--teal); }

/* Header rule: a sage line over a faint rust one, like the icon's stripes */
body.theme-sun .header {
  border-bottom: 1.5px solid rgba(95,94,72,0.55);
  box-shadow: 0 2px 0 var(--paper), 0 3.5px 0 rgba(126,74,60,0.30);
}

/* Bottom tab bar: the selected tab */
body.theme-sun .tab.active { color: var(--teal); }
body.theme-sun .tab.active .tab-icon { background: var(--teal-wash); }

/* Filters and tabs on Home, chips in forms */
body.theme-sun .tl-filter-btn.active { color: var(--teal); border-color: var(--sage); background: var(--teal-wash); }
body.theme-sun .ev-tab.active { color: var(--teal); border-bottom-color: var(--sage); }
body.theme-sun .fm-chip.on { background: var(--teal-wash); border-color: var(--sage); color: var(--teal); }

/* Home stats alternate rust / sage */
body.theme-sun .hero-stat:nth-child(even) .hero-stat-num { color: var(--teal); }

/* Profile status pill ("Family Legend", "Story Needed") */
body.theme-sun .status-pill { color: var(--teal); background: var(--teal-wash); border-color: rgba(140,139,112,0.45); }

/* Sunburst rays in sage */
body.theme-sun .sunburst-decor {
  background: repeating-conic-gradient(var(--teal) 0deg 1.2deg, transparent 1.2deg 15deg);
  opacity: 0.08;
}

/* Secondary buttons in sage: rust = the main action, sage = the alternative */
body.theme-sun .btn-secondary,
body.theme-sun .pg-btn.secondary { color: var(--teal); border-color: var(--sage); }
body.theme-sun .btn-secondary:hover,
body.theme-sun .pg-btn.secondary:hover { background: var(--teal-wash); }

/* Selected tab: a clearer sage pill */
body.theme-sun .tab.active .tab-icon { background: rgba(140,139,112,0.30); }
