/* NK Swim colours, on top of the Massively template (main.css).
   Blue #1a7fc4 and yellow #fdcb2f are read from the NK logo; the template's dark slate is
   the logo blue (fills, headings) or ink #1f2937 (body text, text on yellow). main.css had its own colours
   swapped for these (main.original.css is the untouched template). */
:root { --nk-blue: #1a7fc4; --nk-yellow: #fdcb2f; --nk-ink: #1f2937; }

/* Primary buttons: yellow with navy text; blue on hover. */
input[type="submit"].primary, input[type="reset"].primary, input[type="button"].primary,
button.primary, .button.primary,
#intro input[type="submit"].primary, #intro button.primary, #intro .button.primary {
  background-color: var(--nk-yellow);
  box-shadow: none;
  color: var(--nk-ink) !important;
}
input[type="submit"].primary:hover, input[type="reset"].primary:hover, input[type="button"].primary:hover,
button.primary:hover, .button.primary:hover,
#intro input[type="submit"].primary:hover, #intro button.primary:hover, #intro .button.primary:hover {
  background-color: var(--nk-blue);
  color: #ffffff !important;
}

/* The selected page in the menu: a yellow tab. */
#nav ul.links li.active { background-color: var(--nk-yellow); }
#nav ul.links li.active a { color: var(--nk-ink); }
#nav ul.links li.active a:hover { color: var(--nk-ink) !important; }
/* White menu text on the logo blue (~4.3:1): a soft dark shadow lifts it past AA. */
#nav ul.links li:not(.active) a, #nav ul.icons a { text-shadow: 0 1px 2px rgba(17, 24, 39, 0.45); }

/* Background: clear pool water (images/bg-water.jpg), with a light navy wash at the top so the white
   title and menu stay readable, fading out so the water shows. Teal underneath for long pages. */
#wrapper > .bg {
  background-color: #0b6f86;
  background-image: url("../../images/overlay.png"),
    /* Dark navy at the very top of the page, easing to fully clear one screen down. Stops are in vh
       so the fade is a screen tall however long the page gets. */
    linear-gradient(180deg, rgba(26, 127, 196, 0.92) 0, rgba(26, 127, 196, 0.7) 18vh, rgba(26, 127, 196, 0.4) 45vh, rgba(26, 127, 196, 0.15) 75vh, rgba(26, 127, 196, 0) 100vh),
    url("../../images/bg-water.jpg");
  background-size: auto, auto, cover;
  background-position: center, center, top center;
}

/* A yellow underline under section headings, like the logo's sun over the water. */
header.major h1, header.major h2 { border-bottom-color: var(--nk-yellow); }

/* The NK logo in white straight on the water (images/nk-logo-white*.png: the logo's shape, all
   white). No box; a soft shadow keeps it clear of the bright ripples. */
#intro .nk-logo {
  display: block; width: 10rem; max-width: 40vw; margin: 0 auto 2rem;
  filter: drop-shadow(0 4px 14px rgba(17, 24, 39, 0.55)) drop-shadow(0 1px 3px rgba(17, 24, 39, 0.5));
}
#header .logo { display: inline-flex; align-items: center; gap: 0.75rem; }
#header .logo img {
  height: 2.6rem; filter: drop-shadow(0 2px 6px rgba(17, 24, 39, 0.6));
}

/* Lesson cards: an icon in place of the template's photos. */
.nk-icon { display: block; font-size: 2.2rem; color: var(--nk-blue); margin-bottom: 0.75rem; }
.nk-icon:before { line-height: 1; }
h3 .nk-icon { display: inline-block; font-size: 1.1em; margin: 0 0.5rem 0 0; }
.posts article header h2 { line-height: 1.3; }

