/* Latest News page. The hero banner comes from about.css (same as the other inner pages).
   Every class here starts with ln- so no other page is touched. */

.ln { padding-block: var(--section); background: linear-gradient(180deg, var(--base) 0%, var(--flame-tint) 100%); }

/* the search box above the stories */
.ln-search { display: flex; flex-wrap: wrap; gap: 0.6rem; max-width: none; margin: clamp(2rem, 1.5rem + 2vw, 3rem) 0 clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.ln-search__field { position: relative; display: flex; flex: 1 1 16rem; max-width: 30rem; margin-left: auto; }
.ln-search__select { flex: 0 1 11.5rem; -webkit-appearance: none; appearance: none; padding: 0.95rem 2.75rem 0.95rem 1.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230C4A8F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.25rem center; background-size: 0.75rem; border: 1.5px solid var(--line); border-radius: 999px; background-color: #fff; font: inherit; font-size: 1rem; color: var(--ink); cursor: pointer; box-shadow: 0 0.75rem 2rem -1.5rem rgba(12, 74, 143, 0.4); transition: border-color 0.2s, box-shadow 0.2s; }
.ln-search__select:focus { outline: 0; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(254, 182, 40, 0.3); }
.ln-date { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; padding: 0.3rem 0.8rem 0.3rem 0.65rem; border: 1.5px solid var(--maroon); border-radius: 0.6rem; background: transparent; font-family: var(--mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: var(--maroon); }
.ln-date::before { content: ""; width: 0.95rem; height: 0.95rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C4A8F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat; }
.ln-lead .ln-date { border-color: var(--flame); color: var(--flame); }
.ln-lead .ln-date::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23feb628' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.ln-lead .ln-date { margin-bottom: 1rem; }
.ln-search__icon { position: absolute; left: 1.1rem; top: 50%; width: 1.25rem; height: 1.25rem; transform: translateY(-50%); color: var(--amber); pointer-events: none; }
.ln-search__input { flex: 1; min-width: 0; padding: 0.95rem 1.25rem 0.95rem 3.1rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 1rem; color: var(--ink); box-shadow: 0 0.75rem 2rem -1.5rem rgba(12, 74, 143, 0.4); transition: border-color 0.2s, box-shadow 0.2s; }
.ln-search__btn { flex: none; padding: 0 1.6rem; border: 0; border-radius: 999px; background: var(--maroon); font: inherit; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--base); cursor: pointer; transition: background-color 0.2s; }
.ln-search__btn:hover, .ln-search__btn:focus-visible { background: var(--red); }
.ln-search__input:focus { outline: 0; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(254, 182, 40, 0.3); }
.ln-none { margin: 2rem 0 0; font-family: var(--display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); color: var(--maroon); }
.ln-none[hidden], .ln-lead[hidden] { display: none; }

/* the newest story, large: picture at the left, words at the right */
.ln-lead { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); border-radius: calc(var(--r-lg) * 1.25); background: var(--band); color: var(--on-dark); box-shadow: 0 1.5rem 4rem -2rem rgba(12, 74, 143, 0.5); }
.ln-lead__photo { margin: 0; overflow: hidden; border: 2px solid var(--flame); border-radius: var(--r-lg); background: var(--surface); }
.ln-lead__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.ln-lead__title { margin: 0 0 1rem; font-family: var(--display); font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.4rem); font-weight: 290; line-height: 1.08; letter-spacing: -0.025em; color: var(--base); }
.ln-lead__text { margin: 0 0 1.5rem; padding-left: clamp(1rem, 0.75rem + 1vw, 1.5rem); border-left: 2px solid var(--flame); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); line-height: 1.75; color: var(--base); }
.ln-lead .ln-more { color: var(--flame); }

