/* =========================================================
   Lilith Astrology — design tokens
   Direction: an old brass astrolabe engraved against a night
   sky, not a glossy "app" gradient. Ink, brass, parchment.
   ========================================================= */
:root {
  --void:        #0b0c1a;   /* night sky background */
  --void-2:      #14152a;   /* raised panels on dark */
  --plum:        #241b33;   /* deep plum surface */
  --ivory:       #f4efe4;   /* parchment (light bg / dark-mode text) */
  --ivory-dim:   #d8d0bd;
  --brass:       #c9a25e;   /* engraved brass accent */
  --brass-bright:#e3c179;
  --garnet:      #8c3040;   /* secondary accent, used sparingly */
  --mist:        #a29cc0;   /* muted lavender-grey secondary text */
  --line:        rgba(201,162,94,0.22);

  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Work Sans', 'Inter', system-ui, sans-serif;

  --radius: 3px;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
}

[data-theme="dark"] {
  --bg: var(--void);
  --bg-panel: var(--void-2);
  --text: var(--ivory);
  --text-dim: var(--mist);
  --accent: var(--brass-bright);
  --border: var(--line);
}
[data-theme="light"] {
  --bg: var(--ivory);
  --bg-panel: #ffffff;
  --text: #201c2d;
  --text-dim: #5c5670;
  --accent: var(--garnet);
  --border: rgba(140,48,64,0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  transition: background .3s ease, color .3s ease;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: .01em; margin: 0 0 .5em; }
a { color: inherit; text-decoration: none; }
.eyebrow {
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  opacity: .92;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Star field (hero background, SVG-driven, no images) ---------- */
.starfield {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.starfield svg { width: 100%; height: 100%; }
.starfield circle { fill: var(--brass); opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .starfield .twinkle { animation: twinkle 4s ease-in-out infinite; }
  .starfield .twinkle:nth-child(3n) { animation-duration: 6s; }
  .starfield .twinkle:nth-child(5n) { animation-duration: 5s; animation-delay: 1.2s; }
}
@keyframes twinkle { 0%,100% { opacity: .15; } 50% { opacity: .8; } }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; gap: 20px; flex-wrap: nowrap;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.5rem; flex-shrink: 0; white-space: nowrap; }
.brand .glyph { color: var(--accent); line-height: 1; display: inline-flex; }

/* Kept for admin-added custom quicklinks (Menu Builder → "quick-nav
   button"); the default Coven+/Sanctum links now live in the main
   nav's Community dropdown instead of these, so everything shares one
   consistent shape language (rectangles, not circles). */
.quicklinks { display: flex; gap: 10px; }
.quicklink-btn {
  font-size: .78rem; letter-spacing: .04em; padding: 7px 16px; white-space: nowrap;
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-dim); transition: all .2s ease;
}
.quicklink-btn:hover { color: var(--accent); border-color: var(--accent); }

/* Primary nav: a short, fixed row of links, single line, never wraps
   (a wrapped nav sibling makes a flex-centered logo drift toward the
   vertical middle of the wrapped block — the bug a longer nav caused
   before). Anything beyond the primary set lives in the "More" panel
   below, using the exact same button/panel on desktop and mobile. */
.primary-nav { display: flex; align-items: center; gap: 20px; min-width: 0; flex-shrink: 1; overflow: hidden; }
.primary-nav a.nav-link {
  font-size: .87rem; font-weight: 500; color: var(--text-dim); white-space: nowrap;
  padding: 6px 2px; border-bottom: 1px solid transparent;
}
.primary-nav a.nav-link:hover { color: var(--text); border-color: var(--accent); }
.nav-link-label, .more-link-label { cursor: default; color: var(--text-dim); opacity: .75; }
.nav-link-label:hover { color: var(--text-dim); border-color: transparent; }
.more-link-label:hover { background: none; color: var(--text-dim); }

/* ---------- More button + panel (shared by desktop & mobile) ---------- */
.more-menu { flex-shrink: 0; }
.more-btn {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: transparent; color: var(--text-dim); font-family: var(--font-body);
  padding: 8px 14px; font-size: .85rem; font-weight: 500; transition: all .2s ease;
}
.more-btn:hover, body.more-menu-open .more-btn { color: var(--accent); border-color: var(--accent); }
.more-btn .chevron { width: 6px; height: 6px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
body.more-menu-open .more-btn .chevron { transform: rotate(225deg); }

/* Positioned via JS against whichever trigger was actually clicked
   (see includes/header.php's script) — a static CSS offset only ever
   looked right when the button happened to sit in one specific spot.
   position:fixed here (not absolute) so the JS-set top/left are in
   viewport coordinates, matching what getBoundingClientRect() returns.
   display:none is the unconditional default — no transform-based
   hiding, no !important, nothing that can leave it visibly "stuck"
   if something else about the page state goes sideways (e.g. a
   mobile browser restoring this page from its back-forward cache
   with the open class still applied from before the user navigated
   away — see the pageshow listener in header.php's script, which
   exists specifically to reset this on restore). */
.more-panel {
  display: none; position: fixed; width: 260px; max-height: 80vh; overflow-y: auto;
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px; z-index: 61;
}
body.more-menu-open .more-panel { display: block; }
.more-item { margin-bottom: 2px; }
.more-link { display: flex; align-items: center; min-height: 40px; padding: 6px 10px; font-size: .9rem; color: var(--text); border-radius: 3px; }
.more-link:hover { background: var(--border); color: var(--accent); }
.more-sublist { display: flex; flex-direction: column; padding-left: 18px; }
.more-sublist a { display: flex; align-items: center; min-height: 36px; padding: 4px 10px; font-size: .83rem; color: var(--text-dim); border-radius: 3px; }
.more-sublist a:hover { background: var(--border); color: var(--accent); }
.is-primary-dupe { display: none; } /* only relevant on desktop — see breakpoint below, which un-hides it on mobile */
.more-panel-footer { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); }

.more-backdrop {
  position: fixed; inset: 0; z-index: 55; background: transparent;
  display: none;
}
body.more-menu-open .more-backdrop { display: block; }

.desktop-only { display: inline-block; }
.mobile-only { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.theme-toggle, .lang-switch summary {
  cursor: pointer; border: 1px solid var(--border); border-radius: 999px;
  padding: 0 12px; height: 36px; font-size: .78rem; color: var(--text-dim); list-style: none;
  display: flex; align-items: center; box-sizing: border-box; background: transparent;
}
.more-btn { height: 36px; box-sizing: border-box; }
.theme-toggle .icon { margin: 0; }
[data-theme="dark"] .theme-icon-light, [data-theme="light"] .theme-icon-dark { display: none; }
.lang-switch { position: relative; }
.lang-switch[open] summary { color: var(--accent); }
.lang-switch .menu {
  position: absolute; right: 0; top: 120%; background: var(--bg-panel);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 6px;
  box-shadow: var(--shadow); min-width: 140px; z-index: 10;
}
.lang-switch .menu a { display: block; padding: 7px 10px; font-size: .84rem; border-radius: 2px; }
.lang-switch .menu a:hover { background: var(--border); }

@media (max-width: 880px) {
  .primary-nav { display: none; }
  .desktop-only { display: none; }
  .mobile-only { display: block; }
  .is-primary-dupe { display: block; } /* on mobile the panel is the ONLY nav, so it needs everything, including items also marked primary */

  /* The floating pill (below) is the mobile nav entry point now —
     drop the top-bar "More" button so mobile isn't showing the same
     trigger twice. Top bar becomes just logo + quick controls, the
     way a native app's top bar usually stays minimal. */
  .more-menu { display: none; }

  /* On mobile the panel becomes a bottom sheet instead of a dropdown
     — reads more natural triggered from a bottom-anchored pill than
     popping up under a header button would. Only changes WHERE it
     appears (position/shape); the base rule above still owns WHETHER
     it appears (display:none/block), so there's exactly one on/off
     switch instead of two mechanisms that could disagree. */
  .more-panel {
    left: 0; right: 0; bottom: 0; top: auto; width: auto;
    border-radius: 20px 20px 0 0; max-height: 78vh;
    border-left: none; border-right: none; border-bottom: none;
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  }
  .more-backdrop { background: rgba(0,0,0,.5); }

  .site-header .bar { padding: 14px 0; }
  .brand { font-size: 1.3rem; }
  .header-actions { gap: 8px; }

  /* Room for the floating pill nav so it never covers page content or
     footer links; includes the iOS home-indicator safe area. */
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

@media (min-width: 881px) {
  .app-tabbar { display: none !important; }
}

/* ---------- Floating icon-only pill nav (mobile only) ---------- */
.app-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; justify-content: center;
  padding: 0 16px calc(14px + env(safe-area-inset-bottom, 0px));
  pointer-events: none; /* only the pill itself should catch taps, not the full-width strip */
}
.app-tabbar-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 4px;
  background: color-mix(in srgb, var(--bg-panel) 94%, transparent);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.tab-item {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  color: var(--text-dim); border: none; background: none; cursor: pointer;
  flex-shrink: 0; transition: background .2s ease, color .2s ease;
}
.tab-item .tab-icon { color: inherit; }
.tab-item.is-active, .tab-item[aria-expanded="true"] {
  color: var(--void); background: var(--accent);
}
[data-theme="light"] .tab-item.is-active, [data-theme="light"] .tab-item[aria-expanded="true"] { color: var(--ivory); }
.tab-item:active { transform: scale(.92); }

@media (max-width: 380px) {
  .brand { font-size: 1.1rem; }
  .brand .icon { width: 20px; height: 20px; }
  .header-actions { gap: 5px; }
  .lang-switch summary { padding: 5px 8px; }
  .tab-item { width: 42px; height: 42px; }
}

.btn {
  display: inline-block; padding: 10px 22px; border-radius: 2px;
  font-size: .85rem; font-weight: 600; letter-spacing: .02em;
  border: 1.5px solid var(--accent); transition: all .2s ease;
  background: transparent; /* default for any variant that doesn't set its own —
    without this, a real <button> (not <a>) falls back to the browser's native
    button chrome (usually a light/white box) instead of staying transparent */
}
.btn-primary { background: var(--accent); color: var(--void); }
.btn-primary:hover { background: var(--brass-bright); border-color: var(--brass-bright); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: color-mix(in srgb, var(--accent) 55%, transparent); font-weight: 600; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(201,162,94,.08); }
[data-theme="light"] .btn-ghost { color: var(--text); }

/* Sign-in/account button — stays visible in the header on mobile too
   (it was previously desktop-only, hidden entirely on phones with no
   equally-visible replacement — the "disappeared" bug). Shrinks to an
   icon-only circle on narrow screens instead of disappearing. */
.account-btn { display: flex; align-items: center; gap: 7px; }
.account-btn-icon { display: flex; }
@media (max-width: 880px) {
  .account-btn { padding: 0; width: 36px; height: 36px; border-radius: 50%; justify-content: center; }
  .account-btn-label { display: none; }
}


/* ---------- Hero ---------- */
.hero { position: relative; background: var(--void); color: var(--ivory); overflow: hidden; }
.hero .container { position: relative; z-index: 2; padding: 130px 24px 70px; text-align: center; }
.hero .eyebrow { display: block; margin-bottom: 1.4em; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 780px; margin: 0 auto .55em; }
.hero p.lede { color: var(--ivory-dim); max-width: 580px; margin: 0 auto 2.6em; font-size: 1.08rem; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Zodiac wheel quick-nav (signature element) ---------- */
.zodiac-wheel-label { text-align: center; margin: 3em 0 1.1em; }
.zodiac-wheel { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.zodiac-chip {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--brass-bright); transition: all .25s ease; background: rgba(201,162,94,.05);
}
.zodiac-chip .icon { width: 20px; height: 20px; }
.zodiac-chip:hover { border-color: var(--brass-bright); transform: translateY(-3px); background: rgba(201,162,94,.14); }

/* Fades the hero into the section below instead of an abrupt cut. */
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none; z-index: 1;
}

/* ---------- Sections / cards ---------- */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.4em; }
.section-head p { color: var(--text-dim); }
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(1,1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .icon { font-size: 1.6rem; color: var(--accent); margin-bottom: .5em; }
.icon { display: inline-block; vertical-align: -0.15em; }
.card .icon.icon { width: 26px; height: 26px; margin-bottom: .6em; color: var(--accent); }
.card h3 { font-size: 1.05rem; margin-bottom: .35em; }
.card p { color: var(--text-dim); font-size: .92rem; margin: 0; }

.divider {
  width: 100%; height: 1px; background: var(--border); border: none; margin: 0;
}

.site-footer { border-top: 1px solid var(--border); padding: 50px 0 30px; color: var(--text-dim); font-size: .85rem; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.site-footer a:hover { color: var(--accent); }

/* ---------- Forms (shared across login/settings/admin) ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .82rem; color: var(--text-dim); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 10px 12px; border-radius: 2px; border: 1px solid var(--border);
  background: var(--bg-panel); color: var(--text); font-family: var(--font-body); font-size: .92rem;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.panel { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.flash { padding: 12px 16px; border-radius: 2px; margin-bottom: 18px; font-size: .88rem; }
.flash-error { background: rgba(140,48,64,.15); border: 1px solid var(--garnet); color: var(--garnet); }
.flash-success { background: rgba(120,150,110,.15); border: 1px solid #6b8f5f; color: #6b8f5f; }

/* ---------- Admin ---------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 230px; background: var(--void); color: var(--ivory); padding: 24px 16px; flex-shrink: 0; }
.admin-sidebar a { display: block; padding: 9px 12px; border-radius: 3px; font-size: .87rem; color: var(--mist); margin-bottom: 2px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(201,162,94,.15); color: var(--brass-bright); }
.admin-main { flex: 1; padding: 32px 40px; background: var(--bg); }
table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: .88rem; }
table.admin-table th { color: var(--text-dim); font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* =========================================================
   Motion — astrology-themed, restrained. All respect
   prefers-reduced-motion via the guard below.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {

  /* Orbital ring — a slow-rotating decorative zodiac wheel behind
     the hero headline. Reinforces the astrolabe motif without being
     a generic spinning-logo effect. */
  .orbit-ring { animation: orbit-spin 180s linear infinite; transform-origin: center; }
  .orbit-ring.reverse { animation-duration: 240s; animation-direction: reverse; }
  @keyframes orbit-spin { to { transform: rotate(360deg); } }

  /* Card entrance — a single gentle rise+fade the first time a card
     enters the viewport, triggered by the IntersectionObserver in
     footer.php. Never re-triggers, never loops. */
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }

  /* Moon icon — a slow breathing glow, appropriate for a "current
     phase" display; stays subtle so it doesn't read as a loading state. */
  .moon-glow { animation: moon-breathe 5s ease-in-out infinite; filter: drop-shadow(0 0 0 transparent); }
  @keyframes moon-breathe {
    0%, 100% { filter: drop-shadow(0 0 2px color-mix(in srgb, var(--accent) 40%, transparent)); }
    50% { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 55%, transparent)); }
  }

  /* Zodiac quick-nav chips — icons draw themselves in on first paint. */
  .zodiac-chip svg { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw-in 1.1s ease forwards; }
  @keyframes draw-in { to { stroke-dashoffset: 0; } }
}

