:root {
  --midnight: #071a2f;
  --midnight-2: #0d2b49;
  --midnight-3: #123a62;
  --gold: #b9964b;
  --gold-2: #d7bd78;
  --white: #ffffff;
  --paper: #f7f5ef;
  --ink: #111923;
  --muted: #66717d;
  --line: #dfd8c8;
  --soft-blue: #eef3f8;
  --danger: #9f2a2a;
  --success: #246b4a;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 24px 70px rgba(7, 26, 47, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(247,245,239,.74), rgba(247,245,239,.78)),
    url("assets/daily-squawk-city-background.webp") center / cover no-repeat;
  opacity: .28;
}
body > * {
  position: relative;
  z-index: 1;
}
body.modal-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.hidden { display: none !important; }

.topline {
  background: var(--midnight);
  color: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(185,150,75,.42);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.topline-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.topline-actions { display: inline-flex; align-items: center; gap: 8px; }
.topline-button {
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: white;
  min-height: 27px;
  padding: 0 10px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .08em;
}
.topline-button-gold { border-color: var(--gold); color: var(--gold-2); }
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 11px;
  font-weight: 700;
}
.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--midnight);
  font-family: var(--serif);
  font-weight: 700;
}

.masthead {
  background:
    radial-gradient(circle at 20% 0%, rgba(185,150,75,.16), transparent 26%),
    linear-gradient(180deg, #0a2139, var(--midnight));
  border-bottom: 4px solid var(--gold);
}
.masthead-inner {
  position: relative;
  min-height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0;
}
.banner-link {
  display: block;
  width: 100%;
  border: 1px solid rgba(185,150,75,.55);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.banner-logo {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--midnight);
}
.mobile-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 22px;
  z-index: 3;
}
.icon-button {
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(7,26,47,.65);
  color: white;
  width: 42px;
  height: 42px;
}
.icon-button svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(7,26,47,.06);
}
.nav-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.25vw, 18px);
  flex-wrap: wrap;
}
.nav-links a,
.nav-dropdown > a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 58px;
  color: var(--midnight);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-links a::after,
.nav-dropdown > a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -1px;
  height: 3px;
  background: var(--gold);
  transition: .2s ease;
}
.nav-links a.active::after,
.nav-links a:hover::after,
.nav-dropdown > a.active::after,
.nav-dropdown:hover > a::after { left: 0; right: 0; }
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  position: absolute;
  left: 0;
  top: calc(100% - 1px);
  min-width: 180px;
  display: none;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  min-height: 38px;
  justify-content: start;
  padding: 0 14px;
  white-space: nowrap;
}
.nav-dropdown-menu a::after { display: none; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.nav-search {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: white;
  color: var(--midnight);
}
.nav-search svg, .search-box svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-gold {
  background: var(--gold);
  color: var(--midnight);
  border-color: var(--gold);
}
.button-gold:hover { background: var(--gold-2); }
.button-blue {
  background: var(--midnight);
  color: white;
  border-color: var(--midnight);
}
.button-outline {
  background: white;
  color: var(--midnight);
  border-color: var(--line);
}
.button-outline:hover { border-color: var(--gold); }
.button-danger {
  background: #fff5f5;
  color: var(--danger);
  border-color: rgba(160,45,45,.35);
}
.button-full { width: 100%; }

.breaking {
  background:
    linear-gradient(135deg, rgba(180,35,43,.28), rgba(7,26,47,.92)),
    var(--midnight);
  color: white;
  border-bottom: 1px solid rgba(185,150,75,.5);
  padding-block: 18px;
}
.breaking-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 14px;
}
.breaking-label {
  min-width: 158px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #b4232b;
  color: white;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm);
  padding: 18px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 0 rgba(255,255,255,.65);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.breaking-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.breaking-track {
  display: flex;
  gap: 14px;
  padding-bottom: 2px;
}
.breaking-item {
  flex: 0 0 clamp(320px, 38vw, 500px);
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  min-height: 178px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,.94);
  color: var(--ink);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}
