/* ============================================================
   SkyDroneNews.com — core stylesheet
   Design direction: night-flight ground control station, tuned to the
   synthwave brand mark. Deep blue-black field, neon magenta as the primary
   accent (pulled from the logo's wordmark), HUD cyan for data and links
   (the logo's rotor glow), sunset orange held back for status only.
   ============================================================ */

:root {
  /* Field */
  --void:      #070B14;
  --panel:     #0E1524;
  --panel-hi:  #141E33;
  --line:      #1C2942;
  --line-hot:  #2C4066;

  /* Signal */
  --signal:    #FF2E88;   /* logo magenta — primary accent, used sparingly */
  --signal-dim:#A8175380;
  --signal-lo: #FF63A6;   /* hover lift on the primary */
  --telemetry: #4FD8E8;   /* logo rotor cyan — data, links, live values */
  --sunset:    #FF7A1A;   /* logo sun — held status only */
  --alert:     #FF4D5E;   /* restricted / legal warnings only */
  --clear:     #5CE07F;   /* cleared / permitted status only */

  /* Ink */
  --ink:       #DCE6F5;
  --ink-soft:  #A9B8D0;
  --mute:      #6F7F9C;

  /* Type */
  --display: "Chakra Petch", "Arial Narrow", system-ui, sans-serif;
  --body:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --data:    "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  /* Metrics */
  --gut: clamp(1rem, 4vw, 2.5rem);
  --max: 1180px;
  --rad: 2px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* faint sectional-chart grid, like an airspace map underlay */
  background-image:
    linear-gradient(rgba(28,41,66,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,41,66,.35) 1px, transparent 1px);
  background-size: 68px 68px;
  background-position: center top;
}

img { max-width: 100%; display: block; }

a { color: var(--telemetry); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signal); }

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

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }

.skip {
  position: absolute; left: -9999px;
  background: var(--signal); color: #000; padding: .6rem 1rem; z-index: 200;
  font-family: var(--data); font-size: .8rem;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Telemetry strip (top of every page) ---------- */

.telemetry {
  border-bottom: 1px solid var(--line);
  background: rgba(7,11,20,.92);
  font-family: var(--data);
  font-size: .68rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--mute);
}
.telemetry .wrap {
  display: flex; gap: 1.6rem; align-items: center;
  height: 34px; overflow-x: auto; scrollbar-width: none;
}
.telemetry .wrap::-webkit-scrollbar { display: none; }
.telemetry b { color: var(--telemetry); font-weight: 500; }
.telemetry .live { color: var(--clear); }
.telemetry .live::before {
  content: "●"; margin-right: .4rem; font-size: .6rem;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

/* ---------- Masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,11,20,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img {
  width: 42px; height: 42px; border-radius: var(--rad); flex: none;
  /* the mark carries its own black field; a hairline stops it floating */
  border: 1px solid var(--line-hot);
}
.brand .lockup { display: flex; align-items: baseline; gap: .5rem; }
.brand .mark {
  font-family: var(--display); font-weight: 700; font-size: 1.42rem;
  letter-spacing: -.02em; color: var(--ink);
}
.brand .mark em { font-style: normal; color: var(--signal); }
.brand .tld {
  font-family: var(--data); font-size: .62rem; color: var(--mute);
  letter-spacing: .14em; text-transform: uppercase;
}

.nav { display: flex; gap: .3rem; align-items: center; }
.nav a {
  font-family: var(--data); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft); text-decoration: none;
  padding: .5rem .7rem; border: 1px solid transparent; border-radius: var(--rad);
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--ink); border-color: var(--line-hot); background: var(--panel);
}
.nav a[aria-current="page"] { color: var(--signal); }

.navtoggle {
  display: none; background: var(--panel); color: var(--ink);
  border: 1px solid var(--line-hot); border-radius: var(--rad);
  font-family: var(--data); font-size: .72rem; letter-spacing: .1em;
  padding: .55rem .8rem; cursor: pointer; text-transform: uppercase;
}

@media (max-width: 860px) {
  .navtoggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--void); border-bottom: 1px solid var(--line-hot);
    padding: .5rem var(--gut) 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .2rem; border-bottom: 1px solid var(--line); }
}

/* ---------- Section headers with scanline signature ---------- */

