.gt-page {
  --gt-ink: var(--ink, #14253d);
  --gt-muted: var(--muted, #40536b);
  --gt-bg: var(--bg, #f4f6f9);
  --gt-surface: var(--surface, #fff);
  --gt-line: var(--line, #b7c4d4);
  --gt-accent: var(--accent-strong, #0a3161);
  --gt-crimson: #b31942;
  background: var(--gt-bg);
  color: var(--gt-ink);
}

.gt-shell { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

.gt-hero {
  background: var(--gt-surface);
  border-bottom: 1px solid var(--gt-line);
}

.gt-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  padding-block: clamp(36px, 6vw, 84px) clamp(36px, 5vw, 64px);
}

.gt-eyebrow,
.gt-index-label,
.gt-track,
.gt-milestone strong {
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.gt-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--gt-accent);
}

.gt-eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--gt-crimson); }

.gt-page :is(h1, h2, h3) {
  margin: 0;
  font-family: var(--font-display, "Barlow Condensed", "Arial Narrow", sans-serif);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.03;
}

.gt-page h1 { font-size: clamp(3.25rem, 7vw, 5.75rem); }
.gt-intro {
  max-width: 35rem;
  margin: 16px 0 0;
  color: var(--gt-muted);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.45;
}

.gt-index {
  display: grid;
  gap: 6px;
  justify-items: start;
  border-left: 1px solid var(--gt-line);
  padding: 4px 0 4px 25px;
  color: var(--gt-accent);
}

.gt-index-number {
  font-family: var(--font-display, "Barlow Condensed", "Arial Narrow", sans-serif);
  font-size: 4.25rem;
  font-weight: 600;
  line-height: .8;
  font-variant-numeric: tabular-nums;
}

.gt-projects { padding-block: clamp(30px, 4vw, 52px) clamp(48px, 7vw, 92px); }
.gt-section-heading { margin-bottom: 23px; }
.gt-section-heading h2 { font-size: clamp(2rem, 3.5vw, 2.7rem); }
.gt-section-heading p { margin: 8px 0 0; color: var(--gt-muted); }

.gt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.gt-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--gt-line);
  border-radius: 8px;
  background: var(--gt-surface);
}

.gt-thumbnail {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #101f34;
}

.gt-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(16px, 2vw, 24px);
}

