/* Newry Maritime Association. Colours taken from the logo: navy hull, banner blue, rope gold, lavender sky. */
:root {
  --navy: #0f1a33; --blue: #2f62d0; --gold: #ecb92f; --lav: #dcdbf7; --tint: #f3f3fb;
  --ink: #18223a; --soft: #5b6680; --line: #e1e3ee; --r: 18px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(18px, 4vw, 56px); --max: 1280px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 1.0625rem/1.7 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2 { font-weight: 800; line-height: 1.08; letter-spacing: -.025em; margin: 0; color: var(--navy); text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 99; }
.meta { font-size: .95rem; font-weight: 500; color: var(--soft); }
.wrap, .band, .toolbar, .finder, .single, .intro { margin-inline: auto; max-width: var(--max); padding-inline: var(--gut); }
.empty { max-width: 46rem; margin: 3rem auto 5rem; padding-inline: var(--gut); text-align: center; }

.btn { display: inline-block; font: 700 1rem/1 var(--font); padding: 1em 1.7em; border: 2px solid var(--navy); background: var(--navy); color: #fff;
  text-decoration: none; cursor: pointer; border-radius: 999px; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn-quiet { background: transparent; color: var(--navy); }

/* masthead: logo in the middle, three links either side, sits over the banner */
.masthead { position: fixed; inset: 0 0 auto 0; z-index: 20; padding: 1.1rem var(--gut); transition: background .3s, padding .3s, box-shadow .3s;
  background: linear-gradient(rgba(10,17,36,.72), rgba(10,17,36,0)); }
#nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(1rem, 3vw, 3rem); max-width: var(--max); margin: 0 auto; }
.nav-side { display: flex; gap: clamp(1.2rem, 3vw, 3rem); }
.nav-l { justify-content: flex-end; }
.nav-side a { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.02rem; padding: .5rem 0; border-bottom: 3px solid transparent; }
.nav-side a:hover, .nav-side a[aria-current] { border-color: var(--gold); }
.brand img { width: clamp(150px, 15vw, 210px); transition: width .3s; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.masthead.is-stuck { background: rgba(15,26,51,.96); padding-block: .45rem; box-shadow: 0 6px 24px rgba(10,17,36,.25); }
.masthead.is-stuck .brand img { width: 92px; filter: none; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .masthead { padding-block: .7rem; }
  #nav { grid-template-columns: 1fr; justify-items: center; gap: 0; }
  .brand img { width: 128px; } .masthead.is-stuck .brand img { width: 78px; }
  .nav-side { display: none; }
  .menu-btn { display: grid; gap: 5px; position: absolute; right: var(--gut); top: 1.1rem; z-index: 2; background: rgba(15,26,51,.55); border: 0; border-radius: 12px; padding: 13px 11px; cursor: pointer; }
  .menu-btn span { display: block; width: 24px; height: 2.5px; background: #fff; border-radius: 2px; }
  .menu-btn b { position: absolute; left: -999px; }
  .masthead.is-open { background: var(--navy); bottom: 0; overflow: auto; }
  .masthead.is-open #nav { padding-bottom: 3rem; }
  .masthead.is-open .nav-side { display: flex; flex-direction: column; align-items: center; gap: .2rem; margin-top: 1rem; }
  .masthead.is-open .nav-l { order: 2; } .masthead.is-open .nav-r { order: 3; margin-top: .2rem; }
  .masthead.is-open .nav-side a { font-size: 1.6rem; font-weight: 800; padding: .55rem 0; }
}

/* home: full-screen slides */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; background: var(--navy); overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s, visibility 1s; }
.slide.is-on { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after, .banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(10,17,36,.5), rgba(10,17,36,.3) 45%, rgba(10,17,36,.78)); }
.slide-text { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: clamp(190px, 26vh, 260px) clamp(60px, 9vw, 140px) 110px; color: #fff; }
.slide-h { color: #fff; font-size: clamp(2.4rem, 6.2vw, 5.2rem); max-width: 16ch; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.slide-text p { font-size: clamp(1.05rem, 1.7vw, 1.35rem); max-width: 36em; margin: 1.2rem 0 1.8rem; font-weight: 500; }
.hero-arrow { position: absolute; z-index: 2; top: 50%; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); background: rgba(15,26,51,.25);
  color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; padding: 0 0 4px; }
.hero-arrow:hover { background: #fff; color: var(--navy); }
.hero-arrow.is-prev { left: clamp(10px, 2vw, 32px); } .hero-arrow.is-next { right: clamp(10px, 2vw, 32px); }
.hero-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 34px; display: flex; justify-content: center; gap: 10px; }
.hero-dots button { width: 34px; height: 6px; border-radius: 3px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; }
.hero-dots button[aria-current] { background: var(--gold); }
@media (max-width: 700px) { .hero-arrow { top: auto; bottom: 62px; margin: 0; width: 44px; height: 44px; } .slide-text { padding-inline: 22px; padding-bottom: 130px; } }
@media (prefers-reduced-motion: reduce) { .slide, .masthead, .brand img { transition: none; } html { scroll-behavior: auto; } }

/* inner pages: full-width banner */
.banner { position: relative; min-height: clamp(440px, 62vh, 640px); display: flex; align-items: flex-end; justify-content: center; background: var(--navy); overflow: hidden; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-in { position: relative; z-index: 1; text-align: center; color: #fff; padding: 250px var(--gut) clamp(2.6rem, 6vw, 4.4rem); max-width: 1000px; }
.banner h1 { color: #fff; font-size: clamp(2.3rem, 5.6vw, 4.6rem); text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.banner p { margin: 1rem auto 0; max-width: 40em; font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 500; }
.crumb { display: inline-block; margin-bottom: 1rem; color: var(--navy); background: var(--gold); font-weight: 700; font-size: .9rem; text-decoration: none; padding: .45em 1.1em; border-radius: 999px; }
.crumb:hover { background: #fff; color: var(--navy); }
@media (max-width: 900px) { .banner-in { padding-top: 170px; } }

/* search */
.search-band { background: var(--lav); padding: clamp(2.4rem, 5vw, 3.6rem) var(--gut); text-align: center; }
.search-band h2 { margin-bottom: 1.3rem; }
.pill-search { display: flex; gap: .5rem; max-width: 760px; margin: 0 auto; background: #fff; border-radius: 999px; padding: .45rem; box-shadow: 0 12px 40px rgba(15,26,51,.14); border: 1px solid var(--line); }
.pill-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 1.1rem var(--font); color: var(--ink); padding: .6rem 1.2rem; border-radius: 999px; }
.pill-search input:focus { outline: none; } .pill-search:focus-within { outline: 3px solid var(--gold); }
select { font: 500 1rem var(--font); color: var(--ink); padding: .65rem .9rem; border: 1px solid #c4c8d8; border-radius: 12px; background: #fff; min-width: 0; }

/* sections */
.band { padding-block: clamp(3.2rem, 7vw, 6rem); }
.band.is-tint { max-width: none; background: var(--tint); }
.band.is-tint > * { max-width: calc(var(--max) - 2 * var(--gut)); margin-inline: auto; }
.band-title { text-align: center; margin-bottom: clamp(1.8rem, 4vw, 3rem) !important; }
.band-title::after { content: ""; display: block; width: 64px; height: 5px; border-radius: 3px; background: var(--gold); margin: 1rem auto 0; }
.band-more { text-align: center; margin: clamp(2rem, 4vw, 3rem) 0 0; }
.intro { max-width: 46rem; text-align: center; padding-top: clamp(2.4rem, 5vw, 4rem); font-size: 1.1rem; }
.prose { max-width: 44rem; margin-inline: auto; font-size: 1.1rem; }
.about-band { position: relative; background: var(--navy); color: #e3e7f3; text-align: center; padding: clamp(5rem, 12vw, 9rem) var(--gut); overflow: hidden; }
.about-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-band::after { content: ""; position: absolute; inset: 0; background: rgba(10,17,36,.72); }
.about-in { position: relative; z-index: 1; }
.about-band h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 18ch; margin: 0 auto 1.4rem; }
.about-band p { max-width: 44rem; margin: 0 auto 2rem; font-size: 1.1rem; font-weight: 500; }

/* albums */
.albums { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.2rem, 2.4vw, 2rem); }
.albums.wrap { padding-bottom: clamp(3rem, 7vw, 6rem); }
.album { position: relative; display: block; flex: 1 1 320px; max-width: 420px; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy); color: #fff; text-decoration: none; }
.album-img, .album-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.album-img img { transition: transform .5s; }
.album:hover .album-img img { transform: scale(1.05); }
.album::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(10,17,36,.9)); }
.album-title, .album .meta { position: absolute; z-index: 1; left: 1.3rem; right: 1.3rem; }
.album-title { bottom: 2.9rem; font-weight: 800; font-size: 1.4rem; line-height: 1.15; letter-spacing: -.02em; color: #fff; }
.album .meta { bottom: 1.2rem; color: #d5daea; }
.album:hover { color: #fff; }

/* events */
.events { display: grid; gap: 1rem; max-width: 60rem; margin-inline: auto; }
.event { display: grid; grid-template-columns: 5.6rem 1fr; gap: 1.4rem; padding: 1.2rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); align-items: center; transition: box-shadow .2s, border-color .2s; }
.event:hover { box-shadow: 0 14px 40px rgba(15,26,51,.12); border-color: transparent; color: var(--ink); }
.event-date { background: var(--navy); color: #fff; text-align: center; padding: .8rem .2rem; border-radius: 14px; }
.event-day { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1; }
.event-mon { display: block; font-size: .85rem; font-weight: 600; color: var(--gold); margin-top: .25rem; }
.event-body { display: grid; gap: .2rem; }
.event-title { font-weight: 800; font-size: 1.35rem; line-height: 1.2; letter-spacing: -.02em; color: var(--navy); }
.event-sum { margin-top: .2rem; font-size: 1rem; line-height: 1.55; }
.event.is-past .event-date { background: var(--lav); color: var(--navy); }
.event.is-past .event-mon { color: var(--navy); }
.event.is-past .event-day { font-size: 1.7rem; }
.event.is-past .event-title { font-size: 1.15rem; }
@media (max-width: 520px) { .event { grid-template-columns: 4.4rem 1fr; gap: .9rem; padding: .9rem; } }

/* history articles */
.posts { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.4rem, 2.6vw, 2.2rem); }
.post { flex: 1 1 320px; max-width: 420px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.post:hover { box-shadow: 0 16px 44px rgba(15,26,51,.14); transform: translateY(-3px); color: var(--ink); }
.post-img { display: block; aspect-ratio: 16 / 10; background: var(--navy) url(img/logo.png) center / 46% no-repeat; }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-body { display: flex; flex-direction: column; gap: .45rem; padding: 1.3rem 1.4rem 1.5rem; flex: 1; }
.post-title { font-weight: 800; font-size: 1.35rem; line-height: 1.2; letter-spacing: -.02em; color: var(--navy); }
.post-sum { font-size: .98rem; line-height: 1.55; }
.post-go { margin-top: auto; padding-top: .6rem; font-weight: 700; color: var(--blue); }
.lede { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.5; font-weight: 600; color: var(--navy); max-width: 44rem; margin: 0 auto 2rem; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 2.2rem 0 .8rem; }

/* documents */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 210px), 1fr)); gap: clamp(1.2rem, 3vw, 2.2rem); }
.doc { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.doc-face { aspect-ratio: 3 / 4; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(15,26,51,.1); transition: transform .25s; }
.doc:hover .doc-face { transform: translateY(-4px); }
.doc-face img { width: 100%; height: 100%; object-fit: cover; }
.doc-face.is-blank, .result-img.is-blank { display: flex; flex-direction: column; justify-content: space-between; padding: 1.2rem; background: var(--lav); border: 0; }
.doc-kind { font-weight: 800; font-size: 1.5rem; line-height: 1.1; color: var(--navy); }
.doc-ext { font-weight: 700; font-size: .85rem; color: var(--blue); }
.doc-title { font-weight: 700; font-size: 1.1rem; line-height: 1.25; color: var(--navy); margin-top: .9rem; }

/* gallery toolbar, archive finder */
.toolbar { display: flex; flex-direction: column; gap: 1rem; align-items: center; padding-block: clamp(2rem, 4vw, 3rem) clamp(1.6rem, 3vw, 2.4rem); }
.marks, .sorter, .draught { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.marks a, .sorter a, .draught a { font-weight: 700; font-size: .98rem; padding: .6em 1.2em; text-decoration: none; color: var(--navy); border-radius: 999px; background: var(--tint); }
.marks a:hover, .sorter a:hover, .draught a:hover { background: var(--lav); }
.marks a[aria-current], .draught a[aria-current] { background: var(--navy); color: #fff; }
.sorter a { background: transparent; color: var(--soft); font-size: .92rem; padding: .3em .8em; }
.sorter a[aria-current] { color: var(--navy); background: transparent; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.finder { margin-top: -2.2rem; position: relative; z-index: 2; }
.finder .pill-search { max-width: 820px; }
.finder-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 1rem; margin: 1.6rem 0 1.4rem; }
.finder-row label { font-size: .85rem; font-weight: 700; color: var(--soft); display: grid; gap: .25rem; text-align: left; }
.finder-row select { max-width: 15rem; }
.draught { padding: 0 var(--gut); }
.count { font-weight: 700; padding-block: 2rem 1.2rem; margin-bottom: 0; display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 240px), 1fr)); gap: clamp(1.4rem, 3vw, 2.2rem) clamp(1rem, 2vw, 1.8rem); padding-bottom: 3rem; }
.result { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); min-width: 0; }
.result-img { aspect-ratio: 4 / 3; background: var(--navy); overflow: hidden; border-radius: 14px; }
.result-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.result:hover .result-img img { transform: scale(1.05); }
.result-img.is-blank { font-weight: 800; font-size: 1.4rem; line-height: 1; color: var(--navy); }
.result.is-event .result-img.is-blank { background: var(--navy); color: var(--gold); }
.result-kind { font-size: .8rem; font-weight: 700; color: var(--blue); margin-top: .8rem; }
.result-title { font-weight: 700; font-size: 1.08rem; line-height: 1.25; color: var(--navy); overflow-wrap: anywhere; }
.result-snip { font-size: .9rem; line-height: 1.5; margin-top: .35rem; color: var(--soft); overflow-wrap: anywhere; }
mark { background: #f8e3a0; color: inherit; padding: 0 .15em; border-radius: 3px; }
.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; padding-bottom: 5rem; font-weight: 700; }

/* album photos: rows of equal height */
.photos { display: flex; flex-wrap: wrap; gap: 10px; padding-block: clamp(2rem, 4vw, 3.4rem) clamp(3rem, 7vw, 6rem); }
.photos::after { content: ""; flex-grow: 999; }
.photo { position: relative; flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * 270px); background: var(--navy); overflow: hidden; border-radius: 12px; }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--r); transition: transform .4s; }
.photo:hover img { transform: scale(1.04); }
.photo-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .7rem; color: #fff; font-size: .9rem; font-weight: 500; line-height: 1.35; background: linear-gradient(transparent, rgba(10,17,36,.88)); opacity: 0; transition: opacity .2s; }
.photo:hover .photo-cap, .photo:focus-visible .photo-cap { opacity: 1; }
@media (hover: none) { .photo-cap { opacity: 1; } }

