/*!
 * GTR Toplist — design system (frontend-only redesign layer)
 * Loaded before l2top-bridge.css. Every shortcode is being migrated from the
 * old .l2top-* classes to these .gtr-* ones component by component; nothing
 * here touches PHP business logic or API calls.
 */

:root {
  /* Base surfaces */
  --gtr-bg: #080A0E;
  --gtr-bg-2: #0B0E14;
  --gtr-surface: #10141C;
  --gtr-surface-2: #141923;
  --gtr-surface-light: #181E29;
  --gtr-border: rgba(255, 255, 255, 0.06);
  --gtr-border-strong: rgba(255, 255, 255, 0.12);

  /* Text */
  --gtr-text: #F5F5F5;
  --gtr-text-muted: #9CA3AF;
  --gtr-text-faint: rgba(245, 245, 245, 0.45);

  /* Accents */
  --gtr-gold: #D9B65C;
  --gtr-gold-2: #E4C273;
  --gtr-gold-3: #CFA74A;
  --gtr-gold-glow: rgba(217, 182, 92, 0.35);
  --gtr-cold: #B8996B;
  --gtr-cold-2: #D4B896;

  /* Status */
  --gtr-green: #22C55E;
  --gtr-red: #EF4444;
  --gtr-silver: #C7CDD6;
  --gtr-bronze: #C08A56;

  /* Shape / motion */
  /* Deliberately not one radius reused everywhere (a common "generated
     SaaS template" tell) - cards read slightly more angular/crafted, badges
     sharper still, buttons the roundest since they're the interactive/soft
     call-to-action element. */
  --gtr-radius: 10px;
  --gtr-radius-sm: 8px;
  --gtr-radius-badge: 4px;
  --gtr-ease: 200ms cubic-bezier(.4, 0, .2, 1);

  --gtr-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gtr-font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
}

/* ---------- Reset / base ---------- */
.gtr-root, .gtr-root * { box-sizing: border-box; }
.gtr-root {
  color: var(--gtr-text);
  font-family: var(--gtr-font-body);
  line-height: 1.55;
}
/* :where(h1, h2, h3, p) keeps the .gtr-root class's specificity but drops the
   element's own contribution to zero, so any later single-class override
   (.gtr-hero-subtitle's margin:auto centering, etc.) reliably wins instead
   of silently losing to this base reset because "class+element" out-scores
   "class alone". (Same root cause as the earlier blue-button-text bug.) */
.gtr-root :where(h1, h2, h3) {
  font-family: var(--gtr-font-display);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.25;
  margin: 0 0 .5rem;
}
.gtr-root :where(h1) { font-size: clamp(1.9rem, 3vw, 2.75rem); }
.gtr-root :where(h2) { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.gtr-root :where(h3) { font-size: 1.1rem; }
.gtr-root :where(p) { margin: 0 0 1rem; color: var(--gtr-text); }
/* :not(.gtr-button) both scopes this to plain text links (not gold-background
   buttons rendered as <a>) AND, as a side effect, out-specifies the button
   color rules - without it ".gtr-root a" (class+element = higher specificity
   than a single ".gtr-button-primary" class) was winning over the button's
   own dark text color, rendering blue link text on top of the gold button
   background instead of the intended dark text. */
.gtr-root a:not(.gtr-button) { color: var(--gtr-cold); text-decoration: none; transition: color var(--gtr-ease); }
.gtr-root a:not(.gtr-button):hover { color: var(--gtr-gold-2); }
.gtr-root code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--gtr-surface-2);
  border: 1px solid var(--gtr-border);
  border-radius: 4px;
  padding: .1rem .4rem;
  font-size: .85em;
}

/* Fluid instead of a single fixed max-width: on a 2560px/2174px-viewport
   display a flat 1280px cap left ~45% of the screen as empty margin (the
   exact "everything looks tiny, surrounded by whitespace" report). Scaling
   with vw up to a 1600px ceiling keeps line-lengths readable while actually
   using wide displays instead of floating a narrow column in the middle. */
.gtr-container { max-width: min(1600px, 94vw); margin: 0 auto; padding: 0 1.25rem; }
.gtr-section { padding: 3.5rem 0; }
@media (min-width: 1920px) {
  .gtr-container { padding: 0 2rem; }
}
.gtr-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.gtr-section-head p { color: var(--gtr-text-muted); margin: .25rem 0 0; font-size: .92rem; }
.gtr-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gtr-gold-2);
}
.gtr-eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--gtr-gold); }
/* In a centered block (the hero) the leading line makes the *box* centered
   but not the *text* inside it - the line's width shifts the readable text
   ~15px right of where the headline/subtitle below it are centered. Left-
   aligned usage (section heads) keeps the line; centered usage drops it. */
.gtr-hero-inner .gtr-eyebrow::before { display: none; }

/* ---------- Card / glass panel ---------- */
.gtr-card {
  /* A faint fractal-noise layer under the flat gradient breaks up the "too
     clean/generated" look a plain gradient-on-glass panel has at scale -
     it's there to be felt, not seen (3% opacity). */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(24, 30, 41, .55), rgba(16, 20, 28, .55));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gtr-border);
  border-radius: var(--gtr-radius);
  padding: 1.5rem;
  transition: border-color var(--gtr-ease), transform var(--gtr-ease), box-shadow var(--gtr-ease);
}
.gtr-card-hover:hover {
  border-color: var(--gtr-border-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .5);
}
.gtr-empty { text-align: center; color: var(--gtr-text-muted); padding: 3rem 1.5rem; }

