.section.news {
  padding-block: clamp(2.4rem, 5vw, 4.75rem);
}

.news__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
}

.news__scene {
  display: grid;
  align-content: center;
  justify-items: center;
  grid-row: 1 / -1;
  min-width: 0;
  padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.6rem);
}

.news__layout:has([data-news-toggle][aria-expanded="true"]) .news__scene {
  align-self: start;
}

.news__chase {
  width: min(100%, 555px);
  aspect-ratio: 560 / 335;
  overflow: hidden;
}

.news__chase img {
  width: 800%;
  max-width: none;
  transform: translateX(-25%);
}

.news__chase-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.news__scene[data-chase-ready] .news__chase img {
  display: none;
}

.news__intro { width: 100%; padding: 1.15rem clamp(1.25rem, 3.3vw, 2.85rem) 0; }
.news__intro .section-title {
  font-size: clamp(3rem, 6.15vw, 5.4rem);
  line-height: .9;
  text-wrap: initial;
}
.news__intro p { max-width: 33ch; margin-top: .5rem; color: var(--muted); }

/* Framed village dispatch board panel */
.news__feed {
  display: grid;
  align-content: start;
  min-width: 0;
  border: 2px solid #284b3d;
  border-radius: 6px;
  background: #fcfdf7;
  box-shadow: 0 5px 0 #1f3c3024, 0 14px 30px #14302814;
  overflow: hidden;
}

.news__board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .6rem 1.2rem;
  border-bottom: 1px solid #c6dacb;
  background: #e7f3ec;
}

.news__board-tag {
  color: #164f3b;
  font: 600 .76rem/1.2 var(--font-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.news__board-pins {
  display: inline-flex;
  gap: .38rem;
}

.news__board-pins i {
  width: 7px;
  height: 7px;
  border: 1px solid #325e4d;
  border-radius: 1px;
  background: #b7d7c2;
}

.news__entries {
  padding: clamp(1rem, 2.5vw, 1.85rem);
}

.news__feed:is([data-news-state="loading"], [data-news-state="empty"], [data-news-state="error"]) {
  align-content: start;
}

.news__feed[data-news-state="error"]:has(article) { align-content: start; }

.news__feedback {
  display: grid;
  justify-items: center;
  gap: .65rem;
  padding: clamp(2.1rem, 4.5vw, 3.35rem) clamp(1.25rem, 3vw, 2.25rem);
  color: #46594b;
  text-align: center;
}

.news__empty-title {
  display: grid;
  justify-items: center;
  gap: .75rem;
  color: #153b31;
  font: 800 clamp(1.65rem, 2.9vw, 2.2rem)/1 var(--font-display);
}

.news__empty-title::before {
  content: "";
  width: 34px;
  height: 34px;
  border: 1px solid #bfd4c5;
  border-radius: 4px;
  background: #f0f6ef url("/media/overworld/notice-paper.png") center / 24px 24px no-repeat;
  image-rendering: pixelated;
  box-shadow: 0 2px 0 #1f3c3018;
}

.news__empty-note {
  max-width: 34ch;
  color: #3a574d;
  font-size: .94rem;
  line-height: 1.5;
}

.news article {
  padding-block: 1.15rem;
}

.news article + article {
  border-top: 1px solid #dbe7dc;
}

.news article:first-child { padding-top: .1rem; }
.news article:last-child { padding-bottom: .1rem; }

.news article h3 {
  margin-bottom: .45rem;
  color: #18392d;
  font-size: clamp(1.5rem, 2.7vw, 2.15rem);
  font-weight: 800;
}
.news article :is(h3, .news__body) { overflow-wrap: anywhere; }
.news article .news__body { max-width: 60ch; color: #3d4c3e; white-space: pre-line; }
.news__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; margin-bottom: .45rem; }
.news__category {
  padding: .12rem .45rem;
  border: 1px solid #c3dccb;
  border-radius: 3px;
  background: #eaf5ee;
  color: #16553e;
  font: 600 .72rem/1.3 var(--font-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.news__meta time { color: #4c594a; font-size: .85rem; font-weight: 700; }

.news__controls {
  display: grid;
  justify-items: center;
  gap: .25rem;
  padding: .5rem clamp(1rem, 3.5vw, 3rem) 0;
}

.news__pages { display: flex; flex-wrap: wrap; justify-content: center; }
.news__page {
  display: grid;
  width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #126446;
}
.news__page::before { width: 11px; height: 11px; border: 1px solid currentColor; border-radius: 50%; content: ""; }
.news__page:hover::before, .news__page[aria-current]::before { background: currentColor; }
.news__page[aria-current]::before { outline: 1px solid currentColor; outline-offset: 3px; }
.news__retry { min-height: 44px; padding: 0 .2rem; border: 0; color: var(--green); background: transparent; text-decoration: underline; }

@media (max-width: 760px) {
  .news__layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .news__scene {
    grid-row: auto;
    min-height: 0;
  }
  .news__chase { width: min(100%, 425px); }
  .news__intro { padding-inline: 0; }
  .news__intro .section-title { font-size: clamp(2.65rem, 10vw, 3.7rem); }
}