/* Placeholders still to fill in -- easy to spot. */
.nk-todo { background: #fff7d6; border-left: 4px solid var(--nk-yellow); padding: 0.5rem 0.9rem; color: #7a5d00; }
#footer .nk-todo { color: #7a5d00; }

/* Availability calendar (assets/js/availability.js draws it). */
.nk-legend { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; font-size: 0.8rem; margin: 0 0 1.25rem; }
.nk-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.nk-slot { display: inline-block; width: 1rem; height: 1rem; border-radius: 4px; }
.nk-slot.open { background: var(--nk-yellow); }
.nk-slot.few { background: #ffe9a8; box-shadow: inset 0 0 0 2px var(--nk-yellow); }
.nk-slot.booked { background: #e5e7eb; }
.nk-calendar { width: 100%; }
.nk-cal-head, .nk-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.5rem; }
.nk-cal-head div { text-align: center; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nk-blue); padding-bottom: 0.4rem; }
.nk-day { border: 2px solid #e5eef7; border-radius: 0.6rem; padding: 0.5rem; min-height: 9rem; background: #fbfdff; display: flex; flex-direction: column; gap: 0.3rem; }
.nk-day.nk-pad { border: none; background: none; }
.nk-day.nk-off { background: #f6f7f9; }
.nk-date { display: flex; align-items: baseline; gap: 0.3rem; border-bottom: 2px solid var(--nk-yellow); padding-bottom: 0.3rem; margin-bottom: 0.15rem; }
.nk-date b { font-size: 1.35rem; color: var(--nk-blue); line-height: 1; }
.nk-dow, .nk-mon { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: #6b7280; }
.nk-dow { display: none; }
.nk-count { margin-left: auto; font-size: 0.62rem; color: var(--nk-blue); font-weight: 700; }
.nk-none { font-size: 0.7rem; color: #9ca3af; font-style: italic; margin-top: 0.3rem; }
.nk-slot-row { display: grid; grid-template-columns: auto 1fr; column-gap: 0.4rem; align-items: center; border-radius: 0.4rem; padding: 0.25rem 0.4rem; font-size: 0.66rem; line-height: 1.25; border-bottom: none !important; text-decoration: none; }
.nk-slot-row .nk-time { font-weight: 800; white-space: nowrap; }
.nk-slot-row .nk-what { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nk-slot-row .nk-st { grid-column: 1 / -1; font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; }
a.nk-slot-row.open { background: var(--nk-yellow); color: var(--nk-ink) !important; }
a.nk-slot-row.few { background: #ffe9a8; color: var(--nk-ink) !important; box-shadow: inset 0 0 0 2px var(--nk-yellow); }
a.nk-slot-row:hover { background: var(--nk-blue); color: #ffffff !important; box-shadow: none; }
.nk-slot-row.booked { background: #eef0f3; color: #9ca3af; text-decoration: line-through; }
.nk-cal-note { text-align: center; font-size: 0.8rem; color: #6b7280; margin-top: 1.25rem; }
/* Phones: one day per row, weekday shown on the day itself. */
@media screen and (max-width: 736px) {
  .nk-cal-head { display: none; }
  .nk-cal-grid { grid-template-columns: 1fr; }
  .nk-day.nk-pad { display: none; }
  .nk-day { min-height: 0; }
  .nk-dow { display: inline; }
  .nk-slot-row { font-size: 0.8rem; grid-template-columns: auto 1fr auto; }
  .nk-slot-row .nk-st { grid-column: auto; }
}

/* Time slots are buttons now; undo Massively's big uppercase button look for them. */
button.nk-slot-row {
  width: 100%; height: auto; min-height: 0; line-height: 1.25; text-align: left; white-space: normal;
  text-transform: none; letter-spacing: normal; font-family: inherit; font-weight: 400;
  border: 0; cursor: pointer; transition: background-color 0.15s, color 0.15s;
}
button.nk-slot-row.open { background: var(--nk-yellow); color: var(--nk-ink) !important; box-shadow: none; }
button.nk-slot-row.few { background: #ffe9a8; color: var(--nk-ink) !important; box-shadow: inset 0 0 0 2px var(--nk-yellow); }
button.nk-slot-row:hover, button.nk-slot-row:focus-visible { background: var(--nk-blue) !important; color: #ffffff !important; box-shadow: none; }

/* Booking form. */
.nk-modal-bg { position: fixed; inset: 0; z-index: 10010; background: rgba(26, 127, 196, 0.55); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.nk-modal { position: relative; background: #ffffff; border-radius: 0.8rem; padding: 2rem 2rem 1rem; width: 100%; max-width: 34rem; max-height: 100%; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.35); border-top: 6px solid var(--nk-yellow); }
.nk-modal h3 { color: var(--nk-blue); margin-bottom: 0.5rem; }
.nk-modal .nk-m-slot { background: #f2f8fd; border-left: 4px solid var(--nk-blue); padding: 0.6rem 0.9rem; font-size: 0.9rem; margin-bottom: 1.25rem; }
.nk-modal .fields { gap: 0; }
.nk-modal .field { margin-bottom: 1rem; }
.nk-modal label { font-size: 0.7rem; margin-bottom: 0.4rem; }
.nk-modal .nk-m-err { color: #b91c1c; font-size: 0.85rem; min-height: 1.2em; margin: 0 0 0.5rem; }
.nk-modal .nk-ref { color: var(--nk-blue); letter-spacing: 0.05em; }
.nk-modal .nk-close { position: absolute; top: 0.4rem; right: 0.5rem; width: 2.75rem; height: 2.75rem; padding: 0; box-shadow: none; font-size: 1.6rem; line-height: 1; color: #6b7280 !important; background: none; }
.nk-modal .nk-close:hover { color: var(--nk-blue) !important; background: #f3f4f6; }
.nk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Booking form: full-width fields (Massively's .field.half sizing doesn't apply inside the modal). */
.nk-modal .fields { display: flex; flex-wrap: wrap; gap: 0 1rem; width: 100%; margin: 0; }
.nk-modal .field { width: 100%; padding: 0; margin: 0 0 1rem; }
.nk-modal .field.half { width: calc(50% - 0.5rem); }
.nk-modal input, .nk-modal textarea { width: 100%; }
@media screen and (max-width: 480px) { .nk-modal .field.half { width: 100%; } .nk-modal { padding: 1.5rem 1.25rem 0.75rem; } }

/* Photos page. */
.nk-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 2.5rem; }
.nk-photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 0.6rem; border-bottom: 0 !important; box-shadow: 0 6px 18px rgba(17, 24, 39, 0.18); }
.nk-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.nk-photo span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 0.9rem 0.7rem; font-size: 0.8rem; font-weight: 700; color: #ffffff; background: linear-gradient(transparent, rgba(17, 24, 39, 0.85)); }
.nk-photo:hover img, .nk-photo:focus-visible img { transform: scale(1.05); }
.nk-photo:focus-visible { outline: 3px solid var(--nk-yellow); outline-offset: 3px; }
@media screen and (max-width: 980px) { .nk-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media screen and (max-width: 480px) { .nk-gallery { grid-template-columns: 1fr; } }

/* Full-size viewer. */
.nk-lightbox { position: fixed; inset: 0; z-index: 10020; background: rgba(17, 24, 39, 0.94); display: flex; align-items: center; justify-content: center; }
.nk-lightbox figure { margin: 0; max-width: 92vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.nk-lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 0.4rem; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.nk-lightbox figcaption { color: #ffffff; margin-top: 0.8rem; font-size: 0.9rem; text-align: center; }
.nk-lightbox button { position: absolute; width: 3.25rem; height: 3.25rem; min-width: 0; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,0.12) !important; color: #ffffff !important; box-shadow: none; font-size: 2rem; line-height: 1; cursor: pointer; letter-spacing: 0; }
.nk-lightbox button:hover { background: var(--nk-yellow) !important; color: var(--nk-ink) !important; }
.nk-lb-close { top: 1rem; right: 1rem; }
.nk-lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.nk-lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Readable white text over the bright water. */
#intro h1, #intro p, #header .logo span { text-shadow: 0 2px 12px rgba(17, 24, 39, 0.75), 0 1px 3px rgba(17, 24, 39, 0.6); }
#intro p { font-weight: 600; }

/* November program: price cards. */
.nk-prices { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; margin: 0 0 2.5rem; }
.nk-price-card { flex: 0 1 15rem; text-align: center; background: #f2f8fd; border-radius: 0.8rem; padding: 1.25rem 1rem; border-top: 5px solid var(--nk-yellow); }
.nk-price-big { font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; font-weight: 900; font-size: 2.6rem; line-height: 1.1; color: var(--nk-blue); }
.nk-price-big small { font-size: 1rem; font-weight: 700; color: var(--nk-blue); }
.nk-price-what { font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; color: var(--nk-blue); margin-top: 0.35rem; }
.nk-price-sub { font-size: 0.8rem; color: #6b7280; }

/* Week 1 / Week 2 time slots, like the flyer. */
.nk-weeks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.nk-week { background: #eaf4fc; border-radius: 0.9rem; padding: 1.5rem 1.25rem 1.25rem; text-align: center; }
.nk-week-title { margin: 0; font-size: 1.6rem; color: var(--nk-blue); letter-spacing: 0.02em; }
.nk-week-dates { font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; color: var(--nk-blue); font-size: 0.95rem; margin: 0.15rem 0 0.35rem; }
.nk-week-sub { font-size: 0.75rem; color: #6b7280; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.nk-wslot { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0 0 0.6rem; padding: 0.85rem 1.1rem; min-height: 3.4rem; height: auto; border-radius: 999px; font-family: inherit; text-transform: none; letter-spacing: normal; line-height: 1.2; border: 0; box-shadow: none; }
.nk-wslot .nk-time { font-weight: 800; font-size: 1rem; }
.nk-wslot .nk-st { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
button.nk-wslot.open { background: var(--nk-yellow); color: var(--nk-ink) !important; cursor: pointer; }
button.nk-wslot.open:hover, button.nk-wslot.open:focus-visible { background: var(--nk-blue) !important; color: #ffffff !important; }
.nk-wslot.booked { background: #ffffff; color: #9ca3af; }
.nk-wslot.booked .nk-time { text-decoration: line-through; }
@media screen and (max-width: 736px) { .nk-weeks { grid-template-columns: 1fr; } }

/* Booking form: price line. */
.nk-modal .nk-m-small { font-size: 0.8rem; color: #6b7280; }
.nk-modal select { width: 100%; }
.nk-modal .nk-price { font-size: 1.6rem; font-weight: 900; color: var(--nk-blue); line-height: 2.75rem; }
.nk-modal .nk-price small { font-size: 0.8rem; font-weight: 600; color: #6b7280; }

/* The small label above section titles ("Weeks of November 2 – 6 & …"). Massively draws its side
   lines with a fixed gap sized for a short date, so longer text ran through them. Lay it out as a
   row instead: line, text, line -- the lines take whatever room the text leaves. */
header.major > .date { display: flex; align-items: center; gap: 1.25rem; text-align: center; }
header.major > .date:before, header.major > .date:after { position: static; flex: 1 1 2rem; width: auto; min-width: 2rem; }

/* Footer: only the contact details now (Register block removed) -- Location, Instagram and Email
   side by side across the full width on wider screens; stacked on phones as before. */
#footer { border-left: 0; }
#footer > section.split.contact { border-left: 0; }
@media screen and (min-width: 981px) {
  #footer > section.split.contact { flex-direction: row; }
  #footer > section.split.contact > section,
  #footer > section.split.contact > section:first-child,
  #footer > section.split.contact > section:last-child { flex: 1 1 0; padding: 3rem 2.5rem; border-top: 0; border-left: solid 2px #e2e2e2; flex-direction: column; }
  #footer > section.split.contact > section:first-child { border-left: 0; }
  #footer > section.split.contact > section > * { width: auto; }
  #footer > section.split.contact > section > :first-child { margin-bottom: 0.75rem; }
}

/* About the instructor: photo beside the text, stacked on phones. */
.nk-about { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 2.5rem; align-items: start; }
.nk-about-photo img { width: 100%; display: block; border-radius: 0.8rem; box-shadow: 0 10px 30px rgba(17, 24, 39, 0.2); border-bottom: 6px solid var(--nk-yellow); }
.nk-lead { font-size: 1.15rem; font-weight: 700; color: var(--nk-blue); font-style: normal; }
.nk-creds { list-style: none; padding: 0; margin: 1.5rem 0; }
.nk-creds li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.4rem 0; }
.nk-creds .icon { color: var(--nk-blue); width: 1.25rem; text-align: center; margin-top: 0.35rem; }
.nk-creds .nk-todo { flex: 1; padding: 0.3rem 0.7rem; font-size: 0.85rem; }
@media screen and (max-width: 736px) { .nk-about { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Lifesaving Society certification panel. */
.nk-lss { display: flex; gap: 1.5rem; align-items: flex-start; margin-top: 2.5rem; padding: 1.75rem 2rem; border-radius: 0.9rem; background: linear-gradient(135deg, #eaf4fc, #fff8db); border-left: 6px solid var(--nk-blue); }
.nk-lss-icon { flex: 0 0 4rem; height: 4rem; border-radius: 50%; background: #ffffff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(17, 24, 39, 0.15); }
.nk-lss-icon .icon { font-size: 2.2rem; color: #d62e2e; }
.nk-lss h3 { margin: 0.25rem 0 0.5rem; color: var(--nk-blue); }
.nk-lss p:last-child { margin-bottom: 0; }
@media screen and (max-width: 736px) { .nk-lss { flex-direction: column; padding: 1.5rem; } }
/* Juliette's photo: portrait crop, face toward the top. */
.nk-about-photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; }
.nk-facts .icon { color: var(--nk-yellow); text-shadow: 0 0 1px var(--nk-blue); }
.nk-facts li { font-size: 0.95rem; }

/* Small Admin link, top right -- the bookings page (password-protected). */
.nk-admin-link { position: absolute; top: 0.9rem; right: 1.1rem; z-index: 10002; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75) !important; border-bottom: 0 !important; padding: 0.35rem 0.6rem; border-radius: 0.4rem; text-shadow: 0 1px 3px rgba(17, 24, 39, 0.6); }
.nk-admin-link:hover { color: #ffffff !important; background: rgba(255, 255, 255, 0.18); }
.nk-admin-link .icon { font-size: 0.65rem; margin-right: 0.2rem; }

/* Sticky menu (wider screens; phones already keep Massively's fixed "Menu" button). The wrapper's
   overflow:hidden would stop position:sticky from working; overflow:clip clips the same but doesn't
   create a scroll box, so the menu can stick. Once stuck (nkswim.js adds .nk-stuck) the see-through
   white bar turns logo blue so it stays readable over the white content. */
@media screen and (min-width: 981px) {
  #wrapper { overflow: clip; }
  #nav { position: -webkit-sticky; position: sticky; top: 0; z-index: 10000; transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 1s ease, opacity 1s ease; }
  #nav.nk-stuck { background: rgba(26, 127, 196, 0.96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 6px 20px rgba(17, 24, 39, 0.3); }
  #nav.nk-stuck ul.links li.active { background-color: var(--nk-yellow); }
}

/* Phones/tablets: Massively's fixed "Menu" button sits top-right, so the Admin link moves top-left. */
@media screen and (max-width: 980px) {
  .nk-admin-link { right: auto; left: 0.9rem; top: 1rem; }
}

/* Booking confirmation. */
.nk-modal.nk-done-view { padding: 0 0 1.25rem; overflow: hidden; border-top: 0; text-align: center; }
.nk-done-head { position: relative; background: linear-gradient(135deg, var(--nk-blue), #4ea6e6); padding: 1.75rem 1rem 2.75rem; border-bottom: 5px solid var(--nk-yellow); }
.nk-done-head img { height: 5.5rem; filter: drop-shadow(0 3px 8px rgba(0,0,0,0.3)); }
.nk-done-check { position: absolute; left: 50%; bottom: -1.9rem; transform: translateX(-50%); width: 3.6rem; height: 3.6rem; line-height: 3.6rem; border-radius: 50%; background: #16a34a; color: #fff; font-size: 1.9rem; font-weight: 900; box-shadow: 0 0 0 5px #fff, 0 6px 16px rgba(0,0,0,0.25); animation: nk-pop 0.45s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes nk-pop { from { transform: translateX(-50%) scale(0); } to { transform: translateX(-50%) scale(1); } }
.nk-done-title { margin: 2.6rem 0 0.2rem; font-size: 1.6rem; color: var(--nk-blue); }
.nk-done-ref { font-size: 0.85rem; color: #6b7280; margin: 0 0 1rem; }
.nk-done-ref strong { color: var(--nk-blue); letter-spacing: 0.05em; }
.nk-done-card { margin: 0 1.5rem 1rem; background: #f2f8fd; border-radius: 0.7rem; padding: 0.5rem 1rem; text-align: left; }
.nk-done-card > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid #dce9f5; font-size: 0.9rem; }
.nk-done-card > div:last-child { border-bottom: 0; }
.nk-done-card span { color: #6b7280; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.06em; font-weight: 700; padding-top: 0.15rem; }
.nk-done-card b { color: var(--nk-ink); text-align: right; }
.nk-done-card small { display: block; font-weight: 400; color: #6b7280; font-size: 0.75rem; }
.nk-done-next { margin: 0 1.5rem 1rem; font-size: 0.85rem; line-height: 1.6; color: #374151; text-align: left; background: #fff8db; border-left: 4px solid var(--nk-yellow); padding: 0.7rem 0.9rem; border-radius: 0 0.5rem 0.5rem 0; }
.nk-done-view .nk-close { color: #ffffff !important; z-index: 2; }
.nk-done-view .nk-close:hover { background: rgba(255,255,255,0.15); }
.nk-done-view .nk-done-ref, .nk-done-view .nk-done-title { text-align: center; padding: 0 1.5rem; }

/* Lessons: three program cards in one row on wide screens, stacked below that */
#main > .posts.nk-three > article { width: 33.3333%; padding: 2.5rem 2rem; border-top-width: 0; border-left-width: 2px; }
#main > .posts.nk-three > article:first-child { border-left-width: 0; }
@media screen and (max-width: 980px) {
	#main > .posts.nk-three > article { width: 100%; padding: 2.5rem; border-left-width: 0; border-top-width: 2px; }
	#main > .posts.nk-three > article:first-child { border-top-width: 0; }
}
#main > .posts.nk-three > article p { text-align: center; }

/* About Swim for Life: tinted band under the program cards */
#main > .post.nk-sfl { padding: 2.5rem 4rem; text-align: center; background: #eef6fc; border-top: 2px solid #eeeeee; border-bottom: 4px solid var(--nk-yellow); }
#main > .post.nk-sfl h3 { color: var(--nk-blue); margin-bottom: 0.75rem; }
#main > .post.nk-sfl p { max-width: 42rem; margin: 0 auto; text-align: center; }
@media screen and (max-width: 736px) { #main > .post.nk-sfl { padding: 2rem; } }
.nk-signoff { font-weight: 700; color: var(--nk-blue); font-style: italic; }

/* Headings in Luckiest Guy (Google Fonts, loaded in main.css's @import). It has one weight, so 400
   avoids a smeared faux-bold, and its wide letters need less of the template's letter-spacing. */
h1, h2, h3, h4, h5, h6, #header .logo, .nk-price-big {
  font-family: "Luckiest Guy", "Source Sans Pro", Helvetica, sans-serif;
  font-weight: 400; letter-spacing: 0.04em;
}
h1, h2 { line-height: 1.15; }

/* Lifesaving Society seal (a JPEG on white): a white disc the same white as the image hides its square corners. */
.nk-lss-seal { flex: 0 0 6.5rem; height: 6.5rem; padding: 0.35rem; overflow: hidden; }
.nk-lss-seal img { width: 100%; height: 100%; display: block; object-fit: contain; }

/* Phones: the template stacks the intro at the bottom of its box (flex-end), which leaves the
   logo low on the screen. Centre it in a full-height screen instead. */
@media screen and (max-width: 736px) {
  #intro { justify-content: center; min-height: 100vh; min-height: 100svh; padding: 4.5rem 2rem 3rem; }
}

/* FAQ: each question is a <details> drop-down (native, no JS); the question stays an <h3>. */
.nk-faq { border-bottom: 1px solid #e5e7eb; }
.nk-faq:first-of-type { border-top: 1px solid #e5e7eb; }
.nk-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0.25rem; }
.nk-faq summary::-webkit-details-marker { display: none; }
.nk-faq summary h3 { margin: 0; font-size: 1.05rem; color: var(--nk-blue); }
.nk-faq summary::after { content: "+"; flex: 0 0 2rem; height: 2rem; line-height: 2rem; text-align: center; border-radius: 50%; background: var(--nk-yellow); color: #1f2937; font-weight: 700; font-size: 1.3rem; transition: transform 0.2s ease; }
.nk-faq[open] summary::after { transform: rotate(45deg); }
.nk-faq summary:hover h3 { text-decoration: underline; text-decoration-color: var(--nk-yellow); text-underline-offset: 0.25em; }
.nk-faq summary:focus-visible { outline: 2px solid var(--nk-blue); outline-offset: 2px; }
.nk-faq > p { padding: 0 3rem 1.25rem 0.25rem; margin: 0; }
#faq .nk-faq + .actions { margin-top: 2rem; }

/* Splash Dash buddy: the sticker fish hovers bottom-left and links to /game/ */
.nk-buddy { position: fixed; left: 18px; bottom: 14px; z-index: 10001; display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; border: 0; -webkit-tap-highlight-color: transparent; }
.nk-buddy img { width: 120px; height: auto; display: block; filter: drop-shadow(0 8px 10px rgba(0, 40, 80, 0.35)); animation: nk-buddy-hover 2.6s ease-in-out infinite; }
.nk-buddy-bubble { position: relative; margin: 0 0 8px 36px; background: #fff; color: var(--nk-ink, #1f2937); font-family: 'Luckiest Guy', sans-serif; font-size: 17px; line-height: 1.1; letter-spacing: 0.04em; padding: 10px 14px 6px; border-radius: 16px; border: 3px solid var(--nk-blue, #1a7fc4); box-shadow: 0 6px 14px rgba(0, 40, 80, 0.25); white-space: nowrap; transform-origin: 20px 100%; animation: nk-buddy-pop 0.5s 1.2s cubic-bezier(.3, 1.6, .5, 1) both; }
.nk-buddy-bubble::after { content: ''; position: absolute; left: 18px; bottom: -11px; width: 16px; height: 16px; background: #fff; border-right: 3px solid var(--nk-blue, #1a7fc4); border-bottom: 3px solid var(--nk-blue, #1a7fc4); transform: rotate(45deg) skew(8deg, 8deg); border-bottom-right-radius: 4px; }
.nk-buddy:hover .nk-buddy-bubble, .nk-buddy:focus-visible .nk-buddy-bubble { background: var(--nk-yellow, #fdcb2f); }
.nk-buddy:hover .nk-buddy-bubble::after, .nk-buddy:focus-visible .nk-buddy-bubble::after { background: var(--nk-yellow, #fdcb2f); }
.nk-buddy:focus-visible { outline: none; }
@keyframes nk-buddy-hover { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
@keyframes nk-buddy-pop { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }
@media screen and (max-width: 736px) { .nk-buddy { left: 10px; bottom: 8px; } .nk-buddy img { width: 84px; } .nk-buddy-bubble { font-size: 14px; margin-left: 22px; padding: 8px 11px 5px; } }
@media (prefers-reduced-motion: reduce) { .nk-buddy img, .nk-buddy-bubble { animation: none; } }
@media print { .nk-buddy { display: none; } }
/* Massively's nav bar sits along the bottom of the hero on wide screens -- float above it */
@media screen and (min-width: 981px) { .nk-buddy { bottom: 84px; } }
.nk-buddy { transition: opacity 0.6s ease; }
body.is-preload .nk-buddy { opacity: 0; }

/* Fish chat panel (assets/js/nk-buddy.js) -- opens above the hovering fish */
.nk-buddy.is-open .nk-buddy-bubble { visibility: hidden; }
.nk-chat { position: fixed; left: 18px; bottom: 140px; z-index: 10002; width: 340px; max-width: calc(100vw - 36px); height: 460px; max-height: calc(100vh - 170px); display: flex; flex-direction: column; background: #fff; color: var(--nk-ink); border: 3px solid var(--nk-blue); border-radius: 20px; box-shadow: 0 14px 40px rgba(0, 40, 80, 0.35); overflow: hidden; font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.4; animation: nk-buddy-pop 0.25s ease-out both; transform-origin: 30px 100%; }
.nk-chat[hidden] { display: none; }
@media screen and (min-width: 981px) { .nk-chat { bottom: 210px; max-height: calc(100vh - 240px); } }
.nk-chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--nk-blue); color: #fff; }
.nk-chat-head img { width: 54px; height: auto; }
.nk-chat-head div { flex: 1; display: flex; flex-direction: column; }
.nk-chat-head strong { font-family: "Luckiest Guy", sans-serif; font-weight: normal; font-size: 18px; letter-spacing: 0.04em; color: #fff; }
.nk-chat-head span { font-size: 13px; opacity: 0.85; }
.nk-chat .nk-chat-close { background: none; border: 0; box-shadow: none; color: #fff; font-size: 28px; line-height: 1; height: auto; padding: 0 4px; cursor: pointer; }
.nk-chat a.nk-chat-game { display: block; margin: 10px 12px 0; padding: 8px 12px 5px; text-align: center; background: var(--nk-yellow); color: var(--nk-ink); border: 0; border-radius: 12px; font-family: "Luckiest Guy", sans-serif; letter-spacing: 0.04em; text-decoration: none; }
.nk-chat-log { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.nk-msg { margin: 0; padding: 8px 12px; border-radius: 14px; max-width: 85%; white-space: pre-wrap; word-wrap: break-word; }
.nk-msg-assistant { align-self: flex-start; background: #e8f4fc; border-bottom-left-radius: 4px; }
.nk-msg-user { align-self: flex-end; background: var(--nk-blue); color: #fff; border-bottom-right-radius: 4px; }
.nk-typing i { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--nk-blue); opacity: 0.4; animation: nk-dot 1s infinite; }
.nk-typing i:nth-child(2) { animation-delay: 0.15s; } .nk-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes nk-dot { 50% { opacity: 1; transform: translateY(-3px); } }
.nk-chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; }
.nk-chat-chips[hidden] { display: none; }
.nk-chat .nk-chat-chips button { font: inherit; font-size: 14px; height: auto; line-height: 1.2; padding: 6px 10px; border-radius: 999px; border: 2px solid var(--nk-blue); background: #fff; color: var(--nk-blue); box-shadow: none; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 600; }
.nk-chat-form { display: flex; gap: 6px; padding: 8px 10px; border-top: 1px solid #dbe7f0; margin: 0; }
.nk-chat-form input[type="text"] { flex: 1; min-width: 0; height: 40px; font-size: 16px; padding: 0 12px; border: 2px solid #c9dbe8; border-radius: 12px; background: #fff; color: var(--nk-ink); }
.nk-chat .nk-chat-form button { width: 44px; height: 40px; padding: 0; line-height: 40px; border-radius: 12px; border: 0; background: var(--nk-blue); color: #fff; box-shadow: none; font-size: 18px; cursor: pointer; }
@media screen and (max-width: 736px) { .nk-chat { left: 10px; right: 10px; width: auto; max-width: none; bottom: 104px; height: 70vh; max-height: calc(100vh - 130px); } }
/* Massively styles every p/button on the page -- reset them inside the chat */
.nk-chat .nk-msg { font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 400; text-align: left; text-transform: none; letter-spacing: 0; line-height: 1.4; }
.nk-chat .nk-chat-form button { font-family: system-ui, -apple-system, sans-serif; color: #fff !important; text-indent: 0; overflow: visible; min-width: 44px; }
.nk-chat input[type="text"], .nk-chat .nk-chat-chips button { font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
/* "Send your question to Juliette" card inside the fish chat */
.nk-chat .nk-handoff { align-self: stretch; display: flex; flex-direction: column; gap: 6px; margin: 2px 0 4px; padding: 10px; background: #fff8dc; border: 2px dashed var(--nk-yellow); border-radius: 14px; }
.nk-chat .nk-handoff strong { font-family: "Luckiest Guy", sans-serif; font-weight: normal; font-size: 15px; letter-spacing: 0.04em; color: var(--nk-ink); }
.nk-chat .nk-handoff textarea, .nk-chat .nk-handoff input { width: 100%; box-sizing: border-box; font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 16px; padding: 7px 10px; height: auto; min-height: 0; border: 2px solid #e6d9a8; border-radius: 10px; background: #fff; color: var(--nk-ink); resize: vertical; }
.nk-chat .nk-handoff .nk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nk-chat .nk-handoff button { font-family: "Luckiest Guy", sans-serif; font-size: 15px; letter-spacing: 0.04em; height: auto; line-height: 1.2; padding: 9px 12px 6px; border: 0; border-radius: 10px; background: var(--nk-blue); color: #fff !important; box-shadow: none; cursor: pointer; text-transform: none; }
.nk-chat .nk-handoff button:disabled { opacity: 0.6; }
.nk-chat .nk-handoff-err { margin: 0; font-size: 14px; color: #b42318; min-height: 0; text-align: left; font-family: system-ui, -apple-system, sans-serif; }
.nk-chat .nk-handoff-err:empty { display: none; }
/* Splash Dash, played right on the homepage (the game page in an iframe; game/ hides its own chrome there) */
.nk-game-frame { position: relative; width: 100%; height: 520px; border-radius: 18px; overflow: hidden; border: 4px solid var(--nk-blue); background: #1f97d0; box-shadow: 0 10px 24px rgba(0, 40, 80, 0.18); }
.nk-game-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
@media screen and (max-width: 736px) { .nk-game-frame { height: 460px; border-width: 3px; border-radius: 14px; } }
/* "Splash Dash" with a little Goggles at the end of the top menu */
#nav ul.links li.nk-nav-game a { display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
#nav ul.links li.nk-nav-game img { width: 38px; height: auto; transition: transform 0.2s ease; }
#nav ul.links li.nk-nav-game a:hover img { transform: translateY(-3px) rotate(-8deg); }
#nav ul.links li a { white-space: nowrap; }
@media screen and (max-width: 1680px) { #nav ul.links li a { padding: 0 1.25rem; } }
@media screen and (max-width: 1280px) { #nav ul.links li a { padding: 0 0.85rem; letter-spacing: 0.05em; } #nav ul.links li.nk-nav-game img { width: 32px; } }
#navPanel .links li.nk-nav-game a { display: flex; align-items: center; gap: 0.6rem; }
#navPanel .links li.nk-nav-game img { width: 40px; height: auto; }
.nk-buddy-bubble { text-align: center; line-height: 1.2; }
/* Close button: Massively forces every button's colour (!important), which turned the old × blue on the
   blue header -- invisible. A white circle with a blue × reads as "close" at a glance. */
.nk-chat .nk-chat-close { flex: none; align-self: flex-start; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; min-width: 36px; padding: 0 0 2px; margin: 0; border-radius: 50%; border: 0; background: #fff !important; color: var(--nk-blue) !important; font-family: system-ui, -apple-system, sans-serif; font-size: 26px; font-weight: 400; line-height: 1; letter-spacing: 0; text-transform: none; box-shadow: 0 2px 6px rgba(0, 40, 80, 0.25); cursor: pointer; }
.nk-chat .nk-chat-close:hover, .nk-chat .nk-chat-close:focus-visible { background: var(--nk-yellow) !important; color: var(--nk-ink) !important; outline: none; }
/* Splash Dash full screen (nk-game-embed.js): the frame covers the window while a round is on */
.nk-game-frame.is-full { position: fixed; inset: 0; z-index: 10050; width: 100vw; height: 100vh; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
.nk-game-frame:fullscreen { width: 100vw; height: 100vh; border: 0; border-radius: 0; }
html.nk-game-full, html.nk-game-full body { overflow: hidden; overscroll-behavior: none; }
html.nk-game-full .nk-buddy, html.nk-game-full .nk-chat, html.nk-game-full #navPanelToggle { display: none !important; }
/* #main and the footer are both z-index 2 inside #wrapper (z 1), so the footer painted over the
   full-screen game; lift the game's ancestors while it's up. */
html.nk-game-full #wrapper { z-index: 10050; }
html.nk-game-full #main { z-index: 10050; }