.shead {
  display: flex; align-items: center; gap: 1rem;
  margin: 3.4rem 0 1.5rem;
}
.shead h2 {
  font-family: var(--display); font-weight: 600; font-size: 1.02rem;
  letter-spacing: .18em; text-transform: uppercase; margin: 0;
  color: var(--ink); white-space: nowrap;
}
.shead .rule {
  flex: 1; height: 1px; background: var(--line-hot); position: relative; overflow: hidden;
}
/* signature: an RF sweep travelling the rule, like a spectrum analyser */
.shead .rule::after {
  content: ""; position: absolute; inset: 0; width: 90px;
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
  animation: sweep 5.5s linear infinite;
}
@keyframes sweep { from { transform: translateX(-120px) } to { transform: translateX(1200px) } }
.shead .more {
  font-family: var(--data); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; white-space: nowrap;
}

/* ---------- Lead story: framed like a locked gimbal target ---------- */

.lead {
  position: relative; margin-top: 2.6rem;
  padding: clamp(1.6rem, 4vw, 3rem);
  background: linear-gradient(160deg, var(--panel-hi), var(--panel) 62%);
  border: 1px solid var(--line-hot);
}
/* corner brackets */
.lead::before, .lead::after {
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none;
}
.lead::before { top: -1px; left: -1px; border-top: 2px solid var(--signal); border-left: 2px solid var(--signal); }
.lead::after  { bottom: -1px; right: -1px; border-bottom: 2px solid var(--signal); border-right: 2px solid var(--signal); }

.lead .eyebrow {
  font-family: var(--data); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--signal); margin: 0 0 1rem;
}
.lead h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.9rem, 5.2vw, 3.15rem); line-height: 1.08;
  letter-spacing: -.02em; margin: 0 0 1rem; max-width: 20ch;
}
.lead p { color: var(--ink-soft); max-width: 62ch; font-size: 1.06rem; margin: 0 0 1.6rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--data); font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
  padding: .78rem 1.25rem; border-radius: var(--rad);
  border: 1px solid var(--line-hot); color: var(--ink); background: var(--panel);
  transition: border-color .18s, color .18s, background .18s;
}
.btn:hover { border-color: var(--signal); color: var(--signal); background: var(--panel-hi); }
.btn-solid { background: var(--signal); border-color: var(--signal); color: #0B0407; font-weight: 600; }
.btn-solid:hover { background: var(--signal-lo); border-color: var(--signal-lo); color: #0B0407; }

/* ---------- Story cards ---------- */

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--void); padding: 1.5rem 1.4rem;
  display: flex; flex-direction: column; gap: .7rem;
  position: relative; transition: background .2s;
}
.card:hover { background: var(--panel); }
.card .tag {
  font-family: var(--data); font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--signal);
}
.card .tag.reg   { color: var(--telemetry); }
.card .tag.cuas  { color: var(--alert); }
.card h3 {
  font-family: var(--display); font-weight: 600; font-size: 1.16rem;
  line-height: 1.28; margin: 0; letter-spacing: -.005em;
}
.card h3 a { color: var(--ink); text-decoration: none; }
.card:hover h3 a { color: var(--signal); }
.card p { margin: 0; color: var(--mute); font-size: .92rem; line-height: 1.55; }
.card time {
  font-family: var(--data); font-size: .64rem; letter-spacing: .1em;
  color: var(--mute); text-transform: uppercase; margin-top: auto; padding-top: .6rem;
}

/* ---------- Gear cards (affiliate) ---------- */

.gear {
  background: var(--panel); border: 1px solid var(--line);
  padding: 1.5rem 1.4rem; display: flex; flex-direction: column; gap: .6rem;
  position: relative; transition: border-color .2s, transform .2s;
}
.gear:hover { border-color: var(--line-hot); transform: translateY(-2px); }
.gear .slot {
  font-family: var(--data); font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--telemetry);
}
.gear h3 { font-family: var(--display); font-size: 1.1rem; font-weight: 600; margin: 0; }
.gear p { margin: 0; font-size: .9rem; color: var(--ink-soft); line-height: 1.55; }
.gear ul { margin: .2rem 0 0; padding-left: 1.05rem; font-size: .85rem; color: var(--mute); }
.gear ul li { margin-bottom: .3rem; }
.gear .btn { margin-top: auto; align-self: flex-start; }
.gear .note {
  font-family: var(--data); font-size: .6rem; letter-spacing: .08em;
  color: var(--mute); text-transform: uppercase;
}
.gearlist { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ---------- Notices ---------- */

.notice {
  border: 1px solid var(--line-hot); border-left: 3px solid var(--telemetry);
  background: var(--panel); padding: 1.15rem 1.3rem; margin: 1.8rem 0;
  font-size: .93rem; color: var(--ink-soft);
}
.notice strong { color: var(--ink); }
.notice.legal { border-left-color: var(--alert); }
.notice.legal strong { color: var(--alert); }
.notice.money { border-left-color: var(--signal); }
.notice .lbl {
  display: block; font-family: var(--data); font-size: .64rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--mute);
  margin-bottom: .5rem;
}

