:root {
  --paper: #fbf7e8;
  --paper-deep: #f0ead8;
  --ink: #080807;
  --green-950: #06401e;
  --green-900: #0a4c25;
  --green-800: #0f642f;
  --green-100: #e6efe4;
  --blue-ai: #118dd4;
  --line: #263b26;
  --muted: #6b6657;
  --white: #ffffff;
  --danger: #b42318;
  --amber: #b86b18;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.95), rgba(251, 247, 232, 0.9) 42%, rgba(246, 240, 220, 0.92)),
    var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.35;
}

.world-cup-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
  animation: loaderFade 0.45s ease 2.7s forwards;
}

.world-cup-loader.is-hidden {
  display: none;
}

.bouncing-ball {
  position: absolute;
  left: -90px;
  bottom: 20vh;
  width: 62px;
  aspect-ratio: 1;
  border: 2px solid #101510;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #101510 0 16%, transparent 17%),
    radial-gradient(circle at 18% 24%, #0f642f 0 10%, transparent 11%),
    radial-gradient(circle at 78% 28%, #0f642f 0 11%, transparent 12%),
    radial-gradient(circle at 28% 78%, #101510 0 10%, transparent 11%),
    radial-gradient(circle at 78% 74%, #101510 0 10%, transparent 11%),
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.25) 34%, transparent 35%),
    #f7f7ef;
  box-shadow: 0 18px 18px rgba(8, 8, 7, 0.18);
  animation: ballTravel 3s cubic-bezier(0.2, 0.72, 0.22, 1) forwards;
}

.bouncing-ball::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(16, 21, 16, 0.45);
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-28deg);
}

.bouncing-ball::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -24px;
  height: 10px;
  border-radius: 50%;
  background: rgba(8, 8, 7, 0.18);
  filter: blur(3px);
  animation: ballShadow 0.6s ease-in-out 5 alternate;
}

.bouncing-ball span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 2px;
  background: rgba(16, 21, 16, 0.34);
  transform-origin: center;
}

.bouncing-ball span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(24deg);
}

.bouncing-ball span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(84deg);
}

.bouncing-ball span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(144deg);
}

@keyframes ballTravel {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.96);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  18% {
    transform: translate3d(22vw, -24vh, 0) rotate(190deg) scale(1);
  }
  34% {
    transform: translate3d(39vw, 3vh, 0) rotate(360deg) scale(1);
  }
  52% {
    transform: translate3d(58vw, -17vh, 0) rotate(560deg) scale(0.98);
  }
  72% {
    transform: translate3d(78vw, 4vh, 0) rotate(760deg) scale(0.94);
  }
  100% {
    transform: translate3d(calc(100vw + 140px), -6vh, 0) rotate(1040deg) scale(0.82);
    opacity: 0;
  }
}

@keyframes ballShadow {
  from {
    transform: scaleX(0.78);
    opacity: 0.14;
  }
  to {
    transform: scaleX(1.28);
    opacity: 0.26;
  }
}

@keyframes loaderFade {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .world-cup-loader {
    display: none;
  }
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.newspaper-header,
.newspaper-page,
.newspaper-footer {
  width: min(100% - 36px, 1240px);
  margin: 0 auto;
}

.newspaper-header {
  padding-top: 18px;
}

.reader-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  border-bottom: 1px solid rgba(38, 59, 38, 0.22);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.reader-tools a,
.plain-menu {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  letter-spacing: 0;
}

.reader-action {
  border: 1px solid rgba(38, 59, 38, 0.34);
  padding: 6px 10px;
}

.reader-action:hover,
.contact-button:hover,
.ad-slot a:hover {
  color: var(--blue-ai);
}

.ad-slot {
  display: grid;
  place-items: center;
  gap: 2px;
  border: 1px solid rgba(38, 59, 38, 0.16);
  background: linear-gradient(180deg, rgba(237, 230, 209, 0.72), rgba(247, 242, 224, 0.54));
  color: var(--ink);
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}

.ad-slot span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ad-slot strong {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 800;
  text-transform: uppercase;
}

.ad-slot a {
  display: inline-block;
}

.ad-slot-top {
  min-height: 90px;
  margin: 18px 0 22px;
}

.masthead {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 6px 20px 12px;
}

.masthead-logo {
  width: min(650px, 84vw);
  max-height: 190px;
  object-fit: contain;
  object-position: center;
}

.masthead-logo-horizontal {
  width: min(1040px, 94vw);
  max-height: 205px;
  margin: 0 auto 10px;
}

.masthead p {
  margin: 0 0 4px;
  color: var(--green-900);
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.18;
}

.masthead time {
  font-size: clamp(0.92rem, 1.2vw, 1rem);
  font-weight: 700;
}

.newspaper-toggle {
  display: none;
  margin: 12px auto;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 14px;
  background: transparent;
  color: var(--green-950);
  cursor: pointer;
  font-weight: 700;
}

.newspaper-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  padding: 10px 12px;
  color: var(--green-950);
  font-size: clamp(0.95rem, 1.35vw, 1.12rem);
  font-weight: 800;
}