/* ---------- Buttons ---------- */
.gtr-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--gtr-font-body); font-weight: 600; font-size: .875rem;
  padding: .65rem 1.3rem; border-radius: var(--gtr-radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: all var(--gtr-ease); text-decoration: none; white-space: nowrap;
}
.gtr-button-primary {
  background: linear-gradient(135deg, var(--gtr-gold-2), var(--gtr-gold-3));
  color: #14100a;
  box-shadow: 0 0 0 rgba(217, 182, 92, 0);
}
.gtr-button-primary:hover {
  color: #14100a;
  box-shadow: 0 6px 24px -4px var(--gtr-gold-glow);
  transform: translateY(-1px);
}
.gtr-button-secondary {
  background: rgba(255, 255, 255, .04);
  border-color: var(--gtr-border-strong);
  color: var(--gtr-text);
}
.gtr-button-secondary:hover { color: var(--gtr-gold-2); border-color: var(--gtr-gold); }
.gtr-button-ghost { background: transparent; color: var(--gtr-text-muted); }
.gtr-button-ghost:hover { color: var(--gtr-text); }
.gtr-button-danger {
  background: rgba(239, 68, 68, .08);
  border-color: rgba(239, 68, 68, .35);
  color: var(--gtr-red);
}
.gtr-button-danger:hover { background: rgba(239, 68, 68, .16); border-color: var(--gtr-red); }
.gtr-button-block { width: 100%; }
.gtr-button-sm { padding: .4rem .85rem; font-size: .78rem; }
.gtr-button[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------- Badges ---------- */
.gtr-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  padding: .25rem .55rem; border-radius: var(--gtr-radius-badge);
  background: var(--gtr-surface-2); border: 1px solid var(--gtr-border); color: var(--gtr-text-muted);
}
.gtr-badge-gold { color: var(--gtr-gold-2); border-color: rgba(217, 182, 92, .35); }
.gtr-badge-cold { color: var(--gtr-cold); border-color: rgba(184, 153, 107, .3); }
.gtr-badge-success { color: var(--gtr-green); border-color: rgba(34, 197, 94, .35); }
.gtr-badge-danger { color: var(--gtr-red); border-color: rgba(239, 68, 68, .35); }

/* ---------- Status dot ---------- */
.gtr-status { display: inline-flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.gtr-status-dot { width: 7px; height: 7px; border-radius: 50%; }
.gtr-status-online .gtr-status-dot { background: var(--gtr-green); box-shadow: 0 0 8px var(--gtr-green); }
.gtr-status-online { color: var(--gtr-green); }
.gtr-status-offline .gtr-status-dot { background: var(--gtr-red); }
.gtr-status-offline { color: var(--gtr-red); }

/* ---------- Ranking number ---------- */
.gtr-ranking { display: flex; align-items: center; justify-content: center; width: 2.75rem; flex-shrink: 0; font-family: var(--gtr-font-display); font-size: 1.4rem; font-weight: 700; color: var(--gtr-text-faint); }
.gtr-ranking-1 { color: var(--gtr-gold-2); text-shadow: 0 0 16px var(--gtr-gold-glow); }
.gtr-ranking-2 { color: var(--gtr-silver); }
.gtr-ranking-3 { color: var(--gtr-bronze); }
.gtr-server-card.gtr-rank-1 { border-color: rgba(217, 182, 92, .35); }
.gtr-server-card.gtr-rank-2 { border-color: rgba(199, 205, 214, .3); }
.gtr-server-card.gtr-rank-3 { border-color: rgba(192, 138, 86, .3); }

/* ---------- Inputs / filters / search ---------- */
.gtr-input, select.gtr-input, textarea.gtr-input {
  width: 100%;
  background: var(--gtr-surface-2);
  border: 1px solid var(--gtr-border-strong);
  color: var(--gtr-text);
  border-radius: var(--gtr-radius-sm);
  padding: .65rem .85rem;
  font-family: var(--gtr-font-body);
  font-size: .875rem;
  transition: border-color var(--gtr-ease);
}
.gtr-input:focus, select.gtr-input:focus, textarea.gtr-input:focus {
  outline: none; border-color: var(--gtr-gold);
}
.gtr-input::placeholder { color: var(--gtr-text-faint); }
.gtr-field { display: flex; flex-direction: column; gap: .4rem; }
.gtr-field label { font-size: .8rem; color: var(--gtr-text-muted); }
.gtr-field-hint { font-size: .72rem; color: var(--gtr-text-faint); }

.gtr-filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; }
.gtr-search { position: relative; }
.gtr-search input { padding-left: 2.6rem; }
.gtr-search-icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--gtr-text-faint); pointer-events: none; }

.gtr-chip {
  display: inline-flex; align-items: center; padding: .4rem 1rem; border-radius: 999px;
  border: 1px solid var(--gtr-border-strong); color: var(--gtr-text-muted); font-size: .8rem; text-decoration: none;
  transition: all var(--gtr-ease);
}
.gtr-chip:hover { color: var(--gtr-text); border-color: var(--gtr-gold); }
.gtr-chip-active { border-color: var(--gtr-gold); color: var(--gtr-gold-2); background: rgba(217, 182, 92, .08); }

