:root {
  --bg: #e2e8f0;
  --surface: #d0d8e4;
  --card: #ffffff;
  --border: #c4cdd9;
  --text: #0f1e33;
  --text-muted: #5a6a82;
  --primary: #1a3356;
  --secondary: #1a6b5a;
  --danger: #991b1b;
  --accent: #7a3828;
  --shadow-sm: 0 1px 3px rgba(15, 30, 51, 0.06), 0 1px 2px rgba(15, 30, 51, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 30, 51, 0.08), 0 2px 6px rgba(15, 30, 51, 0.05);
  --shadow-lg: 0 12px 32px rgba(15, 30, 51, 0.1), 0 4px 12px rgba(15, 30, 51, 0.06);
  --shadow-xl: 0 20px 48px rgba(15, 30, 51, 0.12), 0 8px 20px rgba(15, 30, 51, 0.07);
  --shadow-accent: 0 6px 20px rgba(122, 56, 40, 0.22);
  --video-primary: #0f8a72;
  --video-secondary: #11a58a;
  --video-shadow: 0 18px 36px rgba(15, 138, 114, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 206, 125, 0.36), transparent 30%),
    radial-gradient(circle at top right, rgba(78, 130, 224, 0.18), transparent 28%),
    linear-gradient(180deg, #f5f8fd 0%, #e4ebf4 52%, #d8e1ed 100%);
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  padding: 18px 0 10px;
}

.topbar-inner,
.hero-card,
.hero-side,
.info-card,
.site-footer-card,
.gdist-modal {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  color: var(--primary);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 214, 147, 0.9), rgba(255, 239, 217, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 8px 18px rgba(122, 56, 40, 0.16);
  font-size: 1.15rem;
}

.topbar-nav,
.hero-pills,
.explorer-actions,
.distribution-page-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-link,
.hero-pill,
.explorer-action,
.distribution-page-action,
.footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(196, 205, 217, 0.94);
  background: rgba(255, 255, 255, 0.86);
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.topbar-link:hover,
.topbar-link:focus-visible,
.hero-pill:hover,
.hero-pill:focus-visible,
.explorer-action:hover,
.explorer-action:focus-visible,
.distribution-page-action:hover,
.distribution-page-action:focus-visible,
.footer-link:hover,
.footer-link:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.topbar-link--primary,
.hero-pill--primary,
.distribution-page-action--primary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--shadow-md), var(--shadow-accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
  padding: 20px 0 16px;
}

.hero-card,
.hero-side {
  border-radius: 30px;
  overflow: hidden;
}

.hero-card {
  padding: 34px 34px 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 215, 139, 0.36), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 249, 253, 0.98) 58%, rgba(216, 229, 247, 0.74));
}

.hero-side {
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(78, 130, 224, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 252, 0.94));
}

.hero-kicker,
.distribution-explorer-kicker {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  color: var(--text);
}

.hero-lede,
.explorer-heading-copy p,
.info-card p,
.faq-item-content,
.site-footer-card p {
  color: var(--text-muted);
  line-height: 1.65;
}

.hero-lede {
  margin: 16px 0 0;
  font-size: 1.08rem;
}

.hero-side-grid,
.card-grid,
.faq-grid {
  display: grid;
  gap: 16px;
}

.hero-side-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-stat {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(196, 205, 217, 0.88);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.hero-stat-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-stat-value {
  margin: 8px 0 0;
  color: var(--primary);
  font-size: 1.45rem;
  font-weight: 800;
}

.hero-stat-copy {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.45;
}

.hero-flow {
  margin-top: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(196, 205, 217, 0.88);
  background: linear-gradient(135deg, rgba(26, 51, 86, 0.07), rgba(122, 56, 40, 0.08));
}

.hero-flow-title,
.info-card h2,
.info-card h3,
.explorer-heading-copy h1,
.explorer-heading-copy h2 {
  margin: 0 0 10px;
  color: var(--primary);
}

.hero-flow-list,
.content-stack,
.explorer-section,
.faq-stack,
.site-footer-card {
  display: grid;
  gap: 12px;
}

.hero-flow-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
}

