/* Precision Controller Lab — low-specificity foundation */

:where(.gct-ui, .gct-public-page, .gct-auth-page, .gct-dashboard-page, .gct-admin-page) {
  min-width: 20rem;
  min-height: 100%;
  margin: 0;
  background: var(--gct-canvas);
  color: var(--gct-ink);
  font-family: var(--gct-font-sans);
  font-size: 1rem;
  line-height: var(--gct-line-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:where(.gct-ui, .gct-public-page, .gct-auth-page, .gct-dashboard-page, .gct-admin-page),
:where(.gct-ui, .gct-public-page, .gct-auth-page, .gct-dashboard-page, .gct-admin-page) *,
:where(.gct-ui, .gct-public-page, .gct-auth-page, .gct-dashboard-page, .gct-admin-page) *::before,
:where(.gct-ui, .gct-public-page, .gct-auth-page, .gct-dashboard-page, .gct-admin-page) *::after {
  box-sizing: border-box;
}

:where(.gct-ui, .gct-public-page, .gct-auth-page, .gct-dashboard-page, .gct-admin-page) :where(img, svg, canvas, video) {
  display: block;
  max-width: 100%;
}

:where(.gct-ui, .gct-public-page, .gct-auth-page, .gct-dashboard-page, .gct-admin-page) :where(button, input, select, textarea) {
  color: inherit;
  font: inherit;
}

:where(.gct-ui, .gct-public-page, .gct-auth-page, .gct-dashboard-page, .gct-admin-page) :where(button, select, summary) {
  cursor: pointer;
}

:where(.gct-ui, .gct-public-page, .gct-auth-page, .gct-dashboard-page, .gct-admin-page) :where(button, input, select, textarea):disabled {
  cursor: not-allowed;
  opacity: .56;
}

:where(.gct-ui, .gct-public-page, .gct-auth-page, .gct-dashboard-page, .gct-admin-page) a {
  color: var(--gct-blue-700);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

:where(.gct-ui, .gct-public-page, .gct-auth-page, .gct-dashboard-page, .gct-admin-page) a:hover {
  color: var(--gct-red-700);
}

:where(.gct-ui, .gct-public-page, .gct-auth-page, .gct-dashboard-page, .gct-admin-page) :where(h1, h2, h3, h4, p, ul, ol, dl, blockquote, figure) {
  margin-top: 0;
}

:where(.gct-ui, .gct-public-page, .gct-auth-page, .gct-dashboard-page, .gct-admin-page) :where(h1, h2, h3, h4) {
  color: var(--gct-navy-950);
  font-weight: 800;
  letter-spacing: var(--gct-letter-tight);
  line-height: var(--gct-line-heading);
  text-wrap: balance;
}

:where(.gct-ui, .gct-public-page, .gct-auth-page, .gct-dashboard-page, .gct-admin-page) h1 {
  font-size: var(--gct-font-size-3xl);
}

:where(.gct-ui, .gct-public-page, .gct-auth-page, .gct-dashboard-page, .gct-admin-page) h2 {
  font-size: var(--gct-font-size-2xl);
}

:where(.gct-ui, .gct-public-page, .gct-auth-page, .gct-dashboard-page, .gct-admin-page) h3 {
  font-size: var(--gct-font-size-xl);
}

:where(.gct-ui, .gct-public-page, .gct-auth-page, .gct-dashboard-page, .gct-admin-page) :focus-visible {
  outline: 3px solid var(--gct-focus);
  outline-offset: 3px;
}

.gct-container {
  width: min(calc(100% - 2.5rem), var(--gct-public-max));
  margin-inline: auto;
}

.gct-reading-container {
  width: min(calc(100% - 2.5rem), var(--gct-reading-max));
  margin-inline: auto;
}

.gct-app-container {
  width: min(100%, var(--gct-dashboard-max));
  margin-inline: auto;
}

.gct-stack {
  display: flex;
  flex-direction: column;
  gap: var(--gct-space-4);
}

.gct-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gct-space-3);
}

.gct-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gct-space-4);
}

.gct-grid {
  display: grid;
  gap: var(--gct-space-4);
}

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

.gct-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gct-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gct-muted {
  color: var(--gct-muted);
}

.gct-mono {
  font-family: var(--gct-font-mono);
  font-variant-numeric: tabular-nums;
}

.gct-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.gct-skip-link {
  position: fixed;
  z-index: 10000;
  top: var(--gct-space-3);
  left: var(--gct-space-3);
  min-height: 2.75rem;
  padding: .625rem 1rem;
  transform: translateY(-160%);
  border-radius: var(--gct-radius-sm);
  background: var(--gct-surface);
  box-shadow: var(--gct-shadow-md);
  color: var(--gct-navy-950);
  font-weight: 800;
  text-decoration: none;
}

.gct-skip-link:focus {
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

@media (max-width: 64rem) {
  .gct-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 48rem) {
  .gct-container,
  .gct-reading-container {
    width: min(calc(100% - 1.5rem), var(--gct-public-max));
  }

  .gct-grid--2,
  .gct-grid--3,
  .gct-grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .gct-split {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.gct-ui, .gct-public-page, .gct-auth-page, .gct-dashboard-page, .gct-admin-page),
  :where(.gct-ui, .gct-public-page, .gct-auth-page, .gct-dashboard-page, .gct-admin-page) *,
  :where(.gct-ui, .gct-public-page, .gct-auth-page, .gct-dashboard-page, .gct-admin-page) *::before,
  :where(.gct-ui, .gct-public-page, .gct-auth-page, .gct-dashboard-page, .gct-admin-page) *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