.breaking-item:hover {
  transform: translateY(-2px);
  border-color: rgba(180,35,43,.45);
}
.breaking-image,
.breaking-item .placeholder-image {
  width: 100%;
  height: 100%;
  min-height: 154px;
  border-radius: calc(var(--radius) - 6px);
  object-fit: cover;
}
.breaking-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.breaking-copy h3 {
  margin: 4px 0 6px;
  font: 800 clamp(18px, 2vw, 24px)/1.05 var(--serif);
}
.breaking-copy p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.breaking-copy .byline {
  margin-top: auto;
}
.breaking-timer {
  background: #fee2e2;
  color: #991b1b;
}
.breaking-empty {
  flex: 1 0 100%;
  min-height: 140px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 24px;
  border: 1px dashed rgba(255,255,255,.35);
  border-radius: var(--radius);
  color: rgba(255,255,255,.82);
  text-align: center;
}
.breaking-empty span {
  color: white;
  font: 800 18px var(--serif);
}
.breaking-empty p {
  margin: 0;
  font-size: 13px;
}
.slider-controls {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 8px;
  color: rgba(255,255,255,.55);
  font-size: 10px;
}
.slider-controls button {
  border: 0;
  background: transparent;
  color: var(--gold-2);
  font-size: 20px;
  padding: 8px;
}