.hero-flow-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--card);
  color: var(--accent);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.hero-flow-step-copy {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.content-stack {
  padding: 14px 0 32px;
}

.distribution-center-page .content-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.distribution-center-page .content-stack > .explorer-section {
  order: 1;
}

.distribution-center-page .content-stack > .page-tail {
  order: 6;
}

.distribution-center-page .content-stack > .discovery-surface {
  order: 2;
}

.distribution-center-page .content-stack > .coverage-card-grid {
  order: 3;
}

.distribution-center-page .content-stack > .coverage-card {
  order: 4;
}

.distribution-center-page .content-stack > .faq-grid {
  order: 5;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.site-footer-card {
  padding: 22px;
  border-radius: 24px;
}

.info-card p {
  margin: 0;
  font-size: 0.95rem;
}

.jump-link-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.jump-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid rgba(196, 205, 217, 0.92);
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.jump-link:hover,
.jump-link:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.page-tail {
  display: grid;
  gap: 14px;
}

.hero--compact {
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 14px;
  padding: 2px 0 0;
}

.hero--single {
  grid-template-columns: minmax(0, 1fr);
}

.hero--compact .hero-card {
  padding: 24px 24px 20px;
  border-radius: 26px;
}

.hero--compact .hero-side {
  padding: 18px;
  border-radius: 26px;
}

.hero--compact .hero-kicker {
  margin-bottom: 8px;
  font-size: 0.72rem;
}

.hero--compact .hero-title {
  font-size: clamp(1.55rem, 2.8vw, 2.55rem);
  line-height: 1.08;
}

.hero--compact .hero-lede {
  margin-top: 10px;
  font-size: 0.96rem;
  line-height: 1.55;
}

.hero--compact .hero-pill {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.84rem;
}

.hero--compact .hero-side-grid {
  gap: 10px;
}

.hero--compact .hero-stat {
  padding: 12px;
  border-radius: 18px;
}

.hero--compact .hero-stat-label {
  font-size: 0.7rem;
}

.hero--compact .hero-stat-value {
  margin-top: 6px;
  font-size: 1.18rem;
}

.hero--compact .hero-stat-copy {
  margin-top: 6px;
  font-size: 0.79rem;
  line-height: 1.35;
}

.hero--compact .hero-flow {
  margin-top: 10px;
  padding: 14px;
  border-radius: 20px;
}

.hero--compact .hero-flow-title {
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero--compact .hero-flow-step {
  grid-template-columns: 28px 1fr;
  gap: 8px;
}

.hero--compact .hero-flow-step-number {
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
}

.hero--compact .hero-flow-step-copy {
  font-size: 0.84rem;
  line-height: 1.4;
}

.page-tail .card-grid {
  gap: 12px;
}

.page-tail--support {
  margin-top: 16px;
}

.page-tail--support .hero-side {
  padding: 18px;
  border-radius: 24px;
}

.page-tail--support .hero-side-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-tail--support .hero-flow {
  margin-top: 12px;
}

.page-tail .info-card,
.page-tail .site-footer-card {
  padding: 18px;
  border-radius: 20px;
}

.page-tail .info-card h2,
.page-tail .info-card h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.page-tail .info-card p {
  font-size: 0.9rem;
  line-height: 1.55;
}

.page-tail .jump-link {
  min-height: 42px;
  border-radius: 16px;
  font-size: 0.88rem;
}

.explorer-heading {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.explorer-heading-copy--compact {
  display: grid;
  gap: 14px;
  width: min(100%, 980px);
  padding: 28px 30px;
  border: 1px solid rgba(196, 205, 217, 0.92);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 214, 139, 0.26), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 253, 0.96) 58%, rgba(223, 233, 247, 0.82));
  box-shadow: var(--shadow-md);
}

.explorer-heading-copy h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.explorer-heading-copy h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.08;
}

.explorer-heading-copy p {
  margin: 10px 0 0;
  font-size: 0.98rem;
  max-width: 760px;
}