/* every other story: one card */
.ln-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); margin: 0; padding: 0; list-style: none; }
.ln-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s; }
.ln-card[hidden] { display: none; }
.ln-card:hover { transform: translateY(-6px); border-color: var(--flame); box-shadow: 0 1.5rem 3rem -1.75rem rgba(12, 74, 143, 0.45); }
.ln-card__photo { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.ln-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.ln-card:hover .ln-card__photo img { transform: scale(1.05); }
.ln-card__body { display: flex; flex: 1; flex-direction: column; gap: 0.6rem; padding: clamp(1.1rem, 1rem + 0.8vw, 1.6rem); border-top: 3px solid var(--flame); }
.ln-card__title { margin: 0; font-family: var(--display); font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); font-weight: 320; line-height: 1.15; letter-spacing: -0.01em; color: var(--maroon); }
.ln-card__text { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--text); }
.ln-more { margin-top: auto; align-self: flex-start; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--red); border-bottom: 1px solid currentColor; padding-bottom: 0.15rem; transition: color 0.2s; }
.ln-more:hover, .ln-more:focus-visible { color: var(--maroon); }
.ln-lead .ln-more:hover, .ln-lead .ln-more:focus-visible { color: var(--base); }
.ln-showmore { display: flex; justify-content: center; margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.ln-showmore[hidden] { display: none; }

@media (max-width: 1000px) {
  .ln-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .ln-lead { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .ln-grid { grid-template-columns: minmax(0, 1fr); }
}

/* A story page */
.ns-hero__title { letter-spacing: -0.015em; word-spacing: 0.1em; }
.ns-hero__title .ab-line__in { font-size: clamp(2rem, 1.2rem + 3.4vw, 4.5rem); line-height: 1.08; }
.ns { padding-block: var(--section); background: linear-gradient(180deg, var(--base) 0%, var(--flame-tint) 100%); }
.ns__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.ns__photo { margin: 0 0 clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.ns__photo img { display: block; width: 100%; height: auto; border: 2px solid var(--flame); border-radius: calc(var(--r-lg) * 1.25); box-shadow: 0 1.5rem 3.5rem -2rem rgba(12, 74, 143, 0.45); }
.ns__body { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); line-height: 1.8; color: var(--text); }
.ns__body p { margin: 0 0 1.1em; }
.ns__body ul, .ns__body ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.ns__body a { color: var(--maroon); text-decoration: underline; text-decoration-color: var(--flame); text-underline-offset: 3px; }
.ns__block { margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.ns__heading { margin: 0 0 1.25rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--flame); font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 300; font-style: italic; color: var(--maroon); }
.ns__gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.ns__gallery a { display: block; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); }
.ns__gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s; }
.ns__gallery a:hover img { transform: scale(1.06); }
.ns__files { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.ns__files a { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: var(--ink); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.ns__files a:hover { border-color: var(--flame); transform: translateX(4px); }
.ns__pdf { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 0.6rem; background: var(--flame); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; color: var(--band); }
.ns__side { position: sticky; top: 7rem; display: grid; gap: 0.9rem; }
.ns__back { display: inline-block; justify-self: start; padding: 0.7rem 1.4rem; border-radius: 999px; background: var(--maroon); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--base); text-decoration: none; transition: background-color 0.2s; }
.ns__back:hover, .ns__back:focus-visible { background: var(--red); }
.ns__next { display: grid; gap: 0.35rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-left: 4px solid var(--flame); border-radius: var(--r-lg); background: #fff; font-family: var(--display); font-size: 1.1rem; line-height: 1.25; color: var(--maroon); text-decoration: none; transition: transform 0.25s, border-color 0.25s; }
.ns__next:hover, .ns__next:focus-visible { transform: translateX(4px); border-color: var(--red); }
.ns__next span { font-family: var(--body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); }
@media (max-width: 900px) {
  .ns__grid { grid-template-columns: minmax(0, 1fr); }
  .ns__side { position: static; }
  .ns__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The lightbox of the pictures on a story page */
.ns__gallery a { cursor: zoom-in; position: relative; }
.ns__gallery a::after { content: "+"; position: absolute; right: 0.6rem; bottom: 0.6rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(12, 74, 143, 0.85); font-size: 1.25rem; line-height: 1; color: var(--flame); opacity: 0; transform: scale(0.8); transition: opacity 0.25s, transform 0.25s; }
.ns__gallery a:hover::after, .ns__gallery a:focus-visible::after { opacity: 1; transform: none; }
.ns-lb-open { overflow: hidden; }
.ns-lb { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(4, 28, 60, 0.95); animation: ns-lb-fade 0.25s ease both; }
.ns-lb[hidden] { display: none; }
.ns-lb__fig { display: grid; justify-items: center; gap: 0.9rem; margin: 0; padding: 4rem 5rem 2rem; max-width: 100%; }
.ns-lb__fig img { display: block; max-width: min(1400px, calc(100vw - 10rem)); max-height: calc(100dvh - 9rem); width: auto; height: auto; object-fit: contain; border: 2px solid var(--flame); border-radius: var(--r-sm); background: #000; }
.ns-lb__fig img.is-in { animation: ns-lb-zoom 0.4s ease both; }
.ns-lb__count { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.15em; color: var(--flame); }
.ns-lb__close, .ns-lb__nav { position: absolute; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--base); cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.ns-lb__close:hover, .ns-lb__nav:hover, .ns-lb__close:focus-visible, .ns-lb__nav:focus-visible { background: var(--flame); border-color: var(--flame); color: var(--band); }
.ns-lb__close { right: 1.25rem; top: 1.25rem; width: 3rem; height: 3rem; font-size: 1.75rem; line-height: 1; }
.ns-lb__nav { top: 50%; width: 3.25rem; height: 3.25rem; margin-top: -1.625rem; font-size: 2.25rem; line-height: 1; }
.ns-lb__nav--prev { left: 1.25rem; }
.ns-lb__nav--next { right: 1.25rem; }
@keyframes ns-lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ns-lb-zoom { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .ns-lb__fig { padding: 4rem 0.75rem 1.5rem; }
  .ns-lb__fig img { max-width: calc(100vw - 1.5rem); }
  .ns-lb__nav { top: auto; bottom: 1rem; margin-top: 0; width: 2.75rem; height: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) { .ns-lb, .ns-lb__fig img.is-in { animation: none; } }
/* Three more stories under the newer and older ones */
.ns__more-title { margin: 0.75rem 0 0; padding-bottom: 0.6rem; border-bottom: 2px solid var(--flame); font-family: var(--display); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); font-weight: 300; font-style: italic; color: var(--maroon); }
.ns__more { display: grid; grid-template-columns: 6rem minmax(0, 1fr); align-items: center; gap: 0.9rem; padding: 0.6rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: var(--maroon); text-decoration: none; transition: transform 0.25s, border-color 0.25s; }
.ns__more:not(:has(img)) { grid-template-columns: minmax(0, 1fr); padding: 0.9rem 1.1rem; }
.ns__more:hover, .ns__more:focus-visible { transform: translateX(4px); border-color: var(--flame); }
.ns__more img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--r-lg) * 0.6); background: var(--surface); }
.ns__more span { display: grid; gap: 0.25rem; font-family: var(--display); font-size: 1rem; line-height: 1.2; }
.ns__more small { justify-self: start; font-family: var(--mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; color: var(--maroon); padding-left: 0.6rem; border-left: 3px solid var(--flame); }
.ns-hero__date { margin: 0 0 0.9rem; }
.ns-date { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.85rem 0.3rem 0.7rem; border: 1.5px solid var(--flame); border-radius: 0.6rem; background: rgba(8, 40, 85, 0.35); font-family: var(--mono); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; color: var(--flame); }
.ns-date::before { content: ""; width: 1rem; height: 1rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23feb628' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat; }