.newswire {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.newswire-inner {
  display: block;
  padding-block: 22px;
}
.newswire-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.newswire-header .eyebrow {
  color: var(--midnight);
}
.newswire-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.newswire-inner > span {
  display: block;
  margin-bottom: 12px;
  color: var(--midnight);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.newswire-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: var(--gold) rgba(7,26,47,.08);
}
.newswire-track {
  display: flex;
  gap: 16px;
  padding: 0 0 12px;
  scroll-snap-type: x proximity;
}
.newswire-tile {
  flex: 0 0 min(420px, 82vw);
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 172px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.newswire-tile:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(7,26,47,.1);
}
.newswire-image,
.newswire-tile .placeholder-image {
  width: 100%;
  height: 100%;
  min-height: 172px;
  object-fit: cover;
  background: var(--midnight);
}
.newswire-copy {
  min-width: 0;
  padding: 14px;
}
.newswire-copy h3 {
  margin: 6px 0 7px;
  color: var(--midnight);
  font: 700 20px/1.12 var(--serif);
  letter-spacing: -.03em;
}
.newswire-copy p {
  margin: 0 0 10px;
  color: var(--muted);
  font: 13px/1.45 var(--serif);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-view { padding: 48px 0 86px; }
.home-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 38px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.historical-spotlight {
  margin-top: 44px;
  padding: 28px;
  background: var(--midnight);
  color: white;
  border-top: 4px solid var(--gold);
}
.historical-spotlight .story-card {
  background: rgba(255,255,255,.96);
  color: var(--ink);
}
.historical-spotlight h2 {
  margin: 4px 0 18px;
  font: 700 30px/1.1 var(--serif);
}

.category-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: end;
  margin: 0 0 22px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
}
.category-filters input[type="search"] { flex: 1 1 280px; }
.category-filters select { flex: 0 1 190px; }
.category-filters label {
  flex: 0 1 170px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.category-filters label input { margin-top: 5px; }

.security-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.home-heading h1,
.category-header h1 {
  margin: 5px 0 0;
  font: 700 clamp(36px, 6vw, 76px)/.95 var(--serif);
  letter-spacing: -.055em;
  color: var(--midnight);
}
.home-heading p,
.category-header p {
  margin: 0;
  color: var(--muted);
  font: 18px/1.65 var(--serif);
}
.eyebrow,
.kicker {
  display: inline-block;
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.breaking-news-label {
  display: inline-block;
  padding: 3px 7px;
  background: #b4232b;
  color: white !important;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.section-title h2 {
  margin: 5px 0 0;
  color: var(--midnight);
  font: 700 31px/1.1 var(--serif);
  letter-spacing: -.035em;
}
.section-title a {
  color: var(--midnight);
  border-bottom: 1px solid var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(300px, .82fr);
  gap: 32px;
  margin-bottom: 56px;
}
.featured-grid > .section-title {
  grid-column: 1 / -1;
  margin-bottom: -8px;
}
.primary-feature,
.story-card,
.archive-item,
.search-result {
  background: white;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.primary-feature:hover,
.story-card:hover,
.archive-item:hover,
.search-result:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 15px 45px rgba(7,26,47,.1);
}
.primary-image-wrap {
  position: relative;
  height: 438px;
  background: var(--soft-blue);
  overflow: hidden;
}
.primary-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-credit {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: rgba(255,255,255,.85);
  font-size: 10px;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
}
.primary-copy { padding: 26px 30px 30px; }
.primary-copy h2 {
  margin: 8px 0 12px;
  color: var(--midnight);
  font: 700 clamp(32px, 4vw, 52px)/1.02 var(--serif);
  letter-spacing: -.05em;
}
.primary-copy p {
  margin: 0 0 17px;
  color: #4f5d68;
  font: 18px/1.62 var(--serif);
}
.secondary-featured {
  display: grid;
  gap: 18px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.home-news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.story-card {
  min-height: 100%;
  display: grid;
  grid-template-rows: 190px 1fr;
}
.story-card.compact {
  grid-template-columns: 148px 1fr;
  grid-template-rows: none;
}
.story-card.category-preview {
  grid-template-columns: 220px 1fr;
  grid-template-rows: none;
}
.story-card img,
.story-card .placeholder-image {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  background: var(--midnight);
}
.story-card.compact img,
.story-card.compact .placeholder-image {
  min-height: 145px;
}
.story-card.category-preview img,
.story-card.category-preview .placeholder-image {
  min-height: 165px;
}
.story-card-copy { padding: 18px; }
.card-kickers {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.story-card h3 {
  margin: 7px 0 9px;
  color: var(--midnight);
  font: 700 21px/1.16 var(--serif);
  letter-spacing: -.03em;
}
.story-card.compact h3 { font-size: 18px; }
.story-card p {
  margin: 0 0 13px;
  color: var(--muted);
  font: 13px/1.55 var(--serif);
}
.byline {
  color: #6c7680;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.byline span { margin: 0 6px; color: var(--gold); }
.opinion-label {
  display: inline-block;
  padding: 3px 7px;
  background: var(--midnight);
  color: white;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.placeholder-image {
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.28);
  font: 700 48px/1 var(--serif);
}
.home-sections,
.category-strip {
  margin-top: 50px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.category-strips { display: grid; gap: 20px; }

.trending-panel {
  background: white;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  padding: 24px;
  position: sticky;
  top: 82px;
}
.trending-panel h2 {
  margin: 5px 0 14px;
  color: var(--midnight);
  font: 700 28px/1.1 var(--serif);
}
.trending-panel ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.trending-panel li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.trending-panel li > span {
  color: var(--gold);
  font: 700 26px/1 var(--serif);
}
.trending-panel h3 {
  margin: 0 0 5px;
  color: var(--midnight);
  font: 700 16px/1.25 var(--serif);
}
.trending-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.category-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 32px;
  align-items: end;
  padding-bottom: 28px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.category-grid {
  display: grid;
  gap: 18px;
}
.load-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 28px;
}
.archive-list {
  display: grid;
  gap: 28px;
}
.archive-month {
  background: white;
  border: 1px solid var(--line);
  padding: 24px;
}
.archive-month h2 {
  margin: 0 0 18px;
  color: var(--midnight);
  font: 700 28px var(--serif);
}
.archive-item,
.search-result {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 16px;
  margin-bottom: 14px;
}
.archive-item img,
.archive-item .placeholder-image,
.search-result img,
.search-result .placeholder-image {
  width: 160px;
  height: 110px;
  object-fit: cover;
}
.archive-item h3,
.search-result h3 {
  margin: 5px 0 7px;
  color: var(--midnight);
  font: 700 20px/1.2 var(--serif);
}
.archive-item p,
.search-result p {
  margin: 0 0 10px;
  color: var(--muted);
  font: 13px/1.5 var(--serif);
}
.empty-state {
  padding: 24px;
  background: white;
  border: 1px dashed var(--line);
  color: var(--muted);
}
.launch-empty {
  min-height: 260px;
  display: grid;
  align-content: center;
  padding: 36px;
  background: white;
  border: 1px solid var(--line);
}
.launch-empty h2 {
  margin: 8px 0 10px;
  color: var(--midnight);
  font: 700 clamp(30px, 4vw, 48px)/1.05 var(--serif);
  letter-spacing: -.04em;
}
.launch-empty p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font: 16px/1.6 var(--serif);
}

footer {
  background: var(--midnight);
  color: white;
  padding: 54px 0 0;
  border-top: 4px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(160px, .6fr));
  gap: 50px;
  padding-bottom: 42px;
}
.footer-banner {
  width: min(480px, 100%);
  border: 1px solid rgba(185,150,75,.45);
}
.footer-grid p {
  max-width: 480px;
  color: rgba(255,255,255,.62);
  font: 14px/1.7 var(--serif);
}
.footer-grid h4 {
  margin: 0 0 16px;
  color: var(--gold-2);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-grid a {
  display: block;
  margin-bottom: 11px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
}
.footer-grid a:hover { color: var(--gold-2); }
.bmac-support {
  padding: 6px 0 28px;
  display: flex;
  justify-content: center;
}
.footer-bottom {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.42);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5,18,32,.78);
  backdrop-filter: blur(8px);
}
.modal {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--paper);
  box-shadow: var(--shadow);
  border: 1px solid rgba(185,150,75,.35);
}
.modal-close {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 300 30px/1 var(--sans);
}
.auth-modal {
  padding: 42px 48px 34px;
}
.auth-modal > .modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
}
.modal h2 {
  margin: 5px 0 8px;
  color: var(--midnight);
  font: 700 34px/1.08 var(--serif);
  letter-spacing: -.035em;
}
.modal-intro {
  margin: 0 0 24px;
  color: var(--muted);
  font: 14px/1.6 var(--serif);
}
label {
  display: block;
  color: var(--midnight);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #d5cbb8;
  background: white;
  color: var(--ink);
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease;
}
label input,
label textarea,
label select { display: block; margin-top: 7px; }
input,
select { min-height: 43px; padding: 0 12px; }
textarea { padding: 12px; resize: vertical; }
input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185,150,75,.16);
}
.form-row {
  display: flex;
  gap: 14px;
}
.form-row > * { flex: 1; }
.form-grow { flex: 2.4 !important; }
form > label { margin-bottom: 16px; }
.verification-box {
  margin: 20px 0;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
}
.admin-request {
  margin: 16px 0;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 9px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}
