:root {
  color-scheme: light;
  --ink: #252525;
  --muted: #5d6570;
  --line: #d5d5d5;
  --paper: #ffffff;
  --wash: #eeeeee;
  --panel: #f3f3f3;
  --brand: #337ab7;
  --brand-dark: #286090;
  --success: #449d44;
  --success-dark: #398439;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--brand); text-decoration: none; }
a:hover, a:focus { color: var(--brand-dark); text-decoration: underline; }

.stage-banner {
  padding: .55rem 1rem;
  color: #fff;
  background: #6c3c00;
  text-align: center;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.site-header {
  padding: .85rem 1rem .65rem;
  text-align: center;
}

.brand { display: inline-block; }
.brand img {
  display: block;
  width: min(600px, 92vw);
  height: auto;
}

.site-nav {
  color: #c8c8c8;
  background: #222;
  border-bottom: 3px solid #aaa;
}

.nav-inner {
  width: min(85%, 92rem);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.site-nav a {
  padding: .95rem .85rem;
  color: #c8c8c8;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #fff;
  background: #080808;
  text-decoration: none;
}

main {
  width: min(85%, 92rem);
  min-height: 62vh;
  margin: 0 auto;
  padding: 2rem 0 3.5rem;
}

h1, h2 { line-height: 1.16; }
h1 { margin: .35rem 0 1rem; font-size: clamp(2rem, 5vw, 3.8rem); }
h2 { font-size: 1.3rem; }
p { max-width: 72ch; }
.eyebrow {
  margin: 0;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(15rem, 1fr);
  gap: 2rem;
  align-items: start;
}

.home-primary { min-width: 0; }

.subpage-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(15rem, 1fr);
  gap: 2rem;
  align-items: start;
}

.subpage-primary { min-width: 0; }
.site-sidebar {
  min-width: 0;
  position: sticky;
  top: 1rem;
}

.home-panel {
  margin-bottom: 1.8rem;
  padding: clamp(1.4rem, 3vw, 3rem);
  background: var(--panel);
  border: 1px solid #e2e2e2;
  border-radius: .35rem;
}

.home-panel h1 {
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 750;
  text-transform: uppercase;
}

.home-panel li { margin: .2rem 0; }
.home-feature-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 32rem;
  object-fit: cover;
  object-position: center;
  border-radius: .2rem;
}
.home-panel-service h1 { text-align: center; }
.panel-action { max-width: none; margin: 1.5rem 0 0; text-align: right; }

.site-sidebar > p { text-align: center; }
.ip-address-box,
.guide-box,
.safety {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: .25rem;
}

.ip-address-box { background: #ace6ff; }
.ip-address-box h2 { margin: 0 0 .65rem; text-transform: uppercase; }
.ip-address-box code { font-size: 1rem; font-weight: 700; word-break: break-all; }

.guide-box {
  padding: 1rem 0;
  text-align: center;
}
.guide-box h2 { font-size: 2rem; text-transform: uppercase; }
.guide-box ul { margin: 0; padding: 0; list-style: none; }
.guide-box li { padding: .75rem .25rem; border-bottom: 1px solid var(--line); }
.guide-box li:last-child { border-bottom: 0; }
.guide-box a { font-size: 1.05rem; font-weight: 700; }
.guide-box span {
  display: inline-block;
  margin-right: .35rem;
  padding: .1rem .35rem;
  color: #fff;
  background: #777;
  border-radius: .2rem;
  font-size: .7rem;
  text-transform: uppercase;
}

.safety {
  margin-top: 2rem;
  background: #f7fbf8;
  border: 1px solid #cfe3d7;
  border-left: .35rem solid var(--success);
}

.tool-heading { max-width: 55rem; }
.tool-heading p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.tool-heading h1,
.article h1 { font-size: clamp(2rem, 5vw, 3.8rem); }

.article,
.result,
.tool-form {
  margin-top: 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: .4rem;
}

.tool-form { display: grid; gap: 1rem; }
.guide-article {
  max-width: 78rem;
  margin-right: auto;
  margin-left: auto;
}
.guide-article h2 { margin-top: 2.4rem; font-size: clamp(1.45rem, 2.7vw, 2rem); }
.guide-article h3 { margin-top: 1.7rem; }
.guide-article p,
.guide-article li { max-width: 78ch; }
.guide-article li { margin-bottom: .45rem; }
.guide-article pre {
  max-width: 100%;
  padding: 1rem;
  overflow-x: auto;
  color: #f4f7fa;
  background: #202830;
  border-radius: .3rem;
  line-height: 1.45;
  white-space: pre;
}
.guide-article figure {
  max-width: 58rem;
  margin: 1.5rem 0;
  padding: .75rem;
  background: #f7f7f7;
  border: 1px solid var(--line);
  border-radius: .3rem;
}
.guide-article figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.guide-article figcaption {
  margin-top: .65rem;
  color: var(--muted);
  font-size: .9rem;
}
.guide-warning {
  max-width: 78ch;
  margin: 1.25rem 0;
  padding: 1rem;
  background: #fff8dd;
  border: 1px solid #e5ce73;
  border-left: .35rem solid #9b6b00;
  border-radius: .25rem;
}
.guide-article .table-wrap { margin: 1.25rem 0; }
.signature { margin-top: 2rem; font-size: 1.15rem; font-style: italic; }
.service-figure { width: min(450px, 100%); }
.service-figure.align-right { float: right; margin: 0 0 1.25rem 1.5rem; }
.service-figure.align-left { float: left; margin: 0 1.5rem 1.25rem 0; }
.service-article h2 { clear: both; }
.lower-alpha { list-style-type: lower-alpha; }
.two-column { grid-template-columns: 1fr 1fr; }
.full { grid-column: 1 / -1; }
label { display: block; margin-bottom: .4rem; font-weight: 750; }

textarea,
input {
  width: 100%;
  padding: .85rem 1rem;
  color: var(--ink);
  background: #fbfdff;
  border: 1px solid #9eafc0;
  border-radius: .3rem;
  font: 1rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

textarea:focus,
input:focus { outline: .2rem solid #acd4f7; border-color: var(--brand); }

.contact-form { position: relative; }
.contact-form textarea { font-family: inherit; }
.contact-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-note { margin: 0; color: var(--muted); font-size: .9rem; }
.contact-result { border-left: .35rem solid var(--success); }

.button-row { display: flex; flex-wrap: wrap; gap: .75rem; }
button,
.button-link {
  display: inline-block;
  padding: .75rem 1.15rem;
  color: #fff;
  background: var(--brand);
  border: 1px solid #2e6da4;
  border-radius: .3rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
button:focus,
.button-link:hover,
.button-link:focus {
  color: #fff;
  background: var(--brand-dark);
  text-decoration: none;
}
.button-link.success { background: var(--success); border-color: var(--success-dark); }
.button-link.success:hover,
.button-link.success:focus { background: var(--success-dark); }
button.secondary { color: var(--brand); background: #fff; }

.table-wrap {
  margin-top: 2rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: .35rem;
}
table { width: 100%; border-collapse: collapse; background: #fff; font-variant-numeric: tabular-nums; }
th, td { padding: .8rem .9rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { background: var(--wash); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
code, .mono-list { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.mono-list { columns: 2; }
.mono-list li { margin-bottom: .35rem; break-inside: avoid; }
.error { border-left: .35rem solid #b52d2d; }

footer {
  padding: 2.3rem max(7.5%, 1rem) 3rem;
  color: #444;
  background: #dadada;
  border-top: 1px solid #c8c8c8;
}

.footer-grid {
  width: min(100%, 92rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}
.footer-grid h2 { margin-top: 0; font-size: 1rem; text-transform: uppercase; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin: .45rem 0; }
.footer-grid p { margin-top: 0; font-size: .9rem; }

@media (max-width: 980px) {
  .home-layout,
  .subpage-layout { grid-template-columns: minmax(0, 2fr) minmax(13rem, 1fr); gap: 1.25rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  main, .nav-inner { width: min(92%, 92rem); }
  .site-nav a { flex: 1 1 50%; text-align: center; }
  .home-layout,
  .subpage-layout { grid-template-columns: 1fr; }
  .site-sidebar { display: grid; grid-template-columns: 1fr; position: static; }
  .two-column { grid-template-columns: 1fr; }
  .mono-list { columns: 1; }
  .service-figure.align-right,
  .service-figure.align-left { float: none; margin: 1.25rem 0; }
}

@media (max-width: 480px) {
  .site-nav a { flex-basis: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .home-panel { padding: 1.2rem; }
}