.zodiac-chip { position: relative; overflow: hidden; }
.zodiac-chip::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brass-bright) 30%, transparent), transparent 70%);
  opacity: 0; transition: opacity .3s ease;
}
.zodiac-chip:hover::after { opacity: 1; }

.card { position: relative; }
.card:hover { box-shadow: 0 12px 34px rgba(0,0,0,0.28); }

/* Simple orbiting-dot spinner for async actions (buttons mid-request, etc). */
.spinner-orbit { display: inline-block; width: 16px; height: 16px; position: relative; }
.spinner-orbit::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent) 25%, transparent); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Horoscope cards (horoscope.php/whoroscope.php/mhoroscope.php +
   assets/js/horoscope-autogen.js). Never had rules of its own before,
   so every icon+text row rendered with the browser's bare inline-SVG
   defaults — no baseline alignment, no gap, wrapping wherever the
   glyph happened to break. */
.horoscope-body { display: flex; flex-direction: column; gap: .6em; }
.horoscope-content { color: var(--text-dim); font-size: .92rem; margin: 0; }
.horoscope-sections { display: flex; flex-direction: column; gap: .45em; margin-top: .2em; }
.horoscope-section {
  display: flex; align-items: flex-start; gap: .5em;
  font-size: .84rem; color: var(--text-dim); line-height: 1.4;
}
.horoscope-section-icon,
.horoscope-lucky svg,
.horoscope-scores svg {
  flex: none; width: 14px; height: 14px; margin-top: .15em; color: var(--accent);
}
.horoscope-section strong { color: var(--text); font-weight: 600; }