.checkbox-label input {
  width: auto;
  min-height: auto;
}
.verification-title {
  margin-bottom: 14px;
  color: var(--midnight);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.verification-box label + label { margin-top: 12px; }
.form-error {
  margin: -4px 0 14px;
  padding: 11px 12px;
  background: #f8e5e3;
  color: #8d2525;
  font-size: 12px;
}
.switch-auth {
  margin: 20px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.switch-auth button {
  border: 0;
  background: none;
  color: var(--midnight);
  font-weight: 850;
  text-decoration: underline;
}

.article-editor-backdrop,
.dashboard-backdrop,
.article-backdrop {
  align-items: start;
  overflow-y: auto;
}
.publish-modal,
.dashboard-modal {
  width: min(1180px, 100%);
  max-height: none;
  margin: 24px 0;
}
.publish-header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 34px 22px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.publish-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font: 13px/1.55 var(--serif);
}
.publish-modal form { padding: 26px 34px 0; }
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 26px;
  align-items: start;
}
.editor-pane {
  min-width: 0;
}
.category-picker {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: white;
}
.category-picker legend {
  padding: 0 8px;
  color: var(--midnight);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.category-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 15px;
}
.category-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}
.category-picker input {
  width: auto;
  min-height: auto;
}
.iearth-select {
  grid-column: span 2;
}
.iearth-select select {
  margin-top: 7px;
}
.image-panel {
  margin: 18px 0;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
}
.file-button {
  min-height: 43px;
  display: grid;
  place-items: center;
  align-self: end;
  background: var(--midnight);
  color: white;
  padding: 0 14px;
  text-align: center;
}
.file-button input { display: none; }
.field-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.editor-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 8px;
  color: var(--midnight);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
