/* status.iridex.me — page-specific rules only; everything else (tokens,
   resets, .container, .btn) comes from base.css, copied straight from
   homepage/ so this page matches the rest of the site without pulling in
   site.css's much larger, mostly-irrelevant rule set. */

body { background: var(--bg); }

/* Same fixed engineering-grid backdrop as the other sites (homepage/
   dashboard/wiki's .bg-grid in site.css) — reproduced here directly since
   this page intentionally doesn't pull in site.css's much larger rule set. */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--grid-lines);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 78%);
}
.bg-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% -8%, rgba(139, 92, 246, 0.08), transparent 70%);
}
.container { position: relative; z-index: 1; }

.status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
}
.status-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--text-bright);
  text-decoration: none;
}
.status-brand img { width: 28px; height: 28px; }

.status-hero {
  text-align: center;
  padding: var(--space-8) 0 var(--space-7);
}
.status-hero h1 { margin: 0 0 var(--space-3); font-size: var(--text-3xl); }

/* Shaped and sized like the site's own .btn (base.css) — same radius,
   border, mono font and hover lift — instead of the fully-rounded pill it
   used to be, colored per state rather than acting as a real button. */
.status-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hi);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--text-md);
  font-weight: 600;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.status-banner:hover { transform: translateY(-2px); }
.status-banner .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-dim); flex: none; }
.status-banner.is-up {
  border-color: rgba(125, 211, 160, 0.4);
  background: rgba(125, 211, 160, 0.08);
  color: var(--success);
  box-shadow: 0 0 0 1px rgba(125, 211, 160, 0.12), 0 8px 24px -12px rgba(125, 211, 160, 0.35);
}
.status-banner.is-up .dot { background: var(--success); animation: status-pulse-up 2.4s infinite; }
.status-banner.is-down {
  border-color: rgba(229, 72, 77, 0.4);
  background: rgba(229, 72, 77, 0.08);
  color: var(--danger);
  box-shadow: 0 0 0 1px rgba(229, 72, 77, 0.12), 0 8px 24px -12px rgba(229, 72, 77, 0.35);
}
.status-banner.is-down .dot { background: var(--danger); animation: status-pulse-down 2.4s infinite; }
@keyframes status-pulse-up {
  0% { box-shadow: 0 0 0 0 rgba(125, 211, 160, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(125, 211, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(125, 211, 160, 0); }
}
@keyframes status-pulse-down {
  0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(229, 72, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); }
}

.status-list {
  max-width: 640px;
  margin: 0 auto var(--space-8);
  display: grid;
  gap: 10px;
}
.status-row {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.18s var(--ease-out), transform 0.18s var(--ease-out), background-color 0.18s var(--ease-out);
}
.status-row:hover { border-color: var(--border-hi); background: var(--surface-alt); }
.status-row-top { display: flex; align-items: center; gap: 12px; }
.status-row .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--text-dim); }
.status-row .dot.is-up { background: var(--success); box-shadow: 0 0 0 3px rgba(125, 211, 160, 0.18); }
.status-row .dot.is-down { background: var(--danger); box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.18); }
.status-row-name { flex: 1; font-size: var(--text-md); font-weight: 500; }
.status-row-state { font-size: var(--text-sm); font-weight: 600; color: var(--text-dim); }
.status-row-state.is-up { color: var(--success); }
.status-row-state.is-down { color: var(--danger); }

/* Uptime history bar — one tick per day, oldest to newest. Colors mirror
   the site's existing status vocabulary (--success/--danger) rather than
   Discord's own palette; "no-data" days (before the cron started logging,
   or a system added since) stay a neutral gray instead of implying either
   state. */
.status-bar {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 28px;
  margin-top: 12px;
}
.status-bar-tick {
  flex: 1;
  height: 100%;
  border-radius: 2px;
  background: var(--surface-hi);
  transition: transform 0.12s var(--ease-out), opacity 0.12s var(--ease-out);
  cursor: default;
}
.status-bar-tick:hover { transform: scaleY(1.15); opacity: 0.85; }
.status-bar-tick.up { background: var(--success); }
.status-bar-tick.partial { background: var(--warning); }
.status-bar-tick.down { background: var(--danger); }
.status-bar-tick.no-data { background: var(--surface-hi); }
.status-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: var(--text-xs);
  color: var(--text-dim);
}

/* Iridex-themed tooltip for the uptime ticks (status.js), replacing the
   browser's own plain title="" bubble — positioned and shown/hidden in JS,
   styled here to match the site's card/surface language instead of the OS
   default. */