.newspaper-nav a:hover {
  color: var(--blue-ai);
}

.ad-slot-content {
  width: min(728px, 100%);
  min-height: 90px;
  margin: 18px auto 22px;
}

.site-search {
  width: 100%;
  margin: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid rgba(38, 59, 38, 0.28);
  padding: 14px 0;
  overflow: hidden;
}

.site-search h2 {
  margin: 0 0 8px;
  color: var(--green-950);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.site-search .gsc-control-cse {
  border: 0;
  padding: 0;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  max-width: 100%;
}

.site-search table,
.site-search td {
  border: 0;
}

.newspaper-page {
  padding-bottom: 42px;
}

.front-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 300px);
  gap: 22px;
  align-items: start;
}

.front-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  min-width: 0;
}

.front-main > .lead-report,
.front-main > .analysis-column,
.front-main > .ranked-publications {
  grid-column: 1 / -1;
  width: 100%;
}

.lead-report,
.analysis-column,
.updates-column {
  min-width: 0;
}

.lead-report {
  border-right: 0;
  padding-right: 0;
}

.analysis-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  border-top: 2px solid var(--ink);
  border-right: 0;
  padding-top: 16px;
  padding-right: 0;
}

.kicker {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.65vw, 1.45rem);
  font-weight: 800;
}

.lead-report h1 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 4.45vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead-report figure {
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid rgba(38, 59, 38, 0.28);
}

.lead-report figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.lead-text {
  margin: 0 0 12px;
  font-size: 1.18rem;
}

.byline {
  margin: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.opinion-story {
  border-bottom: 0;
  border-right: 1px solid rgba(38, 59, 38, 0.34);
  padding-right: 18px;
  padding-bottom: 0;
}

.opinion-story:last-child {
  border-right: 0;
  padding-right: 0;
}

.opinion-story h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.15vw, 2.1rem);
  line-height: 1.06;
}

.opinion-story p:not(.kicker):not(.byline) {
  margin: 0 0 8px;
  font-size: 1.16rem;
}

.opinion-story img {
  width: min(210px, 100%);
  max-height: 170px;
  margin-top: 14px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.48);
}

.opinion-story.compact {
  border-bottom: 0;
}

.opinion-story.compact h2 {
  font-size: clamp(1.45rem, 2.15vw, 2.1rem);
}

.updates-column {
  display: grid;
  gap: 18px;
}

.front-main > .ranked-publications {
  grid-column: 1 / span 2;
  margin-top: 6px;
}

.today-mix,
.latest-feed,
.news-radar,
.market-feed {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid rgba(38, 59, 38, 0.38);
  padding: 14px 0;
  background: transparent;
  color: var(--ink);
}

.today-mix h2,
.latest-feed h2,
.news-radar h2,
.market-feed h2 {
  margin: 0 0 12px;
  font-size: clamp(1.28rem, 2.4vw, 1.85rem);
}

.today-mix article,
.latest-feed article {
  border-bottom: 1px solid rgba(38, 59, 38, 0.28);
  padding: 10px 0;
}

.today-mix article:last-child,
.latest-feed article:last-child {
  border-bottom: 0;
}

.today-mix h3 {
  margin: 0 0 6px;
  font-size: 1.28rem;
  line-height: 1.12;
}

.today-mix p:not(.byline),
.latest-feed p {
  margin: 0 0 6px;
  font-size: 1rem;
}

