/* Redesign layer: one shared look for every Iridex site (flat panels, IBM Plex Sans,
   small radii, no glass, glow, grid backdrop or gradient text). Loaded after the
   site stylesheet so it wins; the token overrides re-theme everything at once. */
:root {
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #09090b;
  --bg-subtle: #0d0d10;
  --surface: #101013;
  --surface-alt: #151519;
  --surface-hi: #1a1a1f;
  --surface-solid: #101013;
  --border: #222227;
  --border-hi: #303037;
  --text-muted: #9d9da6;
  --radius: 12px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 14px;
}
body { font-family: var(--font); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.03em; }
.bg-grid, .bg-grid::after { display: none !important; }
* { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.site-header { background: var(--bg) !important; }
.btn, .btn-sm, .btn-lg { border-radius: 8px; }
.site-footer { border-top: 1px solid var(--border); }

/* Iridex sites strip, above every footer */
.sites-strip { width: 100%; max-width: 1200px; margin: 0 auto; padding: 48px 24px 0; }
.sites-strip h4 { margin: 0 0 14px; font: 500 12px var(--font-mono); color: var(--text-dim); letter-spacing: .04em; text-transform: uppercase; }
.sites-strip .g { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.sites-strip a { background: var(--bg); padding: 18px 20px; display: block; transition: background-color .2s; text-decoration: none; color: var(--text); }
.sites-strip a:hover, .sites-strip a.cur { background: var(--surface); }
.sites-strip b { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; }
.sites-strip b::after { content: "\2197"; color: var(--text-dim); font-weight: 400; transition: transform .2s; }
.sites-strip a:hover b::after { transform: translate(2px, -2px); }
.sites-strip a.cur b::after { content: "\25CF"; font-size: 10px; }
.sites-strip small { display: block; color: var(--text-muted); font-size: 13px; margin-top: 4px; line-height: 1.4; }
.hero-mark { filter: none; }
.badge { border-radius: 6px !important; }
.pulse-dot, .pulse { animation: none !important; box-shadow: none !important; }

/* Space: the sites strip never touches the content above or the footer below */
.sites-strip { margin-top: 112px; margin-bottom: 56px; padding-top: 0; }
.site-footer { margin-top: 0; }

/* Navigation dropdowns (Product, Community, Resources) */
.site-header .nav-links { align-items: center; }
.nav-dd { position: relative; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: inherit; font: inherit; font-size: var(--text-md); cursor: pointer; padding: 0; }
.nav-dd-btn:hover, .nav-dd:focus-within > .nav-dd-btn { color: var(--text-bright); }
.nav-caret { width: 9px; height: 9px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .2s; }
.nav-dd:hover .nav-caret, .nav-dd.is-open .nav-caret { transform: rotate(180deg); }
.nav-dd-menu { display: none; position: absolute; top: calc(100% + 12px); left: -14px; min-width: 260px; padding: 6px; background: var(--surface-solid); border: 1px solid var(--border-hi); border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); z-index: 60; }
.nav-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-dd:hover > .nav-dd-menu, .nav-dd:focus-within > .nav-dd-menu, .nav-dd.is-open > .nav-dd-menu { display: block; animation: ddpop .16s ease-out both; }
@keyframes ddpop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav-dd-menu a { display: block; padding: 9px 11px; border-radius: 6px; font-size: 14px; color: var(--text); width: auto; }
.nav-dd-menu a::after { display: none !important; }
.nav-dd-menu a small { display: block; color: var(--text-muted); font-size: 12.5px; line-height: 1.4; margin-top: 1px; }
.nav-dd-menu a:hover, .nav-dd-menu a.active { background: var(--surface-alt); color: var(--text-bright); }
@media (max-width: 820px) {
  .nav-dd-btn { width: 100%; justify-content: space-between; padding: 11px 10px; }
  .nav-dd-menu { position: static; display: none; min-width: 0; padding: 0 0 6px 12px; background: none; border: 0; box-shadow: none; }
  .nav-dd-menu::before { display: none; }
  .nav-dd:hover > .nav-dd-menu { display: none; }
  .nav-dd.is-open > .nav-dd-menu { display: block; }
}

/* Shared top navigation for the dashboard, host, wiki, status and support */
.rd-topbar { position: sticky; top: 0; z-index: 70; background: var(--bg); border-bottom: 1px solid var(--border); }
.rd-topbar-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 28px; }
.rd-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--text-bright); text-decoration: none; }
.rd-topbar-r { margin-left: auto; display: flex; gap: 8px; }
.rd-btn { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border-hi); font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none; transition: background-color .2s, border-color .2s; }
.rd-btn:hover { background: var(--surface-alt); }
.nav-static { display: flex; align-items: center; gap: 4px; font-size: var(--text-md); color: var(--text-muted); }
.site-header .nav-static { margin-right: auto; margin-left: var(--space-5); }
.nav-static .nav-dd-btn, .nav-static .nav-plain { padding: 8px 12px; border-radius: 6px; text-decoration: none; color: inherit; }
.nav-static .nav-dd-btn:hover, .nav-static .nav-plain:hover, .nav-static .nav-dd:focus-within > .nav-dd-btn { color: var(--text-bright); background: var(--surface-alt); }
@media (max-width: 900px) {
  .nav-static { overflow-x: auto; scrollbar-width: none; flex: 1; }
  .nav-static::-webkit-scrollbar { display: none; }
  .nav-static .nav-dd-menu { position: fixed; top: 64px; left: 12px; right: 12px; min-width: 0; }
  .rd-topbar-in { gap: 12px; padding: 0 14px; }
  .rd-topbar-r { display: none; }
}
/* Dashboard server list: flat cards */
.server-card { border-radius: 14px; transition: border-color .25s, transform .25s; }
.server-card:hover { transform: translateY(-2px); }