.horoscope-lucky {
  display: flex; flex-wrap: wrap; gap: .5em 1.2em; margin-top: .3em;
  font-size: .82rem; color: var(--text-dim);
}
.horoscope-lucky span { display: inline-flex; align-items: center; gap: .4em; }
.horoscope-lucky strong { color: var(--accent); }

.horoscope-scores {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35em .5em;
  font-size: .82rem; color: var(--text-dim); margin: .3em 0 0;
}
.horoscope-scores svg { margin: 0; }

.horoscope-placeholder {
  display: flex; align-items: center; gap: .6em;
  color: var(--text-dim); font-size: .88rem; margin: 0 0 .6em;
}
.skeleton-line {
  display: block; height: .8em; border-radius: 4px; margin-top: .5em;
  background: color-mix(in srgb, var(--border) 60%, transparent);
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}
.skeleton-line.short { width: 60%; }
@keyframes skeleton-pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

.horoscope-unpublished { color: var(--text-dim); font-size: .88rem; margin: 0; }
.horoscope-profile-link {
  display: inline-block; margin-top: 1em; font-size: .84rem;
  color: var(--accent); text-decoration: none;
}
.horoscope-profile-link:hover { text-decoration: underline; }
.horoscope-card.just-generated .horoscope-body { animation: fade-in .4s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Planetary Hours (moon-center.php). Day/Night Hours tables + status text. */
.ph-place { position: relative; }
.ph-loading { display: flex; align-items: center; gap: .6em; justify-content: center; color: var(--text-dim); padding: 1.5em 0; }
.ph-error { text-align: center; color: var(--garnet); padding: 1em 0; }
.ph-summary { text-align: center; color: var(--text-dim); font-size: .9rem; margin-bottom: 1.2em; }
.ph-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2em; max-width: 900px; margin: 0 auto; }
.ph-table h3 { margin-bottom: .8em; font-size: 1rem; text-align: center; }
.ph-table table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.ph-table th { text-align: left; color: var(--text-dim); font-weight: 600; padding: 0 .4em .5em; border-bottom: 1px solid var(--border); }
.ph-table td { padding: .4em; border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent); }
.ph-table td:first-child { color: var(--text-dim); width: 1.6em; }
@media (max-width: 680px) { .ph-tables { grid-template-columns: 1fr; } }