/* ---------- Stat cards ---------- */
.gtr-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .gtr-stat-grid { grid-template-columns: repeat(2, 1fr); } }
.gtr-stat-card { text-align: center; padding: 1.5rem 1rem; position: relative; overflow: hidden; }
.gtr-stat-card::after {
  content: ''; position: absolute; inset: auto auto -40% -20%; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, var(--gtr-gold-glow), transparent 70%); opacity: .5; pointer-events: none;
}
.gtr-stat-icon { color: var(--gtr-gold-2); margin-bottom: .5rem; }
.gtr-stat-value { font-family: var(--gtr-font-display); font-size: 1.9rem; font-weight: 700; }
.gtr-stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gtr-text-muted); margin-top: .25rem; }

/* ---------- Server card ---------- */
.gtr-server-list { display: flex; flex-direction: column; gap: .75rem; }
.gtr-server-card { display: block; }
.gtr-server-card-row { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.gtr-server-logo { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--gtr-surface-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--gtr-font-display); font-weight: 700; color: var(--gtr-gold-2); }
.gtr-server-logo img { width: 100%; height: 100%; object-fit: cover; }
.gtr-server-main { flex: 1; min-width: 200px; }
.gtr-server-name { font-family: var(--gtr-font-display); font-size: 1.05rem; font-weight: 600; color: var(--gtr-text); }
.gtr-server-card:hover .gtr-server-name { color: var(--gtr-gold-2); }
.gtr-server-desc { font-size: .84rem; color: var(--gtr-text-muted); margin: .25rem 0 .55rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 460px; }
.gtr-server-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.gtr-server-stats { display: flex; align-items: center; gap: 1.4rem; flex-shrink: 0; margin-left: auto; }
.gtr-server-stat { text-align: center; }
.gtr-server-stat-value { font-weight: 700; font-size: .95rem; }
.gtr-server-stat-label { font-size: .62rem; text-transform: uppercase; color: var(--gtr-text-faint); }
.gtr-server-actions { display: flex; gap: .5rem; }
@media (max-width: 700px) {
  .gtr-server-stats { width: 100%; margin-left: 0; justify-content: space-between; border-top: 1px solid var(--gtr-border); padding-top: .75rem; }
}

/* ---------- Utility ---------- */
.gtr-mt-1 { margin-top: .5rem; } .gtr-mt-2 { margin-top: 1rem; } .gtr-mt-3 { margin-top: 1.5rem; } .gtr-mt-4 { margin-top: 2.5rem; }
.gtr-text-muted { color: var(--gtr-text-muted); }
.gtr-text-gold { color: var(--gtr-gold-2); }
.gtr-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 700px) { .gtr-grid-2 { grid-template-columns: 1fr; } }
.gtr-col-span-2 { grid-column: span 2; }
@media (max-width: 700px) { .gtr-col-span-2 { grid-column: span 1; } }

/* ---------- Fade-in on scroll ---------- */
.gtr-fade-in { opacity: 0; transform: translateY(10px); transition: opacity 400ms ease, transform 400ms ease; }
.gtr-fade-in.gtr-visible { opacity: 1; transform: translateY(0); }

/* ---------- Ambient atmosphere backdrop ---------- */
.gtr-atmosphere {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--gtr-bg);
}
.gtr-atmosphere::before {
  content: '';
  position: absolute; inset: -10%;
  background:
    radial-gradient(900px 500px at 15% -5%, rgba(184, 153, 107, .14), transparent 60%),
    radial-gradient(700px 450px at 90% 10%, rgba(167, 139, 250, .10), transparent 60%),
    radial-gradient(1200px 700px at 50% 120%, rgba(217, 182, 92, .06), transparent 60%),
    linear-gradient(180deg, var(--gtr-bg-2), var(--gtr-bg) 40%);
}
.gtr-atmosphere::after {
  /* subtle vignette so edges recede and content stays dominant */
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%);
}