#autosaveStatus {
  color: var(--muted);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.bbcode-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px;
  background: var(--midnight);
  border: 1px solid var(--midnight);
}
.bbcode-toolbar button {
  min-height: 32px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: white;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
}
.bbcode-toolbar button:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}
.bbcode-toolbar select {
  min-height: 32px;
  width: auto;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: white;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
}
.bbcode-editor {
  min-height: 360px;
  border-top: 0;
  font: 14px/1.65 Consolas, "Courier New", monospace;
}
.preview-pane {
  min-width: 0;
}
.preview-sticky {
  position: sticky;
  top: 86px;
  background: white;
  border: 1px solid var(--line);
  padding: 18px;
}
.article-preview {
  margin-top: 12px;
  max-height: 68vh;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.image-positioner,
.preview-placeholder {
  width: 100%;
  height: 210px;
  background: var(--soft-blue);
  display: grid;
  place-items: center;
  color: var(--muted);
  margin-bottom: 16px;
}
.image-positioner {
  position: relative;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  border: 1px solid rgba(185,150,75,.55);
  background:
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.18) 1px, transparent 1px),
    var(--soft-blue);
  background-size: 33.333% 33.333%;
}
.image-positioner.is-dragging {
  cursor: grabbing;
}
.preview-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}
.image-position-help {
  margin: -6px 0 16px;
  color: var(--muted);
  font-size: 12px;
}
.article-preview h1 {
  margin: 8px 0 10px;
  color: var(--midnight);
  font: 700 30px/1.05 var(--serif);
  letter-spacing: -.04em;
}
.publish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 28px -34px 0;
  padding: 18px 34px;
  background: white;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.publish-footer > div {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-body { padding: 24px 34px 34px; }
.dashboard-actions,
.dashboard-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.dashboard-filters input { flex: 1 1 280px; }
.dashboard-filters select { flex: 0 1 230px; }
.dashboard-table-wrap {
  overflow-x: auto;
  background: white;
  border: 1px solid var(--line);
}
.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
}
.dashboard-table th,
.dashboard-table td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}
.dashboard-table th {
  background: var(--midnight);
  color: white;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dashboard-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.table-actions button,
.dashboard-user button {
  border: 1px solid var(--line);
  background: white;
  color: var(--midnight);
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 800;
}
.status-pill {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.status-published { color: var(--success); }
.status-draft { color: var(--muted); }
.status-scheduled { color: var(--midnight-3); }
.status-archived,
.status-trash { color: var(--danger); }
.dashboard-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.dashboard-columns section {
  background: white;
  border: 1px solid var(--line);
  padding: 18px;
}
.dashboard-columns h3 {
  margin: 0 0 12px;
  color: var(--midnight);
  font: 700 20px var(--serif);
}
.pill-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.pill-list span,
.tag-list span {
  display: inline-block;
  padding: 5px 9px;
  background: var(--soft-blue);
  border: 1px solid #d5dfeb;
  color: var(--midnight);
  font-size: 12px;
}
.user-list {
  display: grid;
  gap: 10px;
}
.dashboard-user {
  display: grid;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.dashboard-user small {
  display: block;
  color: var(--muted);
}
.dashboard-user span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.article-modal,
.article-page {
  width: min(980px, 100%);
  max-height: none;
  overflow: visible;
  margin: 26px 0;
  background: white;
}
.article-page {
  margin: 0 auto;
  border: 1px solid var(--line);
}
.article-modal > .modal-close {
  position: sticky;
  float: right;
  right: 16px;
  top: 16px;
  z-index: 3;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
}
.reader-hero {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  background: var(--midnight);
}
.reader-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 28px 72px;
}
.reader-content h1 {
  margin: 10px 0 16px;
  color: var(--midnight);
  font: 700 clamp(36px, 6vw, 64px)/1.02 var(--serif);
  letter-spacing: -.055em;
}
.reader-deck {
  margin: 0;
  color: #4f5d68;
  font: 19px/1.62 var(--serif);
}
.reader-byline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0 14px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.reader-caption {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 12px;
}
.reader-caption span {
  color: var(--gold);
  font-weight: 800;
}
.reader-body {
  color: #222d36;
  font: 18px/1.82 var(--serif);
}
.reader-body a {
  color: var(--midnight-3);
  border-bottom: 1px solid var(--gold);
}
.reader-body blockquote {
  margin: 28px 0;
  padding: 14px 0 14px 24px;
  border-left: 4px solid var(--gold);
  color: #4e5c66;
  font-size: 22px;
}
.reader-body .bb-code {
  overflow-x: auto;
  background: #081a2e;
  color: #f5f0df;
  padding: 16px;
  font: 14px/1.6 Consolas, "Courier New", monospace;
}
.reader-body .bb-box {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--gold);
  background: #fffaf0;
}
.reader-body .bb-spoiler {
  margin: 20px 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.reader-body .bb-spoiler summary {
  cursor: pointer;
  color: var(--midnight);
  font-family: var(--sans);
  font-weight: 850;
}
.reader-body .bb-region-tag,
.reader-body .bb-ns-link {
  font-family: var(--sans);
  font-weight: 850;
}
.reader-body .bb-region-tag {
  display: inline-block;
  padding: 2px 7px;
  background: var(--soft-blue);
  border: 1px solid #d5dfeb;
}
.reader-body .bb-background {
  padding: 0 3px;
}
.reader-body blockquote cite {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font: 800 11px var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.reader-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
.reader-body ul,
.reader-body ol {
  padding-left: 1.35em;
}
.reader-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-family: var(--sans);
  font-size: 14px;
}
.reader-body th,
.reader-body td {
  border: 1px solid var(--line);
  padding: 10px;
}
.reader-body th {
  background: var(--midnight);
  color: white;
}
.bb-table-wrap { overflow-x: auto; }
.bb-image {
  margin: 24px 0;
}
.bb-image img {
  max-height: 520px;
  object-fit: contain;
}
.bb-image-center img { margin-inline: auto; }
.bb-image-left {
  float: left;
  max-width: 48%;
  margin: 6px 24px 16px 0;
}
.bb-image-right {
  float: right;
  max-width: 48%;
  margin: 6px 0 16px 24px;
}
.align-center { text-align: center; }
.align-right { text-align: right; }
.align-left { text-align: left; }
.align-justify { text-align: justify; }
.bb-float-left {
  float: left;
  max-width: 42%;
  margin: 6px 22px 14px 0;
  display: block;
}
.bb-float-right {
  float: right;
  max-width: 42%;
  margin: 6px 0 14px 22px;
  display: block;
}
.author-box,
.editor-note {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  margin: 22px 0;
  border: 1px solid var(--line);
  background: var(--paper);
}
.author-box img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
}
.author-box p,
.editor-note p { margin: 4px 0 0; color: var(--muted); }
.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 32px 0 18px;
}
.share-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  padding: 18px 0 28px;
  border-bottom: 1px solid var(--line);
}
.related-articles {
  margin-top: 30px;
}
.related-articles h2 {
  color: var(--midnight);
  font: 700 26px var(--serif);
}
.related-articles .card-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}
.related-articles .story-card.compact {
  grid-template-columns: 190px minmax(0, 1fr);
}
.related-articles .story-card.compact img,
.related-articles .story-card.compact .placeholder-image {
  min-height: 140px;
}
.comments-section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.comments-section h2 {
  margin: 0 0 16px;
  color: var(--midnight);
  font: 700 28px/1.1 var(--serif);
}
.comment-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.comment-card {
  padding: 15px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.comment-card > div:first-child,
.comment-votes {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.comment-card strong {
  color: var(--midnight);
}
.comment-card p {
  margin: 9px 0 12px;
  color: #28333b;
  font: 15px/1.55 var(--serif);
}
.comment-votes {
  justify-content: flex-start;
}
.comment-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--paper);
  padding: 10vh 24px;
  overflow-y: auto;
}
.search-overlay > .modal-close {
  position: absolute;
  top: 22px;
  right: 30px;
}
.search-overlay > div {
  width: min(900px, 100%);
  margin: auto;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0 26px;
  border-bottom: 3px solid var(--midnight);
}
.search-box input {
  height: 72px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font: 700 clamp(22px, 4vw, 42px)/1 var(--serif);
}

