/* Editorial pages only. The homepage has its own compact news carousel. */
.news-page {
  --print-ink: #11283c;
  --print-gold: #ffb449;
  --rule: 2px solid var(--news-fg);
}
.news-top {border-bottom: 3px solid var(--print-gold);}
.news-heading {
  position: relative;
  max-width: none;
  padding-bottom: clamp(1rem, 2.4vw, 1.6rem);
  border-bottom: var(--rule);
  margin-bottom: clamp(1.25rem, 2.8vw, 1.85rem);
}
.news-heading::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: min(8rem, 26%); height: 5px;
  background: var(--news-orange);
  transform-origin: left;
}
.news-heading p {max-width: 48ch; margin: .75rem 0 0;}
.news-grid {gap: clamp(1.15rem, 2.5vw, 1.9rem);}
.news-grid .news-card, .news-story .news-art {
  border: var(--rule);
  border-radius: .55rem;
  box-shadow: 4px 4px 0 var(--news-fg);
}
.news-grid .news-card {min-width: 0; scroll-margin-block: 1.5rem;}
.news-grid .news-copy {padding: clamp(1.05rem, 2.25vw, 1.7rem);}
.news-grid .news-card:first-child {grid-column: 1 / -1;}
.news-grid .news-card:first-child h2 {
  font-size: clamp(1.85rem, 4.1vw, 3.75rem);
  line-height: 1.03;
}
.news-page .news-meta {align-items: center;}
.news-page .news-meta span {
  padding: .14rem .55rem;
  color: var(--print-ink);
  background: var(--print-gold);
  border: 1px solid var(--print-ink);
  border-radius: .18rem;
  line-height: 1.3;
}
.news-page .news-art:has(.news-portrait) {
  position: relative;
  isolation: isolate;
  padding: .8rem;
  background-color: #152f43;
  background-image: radial-gradient(#b4d3d54d .9px, transparent 1px),
    linear-gradient(135deg, transparent 38%, #20485c 38%, #20485c 71%, transparent 71%);
  background-size: 6px 6px, 100% 100%;
}
.news-grid .news-card:nth-child(3n) .news-art:has(.news-portrait) {background-color: #543033;}
.news-grid .news-card:first-child .news-art:has(.news-portrait), .news-story .news-art:has(.news-portrait) {
  min-height: 0;
  height: clamp(16rem, 28vw, 22rem);
  background-color: #ed9b43;
  background-image: radial-gradient(#39292255 1px, transparent 1.4px),
    linear-gradient(118deg, transparent 15%, #ffc563 15%, #ffc563 50%, transparent 50%),
    linear-gradient(30deg, #e58237 34%, transparent 34%);
}
.news-page .news-art img.news-portrait {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  aspect-ratio: 9/16;
  border: 2px solid #152637;
  box-shadow: 4px 4px 0 #101d30a8;
}
.news-grid .news-card .news-art:has(.news-portrait) {aspect-ratio: auto;}
.news-grid .news-card:not(:first-child) .news-art:has(.news-portrait) {height: 12rem;}
.news-page .news-read {text-decoration-color: var(--news-accent);}
.news-page .news-read span, .news-page .news-action span {display: inline-block;}
.news-story {margin-block: 1rem 2.5rem;}
.news-story .news-art:has(.news-portrait) {width: 100%; aspect-ratio: auto; height: clamp(18rem, 38vw, 29rem);}
.news-story .news-art img.news-portrait {max-height: none;}
.news-story h1 {text-wrap: balance;}
.news-story .news-byline {margin-block: 2rem 0; color: var(--news-secondary); font-size: .9rem;}
.news-story-text .news-action {border: 2px solid var(--print-ink); box-shadow: 3px 3px 0 var(--print-ink);}
.news-neighbours {display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; border-top: var(--rule); padding-top: 1.25rem;}
.news-neighbours a {display: grid; gap: .25rem; padding: .7rem 1rem; border-left: 3px solid var(--news-orange); background: var(--news-card); text-decoration: none;}
.news-neighbours small {color: var(--news-secondary);}
.news-neighbours strong {font-size: 1.1rem;}
.news-neighbours a:is(:hover,:focus-visible) strong {text-decoration: underline;}
@media (min-width: 661px) {
  .news-grid .news-card:first-child {display: grid; grid-template-columns: .9fr 1.1fr; align-items: stretch;}
  .news-grid .news-card:first-child .news-copy {padding: clamp(1.5rem, 4vw, 3.5rem);}
  .news-grid .news-card:first-child .news-art {height: 100%; min-height: 18rem;}
}
@media (min-width: 960px) {
  .news-grid .news-card:not(:first-child):has(.news-portrait) {display: grid; grid-template-columns: minmax(10rem,.75fr) 1.25fr;}
  .news-grid .news-card:not(:first-child) .news-art:has(.news-portrait) {height: 100%; min-height: 16.5rem;}
}
@media (max-width: 660px) {
  .news-story .news-art:has(.news-portrait) {height: 14.5rem; max-height: none;}
  .news-story .news-art:has(.news-portrait) img {max-height: 100%;}
  .news-grid .news-card:not(:first-child):has(.news-portrait) {display: grid; grid-template-columns: clamp(5.5rem, 28vw, 10rem) minmax(0,1fr);}
  .news-grid .news-card:not(:first-child) .news-art:has(.news-portrait) {height: 100%; padding: .45rem;}
  .news-grid .news-card:not(:first-child) .news-art img.news-portrait {height: auto; width: 100%;}
  .news-grid .news-card:not(:first-child) h2 {font-size: 1.32rem;}
}
@media screen and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  @view-transition {navigation: auto;}
  .news-transfer {view-transition-name: news-cover;}
  ::view-transition-group(news-cover) {animation-duration: .55s; animation-timing-function: cubic-bezier(.22,.76,.22,1);}
  ::view-transition-old(root), ::view-transition-new(root) {animation-duration: .25s;}
  .news-heading::after {animation: news-rule-open .8s cubic-bezier(.22,.76,.22,1) backwards;}
  .news-heading h1, .news-story-text h1, .news-story-text .news-lead {animation: news-headline-in .58s cubic-bezier(.2,.72,.2,1) backwards;}
  .news-story-text .news-lead {animation-delay: .1s;}
  .news-card.news-in-view {animation: news-card-in .7s cubic-bezier(.18,.74,.2,1) backwards;}
  .news-page .news-read span, .news-page .news-action span {transition: transform .28s ease;}
  .news-card:focus-within .news-read span {transform: translateX(.25rem);}
  @keyframes news-rule-open {from {transform: scaleX(0);} to {transform: none;}}
  @keyframes news-headline-in {from {opacity: .65; transform: translateY(.55rem);} to {opacity: 1; transform: none;}}
  @keyframes news-card-in {
    from {opacity: .72; transform: perspective(1000px) translateY(24px) rotateX(5deg);}
    to {opacity: 1; transform: none;}
  }
  @media (max-width: 960px) and (any-pointer: coarse) {
    .news-card.news-in-view {animation: news-card-settle 2.8s ease-in-out backwards;}
    @keyframes news-card-settle {
      from {opacity: .94; transform: translateY(4px);}
      to {opacity: 1; transform: none;}
    }
    ::view-transition-group(news-cover) {animation-duration: .95s; animation-timing-function: ease-in-out;}
  }
  @media (hover: hover) and (pointer: fine) {
    .news-grid .news-art img {transition: transform .55s cubic-bezier(.17,.77,.22,1);}
    .news-grid .news-card:hover .news-art img {transform: scale(1.025);}
    .news-grid .news-card:hover .news-read span {transform: translateX(.28rem);}
    .news-action:is(:hover,:focus-visible) span {transform: translate(2px,-2px);}
  }
}
@media (forced-colors: active) {
  .news-page .news-meta span, .news-story-text .news-action {border: 1px solid ButtonText;}
  .news-grid .news-card, .news-story .news-art {border-color: CanvasText;}
}
