/* =====================================================================
   MyLodestar
   Same tokens, type and hard edges as lodestarnetworks.co.uk.
   ===================================================================== */

:root {
  --azure: #0040E4;
  --cream: #F4EDE0;
  --paper: #FBF7EF;
  --ink: #0C0B08;
  --panel: #100F0B;
  --coral: #FF5722;
  --white: #ffffff;
  --muted: #6A655C;
  --dark-mute: #9C9689;
  --soft: #C9C4B8;
  --dark-line: rgba(244, 237, 224, 0.16);
  --hairline: rgba(23, 21, 15, 0.14);
  --rule: rgba(23, 21, 15, 0.9);
  --green: #6EE7A8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.disp { font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.0; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; font-weight: 500; letter-spacing: 0.02em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--cream); padding: 0.75rem 1rem; z-index: 200; }
.skip:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.75rem); width: 100%; }
.wrap--narrow { max-width: 640px; }
.band { padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.band--tight { padding: clamp(1.75rem, 4vw, 2.5rem) 0; }
.band--dark { background: var(--ink); color: var(--cream); }
main { flex: 1; }

.eyebrow { font-family: "Geist Mono", monospace; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: inline-block; margin-bottom: 1.25rem; }
.band--dark .eyebrow { color: var(--dark-mute); }
.section-title { font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.02; font-size: clamp(2rem, 5vw, 3rem); max-width: 20ch; }
.lede-body { font-size: clamp(1.02rem, 2.1vw, 1.15rem); font-weight: 300; max-width: 58ch; }
.lede-body + .lede-body { margin-top: 0.9rem; }
.small { font-size: 0.88rem; font-weight: 300; color: var(--muted); }

/* ---------- Header ---------- */
header.site { position: sticky; top: 0; z-index: 100; background: var(--ink); border-bottom: 1px solid var(--dark-line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1.25rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0; }
.brand-logo { height: 30px; width: 30px; display: block; filter: brightness(0) invert(1); opacity: 0.92; }
.brand .word { font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: 0.12em; font-size: 0.98rem; text-transform: uppercase; color: var(--cream); }
.brand .word b { color: var(--coral); font-weight: 700; }
nav.main { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
nav.main a, nav.main button {
  font-family: "Geist Mono", monospace; font-size: 0.72rem; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--cream); opacity: 0.72;
  background: none; border: none; cursor: pointer; padding: 0;
  transition: opacity 0.15s ease, color 0.15s ease;
}
nav.main a:hover, nav.main button:hover { opacity: 1; color: var(--coral); }
nav.main a.on { opacity: 1; color: var(--coral); }
nav.main a.cta { opacity: 1; color: var(--white); background: var(--coral); padding: 0.5rem 0.9rem; }
nav.main a.cta:hover { background: var(--azure); color: var(--cream); }
@media (max-width: 720px) { nav.main a.hide-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 0.92rem; padding: 0.85rem 1.5rem; display: inline-block; border: none; cursor: pointer; text-align: center; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.btn-coral { background: var(--coral); color: var(--white); }
.btn-coral:hover { background: var(--ink); color: var(--cream); }
.btn-azure { background: var(--azure); color: var(--cream); }
.btn-azure:hover { background: var(--ink); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--azure); }
.btn-ghost { border: 2px solid var(--ink); color: var(--ink); background: none; }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-ghost-light { border: 2px solid rgba(244, 237, 224, 0.55); color: var(--cream); background: none; }
.btn-ghost-light:hover { border-color: var(--cream); background: var(--cream); color: var(--azure); }
.btn-danger { border: 2px solid var(--coral); color: var(--coral); background: none; }
.btn-danger:hover { background: var(--coral); color: var(--white); }
.btn-sm { padding: 0.6rem 1rem; font-size: 0.84rem; }
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---------- Hero ---------- */
.hero { background: var(--azure); color: var(--cream); padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.hero h1 { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(2.5rem, 7.5vw, 4.75rem); line-height: 0.98; letter-spacing: -0.025em; max-width: 15ch; }
.hero h1 span { color: var(--coral); }
.hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 50ch; margin-top: 1.4rem; font-weight: 300; }
.hero-cta { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- Page head, used inside the portal ---------- */
.phead { background: var(--ink); color: var(--cream); padding: clamp(1.75rem, 4vw, 2.5rem) 0; }
.phead h1 { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.02; letter-spacing: -0.02em; }
.phead h1 b { color: var(--coral); font-weight: 700; }
.phead p { font-weight: 300; margin-top: 0.6rem; max-width: 58ch; color: var(--soft); }
.phead .eyebrow { color: var(--dark-mute); margin-bottom: 0.9rem; }
.crumb { font-family: "Geist Mono", monospace; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dark-mute); margin-bottom: 0.75rem; display: block; }
.crumb:hover { color: var(--coral); }

/* ---------- Flash messages ---------- */
.flashes { margin: 0 0 1.75rem; }
.flash { border: 2px solid var(--ink); padding: 0.9rem 1.1rem; font-size: 0.94rem; display: flex; gap: 0.7rem; align-items: flex-start; }
.flash + .flash { margin-top: 0.6rem; }
.flash .fk { font-family: "Geist Mono", monospace; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; flex: none; padding-top: 0.15rem; }
.flash.ok { border-color: var(--azure); background: rgba(0, 64, 228, 0.07); }
.flash.ok .fk { color: var(--azure); }
.flash.warn, .flash.error { border-color: var(--coral); background: rgba(255, 87, 34, 0.09); }
.flash.warn .fk, .flash.error .fk { color: var(--coral); }

/* ---------- Panels ---------- */
.panel { border: 2px solid var(--ink); background: var(--paper); padding: clamp(1.4rem, 3vw, 2rem); }
.panel + .panel { margin-top: 1.5rem; }
.panel h2, .panel h3 { font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.panel h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); }
.panel h3 { font-size: 1.2rem; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.panel-dark { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.panel-dark .small { color: var(--dark-mute); }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.25rem; }
.field > label { font-family: "Geist Mono", monospace; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 0.45rem; }
.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="number"], .field select, .field textarea {
  width: 100%; border: 2px solid var(--ink); background: var(--white); color: var(--ink);
  padding: 0.8rem 0.9rem; font-size: 0.98rem; border-radius: 0; appearance: none;
}
.field textarea { min-height: 5.5rem; resize: vertical; }
.field select { background-image: none; }
.field .hint { font-size: 0.84rem; font-weight: 300; color: var(--muted); margin-top: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

.check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; padding: 0.85rem 0; border-top: 1px solid var(--hairline); }
.check:first-of-type { border-top: none; }
.check input[type="checkbox"] { width: 20px; height: 20px; margin-top: 0.2rem; accent-color: var(--azure); }
.check label { font-size: 0.94rem; font-weight: 300; }
.check label b { font-weight: 600; }
.check-box { border: 2px solid var(--ink); padding: 0.5rem 1rem; margin: 1.25rem 0; }

/* the honeypot: off-screen, never focusable, no semantic name to autofill */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Data rows ---------- */
.rows { border: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: 200px 1fr; gap: 1rem; padding: 0.85rem 1.1rem; border-top: 1px solid var(--hairline); }
.row:first-child { border-top: none; }
.row .k { font-family: "Geist Mono", monospace; font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); padding-top: 0.15rem; }
.row .v { font-size: 0.96rem; word-break: break-word; }
.row .v.mono { font-family: "Geist Mono", monospace; font-size: 0.92rem; }
@media (max-width: 620px) { .row { grid-template-columns: 1fr; gap: 0.2rem; } }