.toast {
  position: fixed;
  z-index: 200;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  padding: 14px 18px;
  background: var(--midnight);
  color: white;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
  font-size: 13px;
}

@media (max-width: 1080px) {
  .featured-grid,
  .home-news-layout,
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .preview-sticky,
  .trending-panel {
    position: static;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .shell { width: min(100% - 28px, 1240px); }
  .topline-inner > span:nth-child(2) { display: none; }
  .masthead-inner {
    min-height: 120px;
    padding-top: 62px;
  }
  .mobile-menu { display: grid; }
  .main-nav {
    display: none;
    position: absolute;
    width: 100%;
  }
  .main-nav.open { display: block; }
  .nav-inner {
    display: block;
    padding: 14px 0 18px;
  }
  .nav-links {
    display: grid;
    gap: 0;
  }
  .nav-links a,
  .nav-dropdown > a {
    min-height: 44px;
    justify-content: start;
  }
  .nav-links a::after,
  .nav-dropdown > a::after { display: none; }
  .nav-dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: 0;
    padding-left: 14px;
  }
  .nav-tools {
    margin-top: 12px;
    justify-content: space-between;
  }
  .home-heading,
  .category-header,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .primary-image-wrap {
    height: 300px;
  }
  .story-card.compact,
  .story-card.category-preview,
  .archive-item,
  .search-result {
    grid-template-columns: 130px 1fr;
  }
  .story-card.compact img,
  .story-card.category-preview img,
  .archive-item img,
  .search-result img,
  .story-card.compact .placeholder-image,
  .story-card.category-preview .placeholder-image,
  .archive-item .placeholder-image,
  .search-result .placeholder-image {
    min-height: 120px;
    height: 120px;
  }
  .category-picker { grid-template-columns: 1fr 1fr; }
  .iearth-select { grid-column: 1 / -1; }
  .form-row {
    display: block;
  }
  .form-row > label,
  .form-row > .file-button {
    margin-bottom: 14px;
  }
  .publish-footer {
    display: block;
  }
  .publish-footer > div {
    justify-content: start;
    margin-top: 12px;
  }
}

