/* status.golfapi.dev. Built on G-Technica (assets/g-technica/index.css): its tokens, Geist, gt-uptime-bars,
   gt-status-pill and gt-tooltip. This file adds the page layout and the dark theme, which G-Technica does not ship. */

:root {
  color-scheme: light;
  --st-max: 760px;
  --st-gutter: 32px;
  --st-up: var(--gt-color-green-600);
  --st-degraded: var(--gt-color-warning-solid);
  --st-down: var(--gt-color-danger-solid);
  --st-none: var(--gt-color-track);
  }

/* Dark theme: the system setting, or the toggle (data-theme on <html>). Same token names, dark values. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --gt-color-ink: #E4F2E8;
    --gt-color-ink-2: #C3D3C8;
    --gt-color-ink-3: #9FB5A6;
    --gt-color-muted: #8DA394;
    --gt-color-faint: #6C8173;
    --gt-color-surface: #0B1210;
    --gt-color-raised: #111A17;
    --gt-color-surface-tint: #13201B;
    --gt-color-rule: rgba(228, 242, 232, .16);
    --gt-color-rule-soft: rgba(228, 242, 232, .11);
    --gt-color-rule-faint: rgba(228, 242, 232, .06);
    --gt-color-rule-strong: rgba(228, 242, 232, .26);
    --gt-color-track: rgba(228, 242, 232, .1);
    --gt-color-green-700: #5DBB6E;
    --gt-color-green-600: #3FB16A;
    --gt-color-success-tint: rgba(63, 177, 106, .16);
    --gt-color-success-text: #8FD86A;
    --gt-color-warning-tint: rgba(227, 179, 65, .18);
    --gt-color-warning-text: #F0C866;
    --gt-color-danger-tint: rgba(240, 110, 60, .18);
    --gt-color-danger-text: #FF9B73;
    --gt-color-danger-solid: #F0643A;
    --gt-color-info-tint: rgba(124, 196, 214, .16);
    --gt-color-info-text: #9CCBEA;
    --gt-color-header: rgba(11, 18, 16, .86);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --gt-color-ink: #E4F2E8;
  --gt-color-ink-2: #C3D3C8;
  --gt-color-ink-3: #9FB5A6;
  --gt-color-muted: #8DA394;
  --gt-color-faint: #6C8173;
  --gt-color-surface: #0B1210;
  --gt-color-raised: #111A17;
  --gt-color-surface-tint: #13201B;
  --gt-color-rule: rgba(228, 242, 232, .16);
  --gt-color-rule-soft: rgba(228, 242, 232, .11);
  --gt-color-rule-faint: rgba(228, 242, 232, .06);
  --gt-color-rule-strong: rgba(228, 242, 232, .26);
  --gt-color-track: rgba(228, 242, 232, .1);
  --gt-color-green-700: #5DBB6E;
  --gt-color-green-600: #3FB16A;
  --gt-color-success-tint: rgba(63, 177, 106, .16);
  --gt-color-success-text: #8FD86A;
  --gt-color-warning-tint: rgba(227, 179, 65, .18);
  --gt-color-warning-text: #F0C866;
  --gt-color-danger-tint: rgba(240, 110, 60, .18);
  --gt-color-danger-text: #FF9B73;
  --gt-color-danger-solid: #F0643A;
  --gt-color-info-tint: rgba(124, 196, 214, .16);
  --gt-color-info-text: #9CCBEA;
  --gt-color-header: rgba(11, 18, 16, .86);
}

.st-wordmark-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .st-wordmark-light { display: none; }
  :root:not([data-theme="light"]) .st-wordmark-dark { display: block; }
}
:root[data-theme="dark"] .st-wordmark-light { display: none; }
:root[data-theme="dark"] .st-wordmark-dark { display: block; }

@media (max-width: 680px) { :root { --st-gutter: 16px; } }

/* Base */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; background: var(--gt-color-surface); color: var(--gt-color-ink); font-family: var(--gt-font-sans); font-size: 15px; line-height: 1.6; }
h1, h2, h3 { margin: 0; font-weight: 600; color: var(--gt-color-ink); }
h1 { font-size: 22px; line-height: 1.3; letter-spacing: -.02em; }
h2 { font-size: 17px; letter-spacing: -.015em; }
h3 { font-size: 15px; line-height: 1.4; }
p { margin: 0; }
a { color: var(--gt-color-green-700); text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid var(--gt-color-green-700); outline-offset: 3px; border-radius: 2px; }
.st-wrap { box-sizing: border-box; width: 100%; max-width: var(--st-max); margin-inline: auto; padding-inline: var(--st-gutter); }
.st-muted { color: var(--gt-color-ink-3); font-size: 13.5px; }
.st-skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--gt-color-raised); color: var(--gt-color-ink); }
.st-skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* Header */
.st-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 32px 28px; }
.st-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gt-color-ink); }
.st-wordmark { width: 150px; height: auto; }
.st-brand-label { padding-left: 12px; border-left: 1px solid var(--gt-color-rule); font-size: 15px; line-height: 18px; color: var(--gt-color-ink-3); }
.st-subscribe { flex: none; }

main { padding-block: 8px 56px; }

