.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.na-hero {
  position: relative;
  height: min(50vh, 480px);
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 48px 0;
  background: #0b2a4a;
}

.na-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.na-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 42, 74, 0.15), rgba(11, 42, 74, 0.55));
}

.na-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.na-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 5.5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.na-crumb {
  background: var(--bg-soft);
}

.na-crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 14px 0;
  list-style: none;
  font-size: 14px;
  color: var(--soft);
}

.na-crumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--line);
}

.na-crumb a {
  color: var(--blue);
}

.na-crumb a:hover {
  text-decoration: underline;
}

.na-crumb [aria-current="page"] {
  color: var(--muted);
}

.na-list {
  padding: 40px 0 88px;
}

.na-filters {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  width: min(640px, 100%);
  margin: 28px auto 0;
  text-align: left;
}

.na-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.na-field:has(.na-search) {
  flex: 3 1 0;
}

.na-field:has(.na-year) {
  flex: 0 0 156px;
  width: 156px;
}

.na-hero .na-field > span:first-child {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.na-field span {
  font-size: 14px;
  font-weight: 500;
  color: var(--soft);
}

.na-search {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}

.na-search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 4px 0 18px;
  border: 0;
  background: transparent;
  font-family: var(--text);
  font-size: 16px;
  color: var(--ink);
}

.na-search input:focus {
  outline: none;
}

.na-search:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.na-search button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
  font-size: 15px;
}

.na-year {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 36px 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235f6368' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E") no-repeat right 16px center;
  appearance: none;
  font-family: var(--text);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.na-year:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.na-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.na-card[hidden] {
  display: none;
}

.na-card a {
  display: block;
  color: var(--ink);
  background: #f8f9fa;
  padding: 20px 20px;
  border-radius: 16px;
}

.na-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  background: #e8eaed;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.na-card a:hover img {
  transform: scale(1.03);
}

.na-card time {
  display: block;
  margin: 16px 0 10px;
  font-size: 13px;
  color: var(--soft);
}

.na-card h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.na-card .text-link {
  font-size: 14px;
}

.na-empty {
  margin: 28px 0 0;
  font-size: 16px;
  color: var(--muted);
}

.na-empty[hidden] {
  display: none;
}

.na-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.na-pages a,
.na-pages span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.na-pages .is-current {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.na-pages a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.na-pages .is-gap {
  border: 0;
  min-width: 24px;
  color: var(--soft);
}

@media (max-width: 980px) {
  .na-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

@media (max-width: 479px) {
  .na-hero {
    height: auto;
    min-height: min(50vh, 480px);
  }

  .na-hero h1 {
    font-size: 36px;
  }

  .na-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .na-field:has(.na-search) {
    flex: none;
    width: 100%;
  }

  .na-field:has(.na-year) {
    align-self: center;
  }
}

.nd-article {
  padding: 28px 0 88px;
}

.nd-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.nd-side img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

.nd-side h2,
.nd-side .nd-article-title {
  margin: 20px 0 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 22px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 32px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.nd-side time {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--soft);
}

.nd-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.nd-copy {
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.nd-copy p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

.nd-copy p:last-child {
  margin-bottom: 0;
}

.nd-copy strong {
  font-weight: 500;
  color: var(--ink);
}

/* CMS-owned: undo the global green heading-accent `em`; must match the CMS preview. */
.nd-copy em {
  font-style: italic;
  color: inherit;
}

/* CMS-owned: an empty <p></p> (Enter twice) is one blank line. */
.nd-copy p:empty {
  min-height: 1.7em; /* fallback for 1lh */
  min-height: 1lh;
}

.nd-copy sup {
  font-size: 0.7em;
}

@media (max-width: 800px) {
  .nd-layout {
    grid-template-columns: 1fr;
  }

  .nd-foot-row {
    flex-wrap: wrap;
  }
}

@property --nd-title-scale {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}

.nd-side {
  --nd-compact: 0;
  position: sticky;
  top: calc(var(--header) + 24px);
}

@media (min-width: 801px) {
  .nd-side img {
    width: calc(100% - (100% - 320px) * var(--nd-compact));
    transition: width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .nd-side h2,
.nd-side .nd-article-title {
    margin-top: calc(20px - 8px * var(--nd-compact));
    font-size: calc(22px - 0px * var(--nd-compact));
    line-height: calc(32px - 0px * var(--nd-compact));
    --nd-title-scale: calc(1 - 0.1 * var(--nd-compact));
    transform: scale(var(--nd-title-scale));
    transform-origin: top left;
    transition: margin-top 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), font-size 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), line-height 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), --nd-title-scale 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
}

.nd-gallery-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 16px 16px 16px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nd-gallery-btn:hover {
  background: var(--blue-hover);
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.28);
}

.nd-gallery-btn i {
  font-size: 15px;
}

@media (max-width: 800px) {
  .nd-side {
    position: static;
  }

  .nd-side img {
    width: calc(100% + 40px);
    max-width: none;
    margin-left: -20px;
    border-radius: 0;
  }

  .nd-article {
    position: relative;
  }

  .nd-gallery-btn {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 40;
    margin-top: 0;
    transform: translateX(-50%);
  }

  .nd-gallery-btn.is-docked {
    position: fixed;
  }
}

.nd-foot {
  margin-top: 56px;
}

.nd-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid #e6e8eb;
}

.nd-share {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gulf-navy);
  font-size: 15px;
  font-weight: 500;
}

.nd-share a,
.nd-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f4;
  color: var(--gulf-navy);
  font-size: 14px;
  cursor: pointer;
}