/* ---------- Homepage: hero ---------- */
.gtr-hero { position: relative; padding: 5.5rem 0 4rem; overflow: hidden; }
.gtr-hero-fx {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 20% 20%, rgba(184, 153, 107, .16), transparent 60%),
    radial-gradient(55% 60% at 85% 0%, rgba(167, 139, 250, .14), transparent 60%),
    radial-gradient(80% 60% at 50% 100%, rgba(217, 182, 92, .08), transparent 60%);
}
.gtr-hero-fx::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0 200V120l40-10 30 20 50-40 40 15 60-35 45 25 70-45 55 30 80-40 60 20 90-35 70 25 100-30v170Z' fill='%230B0E14' fill-opacity='0.65'/%3E%3C/svg%3E");
  background-size: cover; background-position: bottom;
}
.gtr-hero-inner { text-align: center; }
.gtr-hero-title { font-size: clamp(2.2rem, 5vw, 3.5rem); margin: 1rem 0; }
.gtr-hero-highlight {
  background: linear-gradient(135deg, var(--gtr-gold-2), var(--gtr-gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gtr-hero-subtitle { color: var(--gtr-text-muted); max-width: 560px; margin: 0 auto 2rem; font-size: 1rem; }
.gtr-hero-actions { display: flex; justify-content: center; gap: .85rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.gtr-hero-search { max-width: 780px; margin: 0 auto; display: flex; gap: .6rem; flex-wrap: wrap; padding: 1rem; text-align: left; }
.gtr-hero-search-input-wrap { flex: 1 1 260px; }
.gtr-hero-select { flex: 0 1 160px; }
@media (max-width: 700px) { .gtr-hero-search { flex-direction: column; } .gtr-hero-select { flex: 1; } }

/* ---------- Homepage: chronicles ---------- */
/* Deliberately not a perfectly uniform N-identical-tiles grid - the first
   tile spans 2 columns/rows as a "featured chronicle" slot, which reads as
   an intentional layout choice rather than a mechanically repeated grid. */
.gtr-chronicle-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 1rem; }
.gtr-chronicle-grid > a:first-child { grid-column: span 2; grid-row: span 2; }
.gtr-chronicle-grid > a:first-child .gtr-chronicle-name, .gtr-chronicle-grid > a:first-child h3 { font-size: 1.4rem; }
@media (max-width: 900px) {
  .gtr-chronicle-grid { grid-template-columns: repeat(2, 1fr); }
  .gtr-chronicle-grid > a:first-child { grid-column: span 2; grid-row: span 1; }
}
.gtr-chronicle-card { position: relative; overflow: hidden; text-decoration: none; color: inherit; display: block; }
.gtr-chronicle-glow { position: absolute; top: -30%; right: -20%; width: 140px; height: 140px; border-radius: 50%; filter: blur(30px); opacity: .35; pointer-events: none; }
.gtr-chronicle-glow-0 { background: var(--gtr-gold); } .gtr-chronicle-glow-1 { background: var(--gtr-cold); }
.gtr-chronicle-glow-2 { background: var(--gtr-cold-2); } .gtr-chronicle-glow-3 { background: var(--gtr-gold-3); }
.gtr-chronicle-card h3 { margin-bottom: .25rem; }
.gtr-chronicle-card:hover h3 { color: var(--gtr-gold-2); }
.gtr-chronicle-arrow { display: inline-flex; margin-top: 1rem; color: var(--gtr-text-faint); }
.gtr-chronicle-card:hover .gtr-chronicle-arrow { color: var(--gtr-gold-2); transform: translateX(3px); }

/* ---------- Homepage: recently added / upcoming ---------- */
.gtr-recent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .gtr-recent-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gtr-recent-grid { grid-template-columns: 1fr; } }
.gtr-recent-card { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: inherit; }
.gtr-recent-info { flex: 1; min-width: 0; }

/* ---------- Homepage: owner CTA ---------- */
.gtr-owner-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 2.5rem; }
.gtr-owner-cta h2 { margin-bottom: .35rem; }
.gtr-owner-cta p { color: var(--gtr-text-muted); margin: 0; }

/* ---------- Server browser filter form ---------- */
.gtr-filter-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-top: 1.5rem; }
@media (max-width: 800px) { .gtr-filter-form { grid-template-columns: repeat(2, 1fr); } .gtr-filter-form .gtr-col-span-2 { grid-column: span 2; } }
.gtr-pagination { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.gtr-page-active { border-color: var(--gtr-gold) !important; color: var(--gtr-gold-2) !important; }

/* ---------- Server detail page ---------- */
.gtr-detail-banner { position: relative; height: 220px; overflow: hidden; background: linear-gradient(180deg, var(--gtr-surface-light), var(--gtr-bg)); }
.gtr-detail-banner img { width: 100%; height: 100%; object-fit: cover; }
.gtr-detail-banner-fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--gtr-bg)); }
.gtr-detail-inner { margin-top: -3rem; position: relative; }
.gtr-detail-head { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.gtr-detail-logo { width: 100px; height: 100px; border: 2px solid var(--gtr-bg); font-size: 1.7rem; }
.gtr-detail-title { flex: 1; min-width: 220px; }
.gtr-detail-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.gtr-info-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .85rem; }
@media (max-width: 700px) { .gtr-info-tiles { grid-template-columns: repeat(2, 1fr); } }
.gtr-info-tile { text-align: center; padding: 1.1rem; }
.gtr-info-value { font-family: var(--gtr-font-display); font-size: 1.15rem; font-weight: 700; }
.gtr-info-label { font-size: .68rem; text-transform: uppercase; color: var(--gtr-text-muted); margin-top: .25rem; }

/* ---------- Tabs ---------- */
.gtr-tabs { padding-top: 1.75rem; border-top: 1px solid var(--gtr-border); }
.gtr-tab-nav { display: flex; gap: .3rem; border-bottom: 1px solid var(--gtr-border); overflow-x: auto; }
.gtr-tab-btn {
  background: none; border: none; padding: .75rem 1.1rem; color: var(--gtr-text-muted); font-size: .875rem; font-weight: 600;
  cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; transition: color var(--gtr-ease), border-color var(--gtr-ease);
}
.gtr-tab-btn:hover { color: var(--gtr-text); }
.gtr-tab-btn.is-active { color: var(--gtr-gold-2); border-bottom-color: var(--gtr-gold); }
.gtr-tab-panel { display: none; padding-top: 1.75rem; }
.gtr-tab-panel.is-active { display: block; }
.gtr-stat-grid-compact .gtr-stat-card { padding: 1.1rem; }

.gtr-ranking-chart { position: relative; }
.gtr-chart { display: flex; align-items: flex-end; gap: .35rem; height: 140px; }
.gtr-chart-bar-wrap { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.gtr-chart-bar { width: 100%; background: linear-gradient(180deg, var(--gtr-gold), var(--gtr-gold-3)); border-radius: 4px 4px 0 0; min-height: 4px; transition: filter var(--gtr-ease); }
.gtr-chart-bar-wrap:hover .gtr-chart-bar { filter: brightness(1.25); }

.gtr-chart-tooltip {
  position: absolute;
  transform: translate(-50%, -100%) translateY(-8px);
  background: var(--gtr-surface-light);
  border: 1px solid var(--gtr-border-strong);
  border-radius: 8px;
  padding: .45rem .7rem;
  font-size: .78rem;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--gtr-ease);
  z-index: 5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.gtr-chart-tooltip.is-visible { opacity: 1; visibility: visible; }
.gtr-chart-tooltip-date { color: var(--gtr-text-muted); }
.gtr-chart-tooltip-votes { color: var(--gtr-gold-2); font-weight: 600; }

.gtr-info-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--gtr-border); padding: .65rem 0; font-size: .85rem; }
.gtr-info-row-last { border-bottom: none; padding-bottom: 0; }
.gtr-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; }
.gtr-owner-note { font-size: .68rem; color: var(--gtr-text-faint); margin: .5rem 0 0; }