@media (max-width: 560px) {
  .topline-inner {
    justify-content: center;
    text-align: center;
  }
  .topline-actions {
    display: none;
  }
  .masthead-inner {
    min-height: 102px;
  }
  .page-view {
    padding-top: 32px;
  }
  .newswire-header {
    display: block;
  }
  .newswire-header p {
    margin-top: 4px;
  }
  .home-heading h1,
  .category-header h1 {
    font-size: 40px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .story-card,
  .story-card.compact,
  .story-card.category-preview,
  .archive-item,
  .search-result {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .story-card img,
  .story-card .placeholder-image,
  .story-card.compact img,
  .story-card.category-preview img,
  .archive-item img,
  .search-result img,
  .story-card.compact .placeholder-image,
  .story-card.category-preview .placeholder-image,
  .archive-item .placeholder-image,
  .search-result .placeholder-image {
    width: 100%;
    min-height: 190px;
    height: 190px;
  }
  .newswire-tile {
    grid-template-columns: 1fr;
    flex-basis: 78vw;
  }
  .newswire-image,
  .newswire-tile .placeholder-image {
    height: 150px;
    min-height: 150px;
  }
  .breaking-inner {
    grid-template-columns: 1fr;
  }
  .breaking-label {
    min-width: 0;
    padding: 12px;
  }
  .breaking-item {
    grid-template-columns: 1fr;
    flex-basis: 82vw;
  }
  .breaking-image,
  .breaking-item .placeholder-image {
    height: 155px;
    min-height: 155px;
  }
  .slider-controls {
    justify-content: center;
  }
  .auth-modal,
  .publish-modal form,
  .dashboard-body,
  .publish-header,
  .reader-content {
    padding-inline: 20px;
  }
  .publish-footer {
    margin-inline: -20px;
    padding-inline: 20px;
  }
  .category-picker {
    grid-template-columns: 1fr;
  }
  .modal-backdrop {
    padding: 0;
    place-items: stretch;
  }
  .modal {
    width: 100%;
    max-height: 100vh;
  }
  .article-modal,
  .publish-modal,
  .dashboard-modal {
    margin: 0;
  }
  .bb-image-left,
  .bb-image-right,
  .bb-float-left,
  .bb-float-right {
    float: none;
    max-width: 100%;
    margin: 20px 0;
  }
}
