/* ==========================================================================
   Network Tools — Design System
   Palette: deep ink navy + electric cyan, built around a "live network"
   metaphor (nodes, links, signal). Data (IPs, ports, credentials) is set
   in a mono face because it IS data, not decoration.
   ========================================================================== */


:root{
  /* --- Color: 6 named hex values --- */
  --ink:        #0A0E1A;   /* page background */
  --surface:    #101728;   /* card / panel background */
  --surface-2:  #16203A;   /* raised panel / hover */
  --line:       #223055;   /* hairline borders on dark */
  --cyan:       #33E6D8;   /* primary accent — signal / active */
  --blue:       #4E7CFF;   /* secondary accent — links, brand */
  --text:       #E7ECFA;   /* primary text on dark */
  --text-dim:   #93A0C2;   /* secondary text on dark */
  --text-faint: #5B6789;   /* tertiary / meta text */
  --ok:         #35D07F;
  --warn:       #F5B942;
  --danger:     #FF6B6B;
  --on-cyan:    #04211E;   /* text color when sitting on cyan */

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --container: 1180px;
  --gap: 24px;

  --shadow-panel: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 40px -24px rgba(0,0,0,.6);
}

/* --- Reset --- */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background-image:
    radial-gradient(60rem 30rem at 85% -10%, rgba(78,124,255,.16), transparent 60%),
    radial-gradient(50rem 26rem at -10% 10%, rgba(51,230,216,.10), transparent 60%);
  background-attachment: fixed;
}
img{ max-width: 100%; display: block; }
a{ color: var(--cyan); text-decoration: none; }
a:hover{ text-decoration: underline; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: #fff; letter-spacing: -0.01em; }
h1{ font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); }
h2{ font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); }
h3{ font-size: 1.25rem; }
p{ margin: 0 0 1em; max-width: none; color: var(--text-dim); }
code, .mono{ font-family: var(--font-mono); }
ul{ padding-left: 1.2em; }

