/* 19216811ip.host — base styles. System fonts only, no external requests.
   Palette comes from the router itself: WAN-port blue for actions, LAN-port amber for
   warnings, status-LED green for "it worked", and the white label sticker on the
   underside of every router as the signature component (.label). */

:root {
  --paper: #f4f6f8;
  --surface: #ffffff;
  --ink: #18222e;
  --muted: #566372;
  --rule: #d6dde4;
  --wan: #1d5fd1;
  --wan-dark: #164aa6;
  --led: #17955a;
  --lan: #c98a0b;
  --lan-wash: #fdf4e0;
  --radius-control: 10px;
  --radius-label: 6px;
  --measure: 40rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--font);
}

img { max-width: 100%; height: auto; }

a { color: var(--wan); text-underline-offset: 0.15em; }
a:hover { color: var(--wan-dark); }

:focus-visible { outline: 3px solid var(--wan); outline-offset: 2px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: 0.5rem 0.75rem; z-index: 10; }

.wrap { width: 100%; max-width: 46rem; margin: 0 auto; padding: 0 1.125rem; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--rule); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 1.6rem; height: 1.3rem; flex: none; }
.brand-mark .bm-body { fill: var(--ink); }
.brand-mark .bm-led { fill: #2bd17e; }
.brand-mark .bm-ant { stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.site-nav { display: flex; gap: 0.9rem; font-size: 0.9375rem; }
/* Phones: brand + two links on one row; "Find my IP" stays in the footer and the home page tiles. */
@media (max-width: 26rem) { .header-row { flex-wrap: nowrap; } .site-nav { gap: 0.85rem; white-space: nowrap; } .site-nav a:nth-child(3) { display: none; } }
.site-nav a { color: var(--muted); text-decoration: none; padding: 0.35rem 0; }
.site-nav a:hover { color: var(--ink); }

/* Main column */
main { padding-top: 1.25rem; padding-bottom: 3rem; }
main > * { max-width: var(--measure); }
main > .tool, main > .wide { max-width: none; }

.crumbs { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.75rem; }
.crumbs a { color: var(--muted); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); font-weight: 800; letter-spacing: -0.025em; margin: 0 0 0.5rem; }
h2 { font-size: 1.4rem; font-weight: 750; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.125rem; margin: 1.5rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1rem; }
li + li { margin-top: 0.35rem; }

.lede { font-size: 1.125rem; color: var(--muted); }
.updated { margin-top: 3rem; font-size: 0.875rem; color: var(--muted); }

/* Numerals: IP addresses are the typographic signature */
.ip { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; }

/* Tool shell: the hero block on every tool page */
.tool { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 1.125rem; margin: 1rem 0 1.5rem; }
.tool > :last-child { margin-bottom: 0; }

/* Address-bar control: looks like the field people type the IP into */
.addressbar { display: flex; align-items: stretch; border: 2px solid var(--ink); border-radius: var(--radius-control); overflow: hidden; background: var(--surface); }
.addressbar .scheme { display: flex; align-items: center; padding: 0 0.6rem; color: var(--muted); background: var(--paper); border-right: 1px solid var(--rule); font-size: 0.9375rem; }
.addressbar input { flex: 1; min-width: 0; border: 0; padding: 0.8rem 0.75rem; font: 700 1.375rem/1.2 var(--font); font-variant-numeric: tabular-nums; color: var(--ink); background: transparent; }
.addressbar input:focus { outline: none; }
.addressbar:focus-within { box-shadow: 0 0 0 3px rgba(29, 95, 209, 0.25); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0.7rem 1.15rem; border: 0; border-radius: var(--radius-control); background: var(--wan); color: #fff; font: 600 1.0625rem/1.2 var(--font); text-decoration: none; cursor: pointer; }
.button:hover { background: var(--wan-dark); color: #fff; }
.button.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--rule); }
.button.secondary:hover { border-color: var(--ink); color: var(--ink); }
.button.block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.75rem; }