.status-tip {
  position: absolute;
  z-index: 100;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hi);
  background: var(--surface-solid);
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s var(--ease-out), transform 0.12s var(--ease-out);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(139, 92, 246, 0.15);
}
.status-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--surface-solid);
}
.status-tip.is-visible { opacity: 1; transform: translateY(0); }

.status-section { max-width: 640px; margin: 0 auto var(--space-8); }
.status-section h2 { font-size: var(--text-xl); margin: 0 0 var(--space-4); }

.status-incident-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  transition: border-color 0.18s var(--ease-out), background-color 0.18s var(--ease-out);
}
.status-incident-card:hover { border-color: var(--border-hi); background: var(--surface-alt); }
.status-incident-card h3 { margin: 0 0 var(--space-3); font-size: var(--text-md); }
.status-incident-timeline { display: grid; gap: var(--space-3); }
.status-incident-update {
  border-left: 2px solid var(--border-hi);
  padding-left: 12px;
}
.status-incident-update p { margin: 6px 0 4px; font-size: var(--text-sm); color: var(--text-muted); }
.status-incident-update time { font-size: var(--text-xs); color: var(--text-dim); }
.status-incident-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--surface-alt);
  color: var(--text-muted);
}
.status-badge-investigating { color: var(--danger); }
.status-badge-identified { color: var(--warning); }
.status-badge-monitoring { color: var(--info); }
.status-badge-resolved { color: var(--success); }

.status-meta {
  text-align: center;
  color: var(--text-dim);
  font-size: var(--text-sm);
  padding-bottom: var(--space-8);
}

/* Same site-footer language as homepage/dashboard/wiki (site.css), trimmed
   to two columns and reproduced here directly for the same reason as
   .bg-grid above — this page skips site.css's much larger rule set. */
.site-footer {
  margin-top: auto; /* sticky footer */
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.012);
}
.footer-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
  padding: var(--space-10) var(--space-6) var(--space-6);
}
.footer-brand-row { display: flex; align-items: center; gap: 9px; }
.footer-brand-row .logo-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0b0b0c;
  border: 1px solid var(--border-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-brand-row .logo-badge img { width: 14px; }
.footer-brand strong { font-family: var(--font-mono); font-size: var(--text-lg); color: var(--text-bright); }
.footer-brand p { color: var(--text-muted); margin-top: var(--space-3); max-width: 34ch; font-size: var(--text-md); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.footer-col h4 {
  font-family: var(--font-mono);
  margin: 0 0 var(--space-2);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 500;
}
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: var(--text-md); padding: 3px 0; transition: color 0.16s var(--ease-out); }
.footer-col a:hover { color: var(--text-bright); }
.footer-disclaimer {
  max-width: 1160px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-6) var(--space-8);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.status-skeleton {
  max-width: 640px;
  margin: 0 auto var(--space-8);
  display: grid;
  gap: 10px;
}
/* .status-skeleton's own `display: grid` above otherwise beats the
   browser's default [hidden] { display: none } — same specificity, later
   in the cascade — so the skeleton stayed visible under the real rows once
   they loaded. */
.status-skeleton[hidden], .status-list[hidden] { display: none; }
.status-skeleton-row {
  height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-alt) 37%, var(--surface) 63%);
  background-size: 400% 100%;
  animation: status-shimmer 1.4s ease infinite;
}
@keyframes status-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* Contact address in the footer brand block. */
.footer-email { display: inline-block; margin-top: var(--space-3); font-size: var(--text-sm); color: var(--text-muted); text-decoration: none; transition: color 0.16s var(--ease-out); }
.footer-email:hover { color: var(--text-bright, var(--text)); text-decoration: underline; }
.footer-email + .footer-status { margin-top: var(--space-2); }


/* =====================================================================
   IRIDEX POLISH LAYER
   Iridex's own palette — near-black ground, white accent, colour reserved
   for the few places that already earn it (Supporter, previews, status).
   What this layer adds is depth and rhythm, not hue: surfaces that catch
   light at their top edge, a glass header, heavier headings, and clear
   focus and hover states. A finishing pass over the existing rules, so
   every component keeps its structure.
   ===================================================================== */
:root {
  --edge: rgba(255, 255, 255, 0.09);
  --edge-hi: rgba(255, 255, 255, 0.2);
  --card-bg: #0c0c0f;

  --shadow-near: 0 1px 0 rgba(255, 255, 255, 0.045) inset;
  --shadow-drop: 0 30px 80px -40px rgba(0, 0, 0, 0.95);
  --shadow-bloom: 0 0 60px -24px rgba(255, 255, 255, 0.1);
}