:focus-visible{ outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce){ *{ animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }

.container{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section{ padding: 64px 0; }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head > div{ flex:1 1 520px; min-width:0; }
.section-head p{ margin: 0; width:100%; max-width:none; }
.eyebrow{ color: var(--cyan); font-size: .82rem; font-weight: 600; margin: 0 0 10px; }

/* --- Buttons / inputs --- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; font-family: var(--font-body);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ text-decoration: none; transform: translateY(-1px); }
.btn-primary{ background: var(--cyan); color: var(--on-cyan); }
.btn-primary:hover{ background: #4ff0e3; }
.btn-ghost{ background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover{ border-color: var(--cyan); color: var(--cyan); }
.btn[disabled]{ opacity:.5; cursor:not-allowed; transform:none; }

input, select, textarea{
  width: 100%; background: var(--ink); border: 1px solid var(--line); color: var(--text);
  padding: 12px 14px; border-radius: var(--radius-s); font-family: var(--font-mono); font-size: .95rem;
}
input:focus, select:focus, textarea:focus{ border-color: var(--cyan); }
label{ display:block; font-size: .82rem; color: var(--text-dim); margin-bottom: 6px; font-family: var(--font-body); }
.field{ margin-bottom: 16px; }
.field-row{ display:flex; gap: 12px; flex-wrap: wrap; }
.field-row > .field{ flex: 1 1 160px; }

/* --- Header / nav --- */
.site-header{ position: sticky; top:0; z-index: 40; backdrop-filter: blur(10px); background: rgba(10,14,26,.78); border-bottom: 1px solid var(--line); }
.site-header .container{ display:flex; align-items:center; gap: 28px; height: 74px; }
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:700; color:#fff; font-size:1.15rem; margin-right:auto; min-width:0; max-width:340px; }
.brand:hover{ text-decoration:none; }
.brand-media{ width:42px; height:42px; flex:0 0 42px; display:flex; align-items:center; justify-content:center; overflow:hidden; border-radius:11px; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); }
.brand-media .custom-logo, .brand-media img{ width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain; object-position:center; display:block; }
.brand-mark{ width:30px; height:30px; border-radius:8px; background:linear-gradient(135deg,var(--cyan),var(--blue)); flex:none; }
.brand-copy{ min-width:0; display:flex; flex-direction:column; line-height:1.05; }
.brand-title{ display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.brand-tagline{ display:block; margin-top:4px; max-width:250px; color:var(--text-dim); font-family:var(--font-body); font-size:.69rem; font-weight:500; line-height:1.2; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.primary-nav{ display:flex; align-items:center; gap: 4px; }
.primary-nav ul{ display:flex; list-style:none; margin:0; padding:0; gap: 2px; }
.primary-nav > ul > li{ position:relative; }
.primary-nav a{ color: var(--text-dim); font-weight: 500; font-size:.92rem; padding: 10px 14px; border-radius: 999px; display:block; }
.primary-nav a:hover{ color:#fff; background: var(--surface-2); text-decoration:none; }
.primary-nav .sub-menu{ display:none; position:absolute; top: 100%; left:0; background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-m); padding: 8px; min-width: 220px; box-shadow: var(--shadow-panel); }
.primary-nav li:hover > .sub-menu{ display:block; }
.primary-nav .sub-menu a{ padding: 9px 12px; border-radius: 8px; }
.menu-toggle{ display:none; background:none; border:1px solid var(--line); color:#fff; border-radius:8px; padding:8px 10px; }

/* --- Hero --- */
.hero{ padding: 72px 0 40px; position: relative; overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items:center; }
.hero h1{ max-width: 14ch; }
.hero-lede{ font-size: 1.08rem; max-width: 46ch; }
.status-pill{ display:inline-flex; align-items:center; gap:8px; font-family: var(--font-mono); font-size:.8rem; color: var(--ok); background: rgba(53,208,127,.1); border:1px solid rgba(53,208,127,.35); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.status-dot{ width:7px; height:7px; border-radius:50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(53,208,127,.25); }

.net-diagram{ position:relative; aspect-ratio: 1/1; max-width: 440px; margin: 0 auto; }
.net-diagram svg{ width:100%; height:100%; }
.net-diagram .node{ fill: var(--surface-2); stroke: var(--line); }
.net-diagram .node.active{ fill: var(--cyan); }
.net-diagram .link{ stroke: var(--line); stroke-width:1.5; }
.net-diagram .link.live{ stroke: var(--cyan); stroke-dasharray: 4 5; animation: dash 6s linear infinite; }
@keyframes dash{ to{ stroke-dashoffset: -100; } }

/* --- Quick lookup / readout panel (used by IP tools) --- */
.readout{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; box-shadow: var(--shadow-panel); }
.readout-row{ display:flex; align-items:baseline; justify-content:space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); gap: 16px; }
.readout-row:last-child{ border-bottom:none; }
.readout-row .k{ color: var(--text-dim); font-size:.88rem; }
.readout-row .v{ font-family: var(--font-mono); color:#fff; font-size: 1rem; text-align:right; word-break: break-word; }
.readout-hero-value{ font-family: var(--font-mono); font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); color: var(--cyan); font-weight:600; letter-spacing:-0.02em; }
.copy-btn{ background: var(--surface-2); border:1px solid var(--line); color: var(--text-dim); border-radius:8px; padding:6px 10px; font-size:.78rem; cursor:pointer; font-family: var(--font-body); }
.copy-btn:hover{ color:#fff; border-color: var(--cyan); }

/* --- Cards / grids --- */
.grid{ display:grid; gap: var(--gap); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }

.card{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px; transition: border-color .15s ease, transform .15s ease; }
.card:hover{ border-color: rgba(51,230,216,.4); }
.card h3{ margin-bottom: 6px; }
.card h3 a{ color:#fff; }
.card h3 a:hover{ color: var(--cyan); text-decoration:none; }
.card p{ font-size: .92rem; margin-bottom: 0; }
.card .tag{ display:inline-block; font-family: var(--font-mono); font-size:.72rem; color: var(--cyan); background: rgba(51,230,216,.08); border:1px solid rgba(51,230,216,.25); padding: 3px 9px; border-radius: 999px; margin-bottom: 12px; }

.tool-card{ display:flex; flex-direction:column; gap: 10px; }
.tool-card .icon{ width:38px; height:38px; border-radius:10px; background: var(--surface-2); display:flex; align-items:center; justify-content:center; color: var(--cyan); }

.content-card{ display:flex; flex-direction:column; }
.content-card .thumb{ aspect-ratio: 16/10; border-radius: var(--radius-s); overflow:hidden; margin-bottom: 14px; background: var(--surface-2); }
.content-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.content-card .kicker{ font-family: var(--font-mono); font-size:.72rem; color: var(--text-faint); margin-bottom: 6px; }

/* --- IP / brand index table --- */
.index-table{ width:100%; border-collapse: collapse; }
.index-table th{ text-align:left; font-size:.78rem; color: var(--text-faint); font-weight:500; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.index-table td{ padding: 12px 14px; border-bottom: 1px solid var(--line); font-size:.92rem; }
.index-table tr:hover{ background: var(--surface); }
.index-table .ip-val{ font-family: var(--font-mono); color:#fff; }
.index-filter{ display:flex; gap:10px; margin-bottom: 18px; flex-wrap:wrap; }
.index-filter input{ max-width: 280px; }
.alpha-jump{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom: 18px; }
.alpha-jump a{ width:30px; height:30px; display:flex; align-items:center; justify-content:center; background: var(--surface); border:1px solid var(--line); border-radius:8px; color: var(--text-dim); font-size:.82rem; }
.alpha-jump a:hover{ border-color: var(--cyan); color: var(--cyan); text-decoration:none; }

/* --- Credential block --- */
.cred-box{ background: var(--ink); border:1px solid var(--line); border-radius: var(--radius-s); padding: 16px; display:grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.cred-box .cred{ }
.cred-box .k{ font-size:.72rem; color: var(--text-faint); text-transform: none; margin-bottom:4px; }
.cred-box .v{ font-family: var(--font-mono); color: var(--cyan); font-size: 1rem; }
.disclaimer{ font-size:.82rem; color: var(--text-faint); border-left: 2px solid var(--warn); padding-left: 12px; margin-top: 18px; }
.login-buttons{ display:flex; gap:10px; flex-wrap:wrap; margin: 18px 0; }
.login-buttons .btn{ font-family: var(--font-mono); }

/* --- Breadcrumbs --- */
.breadcrumbs{ font-size:.82rem; color: var(--text-faint); margin-bottom: 22px; }
.breadcrumbs a{ color: var(--text-dim); }
.breadcrumbs a:hover{ color: var(--cyan); }
.breadcrumbs .sep{ margin: 0 6px; opacity:.5; }

/* --- Article / single content --- */
.article-head{ width:100%; max-width:none; margin:0 auto 32px; text-align:left; }
.article-body{ width:100%; max-width:none; margin:0 auto; }
.article-body p, .article-body li{ color: var(--text-dim); }
.article-body h2{ margin-top: 1.4em; }
.article-body img{ border-radius: var(--radius-m); margin: 1.2em 0; }
.article-meta{ display:flex; gap:14px; align-items:center; color: var(--text-faint); font-size:.85rem; margin-bottom:10px; }

/* --- Related content --- */
.related{ margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }

/* --- Footer --- */
.site-footer{ border-top: 1px solid var(--line); margin-top: 80px; padding: 56px 0 32px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; margin-bottom: 40px; }
.footer-grid h4{ font-size:.8rem; color: var(--text-faint); text-transform: none; margin-bottom: 14px; font-family: var(--font-body); font-weight:600; }
.footer-grid ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:9px; }
.footer-grid a{ color: var(--text-dim); font-size:.88rem; }
.footer-grid a:hover{ color: var(--cyan); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-faint); font-size:.82rem; flex-wrap:wrap; gap:10px; }
.lang-switch{ display:flex; gap:8px; flex-wrap:wrap; }
.lang-switch a{ border:1px solid var(--line); border-radius:6px; padding:3px 8px; font-family: var(--font-mono); font-size:.72rem; }

/* --- Pagination --- */
.pagination{ display:flex; gap:8px; justify-content:center; margin-top: 40px; }
.pagination a, .pagination span{ min-width:38px; height:38px; display:flex; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:8px; color: var(--text-dim); font-size:.88rem; }
.pagination .current{ background: var(--cyan); color: var(--on-cyan); border-color: var(--cyan); font-weight:600; }
.pagination a:hover{ border-color: var(--cyan); color: var(--cyan); text-decoration:none; }

/* --- Utility --- */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; } .mb-0{ margin-bottom:0; }
.badge{ display:inline-flex; align-items:center; gap:6px; font-size:.78rem; padding: 4px 10px; border-radius:999px; font-family: var(--font-mono); }
.badge-ok{ color: var(--ok); background: rgba(53,208,127,.1); border:1px solid rgba(53,208,127,.3); }
.badge-warn{ color: var(--warn); background: rgba(245,185,66,.1); border:1px solid rgba(245,185,66,.3); }
.badge-danger{ color: var(--danger); background: rgba(255,107,107,.1); border:1px solid rgba(255,107,107,.3); }
.spinner{ width:16px; height:16px; border-radius:50%; border:2px solid var(--line); border-top-color: var(--cyan); animation: spin .7s linear infinite; display:inline-block; }
@keyframes spin{ to{ transform: rotate(360deg); } }
.skip-link{ position:absolute; left:-999px; top:0; background:var(--cyan); color:var(--on-cyan); padding:10px 16px; z-index:100; }
.skip-link:focus{ left: 12px; top:12px; }

/* --- Responsive --- */
@media (max-width: 980px){
  .grid-4{ grid-template-columns: repeat(2,1fr); }
  .grid-3{ grid-template-columns: repeat(2,1fr); }
  .footer-grid{ grid-template-columns: repeat(2,1fr); }
  .hero-grid{ grid-template-columns: 1fr; }
  .net-diagram{ max-width: 320px; }
}
@media (max-width: 680px){
  .primary-nav{ display:none; position:absolute; top:74px; left:0; right:0; background: var(--surface); border-bottom:1px solid var(--line); padding: 12px; }
  .primary-nav.is-open{ display:block; }
  .primary-nav ul{ flex-direction:column; }
  .primary-nav .sub-menu{ position:static; display:block; border:none; background:none; padding-left:12px; box-shadow:none; }
  .menu-toggle{ display:inline-flex; }
  .grid-4, .grid-3, .grid-2{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .cred-box{ grid-template-columns: 1fr; }
  .index-table{ font-size:.85rem; }
}

/* ========================================================================
   v1.7 — Authority content presentation
   Full-width editorial canvas, section cards, rich lists, FAQs and tables.
   ======================================================================== */

/* The site shell stays 1180px. Long-form pages now use that full canvas. */
.article-head,
.article-body,
.nt-featured-media,
.nt-summary-panel,
.nt-wide-block{
  width:100%;
  max-width:var(--container);
  margin-left:auto;
  margin-right:auto;
}
.article-head{ margin-bottom:30px; }
.article-head > p{ max-width:none; font-size:1.02rem; }
.article-body{ font-size:1.01rem; }
.article-body p,
.article-body li,
.article-body blockquote{ max-width:none; }
.nt-featured-media{ margin-bottom:32px; }
.nt-summary-panel{ margin-bottom:32px; }
.nt-wide-block{ margin-top:40px; }
.single-router_ip .readout,
.single-router_brand .readout,
.single-router_model .readout,
.single-isp_router .readout{ max-width:none !important; }

/* Lead text becomes a clear answer card rather than a narrow loose paragraph. */
.article-body > p.lead,
.article-body > p.nt-lede,
.article-body > .lead,
.article-body > .nt-lede{
  margin:0 0 26px;
  padding:22px 24px;
  border:1px solid rgba(51,230,216,.28);
  border-left:4px solid var(--cyan);
  border-radius:var(--radius-m);
  background:linear-gradient(135deg, rgba(51,230,216,.08), rgba(78,124,255,.06));
  color:var(--text);
  box-shadow:var(--shadow-panel);
}

/* Each H2-led section is rendered as a separate editorial card. */
.nt-content-card{
  position:relative;
  margin:0 0 24px;
  padding:28px 30px;
  border:1px solid var(--line);
  border-radius:var(--radius-l);
  background:linear-gradient(180deg, rgba(16,23,40,.98), rgba(12,18,33,.96));
  box-shadow:var(--shadow-panel);
  overflow:hidden;
}
.nt-content-card::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:linear-gradient(180deg,var(--cyan),var(--blue),transparent 92%);
  opacity:.9;
}
.nt-content-card > h2:first-child{
  margin-top:0;
  padding-bottom:14px;
  border-bottom:1px solid rgba(255,255,255,.07);
}
.nt-content-card h3{
  margin-top:24px;
  color:#f5f8ff;
}
.nt-content-card > :last-child{ margin-bottom:0; }
.nt-content-card a:not(.btn){ text-decoration-thickness:1px; text-underline-offset:3px; }

/* Lists become scan-friendly cards with a unique icon per item. */
.article-body ul,
.article-body ol,
.nt-content-card ul,
.nt-content-card ol{
  margin:18px 0 22px;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}
.article-body ul:not(.wp-block-navigation__container),
.nt-content-card ul{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.article-body ol,
.nt-content-card ol{ counter-reset:nt-step; }
.article-body li,
.nt-content-card li{
  display:flex;
  align-items:flex-start;
  gap:12px;
  min-width:0;
  padding:14px 15px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:12px;
  background:rgba(255,255,255,.025);
  color:var(--text-dim);
}
.article-body li:hover,
.nt-content-card li:hover{
  border-color:rgba(51,230,216,.26);
  background:rgba(51,230,216,.035);
}
.nt-list-icon{
  width:32px;
  height:32px;
  flex:0 0 32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:9px;
  color:var(--cyan);
  background:linear-gradient(135deg,rgba(51,230,216,.12),rgba(78,124,255,.12));
  border:1px solid rgba(51,230,216,.18);
  margin-top:1px;
}
.nt-list-copy{ min-width:0; flex:1; }
.nt-inline-svg{ width:17px; height:17px; display:block; }
.article-body ol > li .nt-list-icon{
  color:#d8e3ff;
  background:rgba(78,124,255,.12);
  border-color:rgba(78,124,255,.22);
}

/* Gutenberg tables and theme tables use the full editorial width. */
.article-body .wp-block-table,
.article-body .table-scroll{
  width:100%;
  max-width:none;
  margin:20px 0 24px;
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:var(--radius-m);
  background:rgba(6,10,19,.55);
  box-shadow:var(--shadow-panel);
}
.article-body table{ width:100%; border-collapse:collapse; min-width:620px; }
.article-body th,
.article-body td{
  padding:13px 15px;
  border-bottom:1px solid rgba(255,255,255,.07);
  border-right:1px solid rgba(255,255,255,.05);
  text-align:left;
  vertical-align:top;
}
.article-body th{
  color:#fff;
  background:rgba(78,124,255,.11);
  font-weight:600;
}
.article-body tr:nth-child(even) td{ background:rgba(255,255,255,.018); }
.article-body tr:hover td{ background:rgba(51,230,216,.025); }
.article-body tr:last-child td{ border-bottom:0; }
.article-body th:last-child,
.article-body td:last-child{ border-right:0; }

/* Accessible FAQ accordion pattern. */
.nt-faq-list{ display:grid; gap:12px; margin:18px 0 4px; }
.nt-faq-item{
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(7,12,23,.72);
  overflow:hidden;
  transition:border-color .16s ease, background .16s ease;
}
.nt-faq-item[open]{ border-color:rgba(51,230,216,.35); background:rgba(51,230,216,.035); }
.nt-faq-item summary{
  list-style:none;
  display:grid;
  grid-template-columns:34px 1fr 30px;
  align-items:center;
  gap:12px;
  cursor:pointer;
  padding:16px 18px;
  color:#fff;
  font-weight:600;
  font-family:var(--font-display);
}
.nt-faq-item summary::-webkit-details-marker{ display:none; }
.nt-faq-mark{
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:9px;
  background:rgba(51,230,216,.10);
  border:1px solid rgba(51,230,216,.22);
  color:var(--cyan);
  font-family:var(--font-mono);
}
.nt-faq-toggle{
  width:28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:var(--surface-2);
  color:var(--cyan);
  font-size:1.25rem;
  line-height:1;
  transition:transform .18s ease;
}
.nt-faq-item[open] .nt-faq-toggle{ transform:rotate(45deg); }
.nt-faq-answer{ padding:0 18px 18px 64px; }
.nt-faq-answer p:last-child{ margin-bottom:0; }

/* Stronger metadata/summary panels on router database pages. */
.nt-summary-panel{
  padding:24px 26px;
  border-color:rgba(78,124,255,.24);
  background:linear-gradient(135deg,rgba(16,23,40,.98),rgba(22,32,58,.82));
}
.readout-row{ min-height:48px; }
.cred-box{ border-color:rgba(51,230,216,.20); }

/* Front page and archives get the same visual language. */
.section .card,
.authority-library .card{
  box-shadow:var(--shadow-panel);
}
.index-table{
  border:1px solid var(--line);
  border-radius:var(--radius-m);
  overflow:hidden;
  background:rgba(16,23,40,.76);
  box-shadow:var(--shadow-panel);
}
.index-table th{ background:rgba(78,124,255,.10); color:#c7d3ef; }
.index-table td{ vertical-align:top; }

@media (max-width: 820px){
  .article-body ul:not(.wp-block-navigation__container), .nt-content-card ul{ grid-template-columns:1fr; }
  .nt-content-card{ padding:22px 20px; border-radius:16px; }
  .nt-faq-answer{ padding-left:18px; }
}
@media (max-width: 680px){
  .container{ padding-left:16px; padding-right:16px; }
  .section{ padding:44px 0; }
  .article-body{ font-size:1rem; }
  .nt-content-card{ padding:20px 16px; }
  .article-body li,.nt-content-card li{ padding:12px; }
  .nt-faq-item summary{ grid-template-columns:30px 1fr 26px; gap:9px; padding:14px 13px; }
  .nt-faq-mark{ width:28px; height:28px; }
}

/* v1.8 launch polish: readable full-width copy, contextual linking, next-step cards. */
.article-body p,
.article-body li,
.nt-content-card p,
.nt-content-card li,
.nt-faq-answer p,
.card p,
.site-footer p{
  text-align:justify;
  text-justify:inter-word;
}
.article-body .eyebrow,
.article-body .tag,
.readout-row .k,
.readout-row .v,
.btn,
.button,
.site-nav a,
.nt-faq-item summary,
.nt-next-card strong,
.nt-next-card span{
  text-align:left;
}
.nt-context-link{
  color:var(--cyan);
  text-decoration-color:rgba(51,230,216,.42);
  text-underline-offset:3px;
  text-decoration-thickness:1px;
}
.nt-context-link:hover,
.nt-context-link:focus{
  color:#fff;
  text-decoration-color:var(--cyan);
}
.nt-next-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin:16px 0 28px;
}
.nt-next-card{
  display:block;
  min-height:116px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:linear-gradient(145deg,rgba(16,23,40,.95),rgba(20,31,55,.78));
  box-shadow:var(--shadow-panel);
  text-decoration:none;
  transition:transform .16s ease,border-color .16s ease,background .16s ease;
}
.nt-next-card:hover,
.nt-next-card:focus{
  transform:translateY(-2px);
  border-color:rgba(51,230,216,.34);
  background:linear-gradient(145deg,rgba(17,28,48,.98),rgba(23,39,67,.86));
}
.nt-next-card strong{
  display:block;
  margin-bottom:7px;
  color:#fff;
  font-family:var(--font-display);
  font-size:1rem;
}
.nt-next-card span{
  display:block;
  color:var(--muted);
  line-height:1.62;
}
@media (max-width:680px){
  .nt-next-grid{grid-template-columns:1fr;}
}

/* Requested site-wide editorial alignment. Keep UI controls natural; justify readable copy. */
main p,
main li,
.nt-list-copy,
.site-footer p,
.site-footer li{
  text-align:justify;
  text-justify:inter-word;
}
main .eyebrow,
main .tag,
main .badge,
main .btn,
main button,
main input,
main select,
main summary,
main .readout-row .k,
main .readout-row .v,
main .nt-next-card strong,
main .nt-next-card span{
  text-align:left;
}

/* 1.9.1: consistent tables, card targets and keyboard states. */
.table-wrap{width:100%;max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow-panel);margin:20px 0;}
.table-wrap table{width:100%;min-width:620px;border-collapse:collapse;}
.table-wrap th,.table-wrap td{padding:17px 20px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);line-height:1.65;}
.table-wrap th{background:rgba(78,124,255,.14);color:var(--text);font-weight:700;}
.table-wrap td:first-child{font-weight:600;color:var(--text);}
.table-wrap tbody tr:nth-child(even){background:rgba(255,255,255,.025);}
.table-wrap tbody tr:last-child td{border-bottom:0;}
.article-body{min-width:0;}
.article-body table{max-width:100%;}
.nt-table-region{width:100%;max-width:100%;overflow-x:auto;margin:20px 0;border:1px solid var(--line);border-radius:14px;}
a.tool-card{display:block;text-decoration:none;color:inherit;}
a.tool-card h3{color:var(--text);}
a.tool-card:hover{border-color:var(--cyan);background:var(--surface-2);}
a.card:focus-visible,.nt-faq-item summary:focus-visible,.table-wrap:focus-visible,.nt-table-region:focus-visible{outline:3px solid var(--cyan);outline-offset:4px;}
.nt-faq-item summary>span:nth-child(2){min-width:0;overflow-wrap:anywhere;}
.nt-faq-item summary::marker{content:'';}
.nt-faq-answer{line-height:1.75;}
@media(max-width:600px){.table-wrap th,.table-wrap td{padding:12px 14px;}.nt-faq-item summary{grid-template-columns:28px minmax(0,1fr) 28px;}.nt-faq-answer{padding:0 14px 16px;}}

/* Evidence, diagrams and source references. */
.nt-evidence{border:1px solid var(--line);border-radius:16px;padding:clamp(18px,3vw,32px);margin:2rem 0;background:var(--surface)}
.nt-evidence figure{margin:1.5rem 0}.nt-evidence img{display:block;width:100%;height:auto;border-radius:12px}.nt-evidence figcaption{font-size:.85rem;line-height:1.6;color:var(--text-dim);margin-top:.6rem}
.nt-evidence a{text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.nt-evidence details{border-top:1px solid var(--line);padding:1rem 0}.nt-evidence summary{cursor:pointer;font-weight:600}.nt-evidence summary:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}

.nt-network-diagram{margin:1.5rem 0}.nt-network-diagram img{display:block;width:100%;height:auto;border-radius:12px}.nt-network-diagram figcaption,.nt-source-note{font-size:.85rem;color:var(--text-dim);line-height:1.6}


/* v1.11 editorial trust + instructional visuals */
.nt-byline{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:12px;font-size:.9rem;color:var(--muted)}
.nt-byline a{font-weight:650}
.nt-guide-visuals figure{margin:0;overflow:hidden}
.nt-guide-visuals img{display:block;width:100%;height:auto;border-radius:12px;border:1px solid var(--line)}
.nt-guide-visuals figcaption{margin-top:12px;font-size:.92rem;color:var(--muted)}
.nt-community-faq .faq-list{width:100%;max-width:none}
@media(max-width:720px){.nt-byline{display:grid;gap:6px}.nt-guide-visuals{grid-template-columns:1fr}}

.nt-guide-inline{margin:24px 0}.nt-guide-inline img{display:block;width:100%;height:auto;border-radius:12px;border:1px solid var(--line)}.nt-guide-inline figcaption{margin-top:10px;color:var(--muted);font-size:.92rem}

/* Evidence system v1.12 */
.nt-evidence-panel,.nt-test-records,.nt-evidence-images{margin-top:24px}.nt-record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px}.nt-record-grid div{padding:10px 0;border-bottom:1px solid var(--border,#e5e7eb)}.nt-record-grid dt{font-weight:700}.nt-record-grid dd{margin:4px 0 0}.nt-faq-sources{font-size:.88rem;opacity:.82;margin-top:10px}.nt-evidence-images figcaption{margin-top:10px;font-size:.92rem}@media(max-width:700px){.nt-record-grid{grid-template-columns:1fr}}

/* Inline provenance links added to documentation-backed procedures. */
.nt-inline-sources{display:inline-flex;flex-wrap:wrap;gap:.35rem;margin-left:.35rem;font-size:.78em;vertical-align:baseline}
.nt-inline-source{white-space:nowrap;font-weight:700}


.tool-stage-wrap{width:100%;max-width:none;margin:0 auto 40px;}

/* v1.15.2 — polished Internet Speed Checker */
.nt-speedtest{width:100%;max-width:none;min-width:0;}
.nt-speedtest *{box-sizing:border-box;min-width:0;}
.nt-speedtest-shell{width:100%;overflow:hidden;border:1px solid var(--line);border-radius:24px;background:linear-gradient(180deg,rgba(16,23,40,.98),rgba(9,14,27,.98));box-shadow:var(--shadow-panel);padding:24px;}
.nt-speedtest-topbar{display:flex;gap:10px;justify-content:center;align-items:center;flex-wrap:wrap;margin:0 0 22px;}
.nt-speedtest-tab{display:inline-flex;align-items:center;gap:8px;border:1px solid transparent;background:transparent;color:var(--text-dim);border-radius:999px;padding:9px 15px;font:inherit;font-weight:600;cursor:pointer;transition:.2s ease;}
.nt-speedtest-tab:hover,.nt-speedtest-tab.is-active{color:#fff;background:rgba(78,124,255,.10);border-color:rgba(78,124,255,.28);text-decoration:none;}
.nt-speedtest-panel{display:none;}
.nt-speedtest-panel.is-active{display:block;}
.nt-speedtest-stage{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(340px,1.1fr);gap:34px;align-items:center;padding:28px;border:1px solid rgba(255,255,255,.06);border-radius:22px;background:radial-gradient(circle at 24% 36%,rgba(51,230,216,.08),transparent 34%),linear-gradient(135deg,rgba(7,12,24,.72),rgba(17,26,47,.68));overflow:hidden;position:relative;}
.nt-speedtest-stage::before{content:"";position:absolute;inset:auto -120px -180px auto;width:420px;height:420px;border-radius:50%;background:rgba(78,124,255,.07);pointer-events:none;}
.nt-speedtest-gauge-wrap{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;z-index:1;}
.nt-speedtest-gauge{width:min(360px,100%);aspect-ratio:1;position:relative;display:grid;place-items:center;}
.nt-speedtest-gauge svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);overflow:visible;}
.nt-speedtest-gauge-track,.nt-speedtest-gauge-progress,.nt-speedtest-gauge-glow{fill:none;stroke-width:10;}
.nt-speedtest-gauge-track{stroke:rgba(147,160,194,.16);}
.nt-speedtest-gauge-progress{stroke:url(#ntSpeedGaugeGradient);stroke-linecap:round;transition:stroke-dashoffset .65s cubic-bezier(.22,.8,.25,1);filter:drop-shadow(0 0 10px rgba(51,230,216,.32));}
.nt-speedtest-gauge-glow{stroke:rgba(51,230,216,.06);stroke-width:2;}
.nt-speedtest-gauge-core{position:relative;z-index:2;width:58%;aspect-ratio:1;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:radial-gradient(circle at 35% 28%,rgba(78,124,255,.16),rgba(10,14,26,.96) 68%);border:1px solid rgba(51,230,216,.20);box-shadow:inset 0 0 30px rgba(51,230,216,.04),0 20px 50px rgba(0,0,0,.32);overflow:hidden;padding:18px;}
.nt-speedtest-go{width:92px;height:92px;border-radius:50%;border:1px solid rgba(255,255,255,.12);background:linear-gradient(135deg,var(--blue),var(--cyan));color:var(--ink);font-size:1.45rem;font-weight:800;letter-spacing:.06em;cursor:pointer;box-shadow:0 14px 34px rgba(0,0,0,.34);transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease;}
.nt-speedtest-go:hover{transform:scale(1.035);box-shadow:0 18px 42px rgba(0,0,0,.42);}
.nt-speedtest-go:disabled{opacity:.9;cursor:wait;transform:none;font-size:.84rem;letter-spacing:.04em;}
.nt-speedtest-live{margin-top:11px;width:100%;display:flex;flex-direction:column;align-items:center;gap:2px;}
.nt-speedtest-phase{display:block;color:var(--text-dim);font-size:.76rem;line-height:1.2;white-space:normal;overflow-wrap:anywhere;}
.nt-speedtest-number{display:block;max-width:100%;color:#fff;font-size:clamp(1.45rem,2.4vw,2.3rem);line-height:1;font-family:var(--font-mono);overflow-wrap:anywhere;}
.nt-speedtest-unit{display:block;color:var(--cyan);font-size:.78rem;font-weight:700;}
.nt-speedtest-scale{display:flex;justify-content:space-between;width:min(340px,92%);margin-top:-5px;color:var(--text-faint);font-family:var(--font-mono);font-size:.7rem;}
.nt-speedtest-stage-info{display:flex;flex-direction:column;gap:24px;position:relative;z-index:1;min-width:0;}
.nt-speedtest-network-row{display:grid;grid-template-columns:minmax(0,1fr) 1px minmax(0,1fr);gap:22px;align-items:center;padding:22px;border:1px solid rgba(255,255,255,.06);border-radius:18px;background:rgba(10,14,26,.55);}
.nt-speedtest-network-divider{width:1px;height:68px;background:var(--line);}
.nt-speedtest-network-block{min-width:0;}
.nt-speedtest-network-block .k{display:block;color:var(--text-dim);font-size:.8rem;margin-bottom:5px;}
.nt-speedtest-network-block strong{display:block;color:#fff;font-size:1.08rem;line-height:1.3;overflow-wrap:anywhere;word-break:break-word;}
.nt-speedtest-network-block .v{display:block;color:var(--text-dim);font-size:.82rem;margin-top:4px;overflow-wrap:anywhere;word-break:break-word;}
.nt-speedtest-mode-line{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;color:var(--text-dim);font-size:.86rem;text-align:center;}
.nt-speedtest-mode-line strong{color:var(--cyan);}
.nt-speedtest-results-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0;}
.nt-speedtest-result-card{position:relative;overflow:hidden;background:linear-gradient(180deg,rgba(22,32,58,.86),rgba(14,22,40,.92));border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:var(--shadow-panel);}
.nt-speedtest-result-card::after{content:"";position:absolute;inset:auto -28px -42px auto;width:100px;height:100px;border-radius:50%;background:rgba(51,230,216,.04);}
.nt-speedtest-result-icon{width:34px;height:34px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;margin-bottom:12px;background:rgba(78,124,255,.12);border:1px solid rgba(78,124,255,.22);color:var(--cyan);font-size:1.1rem;}
.nt-speedtest-result-card .k{display:block;color:var(--text-dim);font-size:.8rem;margin-bottom:4px;}
.nt-speedtest-result-card strong{display:block;color:#fff;font-family:var(--font-mono);font-size:clamp(1.05rem,1.6vw,1.45rem);line-height:1.25;overflow-wrap:anywhere;word-break:break-word;}
.nt-speedtest-result-card .v{display:block;color:var(--text-dim);font-size:.78rem;line-height:1.35;margin-top:5px;overflow-wrap:anywhere;}
.nt-speedtest-quality-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:16px;align-items:stretch;}
.nt-speedtest-quality-card{border:1px solid var(--line);border-radius:18px;background:var(--surface);padding:20px;box-shadow:var(--shadow-panel);overflow:hidden;}
.nt-speedtest-quality-card .k{display:block;color:var(--text-dim);font-size:.82rem;}
.nt-speedtest-quality-card strong{display:block;color:#fff;font-size:1.35rem;margin-top:2px;overflow-wrap:anywhere;}
.nt-speedtest-quality-card p{margin:13px 0 0;color:var(--text-dim);font-size:.9rem;line-height:1.5;max-width:none;}
.nt-speedtest-quality-bar{height:10px;border-radius:999px;background:rgba(147,160,194,.14);margin:14px 0 0;overflow:hidden;}
.nt-speedtest-quality-bar span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--blue),var(--cyan),var(--ok));transition:width .65s ease;}
.nt-speedtest-analysis{margin:0;padding:20px;border-radius:18px;height:100%;}
.nt-speedtest-analysis .readout-row{align-items:flex-start;}
.nt-speedtest-analysis .readout-row .v{max-width:68%;white-space:normal;overflow-wrap:anywhere;word-break:normal;}
.nt-speedtest-settings-card{padding:22px;border:1px solid var(--line);border-radius:20px;background:var(--surface);box-shadow:var(--shadow-panel);}
.nt-speedtest-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.nt-speedtest-settings-grid .field{margin:0;}
.nt-speedtest-settings-grid label{white-space:normal;}
.nt-speedtest-settings-grid select{min-height:46px;white-space:normal;text-overflow:ellipsis;}
.nt-speedtest-settings-actions{margin-top:20px;}
.nt-speedtest-settings-card .disclaimer{max-width:none;margin-top:18px;}
.nt-speedtest-stage.is-testing .nt-speedtest-gauge-glow{animation:ntSpeedPulse 1.1s ease-in-out infinite;}
.nt-speedtest-stage.is-testing .nt-speedtest-gauge{animation:ntSpeedFloat 1.8s ease-in-out infinite;}
.nt-speedtest-stage.is-testing .nt-speedtest-go{box-shadow:0 0 0 10px rgba(51,230,216,.06),0 18px 42px rgba(0,0,0,.42);}
@keyframes ntSpeedPulse{0%,100%{stroke:rgba(51,230,216,.06);stroke-width:2}50%{stroke:rgba(51,230,216,.34);stroke-width:5}}
@keyframes ntSpeedFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@media(max-width:980px){.nt-speedtest-stage{grid-template-columns:1fr;gap:20px}.nt-speedtest-gauge{width:min(320px,86vw)}.nt-speedtest-stage-info{width:100%}.nt-speedtest-results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nt-speedtest-quality-grid{grid-template-columns:1fr}.nt-speedtest-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.site-header .container{gap:12px}.brand{max-width:210px}.brand-media{width:38px;height:38px;flex-basis:38px}.brand-tagline{display:none}.nt-speedtest-shell{padding:14px;border-radius:18px}.nt-speedtest-stage{padding:16px;border-radius:16px}.nt-speedtest-network-row{grid-template-columns:1fr;gap:15px}.nt-speedtest-network-divider{width:100%;height:1px}.nt-speedtest-results-grid,.nt-speedtest-settings-grid{grid-template-columns:1fr}.nt-speedtest-quality-grid{grid-template-columns:1fr}.nt-speedtest-analysis .readout-row{flex-direction:column;gap:4px}.nt-speedtest-analysis .readout-row .v{max-width:none;text-align:left}.nt-speedtest-gauge-core{width:62%;}.nt-speedtest-go{width:76px;height:76px;font-size:1.15rem}.nt-speedtest-scale{font-size:.62rem}.nt-speedtest-network-block strong,.nt-speedtest-network-block .v{max-width:100%;}}

/* v1.15.3 — tool polish and visual coverage */
#nt-tool-groups{grid-auto-rows:1fr;align-items:stretch;}
.nt-tool-filter-item{display:flex;min-width:0;}
.nt-tool-filter-item > .tool-card{width:100%;height:100%;}
.tool-card{
  height:100%;
  min-height:240px;
  position:relative;
  overflow:hidden;
  border-color:rgba(78,124,255,.18);
  background:linear-gradient(180deg,rgba(18,27,46,.96),rgba(12,18,31,.98));
  box-shadow:0 18px 40px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.03);
}
.tool-card::before{
  content:"";
  position:absolute;
  inset:-1px;
  background:radial-gradient(circle at top right, rgba(51,230,216,.10), transparent 34%);
  pointer-events:none;
}
.tool-card .icon{
  background:linear-gradient(180deg,rgba(78,124,255,.18),rgba(51,230,216,.14));
  border:1px solid rgba(78,124,255,.24);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.tool-card h3{min-height:3.1rem;display:flex;align-items:flex-start;}
.tool-card p{margin-top:auto;overflow-wrap:anywhere;word-break:break-word;}
.tool-stage-wrap .card,
.tool-stage-wrap .readout,
.tool-stage-wrap .nt-summary-panel,
.tool-stage-wrap .index-table,
.tool-stage-wrap .nt-speedtest-quality-card,
.tool-stage-wrap .nt-speedtest-result-card,
.tool-stage-wrap .nt-speedtest-settings-card{
  box-shadow:0 18px 44px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.03);
}
.btn,
button,
input[type="button"],
input[type="submit"]{line-height:1.1;}
.nt-speedtest-go{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1;
  padding:0;
  vertical-align:middle;
}
.nt-speedtest-go span{display:inline-flex;align-items:center;justify-content:center;}
.nt-speedtest-gauge-core{gap:0;}
.nt-speedtest-live{max-width:100%;padding:0 6px;}
.nt-speedtest-network-block strong,
.nt-speedtest-network-block .v,
.nt-speedtest-result-card strong,
.nt-speedtest-result-card .v,
.nt-speedtest-analysis .v,
.nt-speedtest-settings-card .disclaimer{overflow-wrap:anywhere;word-break:break-word;}
.nt-evidence-images .card img,
.nt-ip-specific-visual img{
  display:block;
  width:100%;
  height:auto;
  border-radius:14px;
}
.nt-local-visual-card figcaption,
.nt-ip-specific-visual figcaption{margin-top:12px;}
@media(max-width:980px){
  .tool-card{min-height:220px;}
}
@media(max-width:680px){
  .tool-card{min-height:unset;}
  .tool-card h3{min-height:0;}
}