/* Form controls */
label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
input[type="text"], input[type="search"], select { width: 100%; min-height: 3rem; padding: 0.6rem 0.75rem; border: 1px solid #aeb9c4; border-radius: var(--radius-control); background: var(--surface); color: var(--ink); font: 1.0625rem/1.3 var(--font); }
.field { margin-bottom: 0.9rem; }
.hint { font-size: 0.9375rem; color: var(--muted); margin: 0.35rem 0 0; }

/* Choice chips (brand, device, symptom pickers) */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0.5rem 0 0; list-style: none; }
.chips li + li { margin-top: 0; }
.chip { min-height: 2.75rem; padding: 0.5rem 0.9rem; border: 1px solid #aeb9c4; border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 0.9375rem/1.2 var(--font); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* The router label sticker: the signature component for default credentials */
.label { position: relative; background: #fff; border: 1px solid #c4ccd4; border-radius: var(--radius-label); padding: 0.9rem 1rem 0.8rem; margin: 1rem 0; box-shadow: 0 1px 0 #c4ccd4, 0 2px 0 #e6eaee; }
.label-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 700; padding-bottom: 0.5rem; margin-bottom: 0.5rem; border-bottom: 1px dashed #c4ccd4; }
.label-title small { font-weight: 400; color: var(--muted); }
.label dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0; }
.label dt { color: var(--muted); }
.label dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; word-break: break-word; }
.label .copy { margin-left: 0.4rem; padding: 0.1rem 0.45rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--muted); font: 0.8125rem var(--font); cursor: pointer; }

/* Notes and status */
.note { border-left: 4px solid var(--lan); background: var(--lan-wash); padding: 0.75rem 0.9rem; border-radius: 0 var(--radius-label) var(--radius-label) 0; margin: 1rem 0; }
.ok { border-left-color: var(--led); background: #e8f5ee; }
.note > :last-child { margin-bottom: 0; }

/* Real sequences only: login and reset steps */
ol.steps { counter-reset: step; list-style: none; padding: 0; }
ol.steps > li { counter-increment: step; position: relative; padding-left: 2.6rem; margin-top: 0.9rem; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0.05rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 0.9375rem; display: grid; place-items: center; }

/* Tables (scroll sideways on small phones instead of squashing) */
.table-scroll { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--rule); border-radius: var(--radius-label); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { background: var(--paper); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* Disclosure (FAQ, troubleshooting) */
details { border-top: 1px solid var(--rule); padding: 0.75rem 0; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 600; min-height: 2rem; }
details[open] summary { margin-bottom: 0.5rem; }

/* Link cards: task tiles on the home page, address guides on the lookup page */
.tasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; list-style: none; padding: 0; margin: 0.75rem 0 0; }
.tasks li + li { margin-top: 0; }
.tasks a { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 0.15rem; min-height: 4.25rem; height: 100%; padding: 0.7rem 1.6rem 0.7rem 0.85rem; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 650; line-height: 1.25; box-shadow: 0 1px 0 rgba(24, 34, 46, 0.04); }
.tasks a::after { content: "›"; position: absolute; right: 0.7rem; top: 50%; transform: translateY(-55%); font-size: 1.4rem; font-weight: 400; color: var(--muted); }
.tasks .task-icon { width: 1.6rem; height: 1.6rem; margin-bottom: 0.3rem; color: var(--wan); }
.tasks a span { font-weight: 400; font-size: 0.875rem; color: var(--muted); }
.tasks a:hover { border-color: var(--wan); }
.tasks a:active { transform: translateY(1px); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); background: var(--surface); font-size: 0.9375rem; color: var(--muted); }
.footer-row { padding-top: 1.5rem; padding-bottom: 2rem; }
@media (min-width: 40rem) { .footer-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; } .footer-row > p { grid-column: 1 / -1; } }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-bottom: 0.75rem; }
.footer-row nav p { flex-basis: 100%; margin: 0; font-weight: 600; color: var(--ink); }
.footer-row a { color: var(--muted); }

@media (min-width: 40rem) {
  .tool { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