.explorer-heading-note {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.explorer-heading-lede {
  margin: 0;
  max-width: 60ch;
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.6;
}

.explorer-heading-details {
  overflow: hidden;
  border: 1px solid rgba(196, 205, 217, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.explorer-heading-details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  color: var(--primary);
  font-weight: 800;
  transition: background 0.18s ease, color 0.18s ease;
}

.explorer-heading-details summary::after {
  content: "▾";
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(26, 51, 86, 0.06);
  color: var(--primary);
  font-size: 0.9rem;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.explorer-heading-details summary::-webkit-details-marker {
  display: none;
}

.explorer-heading-details summary:hover {
  background: rgba(26, 51, 86, 0.035);
}

.explorer-heading-details[open] summary {
  border-bottom: 1px solid rgba(196, 205, 217, 0.92);
  background: rgba(26, 51, 86, 0.04);
}

.explorer-heading-details[open] summary::after {
  transform: rotate(180deg);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}

.explorer-heading-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.8fr);
  gap: 16px;
  padding: 16px 18px 18px;
}

.explorer-heading-detail-grid p {
  margin: 0;
}

.explorer-heading-detail-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  line-height: 1.6;
}

.coverage-link-cloud--hero {
  margin-top: 0;
}

.coverage-link--accent {
  color: #fff;
  border-color: rgba(26, 51, 86, 0.08);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--shadow-md), var(--shadow-accent);
}

.coverage-card-grid {
  align-items: stretch;
}

.coverage-card {
  display: grid;
  gap: 12px;
}

.discovery-surface {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

.discovery-surface-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.discovery-surface-grid--balanced {
  align-items: start;
}

.discovery-surface-card {
  display: grid;
  gap: 12px;
}

.discovery-surface-card p {
  margin: 0;
  font-size: 0.94rem;
}

.discovery-group,
.support-card-group {
  display: grid;
  gap: 10px;
}

.discovery-group-label,
.support-card-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coverage-link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.coverage-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(196, 205, 217, 0.94);
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.84rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.coverage-link:hover,
.coverage-link:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.support-grid {
  align-items: stretch;
}

.support-card-stack {
  display: grid;
  gap: 14px;
}

.info-card--checklist {
  display: grid;
  gap: 14px;
}

.info-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  display: grid;
  gap: 10px;
  line-height: 1.6;
}

.page-tail-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-tail-links {
  display: grid;
  gap: 10px;
}

.page-tail-links .muted-copy {
  margin: 0;
}

.subject-highlight {
  scroll-margin-top: 18px;
}

.subject-highlight .gdist-subject-title {
  color: var(--accent);
}

.subject-highlight .table-responsive {
  border-radius: 20px;
  box-shadow: 0 0 0 3px rgba(122, 56, 40, 0.18);
}

.gdist-overlay {
  position: relative;
  inset: auto;
  display: block;
  padding: 0;
  opacity: 1;
  pointer-events: auto;
  background: transparent;
}

.gdist-modal {
  width: 100%;
  min-height: 720px;
  max-height: none;
  border-radius: 28px;
}

.gdist-overlay--standalone {
  position: relative;
  touch-action: auto;
  padding-bottom: max(112px, calc(env(safe-area-inset-bottom) + 112px));
}

.gdist-overlay--standalone .gdist-modal {
  min-height: 0;
  overflow: visible;
}

.gdist-modal-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background:
    radial-gradient(circle at top right, rgba(87, 130, 214, 0.14), transparent 38%),
    linear-gradient(135deg, rgba(26, 51, 86, 0.08), rgba(122, 56, 40, 0.05));
}

.gdist-modal-title {
  margin: 0;
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 800;
}

.gdist-modal-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.gdist-home-link {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(196, 205, 217, 0.95);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.gdist-home-link:hover,
.gdist-home-link:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(26, 51, 86, 0.24);
  box-shadow: var(--shadow-md);
}

