/* Nexlane News homepage.
   Idea: the top of the page is "the wire" (fast, dense, links out), the marigold band is the
   signed, original reporting. Two different densities tell readers which is which. */

:root {
  --ink: #0d1726;
  --paper: #f2f4f7;
  --white: #ffffff;
  --gold: #ffb81c;      /* marigold */
  --slate: #5b6678;
  --live: #e5372b;
  --line: #d9dee6;
  --max: 1180px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.foot :focus-visible { outline-color: var(--gold); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 12px; }

.in { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .in { display: flex; align-items: center; gap: 22px; height: 64px; }
.mark { font-weight: 800; font-size: 1.7rem; letter-spacing: -0.045em; line-height: 1; }
.mark b { background: var(--gold); padding: 0.02em 0.2em 0.06em; margin-left: 0.06em; border-radius: 4px; font-weight: 800; }

.pulse { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--slate); margin: 0; }
.pulse i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .pulse i { animation: beat 2.2s ease-in-out infinite; }
}
@keyframes beat { 50% { opacity: 0.3; } }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; font-weight: 600; font-size: 0.95rem; border-radius: 6px; }
.nav a:hover { background: rgba(13, 23, 38, 0.07); }
.nav a.btn { padding: 10px 16px; margin-left: 6px; background: var(--ink); color: #fff; font-weight: 700; }
.nav a.btn:hover { background: #1f2f48; }

.btn { display: inline-block; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 6px; font-weight: 700; font-family: var(--display); border: 0; cursor: pointer; font-size: 1rem; }
.btn:hover { background: #1f2f48; }

@media (max-width: 760px) {
  .pulse { display: none; }
  .nav a.hide-sm { display: none; }
  .top .in { gap: 12px; }
}

/* ---------- Top stories ---------- */
.front { padding: 36px 0 12px; }
.front-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 26px; }
.front-head h1 { font-weight: 800; font-size: clamp(2.1rem, 4.5vw, 3.2rem); letter-spacing: -0.035em; line-height: 1; margin: 0; }

.chips { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding: 2px 2px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 600 0.85rem var(--display); padding: 6px 13px; border-radius: 6px; cursor: pointer; }
.chip:hover { background: rgba(13, 23, 38, 0.08); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

.front-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 44px; align-items: start; }
@media (max-width: 900px) { .front-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; } }

/* Lead story (used on the wire side and in the independent band) */
.lead { display: block; }
.lead-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; background: #dde2ea; }
.lead-title { font-weight: 800; font-size: clamp(1.8rem, 3.3vw, 2.95rem); line-height: 1.06; letter-spacing: -0.028em; margin: 16px 0 10px; text-wrap: balance; }
.lead:hover .lead-title { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.lead-teaser { font-family: var(--text); font-size: 1.15rem; line-height: 1.6; color: #2b384c; max-width: 60ch; margin: 0 0 12px; }

.meta { display: flex; gap: 6px 10px; align-items: center; flex-wrap: wrap; font-size: 0.85rem; color: var(--slate); }
.meta strong { color: var(--ink); font-weight: 700; }
.tick { width: 15px; height: 15px; fill: var(--ink); flex: none; }

/* The wire: latest headlines, text first */
.wire-head { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; margin: 0; padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.wire { list-style: none; margin: 0; padding: 0; }
.wire li { border-bottom: 1px solid var(--line); }
.wire a { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
.wire time { font-weight: 600; font-size: 0.8rem; color: var(--slate); font-variant-numeric: tabular-nums; padding-top: 3px; }
.wire-title { display: block; font-weight: 650; font-size: 1.06rem; line-height: 1.25; letter-spacing: -0.012em; }
.wire a:hover .wire-title { text-decoration: underline; text-underline-offset: 3px; }
.wire-src { display: block; font-size: 0.8rem; color: var(--slate); margin-top: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .wire li { animation: arrive 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--n, 0) * 70ms); }
}
@keyframes arrive { from { opacity: 0; transform: translateX(-10px); } }

/* More headlines */
.more { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 32px 24px; margin-top: 46px; padding-top: 30px; border-top: 3px solid var(--ink); }
.more:empty { display: none; }
.tile { display: block; }
.tile-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; background: #dde2ea; margin-bottom: 10px; }
.tile-title { font-weight: 700; font-size: 1.08rem; line-height: 1.22; letter-spacing: -0.014em; margin: 0 0 6px; }
.tile:hover .tile-title { text-decoration: underline; text-underline-offset: 3px; }

.state { color: var(--slate); padding: 28px 0; }

/* ---------- Independent band ---------- */
.indie { background: var(--gold); margin-top: 60px; padding: 64px 0 56px; }
.indie-head h2 { font-weight: 800; font-size: clamp(2.4rem, 6.5vw, 4.8rem); line-height: 0.96; letter-spacing: -0.045em; margin: 0 0 14px; }
.indie-head p { font-family: var(--text); font-size: 1.18rem; line-height: 1.5; max-width: 50ch; margin: 0 0 38px; }

.indie-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 44px; align-items: start; }
@media (max-width: 900px) { .indie-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; } }
.indie .lead-teaser { color: var(--ink); }
.indie .meta { color: rgba(13, 23, 38, 0.78); }
.indie .lead:hover .lead-title { text-decoration-color: var(--ink); }
.indie .lead-img { background: rgba(13, 23, 38, 0.12); }

.side { border-top: 3px solid var(--ink); }
.side a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 2px solid rgba(13, 23, 38, 0.2); }
.side a.noimg { grid-template-columns: minmax(0, 1fr); }
.side-img { width: 96px; height: 72px; object-fit: cover; border-radius: 4px; background: rgba(13, 23, 38, 0.12); }
.side-title { font-weight: 700; font-size: 1.08rem; line-height: 1.2; letter-spacing: -0.014em; margin: 0 0 6px; }
.side a:hover .side-title { text-decoration: underline; text-underline-offset: 3px; }