/* ---------- Ad slots ---------- */

.adslot {
  margin: 2.4rem 0; padding: 1rem; min-height: 96px;
  border: 1px dashed var(--line-hot); background: rgba(14,21,36,.5);
  display: grid; place-items: center; text-align: center;
}
.adslot .adlabel {
  font-family: var(--data); font-size: .6rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--mute);
}

/* ---------- Status board (regulatory / detection) ---------- */

.board { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1.4rem 0; }
.board th, .board td { text-align: left; padding: .85rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.board th {
  font-family: var(--data); font-size: .64rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--mute); border-bottom-color: var(--line-hot);
}
.board td:first-child { font-family: var(--display); font-weight: 600; color: var(--ink); }
.board .st {
  font-family: var(--data); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; padding: .18rem .5rem; border: 1px solid currentColor;
  border-radius: var(--rad); white-space: nowrap;
}
.st-open   { color: var(--clear); }
.st-hold   { color: var(--sunset); }
.st-closed { color: var(--alert); }
.st-watch  { color: var(--telemetry); }
@media (max-width: 700px) {
  .board, .board tbody, .board tr, .board td { display: block; width: 100%; }
  .board thead { display: none; }
  .board tr { border: 1px solid var(--line); margin-bottom: .9rem; padding: .4rem; }
  .board td { border: 0; padding: .45rem .6rem; }
}

/* ---------- Article body ---------- */

.article { max-width: 74ch; margin: 0 auto; }
.article h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.8rem, 4.6vw, 2.7rem); line-height: 1.12;
  letter-spacing: -.02em; margin: .6rem 0 1rem;
}
.article h2 {
  font-family: var(--display); font-weight: 600; font-size: 1.32rem;
  margin: 2.6rem 0 .8rem; letter-spacing: -.01em;
}
.article h3 { font-family: var(--display); font-weight: 600; font-size: 1.08rem; margin: 1.9rem 0 .6rem; }
.article p { margin: 0 0 1.15rem; }
.article ul, .article ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.article li { margin-bottom: .5rem; }
.article .byline {
  font-family: var(--data); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--mute);
  padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem;
}
.article .kicker {
  font-size: 1.1rem; color: var(--ink-soft); line-height: 1.6;
  border-left: 2px solid var(--signal); padding-left: 1.1rem; margin-bottom: 2rem;
}
.article blockquote {
  margin: 1.6rem 0; padding: .3rem 0 .3rem 1.2rem;
  border-left: 2px solid var(--line-hot); color: var(--ink-soft); font-style: normal;
}
.sources { font-size: .86rem; color: var(--mute); }
.sources li { margin-bottom: .45rem; }

/* ---------- Search ---------- */

.searchbar { display: flex; gap: .6rem; margin: 1.6rem 0 2rem; }
.searchbar input {
  flex: 1; background: var(--panel); border: 1px solid var(--line-hot);
  color: var(--ink); padding: .8rem 1rem; font-family: var(--data);
  font-size: .85rem; border-radius: var(--rad);
}
.searchbar input::placeholder { color: var(--mute); }
.searchbar input:focus { outline: none; border-color: var(--signal); }
.hidden { display: none !important; }
#noresults { color: var(--mute); font-family: var(--data); font-size: .82rem; padding: 1.4rem 0; }

/* ---------- Newsletter ---------- */

.signup {
  margin: 3.5rem 0 1rem; padding: clamp(1.6rem, 4vw, 2.6rem);
  border: 1px solid var(--line-hot); background: linear-gradient(160deg, var(--panel-hi), var(--panel));
  position: relative;
}
.signup::before {
  content: ""; position: absolute; top: -1px; left: -1px; width: 22px; height: 22px;
  border-top: 2px solid var(--telemetry); border-left: 2px solid var(--telemetry);
}
.signup h2 { font-family: var(--display); font-size: 1.5rem; margin: 0 0 .6rem; letter-spacing: -.01em; }
.signup p { color: var(--ink-soft); margin: 0 0 1.3rem; max-width: 54ch; }
.signup form { display: flex; gap: .6rem; flex-wrap: wrap; }
.signup input {
  flex: 1; min-width: 230px; background: var(--void); border: 1px solid var(--line-hot);
  color: var(--ink); padding: .8rem 1rem; font-family: var(--data); font-size: .85rem;
  border-radius: var(--rad);
}
.signup input:focus { outline: none; border-color: var(--telemetry); }
.signup small { display: block; margin-top: .9rem; color: var(--mute); font-size: .78rem; }