.gt-track { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--gt-accent); }
.gt-track span {
  min-width: 27px;
  border: 1px solid var(--gt-line);
  border-radius: 3px;
  padding: 2px 4px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.gt-card h3 { font-size: clamp(1.625rem, 3vw, 2rem); }
.gt-summary { margin: 10px 0 16px; color: var(--gt-muted); line-height: 1.48; }
.gt-milestone {
  margin: auto 0 14px;
  padding-top: 14px;
  border-top: 1px solid var(--gt-line);
  color: var(--gt-muted);
  line-height: 1.48;
}

.gt-milestone strong { display: block; margin-bottom: 5px; color: var(--gt-ink); }

.gt-download {
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--gt-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gt-download:hover { text-decoration-thickness: 2px; }
.gt-download:focus-visible { outline-offset: 3px; }
.gt-download span { text-decoration: none; }

.crawl-main:has(> .gt-page) { width: 100%; margin: 0; padding: 0; }
.crawl-nav a[aria-current="page"][href="/gt"] { color: var(--crawl-brand); text-decoration: underline; }

@media (max-width: 990px) {
  .gt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .gt-shell { width: calc(100% - 32px); }
  .gt-grid, .gt-hero-layout { grid-template-columns: minmax(0, 1fr); }
  .gt-index { display: none; }
}

.gt-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
}

.gt-demo-link,
.gt-demo-close,
.gt-demo-full {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
}

.gt-demo-link {
  gap: 8px;
  padding: 0 13px;
  border-radius: 4px;
  background: var(--gt-crimson);
  color: #fff;
  text-decoration: none;
}

.gt-demo-link:hover { background: #921335; color: #fff; }

.gt-demo-viewer {
  position: fixed;
  inset: 0;
  width: min(1180px, calc(100% - 32px));
  height: min(900px, calc(100% - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gt-line);
  border-radius: 8px;
  background: var(--gt-surface);
  color: var(--gt-ink);
  box-shadow: 0 22px 80px rgb(0 0 0 / .35);
}

.gt-demo-viewer:not([open]) { display: none; }
.gt-demo-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.gt-demo-viewer::backdrop { background: rgb(4 14 28 / .75); }

.gt-demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 16px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--gt-line);
}

.gt-demo-bar .gt-demo-title { font-size: clamp(1.45rem, 3vw, 1.9rem); }
.gt-demo-tools { display: flex; align-items: center; gap: 14px; }
.gt-demo-tools form { margin: 0; }
.gt-demo-full { color: var(--gt-accent); text-decoration: underline; text-underline-offset: 3px; }
.gt-demo-close {
  padding-inline: 13px;
  border: 1px solid var(--gt-line);
  border-radius: 4px;
  color: var(--gt-ink);
  background: var(--gt-bg);
  cursor: pointer;
}

.gt-demo-close:hover { border-color: var(--gt-accent); }
.gt-demo-frame { min-height: 0; }
.gt-demo-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (max-width: 620px) {
  .gt-demo-viewer { width: calc(100% - 12px); height: calc(100% - 12px); }
  .gt-demo-bar { padding-inline: 10px; }
}

.gt-build-labs { padding-top: 0; }

.gt-concept-panel {
  margin-block: clamp(22px, 4vw, 44px) 0;
  padding: clamp(16px, 3vw, 26px);
  background: var(--gt-surface);
  border: 1px solid var(--gt-line);
  border-radius: 8px;
}

.gt-concept-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.gt-concept-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.gt-concept-head p { margin: 6px 0 0; color: var(--gt-muted); }
.gt-concept-browse {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  font-weight: 700;
  color: var(--gt-accent);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.gt-concept-form { display: grid; gap: 6px; margin-top: 16px; }
.gt-concept-form label { font-weight: 700; }
.gt-concept-controls { display: flex; align-items: stretch; gap: 8px; max-width: 38rem; }
.gt-concept-controls input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: .55rem .75rem;
  border: 1px solid var(--gt-line);
  border-radius: 4px;
  background: var(--gt-bg);
  color: var(--gt-ink);
  font: inherit;
}
.gt-concept-controls input::placeholder { color: var(--gt-muted); opacity: 1; }

.gt-concept-clear {
  min-height: 44px;
  padding-inline: .8rem;
  border: 1px solid var(--gt-line);
  border-radius: 4px;
  background: var(--gt-surface);
  color: var(--gt-accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.gt-concept-status { margin: .75rem 0 .25rem; color: var(--gt-muted); }
.gt-concept-status:empty { margin: 0; }
.gt-concept-list, .gt-concept-links { margin: 0; padding: 0; list-style: none; }
.gt-concept-row { border-top: 1px solid var(--gt-line); }
.gt-concept-row summary {
  min-height: 44px;
  padding-block: .6rem;
  color: var(--gt-ink);
  font-weight: 700;
  cursor: pointer;
}
.gt-concept-topic { display: block; margin-left: 1rem; color: var(--gt-muted); font-size: .875rem; font-weight: 400; }

.gt-concept-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 8px;
  padding-bottom: .8rem;
}

.gt-concept-links a {
  display: grid;
  align-content: start;
  gap: 3px;
  height: 100%;
  min-height: 44px;
  padding: .65rem .75rem;
  border: 1px solid var(--gt-line);
  border-radius: 4px;
  background: var(--gt-bg);
  color: var(--gt-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .15em;
  overflow-wrap: anywhere;
}
.gt-concept-links a span { color: var(--gt-muted); font-size: .85rem; font-weight: 400; }
.gt-concept-links a:hover, .gt-concept-clear:hover { border-color: var(--gt-accent); }
.gt-concept-panel :focus-visible, .gt-directory-mast a:focus-visible { outline: 2px solid var(--gt-accent, currentColor); outline-offset: 3px; }
.gt-concept-panel [hidden] { display: none !important; }

.gt-directory-body {
  margin: 0;
  color-scheme: light;
  background: #f4f6f9;
  color: #14253d;
  font: 1rem/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.gt-directory-body * { box-sizing: border-box; }
.gt-directory-mast { border-top: 3px solid #b31942; border-bottom: 1px solid #b7c4d4; background: #fff; }
.gt-directory-mast .gt-shell { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 0 16px; padding-block: 8px; }
.gt-directory-mast a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-weight: 700; text-underline-offset: .2em; }
.gt-directory-mast span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.gt-directory { padding-block: clamp(28px, 6vw, 68px); }
.gt-directory .gt-shell { max-width: 930px; }
.gt-directory h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); }

@media (prefers-color-scheme: dark) {
  .gt-directory-body { color-scheme: dark; background: #0a1729; color: #f1f5fb; }
  .gt-directory-mast { background: #11253d; border-bottom-color: #44617e; }
  .gt-directory {
    --gt-ink: #f1f5fb;
    --gt-muted: #c1d2e4;
    --gt-bg: #0a1729;
    --gt-surface: #11253d;
    --gt-line: #44617e;
    --gt-accent: #9bdbff;
  }
}

.gt-concept-form { grid-template-columns: minmax(0, 1fr); }
.gt-concept-controls { min-width: 0; width: 100%; }

.gt-concept-copy {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: .35rem .85rem;
  margin: 0 0 .8rem;
  padding: .6rem .75rem;
  border-inline-start: 3px solid var(--gt-line);
  color: var(--gt-ink);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.gt-concept-copy dt { font-weight: 700; }
.gt-concept-copy dd { margin: 0; max-width: 68ch; }

@media (max-width: 420px) {
  .gt-concept-copy { grid-template-columns: minmax(0, 1fr); row-gap: .15rem; }
  .gt-concept-copy dd + dt { margin-top: .35rem; }
}

.gt-concept-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  max-width: 38rem;
  margin-top: .25rem;
}

.gt-concept-filters label {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .25rem;
}

.gt-concept-filters select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .45rem .55rem;
  border: 1px solid var(--gt-line);
  border-radius: 4px;
  background: var(--gt-bg);
  color: var(--gt-ink);
  font: inherit;
  font-weight: 400;
}

@media (max-width: 420px) {
  .gt-concept-filters { grid-template-columns: minmax(0, 1fr); }
}
