/* Shared styles for GuardianGamer newsletters */
:root {
  --teal: #157a7e; --teal-deep: #0e5c5f; --teal-soft: #d9ecec;
  --cream: #f6f2e9; --warm: #fbf8f0;
  --ink: #0f1b1c; --muted: #5a6b6c;
  --line: rgba(15,27,28,.10); --lime: #b7e34a;
  --orange: #ff7a3d; --red: #d64545;
  --r: 18px; --rl: 28px;
  --shadow: 0 18px 60px -28px rgba(15,27,28,.28), 0 2px 8px rgba(15,27,28,.04);
}
*,*::before,*::after { box-sizing: border-box; margin:0; padding:0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background: var(--warm);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a.inline { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a.inline:hover { color: var(--teal-deep); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; width: 100%; }

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin: 56px 0 18px; padding-bottom: 14px; border-bottom: 2px solid var(--teal-soft); }
h3 { font-size: 1.25rem; margin: 32px 0 10px; }
h4 { font-size: 1.05rem; margin: 22px 0 8px; }
p  { color: #3b4849; font-size: 1.04rem; margin-bottom: 14px; }
.muted { color: var(--muted); font-size: 0.92rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: #157a7e;
  border-bottom: 1px solid rgba(255,255,255,.1);
  width: 100%;
  left: 0; right: 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1180px; margin: 0 auto;
  position: relative;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img {
  height: auto; width: 240px;
  display: block; image-rendering: high-quality;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.2));
}
.nav-links { display: flex; gap: 28px; font-size: 0.95rem; font-weight: 500; }
.nav-links a { color: rgba(255,255,255,.8); transition: color .15s ease; }
.nav-links a:hover { color: #fff; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem;
  border: none; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.nav .btn {
  background: #b7e34a; color: #0f1b1c;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  flex-shrink: 0;
}
.nav .btn:hover { background: #9de030; }

.hamburger {
  display: none;
  flex-direction: column; gap: 6px;
  width: 38px; height: 32px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px; cursor: pointer;
  padding: 7px; justify-content: center; align-items: center;
}
.hamburger span {
  display: block; width: 100%; height: 2.5px;
  background: #fff; border-radius: 2px;
  transition: transform .25s ease, opacity .15s ease;
}
.nav-open .hamburger span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.nav-open .hamburger span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Landscape phone */
@media (max-height: 500px) and (orientation: landscape) {
  .nav-inner { padding: 6px 16px; }
  .brand img { width: 160px; }
  .nav-links { display: none; }
  .nav .btn { display: none; }
  .hamburger { display: flex; }
  section, .nl-hero { padding: 30px 0; }
  h2 { font-size: 1.5rem; }
  .nl-hero h1 { font-size: 1.8rem; }
}

@media (max-width: 1024px) and (orientation: portrait) {
  .nav .btn { display: none; }
  .hamburger { display: flex; }
  .nav-links { display: none; }
  .nav-open .nav-links {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(21,122,126,.85); backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px);
    padding: 16px 24px 24px; gap: 0;
    border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 20px 40px rgba(0,0,0,.35); z-index: 100;
  }
  .nav-open .nav-links a { color: #fff; font-size: 1rem; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-open .nav-links a:last-child { border-bottom: none; }
  .nav-open .nav-links a:hover { color: var(--lime); }
}
@media (max-width: 768px) {
  .nav-inner { padding: 10px 16px; }
  .brand img { width: 180px; }
  .nav-links { display: none; }
  .nav .btn { display: none; }
  .hamburger { display: flex; }

  .nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(21,122,126,.85); backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px);
    padding: 16px 24px 24px;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
    z-index: 100;
  }
  .nav-open .nav-links a {
    color: #fff;
    font-size: 1rem;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav-open .nav-links a:last-child { border-bottom: none; }
  .nav-open .nav-links a:hover { color: var(--lime); }
}

/* Newsletter hero */
.nl-hero {
  padding: 70px 0 40px;
  background:
    radial-gradient(900px 400px at 50% 0%, var(--teal-soft) 0%, transparent 65%),
    var(--warm);
}
.nl-hero .wrap { max-width: 760px; }
.nl-hero .meta {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 7px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.nl-hero h1 { margin-bottom: 18px; }
.nl-hero .lede { font-size: 1.15rem; color: #3b4849; }
.nl-hero .date { color: var(--muted); font-size: 0.92rem; margin-top: 14px; }

/* Article */
.nl-article {
  padding: 30px 0 90px;
  flex: 1;
}
.nl-article .wrap { max-width: 760px; }
.nl-article ul, .nl-article ol { margin: 12px 0 20px 24px; color: #3b4849; font-size: 1.02rem; }
.nl-article li { margin-bottom: 8px; line-height: 1.65; }
.nl-article ul li::marker { color: var(--teal); }

/* Callout boxes */
.callout {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 24px 0;
}
.callout.warn { border-left-color: var(--orange); }
.callout.alert { border-left-color: var(--red); background: #fff7f6; }
.callout h4 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout .source { font-size: 0.82rem; color: var(--muted); margin-top: 8px; font-style: italic; }

/* Stats grid */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
}
.stat .num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.02em;
  display: block;
}
.stat .lab { font-size: 0.82rem; color: var(--muted); margin-top: 4px; line-height: 1.3; }

/* Incident card */
.incident {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 16px 0;
}
.incident .when {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 6px;
}
.incident h4 { margin: 0 0 10px; font-size: 1.1rem; }
.incident p:last-child { margin-bottom: 0; }
.incident .src { font-size: 0.82rem; color: var(--muted); margin-top: 8px; font-style: italic; }

/* Action checklist */
.checklist {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 24px 0;
}
.checklist h3 { margin-top: 0; }
.checklist ol { list-style: none; counter-reset: item; margin: 16px 0 0; padding: 0; }
.checklist li {
  counter-increment: item;
  position: relative;
  padding: 10px 0 10px 44px;
  border-bottom: 1px dashed var(--line);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: counter(item);
  position: absolute;
  left: 0; top: 12px;
  width: 30px; height: 30px;
  background: var(--teal);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
}
.checklist li strong { color: var(--ink); }

/* CTA card */
.nl-cta {
  background: linear-gradient(180deg, var(--teal-deep) 0%, var(--teal) 100%);
  color: #fff;
  text-align: center;
  border-radius: var(--rl);
  padding: 50px 40px;
  margin: 60px 0 30px;
}
.nl-cta h3 { color: #fff; font-size: 1.6rem; margin-bottom: 12px; }
.nl-cta p { color: #c9e2e3; max-width: 480px; margin: 0 auto 24px; }
.nl-cta .btn { background: var(--lime); color: var(--ink); padding: 16px 30px; font-size: 1rem; }
.nl-cta .btn:hover { background: #c9ee5e; }
.nl-cta .fineprint { font-size: 0.82rem; color: #97cccd; margin-top: 14px; }

/* Sources */
.sources {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.sources h4 { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.sources p { font-size: 0.88rem; color: var(--muted); }

/* Back link */
.back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.92rem; color: var(--teal); font-weight: 600;
  margin-bottom: 20px;
}
.back:hover { color: var(--teal-deep); }

/* Footer */
footer {
  background: var(--ink);
  color: #c4cfd0;
  padding: 60px 0 30px;
  margin-top: auto;
}
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr 1fr; } }
footer h4 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-weight: 600; }
footer ul { list-style: none; }
footer li { padding: 6px 0; font-size: 0.92rem; }
footer li a:hover { color: var(--lime); }
footer .brand { margin-bottom: 16px; }
footer .brand img { width: 340px; height: auto; max-width: 100%; }
footer .brand, footer .tag, footer .socials { max-width: 340px; }
footer .tag { font-size: 0.92rem; color: #8c9b9c; max-width: 280px; }
.socials { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); transition: background .2s ease, transform .2s ease, border-color .2s ease; }
.socials a:hover { background: var(--lime); border-color: var(--lime); transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; fill: #c4cfd0; transition: fill .2s ease; }
.socials a:hover svg { fill: var(--ink); }
@media (max-width: 768px) {
  footer .brand img { width: 268px; }
  footer .brand, footer .tag, footer .socials { max-width: 268px; }
}
/* Newsletter strip */
.newsletter { background: linear-gradient(180deg, #15282a 0%, var(--ink) 100%); border-bottom: 1px solid rgba(255,255,255,.06); padding: 56px 0; }
.newsletter-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .newsletter-inner { grid-template-columns: 1fr; gap: 24px; } }
.newsletter h3 { font-family: 'Montserrat', sans-serif; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; color: #fff; letter-spacing: -0.02em; margin-bottom: 8px; line-height: 1.2; }
.newsletter p { font-size: 0.95rem; color: #97a8a9; max-width: 460px; }
.newsletter form { display: flex; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 6px 6px 6px 22px; transition: border-color .2s ease, background .2s ease; }
.newsletter form:focus-within { border-color: var(--lime); background: rgba(255,255,255,.08); }
.newsletter input[type="email"] { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: #b7e34a; font: inherit; font-size: 0.98rem; padding: 12px 0; }
.newsletter input[type="email"]::placeholder { color: #6b7a7b; }
.newsletter button { flex-shrink: 0; background: var(--lime); color: var(--ink); border: none; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 0.92rem; cursor: pointer; transition: background .15s ease, transform .15s ease; font-family: inherit; }
.newsletter button:hover { background: #c9ee5e; transform: translateY(-1px); }
.newsletter .fineprint { font-size: 0.78rem; color: #6b7a7b; margin-top: 12px; }
.footer-bottom {
  max-width: 1180px; margin: 40px auto 0; padding: 22px 24px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: #6b7a7b;
}

/* Archive index */
.archive { padding: 70px 0 100px; flex: 1; }
.archive .wrap { max-width: 920px; }
.archive h1 { margin-bottom: 14px; }
.archive .lede { font-size: 1.1rem; color: #3b4849; max-width: 560px; margin-bottom: 50px; }
.archive-list { display: grid; gap: 22px; }
.archive-item {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--rl);
  padding: 32px 36px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.archive-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--teal);
}
.archive-item .when {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 8px;
}
.archive-item h2 { font-size: 1.5rem; margin: 0 0 10px; padding: 0; border: none; }
.archive-item p { color: var(--muted); font-size: 0.98rem; margin-bottom: 0; }
.archive-item.upcoming { border-style: dashed; opacity: .65; }
.archive-item.upcoming:hover { transform: none; box-shadow: none; }