.gdist-track-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.gdist-overlay--standalone .gdist-track-tabs {
  position: sticky;
  top: 10px;
  z-index: 10;
  margin: 0 0 14px;
  border: 1px solid rgba(196, 205, 217, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 32px rgba(15, 30, 51, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gdist-track-tab,
.gdist-sub-tab,
.distribution-tab {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-muted);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gdist-track-tab {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.gdist-track-tab:hover,
.gdist-track-tab:focus-visible,
.gdist-sub-tab:hover,
.gdist-sub-tab:focus-visible,
.distribution-tab:hover,
.distribution-tab:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(26, 51, 86, 0.22);
  box-shadow: var(--shadow-md);
}

.gdist-track-tab.active,
.gdist-track-tab[aria-current='page'],
.distribution-tab.active {
  background: linear-gradient(135deg, var(--primary), #284a74 58%, var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(15, 30, 51, 0.16), 0 4px 10px rgba(122, 56, 40, 0.12);
}

.gdist-modal-body,
.topic-history-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.topic-history-body {
  overscroll-behavior: contain;
}

.gdist-modal-body {
  padding: 20px 24px 28px;
}

.gdist-overlay--standalone .gdist-modal-body {
  overflow: visible;
  -webkit-overflow-scrolling: auto;
  overscroll-behavior: auto;
  touch-action: pan-y;
  padding-bottom: max(132px, calc(env(safe-area-inset-bottom) + 132px));
}

.gdist-subject-block {
  position: relative;
  margin-bottom: 16px;
  border: 1px solid rgba(187, 198, 214, 0.84);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(255, 212, 144, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 248, 253, 0.97));
  box-shadow: 0 18px 42px rgba(15, 30, 51, 0.06), 0 4px 12px rgba(15, 30, 51, 0.04);
  overflow: hidden;
  scroll-margin-top: 116px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.gdist-subject-block::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(26, 51, 86, 0.46), rgba(122, 56, 40, 0.3), rgba(26, 51, 86, 0));
  opacity: 0.92;
}

.gdist-subject-block:hover {
  transform: translateY(-1px);
  border-color: rgba(26, 51, 86, 0.2);
  box-shadow: 0 22px 44px rgba(15, 30, 51, 0.08), 0 6px 16px rgba(15, 30, 51, 0.05);
}

.gdist-subject-block.is-expanded {
  border-color: rgba(26, 51, 86, 0.24);
  background:
    radial-gradient(circle at top left, rgba(255, 212, 144, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(242, 247, 252, 0.98));
  box-shadow: 0 22px 46px rgba(15, 30, 51, 0.09), 0 6px 16px rgba(15, 30, 51, 0.05);
}

.gdist-subject-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px 18px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background 0.18s ease;
}

.gdist-subject-toggle:hover,
.gdist-subject-toggle:focus-visible {
  outline: none;
}

.gdist-subject-toggle:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(26, 51, 86, 0.12);
}

.gdist-subject-summary {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.gdist-subject-title-wrap {
  display: grid;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.gdist-subject-emoji {
  display: none;
}

.gdist-subject-title {
  color: var(--primary);
  font-size: 1.34rem;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.gdist-subject-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.gdist-subject-meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(183, 196, 214, 0.82);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 252, 0.96));
  color: rgba(66, 84, 108, 0.96);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 8px 18px rgba(15, 30, 51, 0.05);
}

.gdist-subject-meta-pill--range {
  border-color: rgba(26, 51, 86, 0.1);
  background: rgba(26, 51, 86, 0.05);
  color: rgba(26, 51, 86, 0.84);
}

.gdist-subject-meta-pill--count {
  border-color: rgba(122, 56, 40, 0.12);
  background: linear-gradient(180deg, rgba(122, 56, 40, 0.1), rgba(122, 56, 40, 0.06));
  color: var(--accent);
}

.gdist-subject-stats {
  display: none;
}

.gdist-subject-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(196, 205, 217, 0.92);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gdist-subject-chip--soft {
  background: rgba(26, 51, 86, 0.05);
  border-color: rgba(26, 51, 86, 0.1);
  color: var(--primary);
}

.gdist-subject-chip--accent {
  background: rgba(122, 56, 40, 0.1);
  border-color: rgba(122, 56, 40, 0.18);
  color: var(--accent);
}

.gdist-subject-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: 1px;
  border-radius: 999px;
  border: 1px solid rgba(26, 51, 86, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 245, 251, 0.96));
  color: var(--primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 8px 18px rgba(15, 30, 51, 0.06);
  font-size: 0.88rem;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.gdist-subject-block:hover .gdist-subject-chevron,
.gdist-subject-toggle:focus-visible .gdist-subject-chevron {
  border-color: rgba(26, 51, 86, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 10px 22px rgba(15, 30, 51, 0.08);
}

.gdist-subject-block.is-expanded .gdist-subject-chevron {
  transform: rotate(180deg);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.gdist-subject-content {
  display: grid;
  gap: 16px;
  padding: 0 20px 20px;
}

.gdist-subject-content[hidden] {
  display: none;
}

.gdist-sub-tabs,
.distribution-tabs,
.topic-history-badges,
.topic-history-years {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gdist-sub-tab {
  padding: 5px 12px;
  font-size: 0.75rem;
}

.gdist-sub-tab.active {
  background: var(--secondary);
  color: #fff;
  border-color: transparent;
}

.distribution-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(26, 51, 86, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 246, 252, 0.94));
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  box-shadow: 0 12px 28px rgba(19, 38, 67, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.distribution-table-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(26, 51, 86, 0.1);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(26, 51, 86, 0.06), rgba(122, 56, 40, 0.05));
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
}

.table-responsive {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  touch-action: pan-x pan-y;
  scrollbar-gutter: stable both-edges;
  border: 1px solid rgba(196, 205, 217, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  scrollbar-width: thin;
  scrollbar-color: rgba(26, 51, 86, 0.28) rgba(26, 51, 86, 0.08);
}

.table-responsive::-webkit-scrollbar {
  height: 10px;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(26, 51, 86, 0.08);
  border-radius: 999px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(26, 51, 86, 0.28);
  border-radius: 999px;
}

.distribution-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  font-size: 0.85rem;
  text-align: center;
  min-width: 760px;
}

.distribution-table th,
.distribution-table td {
  border: 1px solid var(--border);
  padding: 10px 8px;
}

.distribution-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.distribution-table td:first-child,
.distribution-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  text-align: left;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
}

.distribution-table th:first-child {
  z-index: 4;
  background: var(--primary);
  color: #fff;
}

.distribution-table tbody tr:nth-child(even) td {
  background: rgba(26, 51, 86, 0.02);
}

.distribution-table tbody tr:nth-child(even) td:first-child {
  background: #f8fafc;
}

.distribution-table tbody tr:hover td {
  background: rgba(26, 107, 90, 0.05);
}

.distribution-topic-button {
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(26, 51, 86, 0.1);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(250, 252, 255, 0.99), rgba(242, 247, 252, 0.96));
  color: var(--primary);
  text-align: left;
  text-decoration: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 12px 24px rgba(15, 30, 51, 0.06);
  scroll-margin-top: 124px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.distribution-topic-button::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 10px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(26, 51, 86, 0.84), rgba(17, 113, 92, 0.72));
  opacity: 0;
  transform: scaleY(0.6);
  transform-origin: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.distribution-topic-button:hover,