/* no underlines anywhere in the navigation */
.nav-links a, .nav-dd-menu a, .nav-static a, .rd-topbar a, .rd-brand { text-decoration: none !important; }
.nav-dd-menu a::after, .nav-static a::after { display: none !important; content: none !important; }
.nav-static .nav-plain { font-size: var(--text-md); }
.nav-static .nav-plain:hover { text-decoration: none; }

/* Hub pages (wiki, support, status): large tight headings, flat hairline cards */
.hub-header h1, .support-hero h1, .status-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; }
.hub-header p, .support-hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 560px; }
.hub-header, .support-hero, .status-hero { padding-top: 72px; padding-bottom: 40px; }
.portal-card, .support-card, .article-card { border-radius: 14px; background: var(--surface); border: 1px solid var(--border); transition: border-color .25s, transform .25s, background-color .25s; }
.portal-card:hover, .support-card:hover, .article-card:hover { border-color: var(--border-hi); transform: translateY(-2px); background: var(--surface-alt); }
.portal-card h2 { letter-spacing: -0.02em; }
.hub-kicker { font-family: var(--font-mono); color: var(--text-dim); }
.status-banner { border-radius: 14px; }

.rd-sub { margin-left: 2px; font: 500 12px var(--font-mono); color: var(--text-dim); }
.support-header, .status-header { display: none; }

/* the page you are on is clearly marked in the navigation (no underline: a bright label on a soft chip) */
.site-header .nav-links > li > a.active, .nav-static a.active, .nav-plain.active { color: var(--text-bright) !important; background: var(--surface-alt); border-radius: 6px; }
.site-header .nav-links > li > a { padding: 6px 10px; border-radius: 6px; }
.site-header .nav-dd-btn { padding: 6px 10px; border-radius: 6px; }
.nav-dd.has-active > .nav-dd-btn { color: var(--text-bright); background: var(--surface-alt); border-radius: 6px; padding: 6px 10px; }
.nav-dd-menu a.active { background: var(--surface-alt); color: var(--text-bright); }
.nav-dd-menu a.active::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--text-bright); margin-right: 8px; vertical-align: middle; }

/* the shared top bar replaces each hub's own mini-header */
.hub-topbar { display: none; }

.category-nav a { border-radius: 8px !important; }

/* theme toggle sits right, next to the account menu */
.site-header .nav-static { margin-right: 0; }
.site-header .theme-toggle { margin-left: auto; margin-right: 8px; }
.site-header #navUser { margin-left: 0; }

/* image placeholders: the box is reserved (width/height attributes) and pulses until the picture arrives */
img.img-wait { background: var(--surface-alt); border-radius: 8px; animation: imgwait 1.2s ease-in-out infinite; }
@keyframes imgwait { 50% { opacity: .55; } }

/* wiki: the sidebar starts below the shared top bar and ends at the bottom of the window, so its footer
   (language switcher) is always visible instead of hanging below the fold */
body:has(.rd-topbar) .sidebar { top: 61px; height: calc(100vh - 61px); }
body:has(.rd-topbar) .sidebar-footer { position: sticky; bottom: 0; background: var(--bg-subtle); padding-bottom: .4rem; }
@media (max-width: 980px) { body:has(.rd-topbar) .sidebar { top: auto; height: auto; } body:has(.rd-topbar) .sidebar-footer { position: static; } }

/* top bar: logo and Home start at the far left; the wiki sidebar no longer repeats the brand */
.rd-topbar-in { max-width: none; padding: 0 24px; }
body:has(.rd-topbar) .sidebar-brand { display: none; }

/* status pill and other leftover pills */
.status-banner, .status-pill, .status-badge, .support-badge { border-radius: 10px !important; }

/* audit fixes: cookie notice uses the site font; label chips are not pills */
.ick p { font-family: var(--font) !important; }
.kicker, .eyebrow, .hero-eyebrow, .section-kicker { border-radius: 8px !important; }

/* the hidden attribute must always win: buttons set display:inline-flex, which was keeping
   "Customise" visible on other people's profiles even though the script left it hidden */
[hidden], .btn[hidden], .profile-customise-btn[hidden] { display: none !important; }

/* match the homepage's type: semibold, tightly tracked headings instead of heavy 800 weights, and 14px cards */
h1, h2, h3, h4, .card h3, .modal h3 { font-weight: 600; }
h1 { letter-spacing: -0.04em; line-height: 1.08; }
h2 { letter-spacing: -0.035em; }
.card, .settings-group, .portal-card, .plan-card, .support-card { border-radius: 14px; }
.card { background: var(--surface); border-color: var(--border); }
strong, b { font-weight: 600; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
/* decorative glows off */
.bg-grid,
.bg-grid::after,
.congrats-card,
.cta-card,
.discord-card,
.hero-mark::before,
.hero::before,
.plan-card.is-supporter,
:root[data-theme="light"] body,
body { background-image: none !important; }
/* pills to small radius */
.acct-email-badge,
.acct-invoice-status,
.category-pill,
.congrats-eyebrow,
.feature-tag,
.footer-status,
.placeholder-info-btn,
.plan-chip,
.plan-flag { border-radius: 8px !important; }