/* ---------- Line cards ---------- */
.lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--rule); border: 2px solid var(--ink); }
.line-card { background: var(--cream); padding: 1.4rem 1.35rem; display: flex; flex-direction: column; }
.line-card .ext { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 2.4rem; line-height: 1; letter-spacing: -0.02em; }
.line-card .lbl { font-family: "Geist Mono", monospace; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); margin-top: 0.5rem; }
.line-card .nm { font-size: 0.98rem; margin-top: 0.55rem; font-weight: 400; }
.line-card .meta { font-size: 0.84rem; font-weight: 300; color: var(--muted); margin-top: 0.3rem; }
.line-card .go { margin-top: auto; padding-top: 1.1rem; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 0.9rem; color: var(--azure); }
.line-card .go:hover { color: var(--coral); }
.line-card.add { background: var(--ink); color: var(--cream); justify-content: center; }
.line-card.add .plus { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--coral); }
.line-card.add .t { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.05rem; margin-top: 0.6rem; }
.line-card.add .s { font-size: 0.85rem; font-weight: 300; color: var(--dark-mute); margin-top: 0.3rem; }

/* ---------- Service tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--rule); border: 2px solid var(--ink); margin-top: 1.5rem; }
.tile { background: var(--cream); padding: 1.6rem 1.4rem; display: flex; flex-direction: column; }
.tile .t-tag { font-family: "Geist Mono", monospace; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tile h3 { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.5rem; line-height: 1.05; margin: 0.6rem 0 0.5rem; }
.tile h3 b { color: var(--coral); }
.tile p { font-size: 0.92rem; font-weight: 300; color: var(--muted); }
.tile .t-link { margin-top: auto; padding-top: 1.2rem; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 0.9rem; color: var(--azure); }
.tile .t-link:hover { color: var(--coral); }
.tile.live { background: var(--ink); color: var(--cream); }
.tile.live .t-tag { color: var(--dark-mute); }
.tile.live p { color: var(--soft); }
.tile.live .t-link { color: var(--coral); }
.tile.live .t-link:hover { color: var(--cream); }

/* ---------- Badges ---------- */
.badge { font-family: "Geist Mono", monospace; font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.28rem 0.55rem; border: 1px solid currentColor; }
.badge .d { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.live { color: #1a8f5a; }
.tile.live .badge.live, .panel-dark .badge.live { color: var(--green); }
.badge.soon { color: var(--coral); }
.badge.off { color: var(--muted); }
.badge.on-list { color: var(--azure); }

/* ---------- Coming soon strip ---------- */
.soon-strip { border: 2px solid var(--coral); margin-bottom: 1.75rem; }
.soon-top { background: var(--coral); color: var(--white); padding: 0.8rem clamp(1rem, 3vw, 1.4rem); font-family: "Geist Mono", monospace; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; display: flex; align-items: center; gap: 0.6rem; }
.soon-body { padding: 1.1rem clamp(1rem, 3vw, 1.4rem); font-size: 0.95rem; font-weight: 300; background: rgba(255, 87, 34, 0.06); }
.soon-body b { font-weight: 600; }

/* ---------- Credential block ---------- */
.creds { border: 2px solid var(--azure); margin-top: 1.5rem; }
.creds-top { background: var(--azure); color: var(--cream); padding: 0.8rem clamp(1rem, 3vw, 1.4rem); font-family: "Geist Mono", monospace; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.creds .row { border-top-color: rgba(0, 64, 228, 0.18); }
.creds .v.mono { color: var(--azure); font-weight: 500; }
.copy-btn { font-family: "Geist Mono", monospace; font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--azure); color: var(--azure); background: none; padding: 0.2rem 0.5rem; cursor: pointer; margin-left: 0.6rem; }
.copy-btn:hover { background: var(--azure); color: var(--cream); }

.once { border: 2px solid var(--coral); background: rgba(255, 87, 34, 0.09); padding: 1.1rem 1.2rem; margin-top: 1.5rem; }
.once .lbl { font-family: "Geist Mono", monospace; font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--coral); }
.once .pw { font-family: "Geist Mono", monospace; font-size: clamp(1.1rem, 3.2vw, 1.5rem); font-weight: 500; margin-top: 0.5rem; word-break: break-all; }
.once .note { font-size: 0.88rem; font-weight: 300; margin-top: 0.6rem; }

/* ---------- Directory ---------- */
.dir-search { display: flex; gap: 0; margin: 1.5rem 0; max-width: 520px; }
.dir-search input { flex: 1; border: 2px solid var(--ink); border-right: none; padding: 0.8rem 0.9rem; font-size: 0.98rem; background: var(--white); border-radius: 0; }
.dir-search button { background: var(--ink); color: var(--cream); border: 2px solid var(--ink); padding: 0 1.3rem; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.dir-search button:hover { background: var(--coral); border-color: var(--coral); }

.dir { border: 2px solid var(--ink); }
.dir-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 1rem; padding: 0.85rem 1.1rem; border-top: 1px solid var(--hairline); align-items: center; }
.dir-row:first-child { border-top: none; }
.dir-row .num { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--azure); }
.dir-row .nm { font-size: 1rem; }
.dir-row .nt { font-size: 0.85rem; font-weight: 300; color: var(--muted); }
.dir-row .loc { font-family: "Geist Mono", monospace; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 620px) { .dir-row { grid-template-columns: 90px 1fr; } .dir-row .loc { grid-column: 2; } }