.distribution-topic-button:focus-visible {
  outline: none;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), var(--shadow-accent);
}

.distribution-topic-button:hover::before,
.distribution-topic-button:focus-visible::before {
  opacity: 1;
  transform: scaleY(1);
}

.distribution-topic-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.distribution-topic-label {
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.distribution-topic-subtitle {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.distribution-topic-badge {
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(26, 51, 86, 0.06);
  border: 1px solid rgba(26, 51, 86, 0.1);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.distribution-topic-button:hover .distribution-topic-subtitle,
.distribution-topic-button:hover .distribution-topic-badge,
.distribution-topic-button:focus-visible .distribution-topic-subtitle,
.distribution-topic-button:focus-visible .distribution-topic-badge {
  color: #fff;
}

.distribution-topic-button:hover .distribution-topic-badge,
.distribution-topic-button:focus-visible .distribution-topic-badge {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.24);
}

.topic-history-overlay,
.topic-source-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
}

.topic-history-overlay {
  padding: 20px;
  background: rgba(7, 13, 30, 0.65);
}

.topic-source-viewer-overlay {
  padding: 16px;
  background: rgba(7, 13, 30, 0.78);
}

.topic-history-overlay.open,
.topic-source-viewer-overlay.open {
  display: flex;
}

.topic-history-modal,
.topic-source-viewer-modal {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.topic-history-modal {
  width: min(620px, calc(100vw - 28px));
  max-height: min(calc(100vh - 28px), 820px);
  max-height: min(calc(100dvh - 28px), 820px);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  border-color: rgba(188, 198, 214, 0.82);
  background:
    radial-gradient(circle at top right, rgba(255, 213, 142, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 249, 253, 0.98));
  box-shadow: 0 28px 70px rgba(15, 30, 51, 0.22), 0 10px 30px rgba(15, 30, 51, 0.1);
}

.topic-history-header,
.topic-source-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(15, 30, 51, 0.1);
  background: linear-gradient(135deg, rgba(26, 51, 86, 0.08), rgba(122, 56, 40, 0.05));
}

.topic-history-kicker,
.topic-source-viewer-kicker {
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topic-history-title,
.topic-source-viewer-title {
  margin: 0;
  color: var(--primary);
  font-size: 1.08rem;
}

.topic-history-close,
.topic-source-viewer-close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(26, 51, 86, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 30, 51, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.topic-history-close:hover,
.topic-history-close:focus-visible,
.topic-source-viewer-close:hover,
.topic-source-viewer-close:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(26, 51, 86, 0.2);
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  box-shadow: 0 14px 28px rgba(15, 30, 51, 0.12);
}

.topic-history-body {
  padding: 18px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-gutter: stable both-edges;
}

.topic-history-summary {
  color: var(--primary);
  font-weight: 600;
}

.topic-history-badge,
.topic-history-year {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.012em;
  box-shadow: 0 10px 24px rgba(18, 34, 60, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.topic-history-badge {
  border: 1px solid rgba(26, 51, 86, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 252, 0.96));
  color: var(--primary);
}

.topic-history-year {
  border: 1px solid rgba(38, 95, 138, 0.14);
  background: linear-gradient(180deg, rgba(238, 246, 255, 0.98), rgba(230, 239, 250, 0.95));
  color: #23496e;
}


.topic-history-card {
  position: relative;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(193, 203, 217, 0.92);
  background:
    linear-gradient(180deg, rgba(249, 252, 255, 0.99), rgba(237, 244, 251, 0.96)),
    var(--surface);
  box-shadow: 0 16px 32px rgba(15, 30, 51, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.topic-history-card:hover {
  transform: translateY(-1px);
  border-color: rgba(26, 51, 86, 0.18);
  box-shadow: 0 22px 38px rgba(15, 30, 51, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.topic-history-card-year {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  padding-top: 6px;
}

.topic-history-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.topic-history-card-title {
  color: var(--primary);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.25;
}

.topic-history-card-meta,
.topic-history-card-source-label,
.muted-copy {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.topic-history-card-copy {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.6;
}

.topic-history-card-source {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.topic-history-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  margin-top: 12px;
}

.topic-history-card-link,
.topic-source-viewer-external {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(26, 51, 86, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 246, 252, 0.95));
  color: var(--primary);
  box-shadow: 0 12px 28px rgba(19, 38, 67, 0.1);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.topic-history-card-actions .topic-history-card-link {
  min-height: 42px;
  padding: 0 16px;
  flex: 1 1 188px;
}

.topic-history-card-link--viewer {
  order: -1;
  flex: 1 1 240px;
  min-height: 50px;
  padding: 0 20px;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary) 0%, #295887 54%, #3a6796 100%);
  color: #fff;
  box-shadow: 0 20px 40px rgba(23, 50, 81, 0.26);
}

.topic-history-card-link--resource {
  border-color: rgba(26, 51, 86, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 252, 0.94));
  color: var(--text-muted);
  box-shadow: 0 10px 20px rgba(15, 30, 51, 0.05);
}

.topic-history-card-link--video {
  position: relative;
  min-height: 50px;
  padding: 0 18px;
  border-color: transparent;
  background: linear-gradient(135deg, var(--video-primary) 0%, var(--video-secondary) 60%, #67cab5 100%);
  color: #fff;
  font-size: 0.84rem;
  text-shadow: 0 1px 0 rgba(5, 58, 48, 0.24);
  box-shadow: var(--video-shadow);
  isolation: isolate;
  overflow: hidden;
}

.topic-history-card-link--video::before {
  content: "▶";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  font-weight: 900;
  position: relative;
  z-index: 1;
}

.topic-history-card-link::after,
.topic-source-viewer-external::after {
  content: "↗";
  font-size: 0.92rem;
  opacity: 0.8;
}

.topic-history-card-link--viewer::after {
  content: "↗";
  font-size: 0.96rem;
  font-weight: 900;
  opacity: 0.9;
}

.topic-history-card-link--video::after {
  content: "İzle";
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.96;
  position: relative;
  z-index: 1;
}

.topic-history-card-source-label {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(26, 51, 86, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 249, 253, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.topic-history-card-link:hover,
.topic-history-card-link:focus-visible,
.topic-source-viewer-external:hover,
.topic-source-viewer-external:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(14, 125, 101, 0.24);
  box-shadow: 0 18px 32px rgba(18, 126, 101, 0.2);
  text-decoration: none;
}

.topic-history-card-link--viewer:hover,
.topic-history-card-link--viewer:focus-visible {
  border-color: transparent;
  box-shadow: 0 24px 44px rgba(23, 50, 81, 0.3);
}

.topic-history-card-link--video:hover,
.topic-history-card-link--video:focus-visible {
  border-color: transparent;
  box-shadow: 0 22px 42px rgba(15, 138, 114, 0.3);
}

.topic-history-empty {
  padding: 24px 0;
  color: var(--text-muted);
  text-align: center;
}

.topic-history-solution-panel {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(26, 51, 86, 0.12);
  background: rgba(26, 51, 86, 0.04);
}

.topic-history-solution-panel[hidden] {
  display: none;
}

.topic-history-solution-title {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.topic-history-solution-copy {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.55;
}

.topic-history-solution-section {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.topic-history-solution-section-title {
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topic-history-solution-list,
.topic-history-solution-steps {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.55;
}

.topic-history-solution-list {
  margin-top: 0;
}

.topic-history-solution-list li + li,
.topic-history-solution-steps li + li {
  margin-top: 6px;
}

.topic-history-solution-footnotes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.topic-history-solution-footnote {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(122, 56, 40, 0.16);
  background: rgba(122, 56, 40, 0.08);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
}

.topic-history-solution-footnote-link {
  text-decoration: none;
}

.gdist-scroll-rail {
  position: fixed;
  right: max(14px, calc(env(safe-area-inset-right) + 14px));
  bottom: max(14px, calc(env(safe-area-inset-bottom) + 14px));
  z-index: 60;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 247, 252, 0.9));
  box-shadow: 0 22px 46px rgba(15, 30, 51, 0.18), 0 8px 20px rgba(15, 30, 51, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.gdist-scroll-rail.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.gdist-scroll-button {
  min-width: 116px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(26, 51, 86, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(237, 244, 250, 0.97));
  color: var(--primary);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.gdist-scroll-button[data-gdist-scroll="1"] {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary) 0%, #245c83 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(23, 50, 81, 0.18);
}

.gdist-scroll-button:hover,
.gdist-scroll-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.gdist-scroll-button[data-gdist-scroll="1"]:hover,
.gdist-scroll-button[data-gdist-scroll="1"]:focus-visible {
  box-shadow: 0 20px 34px rgba(23, 50, 81, 0.24);
}

.gdist-scroll-button:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.topic-source-viewer-modal {
  width: min(1100px, calc(100vw - 32px));
  height: min(88vh, 900px);
  height: min(88dvh, 900px);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
}

.topic-source-viewer-body {
  flex: 1 1 auto;
  min-height: 0;
  background: #eef2f8;
}

.topic-source-viewer-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.topic-source-viewer-footer {
  display: flex;
  justify-content: flex-end;
  padding: 10px 16px 14px;
  border-top: 1px solid rgba(15, 30, 51, 0.1);
  background: rgba(26, 51, 86, 0.03);
}

.faq-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.faq-item {
  border-radius: 20px;
  border: 1px solid rgba(196, 205, 217, 0.92);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  color: var(--primary);
  font-weight: 800;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item-content {
  padding: 0 20px 20px;
  font-size: 0.95rem;
}

@media (max-width: 1080px) {
  .hero,
  .card-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .discovery-surface-grid {
    grid-template-columns: 1fr;
  }

  .jump-link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100%, calc(100% - 20px));
  }

  .topbar-inner,
  .hero-card,
  .hero-side,
  .info-card,
  .site-footer-card,
  .gdist-modal {
    border-radius: 22px;
  }

  .topbar-inner,
  .hero,
  .explorer-heading {
    align-items: flex-start;
  }

  .topbar-inner,
  .explorer-heading {
    flex-direction: column;
  }

  .hero-card {
    padding: 24px 20px 20px;
  }

  .hero-side {
    padding: 20px;
  }

  .hero--compact .hero-card {
    padding: 18px 16px 16px;
  }

  .hero--compact .hero-side {
    padding: 16px;
  }

  .hero--compact .hero-title {
    font-size: 1.45rem;
  }

  .hero--compact .hero-pill {
    min-height: 34px;
    font-size: 0.8rem;
  }

  .hero-side-grid,
  .jump-link-grid {
    grid-template-columns: 1fr;
  }

  .coverage-link-cloud {
    gap: 8px;
  }

  .coverage-link {
    width: 100%;
    justify-content: flex-start;
    min-height: 40px;
  }

  .discovery-surface {
    gap: 12px;
  }

  .gdist-overlay--standalone .gdist-track-tabs {
    top: 8px;
    margin-bottom: 10px;
    padding: 12px 16px;
    border: 1px solid rgba(196, 205, 217, 0.9);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
  }

  .gdist-track-tab {
    flex: 1 1 calc(33.333% - 6px);
    min-height: 40px;
    padding: 0 12px;
  }

  .gdist-modal-header {
    padding: 16px 16px 12px;
  }

  .gdist-modal-header-actions {
    gap: 8px;
  }

  .gdist-home-link {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .gdist-track-tabs,
  .gdist-modal-body {
    padding-inline: 16px;
  }

  .gdist-modal-body {
    padding-bottom: 20px;
  }

  .gdist-subject-block {
    margin-bottom: 14px;
    border-radius: 20px;
  }

  .gdist-subject-toggle {
    gap: 12px;
    padding: 16px 15px 15px;
  }

  .explorer-heading-copy--compact {
    padding: 22px 18px;
  }

  .gdist-subject-title {
    font-size: 1.08rem;
  }

  .explorer-heading-detail-grid {
    grid-template-columns: 1fr;
  }

  .gdist-subject-title-wrap {
    gap: 6px;
  }

  .gdist-subject-meta {
    gap: 6px;
  }

  .gdist-subject-meta-pill {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .gdist-subject-chevron {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  .gdist-subject-content {
    padding: 0 14px 14px;
  }

  .distribution-meta {
    font-size: 0.78rem;
  }

  .distribution-table-hint {
    font-size: 0.76rem;
  }

  .table-responsive {
    padding-bottom: 6px;
  }

  .distribution-table {
    min-width: 540px;
    font-size: 0.78rem;
  }

  .distribution-table th,
  .distribution-table td {
    padding: 8px 6px;
  }

  .distribution-table td:first-child,
  .distribution-table th:first-child {
    min-width: 188px;
  }

  .distribution-table th:not(:first-child),
  .distribution-table td:not(:first-child) {
    min-width: 44px;
  }

  .topic-history-overlay {
    padding: 12px;
    align-items: flex-start;
  }

  .topic-history-body {
    padding: 14px 16px 18px;
  }

  .topic-history-card {
    grid-template-columns: 64px 1fr;
    align-items: start;
  }

  .distribution-topic-button {
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .distribution-topic-label {
    font-size: 0.88rem;
  }

  .distribution-topic-subtitle {
    display: block;
    font-size: 0.68rem;
  }

  .distribution-topic-badge {
    min-width: 34px;
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.66rem;
  }

  .topic-history-card-actions {
    margin-top: 8px;
  }

  .topic-history-card-actions .topic-history-card-link {
    width: 100%;
    justify-content: center;
  }

  .gdist-scroll-rail {
    left: 12px;
    right: 12px;
    bottom: max(12px, calc(env(safe-area-inset-bottom) + 12px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
  }

  .gdist-scroll-button {
    min-width: 0;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.72rem;
  }

  .topic-source-viewer-overlay {
    padding: 0;
  }

  .topic-source-viewer-modal {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
  }
}

@media (pointer: coarse) {
  .gdist-overlay--standalone {
    padding-bottom: max(120px, calc(env(safe-area-inset-bottom) + 120px));
  }

  .gdist-overlay--standalone .gdist-modal-body {
    padding-bottom: max(152px, calc(env(safe-area-inset-bottom) + 152px));
  }

  .gdist-scroll-rail {
    display: none !important;
  }

  .topic-history-card-link--viewer,
  .topic-history-card-link--video,
  .gdist-scroll-button {
    min-height: 52px;
  }

  .topic-history-card-link--video::after {
    padding: 6px 12px;
  }
}
