.news-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.news-page main { flex: 1; }
.news-page .header-inner { flex-wrap: nowrap; }
.news-page .site-nav { order: 0; flex: 1; justify-content: center; flex-wrap: nowrap; padding: 0; }
.news-page .site-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }

.news-masthead {
  padding: clamp(3.125rem, 7vw, 5.5rem) 0 clamp(2.75rem, 5.5vw, 4.5rem);
  color: var(--white);
  background: radial-gradient(ellipse at 82% 14%, rgba(255, 110, 43, .22), transparent 45%), var(--ink);
}

.news-masthead h1 {
  font-size: clamp(2.45rem, 6vw, 4.375rem);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -.04em;
}

.news-masthead h1::before {
  content: '';
  display: block;
  width: 2.8rem;
  height: .25rem;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  background: var(--grad);
}

.news-masthead p { margin-top: .8rem; color: rgba(255, 255, 255, .78); }
.news-list-section { padding-block: clamp(2.25rem, 5vw, 4.25rem) clamp(3rem, 7vw, 5.25rem); }
.news-list-section > h2 { margin-bottom: 1.25rem; font-size: clamp(1.4rem, 3vw, 1.875rem); }

.news-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.85rem, 2.8vw, 1.5rem);
  padding: 0;
  list-style: none;
}

.news-story {
  position: relative;
  height: 100%;
  padding: clamp(1rem, 3vw, 1.8rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  overflow-wrap: anywhere;
  box-shadow: var(--shadow-small);
}

.news-story:focus-within, .news-story:hover { border-color: rgba(181, 53, 19, .45); }
.news-story-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .85rem; color: var(--muted); font-size: .875rem; }
.news-category { padding: .125rem .65rem; background: var(--grad-soft); color: var(--accent); border-radius: 999px; font-weight: 700; }
.news-story h3 { margin-top: .7rem; font-size: clamp(1.25rem, 2.5vw, 1.625rem); line-height: 1.45; }
.news-story h3 a:hover { color: var(--accent); }
.news-story h3 a::after { position: absolute; inset: 0; content: ''; }
.news-story p { margin-top: .45rem; color: var(--muted); }

.news-empty {
  display: grid;
  align-content: center;
  min-height: 10.25rem;
  padding: 1.5rem;
  border: 1px dashed rgba(181, 53, 19, .30);
  border-radius: var(--radius-medium);
  background: #fff4ec;
  text-align: center;
}

.news-empty p:first-child { font-size: 1.125rem; font-weight: 700; }
.news-empty p + p { margin-top: .35rem; color: var(--muted); }

.home-news .news-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-news .news-empty { min-height: 7rem; }
.home-news-actions { display: flex; justify-content: center; margin-top: 1.5rem; }

.news-reader {
  max-width: 46rem;
  padding-block: clamp(1.75rem, 4vw, 3.5rem) clamp(3rem, 7vw, 5.5rem);
  overflow-wrap: anywhere;
}

.news-back { color: var(--accent); font-weight: 600; }
.news-back a:hover, .news-dashboard a:hover { text-decoration: underline; text-underline-offset: .2em; }
.news-article-header { margin-block: 1.55rem 2rem; padding-bottom: 1.35rem; border-bottom: 1px solid var(--line); }
.news-article-header h1 { margin-top: .6rem; font-size: clamp(2rem, 5.5vw, 3.65rem); line-height: 1.24; letter-spacing: -.035em; }
.news-article-header p { margin-top: .85rem; color: var(--muted); font-size: 1.1rem; }
.news-prose { color: var(--ink-2); font-size: clamp(1rem, 1.85vw, 1.125rem); line-height: 1.9; }
.news-prose > * + * { margin-top: 1.05rem; }
.news-prose > h2 { margin-top: 1.7rem; color: var(--ink); font-size: 1.45em; line-height: 1.45; }
.news-prose ul { padding-inline-start: 1.45em; }
.news-prose li + li { margin-top: .28em; }

