/* Inter, latin-ext (variable; SIL Open Font License 1.1) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter, latin (variable; SIL Open Font License 1.1) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono, latin-ext (variable; SIL Open Font License 1.1) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono, latin (variable; SIL Open Font License 1.1) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0d0f13; --bg2: #13161c; --card: #171a21; --line: #262a33;
  --text: #eef0f3; --muted: #a3a8b3; --dim: #6d7380;
  --accent: #3987e5; --accent2: #5aa2ff; --teal: #2cc3b0; --amber: #f0b44c; --red: #ef6f6c;
  --radius: 16px; --max: 720px;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--text); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  background: radial-gradient(900px 500px at 50% -120px, rgba(57,135,229,.22), transparent 70%), var(--bg);
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.12; }
p { margin: 0; }
em { font-style: normal; background: linear-gradient(90deg, var(--accent2), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .86em; background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; word-break: break-all; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(16px, calc((100vw - 1180px) / 2));
  background: rgba(13,15,19,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 28px; height: 28px; color: var(--muted); }
.tag { font-size: 12px; font-weight: 600; color: var(--amber); border: 1px solid rgba(240,180,76,.4); background: rgba(240,180,76,.08); padding: 1px 8px; border-radius: 999px; }
.nav nav { display: flex; gap: 22px; font-size: 15px; }
.nav nav a { color: var(--muted); }
.nav nav a:hover { color: var(--text); text-decoration: none; }
.nav nav { align-items: center; }
/* Language menu: a dropdown with a flag and the short code, as on every TOG site. */
.langmenu { position: relative; }
.langmenu > summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); padding: 4px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; user-select: none; }
.langmenu > summary::-webkit-details-marker { display: none; }
.langmenu > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); }
.langmenu > summary:hover, .langmenu[open] > summary { border-color: var(--accent); }
.langmenu img { width: 20px; height: 14px; border-radius: 2px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.langmenu ul { position: absolute; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; min-width: 150px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.6); z-index: 20; }
.langmenu li button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 8px; background: none;
  color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.langmenu li button:hover, .langmenu li button[aria-current="true"] { background: rgba(255,255,255,.05); }
.langmenu li button b { font-weight: 700; min-width: 24px; }
.langmenu li button span { color: var(--muted); }

.wrap { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 64px 16px 24px; }
.intro { text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.pill.up { border-color: rgba(44,195,176,.35); background: rgba(44,195,176,.08); color: #9be8de; }
.pill.up .dot { background: var(--teal); animation: ping 2s infinite; }
.pill.down { border-color: rgba(240,180,76,.35); background: rgba(240,180,76,.08); color: #f5d08f; }
.pill.down .dot { background: var(--amber); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(44,195,176,.6); } 80%,100% { box-shadow: 0 0 0 10px rgba(44,195,176,0); } }
h1 { font-size: clamp(38px, 7vw, 60px); font-weight: 800; margin: 20px 0 14px; }
.lead { color: var(--muted); font-size: 18px; max-width: 540px; margin: 0 auto; }

.card { margin-top: 40px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)), var(--card);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.field { display: flex; gap: 8px; }
input {
  flex: 1; min-width: 0; font: 500 15px "JetBrains Mono", ui-monospace, monospace; color: var(--text);
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(57,135,229,.25); }
input.bad { border-color: var(--red); }
.paste { flex: none; font: 600 14px Inter, sans-serif; color: var(--text); background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; cursor: pointer; }
.paste:hover { border-color: var(--accent); }
.help { color: var(--dim); font-size: 14px; margin-top: 10px; }
.captcha { margin-top: 18px; }
.btn { width: 100%; margin-top: 20px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 14px 24px;
  border: 0; border-radius: 12px; font: 600 16px Inter, sans-serif; cursor: pointer; transition: transform .2s, box-shadow .2s, opacity .2s; }
.btn.primary { background: linear-gradient(135deg, var(--accent), #2463c9); color: #fff; box-shadow: 0 10px 30px -10px rgba(57,135,229,.7); }
.btn.primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 36px -12px rgba(57,135,229,.9); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.result { margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-size: 15px; border: 1px solid var(--line); background: var(--bg2); word-break: break-word; }
.result.ok { border-color: rgba(44,195,176,.4); background: rgba(44,195,176,.07); }
.result.warn { border-color: rgba(240,180,76,.4); background: rgba(240,180,76,.07); }
.result.err { border-color: rgba(239,111,108,.4); background: rgba(239,111,108,.07); }
.result b { display: block; margin-bottom: 2px; }
.result small { color: var(--muted); font-size: 13.5px; }

.facts { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); }
.facts div { padding: 18px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.facts b { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.facts span { color: var(--muted); font-size: 14px; }

.notes { margin-top: 36px; }
.notes h3 { font-size: 18px; margin-bottom: 12px; }
.notes ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15.5px; }
.notes li { margin-bottom: 10px; }
.notes li b { color: var(--text); }

.foot { width: 100%; max-width: var(--max); margin: 0 auto; padding: 32px 16px 40px; border-top: 1px solid var(--line); }
.disc { color: var(--dim); font-size: 13.5px; }
.help-line { color: var(--muted); font-size: 14.5px; margin-top: 14px; }
.copy { color: var(--dim); font-size: 13px; margin-top: 10px; }

@media (max-width: 600px) {
  .nav nav a { display: none; }
  .wrap { padding-top: 40px; }
  .card { padding: 20px; }
  .facts { grid-template-columns: 1fr; }
  .facts div { flex-direction: row; align-items: baseline; gap: 10px; }
  .facts b { font-size: 20px; }
}

/* Network bar: the same links in the same order on every The Only Grid site. */
.tog-bar { position: relative; z-index: 31; font: 500 13px/1 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: color-mix(in srgb, currentColor 4%, transparent); border-bottom: 1px solid color-mix(in srgb, currentColor 9%, transparent); }
.tog-bar-in { max-width: var(--max, 1200px); margin: 0 auto; padding: 0 6px; height: 34px; display: flex; align-items: center; gap: 2px;
  overflow-x: auto; scrollbar-width: none; }
.tog-bar-in::-webkit-scrollbar { display: none; }
.tog-bar a { flex: none; color: inherit; opacity: .66; text-decoration: none; padding: 7px 10px; border-radius: 6px; white-space: nowrap; }
.tog-bar a:hover { opacity: 1; text-decoration: none; background: color-mix(in srgb, currentColor 8%, transparent); }
.tog-bar a[aria-current="page"] { opacity: 1; font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent, #3987e5); border-radius: 0; }
.tog-bar a.tog-home { font-weight: 600; margin-right: 6px; }
@media (max-width: 480px) { .tog-bar { font-size: 12px; } .tog-bar a { padding: 7px 6px; } .tog-bar a.tog-home { margin-right: 0; } }
.tog-bar-in { max-width: 1180px; }