/* ---------- Vote page ---------- */
.gtr-uppercase { text-transform: uppercase; letter-spacing: .05em; font-size: .7rem; }
.gtr-text-cold { color: var(--gtr-cold); font-size: .8rem; }
.gtr-vote-wrap { max-width: 640px; }
.gtr-vote-card { text-align: center; padding: 2.5rem 2rem; }
.gtr-vote-icon {
  width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gtr-gold-2), var(--gtr-gold-3)); color: #14100a;
  box-shadow: 0 8px 28px -6px var(--gtr-gold-glow);
}
.gtr-cooldown-box, .gtr-reward-box { background: var(--gtr-surface-2); border: 1px solid var(--gtr-border); border-radius: 12px; padding: 1.1rem; text-align: left; }
.gtr-cooldown-box { text-align: center; }
.gtr-countdown { font-family: var(--gtr-font-display); font-size: 1.4rem; font-weight: 700; color: var(--gtr-gold-2); margin-top: .3rem; }
.gtr-vote-submit {
  width: 100%; padding: 1rem; font-size: 1rem; margin-top: 1.75rem;
  box-shadow: 0 0 0 rgba(217, 182, 92, 0); animation: gtr-vote-pulse 2.4s ease-in-out infinite;
}
.gtr-vote-submit:disabled { animation: none; }
@keyframes gtr-vote-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(217, 182, 92, 0); }
  50% { box-shadow: 0 0 26px -2px var(--gtr-gold-glow); }
}
.gtr-success-icon {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34, 197, 94, .15); color: var(--gtr-green);
}
.gtr-success-text { font-weight: 700; color: var(--gtr-green); margin-top: .6rem; font-size: 1.05rem; }
.gtr-vote-error { color: var(--gtr-red); font-size: .85rem; margin-top: 1rem; }
.gtr-captcha-holder { display: flex; justify-content: center; min-height: 1px; }

/* ---------- Auth forms ---------- */
.gtr-text-success { color: var(--gtr-green); }
.gtr-text-danger { color: var(--gtr-red); }
.gtr-text-center { text-align: center; }
.gtr-auth-wrap { max-width: 440px; }
.gtr-auth-card { padding: 2.25rem; }
.gtr-form { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.1rem; }
.gtr-error-text { color: var(--gtr-red); font-size: .85rem; margin: 0; }
.gtr-auth-links { margin-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--gtr-text-muted); }