/* ---- Ground: one soft light overhead, no colour cast ---------------- */
body {
  background:
    radial-gradient(95% 55% at 50% -12%, rgba(255, 255, 255, 0.045), transparent 62%),
    var(--bg);
  background-attachment: fixed;
}

/* ---- Type ---------------------------------------------------------- */
h1, .hero h1 { font-weight: 800; letter-spacing: -0.035em; }
h2, .section-title, .page-head h1 { font-weight: 800; letter-spacing: -0.03em; }
h3 { letter-spacing: -0.015em; }

/* ---- Surfaces ------------------------------------------------------ */
.card,
.feature-detail,
.step-card,
.plan-card,
.pt-card,
.link-card,
.discord-card,
.cta-card,
.settings-panel,
.plan-note,
.report-cta,
.hub-section,
.portal-card,
.stat-strip,
.app-download-card,
.lb-columns > div,
.op-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)), var(--card-bg);
  border-color: var(--edge);
  box-shadow: var(--shadow-near), var(--shadow-drop);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.card:hover,
.feature-detail:hover,
.step-card:hover,
.link-card:hover,
.pt-card:hover,
.portal-card:hover,
.app-download-card:hover {
  border-color: var(--edge-hi);
  box-shadow: var(--shadow-near), var(--shadow-drop), var(--shadow-bloom);
}
/* The closing call to action and the community card carry the page, so they
   sit a step brighter than the cards around them. */
.cta-card, .discord-card { border-color: var(--edge-hi); }

/* ---- Buttons: Iridex's own light primary --------------------------- */
.btn-primary, .btn-dark {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 12px 28px -16px rgba(0, 0, 0, 0.95);
}
.btn-primary:hover, .btn-dark:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 16px 34px -16px rgba(0, 0, 0, 1);
}
.btn-light, .btn-outline { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.12); }
.btn-light:hover, .btn-outline:hover {
  border-color: var(--edge-hi);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-bright);
}
.btn { letter-spacing: 0.01em; }

/* ---- Header -------------------------------------------------------- */
.site-header {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
}
.nav-links a:hover { color: var(--text-bright); }
.logo-badge { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 8px 20px -12px rgba(0, 0, 0, 0.9); }

/* ---- Small type ---------------------------------------------------- */
code {
  padding: 0.12em 0.4em;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.92em;
}
pre code { padding: 0; border: 0; background: none; }

/* Contact address in the footer's Legal column: dim grey at rest with a
   faint halo, lighting up on hover — the one spot of glow in the footer, so
   the address reads as an invitation rather than another link in the list. */
.footer-email,
.footer-col a.footer-email {
  display: inline-block;
  margin-top: var(--space-3);
  color: #7c7c86;
  font-size: var(--text-sm);
  text-decoration: none;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
  transition: color 0.22s var(--ease-out), text-shadow 0.22s var(--ease-out);
}
.footer-email:hover,
.footer-col a.footer-email:hover {
  color: var(--text-bright);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.45), 0 0 26px rgba(255, 255, 255, 0.22);
}
:root[data-theme="light"] .footer-email,
:root[data-theme="light"] .footer-col a.footer-email {
  color: #6b6b77;
  text-shadow: 0 0 14px rgba(15, 15, 25, 0.1);
}
:root[data-theme="light"] .footer-email:hover,
:root[data-theme="light"] .footer-col a.footer-email:hover {
  color: #15151c;
  text-shadow: 0 0 10px rgba(15, 15, 25, 0.28);
}

/* ---- Interaction --------------------------------------------------- */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
::selection { background: rgba(255, 255, 255, 0.22); color: var(--text-bright); }

/* ---- Scrollbar ----------------------------------------------------- */
* { scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.28); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---- Light theme --------------------------------------------------- */
:root[data-theme="light"] {
  --card-bg: #ffffff;
  --edge: rgba(15, 15, 20, 0.1);
  --edge-hi: rgba(15, 15, 20, 0.2);
  --shadow-drop: 0 18px 44px -28px rgba(15, 15, 25, 0.35);
  --shadow-near: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  --shadow-bloom: 0 0 50px -26px rgba(15, 15, 25, 0.35);
}
:root[data-theme="light"] body {
  background: radial-gradient(95% 55% at 50% -12%, rgba(15, 15, 25, 0.05), transparent 62%), var(--bg);
}
:root[data-theme="light"] .site-header { background: color-mix(in srgb, #fff 78%, transparent); }
:root[data-theme="light"] ::selection { background: rgba(15, 15, 25, 0.16); }

@media (prefers-reduced-motion: reduce) {
  .card, .feature-detail, .step-card, .link-card, .pt-card, .portal-card { transition: none; }
}

/* ---- Footer -------------------------------------------------------- */
/* A quiet slab rather than a continuation of the page: its own dark ground,
   a lit top edge, and one rhythm for every column. */
.site-footer {
  position: relative;
  border-top: 1px solid var(--edge);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)), #0a0a0d;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}
.footer-grid { padding: var(--space-12) var(--space-6) var(--space-8); gap: var(--space-10); }
.footer-brand p { line-height: 1.6; }
.footer-brand-row strong { letter-spacing: 0.02em; }

.footer-col h4 { font-size: 0.68rem; letter-spacing: 0.16em; color: var(--text-faint); margin-bottom: var(--space-3); }
.footer-col a {
  position: relative;
  font-size: var(--text-sm);
  padding: 4px 0;
}
/* A hairline grows in under a link on hover — enough feedback without
   shifting the layout. */
.footer-col a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  transition: right 0.22s var(--ease-out);
}
.footer-col a:hover::after { right: 0; }
.footer-email::after { display: none; }

