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

:root {
  --red:    #cc0000;
  --dark:   #111;
  --mid:    #666;
  --light:  #f2f2f2;
  --white:  #fff;
  --border: #e5e5e5;
  --r:      5px;
  --sans:   -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --serif:  Georgia, 'Times New Roman', 'Songti SC', 'Noto Serif SC', serif;
  --mono:   ui-monospace, 'SFMono-Regular', Consolas, 'Courier New', monospace;

  --c-world:    #1565c0;
  --c-sports:   #2e7d32;
  --c-politics: #cc0000;
  --c-business: #e65100;
  --c-style:    #6a1b9a;
  --c-health:   #00695c;
  --c-science:  #283593;
}

html { background: #555; }

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: 3px solid var(--red);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.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: 30px;
  font-weight: 900;
  font-style: italic;
  color: var(--dark);
  letter-spacing: -1px;
  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: #1a1a1a;
  padding: 22px 16px;
  text-align: center;
  margin-top: 8px;
}
footer a {
  color: #aaa;
  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);
}
