/* nbn-check.css — "Check your address", the one source for its look (with
   nbn-check.js). The tool sits in a dark graphite band so it's the focus of
   the page (Mars, 27 Nov 2026: "the tool is in the focus and highlighted").
   Used on services/infrastructure.html, services/internet-mobile.html and
   nbn-check.html. Graphite and lime, the Infrastructure colours. */

.nbn-band {
  position: relative;
  padding: clamp(56px, 7vw, 92px) 0;
  overflow: hidden;
  background-color: #111827;
  background-image: radial-gradient(rgba(190, 242, 100, 0.13) 1px, transparent 1.3px);
  background-size: 22px 22px;
  color: #fff;
  scroll-margin-top: 90px;
}
.nbn-band::before {
  content: ""; position: absolute; left: 50%; top: -40%; width: 900px; height: 620px; margin-left: -450px;
  background: radial-gradient(closest-side, rgba(132, 204, 22, 0.22), transparent);
  pointer-events: none;
}
.nbn-band .container { position: relative; }
/* Dark mode: the page is dark too, so the band lifts a shade and gets lime edges */
html[data-theme="dark"] .nbn-band {
  background-color: #1b2433;
  box-shadow: inset 0 1px 0 rgba(132, 204, 22, 0.45), inset 0 -1px 0 rgba(132, 204, 22, 0.45);
}

