/* Site styles on top of the theme: forms, gallery, mobile menu, members area.
   Rich-text (editor) styles are in content.css. */

/* YouTube embeds (video section) */
.video-wrapper { position: relative; width: 100%; padding-top: 56.25%; }
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Contact / newsletter forms */
.django-form input[type=text], .django-form input[type=tel], .django-form input[type=email],
.django-form textarea, .django-form select { width: 100%; }
.form-error { color: #dc3232; font-size: 0.9em; display: block; }
#contact-page .contactpage-details { background-color: #000; }
.newsletter-form-box { display: flex; gap: .5rem; }
/* (the newsletter and contact form fields are styled under "Forms" further down) */

/* Old single-page membership form */
.membership-form { background: rgba(255,255,255,.04); padding: 2rem; border-radius: 6px; }
.membership-form label { color: #fff; }
.membership-form .form-control, .membership-form .form-select { background: #fff; color: #222; }
.membership-form .ff-el-is-error .form-control, .membership-form .ff-el-is-error .form-select { border-color: #dc3545; }
.membership-form button.theme-btn { border: 0; cursor: pointer; }

/* Gallery grid: the theme's masonry grid (style.css) pins every 4th image
   to row 1 ("grid-row: 1 / span 8"), which leaves gaps after the first block.
   Keep the theme layout, just let those items flow. */
ul.vw_gallery_front { list-style: none; padding: 0; }
#gallery-page .grid-items:nth-child(4n) { grid-row: span 8; grid-column: span 3; }
#gallery-page .vw_gallery_front { grid-auto-rows: 60px; }
#gallery-page .vw_gallery_front { grid-auto-flow: dense; }

/* Mobile menu panel: slides in from the left over a dimmed page (site.js opens and closes it).
   It stays rendered but hidden, so it can animate; visibility keeps it out of the tab order. */
#sidebar1.mobile-sidebar { display: block; position: fixed; inset: 0 auto 0 0; width: 280px; max-width: 85vw;
  background: #081833; z-index: 99999; padding: 3rem 1.5rem; overflow-y: auto; overscroll-behavior: contain;
  animation: none; transform: translateX(-100%); visibility: hidden; box-shadow: 12px 0 40px rgba(0,0,0,.4);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility 0s linear .35s; }
#sidebar1.mobile-sidebar.open { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.mobile-nav-backdrop { position: fixed; inset: 0; z-index: 99998; background: rgba(3,6,20,.6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s; }
.mobile-nav-backdrop.open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
html.nav-open { overflow: hidden; }
#sidebar1 .closebtn { position: absolute; top: 1rem; right: 1rem; cursor: pointer; color: #fff; font-size: 1.4rem; }
#sidebar1 ul { list-style: none; padding: 0; }
#sidebar1 ul li a { display: block; color: #fff; padding: .5rem 0; }

.site-messages .alert { margin-bottom: 0; }
/* Flash messages ("We've emailed you a new code." etc.): a slim dark pill with a coloured icon, to suit the navy pages */
.site-messages { max-width: 760px; }
.site-messages .alert { --msg: #8be29a; display: flex; align-items: center; gap: .75rem; margin-top: 1rem !important;
  padding: .8rem 1.1rem; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--msg) 35%, transparent);
  background: color-mix(in srgb, var(--msg) 12%, #0a1230); color: #f4f6fb; font-weight: 500;
  box-shadow: 0 12px 30px rgba(0,0,0,.25); animation: msg-in .45s cubic-bezier(.2,.7,.2,1) both; }
.site-messages .alert::before { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font: 900 .8rem/1 "Font Awesome 6 Free"; content: "\f00c"; color: #0a1230; background: var(--msg); }
.site-messages .alert-info { --msg: #7cc4ff; }
.site-messages .alert-info::before { content: "\f129"; }
.site-messages .alert-warning { --msg: #ffc960; }
.site-messages .alert-warning::before { content: "\21"; }
.site-messages .alert-danger { --msg: #ff9f9f; }
.site-messages .alert-danger::before { content: "\f00d"; }
@keyframes msg-in { from { opacity: 0; translate: 0 -8px; } }

/* ---- Members area ------------------------------------------------------- */
.members-area { color: #fff; }
.members-area a:not(.theme-btn):not(.wz-btn) { color: #ffcd00; }
.member-panel, .member-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,205,0,.25);
  border-radius: 14px; padding: 1.75rem; }
.narrow-panel { max-width: 560px; margin: 0 auto; }
.member-card h3 { color: #ffcd00; font-size: 1.3rem; }
.member-price { font-size: 1.5rem; font-weight: 600; color: #fff; }
.member-price small { font-size: .85rem; font-weight: 400; }
.members-area h2, .members-area h3 { color: #ffcd00; }
.members-area dt { font-weight: 600; color: rgba(255,255,255,.75); }
.members-area .theme-btn { border: 0; cursor: pointer; color: #00008b; }
.theme-btn-outline { background: transparent !important; border: 1px solid #ffcd00 !important; color: #ffcd00 !important; }
.payment-code { font-family: ui-monospace, Consolas, monospace; font-size: 1.15rem; font-weight: 700; letter-spacing: .08em;
  background: #ffcd00; color: #00008b; padding: .1rem .5rem; border-radius: 4px; }
.status-pill { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: rgba(255,255,255,.15); color: #fff; }
.status-active, .status-paid { background: #2e7d32; }
.status-pending, .status-approval { background: #b26a00; }
.status-lapsed, .status-declined, .status-suspended, .status-cancelled, .status-failed { background: #b3261e; }
.member-table { color: #fff; --bs-table-bg: transparent; --bs-table-color: #fff; }
.member-table th { color: rgba(255,255,255,.7); font-weight: 600; }
.header-member-link { color: #ffcd00; font-size: 1.2rem; }

/* ---- Form fields (members area and wizard) ------------------------------ */
.members-area .form-label, .wz .form-label, .members-area legend.form-label, .wz legend.form-label {
  color: #fff; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.members-area .form-text, .wz .form-text { color: rgba(255,255,255,.62); font-size: .85rem; }
.members-area .req, .wz .req { color: #ffcd00; }
.field-error { color: #ff9b9b; font-size: .875rem; margin-top: .35rem; }
.member-field fieldset { border: 0; padding: 0; margin: 0; }

/* ---- Application wizard: tokens ----------------------------------------- */
.wz, .wz-dialog, .mx {
  --wz-bg: #0a1230;
  --wz-surface: rgba(255,255,255,.055);
  --wz-surface-2: rgba(255,255,255,.09);
  --wz-line: rgba(255,255,255,.14);
  --wz-text: #f4f6fb;
  --wz-muted: rgba(244,246,251,.66);
  --wz-gold: #ffcd00;
  --wz-gold-soft: rgba(255,205,0,.14);
  --wz-navy: #00008b;
  --wz-radius: 12px;
  font-family: Manrope, Montserrat, system-ui, sans-serif;
}

/* ---- The dialog ---------------------------------------------------------- */
html.wz-open { overflow: hidden; }
.wz-dialog { width: min(880px, calc(100vw - 2rem)); max-height: min(92vh, 1000px); padding: 0; border: 1px solid rgba(255,205,0,.28);
  border-radius: 22px; color: var(--wz-text); overflow: hidden; display: none; flex-direction: column;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255,205,0,.10), transparent 55%),
              radial-gradient(90% 70% at 0% 100%, rgba(40,70,200,.25), transparent 60%), var(--wz-bg);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04) inset; }
.wz-dialog[open] { display: flex; animation: wz-in .28s cubic-bezier(.2,.8,.2,1); }
.wz-dialog::backdrop { background: rgba(3,6,20,.72); backdrop-filter: blur(6px); animation: wz-fade .28s ease; }
@keyframes wz-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes wz-fade { from { opacity: 0; } to { opacity: 1; } }
.wz-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding: 1.4rem 1.75rem .25rem; }
.wz-dialog-head h2 { margin: 0; font-size: 1.45rem; color: #fff; font-family: "STIX Two Text", "Playfair Display", serif; }
.wz-dialog p.wz-eyebrow { margin: 0 0 .15rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--wz-gold) !important; }
.wz-close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--wz-line); background: var(--wz-surface);
  color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .15s, transform .15s; }
.wz-close:hover { background: var(--wz-surface-2); transform: rotate(90deg); }
.wz-close svg { width: 18px; height: 18px; }
.wz-dialog-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }
.wz-dialog-body > .wz { flex: 1; display: flex; flex-direction: column; }
.wz-dialog.is-loading .wz-dialog-body { opacity: .55; pointer-events: none; transition: opacity .15s; }
.wz-skeleton { padding: 2rem 1.75rem; display: grid; gap: 1rem; }
.wz-skeleton span { height: 46px; border-radius: 10px; background: linear-gradient(90deg, var(--wz-surface) 0%, var(--wz-surface-2) 50%, var(--wz-surface) 100%);
  background-size: 200% 100%; animation: wz-shimmer 1.2s infinite linear; }
.wz-skeleton span:first-child { height: 10px; width: 40%; }
@keyframes wz-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.wz-messages { padding: 1rem 1.75rem 0; }

/* Full-page fallback: same card on the page */
.join-page .wz { max-width: 880px; margin: 0 auto; border: 1px solid rgba(255,205,0,.25); border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255,205,0,.08), transparent 55%), var(--wz-bg); color: var(--wz-text); }

/* ---- Progress ------------------------------------------------------------ */
.wz-progress { padding: 1rem 1.75rem 1.1rem; border-bottom: 1px solid var(--wz-line); }
.wz-progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; }
.wz-progress-count { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wz-muted); }
.wz-progress-label { font-weight: 700; color: var(--wz-gold); }
.wz-progress-bar { height: 4px; border-radius: 99px; background: var(--wz-surface-2); overflow: hidden; }
.wz-progress-bar span { display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #f2e496, #ffcd00 55%, #ba983c); transition: width .4s cubic-bezier(.2,.8,.2,1); }
.wz-steps { list-style: none; display: flex; justify-content: space-between; gap: .25rem; padding: 0; margin: .9rem 0 0; }
.wz-steps li { flex: 1; min-width: 0; text-align: center; }
.wz-steps li > a, .wz-steps li > span { display: flex; flex-direction: column; align-items: center; gap: .35rem;
  text-decoration: none; color: var(--wz-muted); font-size: .72rem; line-height: 1.2; }
.wz-steps li > a:hover .wz-dot { border-color: var(--wz-gold); }
.wz-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem;
  border: 1.5px solid var(--wz-line); background: var(--wz-surface); color: var(--wz-muted); transition: all .2s; }
.wz-dot svg { width: 14px; height: 14px; }
.wz-steps li.is-done .wz-dot { background: var(--wz-gold-soft); border-color: rgba(255,205,0,.6); color: var(--wz-gold); }
.wz-steps li.is-done > a { color: var(--wz-text); }
.wz-steps li.is-current .wz-dot { background: var(--wz-gold); border-color: var(--wz-gold); color: var(--wz-navy);
  box-shadow: 0 0 0 5px rgba(255,205,0,.16); }
.wz-steps li.is-current .wz-step-label { color: #fff; font-weight: 700; }
.wz-step-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 767px) {
  .wz-steps { display: none; }
  .wz-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
  .wz-dialog-head, .wz-progress, .wz-body, .wz-footer, .wz-messages { padding-left: 1.1rem !important; padding-right: 1.1rem !important; }
}

/* ---- Body ---------------------------------------------------------------- */
.wz-form { flex: 1; display: flex; flex-direction: column; margin: 0; }
.wz-body { flex: 1; padding: 1.5rem 1.75rem .5rem; }
.wz h2, .wz .h4 { color: #fff; font-size: 1.25rem; font-weight: 700; margin: 0 0 .5rem; font-family: "STIX Two Text", "Playfair Display", serif; }
.wz h3, .wz .h5 { color: var(--wz-gold); font-size: 1.02rem; font-weight: 700; margin: 1.5rem 0 .6rem; }
.wz h2 + p, .wz p { color: var(--wz-muted) !important; font-size: .95rem; }
.wz .tier-choices { margin-top: .9rem; }
.wz .wz-body > h2:not(:first-child):not(.wz-alert + h2), .wz .wz-body h2.mt-4, .wz .wz-body h2.mt-5 { margin-top: 2rem !important; padding-top: 1.5rem;
  border-top: 1px solid var(--wz-line); }
.wz a:not(.wz-btn) { color: var(--wz-gold); }
.wz ul.small, .wz ul.small li, .wz li { color: var(--wz-muted); }
.wz-hint { font-size: .8rem !important; margin: 1.75rem 0 .5rem; color: rgba(244,246,251,.5) !important; }
.wz .row { --bs-gutter-x: 1.1rem; }

/* inputs */
:is(.wz, .mx) .form-control, :is(.wz, .mx) .form-select { background-color: var(--wz-surface); color: #fff; border: 1px solid var(--wz-line);
  border-radius: 10px; padding: .7rem .9rem; font-size: 1rem; min-height: 48px; color-scheme: dark;
  transition: border-color .15s, box-shadow .15s, background-color .15s; }
:is(.wz, .mx) textarea.form-control { min-height: 96px; }
:is(.wz, .mx) .form-control::placeholder { color: rgba(255,255,255,.35); }
:is(.wz, .mx) .form-control:hover, :is(.wz, .mx) .form-select:hover { border-color: rgba(255,255,255,.28); }
:is(.wz, .mx) .form-control:focus, :is(.wz, .mx) .form-select:focus { background-color: var(--wz-surface-2); border-color: var(--wz-gold);
  box-shadow: 0 0 0 4px rgba(255,205,0,.16); color: #fff; outline: 0; }
:is(.wz, .mx) .form-select option { color: #111; }
:is(.wz, .mx) .form-control:disabled { opacity: .6; }
:is(.wz, .mx) .member-field.has-error .form-control, :is(.wz, .mx) .member-field.has-error .form-select { border-color: #ff7b7b;
  box-shadow: 0 0 0 4px rgba(255,90,90,.12); }

/* radio / checkbox lists as selectable tiles */
:is(.wz, .mx) .choice-list { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
:is(.wz, .mx) .choice-inline { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
:is(.wz, .mx) .choice-list .form-check { position: relative; margin: 0; padding: .7rem .9rem .7rem 2.6rem; min-height: 48px;
  display: flex; align-items: center; border: 1px solid var(--wz-line); border-radius: 10px; background: var(--wz-surface);
  cursor: pointer; transition: border-color .15s, background .15s; }
:is(.wz, .mx) .choice-list .form-check:hover { border-color: rgba(255,255,255,.3); }
:is(.wz, .mx) .choice-list .form-check:has(input:checked) { border-color: var(--wz-gold); background: var(--wz-gold-soft); }
:is(.wz, .mx) .choice-list .form-check-input { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); margin: 0; }
:is(.wz, .mx) .choice-list .form-check-label { color: var(--wz-text); font-size: .93rem; cursor: pointer; }
:is(.wz, .mx) .choice-list .form-check-label::after { content: ""; position: absolute; inset: 0; }  /* whole tile clickable */

/* single tick boxes (declarations, consents) */
:is(.wz, .mx) .member-field > .form-check { position: relative; padding: .85rem 1rem .85rem 2.9rem; margin: 0; border-radius: 10px;
  background: var(--wz-surface); border: 1px solid var(--wz-line); transition: border-color .15s, background .15s; }
:is(.wz, .mx) .member-field > .form-check:has(input:checked) { border-color: rgba(255,205,0,.55); background: var(--wz-gold-soft); }
:is(.wz, .mx) .member-field > .form-check .form-check-input { position: absolute; left: 1rem; top: 1rem; margin: 0; }
:is(.wz, .mx) .member-field > .form-check .form-check-label { color: var(--wz-text); font-size: .93rem; line-height: 1.5; }
:is(.wz, .mx) .member-field.has-error > .form-check { border-color: #ff7b7b; }
:is(.wz, .mx) .form-check-input { width: 1.15em; height: 1.15em; background-color: transparent; border: 1.5px solid rgba(255,255,255,.5); cursor: pointer; }
:is(.wz, .mx) .form-check-input:checked { background-color: var(--wz-gold); border-color: var(--wz-gold);
  --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%2300008b' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e"); }
:is(.wz, .mx) .form-check-input[type=radio]:checked { --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%2300008b'/%3e%3c/svg%3e"); }
:is(.wz, .mx) .form-check-input:focus { box-shadow: 0 0 0 4px rgba(255,205,0,.2); border-color: var(--wz-gold); }

/* membership category cards */
.wz .tier-option { display: block; position: relative; cursor: pointer; padding: 1.15rem 1.15rem 1.15rem 3rem; height: 100%;
  border: 1px solid var(--wz-line); border-radius: 14px; background: var(--wz-surface); transition: all .18s; }
.wz .tier-option:hover { border-color: rgba(255,255,255,.3); transform: translateY(-1px); }
.wz .tier-option input { position: absolute; left: 1.1rem; top: 1.35rem; }
.wz .tier-option:has(input:checked) { border-color: var(--wz-gold); background: var(--wz-gold-soft);
  box-shadow: 0 10px 30px rgba(255,205,0,.08); }
.wz .tier-name { display: block; font-weight: 700; font-size: 1.05rem; color: #fff; }
.wz .tier-price { display: inline-block; color: var(--wz-navy); background: var(--wz-gold); font-weight: 700; font-size: .8rem;
  border-radius: 99px; padding: .1rem .55rem; margin: .35rem 0; }
.wz .tier-summary { display: block; font-size: .87rem; color: var(--wz-muted); line-height: 1.45; }

/* documents */
.wz .wz-drop input[type=file] { width: 100%; padding: 1.4rem 1rem; border: 1.5px dashed rgba(255,205,0,.45); border-radius: 12px;
  background: rgba(255,205,0,.04); color: var(--wz-muted); cursor: pointer; transition: background .15s, border-color .15s; }
.wz .wz-drop.is-over input[type=file] { background: var(--wz-gold-soft); border-color: var(--wz-gold); }
.wz input[type=file]::file-selector-button { margin-right: 1rem; border: 0; border-radius: 8px; padding: .5rem .9rem;
  background: var(--wz-gold); color: var(--wz-navy); font-weight: 700; cursor: pointer; }
.wz-file-list, .doc-list { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .35rem; }
.wz-file-list li, .wz .doc-list li { display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .5rem .75rem; border-radius: 8px; background: var(--wz-surface); color: var(--wz-text); font-size: .9rem; }
.wz .doc-list .btn-link { color: #ff9b9b; text-decoration: none; font-size: .85rem; }

/* notice, review */
.wz .notice-box { max-height: 300px; overflow-y: auto; padding: 1rem 1.25rem; border-radius: 12px;
  background: rgba(0,0,0,.25); border: 1px solid var(--wz-line); }
.collection-notice h3 { font-size: 1rem; margin-top: 1.1rem; color: #ffcd00; }
.collection-notice ul { padding-left: 1.2rem; }
.collection-notice li { color: inherit; margin-bottom: .3rem; }
.wz .review-section { border: 1px solid var(--wz-line); border-radius: 12px; padding: 1rem 1.15rem; margin-bottom: .75rem;
  background: var(--wz-surface); }
.wz .review-section h3 { margin: 0 0 .5rem; }
.wz .review-section dt { color: var(--wz-muted); font-weight: 500; font-size: .87rem; }
.wz .review-section dd { color: var(--wz-text); font-size: .93rem; margin-bottom: .4rem; }

/* "you're already a member" panel */
.wz-notice { text-align: center; padding-top: 2.5rem; padding-bottom: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wz-notice p { max-width: 34rem; margin-left: auto; margin-right: auto; }
.wz-notice-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--wz-gold-soft); color: var(--wz-gold); box-shadow: 0 0 0 8px rgba(255,205,0,.06); }
.wz-notice-icon svg { width: 30px; height: 30px; }
.wz-notice-status strong { color: var(--wz-gold); }

/* alerts */
.wz-alert { border-radius: 10px; padding: .75rem 1rem; margin-bottom: 1rem; font-size: .93rem; border: 1px solid; }
.wz-alert-danger { background: rgba(255,90,90,.1); border-color: rgba(255,120,120,.4); color: #ffd0d0; }
.wz-alert-info, .wz-alert-success { background: rgba(255,205,0,.08); border-color: rgba(255,205,0,.35); color: #fff3c4; }
.wz-alert-warning { background: rgba(255,160,0,.1); border-color: rgba(255,160,0,.4); color: #ffe2b0; }

/* ---- Footer / buttons ---------------------------------------------------- */
.wz-footer { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .9rem 1.75rem; border-top: 1px solid var(--wz-line);
  background: linear-gradient(180deg, rgba(10,18,48,.86), rgba(10,18,48,.98)); backdrop-filter: blur(8px); }
.wz-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; padding: .6rem 1.4rem;
  border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s; }
.wz-btn-primary { color: var(--wz-navy); border: 0; background: linear-gradient(90deg, #f2e496 0%, #ffcd00 47.5%, #ba983c 100%);
  box-shadow: 0 8px 22px rgba(255,205,0,.22); }
.wz-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255,205,0,.3); }
.wz-btn-primary.is-busy { pointer-events: none; opacity: .8; }
.wz-btn-primary.is-busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor;
  border-right-color: transparent; animation: wz-spin .7s linear infinite; }
@keyframes wz-spin { to { transform: rotate(360deg); } }
:is(.wz, .mx) .wz-btn-ghost { color: var(--wz-text); border-color: var(--wz-line); background: transparent; }
:is(.wz, .mx) .wz-btn-ghost:hover { background: var(--wz-surface); color: #fff; }
/* ---- Step transitions (driven by join-modal.js) ------------------------- */
.wz-dialog-body { overflow-x: hidden; }
.wz-steps li.is-current .wz-dot { animation: wz-pop .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes wz-pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
.wz-progress-label { display: inline-block; animation: wz-label-in .35s ease both; }
@keyframes wz-label-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .wz-dialog[open], .wz-dialog::backdrop, .wz-skeleton span, .wz-progress-bar span,
  .wz-steps li.is-current .wz-dot, .wz-progress-label { animation: none; transition: none; }
}

/* Shop page: the Square store embedded under the header (content/shop.html) */
.shop-embed iframe { display: block; width: 100%; height: calc(100vh - 110px); min-height: 700px; border: 0; background: #fff; }
.shop-embed-fallback { text-align: center; font-size: .9em; padding: .75rem 0; margin: 0; }

/* Header: no gap above the blue bar, and the bar stays at the top while scrolling.
   The theme puts a 20px margin above #header, and its script (switched on by a
   #sticky-onoff span, now removed from header.html) made the bar position:fixed on scroll,
   which made the page jump. A sticky header replaces both. */
#header { margin-top: 0; }
.site-header { position: sticky; top: 0; z-index: 999; }

/* ---- Modern touches ------------------------------------------------------ */

/* Fade between pages (Chrome, Edge, Safari 18.2+; other browsers just load the page) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }

/* Gold reading-progress bar along the top, driven by scrolling (no JavaScript).
   Hidden on pages too short to scroll and in browsers without scroll timelines. */
@supports (animation-timeline: scroll()) {
  body::after { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; pointer-events: none;
    background: linear-gradient(90deg, #f2e496, #ffcd00 55%, #ba983c); transform-origin: 0 50%; transform: scaleX(0);
    animation: site-progress linear both; animation-timeline: scroll(root); }
}
@keyframes site-progress { to { transform: scaleX(1); } }

/* Headings: even line breaks; paragraphs avoid one-word last lines */
h1, h2, h3, h4 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* In-page links and the skip link land below the sticky header (site.js sets --header-h) */
html { scroll-padding-top: calc(var(--header-h, 110px) + 12px); }

/* Glass header once the page is scrolled. The blur sits on a pseudo-element: putting
   backdrop-filter on #vw-sticky-menu itself would trap the fixed mobile menu and info panel. */
#vw-sticky-menu { position: relative; transition: background-color .3s, box-shadow .3s; }
#vw-sticky-menu::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none;
  background: rgba(0, 0, 139, .78); -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  transition: opacity .3s; }
.site-header.is-scrolled #vw-sticky-menu { background-color: transparent; box-shadow: 0 6px 24px rgba(0, 0, 0, .3); }
.site-header.is-scrolled #vw-sticky-menu::before { opacity: 1; }
.custom-logo { transition: transform .3s cubic-bezier(.2,.8,.2,1); transform-origin: left center; }
.site-header.is-scrolled .custom-logo { transform: scale(.86); }

/* Gold buttons: a light sweeps across on hover, a slight lift, and a clear keyboard focus ring.
   The theme uses ::after for its blue hover fill, so the sheen is on ::before. */
.theme-btn { overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, color .3s ease; }
.theme-btn::before { content: ""; position: absolute; top: 0; bottom: 0; left: -75%; width: 50%; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); }
.theme-btn:hover::before { animation: site-sheen .75s ease; }
@keyframes site-sheen { to { left: 125%; } }
.theme-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,205,0,.25); }
.theme-btn:focus-visible, .theme-btn:focus-within { outline: 2px solid #ffcd00; outline-offset: 3px; }

/* Cards (highlights, team, posts, membership categories, gallery): lift, gold glow, image zoom */
.discover-inner-box, .team-inner-box, .blog-detail-inner, .member-card {
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease; }
:is(.discover-inner-box, .team-inner-box, .blog-detail-inner, .member-card):is(:hover, :focus-within) {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0,0,0,.35), 0 0 0 1px rgba(255,205,0,.4), 0 10px 30px rgba(255,205,0,.12); }
.member-card:hover, .member-card:focus-within { border-color: rgba(255,205,0,.55); }
.discover-img, .team-img, .blog-img-outer { overflow: hidden; }
.discover-img img, .team-img img, .blog-img-outer img, .grid-items img { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
:is(.discover-inner-box, .team-inner-box, .blog-detail-inner):is(:hover, :focus-within) img,
.grid-items:hover img, .grid-items:focus-within img { transform: scale(1.06); }
/* room for the lift and glow inside the carousels, which clip their contents */
#team .owl-stage-outer, #blog-news .owl-stage-outer { padding: 10px 0 26px; }

@media (prefers-reduced-motion: reduce) {
  .theme-btn::before { display: none; }
  .theme-btn:hover, .site-header.is-scrolled .custom-logo,
  :is(.discover-inner-box, .team-inner-box, .blog-detail-inner, .member-card):is(:hover, :focus-within),
  :is(.discover-inner-box, .team-inner-box, .blog-detail-inner):is(:hover, :focus-within) img,
  .grid-items:hover img, .grid-items:focus-within img { transform: none; }
}

/* ---- Fonts ---------------------------------------------------------------- */
/* The theme's fonts were never loaded, so text fell back to a Times-style serif.
   Headings use STIX Two Text (as in the members area and wizard); body text uses
   Montserrat, which base.html now loads because the theme names it directly in many places. */
:root { --font-one: "STIX Two Text", "Playfair Display", Georgia, serif; --font-two: Montserrat, system-ui, sans-serif; }

/* The one animate.css keyframe the theme still uses (footer links), now that animate.css isn't loaded */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---- Scroll reveals (site.js) --------------------------------------------- */
/* Uses the separate "translate" property so it never overrides a transform the theme sets.
   The About page's columns come from the page editor, so they're matched by position instead
   of a data-reveal attribute (site.js uses the same selector). */
@media (prefers-reduced-motion: no-preference) {
  html.js-reveal :is([data-reveal], .page-about #about-page-maine .row > [class*="col-"]) { opacity: 0; translate: 0 16px;
    transition: opacity .6s cubic-bezier(.2,.8,.2,1) var(--reveal-delay, 0ms), translate .6s cubic-bezier(.2,.8,.2,1) var(--reveal-delay, 0ms); }
  html.js-reveal :is([data-reveal], .page-about #about-page-maine .row > [class*="col-"]).is-revealed { opacity: 1; translate: none; }
}

/* ---- Hero entrance --------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  #slider .slider-box > * { animation: site-rise .8s cubic-bezier(.2,.8,.2,1) both; }
  #slider .slider-box > :nth-child(2) { animation-delay: .12s; }
  #slider .slider-box > :nth-child(3) { animation-delay: .24s; }
  #slider .slider-box > :nth-child(4) { animation-delay: .36s; }
  /* very slow zoom on the main image; grows towards the top left so it never widens the page */
  #slider .slider-main-img { transform-origin: 100% 100%; animation: site-kenburns 22s ease-in-out infinite alternate; }
  /* the dashed gold curve draws itself in from the left */
  #slider .slider-border-svg { animation: site-draw 1.8s .3s cubic-bezier(.6,0,.2,1) both; }
}
@keyframes site-rise { from { opacity: 0; translate: 0 22px; } }

/* ---- Hero button ------------------------------------------------------------- */
/* A solid gold pill with navy text and a round arrow; on hover it fills navy (the theme's ::after)
   and the text turns gold. Overrides the gradient set in the theme options (theme-inline.css). */
#slider .slider-box .hero-btn { display: inline-flex; align-items: center; gap: .85rem; padding: .5rem .5rem .5rem 1.6rem;
  border-radius: 999px; border: 1px solid #ffcd00; background: linear-gradient(180deg, #ffe066, #ffcd00 55%, #f2bd00);
  color: #00008b; font: 700 1rem/1.2 var(--font-two); letter-spacing: .02em; text-decoration: none;
  box-shadow: 0 12px 30px rgba(255,205,0,.28), inset 0 1px 0 rgba(255,255,255,.55);
  transition: color .3s ease, box-shadow .3s ease, transform .2s ease; }
#slider .slider-box .hero-btn::after { border-radius: inherit; background: #00008b; }
#slider .slider-box .hero-btn > span { position: relative; z-index: 1; }
.hero-btn-arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: .9rem;
  background: #00008b; color: #ffcd00; transition: background .3s ease, color .3s ease, translate .3s ease; }
#slider .slider-box .hero-btn:hover, #slider .slider-box .hero-btn:focus-visible { transform: translateY(-2px); color: #ffcd00;
  box-shadow: 0 16px 36px rgba(0,0,139,.45), 0 0 0 1px rgba(255,205,0,.6); }
.hero-btn:hover .hero-btn-arrow, .hero-btn:focus-visible .hero-btn-arrow { background: #ffcd00; color: #00008b; translate: 3px 0; }

/* ---- Hero logo --------------------------------------------------------------- */
/* The crest on the left of the hero (the hero section's second image) spins up out of a blur,
   settles with a small overshoot, then floats gently; a band of light sweeps across it now and then.
   Only scale/rotate/translate/filter are animated, so the site's custom CSS that positions it with
   `transform` still applies. */
#slider .slider-left-image img { display: block; }
@media (prefers-reduced-motion: no-preference) {
  #slider .slider-left-image { animation: logo-float 6s 1.9s ease-in-out infinite alternate; }
  #slider .slider-left-image img { animation: logo-in 1.5s .15s cubic-bezier(.2,.75,.25,1) both; }
  #slider .slider-left-image[style*="--logo"]::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    -webkit-mask: var(--logo) center / 100% 100% no-repeat; mask: var(--logo) center / 100% 100% no-repeat;
    background: linear-gradient(105deg, transparent 38%, rgba(255,246,200,.85) 50%, transparent 62%) 160% 0 / 260% 100% no-repeat;
    mix-blend-mode: soft-light; animation: logo-shine 7s 1.5s ease-in-out infinite; }
}
@keyframes logo-in {
  0%   { opacity: 0; scale: .55; rotate: -14deg; filter: blur(14px) drop-shadow(0 0 0 rgba(255,205,0,0)); }
  60%  { opacity: 1; scale: 1.05; rotate: 2deg; filter: blur(0) drop-shadow(0 0 28px rgba(255,205,0,.55)); }
  100% { opacity: 1; scale: 1; rotate: 0deg; filter: blur(0) drop-shadow(0 0 0 rgba(255,205,0,0)); }
}
@keyframes logo-float { from { translate: 0 0; } to { translate: 0 -10px; } }
@keyframes logo-shine { 0% { background-position: 160% 0; } 22%, 100% { background-position: -60% 0; } }
@keyframes site-kenburns { from { scale: 1; } to { scale: 1.05; } }
@keyframes site-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---- Events: date cards ---------------------------------------------------- */
.event-when { display: flex; align-items: center; gap: 1.1rem; }
.event-date { flex: none; display: flex; flex-direction: column; align-items: center; width: 74px; padding: .6rem 0 .5rem;
  border-radius: 12px; text-align: center; line-height: 1; color: #00008b;
  background: linear-gradient(160deg, #f2e496, #ffcd00 55%, #ba983c); box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transition: background .3s ease, color .3s ease; }
.event-content-wrap .event-date-day { font: 700 1.9rem/1 var(--font-one); color: inherit; }
.event-content-wrap .event-date-month { font-size: .78rem; font-weight: 700; line-height: 1.2; letter-spacing: .12em;
  text-transform: uppercase; color: inherit; margin-top: .2rem; }
.event-content-wrap .event-date-year { font-size: .68rem; line-height: 1.2; color: inherit; opacity: .75; }
.event-meta { min-width: 0; }
.event-meta h6 { display: flex; align-items: baseline; }
.event-meta h6 i { flex: none; width: 1em; color: #ffcd00; transition: color .3s ease; }
/* the theme fills the card gold on hover, so the badge turns navy */
.event-content-wrap:hover .event-date { background: #00008b; color: #ffcd00; }
.event-content-wrap:hover .event-meta h6 i { color: #00008b; }

/* ---- Images fade in once loaded (site.js) ---------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  img.img-pending { opacity: 0; }
  img.img-in { animation: fadeIn .5s ease both; }
}

/* ---- Forms: contact and newsletter, in the members area's style ------------ */
.site-form :is(input[type=text], input[type=tel], input[type=email], textarea) {
  width: 100%; min-height: 48px; padding: .75rem .95rem; border-radius: 10px; font: 400 1rem/1.5 var(--font-two);
  color: #fff; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.14); color-scheme: dark;
  transition: border-color .15s, box-shadow .15s, background-color .15s; }
.site-form :is(input, textarea)::placeholder { color: rgba(255,255,255,.5); font-size: 1rem; }
.site-form :is(input[type=text], input[type=tel], input[type=email], textarea):hover { border-color: rgba(255,255,255,.28); }
.site-form :is(input[type=text], input[type=tel], input[type=email], textarea):focus {
  outline: 0; border-color: #ffcd00; background-color: rgba(255,255,255,.09); box-shadow: 0 0 0 4px rgba(255,205,0,.16); }
.site-form textarea { min-height: 130px; resize: vertical; }
.site-form .form-error { color: #ff9b9b; margin-top: .35rem; }
/* newsletter: rounded field with a round gold button beside it */
.newsletter-form .newsletter-form-box { align-items: center; }
.newsletter-form .newsletter-form-box input[type=email] { flex: 1; border-radius: 999px; padding-left: 1.2rem; }
.newsletter-form .newsletter-form-box button[type=submit] { position: static; flex: none; width: 48px; height: 48px; border: 0;
  border-radius: 50%; display: grid; place-items: center; padding: 0; font-size: 1rem; cursor: pointer; color: #00008b;
  background: linear-gradient(135deg, #f2e496, #ffcd00 55%, #ba983c); box-shadow: 0 8px 22px rgba(255,205,0,.22);
  transition: transform .15s ease, box-shadow .15s ease; }
.newsletter-form .newsletter-form-box button[type=submit]:hover { transform: translateX(2px); box-shadow: 0 12px 28px rgba(255,205,0,.3); }
.newsletter-form .newsletter-form-box button[type=submit]:focus-visible { outline: 2px solid #ffcd00; outline-offset: 3px; }

/* ---- Footer (templates/partials/footer.html) ------------------------------- */
/* A rounded navy card like the inset sections above it: the footer photo shows faintly through
   a navy-to-midnight wash with soft gold and blue glows, a shimmering gold line along the top,
   and the site name as a large faded outline at the bottom. #footer selectors are needed to
   beat the theme's footer rules in header-footer.css and mobile-main.css. */
#footer.ft { --ft-gold: #ffcd00; --ft-text: #f4f6fb; --ft-muted: rgba(244,246,251,.72); --ft-line: rgba(255,255,255,.12);
  position: relative; z-index: 1; isolation: isolate; overflow: hidden; margin: 0; color: var(--ft-text);
  background: #070c33; border-radius: 24px 24px 0 0; font-family: var(--font-two); text-align: left; }
@media (min-width: 768px) {
  #footer.ft { margin: 1.5rem 1.5rem 1.5rem; border-radius: 28px; border: 1px solid rgba(255,205,0,.16);
    box-shadow: 0 24px 60px rgba(0,0,40,.18); }
}
#footer.ft::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: var(--ft-photo, none) center 30% / cover no-repeat; opacity: .22; filter: grayscale(1) contrast(1.15); }
#footer.ft::after { inset: 0; z-index: -1; opacity: 1; pointer-events: none;
  background: radial-gradient(55% 60% at 100% 0%, rgba(255,205,0,.13), transparent 70%),
              radial-gradient(50% 70% at 0% 100%, rgba(45,75,210,.30), transparent 70%),
              linear-gradient(180deg, rgba(0,0,139,.72) 0%, rgba(7,12,51,.94) 60%, #050826 100%); }

.ft-line { position: absolute; top: 0; left: 8%; right: 8%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #ffcd00 30%, #fff3b0 50%, #ffcd00 70%, transparent) 0 0 / 200% 100%;
  animation: ft-shimmer 6s linear infinite; }
.ft-line::after { content: ""; position: absolute; left: 20%; right: 20%; top: 0; height: 48px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(255,205,0,.22), transparent); }
@keyframes ft-shimmer { to { background-position: -200% 0; } }

.ft-main { padding: clamp(2.25rem, 4vw, 3.25rem) 0 clamp(1.25rem, 2.5vw, 1.75rem); }
.ft-grid { display: flex; flex-wrap: wrap; gap: 2rem clamp(2rem, 5vw, 4.5rem); }
.ft-brand { flex: 1.6 1 260px; max-width: 420px; }
.ft-col { flex: 1 1 170px; min-width: 0; }
@media (max-width: 575.98px) { .ft-brand { flex-basis: 100%; } }

/* brand */
.ft-logo { display: inline-block; border-radius: 8px; }
.ft-logo img { display: block; max-height: 80px; max-width: 100%; width: auto; height: auto; }
.ft-logo:focus-visible { outline: 2px solid var(--ft-gold); outline-offset: 4px; }
#footer .ft-tagline { margin: 1rem 0 0; color: var(--ft-muted) !important; font-size: .95rem; line-height: 1.7; }
.ft-social { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.ft-social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem;
  color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.ft-social a:is(:hover, :focus-visible) { transform: translateY(-3px); color: #00008b; border-color: transparent;
  background: linear-gradient(135deg, #f2e496, #ffcd00 55%, #ba983c); box-shadow: 0 10px 24px rgba(255,205,0,.28); }
.ft-social a:focus-visible { outline: 2px solid var(--ft-gold); outline-offset: 3px; }

/* column headings: small gold capitals with a short gold rule */
#footer.ft h3 { position: relative; margin: 0 0 1.25rem; padding-bottom: .75rem; text-align: left;
  font: 700 .78rem/1.2 var(--font-two); letter-spacing: .16em; text-transform: uppercase; color: var(--ft-gold); }
#footer.ft h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #f2e496, #ffcd00, #ba983c); }

/* menu links: a gold dash slides in on hover (replaces the theme's jumping bar) */
#footer .ft-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
#footer .ft-links li { margin: 0; padding: 0; text-align: left; transition: none; }
#footer .ft-links li:hover { padding-left: 0; }
#footer .ft-links li::before { content: none; }
#footer .ft-links a { display: inline-flex; align-items: center; gap: 0; padding: .35rem 0; text-decoration: none;
  font: 500 .97rem/1.5 var(--font-two); color: var(--ft-muted); transition: color .2s ease, gap .25s ease; }
#footer .ft-links a::before { content: ""; width: 0; height: 2px; border-radius: 2px; background: var(--ft-gold);
  transition: width .25s cubic-bezier(.2,.8,.2,1); }
#footer .ft-links a:is(:hover, :focus-visible, [aria-current="page"]) { color: #fff; gap: .55rem; }
#footer .ft-links a:is(:hover, :focus-visible, [aria-current="page"])::before { width: 14px; }
#footer .ft-links a:focus-visible { outline: 2px solid var(--ft-gold); outline-offset: 3px; border-radius: 4px; }

/* text blocks (address, ABN and so on) */
#footer .footer-widget + .footer-widget { margin-top: 1.75rem; }
#footer .ft-text p { margin: 0 0 .9rem; text-align: left; color: var(--ft-muted) !important; font: 400 .97rem/1.75 var(--font-two); }
#footer .ft-text p:last-child { margin-bottom: 0; }
#footer .ft-text strong { color: #fff; font-weight: 600; }
#footer .ft-text a { color: var(--ft-gold); text-decoration: underline; text-decoration-color: rgba(255,205,0,.4);
  text-underline-offset: 3px; transition: text-decoration-color .2s; }
#footer .ft-text a:hover { text-decoration-color: currentColor; }

/* contact lines (Postal Address, Email, ABN ...): a gold icon, a small label, the value as a link */
#footer .ft-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
#footer .ft-contact li { display: flex; align-items: flex-start; gap: .85rem; margin: 0; padding: 0; text-align: left; transition: none; }
#footer .ft-contact li:hover { padding-left: 0; }
#footer .ft-contact li::before { content: none; }
.ft-contact-icon { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: .95rem;
  color: #ffcd00; background: rgba(255,205,0,.1); border: 1px solid rgba(255,205,0,.28);
  transition: background .2s ease, color .2s ease, transform .2s ease; }
#footer .ft-contact li:hover .ft-contact-icon { color: #00008b; transform: translateY(-2px);
  background: linear-gradient(135deg, #f2e496, #ffcd00 55%, #ba983c); }
.ft-contact-text { display: flex; flex-direction: column; min-width: 0; padding-top: .05rem; }
.ft-contact-label { font: 700 .7rem/1.3 var(--font-two); letter-spacing: .12em; text-transform: uppercase; color: rgba(244,246,251,.55); }
#footer .ft-contact-text :is(a, .ft-contact-value) { font: 500 .97rem/1.5 var(--font-two); color: #fff; overflow-wrap: anywhere; text-decoration: none; }
#footer .ft-contact-text a { background: linear-gradient(#ffcd00, #ffcd00) 0 100% / 0 1px no-repeat; transition: background-size .3s ease, color .2s ease; }
#footer .ft-contact-text a:is(:hover, :focus-visible) { color: #ffcd00; background-size: 100% 1px; }

/* bottom bar (hidden while the site's custom CSS hides .copyright-outer) */
#footer .ft-bottom { position: relative; border-top: 0; padding: 1.1rem 0; }
#footer .ft-bottom::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ft-line) 15%, var(--ft-line) 85%, transparent); }
#footer .ft-bottom p { margin: 0; text-align: center; font-size: .85rem; letter-spacing: .02em; color: rgba(244,246,251,.55) !important; }

/* the site name, large and faded, its lower edge running off the card */
.ft-wordmark { margin: -.25rem 0 -.18em; padding: 0 1rem; text-align: center; white-space: nowrap; overflow: hidden;
  font: 700 clamp(3rem, 10vw, 8rem)/1 var(--font-one); letter-spacing: .02em; user-select: none; pointer-events: none;
  color: transparent; -webkit-text-stroke: 1px rgba(255,205,0,.28);
  background: linear-gradient(180deg, rgba(255,205,0,.22) 0%, rgba(255,205,0,.04) 55%, transparent 80%);
  -webkit-background-clip: text; background-clip: text; }

/* back-to-top: a round button whose gold ring fills as the page scrolls. site.js adds
   .is-visible after scrolling; the !important rules stop the theme's jQuery fade fighting it. */
@property --ft-progress { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
#footer #return-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 998; width: 52px; height: 52px; padding: 0;
  border: 0; border-radius: 50%; line-height: 1; text-decoration: none; display: grid !important; place-items: center;
  background: conic-gradient(var(--ft-gold) var(--ft-progress), rgba(255,255,255,.22) 0);
  box-shadow: 0 12px 30px rgba(0,0,40,.35); opacity: 0 !important; visibility: hidden; transform: translateY(12px) scale(.9);
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.8,.2,1), visibility 0s linear .25s; }
#footer #return-to-top.is-visible { opacity: 1 !important; visibility: visible; transform: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.8,.2,1); }
#footer #return-to-top::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #0a1240; transition: background .2s; }
#footer #return-to-top i { position: relative; font-size: 1rem; color: var(--ft-gold) !important; transition: transform .2s ease; }
#footer #return-to-top.is-visible:hover { transform: translateY(-3px); }
#footer #return-to-top:hover::before { background: #00008b; }
#footer #return-to-top:hover i { transform: translateY(-2px); }
#footer #return-to-top:focus-visible { outline: 2px solid var(--ft-gold); outline-offset: 3px; }
@supports (animation-timeline: scroll()) {
  #footer #return-to-top { animation: ft-progress linear both; animation-timeline: scroll(root); }
}
@keyframes ft-progress { from { --ft-progress: 0%; } to { --ft-progress: 100%; } }
@media (max-width: 575.98px) { #footer #return-to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; } }

/* ---- Call to action (templates/sections/call_to_action.html) ---------------- */
/* A two-column glass card: text and button on the left; the section's image, or a gold
   shopping-bag emblem with orbiting rings, on the right. A light runs round the border.
   Replaces the theme's tall box (10% and 16% margins) that left the section mostly empty. */
@property --cta-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.cta-section .education-row .col-12 > :last-child { margin-bottom: 0; }
.cta-card { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4rem);
  max-width: 1100px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.75rem); border-radius: 28px;
  background: radial-gradient(70% 90% at 100% 50%, rgba(255,205,0,.12), transparent 60%),
              radial-gradient(60% 80% at 0% 100%, rgba(45,75,210,.28), transparent 65%),
              linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  box-shadow: 0 30px 80px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06); }
/* the border: faint gold, with a brighter light travelling round it */
.cta-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--cta-angle), rgba(255,205,0,.18) 0deg, rgba(255,205,0,.18) 250deg,
              #fff3b0 300deg, #ffcd00 320deg, rgba(255,205,0,.18) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: cta-spin 6s linear infinite; }
@keyframes cta-spin { to { --cta-angle: 360deg; } }

/* text */
.cta-copy { text-align: left; }
.cta-copy .text-center { text-align: inherit !important; }  /* the body text arrives centred from the editor */
.cta-copy h2 { margin: 0 0 1rem; color: #fff; text-align: inherit;
  font: 700 clamp(1.75rem, 2.6vw + .8rem, 2.6rem)/1.15 var(--font-one); }
.cta-copy p { max-width: 56ch; margin: 0 0 1rem; color: rgba(244,246,251,.8) !important; font-size: 1.02rem; line-height: 1.75; }
.cta-copy > :last-child { margin-bottom: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.75rem; }
#education .cta-btn { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.6rem; border-radius: 999px;
  font-size: .95rem; font-weight: 700; line-height: 1.2; color: #00008b; }
#education .cta-btn:hover { color: #fff; }
#education .cta-btn i { position: relative; transition: translate .2s ease; }
#education .cta-btn:hover i { translate: 4px 0; }

/* visual: the section's image in a tilted frame */
.cta-visual { position: relative; display: grid; place-items: center; min-width: 0; }
.cta-photo { position: relative; margin: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; rotate: 2deg;
  box-shadow: 0 25px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,205,0,.25);
  transition: rotate .5s cubic-bezier(.2,.8,.2,1), scale .5s cubic-bezier(.2,.8,.2,1); }
.cta-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cta-card:hover .cta-photo { rotate: 0deg; scale: 1.02; }

/* visual without an image: gold emblem, two orbiting rings with "satellites", twinkling sparks */
.cta-emblem { position: relative; width: min(320px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.cta-glow { position: absolute; inset: 12%; border-radius: 50%; filter: blur(24px);
  background: radial-gradient(circle, rgba(255,205,0,.32), transparent 65%); }
.cta-orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,205,0,.4);
  animation: cta-rotate 40s linear infinite; }
.cta-orbit-2 { inset: 15%; border: 1px solid rgba(255,255,255,.12); animation-duration: 26s; animation-direction: reverse; }
.cta-orbit::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: #ffcd00; box-shadow: 0 0 16px 4px rgba(255,205,0,.55); }
.cta-orbit-2::after { top: auto; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; background: #fff;
  box-shadow: 0 0 12px 3px rgba(255,255,255,.45); }
.cta-core { position: relative; width: 44%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #fff3b0, #ffcd00 45%, #ba983c 100%);
  box-shadow: 0 0 0 10px rgba(255,205,0,.08), 0 0 0 22px rgba(255,205,0,.04), 0 25px 60px rgba(255,205,0,.3);
  animation: cta-float 6s ease-in-out infinite; }
.cta-core i { font-size: clamp(2.5rem, 5vw, 3.5rem); color: #00008b; }
.cta-spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff3b0;
  box-shadow: 0 0 10px 2px rgba(255,205,0,.6); animation: cta-twinkle 3s ease-in-out infinite; }
.cta-spark-1 { top: 18%; right: 10%; }
.cta-spark-2 { bottom: 14%; left: 8%; animation-delay: 1s; }
.cta-spark-3 { top: 40%; left: -2%; width: 4px; height: 4px; animation-delay: 2s; }
@keyframes cta-rotate { to { rotate: 360deg; } }
@keyframes cta-float { 50% { translate: 0 -10px; } }
@keyframes cta-twinkle { 0%, 100% { opacity: .2; scale: .6; } 50% { opacity: 1; scale: 1; } }

/* tablets and phones: one column, text first, centred */
@media (max-width: 991.98px) {
  .cta-card { grid-template-columns: 1fr; text-align: center; }
  .cta-copy { text-align: center; }
  .cta-copy p { margin-left: auto; margin-right: auto; }
  .cta-actions { justify-content: center; }
  .cta-emblem { width: min(240px, 70vw); }
  .cta-photo { max-width: 520px; margin: 0 auto; }
}

/* ---- Blog (templates/sections/posts.html, partials/post_card.html) --------- */
/* Glass cards with the post image shown whole over a blurred copy of itself, a category chip,
   date and reading time, and a gold underline that draws in under the title on hover.
   The home page section shows the newest post large, with up to three more beside it. */
.blog-section .blog-hr-line { display: none; }
.blog-layout { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: stretch;
  max-width: 1180px; margin: 0 auto; }
.blog-layout.is-single { grid-template-columns: minmax(0, 1fr); max-width: 1100px; }
.blog-side { display: flex; flex-direction: column; gap: 1rem; }

.blog-card { position: relative; isolation: isolate; display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: 22px; color: #f4f6fb; text-align: left;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)), #0b1238;
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 50px rgba(0,0,0,.3);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease, box-shadow .35s ease; }
.blog-card:is(:hover, :focus-within) { transform: translateY(-4px); border-color: rgba(255,205,0,.45);
  box-shadow: 0 26px 60px rgba(0,0,0,.4), 0 10px 30px rgba(255,205,0,.12); }

/* image */
.blog-media { position: relative; flex: none; overflow: hidden; aspect-ratio: 16 / 10; background: #0a1240; }
.blog-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(5,8,38,.55)); }
.blog-media-blur { position: absolute; inset: -12%; width: 124%; height: 124%; max-width: none; object-fit: cover;
  filter: blur(28px) saturate(1.3) brightness(.65); }
.blog-media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); transition: scale .6s cubic-bezier(.2,.8,.2,1); }
.blog-card:is(:hover, :focus-within) .blog-media-img { scale: 1.05; }
.blog-media-empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.5rem; color: rgba(255,205,0,.6);
  background: radial-gradient(circle at 50% 40%, rgba(255,205,0,.15), transparent 60%); }
.blog-chip { position: absolute; top: 1rem; left: 1rem; z-index: 2; max-width: calc(100% - 2rem); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; padding: .35rem .8rem; border-radius: 999px;
  font: 700 .7rem/1.2 var(--font-two); letter-spacing: .08em; text-transform: uppercase; color: #00008b;
  background: linear-gradient(135deg, #f2e496, #ffcd00 55%, #ba983c); box-shadow: 0 6px 18px rgba(0,0,0,.3); }

/* text */
.blog-body { display: flex; flex-direction: column; gap: .8rem; flex: 1; padding: 1.4rem 1.5rem 1.5rem; }
.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font: 600 .74rem/1.3 var(--font-two);
  letter-spacing: .08em; text-transform: uppercase; color: rgba(244,246,251,.6); }
.blog-meta time { color: #ffcd00; }
.blog-card .blog-card-title { margin: 0; font: 700 1.25rem/1.3 var(--font-one); }
.blog-card .blog-card-title a { color: #fff; text-decoration: none;
  background: linear-gradient(#ffcd00, #ffcd00) 0 100% / 0 2px no-repeat; transition: background-size .35s cubic-bezier(.2,.8,.2,1); }
.blog-card:is(:hover, :focus-within) .blog-card-title a { background-size: 100% 2px; }
.blog-card .blog-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }  /* whole card is the link */
.blog-card .blog-card-title a:focus-visible { outline: none; }
.blog-card:has(.blog-card-title a:focus-visible) { outline: 2px solid #ffcd00; outline-offset: 3px; }
.blog-card .blog-excerpt { margin: 0; color: rgba(244,246,251,.75) !important; font-size: .95rem; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: .4rem; }
.blog-byline { display: inline-flex; align-items: center; gap: .55rem; font-size: .88rem; color: rgba(244,246,251,.85); }
.blog-avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font: 700 .85rem/1 var(--font-two); color: #00008b; background: linear-gradient(135deg, #f2e496, #ffcd00 55%, #ba983c); }
.blog-readmore { display: inline-flex; align-items: center; gap: .45rem; margin-left: auto; font-weight: 700; font-size: .88rem; color: #ffcd00; }
.blog-readmore i { transition: translate .2s ease; }
.blog-card:is(:hover, :focus-within) .blog-readmore i { translate: 4px 0; }

/* featured card: larger type; with a single post, image and text side by side */
.blog-card--feature .blog-body { padding: clamp(1.5rem, 3vw, 2.4rem); gap: 1rem; }
.blog-card--feature .blog-card-title { font-size: clamp(1.5rem, 1.4vw + 1rem, 2.15rem); line-height: 1.2; }
.blog-card--feature .blog-excerpt { font-size: 1rem; -webkit-line-clamp: 4; }
@media (min-width: 768px) {
  :is(.is-single, .blog-grid) > .blog-card--feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  :is(.is-single, .blog-grid) > .blog-card--feature .blog-media { aspect-ratio: auto; min-height: 360px; }
  :is(.is-single, .blog-grid) > .blog-card--feature .blog-body { justify-content: center; }
}

/* small cards beside the feature */
.blog-card--mini { flex-direction: row; align-items: center; gap: 1rem; padding: .75rem; height: auto; flex: 1; border-radius: 18px; }
.blog-card--mini .blog-media { width: 112px; aspect-ratio: 1; border-radius: 12px; }
.blog-card--mini .blog-media-img { padding: 8%; }
.blog-card--mini .blog-body { padding: 0; gap: .4rem; }
.blog-card--mini .blog-card-title { font-size: 1.02rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* "View all posts" */
.blog-more { margin-top: 2rem; text-align: center; }
.blog-more-link { display: inline-flex; align-items: center; gap: .55rem; padding: .75rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: .92rem; color: #ffcd00; text-decoration: none; border: 1px solid rgba(255,205,0,.45);
  background: rgba(255,205,0,.06); transition: background .2s ease, color .2s ease, border-color .2s ease; }
.blog-more-link:is(:hover, :focus-visible) { color: #00008b; border-color: transparent;
  background: linear-gradient(135deg, #f2e496, #ffcd00 55%, #ba983c); }
.blog-more-link i { transition: translate .2s ease; }
.blog-more-link:hover i { translate: 4px 0; }

@media (max-width: 991.98px) { .blog-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---- Blog pages: listing, categories and single posts ----------------------- */
/* Header cards (partials/blog_header.html, content/post_detail.html): rounded navy cards like
   the footer, the banner photo faint behind a navy wash with gold and blue glows. */
.blog-hero, .post-hero { position: relative; isolation: isolate; overflow: hidden; margin: 0 0 2.5rem; color: #f4f6fb;
  background: #070c33; border-radius: 0 0 24px 24px; }
@media (min-width: 768px) {
  .blog-hero, .post-hero { margin: 1.5rem 1.5rem 3rem; border-radius: 28px; border: 1px solid rgba(255,205,0,.16); }
}
.blog-hero::before, .post-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: var(--hero-photo, none) center / cover no-repeat; opacity: .22; filter: grayscale(1) contrast(1.1); }
.blog-hero::after, .post-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 70% at 100% 0%, rgba(255,205,0,.14), transparent 70%),
              radial-gradient(50% 80% at 0% 100%, rgba(45,75,210,.32), transparent 70%),
              linear-gradient(180deg, rgba(0,0,139,.7), rgba(7,12,51,.95)); }
.post-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.25rem;
  font: 500 .82rem/1.3 var(--font-two); color: rgba(244,246,251,.6); }
.blog-hero .post-crumbs { justify-content: center; }
.post-crumbs a { color: rgba(244,246,251,.82); text-decoration: none; transition: color .2s; }
.post-crumbs a:hover { color: #ffcd00; }
.post-crumbs i { font-size: .55rem; opacity: .5; }
.post-crumbs [aria-current] { color: #ffcd00; }

/* listing header */
.blog-hero-inner { max-width: 900px; padding: clamp(3rem, 7vw, 5.5rem) 1rem clamp(2.5rem, 5vw, 4rem); text-align: center; }
.blog-hero .blog-hero-eyebrow { display: inline-block; margin: 0 0 1rem; padding: .35rem .95rem; border-radius: 999px;
  border: 1px solid rgba(255,205,0,.4); background: rgba(255,205,0,.08); color: #ffcd00 !important;
  font: 700 .72rem/1.2 var(--font-two); letter-spacing: .16em; text-transform: uppercase; }
.blog-hero .blog-hero-title { margin: 0; font: 700 clamp(2.4rem, 4vw + 1rem, 4rem)/1.08 var(--font-one) !important;
  letter-spacing: -.01em; color: #fff; background: linear-gradient(180deg, #fff 35%, #ffe28a);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.blog-hero-intro { max-width: 62ch; margin: 1.1rem auto 0; }
.blog-hero-intro p { color: rgba(244,246,251,.8) !important; font-size: 1.05rem; line-height: 1.75; }
.blog-hero-intro > :last-child { margin-bottom: 0; }
.blog-hero .blog-hero-count { margin: 1.1rem 0 0; color: rgba(244,246,251,.55) !important;
  font: 600 .78rem/1.2 var(--font-two); letter-spacing: .12em; text-transform: uppercase; }
/* ordinary page titles (partials/title_banner.html): a slimmer version of the blog header */
.page-hero .blog-hero-inner { padding: clamp(1.6rem, 3.5vw, 2.6rem) 1rem clamp(1.5rem, 3vw, 2.3rem); }
.page-hero .post-crumbs { margin-bottom: .7rem; }
.blog-hero.page-hero .blog-hero-title { font-size: clamp(1.9rem, 2.4vw + 1rem, 2.9rem) !important; }
@media (min-width: 768px) {
  .blog-hero.page-hero { margin: 1.25rem 1.5rem 2.25rem; border-radius: 24px; }
}
.blog-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.75rem; }
.blog-filters a { display: inline-flex; align-items: center; padding: .5rem 1rem; border-radius: 999px; text-decoration: none;
  font: 600 .85rem/1.2 var(--font-two); color: rgba(244,246,251,.88); background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: border-color .2s, color .2s, background .2s, transform .2s; }
.blog-filters a:hover { border-color: rgba(255,205,0,.55); color: #fff; transform: translateY(-1px); }
.blog-filters a:focus-visible { outline: 2px solid #ffcd00; outline-offset: 3px; }
.blog-filters a[aria-current] { color: #00008b; border-color: transparent; background: linear-gradient(135deg, #f2e496, #ffcd00 55%, #ba983c); }
.blog-filter-count { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .4em; margin-left: .45rem;
  border-radius: 999px; font-size: .72rem; background: rgba(255,255,255,.12); }
.blog-filters a[aria-current] .blog-filter-count { background: rgba(0,0,139,.15); }

/* listing grid, page numbers, empty state */
.blog-index { padding: 0 0 4rem; }
.blog-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.blog-grid > .blog-card--feature { grid-column: 1 / -1; }
.blog-pagination { margin-top: 2.75rem; }
.blog-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.blog-pagination .page-numbers { width: 44px; height: 44px; display: grid !important; place-items: center; line-height: 1 !important;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06) !important; color: #fff !important;
  font-weight: 700; text-decoration: none; transition: border-color .2s, color .2s; }
.blog-pagination a.page-numbers:hover, .blog-pagination a.page-numbers:focus-visible { border-color: #ffcd00; color: #ffcd00 !important;
  background: rgba(255,205,0,.08) !important; }
.blog-pagination span.page-numbers.current, .blog-pagination span.page-numbers.current:hover { border-color: transparent;
  color: #00008b !important; background: linear-gradient(135deg, #f2e496, #ffcd00 55%, #ba983c) !important; }
.blog-empty { max-width: 520px; margin: 0 auto; padding: 3rem 2rem; text-align: center; border-radius: 22px;
  background: rgba(255,255,255,.04); border: 1px dashed rgba(255,205,0,.3); }
.blog-empty-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1rem; border-radius: 50%;
  font-size: 1.5rem; color: #00008b; background: linear-gradient(135deg, #f2e496, #ffcd00 55%, #ba983c); }
.blog-empty h2 { margin: 0 0 .4rem; color: #fff; font: 700 1.5rem/1.3 var(--font-one); }
.blog-empty p { color: rgba(244,246,251,.7) !important; margin: 0 0 1.5rem; }

/* single post: header */
.post-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1rem; }
@media (min-width: 992px) {
  .post-hero.has-image .post-hero-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, .85fr); gap: 4rem; }
}
.post-hero-copy { max-width: 820px; }
.post-cats { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.1rem; }
.post-cats .blog-chip { position: static; text-decoration: none; transition: filter .2s, transform .2s; }
.post-cats .blog-chip:hover { filter: brightness(1.08); transform: translateY(-1px); }
.post-hero .post-title { margin: 0; color: #fff; letter-spacing: -.01em;
  font: 700 clamp(2rem, 2.4vw + 1rem, 3.3rem)/1.12 var(--font-one) !important; }
.post-hero .post-dek { max-width: 60ch; margin: 1.1rem 0 0; color: rgba(244,246,251,.8) !important; font-size: 1.12rem; line-height: 1.7; }
.post-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.6rem; font-size: .92rem;
  color: rgba(244,246,251,.75); }
.post-byline time { color: #ffcd00; font-weight: 600; }
.post-author { color: #fff; font-weight: 600; }
.post-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.35); }
.post-hero-media { width: 100%; max-width: 440px; justify-self: center; aspect-ratio: 1 / 1; border-radius: 24px; rotate: 2deg;
  border: 1px solid rgba(255,205,0,.25); box-shadow: 0 30px 70px rgba(0,0,0,.45); transition: rotate .5s cubic-bezier(.2,.8,.2,1); }
.post-hero-media:hover { rotate: 0deg; }
@media (max-width: 991.98px) { .post-hero-media { max-width: 340px; } }

/* single post: reading column with share buttons and "On this page" beside it on wide screens */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; max-width: 780px; padding-bottom: 1.5rem; }
.post-share { order: -2; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.post-toc-wrap { order: -1; }
@media (min-width: 1200px) {
  .post-layout { max-width: 1280px; grid-template-columns: 64px minmax(0, 740px) 250px; justify-content: center; align-items: start; gap: 3rem; }
  .post-share { grid-column: 1; order: 0; flex-direction: column; position: sticky; top: calc(var(--header-h, 110px) + 24px); }
  .post-body { grid-column: 2; }
  .post-toc-wrap { grid-column: 3; order: 0; position: sticky; top: calc(var(--header-h, 110px) + 24px); }
}
.post-share-label { font: 700 .68rem/1.2 var(--font-two); letter-spacing: .14em; text-transform: uppercase; color: rgba(244,246,251,.55); }
.post-share :is(a, button) { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer;
  font-size: 1rem; color: #fff; text-decoration: none; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.post-share :is(a, button):is(:hover, :focus-visible), .post-share button.is-done { transform: translateY(-2px); color: #00008b;
  border-color: transparent; background: linear-gradient(135deg, #f2e496, #ffcd00 55%, #ba983c); box-shadow: 0 10px 24px rgba(255,205,0,.25); }
.post-share :is(a, button):focus-visible { outline: 2px solid #ffcd00; outline-offset: 3px; }
.post-share button.is-done i::before { content: "\f00c"; }  /* tick once the link is copied */
.post-share-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.post-toc { padding: 1.25rem 1.25rem 1rem; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.post-toc .post-toc-title { margin: 0 0 .8rem; color: #ffcd00 !important; font: 700 .72rem/1.2 var(--font-two); letter-spacing: .14em; text-transform: uppercase; }
.post-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid rgba(255,255,255,.12); }
.post-toc a { display: block; margin-left: -1px; padding: .35rem 0 .35rem .9rem; border-left: 2px solid transparent; text-decoration: none;
  font-size: .88rem; line-height: 1.4; color: rgba(244,246,251,.7); transition: color .2s, border-color .2s; }
.post-toc .is-sub a { padding-left: 1.6rem; font-size: .84rem; }
.post-toc a:hover { color: #fff; }
.post-toc a[aria-current] { color: #ffcd00; border-left-color: #ffcd00; }

/* single post: article typography (overrides the theme's dim 16px text) */
.post-body { min-width: 0; font-family: var(--font-two); font-size: 1.08rem; line-height: 1.85; color: rgba(244,246,251,.86); }
.post-body p, .post-body li { font: inherit; opacity: 1; color: rgba(244,246,251,.86) !important; }
.post-body p { margin: 0 0 1.35em; }
.post-body :is(h2, h3, h4) { scroll-margin-top: calc(var(--header-h, 110px) + 24px); }
.post-body :is(h2, h3, h4) > br:first-child { display: none; }  /* stray line breaks pasted at the start of headings */
.post-body h2 { position: relative; margin: 2.2em 0 .8em; padding-top: .9em; color: #fff;
  font: 700 clamp(1.6rem, 1.2vw + 1.1rem, 2.1rem)/1.25 var(--font-one); }
.post-body h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #f2e496, #ffcd00, #ba983c); }
.post-body > h2:first-child { margin-top: 0; }
.post-body h3 { margin: 1.8em 0 .6em; color: #ffcd00; font: 700 1.3rem/1.35 var(--font-two); }
.post-body h4 { margin: 1.6em 0 .5em; color: #fff; font: 700 1.1rem/1.4 var(--font-two); }
.post-body strong { color: #fff; }
.post-body a { color: #ffcd00; text-decoration: underline; text-decoration-color: rgba(255,205,0,.45); text-underline-offset: 3px;
  transition: text-decoration-color .2s; }
.post-body a:hover { text-decoration-color: currentColor; }
.post-body li { margin-bottom: .45em; }
.post-body li::marker { color: #ffcd00; }
.post-body blockquote { margin: 2em 0; padding: 1.25rem 1.5rem; border-left: 3px solid #ffcd00; border-radius: 0 14px 14px 0;
  background: rgba(255,205,0,.06); font-style: normal; font-size: 1.15rem; color: #fff; }
.post-body img { border-radius: 14px; }
.post-body hr { height: 1px; margin: 2.5em 0; border: 0; opacity: 1;
  background: linear-gradient(90deg, transparent, rgba(255,205,0,.45), transparent); }
.post-body th { background: rgba(255,205,0,.08); color: #ffcd00; }

.post-end { padding: 1rem 1rem 3.5rem; text-align: center; }
.post-end .blog-more-link i { transition: translate .2s ease; }
.post-end .blog-more-link:hover i { translate: -4px 0; }
.post-more { padding: 3.5rem 0 4rem; border-top: 1px solid rgba(255,255,255,.08); }
.post-more .post-more-title { margin: 0 0 1.75rem; text-align: center; color: #fff; font: 700 clamp(1.6rem, 1.5vw + 1rem, 2.2rem)/1.2 var(--font-one); }

/* ---- Highlights (templates/sections/highlights.html) ------------------------ */
/* Even, rounded photo cards (no hanging lines, staggered heights or bobbing): a gold number,
   the title and text over a dark gradient; on hover the card lifts, the photo zooms and
   "Read more" slides in. The whole card is the link. */
.hl-grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199.98px) { .hl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .hl-grid { grid-template-columns: minmax(0, 1fr); } }
.hl-card { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 460px;
  border-radius: 22px; background: #0a1240; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 50px rgba(0,0,0,.35);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease, box-shadow .35s ease; }
@media (max-width: 575.98px) { .hl-card { min-height: 400px; } }
.hl-card:is(:hover, :focus-within) { transform: translateY(-6px); border-color: rgba(255,205,0,.5);
  box-shadow: 0 28px 60px rgba(0,0,0,.45), 0 10px 30px rgba(255,205,0,.14); }
.hl-media { position: absolute; inset: 0; z-index: -1; }
.hl-media img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s cubic-bezier(.2,.8,.2,1); }
.hl-card:is(:hover, :focus-within) .hl-media img { scale: 1.08; }
.hl-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,8,38,.05) 0%, rgba(5,8,38,.35) 40%, rgba(5,8,38,.92) 78%, #050826 100%); }
.hl-body { width: 100%; padding: 1.5rem 1.4rem 1.4rem; }
.hl-num { display: block; margin-bottom: .6rem; font: 700 .8rem/1 var(--font-two); letter-spacing: .14em; color: #ffcd00; }
.hl-num::after { content: ""; display: inline-block; width: 26px; height: 2px; margin-left: .6rem; vertical-align: middle;
  border-radius: 2px; background: #ffcd00; transition: width .35s cubic-bezier(.2,.8,.2,1); }
.hl-card:is(:hover, :focus-within) .hl-num::after { width: 44px; }
.hl-card .hl-title { margin: 0 0 .6rem; font: 700 1.12rem/1.3 var(--font-two); text-align: left; }
.hl-card .hl-title a { color: #fff; text-decoration: none; }
.hl-card .hl-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }  /* whole card is the link */
.hl-card .hl-title a:focus-visible { outline: none; }
.hl-card:has(.hl-title a:focus-visible) { outline: 2px solid #ffcd00; outline-offset: 3px; }
.hl-text p { margin: 0; font-size: .9rem; line-height: 1.6; text-align: left; color: rgba(244,246,251,.82) !important;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hl-text p + p { display: none; }
.hl-text strong { color: #fff; }
.hl-more { display: inline-flex; align-items: center; gap: .45rem; margin-top: .9rem; font-weight: 700; font-size: .85rem; color: #ffcd00;
  opacity: 0; translate: 0 6px; transition: opacity .3s ease, translate .3s ease; }
.hl-card:is(:hover, :focus-within) .hl-more { opacity: 1; translate: none; }
@media (hover: none) { .hl-more { opacity: 1; translate: none; } }  /* always visible on touch screens */

/* ---- Page background and floating panels ------------------------------------ */
/* The theme's near-black page (#14171C) showed as hard dark strips beside the inset sections.
   The page is now deep navy with soft gold and blue glows that stay put while scrolling, and the
   inset sections (Highlights, Events, Gallery, Testimonials) are rounded floating panels, like
   the footer and blog headers. A section's own colour from the admin still shows through. */
html body {
  background-color: #060a24;
  background-image: radial-gradient(60% 50% at 100% 0%, rgba(255,205,0,.07), transparent 70%),
                    radial-gradient(55% 60% at 0% 45%, rgba(45,75,210,.16), transparent 70%),
                    radial-gradient(50% 50% at 100% 100%, rgba(45,75,210,.12), transparent 70%);
  background-attachment: fixed;
}
@media (min-width: 768px) {
  :is(#discover, #event, #gallery, #testimonial).mx-md-4,
  #testimonial.mx-4 {
    margin-top: 1.5rem; margin-bottom: 1.5rem; border-radius: 28px; overflow: clip;
    border: 1px solid rgba(255,205,0,.14);
    box-shadow: 0 30px 80px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
    background-image: radial-gradient(60% 70% at 100% 0%, rgba(255,205,0,.08), transparent 65%),
                      radial-gradient(50% 70% at 0% 100%, rgba(45,75,210,.22), transparent 65%);
  }
}

/* ---- Video (templates/sections/video.html) ---------------------------------- */
/* A rounded frame with a soft glow of the video's own colours behind it (the thumbnail, blurred),
   growing into place as it scrolls into view. Before playing: the thumbnail, a pulsing gold play
   button and the section heading; site.js swaps in YouTube's player on click. */
.vid-stage { position: relative; max-width: 1100px; margin: 0 auto; }
.vid-ambient { position: absolute; inset: 6% 3%; z-index: 0; pointer-events: none; opacity: .55;
  filter: blur(60px) saturate(1.5); animation: vid-breathe 8s ease-in-out infinite alternate; }
.vid-ambient img { width: 100%; height: 100%; object-fit: cover; border-radius: 40px; }
@keyframes vid-breathe { from { opacity: .4; scale: 1; } to { opacity: .65; scale: 1.06; } }
.vid-frame { position: relative; z-index: 1; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 24px; background: #000;
  border: 1px solid rgba(255,205,0,.22); box-shadow: 0 40px 100px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04) inset; }
.vid-frame :is(iframe, video) { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-facade { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; cursor: pointer; }
.vid-facade::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,8,38,.25) 0%, transparent 35%, transparent 55%, rgba(5,8,38,.88) 100%); }
.vid-poster { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) brightness(.85);
  transition: scale .8s cubic-bezier(.2,.8,.2,1), filter .4s ease; }
.vid-facade:is(:hover, :focus-visible) .vid-poster { scale: 1.04; filter: saturate(1) brightness(.95); }
.vid-facade:focus-visible { outline: 3px solid #ffcd00; outline-offset: -3px; border-radius: 24px; }
.vid-play { position: absolute; left: 50%; top: 50%; z-index: 2; translate: -50% -50%; width: clamp(64px, 8vw, 96px); aspect-ratio: 1;
  border-radius: 50%; display: grid; place-items: center; font-size: clamp(1.3rem, 2vw, 1.9rem); color: #00008b;
  background: linear-gradient(135deg, #f2e496, #ffcd00 55%, #ba983c); transition: scale .3s cubic-bezier(.2,.8,.2,1);
  animation: vid-pulse 2.4s ease-out infinite; }
.vid-play i { margin-left: .15em; }  /* the triangle looks centred when nudged right */
.vid-facade:is(:hover, :focus-visible) .vid-play { scale: 1.1; }
@keyframes vid-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,205,0,.55), 0 20px 50px rgba(0,0,0,.45); }
  70%, 100% { box-shadow: 0 0 0 28px rgba(255,205,0,0), 0 20px 50px rgba(0,0,0,.45); }
}
.vid-caption { position: absolute; left: clamp(1rem, 3vw, 2rem); right: 1rem; bottom: clamp(1rem, 3vw, 1.75rem); z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; text-align: left; }
.vid-label { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px;
  font: 700 .72rem/1.2 var(--font-two); letter-spacing: .14em; text-transform: uppercase; color: #ffcd00;
  background: rgba(5,8,38,.45); border: 1px solid rgba(255,205,0,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.vid-title { font: 700 clamp(1.2rem, 1.5vw + .8rem, 1.9rem)/1.2 var(--font-one); color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
@media (max-width: 575.98px) { .vid-title { display: none; } .vid-frame { border-radius: 16px; } }
/* grows into place as it scrolls into view (browsers with scroll-driven animations) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .vid-stage { animation: vid-grow linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  }
}
@keyframes vid-grow { from { scale: .88; opacity: .5; } to { scale: 1; opacity: 1; } }

/* ---- Hero sea (templates/sections/hero.html) -------------------------------- */
/* The home banner's photo of the fleet, gently alive: a very slow push in towards the ships so
   they seem to advance, a slight sway like the swell, and a soft band of sunlight gliding across
   the water. Anchored on the fleet so phones show the ships rather than empty sea. Uses the
   individual scale/translate/rotate properties so the two movements combine. */
.hero-sea { position: absolute; inset: 0; z-index: -1; overflow: hidden; isolation: isolate; pointer-events: none; }
.hero-sea-img { position: absolute; inset: -3%; background-size: cover; background-repeat: no-repeat;
  background-position: 68% 22%; transform-origin: 68% 35%; will-change: scale, translate, rotate; }
.hero-sea-glint { position: absolute; inset: -20% -40%; mix-blend-mode: soft-light; opacity: .7;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.35) 47%, rgba(255,240,200,.5) 50%,
              rgba(255,255,255,.35) 53%, transparent 62%); }
/* the photo melts into the page's navy at the bottom instead of ending on a hard edge */
.hero-sea::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: 1;
  background: linear-gradient(180deg, rgba(6,10,36,0) 0%, rgba(6,10,36,.55) 45%, rgba(6,10,36,.9) 75%, #060a24 100%); }
#slider:has(.hero-sea) .slider-nav-line { display: none; }  /* the theme's thin black rule across the banner */
@media (prefers-reduced-motion: no-preference) {
  .hero-sea-img { animation: sea-advance 28s ease-in-out infinite alternate, sea-sway 11s ease-in-out infinite alternate; }
  .hero-sea-glint { animation: sea-glint 16s ease-in-out infinite; }
}
@keyframes sea-advance { from { scale: 1; translate: 0 0; } to { scale: 1.08; translate: -1% 1.6%; } }
@keyframes sea-sway { from { rotate: -.35deg; } to { rotate: .35deg; } }
@keyframes sea-glint { 0% { translate: -45% 0; opacity: 0; } 15% { opacity: .7; } 60% { opacity: .7; } 80%, 100% { translate: 45% 0; opacity: 0; } }

/* ---- About page (content of the "about" page, written in the page editor) ---- */
/* The page's text blocks (Mission, Story, Vision, Values, Committee, Resources) become numbered
   glass cards, the points under them gold-ticked items, and the photos rounded frames, the pair
   beside "The Vision" set as a slightly tilted collage. Only CSS: the content stays editable.
   Each card's background is a pseudo-element inset by the grid gutter, so Bootstrap's spacing holds. */
.page-about #about-page-maine { counter-reset: about; padding-bottom: 3rem; }
.page-about #about-page-maine > section { padding: 0 0 1.5rem; }
.page-about #about-page-maine .row { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }
.page-about #about-page-maine .row.pt-md-3 { padding-top: 0 !important; margin-top: 0 !important; }

/* cards */
.page-about #about-page-maine [class*="col-"]:has(> h3) { position: relative; z-index: 0; counter-increment: about;
  padding: 2.25rem calc(var(--bs-gutter-x) * .5 + 2rem) 2rem; padding-bottom: 2rem !important; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.page-about #about-page-maine [class*="col-"]:has(> h3)::before { content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: 0; bottom: 0; left: calc(var(--bs-gutter-x) * .5); right: calc(var(--bs-gutter-x) * .5); border-radius: 24px;
  background: radial-gradient(80% 60% at 100% 0%, rgba(255,205,0,.07), transparent 70%),
              linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)), #0b1238;
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 50px rgba(0,0,0,.3);
  transition: border-color .35s ease, box-shadow .35s ease; }
.page-about #about-page-maine [class*="col-"]:has(> h3):hover { transform: translateY(-4px); }
.page-about #about-page-maine [class*="col-"]:has(> h3):hover::before { border-color: rgba(255,205,0,.45);
  box-shadow: 0 26px 60px rgba(0,0,0,.4), 0 10px 30px rgba(255,205,0,.12); }

/* headings, with the card's number above: "01 ——" */
.page-about #about-page-maine h3 { margin: 0 0 1rem; color: #fff; font: 700 clamp(1.5rem, 1vw + 1.1rem, 1.9rem)/1.2 var(--font-one); }
.page-about #about-page-maine h3::before { content: counter(about, decimal-leading-zero); display: flex; align-items: center; gap: .6rem;
  margin-bottom: .7rem; font: 700 .8rem/1 var(--font-two); letter-spacing: .14em; color: #ffcd00; }
.page-about #about-page-maine h3::after { content: none; }
.page-about #about-page-maine [class*="col-"]:has(> h3) h3::before { background: linear-gradient(#ffcd00, #ffcd00) 2.1rem 50% / 26px 2px no-repeat;
  padding-right: 3rem; width: max-content; transition: background-size .35s cubic-bezier(.2,.8,.2,1); }
.page-about #about-page-maine [class*="col-"]:has(> h3):hover h3::before { background-size: 44px 2px; padding-right: 4.2rem; }
.page-about #about-page-maine :is(h3, p)[class*="text-"] { text-align: left !important; }

/* text */
.page-about #about-page-maine p { margin: 0 0 1rem; padding-top: 0 !important; padding-bottom: 0 !important;
  font: 400 1.02rem/1.8 var(--font-two); color: rgba(244,246,251,.82) !important; }
.page-about #about-page-maine [class*="col-"]:has(> h3) > p:last-child { margin-bottom: 0; }

/* the points under "The Vision" and "Resources": gold-ticked items */
.page-about #about-page-maine .vision-points { display: grid; gap: .75rem; margin: 1.25rem 0 0 !important; }
.page-about #about-page-maine .vision-points p { position: relative; margin: 0; padding: .9rem 1rem .9rem 3.1rem !important;
  border-radius: 14px; font-size: .95rem; line-height: 1.65; color: rgba(244,246,251,.88) !important;
  background: rgba(255,205,0,.06); border: 1px solid rgba(255,205,0,.2); transition: background .25s, border-color .25s; }
.page-about #about-page-maine .vision-points p:hover { background: rgba(255,205,0,.1); border-color: rgba(255,205,0,.4); }
.page-about #about-page-maine .vision-points p::after { content: "\f00c"; position: absolute; left: .95rem; top: 1rem; bottom: auto;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font: 900 .65rem/1 "Font Awesome 6 Free"; color: #00008b; background: linear-gradient(135deg, #f2e496, #ffcd00 55%, #ba983c); }

/* photos */
.page-about #about-page-maine img { display: block; width: 100%; max-width: 100%; height: 100%; min-height: 260px; margin: 0 !important;
  object-fit: cover; border-radius: 24px; border: 1px solid rgba(255,205,0,.22); box-shadow: 0 25px 60px rgba(0,0,0,.45);
  transition: rotate .5s cubic-bezier(.2,.8,.2,1), scale .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease; }
.page-about #about-page-maine img:hover { scale: 1.02; box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 10px 30px rgba(255,205,0,.12); }
/* the pair beside "The Vision": tall frames, tilted in opposite directions, the second set lower */
.page-about #about-page-maine .row .row img { aspect-ratio: 3 / 4; height: auto; }
/* side by side with the card (large screens): the photos fill the card's height; the lower,
   second photo is shortened by its drop so both bottoms line up with the card */
@media (min-width: 992px) {
  .page-about #about-page-maine .row .row { height: 100%; padding-top: 0 !important; }
  .page-about #about-page-maine .row .row img { aspect-ratio: auto; height: 100%; min-height: 0; }
  .page-about #about-page-maine .row .row > :last-child img { height: calc(100% - 1.5rem); }
}
.page-about #about-page-maine .row .row > :first-child img { rotate: -2deg; }
.page-about #about-page-maine .row .row > :last-child img { rotate: 2deg; translate: 0 1.5rem; }
.page-about #about-page-maine .row .row img:hover { rotate: 0deg; }
@media (max-width: 575.98px) {
  .page-about #about-page-maine .row .row > :last-child img { translate: none; }
  .page-about #about-page-maine [class*="col-"]:has(> h3) { padding: 1.75rem calc(var(--bs-gutter-x) * .5 + 1.25rem) 1.5rem; }
}

/* ---- Reduced motion, site-wide ---------------------------------------------- */
/* For people who have asked their device for less motion: no looping or decorative animation
   anywhere (the theme's spinning and pulsing graphics included) and no animated scrolling.
   The wizard's own step animations (Web Animations API, join-modal.js) handle this themselves. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---- Side-by-side sections (templates/partials/page_blocks.html) --------- */
/* Two half-width sections in a row (Width = "Half width" in the admin), e.g. the home page's
   blog and shop. Stacked below 992px, side by side above it, each in a compact layout. */
.section-pair { display: grid; grid-template-columns: minmax(0, 1fr); }
.section-pair-col { display: flex; min-width: 0; }
.section-pair-col > section { flex: 1; min-width: 0; }
@media (min-width: 992px) {
  .section-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; max-width: 1320px; margin: 0 auto; padding: 0 12px; }
  .section-pair-col > section { display: flex; flex-direction: column; }
  .section-pair-col > section > .container { flex: 1; display: flex; flex-direction: column; max-width: none; padding: 0; }
  .section-pair .row { --bs-gutter-x: 0; }
  .section-pair .row > [class*="col-md-8"] { width: 100%; }
  /* same padding in both halves (the blog section has extra at the bottom on its own), and the
     shop keeps a gap the height of the blog's "View all posts" link, so the two cards line up */
  .section-pair-col > section { padding-top: 60px !important; padding-bottom: 60px !important; }
  .section-pair .blog-more { flex: none; height: 48px; margin-top: 2rem; }
  .section-pair .cta-section > .container::after { content: ""; flex: none; height: calc(48px + 2rem); }

  /* blog: newest post on top, two more below */
  .section-pair .blog-layout { grid-template-columns: minmax(0, 1fr); flex: 1; }
  .section-pair .blog-side > :nth-child(n+3) { display: none; }

  /* shop: one column, centred, filling the height of the blog beside it */
  .section-pair .cta-card { flex: 1; width: 100%; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 2rem;
    text-align: center; padding: clamp(2rem, 3vw, 3rem); }
  .section-pair .cta-copy { text-align: center; }
  .section-pair .cta-copy p { margin-left: auto; margin-right: auto; }
  .section-pair .cta-copy h2 { font-size: clamp(1.6rem, 1.6vw + .8rem, 2.2rem); }
  .section-pair .cta-actions { justify-content: center; }
  .section-pair .cta-visual { order: -1; }
  .section-pair .cta-emblem { width: min(230px, 70%); }
  .section-pair .cta-photo { max-width: 460px; margin: 0 auto; }
}

/* ---- Gallery (templates/sections/_gallery_grid.html, content/page_gallery.html) ------------ */
/* A masonry grid of rounded photos that lift on hover and open in a full-screen lightbox
   (static/js/gallery.js), plus the "share your photos" card. */
#gallery-page { padding: 0 0 1rem; }
#gallery-page .gallery-page-sections { padding: 0; }
.gal-hero .blog-hero-intro a { color: #ffcd00; }
.gal-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem 1.25rem; margin-top: 1.25rem; }
.gal-hero-actions .blog-hero-count { margin: 0; }
.gal-hero-btn { display: inline-flex; align-items: center; gap: .55rem; padding: .75rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; color: #00008b; text-decoration: none;
  background: linear-gradient(90deg, #f2e496 0%, #ffcd00 47.5%, #ba983c 100%); box-shadow: 0 10px 26px rgba(255,205,0,.25);
  transition: transform .15s, box-shadow .15s; }
.gal-hero-btn:hover, .gal-hero-btn:focus-visible { color: #00008b; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255,205,0,.35); }

.gal-grid { --gal-gap: 14px; list-style: none; margin: 0; padding: 0; columns: var(--gal-cols, 3) 240px; column-gap: var(--gal-gap); }
.gal-item { break-inside: avoid; margin: 0 0 var(--gal-gap); }
.gal-link { position: relative; display: block; overflow: hidden; border-radius: 16px; background: rgba(255,255,255,.04);
  box-shadow: 0 10px 30px rgba(0,0,0,.25); outline-offset: 3px; }
.gal-link img { display: block; width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.gal-link::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, transparent 55%, rgba(3,8,30,.85)); opacity: 0; transition: opacity .3s; }
.gal-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: .9rem 1rem; color: #fff; font-size: .85rem;
  line-height: 1.4; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.gal-zoom { position: absolute; top: .7rem; right: .7rem; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid;
  place-items: center; background: rgba(255,205,0,.95); color: #00008b; font-size: .85rem; opacity: 0; transform: scale(.8);
  transition: opacity .25s, transform .25s; }
.gal-link:is(:hover, :focus-visible) img { transform: scale(1.04); }
.gal-link:is(:hover, :focus-visible)::after, .gal-link:is(:hover, :focus-visible) .gal-caption { opacity: 1; transform: none; }
.gal-link:is(:hover, :focus-visible) .gal-zoom { opacity: 1; transform: none; }
@media (hover: none) { .gal-link::after, .gal-caption { opacity: 1; transform: none; } .gal-caption { font-size: .78rem; } }
@media (max-width: 575.98px) { .gal-grid { --gal-gap: 8px; columns: 2; } .gal-link { border-radius: 10px; } .gal-caption { display: none; } }
.gal-empty { text-align: center; padding: 3rem 1rem; color: rgba(244,246,251,.7); }
.gal-empty i { font-size: 2.5rem; color: #ffcd00; margin-bottom: .75rem; }

/* lightbox */
.gal-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(3,6,20,.94); color: #fff; overflow: hidden; }
.gal-lightbox[open] { display: grid; place-items: center; animation: gal-fade .25s ease; }
.gal-lightbox::backdrop { background: rgba(3,6,20,.6); backdrop-filter: blur(6px); }
html.gal-lb-open { overflow: hidden; }
.gal-lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; max-width: min(92vw, 1600px); }
.gal-lb-figure img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); transition: opacity .2s; }
.gal-lightbox.is-loading img { opacity: .35; }
.gal-lb-figure figcaption { max-width: 70ch; text-align: center; color: rgba(244,246,251,.85); font-size: .95rem; line-height: 1.5; }
.gal-lb-count { position: absolute; top: 1.1rem; left: 1.25rem; margin: 0; font-size: .85rem; letter-spacing: .08em; color: rgba(255,255,255,.7); }
.gal-lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font-size: 1.1rem; transition: background .15s, color .15s; }
.gal-lb-btn:hover, .gal-lb-btn:focus-visible { background: #ffcd00; color: #00008b; border-color: #ffcd00; }
.gal-lb-close { top: 1rem; right: 1rem; }
.gal-lb-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.gal-lb-next { right: 1rem; top: 50%; translate: 0 -50%; }
.gal-lightbox.is-single .gal-lb-prev, .gal-lightbox.is-single .gal-lb-next { display: none; }
@media (max-width: 575.98px) { .gal-lb-prev, .gal-lb-next { top: auto; bottom: 1rem; translate: none; } }
@keyframes gal-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---- Gallery: sharing photos (templates/content/_photo_share_form.html) ------------------- */
.gal-share-section { padding: 3rem 0 4.5rem; }
.gal-share-card { max-width: 1100px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 28px; color: #f4f6fb;
  border: 1px solid rgba(255,205,0,.22);
  background: radial-gradient(60% 80% at 100% 0%, rgba(255,205,0,.1), transparent 60%),
              linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.gal-share-head { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.gal-share-head h2 { color: #fff; font: 700 clamp(1.7rem, 2.4vw + .8rem, 2.4rem)/1.15 var(--font-one); margin: .25rem 0 .75rem; }
.gal-share-head p:not(.sub-heading) { color: rgba(244,246,251,.78); margin: 0; }
.share-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 2rem; align-items: start; }
@media (max-width: 991.98px) { .share-grid { grid-template-columns: minmax(0, 1fr); } }
.share-form .form-label, .share-form legend.form-label { color: #fff; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.share-form .form-text { color: rgba(244,246,251,.6); font-size: .82rem; }
.share-form .req { color: #ffcd00; }
.share-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem;
  min-height: 260px; margin: 0; padding: 2rem 1.25rem; border-radius: 20px; text-align: center; cursor: pointer;
  border: 2px dashed rgba(255,205,0,.45); background: rgba(255,205,0,.04); transition: background .2s, border-color .2s; }
.share-drop:hover, .share-drop.is-over, .share-drop:focus-within { background: rgba(255,205,0,.1); border-color: #ffcd00; }
.share-drop.has-files { min-height: 150px; }
.share-drop.has-error { border-color: #ff7b7b; }
.share-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.share-drop-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: #00008b;
  background: radial-gradient(circle at 30% 25%, #fff3b0, #ffcd00 50%, #ba983c); box-shadow: 0 12px 30px rgba(255,205,0,.3); margin-bottom: .4rem; }
.share-drop strong { color: #fff; font-size: 1.05rem; }
.share-drop-help { max-width: 40ch; color: rgba(244,246,251,.62); font-size: .83rem; line-height: 1.5; }
.share-previews { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .6rem; }
.share-previews li { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.06); }
.share-previews img { width: 100%; height: 100%; object-fit: cover; }
.share-remove { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(3,6,20,.75); color: #fff; font-size: .75rem; cursor: pointer; }
.share-remove:hover { background: #b3261e; }
.share-trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.share-privacy { font-size: .8rem; line-height: 1.55; color: rgba(244,246,251,.6); margin: .5rem 0 1rem; }
.share-privacy a { color: #ffcd00; }
.share-progress { height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; margin-bottom: .6rem; }
.share-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f2e496, #ffcd00);
  transition: width .2s; }
.share-status { font-size: .9rem; margin: 0 0 .8rem; color: rgba(244,246,251,.85); }
.share-status.is-error { color: #ff9b9b; }
.share-status.is-warn { color: #ffc960; }
.share-submit { width: 100%; }
.share-submit.is-busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor;
  border-right-color: transparent; animation: wz-spin .7s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .gal-link img, .gal-caption, .gal-zoom, .gal-lightbox[open], .gal-lb-figure img, .gal-hero-btn { transition: none; animation: none; }
  .gal-link:hover img { transform: none; }
}

/* Gallery captions (the gallery's "Captions" setting: gal-captions-below / -hover / -lightbox) */
.gal-figure { margin: 0; }
.gal-figcaption { padding: .55rem .25rem .2rem; color: rgba(244,246,251,.78); font-size: .86rem; line-height: 1.45; }
.gal-captions-below .gal-link::after { display: none; }
@media (hover: none) { .gal-captions-below .gal-link::after, .gal-captions-lightbox .gal-link::after { display: none; } }
@media (max-width: 575.98px) { .gal-figcaption { font-size: .76rem; padding-top: .35rem; } }
.gal-figcaption { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }  /* full text in the lightbox */