/* ---------- Dashboard / manage-server shared ---------- */
.gtr-narrow { max-width: 780px; }
.gtr-dashboard-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.gtr-form-section-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gtr-text-muted); margin: 2rem 0 .9rem; }
.gtr-form-section-title:first-child { margin-top: 0; }
.gtr-min-w-0 { min-width: 0; }
.gtr-dashboard-server-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; text-decoration: none; color: inherit; }
.gtr-row-title { font-weight: 600; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.gtr-row-sub { font-size: .78rem; color: var(--gtr-text-muted); margin-top: .3rem; display: flex; align-items: center; gap: .4rem; }
.gtr-mini-stats { display: flex; gap: 1.4rem; }
.gtr-mini-stat { text-align: center; font-weight: 700; }
.gtr-mini-stat-label { font-size: .62rem; font-weight: 400; color: var(--gtr-text-muted); }
.gtr-inline-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.gtr-secret-box { border: 1px solid rgba(217, 182, 92, .35); background: rgba(217, 182, 92, .08); border-radius: 12px; padding: 1.1rem; }
.gtr-secret-warning { font-size: .82rem; font-weight: 600; color: var(--gtr-gold-2); margin: 0 0 .6rem; }
.gtr-codeblock { position: relative; margin-top: .4rem; }
.gtr-codeblock pre { background: var(--gtr-surface-2); border: 1px solid var(--gtr-border); border-radius: 8px; padding: .8rem 3.2rem .8rem .8rem; font-size: .72rem; overflow-x: auto; margin: 0; color: var(--gtr-text); }
.gtr-copy-btn { position: absolute; top: .5rem; right: .5rem; background: var(--gtr-surface-light); border: 1px solid var(--gtr-border-strong); color: var(--gtr-text-muted); border-radius: 6px; padding: .3rem .6rem; font-size: .65rem; font-weight: 600; cursor: pointer; }
.gtr-copy-btn:hover { color: var(--gtr-text); }
.gtr-label-sm { font-size: .68rem; text-transform: uppercase; color: var(--gtr-text-muted); margin-bottom: .4rem; }
.gtr-btn-preview { display: inline-block; background: var(--gtr-gold); color: #14100a; font-weight: 700; font-size: .85rem; text-decoration: none; padding: .65rem 1.3rem; border-radius: 8px; margin-bottom: .6rem; }
/* The Vote Banner SVGs paint their own gold frame at the pixel level - an
   outer CSS border/radius here would double up on top of it and clash. */
.gtr-banner-preview { display: block; max-width: 100%; height: auto; }
.gtr-rows { display: flex; flex-direction: column; }
.gtr-rankings-toolbar { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
/* .gtr-input defaults to width:100% (a plain <select> has no natural width
   to fall back to otherwise) - inside this flex form that made each select
   greedily fill the whole row width and wrap onto its own line, stacking
   Chronicle/Platform/Type one under another instead of sitting side by
   side. A bounded flex-basis lets them sit in a row and only wrap when the
   toolbar genuinely runs out of horizontal room. */
.gtr-rankings-toolbar form { flex-wrap: wrap; align-items: center; width: 100%; }
.gtr-rankings-toolbar form select.gtr-input { width: auto; flex: 1 1 160px; }
.gtr-stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .gtr-stat-grid-3 { grid-template-columns: 1fr; } }
.gtr-chart-bar-accent { background: linear-gradient(180deg, var(--gtr-cold), var(--gtr-cold-2)); }

/* ---------- Static / docs pages ---------- */
.gtr-body h2 { margin-top: 1.75rem; }
.gtr-body h2:first-child { margin-top: 0; }
.gtr-body p { margin: 0 0 1rem; font-size: .9rem; line-height: 1.65; color: var(--gtr-text); }
.gtr-ol, .gtr-ul { padding-left: 1.25rem; margin: 0 0 1rem; font-size: .88rem; line-height: 1.65; color: var(--gtr-text); }
.gtr-ol li, .gtr-ul li { margin-bottom: .4rem; }
.gtr-codeblock-static { background: var(--gtr-surface-2); border: 1px solid var(--gtr-border); border-radius: 10px; padding: 1rem; font-size: .78rem; overflow-x: auto; margin: 0 0 1rem; color: var(--gtr-text); }

/* ---------- Ad Slots: sidebar layout ---------- */
.gtr-content-with-sidebar { display: grid; grid-template-columns: 1fr 260px; gap: 2rem; align-items: start; }
@media (max-width: 960px) { .gtr-content-with-sidebar { grid-template-columns: 1fr; } .gtr-content-sidebar { order: 2; } }
.gtr-content-sidebar { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 90px; }
.gtr-sidebar-heading { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gtr-text-faint); }

/* ---------- Ad Slots: top row (leaderboard) ---------- */
.gtr-slot-row-group { display: flex; flex-direction: column; gap: .75rem; }
.gtr-slot-sponsored-wrap { position: relative; }
.gtr-slot-sponsored-tag { position: absolute; top: -9px; left: 14px; z-index: 1; }
/* "Server of the Month" is earned by votes, not bought - same tag position
   as Sponsored, but the cold/bronze accent instead of gold keeps it from
   reading as another paid placement. */
.gtr-slot-champion-wrap { position: relative; }
.gtr-badge-champion { color: var(--gtr-cold-2); border-color: rgba(184, 153, 107, .4); background: rgba(184, 153, 107, .1); display: inline-flex; align-items: center; gap: .35em; }
.gtr-badge-champion svg { flex-shrink: 0; }
.gtr-slot-empty-row { display: flex; align-items: center; gap: 1rem; border-style: dashed; border-color: var(--gtr-border-strong); background: rgba(217, 182, 92, .04); }
.gtr-slot-empty-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--gtr-surface-light); color: var(--gtr-gold-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gtr-slot-empty-body { flex: 1; min-width: 0; }
.gtr-slot-empty-title { font-weight: 700; }
.gtr-slot-empty-sub { font-size: .8rem; color: var(--gtr-text-muted); margin-top: .15rem; }
.gtr-slot-empty-cta { flex-shrink: 0; }

/* ---------- Ad Slots: sidebar (skyscraper) ---------- */
.gtr-slot-stack-group { display: flex; flex-direction: column; gap: .85rem; }
.gtr-slot-stack { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; padding: 1.25rem 1rem; position: relative; text-decoration: none; color: inherit; }
.gtr-slot-stack.gtr-slot-empty { border-style: dashed; border-color: var(--gtr-border-strong); background: rgba(217, 182, 92, .04); }
.gtr-slot-stack-logo { width: 48px; height: 48px; }
.gtr-slot-stack-name { font-weight: 700; font-size: .9rem; }
.gtr-slot-empty-price { font-size: .78rem; color: var(--gtr-gold-2); font-weight: 700; }

/* ---------- Promote page: slot picker ---------- */
.gtr-slot-pick-list { display: flex; flex-direction: column; gap: .5rem; }
.gtr-slot-pick {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .8rem 1rem; border: 1px solid var(--gtr-border-strong); border-radius: var(--gtr-radius-sm);
  cursor: pointer; transition: border-color var(--gtr-ease), background var(--gtr-ease);
}
.gtr-slot-pick input { margin: 0 .5rem 0 0; }
.gtr-slot-pick-active { border-color: var(--gtr-gold); background: rgba(217, 182, 92, .07); }
.gtr-slot-pick-taken { opacity: .5; cursor: not-allowed; }

/* ---------- Ad Slots: custom banner images ---------- */
.gtr-slot-banner-img { display: block; width: 100%; border-radius: 8px; object-fit: cover; }
.gtr-slot-banner-row-link { display: block; padding: 1.25rem 1rem 1rem; text-decoration: none; }
.gtr-slot-banner-row { max-height: 90px; width: auto; margin: 0 auto; }
.gtr-slot-banner-stack { height: 90px; margin-bottom: .5rem; }
.gtr-update-banner-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.gtr-update-banner-form .gtr-input { flex: 1 1 240px; }
.gtr-grid-2-tight { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (max-width: 700px) { .gtr-grid-2-tight { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Styled feature checkboxes (Add Server form) ---------- */
.gtr-checkbox-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.gtr-checkbox-item {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  padding: .5rem .9rem; border: 1px solid var(--gtr-border-strong); border-radius: var(--gtr-radius-sm);
  font-size: .85rem; color: var(--gtr-text-muted); transition: border-color var(--gtr-ease), background var(--gtr-ease), color var(--gtr-ease);
}
.gtr-checkbox-item:hover { border-color: var(--gtr-gold); color: var(--gtr-text); }
.gtr-checkbox-item input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.gtr-checkbox-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--gtr-border-strong);
  background: var(--gtr-surface-2); color: transparent; flex-shrink: 0; transition: all var(--gtr-ease);
}
.gtr-checkbox-item input:checked ~ .gtr-checkbox-box { background: var(--gtr-gold); border-color: var(--gtr-gold); color: #14100a; }
.gtr-checkbox-item input:checked ~ span:last-child,
.gtr-checkbox-item:has(input:checked) { color: var(--gtr-gold-2); }
.gtr-checkbox-item:has(input:checked) { border-color: var(--gtr-gold); background: rgba(217, 182, 92, .07); }

/* ---------- Header "My Account" (guest links + logged-in dropdown) ---------- */
.gtr-account-guest { display: flex; align-items: center; gap: .5rem; }
.gtr-account-menu { position: relative; }
.gtr-account-trigger {
  display: flex; align-items: center; gap: .5rem; background: var(--gtr-surface-2);
  border: 1px solid var(--gtr-border-strong); border-radius: 999px; padding: .35rem .8rem .35rem .35rem;
  color: var(--gtr-text); font: inherit; font-size: .85rem; cursor: pointer; transition: border-color var(--gtr-ease), background var(--gtr-ease);
}
.gtr-account-trigger:hover { border-color: var(--gtr-gold); }
.gtr-account-avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--gtr-gold); color: #14100a;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; flex-shrink: 0;
}
.gtr-account-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gtr-account-chevron { color: var(--gtr-text-muted); transition: transform var(--gtr-ease); flex-shrink: 0; }
.gtr-account-menu.is-open .gtr-account-chevron { transform: rotate(180deg); }
.gtr-account-panel {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 210px; z-index: 40;
  background: var(--gtr-surface-2); border: 1px solid var(--gtr-border-strong); border-radius: var(--gtr-radius);
  box-shadow: 0 12px 32px rgba(0,0,0,.4); padding: .4rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity var(--gtr-ease), transform var(--gtr-ease), visibility var(--gtr-ease);
}
.gtr-account-menu.is-open .gtr-account-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.gtr-account-panel-link {
  display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: var(--gtr-radius-sm);
  color: var(--gtr-text); font-size: .87rem; transition: background var(--gtr-ease), color var(--gtr-ease);
}
.gtr-account-panel-link:hover { background: var(--gtr-surface-light); color: var(--gtr-gold-2); }
.gtr-account-panel-link svg { flex-shrink: 0; color: var(--gtr-text-muted); }
.gtr-account-panel-divider { display: block; height: 1px; background: var(--gtr-border); margin: .35rem .3rem; }
.gtr-account-panel-logout a { display: flex; align-items: center; gap: .6rem; color: inherit; }
.gtr-account-panel-logout:hover { background: var(--gtr-surface-light); }
.gtr-account-panel-logout:hover a,
.gtr-account-panel-logout:hover svg { color: var(--gtr-text-danger, #e07a7a); }
@media (max-width: 600px) {
  .gtr-account-name { display: none; }
  .gtr-account-trigger { padding: .35rem; }
}

/* ---------- Auth: Google button divider + password strength/generate ---------- */
.gtr-google-btn-wrap { display: flex; justify-content: center; margin-bottom: 1rem; min-height: 40px; }
.gtr-auth-divider { display: flex; align-items: center; gap: .8rem; margin: 1rem 0; color: var(--gtr-text-faint); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.gtr-auth-divider::before, .gtr-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gtr-border); }
.gtr-pw-tools { margin-top: .4rem; }
.gtr-pw-generate {
  background: none; border: none; padding: 0; font-size: .78rem; color: var(--gtr-cold); cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px; font-family: inherit;
}
.gtr-pw-generate:hover { color: var(--gtr-gold-2); }
.gtr-pw-meter { margin-top: .5rem; }
.gtr-pw-meter-track { height: 5px; border-radius: 3px; background: var(--gtr-surface-2); overflow: hidden; }
.gtr-pw-meter-fill { height: 100%; width: 0; border-radius: 3px; transition: width var(--gtr-ease), background var(--gtr-ease); }
.gtr-pw-meter-label { margin: .35rem 0 0; font-size: .72rem; }

/* ---------- Native admin panel (tabs + data table) ---------- */
.gtr-admin-tabs { display: flex; gap: .5rem; border-bottom: 1px solid var(--gtr-border); flex-wrap: wrap; }
.gtr-admin-tab {
  background: none; border: none; border-bottom: 2px solid transparent; color: var(--gtr-text-muted);
  font: inherit; font-weight: 600; font-size: .88rem; padding: .7rem .3rem; cursor: pointer; transition: color var(--gtr-ease), border-color var(--gtr-ease);
  margin-right: 1.2rem;
}
.gtr-admin-tab:hover { color: var(--gtr-text); }
.gtr-admin-tab.is-active { color: var(--gtr-gold-2); border-bottom-color: var(--gtr-gold); }
.gtr-admin-table-wrap { overflow-x: auto; }
.gtr-admin-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.gtr-admin-table th { text-align: left; padding: .6rem .7rem; color: var(--gtr-text-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--gtr-border-strong); white-space: nowrap; }
.gtr-admin-table td { padding: .6rem .7rem; border-bottom: 1px solid var(--gtr-border); vertical-align: middle; }
.gtr-admin-table tr:hover td { background: rgba(255,255,255,.02); }

/* ---------- Avatar (header trigger + Account Settings profile) ---------- */
.gtr-account-avatar.has-image { background-size: cover; background-position: center; color: transparent; }
.gtr-avatar-row { display: flex; align-items: flex-start; gap: 1.2rem; }
.gtr-avatar-preview, .gtr-avatar-preview-fallback {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
  border: 1px solid var(--gtr-border-strong);
}
.gtr-avatar-preview-fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--gtr-gold); color: #14100a; font-weight: 700; font-size: 1.4rem;
}
.gtr-field-grow { flex: 1; }