/* State glyph: a filled circle in the state's color with a mark knocked out in the surface color. */
.st-icon { flex: none; display: block; }
.st-icon circle { fill: var(--st-up); }
.st-icon path { stroke: var(--gt-color-surface); }
.st-icon[data-state="degraded"] circle { fill: var(--st-degraded); }
.st-icon[data-state="outage"] circle { fill: var(--st-down); }
.st-icon[data-state="maintenance"] circle, .st-icon[data-state="unknown"] circle { fill: var(--gt-color-info-text); }

/* Overall */
.st-banner { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border: 1px solid var(--gt-color-rule); border-radius: 10px; background: var(--gt-color-raised); box-shadow: 0 1px 2px var(--gt-color-rule-faint); }
.st-banner[data-tone="up"] { border-color: color-mix(in srgb, var(--st-up) 45%, var(--gt-color-rule)); background: var(--gt-color-success-tint); }
.st-banner[data-tone="degraded"] { border-color: color-mix(in srgb, var(--st-degraded) 60%, var(--gt-color-rule)); background: var(--gt-color-warning-tint); }
.st-banner[data-tone="down"] { border-color: color-mix(in srgb, var(--st-down) 55%, var(--gt-color-rule)); background: var(--gt-color-danger-tint); }
.st-banner h1 { flex: 1; min-width: 0; font-size: 20px; letter-spacing: -.02em; }
.st-updated { font-size: 13px; color: var(--gt-color-ink-3); white-space: nowrap; }
@media (max-width: 560px) {
  .st-banner { flex-wrap: wrap; padding: 18px; gap: 10px 12px; }
  .st-banner h1 { font-size: 18px; }
  .st-updated { flex-basis: 100%; padding-left: 36px; }
}

.st-section { margin-top: 40px; }
.st-section:first-of-type { margin-top: 0; }
.st-banner + .st-section { margin-top: 24px; }
.st-section > h2 { margin-bottom: 8px; }

/* Components */
.st-components { list-style: none; margin: 0; padding: 0; border: 1px solid var(--gt-color-rule); border-radius: 10px; background: var(--gt-color-raised); }
.st-component { padding: 18px 22px 16px; }
.st-component + .st-component { border-top: 1px solid var(--gt-color-rule-soft); }
.st-component-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.st-component-head h3 { font-weight: 500; }
.st-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gt-color-ink-3); white-space: nowrap; }
.st-detail { margin-top: 4px; font-size: 13.5px; color: var(--gt-color-ink-2); }
.st-bars { margin-top: 12px; height: 30px; cursor: default; }
.st-bars > span { background: var(--st-up); min-width: 0; }
.st-bars > span[data-state="degraded"] { background: var(--st-degraded); }
.st-bars > span[data-state="down"] { background: var(--st-down); }
.st-bars > span[data-state="none"] { background: var(--st-none); }
.st-bars > span:hover, .st-bars > span.is-active { opacity: .7; }
.st-bars-scale { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--gt-color-muted); white-space: nowrap; }
.st-scale-rule { flex: 1; height: 1px; background: var(--gt-color-rule-faint); }
.st-scale-30 { display: none; }
@media (max-width: 640px) {
  .st-component { padding: 16px; }
  .st-bars { gap: 3px; }
  .st-bars > span:nth-child(-n+60) { display: none; }
  .st-scale-90 { display: none; }
  .st-scale-30 { display: inline; }
}
.st-tip { position: fixed; max-width: 260px; pointer-events: none; background: #0B1210; color: #E4F2E8; line-height: 1.5; }

/* Incidents */
.st-incident { padding: 16px 22px; border: 1px solid var(--gt-color-rule); border-radius: 10px; background: var(--gt-color-raised); display: grid; gap: 4px; }
.st-incident + .st-incident { margin-top: 12px; }
.st-incident header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.st-incident h3 a { color: var(--gt-color-ink); text-decoration: none; }
.st-incident h3 a:hover { text-decoration: underline; }
.st-incident[data-tone="danger"] h3 a { color: var(--gt-color-danger-text); }
.st-incident[data-tone="warning"] h3 a { color: var(--gt-color-warning-text); }

.st-days { list-style: none; margin: 0; padding: 0; }
.st-day { padding: 14px 0; border-top: 1px solid var(--gt-color-rule-soft); display: grid; gap: 4px; }
.st-day h3 { font-size: 14px; font-weight: 500; }
.st-day-item { display: grid; gap: 2px; }
.st-day-item + .st-day-item { margin-top: 10px; }
.st-days > .st-day-item { padding: 14px 0; border-top: 1px solid var(--gt-color-rule-soft); margin: 0; }
.st-day-item > a { font-weight: 600; color: var(--gt-color-ink); }
.st-more { padding-top: 14px; border-top: 1px solid var(--gt-color-rule-soft); font-size: 14px; }
.st-back { margin-bottom: 16px; font-size: 14px; }
.st-incident-page { display: grid; gap: 8px; }
.st-updates { list-style: none; margin: 16px 0 0; padding: 0; }
.st-updates li { display: grid; grid-template-columns: 120px 1fr; gap: 4px 24px; padding: 16px 0; border-top: 1px solid var(--gt-color-rule-soft); }
.st-updates li > div { display: grid; gap: 2px; }
.st-update-status { font-weight: 600; }
@media (max-width: 560px) { .st-updates li { grid-template-columns: 1fr; } }

/* Footer */
.st-footer-inner { display: flex; gap: 20px; padding-block: 8px 48px; font-size: 13px; }
.st-footer a { color: var(--gt-color-ink-3); }