.news-dashboard { padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(2.5rem, 7vw, 5rem); }
.news-dashboard-header, .news-dashboard-subhead, .news-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem 1rem;
}

.news-dashboard-header { margin-bottom: 1.35rem; }
.news-dashboard-header h1, .news-message h1 { font-size: clamp(1.85rem, 4vw, 2.5rem); line-height: 1.25; }
.news-dashboard-links { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.news-dashboard-links a, .news-editor-heading a { color: var(--accent); font-weight: 600; }

.news-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(13.5rem, .8fr) minmax(0, 2fr);
  align-items: start;
  gap: clamp(.9rem, 2.2vw, 1.5rem);
}

.news-dashboard-sidebar, .news-editor {
  min-width: 0;
  padding: clamp(.95rem, 2.5vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--white);
}

.news-dashboard-subhead, .news-editor-heading { margin-bottom: 1rem; }
.news-dashboard-subhead h2, .news-editor-heading h2 { font-size: 1.25rem; }
.news-manager-muted { color: var(--muted); }
.news-manager-list { padding: .15rem .25rem .15rem 0; gap: .55rem; display: grid; max-height: 27rem; overflow: auto; list-style: none; }
.news-manager-list a { display: block; padding: .7rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-small); overflow-wrap: anywhere; }
.news-manager-list a[aria-current] { border-color: rgba(181, 53, 19, .38); background: #fff4ec; }
.news-manager-list a:hover { border-color: rgba(181, 53, 19, .38); }
.news-manager-meta { display: flex; align-items: center; gap: .35rem .6rem; flex-wrap: wrap; margin-top: .2rem; font-size: .8rem; color: var(--muted); }
.news-state { color: var(--ink-2); }
.news-state-live { color: #126043; font-weight: 700; }

.news-editor form, .news-editor label { display: grid; min-width: 0; }
.news-editor form { gap: .8rem; }
.news-editor label { gap: .32rem; color: var(--ink); font-weight: 650; }
.news-form-heading { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(7rem, 1fr); gap: .8rem; }

.news-editor input:not([type=hidden]), .news-editor textarea, .news-editor select {
  width: 100%;
  padding: .62rem .72rem;
  border: 1px solid rgba(15, 13, 40, .26);
  border-radius: .55rem;
  background: #fffdfa;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.news-editor textarea { resize: vertical; }
.news-form-help { margin-top: -.55rem; color: var(--muted); font-size: .86rem; }
.news-form-help code { padding-inline: .25rem; border-radius: .2rem; background: var(--grad-soft); color: var(--accent); }
.news-form-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .3rem; }
.news-outline { border-color: rgba(15, 13, 40, .3); color: var(--ink); background: var(--white); }
.news-outline:hover { border-color: var(--accent); color: var(--accent); }
.news-feedback { margin-bottom: 1rem; padding: .65rem .85rem; border-radius: var(--radius-small); background: #e8f6ee; color: #15583e; overflow-wrap: anywhere; }
.news-feedback-error { background: #ffe8df; color: #8d280f; }

.news-message { max-width: 44rem; padding-block: clamp(2.75rem, 9vw, 6rem); }
.news-message p { margin-top: .9rem; color: var(--muted); overflow-wrap: anywhere; }
.news-message .button { margin-top: 1.25rem; }

@media (max-width: 45rem) {
  .home-news .news-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-dashboard-grid { grid-template-columns: 1fr; }
  .news-manager-list { max-height: 14rem; }
}

@media (max-width: 37.5rem) {
  .news-page .site-nav { gap: 0; }
  .news-page .site-nav a { padding-inline: .35rem; font-size: .875rem; }
  .news-page .header-inner > .button { margin-left: 0; }
  .news-feed, .home-news .news-feed, .news-form-heading { grid-template-columns: 1fr; }
}