.latest-feed time {
  display: block;
  margin-bottom: 3px;
  color: var(--green-950);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.market-feed-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.news-radar-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.news-radar-header span {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.news-radar-list {
  display: grid;
  gap: 0;
}

.news-radar-list article {
  border-bottom: 1px solid rgba(38, 59, 38, 0.28);
  padding: 10px 0;
}

.news-radar-list article:last-child {
  border-bottom: 0;
}

.news-radar-list h3 {
  margin: 0 0 5px;
  font-size: 1.08rem;
  line-height: 1.12;
}

.news-radar-list p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.92rem;
}

.news-radar-list a {
  color: var(--green-950);
}

.news-radar-list a:hover {
  color: var(--blue-ai);
}

.market-feed-header span {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.market-list {
  display: grid;
  gap: 0;
}

.market-list article {
  border-bottom: 1px solid rgba(38, 59, 38, 0.28);
  padding: 10px 0;
}

.market-list article:last-child {
  border-bottom: 0;
}

.market-list h3 {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.96rem;
}

.market-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.market-positive {
  color: var(--green-800);
}

.market-negative {
  color: var(--danger);
}

.market-neutral {
  color: var(--blue-ai);
  text-transform: uppercase;
}

.side-ad-newspaper {
  min-height: 160px;
}

.contact-box {
  border-top: 2px solid var(--ink);
  padding: 14px 0;
}

.contact-box h2 {
  margin: 0 0 12px;
  font-size: clamp(1.28rem, 2.4vw, 1.85rem);
}

.contact-button {
  display: block;
  border: 1px solid rgba(38, 59, 38, 0.45);
  margin-bottom: 8px;
  padding: 10px 12px;
  color: var(--green-950);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.contact-button.secondary {
  background: transparent;
  color: var(--green-950);
}

.contact-email {
  display: block;
  margin-top: 10px;
  color: var(--green-950);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  word-break: break-word;
}

.contact-box p {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

.lede-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  margin-top: 38px;
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}

.lede-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.3vw, 3.3rem);
  line-height: 0.96;
}

.lede-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.lede-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.lede-list article {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  border-left: 1px solid rgba(38, 59, 38, 0.34);
  padding-left: 16px;
}

.lede-list img {
  width: 120px;
  height: 96px;
  object-fit: cover;
  border: 1px solid rgba(38, 59, 38, 0.18);
}

.lede-list h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  line-height: 1.08;
}

.lede-list p {
  margin: 0 0 8px;
}

.section-row {
  margin-top: 34px;
  border-top: 2px solid var(--line);
  padding-top: 20px;
}

.ranking-note {
  max-width: 860px;
  margin: -4px 0 16px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
}

.ranking-note p {
  margin: 0;
}

.ranked-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ranked-card {
  position: relative;
  border-top: 2px solid var(--ink);
  padding: 14px 0 0 34px;
}