/* ---------- Footer ---------- */

.foot { margin-top: 4.5rem; border-top: 1px solid var(--line); background: rgba(14,21,36,.4); padding: 2.8rem 0 2rem; }
.foot .cols { display: grid; gap: 2rem; grid-template-columns: 1.6fr 1fr 1fr 1fr; }
@media (max-width: 820px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .foot .cols { grid-template-columns: 1fr; } }
.foot h4 {
  font-family: var(--data); font-size: .64rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--mute); margin: 0 0 .9rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .5rem; }
.foot a { color: var(--ink-soft); text-decoration: none; font-size: .88rem; }
.foot a:hover { color: var(--signal); }
.foot .fine {
  margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  color: var(--mute); font-size: .8rem; line-height: 1.7;
}
.foot .fine b { color: var(--ink-soft); font-weight: 600; }

/* ---------- Consent banner ---------- */

#consent {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: var(--panel-hi); border-top: 1px solid var(--signal);
  padding: 1.1rem var(--gut); display: none;
}
#consent.show { display: block; }
#consent .inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap;
}
#consent p { margin: 0; flex: 1; min-width: 260px; font-size: .86rem; color: var(--ink-soft); }
#consent .acts { display: flex; gap: .6rem; }

/* ---------- Motion / print ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .shead .rule::after { display: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .masthead, .telemetry, .adslot, #consent, .signup { display: none; }
}

/* ---------- Footer ad slot ----------
   Sits at the very bottom of the content column, above the site footer.
   Given a little more breathing room and a top rule so it reads as a
   deliberate end-of-page unit rather than a piece of the article. */
.adslot-foot {
  margin: 3.4rem 0 0;
  min-height: 128px;
  border-top: 1px solid var(--line-hot);
}


/* ---------- Brand mark, large ----------
   The logo is the loudest thing on the site by design. It appears full size
   exactly once, in the homepage hero band, and small everywhere else. */
.brandband {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 4vw, 2.4rem);
  align-items: center; padding: clamp(1.4rem, 3.5vw, 2.2rem) 0 0;
}
.brandband img {
  width: clamp(112px, 20vw, 168px); height: auto; border-radius: 3px;
  border: 1px solid var(--line-hot);
}
.brandband .tagline {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem); line-height: 1.3;
  letter-spacing: -.01em; color: var(--ink); margin: 0 0 .5rem; max-width: 26ch;
}
.brandband p.sub { margin: 0; color: var(--mute); font-size: .93rem; max-width: 48ch; }
@media (max-width: 560px) {
  .brandband { grid-template-columns: 1fr; text-align: left; }
}

/* Footer mark */
.foot .footmark {
  width: 64px; height: 64px; border-radius: var(--rad);
  border: 1px solid var(--line); margin-bottom: 1rem;
}

/* ---------- Disclaimers block ----------
   Sits at the bottom of the main column, before the footer. Deliberately
   plain: this is the part a regulator or an Associates reviewer reads, and
   it should look like a statement rather than a design element. */
.disclaimers {
  margin: 3.6rem 0 0; padding: clamp(1.5rem, 4vw, 2.2rem);
  border: 1px solid var(--line); border-top: 2px solid var(--line-hot);
  background: rgba(14, 21, 36, .55);
}
.disclaimers > h2 {
  font-family: var(--display); font-size: .95rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; margin: 0 0 1.4rem; color: var(--ink);
}
.disclaimers .items {
  display: grid; gap: 1.5rem 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.disclaimers h3 {
  font-family: var(--data); font-size: .66rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--telemetry); margin: 0 0 .5rem;
}
.disclaimers h3.warn { color: var(--alert); }
.disclaimers h3.money { color: var(--signal); }
.disclaimers p { margin: 0; font-size: .86rem; line-height: 1.62; color: var(--ink-soft); }
.disclaimers p + p { margin-top: .6rem; }
.disclaimers .updated {
  margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  font-family: var(--data); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--mute);
}