/* Status pill: reads as a live indicator, not a stray line of text. */
.footer-status {
  gap: 8px;
  margin-top: var(--space-4);
  padding: 5px 11px 5px 9px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  width: fit-content;
}
.footer-status:hover { border-color: var(--edge-hi); color: var(--text); }
.status-dot.online { box-shadow: 0 0 0 3px rgba(125, 211, 160, 0.16); }
.status-dot.offline { box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.16); }

.footer-disclaimer { border-top-color: var(--edge); opacity: 0.85; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

:root[data-theme="light"] .site-footer {
  background: linear-gradient(180deg, rgba(15, 15, 25, 0.03), rgba(15, 15, 25, 0)), #f4f4f7;
}
:root[data-theme="light"] .site-footer::before { background: linear-gradient(90deg, transparent, rgba(15, 15, 25, 0.14), transparent); }

/* Page transition ---------------------------------------------------------
   Covers the viewport while a page loads and while navigating away, so a
   click reads as a transition instead of a blank flash. Kept short: a loader
   that outlasts its page is worse than none. */
.page-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 1;
  transition: opacity 0.3s ease;
}
.page-loader-overlay.is-done {
  opacity: 0;
  pointer-events: none;
}

.page-loader-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
}
.page-loader-mark svg {
  width: 26px;
  height: 26px;
  fill: var(--text);
  animation: loaderPulse 1.4s ease-in-out infinite;
}
/* The ring is a bordered circle with one edge coloured, spun. Cheaper than an
   SVG stroke animation and it matches the wordmark's diamond. */
.page-loader-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--border);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: loaderSpin 0.9s linear infinite;
}
/* Empty and takes no space until a caller passes a message (e.g. locale.js
   switching languages) — most page loads never show any text here. */
.page-loader-text {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 16px;
  white-space: nowrap;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.page-loader-text:empty { display: none; }

@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes loaderPulse {
  0%, 100% { opacity: 0.45; transform: scale(0.92); }
  50%      { opacity: 1;    transform: scale(1); }
}

/* Sits alone in its own strip below the disclaimer — every page's footer
   gets one, filled in by assets/js/locale.js so a new language is a one-line
   change there instead of an edit to every page. */
.lang-switch {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-8);
}
.lang-switch-widget { position: relative; display: inline-block; }
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 180px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  cursor: pointer;
}
.lang-switch-btn:hover,
.lang-switch-widget.is-open .lang-switch-btn { color: var(--text-bright); border-color: var(--border-hi); }
.lang-switch-current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-switch-btn svg {
  width: 11px;
  height: 11px;
  flex: none;
  transition: transform 0.15s var(--ease-out);
}
.lang-switch-widget.is-open .lang-switch-btn svg { transform: rotate(180deg); }
/* position: fixed and appended to <body> (not inside .lang-switch-widget)
   on purpose — left/top/bottom set from JS via the button's own
   getBoundingClientRect(). This is the one thing that survives opening the
   widget inside a scrolling container like the account modal's
   .acct-modal-body: an absolutely-positioned list there gets clipped the
   moment it crosses that container's edge, no matter the z-index. */
.lang-switch-list {
  position: fixed;
  /* Above .acct-modal (z-index: 300) — this list is meant to render on top
     of the account modal when opened from its Preferences row. */
  z-index: 320;
  width: max-content;
  max-width: 220px;
  max-height: 260px;
  overflow-y: auto;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--surface-solid);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.lang-switch-list[hidden] { display: none; }
.lang-switch-option {
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}
.lang-switch-option:hover { background: var(--surface-alt); color: var(--text-bright); }
.lang-switch-option.is-active { background: var(--surface-hi); color: var(--text-bright); }