.lb { position: fixed; inset: 0; z-index: 50; background: rgba(8,13,28,.97); display: grid; grid-template-rows: 1fr auto; color: #fff; }
.lb[hidden] { display: none; }
.lb-stage { min-height: 0; display: flex; align-items: center; justify-content: center; padding: 4rem 4.4rem 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-info { padding: 1rem 1.2rem 1.4rem; text-align: center; }
.lb-info p { margin: 0 auto; max-width: 70ch; }
.lb-info .meta { color: #aab3c8; }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; font-size: 1.8rem; line-height: 1; width: 52px; height: 52px; border-radius: 50%; padding: 0 0 4px; }
.lb button:hover { background: var(--gold); color: var(--navy); }
.lb-x { top: .8rem; right: .8rem; } .lb-p { left: .8rem; top: 46%; } .lb-n { right: .8rem; top: 46%; }
@media (max-width: 600px) { .lb-stage { padding-inline: .5rem; } .lb-p, .lb-n { top: auto; bottom: 5.6rem; } }

/* single pages */
.single { max-width: 60rem; padding-block: clamp(2.6rem, 6vw, 4.6rem) clamp(3.5rem, 8vw, 6rem); }
.single .band-title { margin-top: 3.5rem; }
.single > p { text-align: center; }
.single-img { margin: 2rem auto; border-radius: var(--r); }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 0 0 2rem; }
.facts div { background: var(--tint); border-radius: var(--r); padding: 1.1rem 1.6rem; text-align: center; min-width: 11rem; }
.facts dt { font-size: .8rem; font-weight: 700; color: var(--blue); }
.facts dd { margin: .15rem 0 0; font-weight: 800; font-size: 1.15rem; line-height: 1.3; color: var(--navy); }
.facts dd a { overflow-wrap: anywhere; }
.prose + .facts { margin-top: 2.4rem; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin: 2rem 0; }
.pdf { width: 100%; height: 85vh; border: 1px solid var(--line); border-radius: var(--r); background: #fff; margin-top: 1rem; }

.foot { background: var(--navy); color: #c3cadc; text-align: center; padding: clamp(3rem, 7vw, 5rem) var(--gut) 2rem; font-size: .98rem; }
.about-band + .foot, main:has(.about-band:last-child) + .foot { border-top: 1px solid rgba(255,255,255,.12); }
.foot a { color: #fff; }
.foot-logo { width: clamp(170px, 20vw, 250px); margin: 0 auto 1.5rem; }
.foot-note { max-width: 40rem; margin: 0 auto 1.8rem; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; margin-bottom: 1.8rem; }
.foot-nav a { font-weight: 700; text-decoration: none; }
.foot-nav a:hover { color: var(--gold); }
.foot-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem; margin-bottom: 2.2rem; overflow-wrap: anywhere; }
.foot-legal { font-size: .85rem; color: #8892ad; margin: 0; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); }
.foot-legal a { color: #8892ad; margin-left: 1rem; }

.docs.is-centred { display: flex; flex-wrap: wrap; justify-content: center; } .docs.is-centred .doc { width: 210px; }
.result.is-document .result-img { aspect-ratio: 3 / 4; box-shadow: 0 10px 30px rgba(15,26,51,.12); }
.result.is-document .result-img img, .doc-face img { object-position: top; }