.nbn { max-width: 880px; margin: 0 auto; }
.nbn-head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.nbn-pin {
  position: relative; flex: none; display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 18px; background: #84cc16; color: #111827;
}
.nbn-pin svg { width: 28px; height: 28px; }
.nbn-pin i { position: absolute; inset: 0; border-radius: 18px; border: 2px solid #84cc16; opacity: 0; }
.nbn-eyebrow { font-family: var(--font-mono, monospace); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #bef264; }
.nbn-title { margin: 4px 0 6px; font-family: var(--font-display, 'Outfit', sans-serif); font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; line-height: 1.08; color: #fff; }
.nbn-sub { margin: 0; font-size: 1.04rem; line-height: 1.55; color: rgba(255, 255, 255, 0.74); }

.nbn-form {
  display: flex; gap: 10px; padding: 8px; border-radius: 16px; background: #fff;
  box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.28), 0 26px 54px -26px rgba(0, 0, 0, 0.7);
  transition: box-shadow 0.2s ease;
}
.nbn-form:focus-within { box-shadow: 0 0 0 5px rgba(132, 204, 22, 0.55), 0 26px 54px -26px rgba(0, 0, 0, 0.7); }
.nbn-field { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 12px; color: #6b7280; }
.nbn-field svg { flex: none; width: 21px; height: 21px; }
.nbn-field input { flex: 1; min-width: 0; height: 54px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.1rem; color: #111827; }
.nbn-field input::placeholder { color: #9ca3af; }
.nbn-go {
  flex: none; height: 54px; padding: 0 26px; border: 0; border-radius: 12px; background: #84cc16; color: #111827;
  font: inherit; font-size: 1.02rem; font-weight: 700; cursor: pointer; transition: background 0.2s ease, transform 0.1s ease;
}
.nbn-go:hover { background: #a3e635; }
.nbn-go:active { transform: translateY(1px); }
.nbn-go:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.nbn-go:disabled { opacity: 0.7; cursor: progress; }
.nbn-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Results: a white card on the dark band */
.nbn-out:empty { display: none; }
.nbn-out {
  margin-top: 14px; padding: 20px 22px; border-radius: 16px; background: #fff;
  font-size: 0.96rem; line-height: 1.55; color: #374151; text-align: left;
  animation: nbnIn 0.35s ease both;
}
.nbn-out p { margin: 0 0 10px; }
.nbn-out p:last-child { margin-bottom: 0; }
.nbn-wait { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono, monospace); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: #1f2937; }
.nbn-wait::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #84cc16; box-shadow: 0 0 8px #84cc16; animation: nbnBlink 1s ease-in-out infinite; }
.nbn-err { color: #b91c1c; }
.nbn-pick-h { font-weight: 600; color: #111827; }
.nbn-picks { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
.nbn-picks button { padding: 11px 14px; border: 1px solid #e5e7eb; border-radius: 9px; background: #fff; font: inherit; font-size: 0.92rem; text-align: left; color: #111827; cursor: pointer; }
.nbn-picks button:hover, .nbn-picks button:focus-visible { border-color: #1f2937; background: #f7fee7; outline: none; }

.nbn-res { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid #f1f5f9; }
.nbn-led { width: 14px; height: 14px; border-radius: 50%; background: #94a3b8; }
.nbn-res.is-available .nbn-led { background: #84cc16; box-shadow: 0 0 0 5px rgba(132, 204, 22, 0.2), 0 0 12px #84cc16; }
.nbn-res.is-coming .nbn-led { background: #f59e0b; box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.2); }
.nbn-res.is-unavailable .nbn-led { background: #ef4444; box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.15); }
.nbn-res-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nbn-state { font-family: var(--font-mono, monospace); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #4d7c0f; }
.nbn-res.is-coming .nbn-state { color: #b45309; }
.nbn-res.is-unavailable .nbn-state { color: #b91c1c; }
.nbn-res-main strong { font-family: var(--font-display, 'Outfit', sans-serif); font-size: 1.3rem; font-weight: 600; color: #111827; }
.nbn-res-main small { font-size: 0.86rem; color: #6b7280; }
.nbn-speed { text-align: right; }
.nbn-speed b { display: block; font-family: var(--font-display, 'Outfit', sans-serif); font-size: 2.2rem; font-weight: 700; line-height: 1; color: #111827; }
.nbn-speed b span { font-size: 1.2rem; color: #6b7280; }
.nbn-speed small { font-family: var(--font-mono, monospace); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: #6b7280; }
.nbn-next { margin: 14px 0 0 !important; }
.nbn-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.nbn-btn {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border: 0; border-radius: 10px;
  background: #111827; color: #fff; font: inherit; font-size: 0.95rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.nbn-btn:hover { background: #374151; }
.nbn-btn-2 { background: #fff; color: #111827; border: 1px solid #d1d5db; }
.nbn-btn-2:hover { background: #f9fafb; border-color: #111827; }
.nbn-link { margin-left: 4px; font-weight: 600; text-decoration: none; color: #4d7c0f; }
.nbn-link:hover { text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) {
  .nbn-pin i { animation: nbnPing 2.4s ease-out infinite; }
  .nbn-pin i + i { animation-delay: 1.2s; }
}
@keyframes nbnPing { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes nbnBlink { 50% { opacity: 0.35; } }
@keyframes nbnIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .nbn-head { align-items: flex-start; gap: 14px; }
  .nbn-pin { width: 48px; height: 48px; border-radius: 14px; }
  .nbn-pin svg { width: 22px; height: 22px; }
  .nbn-form { flex-direction: column; }
  .nbn-field input { height: 50px; }
  .nbn-go { height: 50px; }
  .nbn-res { grid-template-columns: auto minmax(0, 1fr); }
  .nbn-speed { grid-column: 1 / -1; text-align: left; }
}

/* The free tool's own page (nbn-check.html) */
/* Starts below the fixed header, so the menu stays on white */
.nbn-page { margin-top: 84px; }
@media (max-width: 767px) { .nbn-page { margin-top: 68px; } }
.nbn-techs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; max-width: 1040px; margin: 0 auto; padding: 0; list-style: none; }
.nbn-techs li { display: grid; grid-template-columns: 74px 1fr; gap: 2px 12px; padding: 18px 0; border-top: 1px solid var(--inf-line, #e5e7eb); }
.nbn-techs .nbn-code { grid-row: span 2; align-self: start; padding: 4px 0; font-family: var(--font-mono, monospace); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; color: var(--inf-lime-deep, #4d7c0f); }
.nbn-techs b { font-size: 1.02rem; color: var(--text-primary, #111827); }
.nbn-techs li > span:last-child { font-size: 0.94rem; line-height: 1.5; color: var(--text-secondary, #4b5563); }
.nbn-techs-more { margin: 26px 0 0; text-align: center; }
.nbn-techs-more a { font-weight: 600; color: var(--inf-lime-deep, #4d7c0f); text-decoration: none; }
.nbn-techs-more a:hover { text-decoration: underline; }
@media (max-width: 900px) { .nbn-techs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .nbn-techs { grid-template-columns: 1fr; } }