.nd-share a:hover,
.nd-copy-btn:hover {
  background: #e8eaed;
}

.nd-viewall {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 12px 16px 12px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  min-width: 106px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nd-viewall:hover {
  background: var(--blue-hover);
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.28);
}

.nd-modal:not([open]) {
  display: none;
}

.nd-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.nd-modal::backdrop {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.nd-modal.is-open::backdrop {
  opacity: 1;
}

.nd-sheet {
  position: relative;
  width: min(1200px, 94%);
  max-height: 80vh;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(110%);
  transition: transform 0.35s ease;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.nd-modal.is-open .nd-sheet {
  transform: translateY(0);
}

.nd-modal-bar {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 18px 72px 8px 24px;
  background: #fff;
}

.nd-modal-bar h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 500;
  color: var(--gulf-navy);
}

.nd-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 42, 74, 0.08);
  color: var(--gulf-navy);
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.35s ease;
}

.nd-modal-close:hover {
  transform: rotate(90deg);
}

.nd-modal-body {
  min-height: 0;
  max-height: 100%;
  padding: 16px 24px 28px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

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

.nd-gallery-card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 14px 30px rgba(8, 25, 61, 0.08);
  cursor: pointer;
}

.nd-gallery-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
}

.nd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.95);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.nd-lightbox.is-open {
  opacity: 1;
}

.nd-lightbox[hidden] {
  display: none;
}

.nd-lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1100px, calc(100% - 128px));
  height: calc(100% - 96px);
  touch-action: none;
}

.nd-lightbox-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  opacity: 0;
  transform: scale(0.96);
  transition: transform 0.42s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.42s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.nd-lightbox.is-open .nd-lightbox-image {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.nd-lightbox.is-open .nd-lightbox-image.is-leave-next {
  opacity: 0;
  transform: translateX(-64px) scale(1);
}

.nd-lightbox.is-open .nd-lightbox-image.is-leave-prev {
  opacity: 0;
  transform: translateX(64px) scale(1);
}

.nd-lightbox.is-open .nd-lightbox-image.is-enter-next,
.nd-lightbox.is-open .nd-lightbox-image.is-enter-prev,
.nd-lightbox-image.is-dragging {
  transition: none;
}

.nd-lightbox.is-open .nd-lightbox-image.is-enter-next {
  opacity: 0;
  transform: translateX(64px) scale(1);
}

.nd-lightbox.is-open .nd-lightbox-image.is-enter-prev {
  opacity: 0;
  transform: translateX(-64px) scale(1);
}

.nd-lightbox-close,
.nd-lightbox-nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.nd-lightbox-close:hover,
.nd-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.nd-lightbox-close {
  top: 18px;
  right: 18px;
  z-index: 2;
  transition: transform 0.35s ease;
}

.nd-lightbox-close:hover {
  transform: rotate(90deg);
}

.nd-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.nd-lightbox-prev {
  left: 18px;
}

.nd-lightbox-next {
  right: 18px;
}

.nd-lightbox-count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
}

@media (max-width: 900px) {
  .nd-modal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 675px) {
  .nd-sheet {
    width: 100%;
    max-height: min(92vh, 100%);
  }

  .nd-modal-grid {
    grid-template-columns: 1fr;
  }

  .nd-modal-bar {
    padding: 16px 64px 8px 16px;
  }

  .nd-modal-bar h2 {
    font-size: 24px;
  }

  .nd-modal-body {
    padding: 12px 16px calc(24px + env(safe-area-inset-bottom));
  }

  .nd-gallery-card img {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .nd-lightbox-stage {
    width: calc(100% - 24px);
    height: calc(100% - 120px);
  }

  .nd-lightbox-close,
  .nd-lightbox-nav {
    width: 38px;
    height: 38px;
  }

  .nd-lightbox-prev {
    left: 10px;
  }

  .nd-lightbox-next {
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .nd-sheet,
  .nd-modal::backdrop,
  .nd-modal-close,
  .nd-lightbox,
  .nd-lightbox-image,
  .nd-lightbox-close {
    transition: none;
  }
}

/* CMS article body (sanitized rich text). Inline styles from the editor (alignment, colour,
   highlight, image width/alignment, the flex "2 images side by side" row) are kept and do the
   layout; these rules only supply the site's typography. Images without a width keep their
   natural size, as in the CMS preview. */
.nd-copy h2,
.nd-copy h3 {
  margin: 28px 0 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}

.nd-copy h2 {
  font-size: 26px;
}

.nd-copy h3 {
  font-size: 21px;
}

.nd-copy ul,
.nd-copy ol {
  margin: 0 0 18px;
  padding-left: 1.5em;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

/* Indented list items (the editor's indent nests a list inside an li). */
.nd-copy li > ul,
.nd-copy li > ol {
  margin-bottom: 0;
}

.nd-copy a {
  color: var(--blue);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.nd-copy img {
  max-width: 100%;
  height: auto;
  margin-block: 8px 18px;
  border-radius: 8px;
}

.nd-extra {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 16px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
}

.nd-extra dt {
  font-weight: 500;
  color: var(--ink);
}

.nd-extra dd {
  margin: 0;
  min-width: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.nd-extra a {
  color: var(--blue);
}

.nd-attachment {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.nd-attachment-meta {
  color: var(--soft);
}

.nd-reference-text {
  white-space: pre-line;
}

.nd-missing {
  padding: 140px 0 96px;
}

.nd-missing h1 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
}

.nd-missing p {
  margin: 0 0 28px;
  font-size: 17px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .nd-extra {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .nd-extra dd + dt {
    margin-top: 10px;
  }
}