.indie-empty { border: 3px solid var(--ink); border-radius: 6px; padding: 28px; max-width: 640px; }
.indie-empty strong { display: block; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 10px; }
.indie-empty p { font-family: var(--text); font-size: 1.1rem; margin: 0 0 18px; max-width: 46ch; }

.indie-cta { display: flex; justify-content: space-between; align-items: center; gap: 18px 30px; flex-wrap: wrap; margin-top: 48px; padding-top: 26px; border-top: 3px solid var(--ink); }
.indie-cta p { margin: 0; max-width: 56ch; font-family: var(--text); font-size: 1.08rem; line-height: 1.5; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #c4cddb; padding: 34px 0 40px; font-size: 0.9rem; }
.foot .in { display: flex; justify-content: space-between; gap: 16px 30px; flex-wrap: wrap; }
.foot a { color: #fff; margin-right: 18px; text-decoration: underline; text-underline-offset: 3px; }
.foot p { margin: 0; max-width: 46ch; }

/* ---------- Top stories as boxes ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.cards > .state { grid-column: 1 / -1; }
.box { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.box:hover { border-color: var(--ink); }
.box:hover .box-title { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.box-img { position: relative; aspect-ratio: 16 / 10; background: #e7ebf1; }
.box-img .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 2.6rem; color: var(--slate); opacity: 0.5; }
.box-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.box-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; flex: 1; }
.box-title { margin: 0; font-weight: 700; font-size: 1.1rem; line-height: 1.25; letter-spacing: -0.015em;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.box-meta { margin-top: auto; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 0.82rem; color: var(--slate); }
.box-meta strong { color: var(--ink); font-weight: 700; }
.showmore { text-align: center; margin-top: 30px; }
.showmore .btn[hidden] { display: none; }
@media (max-width: 520px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bottom note ---------- */
.pledge { max-width: 720px; margin: 0 auto; padding: 64px 20px 56px; }
.pledge h2 { font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 14px; }
.pledge p { font-family: var(--text); font-size: 1.12rem; line-height: 1.65; margin: 0 0 12px; max-width: 60ch; }

/* ---------- Courtesy strip and ownership note ---------- */
.box-credit { background: var(--gold); color: var(--ink); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.02em; padding: 7px 16px; }
.own-note { margin: 26px 0 0; padding: 14px 16px; border-left: 4px solid var(--gold); background: var(--white); font-size: 0.92rem; line-height: 1.55; color: var(--slate); }
.own-note[hidden] { display: none; }
.own-note a { color: var(--ink); text-decoration: underline; }

/* ---------- Slider of more stories ---------- */
.slider-wrap { margin-top: 38px; }
.slider-wrap[hidden] { display: none; }
.slider-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.slider-head h2 { margin: 0; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.025em; }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); font-size: 1.15rem; cursor: pointer; }
.arrows button:hover { background: var(--ink); color: #fff; }
.slider { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 14px; scrollbar-width: thin; }
.slider .box { flex: 0 0 min(270px, 78vw); scroll-snap-align: start; }
.chip small { opacity: 0.65; font-weight: 600; margin-left: 2px; }

/* ---------- Search ---------- */
.search { flex: 1 1 220px; max-width: 340px; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--white); color: var(--ink); font: 600 0.95rem var(--display); }
.search::placeholder { color: var(--slate); font-weight: 500; }
.front-head h1 { flex: 1 1 auto; }
@media (max-width: 700px) { .search { max-width: none; flex-basis: 100%; order: 3; } }