.empty { border: 2px dashed var(--rule); padding: clamp(1.75rem, 4vw, 2.5rem); text-align: center; }
.empty h3 { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.3rem; }
.empty p { font-size: 0.95rem; font-weight: 300; color: var(--muted); margin-top: 0.5rem; max-width: 44ch; margin-inline: auto; }

/* ---------- Emergency notice ---------- */
.emg { border: 1px solid var(--coral); background: rgba(255, 87, 34, 0.09); padding: 1.1rem 1.25rem; display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.75rem; }
.emg .ic { color: var(--coral); font-weight: 700; font-size: 1.1rem; line-height: 1.2; flex: none; }
.emg p { font-family: "Geist Mono", monospace; font-size: 0.78rem; line-height: 1.7; }
.emg strong { color: var(--coral); }

/* ---------- Two column ---------- */
.two-col { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer.site { background: var(--panel); color: var(--cream); padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--dark-line); }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .word { font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 1.02rem; }
.foot-brand p { color: var(--dark-mute); font-weight: 300; margin-top: 0.9rem; max-width: 32ch; font-size: 0.9rem; }
.foot-col h4 { font-family: "Geist Mono", monospace; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dark-mute); font-weight: 500; margin-bottom: 1rem; }
.foot-col a, .foot-col span { display: block; color: var(--cream); font-size: 0.89rem; padding: 0.26rem 0; opacity: 0.82; }
.foot-col a:hover { opacity: 1; color: var(--coral); }
.foot-emg { margin-top: 1.75rem; font-family: "Geist Mono", monospace; font-size: 0.74rem; line-height: 1.7; color: var(--dark-mute); }
.foot-emg strong { color: var(--coral); }
.foot-meta { margin-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; font-family: "Geist Mono", monospace; font-size: 0.7rem; letter-spacing: 0.05em; color: var(--dark-mute); }