/* ---------- Buy Votes (manage-server dashboard) ---------- */
.gtr-vote-pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.gtr-vote-pkg-card {
  border: 1px solid var(--gtr-border-strong); border-radius: var(--gtr-radius-sm); padding: 1.2rem 1rem;
  text-align: center; transition: border-color var(--gtr-ease), transform var(--gtr-ease);
}
.gtr-vote-pkg-card:hover { border-color: var(--gtr-gold); transform: translateY(-2px); }
.gtr-vote-pkg-label { font-family: var(--gtr-font-display); font-weight: 600; color: var(--gtr-gold-2); text-transform: uppercase; font-size: .78rem; letter-spacing: .05em; }
.gtr-vote-pkg-votes { font-size: 1.3rem; font-weight: 700; margin-top: .4rem; }
.gtr-vote-pkg-price { color: var(--gtr-text-muted); margin-top: .2rem; }

/* Extra breathing room above the homepage's "Own a Lineage 2 Server?" CTA -
   it was sitting too close under Upcoming Servers with just the section's
   own default top padding. */
.gtr-section-owner-cta { margin-top: 2.5rem; }

/* ---------- Info callout (e.g. "Server of the Month" mentions) ---------- */
.gtr-callout {
  display: flex; align-items: flex-start; gap: .8rem; padding: 1rem 1.2rem;
  border: 1px solid rgba(184, 153, 107, .35); border-radius: var(--gtr-radius-sm);
  background: rgba(184, 153, 107, .07);
}
.gtr-callout-icon { color: var(--gtr-cold-2); flex-shrink: 0; margin-top: .1rem; }
.gtr-callout p { margin: 0; font-size: .88rem; color: var(--gtr-text); }