.whoami-box { margin-left: 6px; }
.signed-in .indie-cta { display: none; }

/* ---------- Independent: top 5 ---------- */
.indie-grid { display: block; }
.itop { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.igrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.igrid[hidden] { display: none; }
.ispot { position: relative; }
.ibox { display: flex; flex-direction: column; background: #ffffff; color: #0d1726; border: 2px solid #0d1726; border-radius: 8px; overflow: hidden; height: 100%; }
.ibox:hover .ibox-title { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; text-decoration-color: #ffb81c; }
.ibox-img { position: relative; aspect-ratio: 16 / 10; background: #e7ebf1; }
.ibox-img .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 2.2rem; color: #5b6678; opacity: 0.5; }
.ibox-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ibox-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.ibox-cat { align-self: flex-start; background: #0d1726; color: #fff; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; }
.ibox-title { margin: 0; font-weight: 700; font-size: 1.02rem; line-height: 1.25; letter-spacing: -0.012em; color: #0d1726;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ibox-teaser { margin: 0; font-family: var(--text); font-size: 1rem; line-height: 1.55; color: #2b384c; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ibox-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 0.8rem; color: #4a586b; }
.ibox-meta strong { color: #0d1726; }
.ibox-meta .tick { width: 14px; height: 14px; }
.ibox.big .ibox-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.12; -webkit-line-clamp: 5; }
.ibox.big .ibox-img { aspect-ratio: 16 / 9; }
.ispot.swap .ibox { animation: spotUp 0.5s ease both; }
@keyframes spotUp { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ispot.swap .ibox { animation: none; } }
.idots { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; z-index: 2; }
.idot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: rgba(13,23,38,0.55); cursor: pointer; padding: 0; }
.idot[aria-pressed="true"] { background: #ffb81c; border-color: #0d1726; }
@media (max-width: 900px) {
  .itop { grid-template-columns: minmax(0, 1fr); }
  .ispot { order: -1; }
}
@media (max-width: 480px) { .igrid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Signed-in name in the header ---------- */
.whoami-box { display: inline-flex; align-items: center; gap: 10px; }
.whoami { font-weight: 700; padding: 6px 12px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 0.92rem; }
.signout-link { background: none; border: 0; color: inherit; font: 600 0.85rem var(--display); text-decoration: underline; cursor: pointer; opacity: 0.8; padding: 4px; }
.signed-in nav a[href="apply.html"], .signed-in nav a[href="dashboard.html"]:not(.whoami),
.signed-in .indie-cta a[href="apply.html"], .signed-in .indie-empty a[href="apply.html"] { display: none !important; }

.foot .in > div { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { margin-right: 0; }

.signin-link { background: transparent; color: inherit; border: 1.5px solid currentColor; border-radius: 999px; padding: 7px 16px; font: 700 0.92rem var(--display); cursor: pointer; }
.signin-link:hover { background: var(--gold); color: #0d1726; border-color: var(--gold); }
#nx-toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); max-width: min(92vw, 520px); background: #0d1726; color: #fff; padding: 12px 18px; border-radius: 8px; font: 600 0.92rem var(--display); opacity: 0; pointer-events: none; transition: 0.25s; z-index: 60; }
#nx-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Two equal columns: Top stories (left) and Independent (right) ---------- */
.tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 22px; padding-bottom: 4px; }
.tools .search { flex: 1 1 240px; max-width: 360px; order: 0; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: stretch; padding-top: 16px; padding-bottom: 8px; }
.col { min-width: 0; }
.colhead h1, .colhead h2 { margin: 0; font-weight: 800; font-size: clamp(1.8rem, 2.8vw, 2.5rem); letter-spacing: -0.035em; line-height: 1.02; }
.colhead p { margin: 8px 0 18px; color: var(--slate); font-family: var(--text); font-size: 1.02rem; line-height: 1.45; }

.brand .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.brand .slider-wrap { margin-top: 26px; }

.indie { margin-top: 0; padding: 24px 22px 22px; border-radius: 12px; display: flex; flex-direction: column; }
.indie .colhead p { color: #1d2838; }
.indie .indie-grid { flex: 1; }
.indie .itop { display: flex; flex-direction: column; gap: 16px; }
.indie .ispot { order: -1; }
.indie .indie-cta { margin-top: auto; padding-top: 18px; border-top: 3px solid #0d1726; }
.indie .indie-grid + .indie-cta { margin-top: 22px; }
.indie .indie-empty { max-width: none; border-color: #0d1726; }

@media (max-width: 980px) { .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .brand .cards { grid-template-columns: minmax(0, 1fr); } .tools .search { max-width: none; flex-basis: 100%; } }

.how { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.how li { background: #ffffff; color: #0d1726; border: 2px solid #0d1726; border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.how b { font-size: 1.05rem; }
.how span { font-size: 0.9rem; line-height: 1.45; color: #2b384c; }
@media (max-width: 480px) { .how { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Wide + narrow: Independent (2/3) and Top stories list (1/3) ---------- */
.split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.brand .cards { display: flex; flex-direction: column; gap: 0; border-top: 3px solid var(--ink); }
.row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.row:hover .row-title { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.row-img { position: relative; width: 92px; height: 70px; border-radius: 6px; overflow: hidden; background: #e7ebf1; align-self: start; }
.row-img .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.5rem; color: var(--slate); opacity: 0.5; }
.row-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.row-body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.row-title { margin: 0; font-weight: 700; font-size: 0.98rem; line-height: 1.25; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.row-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.78rem; color: var(--slate); }
.row-meta strong { color: var(--ink); }
.row-credit { align-self: flex-start; background: var(--gold); color: #0d1726; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.brand .own-note { margin-top: 16px; font-size: 0.85rem; }
.slider-wrap { margin-top: 30px; }
@media (max-width: 980px) { .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .row { grid-template-columns: 78px minmax(0, 1fr); } .row-img { width: 78px; height: 62px; } }

.indie .ibox.big .ibox-img { aspect-ratio: 2.1 / 1; }
.indie .igrid .ibox-img { aspect-ratio: 16 / 8; }

/* =====================================================================
   Final layout: Top stories slider, then Independent slider with sidebar
   ===================================================================== */
.trend { padding-top: 16px; padding-bottom: 8px; }
.sechead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.sechead h1, .sechead h2 { margin: 0; font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.035em; line-height: 1.02; }
.sechead p { margin: 8px 0 0; color: var(--slate); font-family: var(--text); font-size: 1.02rem; line-height: 1.45; }
.indie .sechead p { color: #1d2838; }

.cards.track { display: grid; grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: min(270px, 78vw);
  gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 14px; border-top: 0; scrollbar-width: thin; }
.cards.track > .box { scroll-snap-align: start; }
.cards.track > .state { grid-row: 1 / span 2; grid-column: 1; width: min(480px, 86vw); }
@media (max-width: 520px) { .cards.track { grid-template-rows: auto; } }
.trend .own-note { margin-top: 10px; }

.indie { display: block; border-radius: 0; margin-top: 44px; padding: 44px 0 46px; }
.indie-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.indie-main { min-width: 0; }
.indie .indie-grid { display: block; flex: none; }
.islider { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 14px; scrollbar-width: thin; }
.islider .ibox { flex: 0 0 min(300px, 78vw); scroll-snap-align: start; height: auto; }
.islider .ibox-img, .indie .ibox-img { aspect-ratio: 16 / 10; }
.indie .arrows button { background: #ffffff; color: #0d1726; border-color: #0d1726; }
.indie .arrows button:hover { background: #0d1726; color: #fff; }
.indie .indie-cta { margin-top: 30px; padding-top: 20px; border-top: 3px solid #0d1726; }

.sidebox { background: #ffffff; color: #0d1726; border: 2px solid #0d1726; border-radius: 10px; padding: 16px 18px; }
.sidebox + .sidebox { margin-top: 16px; }
.sidebox h3 { margin: 0 0 8px; font-size: 1.08rem; letter-spacing: -0.01em; }
.rank, .jlist { list-style: none; margin: 0; padding: 0; }
.rank li + li a, .jlist li + li a { border-top: 1px solid #e1e5ec; }
.rank a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 9px 0; }
.rank a:hover .rt, .jlist a:hover b { text-decoration: underline; text-decoration-color: #ffb81c; text-decoration-thickness: 3px; text-underline-offset: 3px; }
.rk { font-weight: 800; font-size: 1.25rem; color: #b57a00; line-height: 1.1; }
.rt { font-weight: 700; font-size: 0.92rem; line-height: 1.25; }
.rt small, .jt small { display: block; font-weight: 500; color: #4a586b; font-size: 0.78rem; margin-top: 2px; }
.jlist a { display: flex; align-items: center; gap: 11px; padding: 9px 0; }
.jav { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #0d1726; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.jt b { font-size: 0.95rem; }
.sidebox .muted { color: #4a586b; font-size: 0.9rem; padding: 6px 0; }
@media (max-width: 980px) { .indie-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Breaking-news bar ---------- */
.breaking { background: #c4281c; color: #fff; }
.breaking[hidden] { display: none; }
.breaking .in { display: flex; align-items: center; gap: 12px; min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.br-label { background: #fff; color: #c4281c; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: 4px; flex: none; }
.br-text { flex: 1; font-weight: 700; font-size: 1rem; line-height: 1.3; color: #fff; }
a.br-text[href]:hover { text-decoration: underline; }
.br-x { background: none; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 2px 8px; opacity: 0.85; }

/* ---------- Header on small screens ---------- */
.mark, .nav a.btn, .signin-link, .whoami { white-space: nowrap; }
@media (max-width: 760px) {
  .mark { font-size: 1.35rem; }
  .nav { gap: 2px; }
  .nav a.btn { padding: 8px 12px; font-size: 0.85rem; margin-left: 2px; }
  .signin-link { padding: 6px 12px; font-size: 0.85rem; }
  .theme-toggle { width: 34px; height: 34px; margin-right: 4px; }
}
@media (max-width: 520px) {
  .nav a.btn { display: none; }
}

.findbar { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 360px; }
.findbar .search { flex: 1 1 200px; max-width: 320px; }
.findbar .country { flex: 0 1 190px; cursor: pointer; }
@media (max-width: 520px) { .findbar .search, .findbar .country { max-width: none; flex-basis: 100%; } }

/* =====================================================================
   Order: Independent, News channels, Breaking & latest (mixed), By topic
   ===================================================================== */
.indie { margin-top: 22px; }

.mixrow { background: #0d1726; color: #fff; padding: 36px 0 34px; margin-top: 44px; border-top: 4px solid #e5372b; }
.mixrow[hidden], .topics[hidden] { display: none; }
.mixrow .sechead h2 { color: #fff; display: flex; align-items: center; gap: 12px; }
.mixrow .sechead p { color: #aab6c8; }
.live-dot { width: 14px; height: 14px; border-radius: 50%; background: #e5372b; flex: none; box-shadow: 0 0 0 4px rgba(229, 55, 43, 0.28); }
@media (prefers-reduced-motion: no-preference) { .live-dot { animation: beat 1.6s ease-in-out infinite; } }
.mixrow .arrows button { background: transparent; color: #fff; border-color: #fff; }
.mixrow .arrows button:hover { background: #fff; color: #0d1726; }
.mixtrack { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 14px; scrollbar-width: thin; }
.mbox { flex: 0 0 min(290px, 78vw); scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; background: #16233a; border: 1px solid #2a3b57; border-left: 5px solid #e5372b; border-radius: 8px; padding: 14px 16px; color: #fff; }
.mbox.ind { border-left-color: #ffb81c; }
.mbox:hover .mtitle { text-decoration: underline; text-decoration-color: #ffb81c; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.mtop { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mtag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; border: 1px solid #5b6f91; color: #dbe4f2; padding: 2px 8px; border-radius: 4px; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtag.ind { background: #ffb81c; color: #0d1726; border-color: #ffb81c; }
.mtime { font-size: 0.78rem; color: #aab6c8; white-space: nowrap; }
.mtitle { margin: 0; font-weight: 700; font-size: 1.05rem; line-height: 1.28; letter-spacing: -0.01em; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mfoot { margin-top: auto; font-size: 0.78rem; color: #aab6c8; }
.mixstate { color: #aab6c8; }

.topics { padding-top: 44px; padding-bottom: 8px; }
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.tcol h3 { margin: 0 0 6px; padding-bottom: 8px; border-bottom: 3px solid var(--gold); font-size: 1.1rem; letter-spacing: -0.01em; }
.trow { display: flex; flex-direction: column; gap: 4px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.trow .tt { font-weight: 700; font-size: 0.98rem; line-height: 1.28; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.trow small { font-size: 0.76rem; color: var(--slate); }
.trow:hover .tt { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 3px; }
@media (max-width: 980px) { .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .topic-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Header links stay on one line ---------- */
.nav a, .pulse { white-space: nowrap; }
@media (max-width: 1180px) { .pulse { display: none; } }
@media (max-width: 1020px) { .nav a.hide-md { display: none; } }

/* ---------- All news channels: one sliding row, with channel buttons ---------- */
.cards.track { grid-template-rows: auto; }
.cards.track > .state { grid-row: 1; }
.channels { margin: 0 0 16px; }

/* ---------- Use the full screen width on big monitors ---------- */
.wrap { max-width: min(1760px, 96vw); padding: 0 clamp(16px, 2.5vw, 40px); }
.cards.track { grid-auto-columns: min(300px, 78vw); }

/* Homepage container: fill big screens */
:root { --max: min(1760px, 96vw); }
.in { padding: 0 clamp(16px, 2.5vw, 40px); }

/* ---------- Closing band: pledge + apply, once, at the bottom ---------- */
.closer { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.closer .pledge { max-width: none; margin: 0; padding: 0; }
.closer .indie-cta { display: block; margin: 0; padding: 26px; border: 3px solid var(--ink); border-radius: 14px; background: #ffb81c; color: #0d1726; }
.closer .indie-cta h3 { margin: 0 0 8px; font-size: 1.4rem; letter-spacing: -0.02em; }
.closer .indie-cta p { max-width: none; margin: 0 0 18px; }
@media (max-width: 800px) { .closer { grid-template-columns: minmax(0, 1fr); padding-top: 36px; padding-bottom: 36px; } }

.admin-link { font-weight: 800; font-size: 0.85rem; padding: 6px 12px; border-radius: 999px; background: #c8102e; color: #fff !important; white-space: nowrap; }

/* ---------- Spacing fixes ---------- */
.tools { padding-top: 20px; padding-bottom: 20px; }
.indie { margin-top: 0; }
.trend { padding-top: 56px; padding-bottom: 40px; }
