/* The browser tools (/what-is-my-ip, /ping-test, the calculators …) and the /tools hub. Builds on marketing.css
   (.page-section, .faq) and tools.css (.tool-steps, .tool-field). Everything here is scoped to .uc-net pages. */
.uc-net { --uc: #8fc4ff; --good: #6ee7a8; --warn: #f7c46c; --bad: #ff8a8a; --card: #0d0e13; --well: #ffffff07; }
.uc-net a:focus-visible, .uc-net button:focus-visible { outline: 2px solid var(--uc); outline-offset: 2px; }

/* ---------- Hero: copy beside the live tool, no frame around either ---------- */
.nt-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: start; gap: 64px; padding: 56px 0 24px; }
.nt-hero:not(.wide) .nt-hero-copy { padding-top: 48px; }
.nt-hero-glow { position: absolute; z-index: -1; inset: -60px -10% -40px 30%; pointer-events: none; background: radial-gradient(48% 52% at 58% 46%, color-mix(in srgb, var(--uc) 16%, transparent), transparent 70%), radial-gradient(36% 40% at 82% 70%, #7b5cf01f, transparent 72%); filter: blur(8px); }
.nt-hero-copy { min-width: 0; }
.nt-kicker { display: flex; align-items: center; gap: 8px; color: var(--uc); }
.site .nt-hero .eyebrow { margin: 0; font: 600 13px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--uc); }
.nt-kicker svg { flex: none; }
.site .nt-hero h1 { margin: 18px 0 0; font-size: clamp(44px, 5.4vw, 74px); font-weight: 690; line-height: 1; letter-spacing: -.045em; text-wrap: balance; max-width: 14ch; }
.site .nt-hero .page-lead { margin: 22px 0 0 !important; max-width: 40ch; font-size: 19px; line-height: 1.6; text-wrap: pretty; color: #c9c9d6; text-align: start; }
.nt-hero-tool { display: grid; justify-items: end; min-width: 0; }
.nt-hero.wide { grid-template-columns: minmax(0, 1fr); gap: 40px; }
.nt-hero.wide .nt-hero-glow { inset: 120px 5% -40px 5%; }
.site .nt-hero.wide h1 { max-width: 16ch; }
.site .nt-hero.wide .page-lead { max-width: 56ch; }
.nt-hero.wide .nt-hero-tool { justify-items: stretch; }
.nt-hero.wide .nt-card { max-width: none; }

/* ---------- The tool card ---------- */
.nt-card { position: relative; width: 100%; max-width: 580px; min-width: 0; padding: 28px; border: 1px solid #ffffff17; border-radius: 26px;
  background: radial-gradient(90% 60% at 100% 0, color-mix(in srgb, var(--uc) 10%, transparent), transparent 60%), linear-gradient(180deg, #ffffff08, #ffffff02 40%), var(--card);
  box-shadow: inset 0 1px 0 #ffffff12, 0 60px 120px -50px #000, 0 24px 48px -32px #000; }
.nt-card > :first-child { margin-top: 0; }
.nt-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.nt-phase { color: var(--uc); }
.nt-big { display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; }
.site .nt-big output, .site .nt-big strong { min-width: 0; font: 700 clamp(28px, 3.4vw, 42px)/1.1 var(--mono); letter-spacing: -.03em; color: var(--text); overflow-wrap: anywhere; }
.nt-card[data-state="error"] .nt-big output { font-family: inherit; font-size: 19px; font-weight: 600; line-height: 1.45; letter-spacing: 0; color: var(--warn); }
.nt-card[data-state="error"] .nt-copy { display: none; }
.nt-copy { flex: none; min-height: 34px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: #ffffff08; color: var(--text); font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; transition: background-color .15s; }
.nt-copy:hover { background: #ffffff14; }

/* Facts: label on the left, value on the right, hairlines between. */
.nt-facts { display: grid; margin: 20px 0 0; border-top: 1px solid var(--border); }
.nt-facts div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.nt-facts dt { font-size: 14px; color: var(--text-3); }
.nt-facts dd { margin: 0; min-width: 0; font: 600 14px/1.45 var(--mono); color: var(--text); overflow-wrap: anywhere; }

/* The primary action. */
.nt-run { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border: 0; border-radius: 14px; background: linear-gradient(180deg, #b4d8ff, #84b9f2); color: #06111e; font-family: inherit; font-size: 16px; font-weight: 660; cursor: pointer; box-shadow: inset 0 1px 0 #ffffffb0, 0 12px 32px -12px color-mix(in srgb, var(--uc) 70%, transparent); transition: transform .15s, filter .15s; }
.nt-run:hover { filter: brightness(1.06); }
.nt-run:active { transform: translateY(1px); }
.nt-run:disabled { cursor: progress; filter: saturate(.6) brightness(.85); }
.nt-run:disabled::before { content: ""; width: 14px; height: 14px; border: 2px solid #06111e55; border-top-color: #06111e; border-radius: 50%; animation: nt-spin .8s linear infinite; }
.nt-card[data-state="running"] [data-pg-run] { background: #ffffff12; color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.nt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; }
.nt-actions .nt-hint { margin: 0; }
.site .nt-tally { margin: 0 0 0 auto; font-size: 14px; color: var(--text-3); }
.nt-tally b { font: 650 14px var(--mono); color: var(--text); }
@keyframes nt-spin { to { transform: rotate(360deg); } }

.site .nt-hint { margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-3); }
.site .nt-you { margin: 18px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-3); overflow-wrap: anywhere; }
.nt-you code, .nt-table code { font: 13px var(--mono); color: var(--text); background: #ffffff0d; padding: 2px 6px; border-radius: 6px; white-space: normal; overflow-wrap: anywhere; }
.site .nt-result-label { margin: 22px 0 6px; font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }

/* A verdict: an icon in the result's tone, the headline and the explanation. */
.nt-result { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-content: start; column-gap: 12px; margin-top: 18px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--tone, var(--uc)) 28%, transparent); border-radius: 16px; background: color-mix(in srgb, var(--tone, var(--uc)) 7%, transparent); animation: nt-in .35s ease-out; }
.nt-result.good { --tone: var(--good); } .nt-result.warn { --tone: var(--warn); } .nt-result.bad { --tone: var(--bad); }
.nt-result > svg { grid-row: span 2; margin-top: 1px; color: var(--tone, var(--uc)); }
.site .nt-verdict { margin: 0; font-size: 19px; font-weight: 660; line-height: 1.3; letter-spacing: -.01em; color: var(--text); text-wrap: balance; }
.site .nt-why { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.nt-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.nt-results .nt-result { margin: 0; }
@keyframes nt-in { from { opacity: 0; transform: translateY(4px); } }

/* Result tables, inside the card. */
.nt-table-wrap { margin-top: 14px; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--well); }
.nt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nt-table th { padding: 10px 14px; text-align: start; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--border); }
.nt-table td { padding: 11px 14px; vertical-align: top; color: var(--text); border-bottom: 1px solid var(--border); }
.nt-table tr:last-child td { border-bottom: 0; }
@media (min-width: 641px) { [data-tool="mac"] .nt-table td:first-child code { white-space: nowrap; } }
.nt-table small { display: block; margin-top: 2px; color: var(--text-3); font: 500 12px var(--mono); }
.nt-small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--text-3); }

/* Rows of label, value and an optional note. */
.nt-rows { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.site .nt-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; margin: 0; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 15px; line-height: 1.45; color: var(--text-2); max-width: none; }
.site .nt-rows li:has(em) { grid-template-columns: minmax(0, 1fr) auto auto; }
.nt-rows b { font: 650 15px var(--mono); color: var(--text); text-align: end; }
.nt-rows em { min-width: 4.5rem; font-style: normal; font: 600 13px var(--mono); color: var(--text-3); text-align: end; }

/* Stat tiles. */
.nt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; }
.nt-stats div { min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--well); }
.nt-stats dt { font-size: 13px; color: var(--text-3); }
.nt-stats dd { margin: 4px 0 0; font: 680 22px/1.1 var(--mono); letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.nt-stats div:first-child dd { color: var(--uc); }

/* Latency chart: one bar per sample, on faint quarter lines. Empty, it shows a ghost of what's coming. */
.nt-bars { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 140px; padding: 10px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), #ffffff0b calc(25% - 1px) 25%) content-box, var(--well); }
.nt-bars:empty::before { content: ""; position: absolute; inset: 10px; opacity: .5; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 100' preserveAspectRatio='none'%3E%3Cg fill='%23ffffff' fill-opacity='.07'%3E%3Crect x='0' y='70' width='4' height='30' rx='1.5'/%3E%3Crect x='6' y='64' width='4' height='36' rx='1.5'/%3E%3Crect x='12' y='72' width='4' height='28' rx='1.5'/%3E%3Crect x='18' y='60' width='4' height='40' rx='1.5'/%3E%3Crect x='24' y='68' width='4' height='32' rx='1.5'/%3E%3Crect x='30' y='74' width='4' height='26' rx='1.5'/%3E%3Crect x='36' y='66' width='4' height='34' rx='1.5'/%3E%3Crect x='42' y='70' width='4' height='30' rx='1.5'/%3E%3Crect x='48' y='48' width='4' height='52' rx='1.5'/%3E%3Crect x='54' y='69' width='4' height='31' rx='1.5'/%3E%3Crect x='60' y='73' width='4' height='27' rx='1.5'/%3E%3Crect x='66' y='65' width='4' height='35' rx='1.5'/%3E%3Crect x='72' y='71' width='4' height='29' rx='1.5'/%3E%3Crect x='78' y='67' width='4' height='33' rx='1.5'/%3E%3Crect x='84' y='62' width='4' height='38' rx='1.5'/%3E%3Crect x='90' y='70' width='4' height='30' rx='1.5'/%3E%3Crect x='96' y='75' width='4' height='25' rx='1.5'/%3E%3Crect x='102' y='68' width='4' height='32' rx='1.5'/%3E%3Crect x='108' y='63' width='4' height='37' rx='1.5'/%3E%3Crect x='114' y='71' width='4' height='29' rx='1.5'/%3E%3Crect x='120' y='66' width='4' height='34' rx='1.5'/%3E%3Crect x='126' y='72' width='4' height='28' rx='1.5'/%3E%3Crect x='132' y='58' width='4' height='42' rx='1.5'/%3E%3Crect x='138' y='69' width='4' height='31' rx='1.5'/%3E%3Crect x='144' y='73' width='4' height='27' rx='1.5'/%3E%3Crect x='150' y='67' width='4' height='33' rx='1.5'/%3E%3Crect x='156' y='70' width='4' height='30' rx='1.5'/%3E%3Crect x='162' y='64' width='4' height='36' rx='1.5'/%3E%3Crect x='168' y='72' width='4' height='28' rx='1.5'/%3E%3Crect x='174' y='68' width='4' height='32' rx='1.5'/%3E%3Crect x='180' y='74' width='4' height='26' rx='1.5'/%3E%3Crect x='186' y='65' width='4' height='35' rx='1.5'/%3E%3Crect x='192' y='70' width='4' height='30' rx='1.5'/%3E%3Crect x='198' y='52' width='4' height='48' rx='1.5'/%3E%3Crect x='204' y='69' width='4' height='31' rx='1.5'/%3E%3Crect x='210' y='71' width='4' height='29' rx='1.5'/%3E%3Crect x='216' y='66' width='4' height='34' rx='1.5'/%3E%3Crect x='222' y='73' width='4' height='27' rx='1.5'/%3E%3Crect x='228' y='68' width='4' height='32' rx='1.5'/%3E%3Crect x='234' y='70' width='4' height='30' rx='1.5'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.nt-bars i { flex: 0 0 4px; min-height: 3px; border-radius: 2px 2px 1px 1px; background: linear-gradient(180deg, #b9dbff, #6fa8e8); animation: nt-grow .25s ease-out; transform-origin: bottom; }
.nt-bars i.down { background: linear-gradient(180deg, #c8b6ff, #9a7ef0); }
.nt-bars i.up { background: linear-gradient(180deg, #ffd890, #e8ad4c); }
.nt-bars i.miss { background: color-mix(in srgb, var(--bad) 80%, transparent); }
[data-tool="ping"] .nt-bars { justify-content: space-between; }
[data-tool="ping"] .nt-bars i { flex: 1 1 0; max-width: 10px; }
@keyframes nt-grow { from { transform: scaleY(0); } }
.nt-progress { height: 3px; margin-top: 10px; border-radius: 3px; background: #ffffff0d; overflow: hidden; }
.nt-progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); border-radius: inherit; background: var(--uc); transition: width .25s linear; }
.nt-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-3); }
.site .nt-legend li { margin: 0; font-size: 13px; }
.nt-legend li::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-inline-end: 6px; border-radius: 3px; background: #8fc4ff; }
.nt-legend li.down::before { background: #b096fa; }
.nt-legend li.up::before { background: #f7c46c; }

/* Before a result: a faint outline of the table to come, shimmering while the test runs. */
.nt-ghost { display: grid; gap: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--well); overflow: hidden; }
.nt-ghost span, .nt-ghost i { display: block; height: 44px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, #ffffff0d 0 28%, transparent 28% 34%, #ffffff09 34% 70%, transparent 70% 76%, #ffffff07 76% 92%, transparent 92%) 14px 50% / calc(100% - 28px) 10px no-repeat; }
.nt-ghost span { height: 36px; background-size: calc(100% - 28px) 6px; opacity: .7; }
.nt-ghost i:last-child { border-bottom: 0; }
.nt-ghost i:nth-child(3) { opacity: .7; } .nt-ghost i:nth-child(4) { opacity: .45; }
.nt-card:has(.nt-run:disabled) .nt-ghost i { animation: nt-pulse 1.2s ease-in-out infinite alternate; }
.nt-card:has(.nt-result) .nt-ghost { display: none; }
@keyframes nt-pulse { to { opacity: .25; } }

/* Inputs inside a card. */
.nt-card .tool-field { display: grid; gap: 8px; min-width: 0; margin-top: 18px; }
.nt-card .tool-field > span { font-size: 14px; font-weight: 560; color: var(--text-2); }
.nt-card input, .nt-card textarea, .nt-card select { width: 100%; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: 12px; background: #07080b; color: var(--text); font: 16px/1.3 var(--mono); color-scheme: dark; transition: border-color .15s, box-shadow .15s; }
.nt-card select { appearance: none; -webkit-appearance: none; padding-inline-end: 36px; font-family: inherit; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.nt-card textarea { display: block; min-height: 104px; resize: vertical; line-height: 1.5; }
.nt-card :is(input, textarea, select):hover { border-color: #ffffff38; }
.nt-card :is(input, textarea, select):focus-visible { outline: none; border-color: var(--uc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--uc) 25%, transparent); }
.nt-card input::placeholder, .nt-card textarea::placeholder { color: #5d5e6c; }
.nt-pair { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem; gap: 8px; }
.nt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.nt-chip { min-height: 34px; padding: 0 13px; border: 1px solid var(--border); border-radius: 999px; background: #ffffff06; color: var(--text-2); font-family: inherit; font-size: 14px; font-weight: 560; line-height: 1; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.nt-chip:hover { background: #ffffff10; border-color: var(--border-strong); color: var(--text); }
.nt-chip[aria-pressed="true"] { border-color: color-mix(in srgb, var(--uc) 50%, transparent); background: color-mix(in srgb, var(--uc) 14%, transparent); color: var(--text); }

/* A total split by what makes it up: one stacked bar, and a matching swatch on each row. */
.nt-stack { display: flex; gap: 2px; height: 10px; margin-top: 18px; border-radius: 5px; overflow: hidden; background: #ffffff0d; }
.nt-stack i { flex-basis: 0; min-width: 3px; transition: flex-grow .3s ease; }
.nt-sw { display: inline-block; width: 9px; height: 9px; margin-inline-end: 9px; border-radius: 3px; vertical-align: 1px; }
.nt-stack .c0, .nt-sw.c0 { background: #8fc4ff; } .nt-stack .c1, .nt-sw.c1 { background: #b096fa; } .nt-stack .c2, .nt-sw.c2 { background: #6ee7a8; }
.nt-stack .c3, .nt-sw.c3 { background: #f7c46c; } .nt-stack .c4, .nt-sw.c4 { background: #ff9fb5; } .nt-stack .c5, .nt-sw.c5 { background: #7fe0e0; }
.site .nt-big strong.nt-up { font-size: clamp(20px, 2.2vw, 26px); color: var(--text-2); }

/* Calculators with a list: inputs on the left, the answer pinned on the right. */
.nt-calc { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.nt-calc-main { min-width: 0; }
.nt-calc-side { position: sticky; top: 100px; min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: 20px; background: var(--well); }
.nt-calc-side > :first-child, .nt-calc-side [data-c-result] > :first-child { margin-top: 0; }
.nt-list { margin-top: 18px; border-top: 1px solid var(--border); }
.nt-calc .nt-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.nt-activity { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--text-2); cursor: pointer; }
.nt-activity small { display: block; margin-top: 1px; font: 500 12px var(--mono); color: var(--text-3); }
.nt-activity.on .nt-name { color: var(--text); }
.nt-activity.on input { border-color: color-mix(in srgb, var(--uc) 45%, transparent); }
.nt-card .nt-activity input { min-height: 40px; padding: 6px 10px; text-align: end; }

/* ---------- Page sections ---------- */
/* Reference tables. */
.nt-ref-wrap { margin-top: 32px; overflow-x: auto; border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(180deg, #ffffff06, #ffffff02); }
.nt-ref { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.nt-ref th { padding: 14px 20px; text-align: start; vertical-align: bottom; font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); background: #ffffff05; border-bottom: 1px solid var(--border); white-space: nowrap; }
.nt-ref td { padding: 15px 20px; vertical-align: top; color: var(--text-2); border-bottom: 1px solid var(--border); }
.nt-ref tr:last-child td { border-bottom: 0; }
.nt-ref td:first-child { color: var(--text); font-weight: 560; }
.nt-ref.num td:not(:first-child), .nt-ref.num th:not(:first-child) { font-family: var(--mono); font-size: 15px; text-align: end; font-variant-numeric: tabular-nums; }
.nt-ref tbody tr { transition: background-color .15s; }
.nt-ref tbody tr:hover { background: #ffffff05; }
.site .nt-ref code { font-size: 14px; }

/* Three steps sit in one row. */
.uc-net .tool-steps:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) { .uc-net .tool-steps:has(> li:nth-child(3):last-child) { grid-template-columns: minmax(0, 1fr); } }

/* "What each line means": definition cards. */
.site .nt-defs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; margin: 32px 0 0; padding: 0; list-style: none; }
.site .nt-defs li { margin: 0; padding: 20px 22px; max-width: none; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(180deg, #ffffff06, #ffffff02); font-size: 16px; line-height: 1.55; color: var(--text-2); }
.site .nt-defs strong { display: block; margin-bottom: 4px; font-size: 17px; color: var(--text); }

/* Text beside a Terminal. */
.nt-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: center; }
.nt-split > :not(.uc-term) { grid-column: 1; }
.nt-split > .uc-term { grid-column: 2; grid-row: 1 / span 6; align-self: center; box-shadow: 0 40px 80px -40px #000; }
.site .nt-split > p { font-size: 17px; }

/* More checks: the related tools as cards, then the whole index by group. */
.nt-next { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 32px 0 0 !important; padding: 0 !important; list-style: none; }
.site .nt-next li { display: flex; margin: 0; max-width: none; }
.nt-next a { position: relative; min-width: 0; display: grid; align-content: start; gap: 8px; width: 100%; padding: 22px; border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(180deg, #ffffff07, #ffffff02); color: inherit; text-decoration: none; transition: border-color .2s, background-color .2s, transform .2s; }
.nt-next a:hover { border-color: var(--border-strong); background-color: #ffffff06; transform: translateY(-2px); }
.nt-ico { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 8px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--uc) 22%, transparent); background: color-mix(in srgb, var(--uc) 10%, transparent); color: var(--uc); }
.nt-next strong { font-size: 17px; font-weight: 620; color: var(--text); }
.nt-next a > span:last-child { font-size: 15px; line-height: 1.5; color: var(--text-3); }
.nt-index { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: 28px 24px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.site .nt-index h3 { margin: 0; font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.nt-index ul { margin: 12px 0 0 !important; padding: 0 !important; list-style: none; display: grid; gap: 8px; }
.site .nt-index li { margin: 0; font-size: 15px; line-height: 1.4; }
.nt-index a { color: var(--text-2); text-decoration: none; }
.nt-index a:hover { color: var(--text); }
.nt-index [aria-current] { color: var(--uc); }

/* FAQ: heading on the left, questions on the right. */
.site.uc-net .faq { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 2fr); gap: 24px 64px; align-items: start; max-width: none; margin: 0; padding-top: 112px; }
.uc-net .faq .section-head { position: sticky; top: 110px; margin: 0; padding: 0; text-align: start; }
.site.uc-net .faq .section-head h2 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.035em; }
.uc-net .faq-list { max-width: none; margin: 0; }
.site.uc-net .faq summary { padding: 22px 4px; font-size: 18px; }

/* Sources. */
.nt-sources ol { counter-reset: src; display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.site .nt-sources li { counter-increment: src; display: grid; grid-template-columns: 2rem minmax(0, 1fr); margin: 0; font-size: 15px; line-height: 1.5; }
.nt-sources li::before { content: counter(src, decimal-leading-zero); font: 500 13px/1.7 var(--mono); color: var(--text-3); }
.nt-sources a { color: var(--text-2); text-decoration: underline; text-decoration-color: #ffffff2e; text-underline-offset: 3px; overflow-wrap: anywhere; }
.nt-sources a:hover { color: var(--text); text-decoration-color: currentColor; }
.site .nt-sources > h2 { font-size: 24px; letter-spacing: -.02em; }
.site .nt-sources .uc-note { margin-top: 16px; font-size: 14px; }

/* ---------- The /tools hub ---------- */
.nt-hub-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 48px; padding: 64px 0 8px; }
.nt-peek { display: block; max-width: 440px; justify-self: end; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.nt-peek:hover { border-color: #ffffff2e; transform: translateY(-2px); }
.nt-peek { position: relative; }
.nt-peek-arrow { position: absolute; top: 26px; right: 26px; color: var(--text-3); transition: transform .2s, color .2s; }
[dir="rtl"] .nt-peek-arrow { right: auto; left: 26px; transform: scaleX(-1); }
.nt-peek:hover .nt-peek-arrow { color: var(--uc); transform: translateX(3px); }
[dir="rtl"] .nt-peek:hover .nt-peek-arrow { transform: scaleX(-1) translateX(3px); }
.site .nt-peek .nt-big output { font-size: clamp(22px, 2.4vw, 30px); }
.site .nt-peek[data-state="error"] .nt-big output { font-size: 16px; }
.nt-peek[data-state="error"] [data-f="network"] { display: none; }
.nt-peek-name p { margin: 0; }
.site .nt-peek-name { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--uc); }
.nt-group .nt-next:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nt-hub-hero .nt-hero-glow { inset: -80px 0 -120px 20%; }
.site .nt-hub-hero h1 { margin: 18px 0 0; font-size: clamp(44px, 5.6vw, 76px); font-weight: 690; line-height: 1; letter-spacing: -.045em; max-width: 14ch; text-wrap: balance; }
.site .nt-hub-hero .eyebrow { margin: 0; font: 600 13px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--uc); }
.site .nt-hub-hero .page-lead { margin: 22px 0 0 !important; max-width: 48ch; font-size: 19px; text-align: start; color: #c9c9d6; }
.nt-group { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr); gap: 24px 48px; padding-top: 64px; margin-top: 64px; border-top: 1px solid var(--border); }
.nt-group:first-of-type { margin-top: 48px; }
.site .nt-group h2 { margin: 0; font-size: 26px; font-weight: 660; letter-spacing: -.025em; line-height: 1.15; }
.site .nt-group header p { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: var(--text-3); max-width: 30ch; }
.nt-group .nt-next { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0 !important; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1060px) {
  .nt-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; }
  .nt-hero-tool { justify-items: stretch; }
  .nt-card { max-width: none; }
  .nt-hero-glow, .nt-hero.wide .nt-hero-glow, .nt-hub-hero .nt-hero-glow { inset: 160px 0 -40px 0; }
  .nt-next { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nt-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nt-split { grid-template-columns: minmax(0, 1fr); }
  .nt-split > .uc-term { grid-column: 1; grid-row: auto; margin-top: 24px; }
  .nt-group { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .nt-calc { grid-template-columns: minmax(0, 1fr); }
  .nt-calc-side { position: static; order: -1; }
  .uc-net .faq { grid-template-columns: minmax(0, 1fr); }
  .uc-net .faq .section-head { position: static; }
  .nt-hub-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .nt-peek { justify-self: stretch; max-width: none; }
}
@media (max-width: 640px) {
  .nt-hero { padding-top: 28px; gap: 28px; }
  .site .nt-hero .page-lead, .site .nt-hub-hero .page-lead { font-size: 17px; }
  .nt-card { padding: 20px 18px; border-radius: 22px; }
  .nt-facts div { grid-template-columns: 1fr; gap: 2px; }
  .nt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nt-results { grid-template-columns: minmax(0, 1fr); }
  .nt-calc .nt-list { grid-template-columns: minmax(0, 1fr); }
  .nt-calc-side { padding: 18px; }
  .nt-next, .nt-group .nt-next, .nt-group .nt-next:has(> li:nth-child(3):last-child) { grid-template-columns: minmax(0, 1fr); }
  .nt-next a { grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; padding: 18px; }
  .nt-next .nt-ico { grid-row: span 2; margin: 0; }
  .nt-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nt-ref { font-size: 15px; }
  .nt-ref th, .nt-ref td { padding: 12px 14px; }
  /* Two-column text tables become one card per row. */
  .nt-ref.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nt-ref.stack tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .nt-ref.stack tr:last-child { border-bottom: 0; }
  .nt-ref.stack td { display: block; padding: 0; border: 0; }
  .nt-ref.stack td + td { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .nt-result, .nt-bars i, .nt-card:has(.nt-run:disabled) .nt-ghost i { animation: none; }
  .nt-stack i, .nt-peek, .nt-peek-arrow { transition: none; }
  .nt-run:disabled::before { animation-duration: 2.4s; }
  .nt-next a, .nt-progress i, .nt-run, .nt-chip { transition: none; }
  .nt-next a:hover { transform: none; }
}