.gtr-mb-1 { margin-bottom: .5rem; } .gtr-mb-2 { margin-bottom: 1rem; } .gtr-mb-3 { margin-bottom: 1.5rem; }

/* Homepage stats grid now has 3 cards (Players Online removed), not 4 - a
   dedicated modifier instead of changing .gtr-stat-grid itself, which the
   dashboard/statistics/server-detail pages also use with their own counts. */
.gtr-stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .gtr-stat-grid-3 { grid-template-columns: repeat(2, 1fr); } }

.gtr-flag-counter { display: inline-flex; align-items: center; line-height: 0; opacity: .85; transition: opacity var(--gtr-ease); }
.gtr-flag-counter:hover { opacity: 1; }

/* ---------- Docs page: header reference table (API auth) ---------- */
.gtr-docs-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .85rem; }
.gtr-docs-table td { padding: .6rem .8rem; border-bottom: 1px solid var(--gtr-border); vertical-align: top; }
.gtr-docs-table td:first-child { white-space: nowrap; color: var(--gtr-gold-2); }

/* ---------- Header language switcher (Google Translate widget) ----------
   Google injects its own top banner iframe + pushes body down with an
   inline "top" style when a translation is active - both suppressed so it
   never disturbs our fixed header. The widget's own markup (.goog-te-gadget)
   is unstyleable via its internal classes in any reliable cross-browser way,
   so it's shrunk to invisible and only the native <select> it renders is
   kept visible and reskinned to match .gtr-input/.gtr-button chrome. */
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0 !important; }
.gtr-lang-switch { position: relative; display: inline-flex; align-items: center; gap: .35rem; }
.gtr-lang-icon { color: var(--gtr-text-muted); flex-shrink: 0; pointer-events: none; }
#google_translate_element .goog-te-gadget { font-size: 0; color: transparent; }
#google_translate_element .goog-te-gadget > span { display: none; }
#google_translate_element .goog-te-gadget .goog-te-combo {
  font-size: .8rem;
  font-family: inherit;
  color: var(--gtr-text);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--gtr-border-strong);
  border-radius: 8px;
  padding: .35rem 1.6rem .35rem .6rem;
  cursor: pointer;
}
#google_translate_element .goog-te-gadget .goog-te-combo:hover { border-color: var(--gtr-gold); }
/* The <select> itself takes the dark skin above; without this, the open
   dropdown list still renders with the browser's default white popup
   background, since option elements don't inherit from their <select>. */
#google_translate_element .goog-te-gadget .goog-te-combo option {
  background: var(--gtr-surface);
  color: var(--gtr-text);
}
.gtr-header-actions > .gtr-lang-switch { order: -1; }
body > .skiptranslate { display: none !important; }