/* Offer-once banner from assets/js/locale.js — bottom-anchored so it never
   pushes page content around or covers the header/nav. */
.lang-banner {
  position: fixed;
  left: 50%;
  bottom: var(--space-5);
  transform: translate(-50%, 16px);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: calc(100% - var(--space-6) * 2);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  /* --surface is a ~2.5% tint meant to sit over the page's own solid
     background — fine for a card in normal flow, but this banner floats
     fixed on top of whatever's scrolled behind it, so that tint alone read
     as see-through. --bg-subtle (same token the account modal uses) is
     genuinely opaque. */
  background: var(--bg-subtle);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.lang-banner.is-open { opacity: 1; transform: translate(-50%, 0); }
.lang-banner-text { color: var(--text-muted); font-size: var(--text-sm); white-space: nowrap; }
.lang-banner-text strong { color: var(--text-bright); }
.lang-banner-close {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.lang-banner-close:hover { color: var(--text-bright); }
@media (max-width: 640px) {
  .lang-banner { flex-wrap: wrap; justify-content: center; text-align: center; }
  .lang-banner-text { white-space: normal; }
}

/* support.iridex.me — page-specific rules on top of everything above. */

.support-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
}
.support-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--text-bright);
  text-decoration: none;
}
.support-brand img { width: 22px; }

.support-hero { text-align: center; padding: var(--space-10) 0 var(--space-8); }
.support-hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: var(--space-3); }
.support-hero p { color: var(--text-muted); max-width: 46ch; margin: 0 auto; }

.support-search { position: relative; max-width: 560px; margin: var(--space-8) auto 0; }
.support-search input {
  width: 100%;
  padding: 15px 20px 15px 48px;
  border-radius: var(--radius-lg, 14px);
  border: 1px solid var(--border-hi);
  background: var(--surface);
  color: var(--text-bright);
  font-size: var(--text-md);
}
.support-search input:focus { outline: none; border-color: var(--accent); }
.support-search svg {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-dim); pointer-events: none;
}
.support-search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: var(--bg-subtle); border: 1px solid var(--border-hi); border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden; text-align: left; z-index: 20;
}
.support-search-results[hidden] { display: none; }
.support-search-result {
  display: block; padding: var(--space-3) var(--space-4);
  color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}
.support-search-result:last-child { border-bottom: none; }
.support-search-result:hover { background: var(--surface-alt); color: var(--text-bright); }
.support-search-empty { padding: var(--space-4); color: var(--text-dim); font-size: var(--text-sm); text-align: center; }

.support-section { padding: var(--space-10) 0; }
.support-section h2 { font-family: var(--font-display); font-size: var(--text-xl); margin-bottom: var(--space-5); }

.support-issue-list { display: flex; flex-direction: column; gap: 2px; }
.support-issue {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-bright);
  text-decoration: none;
  transition: border-color 0.16s var(--ease-out), background 0.16s var(--ease-out);
}
.support-issue:hover { border-color: var(--border-hi); background: var(--surface-alt); }
.support-issue + .support-issue { margin-top: var(--space-3); }
.support-issue-title { font-weight: 500; }
.support-issue-arrow { color: var(--text-dim); }

.support-article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-4); }
.support-article-card {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  display: block;
}
.support-article-card:hover { border-color: var(--border-hi); background: var(--surface-alt); }
.support-article-card h3 { color: var(--text-bright); font-size: var(--text-md); margin-bottom: var(--space-2); }
.support-article-card p { color: var(--text-muted); font-size: var(--text-sm); margin: 0; }

/* Article pages */
.support-article { max-width: 720px; margin: 0 auto; padding: var(--space-10) 0 var(--space-14); }
.support-breadcrumb { color: var(--text-dim); font-size: var(--text-sm); margin-bottom: var(--space-6); }
.support-breadcrumb a { color: var(--text-dim); text-decoration: none; }
.support-breadcrumb a:hover { color: var(--text-bright); }
.support-article h1 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: var(--space-5); }
.support-article h2 { font-family: var(--font-display); font-size: var(--text-lg); margin: var(--space-8) 0 var(--space-3); }
.support-article p { color: var(--text-muted); line-height: 1.7; margin-bottom: var(--space-4); }
.support-article ol, .support-article ul { color: var(--text-muted); line-height: 1.7; margin: 0 0 var(--space-4); padding-left: 1.4em; }
.support-article li { margin-bottom: var(--space-2); }
.support-article code { background: var(--surface-alt); padding: 2px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.9em; }
.support-article-footer {
  margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: var(--text-sm);
}

