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

:root {
  --red:    #ff3b5c;
  --dark:   #f1f1f4;
  --mid:    #97979f;
  --light:  #0a0a0c;
  --white:  #17171b;
  --border: #2a2a30;
  --r:      8px;
  --sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: 'Arial Black', 'Segoe UI Black', 'Helvetica Neue', Arial, sans-serif;
  --serif:   var(--display);
  --mono:    'JetBrains Mono', 'Fira Code', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --c-world:    #2f6fed;
  --c-sports:   #1f9d55;
  --c-politics: #ff3b5c;
  --c-business: #d97706;
  --c-style:    #9333ea;
  --c-health:   #0d9488;
  --c-science:  #4f46e5;
}

html { background: #000; }

body {
  font-family: var(--sans);
  background: var(--light);
  color: var(--dark);
  max-width: 480px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }

/* ── Header ── */
header {
  background: var(--white);
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 99;
  border-bottom: 2px solid var(--red);
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
}
.hd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .4px;
  color: var(--mid);
}
.hd-edition {
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .6px;
}
.hd-row {
  padding: 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
}
.logo {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--dark);
  letter-spacing: -.5px;
  line-height: 1;
}
.hd-back {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--dark);
  font-size: 13.5px;
  font-weight: 600;
  min-width: 60px;
}
.hd-back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--dark);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hd-ph { min-width: 60px; }
.hd-nav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hd-nav::-webkit-scrollbar { display: none; }
.hd-nav a {
  white-space: nowrap;
  color: var(--mid);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  padding: 4px 11px;
  border-radius: 20px;
}
.hd-nav a.active { background: var(--red); color: #fff; }

/* ── Footer ── */
footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 22px 16px;
  text-align: center;
  margin-top: 8px;
}
footer a {
  color: #7a7a82;
  font-size: 13px;
  margin: 0 12px;
}
footer a:active { color: #fff; }

/* ── Category tag badge ── */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  padding: 2px 7px;
  color: #fff;
  background: var(--red);
  line-height: 1.6;
}
.tag.World    { background: var(--c-world); }
.tag.Sports   { background: var(--c-sports); }
.tag.Politics { background: var(--c-politics); }
.tag.Business { background: var(--c-business); }
.tag.Style    { background: var(--c-style); }
.tag.Health   { background: var(--c-health); }
.tag.Science  { background: var(--c-science); }

/* ── Section header row (shared) ── */
.sec-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  background: var(--white);
}
.sec-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding-left: 10px;
  border-left: 3px solid var(--red);
}
.sec-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
}