.rank-position {
  position: absolute;
  left: 0;
  top: 12px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(38, 59, 38, 0.45);
  color: var(--green-950);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.category-label {
  margin: 0 0 6px;
  color: var(--green-950);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ranked-card h3 {
  margin: 0 0 8px;
  font-size: 1.24rem;
  line-height: 1.08;
}

.ranked-card p:not(.category-label):not(.byline) {
  margin: 0 0 10px;
  font-size: 0.98rem;
}

.section-title {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  align-items: end;
  margin-bottom: 18px;
}

.section-title h2,
.about-row h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.05;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.opinion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.opinion-grid article {
  border-top: 2px solid var(--ink);
  padding-top: 12px;
}

.opinion-grid h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  line-height: 1.08;
}

.opinion-grid p:not(.category-label):not(.byline) {
  margin: 0 0 10px;
  font-size: 1rem;
}

.category-grid article {
  border-top: 2px solid var(--ink);
  padding-top: 12px;
}

.category-grid h3 {
  margin: 0 0 8px;
  color: var(--green-950);
  font-size: 1.35rem;
}

.category-grid p {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
}

.brief-grid article {
  border-left: 1px solid rgba(38, 59, 38, 0.34);
  padding-left: 16px;
}

.brief-grid h3 {
  margin: 0 0 8px;
  color: var(--green-950);
  font-size: 1.45rem;
}

.brief-grid p,
.about-row p {
  margin: 0;
  font-size: 1.08rem;
}

.about-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.about-row img {
  width: 180px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-grid article {
  border-top: 2px solid var(--ink);
  padding-top: 12px;
}

.contact-grid h3 {
  margin: 0 0 8px;
  color: var(--green-950);
  font-size: 1.45rem;
}

.contact-grid p {
  margin: 0 0 10px;
  font-size: 1rem;
}

.contact-grid a {
  color: var(--green-950);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  word-break: break-word;
}

.contact-grid a:hover {
  color: var(--blue-ai);
}

.newspaper-footer {
  border-top: 2px solid var(--line);
  padding: 18px 0 30px;
  color: var(--green-950);
  text-align: center;
}

.newspaper-footer p {
  margin: 4px 0;
}

.newspaper-footer a {
  color: var(--green-950);
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Internal admin prototype */
.internal-body {
  background: #edf5f0;
  color: #162019;
  font-family: Arial, Helvetica, sans-serif;
}

.site-header {
  background: rgba(247, 251, 248, 0.96);
  border-bottom: 1px solid #d8e4dc;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-800), var(--green-950));
  color: var(--white);
  font-size: 0.82rem;
}

.internal-lock {
  border: 1px solid rgba(191, 232, 209, 0.5);
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--green-950);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 20px 52px;
}

.section-heading {
  margin: 0 auto 24px;
}

.section-heading h1 {
  margin: 0;
  color: var(--green-950);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.internal-note {
  max-width: 820px;
  color: #65736b;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
}

.tab-button {
  border: 1px solid #d8e4dc;
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--green-950);
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.tab-button.active {
  border-color: var(--green-800);
  background: var(--green-800);
  color: var(--white);
}

.tab-panel {
  display: none;
  border: 1px solid #d8e4dc;
  border-radius: 8px;
  padding: 20px;
  background: var(--white);
}

.tab-panel.active {
  display: block;
}

.moderation-grid,
.ad-manager,
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.review-card,
.ad-manager article,
.security-grid article {
  border: 1px solid #d8e4dc;
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
}

.review-card > span {
  display: inline-block;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.review-card.warning > span {
  background: #fff4e2;
  color: var(--amber);
}

.review-card.approved > span {
  background: var(--green-100);
  color: var(--green-800);
}

.card-actions,
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.card-actions button,
.ai-form button {
  border: 0;
  border-radius: 6px;
  padding: 11px 16px;
  background: var(--green-800);
  color: var(--white);
  cursor: pointer;
  font-weight: 800;
}

.card-actions button:last-child {
  border: 1px solid #d8e4dc;
  background: var(--white);
  color: var(--green-950);
}

.ai-form {
  display: grid;
  gap: 12px;
}

.ai-form label,
.manual-form label {
  color: var(--green-950);
  font-weight: 800;
}

.ai-form textarea,
.ai-form select,
.manual-form input,
.manual-form select,
.manual-form textarea {
  width: 100%;
  border: 1px solid #d8e4dc;
  border-radius: 6px;
  padding: 12px;
  background: #fbfdfb;
}

.manual-form {
  display: grid;
  gap: 14px;
}

.manual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.manual-main,
.manual-side {
  display: grid;
  align-content: start;
  gap: 10px;
}

.field-help {
  margin: -4px 0 2px;
  color: #65736b;
  font-size: 0.82rem;
}

.check-row {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #d8e4dc;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fbfdfb;
}

.check-row input {
  width: auto;
}

.manual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.manual-actions button {
  border: 0;
  border-radius: 6px;
  padding: 11px 16px;
  background: var(--green-800);
  color: var(--white);
  cursor: pointer;
  font-weight: 800;
}

.manual-actions button:nth-child(n + 2) {
  border: 1px solid #d8e4dc;
  background: var(--white);
  color: var(--green-950);
}

.json-output {
  min-height: 260px;
  max-height: 420px;
  overflow: auto;
  margin: 16px 0 0;
  border-radius: 8px;
  padding: 16px;
  background: #0b1510;
  color: #d4f7df;
  white-space: pre-wrap;
}

.mailbox-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.mailbox-header h2 {
  margin: 4px 0 8px;
  font-size: 2rem;
}

.mailbox-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.analytics-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.mailbox-stats article {
  border: 1px solid #d8e4dc;
  border-radius: 8px;
  padding: 16px;
  background: #fbfdfb;
}

.analytics-stats article {
  border: 1px solid #d8e4dc;
  border-radius: 8px;
  padding: 16px;
  background: #fbfdfb;
}

.mailbox-stats span {
  display: block;
  margin-bottom: 4px;
  color: var(--green-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 800;
}

.analytics-stats span {
  display: block;
  margin-bottom: 4px;
  color: var(--green-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 800;
}

.mailbox-stats strong {
  color: #405047;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.analytics-stats strong {
  color: #405047;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.analytics-table-wrap {
  overflow-x: auto;
  border: 1px solid #d8e4dc;
  border-radius: 8px;
  background: var(--white);
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.analytics-table th,
.analytics-table td {
  border-bottom: 1px solid #e3ece6;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.analytics-table th {
  color: var(--green-950);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.analytics-table td:not(:first-child) {
  width: 100px;
  font-weight: 800;
}

.trusted-sources {
  margin-top: 22px;
  border-top: 1px solid #d8e4dc;
  padding-top: 18px;
}

.trusted-sources h2 {
  margin-bottom: 8px;
  color: var(--green-950);
}

.trusted-sources > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.trusted-sources article {
  border: 1px solid #d8e4dc;
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfb;
}

.trusted-sources h3 {
  margin-bottom: 6px;
  color: var(--green-950);
}

.trusted-sources p {
  color: #43534a;
  font-size: 0.86rem;
}

.mailbox-addresses {
  border-top: 1px solid #d8e4dc;
  border-bottom: 1px solid #d8e4dc;
  padding: 14px 0;
  margin-bottom: 18px;
}

.mailbox-addresses h3 {
  margin-bottom: 10px;
}

.mailbox-addresses div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mailbox-addresses a {
  border: 1px solid #d8e4dc;
  border-radius: 999px;
  padding: 7px 10px;
  background: #fbfdfb;
  color: var(--green-950);
  font-weight: 800;
  text-decoration: none;
}

.mailbox-list {
  display: grid;
  gap: 12px;
}

.mailbox-list article {
  border: 1px solid #d8e4dc;
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
}

.mailbox-list article > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #65736b;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mailbox-list h3 {
  margin-bottom: 8px;
  color: var(--green-950);
  font-size: 1.1rem;
}

@media (max-width: 1100px) {
  .front-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 24px;
  }

  .updates-column {
    grid-column: 2;
    grid-row: 1;
  }

  .front-main > .ranked-publications {
    grid-column: 1;
  }
}

@media (max-width: 980px) {
  .front-grid {
    grid-template-columns: 1fr;
  }

  .front-main {
    grid-template-columns: 1fr;
  }

  .analysis-column {
    grid-template-columns: 1fr;
  }

  .opinion-story {
    border-right: 0;
    border-bottom: 1px solid rgba(38, 59, 38, 0.45);
    padding-right: 0;
    padding-bottom: 18px;
  }

  .opinion-story:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .updates-column {
    grid-column: auto;
    grid-row: auto;
  }

  .front-main > .ranked-publications {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  .newspaper-header,
  .newspaper-page,
  .newspaper-footer {
    width: min(100% - 24px, 1240px);
  }

  .newspaper-toggle {
    display: block;
  }

  .newspaper-nav {
    display: none;
    align-items: stretch;
    flex-direction: column;
    font-size: 1.25rem;
  }

  .newspaper-nav.open {
    display: flex;
  }

  .masthead p {
    margin-top: -8px;
  }

  .front-grid,
  .lede-row,
  .section-title,
  .brief-grid,
  .analytics-stats,
  .ranked-grid,
  .category-grid,
  .opinion-grid,
  .contact-grid,
  .trusted-sources > div,
  .about-row,
  .manual-grid,
  .moderation-grid,
  .ad-manager,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .lede-list {
    grid-template-columns: 1fr;
  }

  .about-row img {
    width: 140px;
  }
}

@media (max-width: 520px) {
  .lead-report h1 {
    font-size: 2.15rem;
  }

  .kicker {
    font-size: 1.08rem;
  }

  .ad-slot strong {
    font-size: 1.35rem;
  }

  .masthead-logo {
    width: 96vw;
  }

  .reader-tools {
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .lede-list article {
    grid-template-columns: 1fr;
  }

  .lede-list img {
    width: 100%;
    height: 170px;
  }
}
