/* ==========================================================================
   Sail Adventure — Morvargh template stylesheet
   Table of Contents
   01. Design tokens & color modes
   02. Typography & body copy
   03. Content helpers & utilities
   04. Forms & input controls
   05. Layout foundations
   06. Navigation & header
   07. Hero banners
   08. Cards & voyage listings
   09. Buttons & actions
   10. Blockquotes
   11. Footer
   12. Toast notifications
   13. Cookie banner & privacy prompt
   ========================================================================== */

/* == 01. Design tokens & color modes ==================================== */
:root {

    /* colors */ 
    --color-bg: #fff;
    --color-bg-card: #fff;
    --color-bg-voyage-card: #F5F5F5;
    --color-bg-voyage-card-inverted: #2b3039;
    --color-bg-formfields: #F5F5F5;
    --color-border-card: #D9D9D9;
    --color-primary: #2E3B4E;
    --color-primary-inverted: #e5e7eb;
    --color-secondary-blue: #0089BD;
    --color-secondary-orange: #FF7240;
    --color-grey: #D9D9D9;

    /* button tokens */
    --button-primary-bg: var(--color-primary);
    --button-primary-text: var(--color-primary-inverted);
    --button-primary-border: transparent;
    --button-primary-disabled-bg: var(--color-grey);
    --button-primary-disabled-text: var(--color-primary);

    /* fonts */
    --font-sans: 'Open Sans', system-ui, -apple-system, sans-serif;
    --font-hand: 'Reenie Beanie', cursive;

    /* Font weights */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-xtrabold: 800;

    /* Fluid type scale (16px base, gentle ~1.25 ratio) */
    --text-xs: clamp(0.79rem, 0.74rem + 0.25vw, 0.88rem);
    --text-sm: clamp(0.89rem, 0.82rem + 0.35vw, 0.98rem);
    --text-base: clamp(1rem, 0.92rem + 0.40vw, 1.125rem);       /* body */
    --text-lg: clamp(1.125rem, 1.02rem + 0.55vw, 1.265rem);
    --text-xl: clamp(1.265rem, 1.14rem + 0.70vw, 1.424rem);     /* h6 */
    --text-2xl: clamp(1.424rem, 1.28rem + 0.90vw, 1.602rem);    /* h5 */
    --text-3xl: clamp(1.602rem, 1.46rem + 1.10vw, 1.802rem);    /* h4 */
    --text-4xl: clamp(1.802rem, 1.67rem + 1.35vw, 2.027rem);    /* h3 */
    --text-5xl: clamp(2.027rem, 1.92rem + 1.65vw, 2.281rem);    /* h2 */
    --text-6xl: clamp(2.281rem, 2.20rem + 2.05vw, 2.566rem);    /* h1 */

    /* Line-height presets (unitless for rhythm) */
    --lh-tight: 1.15;
    --lh-snug: 1.25;
    --lh-normal: 1.5;
    --lh-relaxed: 1.7;

    /* Measure (line length) */
    --measure: 60ch;

    /* Handwritten accent size */
    --text-hand: clamp(1.75rem, 1.4rem + 2.2vw, 3rem);

    color-scheme: light;

}

html {
  scroll-behavior: smooth;
}

@media (max-width: 1280px) {
    :root {
        --text-4xl: clamp(1rem, 0.9rem + 0.9vw, 1.5rem);
    }
}

@media (max-width: 600px) {
    :root {
        /* Slightly larger body text on small screens */
        --text-base: clamp(1.0625rem, 1rem + 0.5vw, 1.125rem);
    }
}

/* System dark mode (only if you haven't explicitly set a theme) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]):not(.dark-disabled) {
    --color-bg: #22262e;
    --color-bg-card: #2b3039;
    --color-bg-voyage-card: #2b3039;
    --color-bg-formfields: #353c4a;
    --color-border-card: #16181d;
    --color-primary: #e5e7eb;
    --color-primary-inverted: #2E3B4E;
    --color-text: var(--color-primary);
    --button-primary-bg: var(--color-secondary-orange);
    --button-primary-text: #fff;
    --button-primary-border: transparent;
    color-scheme: dark;
  }

  .asto-logo img {
    content: url("../images/ASTOMemberLogo-Light.png");
    max-height: 100px;
  }
}

/* Explicit dark mode via attribute OR class */
:root[data-theme="dark"],
:root.dark {
  --color-bg: #22262e;
  --color-bg-card: #2b3039;
  --color-bg-voyage-card: #2b3039;
  --color-bg-formfields: #353c4a;
  --color-border-card: #16181d;
  --color-primary: #e5e7eb;
  --color-primary-inverted: #2E3B4E;
  --color-text: var(--color-primary);
  --button-primary-bg: var(--color-secondary-orange);
  --button-primary-text: #fff;
  --button-primary-border: transparent;
  color-scheme: dark;
}


:root[data-theme="dark"] .asto-logo img,
:root.dark .asto-logo img {
  content: url("../images/ASTOMemberLogo-Light.png");
  max-height: 100px;
}

/* == 02. Typography & body copy ========================================== */
html {
    font-family: var(--font-sans);
    font-size: 100%;
    line-height: var(--lh-normal);
    color: var(--color-text);
    background: var(--color-bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin:0;
    font-size: var(--text-base);
    color: var(--color-primary);
    background-color: var(--color-bg);
}

p {
    font-size: var(--text-base);
    font-weight: var(--weight-light);
    color: var(--color-primary);
    text-align: left;
    line-height: var(--lh-relaxed);
}

p + p {
    margin-top: 0.75em;
}

p a {
    color: var(--color-secondary-orange); 
    font-weight: var(--weight-regular);
    text-decoration: none;
}

p a:hover {
    text-decoration: underline;
}

.text-bold {
    font-weight: var(--weight-xtrabold);
}

h1 {
    font-size: var(--text-6xl);
    font-weight: var(--weight-xtrabold);
}

h2 {
    font-size: var(--text-5xl);
    font-weight: var(--weight-bold);
}

h3 {
    text-transform: uppercase;
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
}
h3::after {
  content: ".";
  color: var(--color-secondary-orange);
}

h4 {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    margin-top: 0;
    margin-bottom: 0.8em;
}

h5 {
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
    margin-bottom: 0;
}

h6 {
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    margin-bottom: 0;
}

strong {
  font-weight: var(--weight-semibold);
}

small {
  font-size: var(--text-xs);
}

.blog-time-read {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-weight: var(--weight-light);
  font-size: var(--text-base);
  text-align: center;
}

.blog-time-read-divider {
  flex: 0 0 100%;
  width: 50%;
  margin: 1rem auto 0;
}

hr {
    border: none;
    height: 2px;
    width: 60%;              /* line takes up half the container width */
    background-color: var(--color-grey);
    margin: 6rem auto;        /* centers it horizontally */
    border-radius: 5px;
}

table {
    width: 100%;
    border-collapse: collapse;
    /* Ensures single outer border */
    border: 1px solid var(--color-primary);
    font-size: var(--text-base);
}

thead {
    background-color: var(--color-bg-light, #f8f9fa);
}

th,
td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-primary);
}

th {
    font-weight: var(--weight-bold);
    color: var(--color-primary);
}

tbody tr:last-child td {
    border-bottom: none;
    /* Removes the last bottom line for cleaner look */
}

/* Optional: subtle row highlight on hover */
tbody tr:hover {
    background-color: var(--color-bg-hover, #f1f3f5);
}

/* Optional: make text wrap and not break layout */
td {
    word-wrap: break-word;
}


  /* Ensure proper contrast in dark mode */
  :root[data-theme="dark"] thead,
  :root.dark thead>tr>th {
    background-color: var(--color-primary);
    color: #2E3B4E;
    border-bottom: 1px solid var(--color-primary);
  }


/* Dark mode hover */
:root[data-theme="dark"] tbody tr:hover,
:root.dark tbody tr:hover {
    background-color: #2b3039;
    /* subtle lighter tone against dark background */
}

/* == 03. Content helpers & utilities ==================================== */

/* Font size utilities using your fluid scale */
.text-xs    { font-size: var(--text-xs); }
.text-sm    { font-size: var(--text-sm); }
.text-base  { font-size: var(--text-base); }
.text-lg    { font-size: var(--text-lg); }
.text-xl    { font-size: var(--text-xl); }
.text-2xl   { font-size: var(--text-2xl); }
.text-3xl   { font-size: var(--text-3xl); }
.text-4xl   { font-size: var(--text-4xl); }
.text-5xl   { font-size: var(--text-5xl); }
.text-6xl   { font-size: var(--text-6xl); }
.secondary-blue { color: var(--color-secondary-blue)!important; }

.light      { font-weight: var(--weight-light); }
.regular    { font-weight: var(--weight-regular); }
.semibold   { font-weight: var(--weight-semibold); }
.bold       { font-weight: var(--weight-bold); }
.xtrabold   { font-weight: var(--weight-xtrabold); }

.orange {
    color: var(--color-secondary-orange);
}

.section-header {
  font-size: var(--text-6xl);
  font-weight: var(--weight-light);
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  text-align: center;
}

.section-header > strong {
  font-weight: var(--weight-bold);
}

.section-header-p {
  margin-top: 0;
  margin-bottom: 50px;
  text-align: center;
}

.margin-top-20 {
    display: inline-block;
    margin-top: 20px;
}

.margin-top-50 {
  display: inline-block;
  margin-top: 50px;
}

.margin-bottom-0 {
  margin-bottom: 0;
}

.margin-top-0 {
  margin-top: 0;
}

.section-top-0 {
  padding-top: 0 ;
}

.section-top-80 {
  padding-top: 80px;
}

.padding-top-20 {
  padding-top: 20px;
}

.padding-top-50 {
  padding-top: 50px;
}

/* Accent (Reenie Beanie) for logos, notes, signatures) */
.handwritten {
    font-family: var(--font-hand);
    font-size: 6rem;
    font-weight: var(--weight-regular);
    color: var(--color-secondary-blue);
    line-height: var(--lh-tight);
    margin: 0;
}

@media (min-width: 1501px) {
  .handwritten-voyage {
    margin-top: 80px;
    font-size: 8rem;
  }
}

@media (max-width: 768px) {
  .handwritten-voyage {
    font-size: 3rem;
  }
}

/* Offset the scroll position so section headings aren’t hidden */
.section-anchor {
  scroll-margin-top: var(--sticky-offset, 96px);
}

.standard-content ol {
    font-size: var(--text-base);
    font-weight: var(--weight-light);
    color: var(--color-primary);
    text-align: left;
    line-height: var(--lh-relaxed);
}

.standard-content ul {
    font-size: var(--text-base);
    font-weight: var(--weight-light);
    color: var(--color-primary);
    text-align: left;
    line-height: var(--lh-relaxed);
}

.standard-content ol>li {
    margin-bottom: 20px;
}

/* Image gallery (TinyMCE inserted) */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (max-width: 1200px) {
  .image-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .image-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .image-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .image-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .standard-content .image-gallery__item img {
    border-radius: 10px!important;
  }
  .image-gallery__item {
    border-radius: 10px !important;
  }
}

.image-gallery__item {
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 25px;
}

.image-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.standard-content .image-gallery__item img {
    max-width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 25px;
}

.long-title {
  font-size: 2.5rem!important;
}

.standard-content ol>li a,
.standard-content ul>li a {
    color: var(--color-secondary-orange);
    font-weight: var(--weight-regular);
    text-decoration: none;
}

.standard-content ol>li a:hover,
.standard-content ul>li a:hover {
    text-decoration: underline;
}

.standard-content ol>li:last-child {
    margin-bottom: 0;
}

.standard-content>h3 {
  text-transform: uppercase;
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
}

.standard-content>h3::after {
  content: ".";
  color: var(--color-secondary-orange);
}

.standard-content img {
  border-radius: 25px;
  max-width: 80%;
  height: auto;
  display: block;
  margin: 20px auto;
}

.standard-content img.content-image-left {
  float: left;
  width: 320px;
  max-width: 45%;
  display: block;
  margin: 0 1.5rem 1rem 0;
}

.standard-content img.content-image-right {
  float: right;
  width: 320px;
  max-width: 45%;
  display: block;
  margin: 0 0 1rem 1.5rem;
}

@media (max-width: 700px) {
  .standard-content img.content-image-left,
  .standard-content img.content-image-right {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1rem;
  }
}

.two-column > p.handwritten {
    font-size: var(--text-6xl);
    color: var(--color-secondary-blue);
    text-align: center;
}

.two-column > p > strong {
    font-weight: var(--weight-bold);
}

.two-column img {
    border-radius: 25px;
}

.two-column > ol {
    font-size: var(--text-base);
    font-weight: var(--weight-light);
    color: var(--color-primary);
    text-align: left;
    line-height: var(--lh-relaxed);
}

.two-column > ol > li {
    margin-bottom:20px;
}

.two-column>ol>li a,
.two-column>ul>li a {
    color: var(--color-secondary-orange);
    font-weight: var(--weight-regular);
    text-decoration: none;
}

.two-column>ol>li a:hover,
.two-column>ul>li a:hover {
    text-decoration: underline;
}

.two-column > ol > li:last-child {
  margin-bottom: 0;
}

.two-column>h3 {
  text-transform: uppercase;
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
}

.two-column>h3::after {
  content: ".";
  color: var(--color-secondary-orange);
}

.single-column > h3 {
  text-transform: uppercase;
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
}

.single-column>h3::after {
  content: ".";
  color: var(--color-secondary-orange);
}

.single-column > p.handwritten {
    font-size: var(--text-6xl);
    color: var(--color-secondary-blue);
    text-align: center;
}

.single-column img {
    border-radius: 25px;
    max-width: 100%;
    height: auto;
}

.single-column .aligncenter,
.single-column img.aligncenter {
    display: block;
    margin: 0.5rem auto 1rem;
}

@media (min-width: 1550px) {
    .single-column .alignleft,
    .single-column img.alignleft {
        float: left;
        margin: 0.25rem 1.25rem 1rem 0;
    }

    .single-column .alignright,
    .single-column img.alignright {
        float: right;
        margin: 0.25rem 0 1rem 1.25rem;
    }
}

@media (max-width: 1549px) {
    .single-column .alignleft,
    .single-column img.alignleft,
    .single-column .alignright,
    .single-column img.alignright {
        float: none;
        display: block;
        margin: 0.5rem auto 1rem;
    }
}

.single-column > p > strong {
    font-weight: var(--weight-bold);
}


.single-column > ol,
.single-column > ul {
    font-size: var(--text-base);
    font-weight: var(--weight-light);
    color: var(--color-primary);
    text-align: left;
    line-height: var(--lh-relaxed);
    /* Keep list items aligned as one block when adjacent to floated images */
    display: flow-root;
}

.single-column > ol > li,
.single-column > ul > li {
    margin-bottom:10px;
}

.single-column >ol > li strong,
.single-column >ul > li strong {
    font-weight: var(--weight-semibold);
}

.single-coloum > ol > li a,
.single-column > ul > li a {
    color: var(--color-secondary-orange);
    font-weight: var(--weight-regular);
    text-decoration: none;
}

.single-coloum>ol>li a:hover,
.single-column>ul>li a:hover {
    text-decoration: underline;
}

.single-column > ol > li:last-child,
.single-column > ul > li:last-child {
  margin-bottom: 0;
}


.blog-title-h2 {
    font-size: var(--text-5xl);
    font-weight: var(--weight-bold);
    margin: 0;
}

.blog-title-h3 {
    font-size: var(--text-5xl);
    font-weight: var(--weight-light);
    margin: 0;
}

.text-center {
    text-align: center;
}

.upper-case {
    text-transform: uppercase;
}

.contact-social {
    display: flex;
    justify-content: flex-start;
    /* push to the right */
    align-items: center;
}

.contact-social a {
    color: var(--color-primary);
    /* matches your footer text color */
    transition: color 0.2s ease;
    font-size: var(--text-6xl);
}

.contact-social a:hover {
    color: var(--color-secondary-blue);
    /* hover color */
}

.tracker-log-aside {
  font-weight: var(--weight-light);
}

.video-wrapper {
  position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
}

.video-wrapper iframe {
  position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 16px;
    display: block;
}

/* =========================================================
CTA Card Button
========================================================= */
.cta-card {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    border-radius: 20px;
    overflow: hidden;
    height: 90px;
    border: 1px solid var(--color-border-card);
}

/* Image fills full height */
.cta-image {
    flex: 0 0 80px;
    /* locks width and matches button height */
    height: 100%;
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text fills remaining space */
.cta-text {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.cta-text-inner {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: var(--text-sm, 0.875rem);
    color: var(--color-text-light, #777);
    font-weight: var(--weight-normal, 400);
    margin-bottom: 2px;
}

.cta-title {
    font-size: var(--text-xl, 1.25rem);
    font-weight: var(--weight-bold);
    color: var(--color-primary);
}

.cta-card:hover .cta-title {
    color: var(--color-secondary-orange);
}

/* Reverse layout for right-hand image */
.cta-card--reverse {
    flex-direction: row-reverse;
    /* flips image + text order */
}

.cta-card--reverse .cta-text {
    text-align: right;
    padding: 0 1rem 0 0;
    /* adjust padding so text sits nicely */
}

.cta-card--reverse .cta-text {
    justify-content: flex-end;
    /* pushes text to the right side of the flex container */
    text-align: right;
    /* aligns multi-line text to the right */
    padding: 0 1rem 0 0;
    /* tweak right padding */
}

/* For CTA grids, use 2 columns on medium+ screens */
@media (min-width: 800px) {
    .cta-grid {
    grid-template-columns: repeat(2, 1fr);
    }
}

/* == 04. Forms & input controls ========================================== */

form {
  border-radius: 20px;
  border: 1px solid var(--color-border-card);
  background: var(--color-bg-card);
  padding: 40px;
}

.donation-form {
  background: var(--color-bg-formfields);
}

.donation-form input[type="text"],
.donation-form input[type="email"],
.donation-form input[type="password"],
.donation-form input[type="number"],
.donation-form input[type="datetime-local"],
.donation-form input[type="date"],
.donation-form input[type="tel"],
.donation-form input[type="file"],
.donation-form textarea,
.donation-form select {
  background-color: #fff;
  border-color: var(--color-border-card);
}

.form-card {
  margin: 0 0 1.5rem;
  padding: 0 1.5rem 0 1.5rem;
  border: 1px solid var(--color-border-card);
  border-radius: 20px;
  background: var(--color-bg-card);
}

.form-card > :last-child {
  margin-bottom: 0;
}

fieldset.form-card {
  min-inline-size: 0;
}

fieldset.form-card > legend {
  display: inline-block;
  width:auto;
  padding: 0 0.35rem;
  margin: 0 0 1rem;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-secondary-blue);
}

.option-label__question {
  display: inline-block;
  font-weight: var(--weight-bold);
  margin-bottom: 0.5rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-row .form-group {
  flex: 1 1 220px;
  margin-bottom: 0;
}

.input-prefix {
  position: relative;
}

.input-prefix-text {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-weight: var(--weight-bold);
  pointer-events: none;
}

.input-prefix .input-prefix-field {
  padding-left: 2.6rem;
}

label {
  display: block;
  font-weight: var(--weight-bold);
  margin-bottom: 0.5rem;
}

/* Align wrapped text with the start of label text for inline radio/checkbox */
.option-label {
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  padding-right: 10px;
  font-weight: var(--weight-regular);
}

.option-label input[type="radio"],
.option-label input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 0.45rem;
  margin-right: 0.45rem
}

.donation-amounts .form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.donation-amounts .form-check-input {
  margin: 0;
}

.donation-amounts .form-check-label {
  display: inline-block;
  margin: 0;
}

.prompt {
  font-size: var(--text-xs);
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

legend {
  display: none;
  padding: 0;
  margin: 0;
}

/* ===============================
   Base Controls (shared styles)
=============================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
input[type="date"],
input[type="tel"],
input[type="file"],
textarea,
select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-primary);
  background-color: var(--color-bg-formfields);
  border: 1px solid transparent;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
}

/* Standard padding for most fields */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
  padding: 0.75rem 1rem;
}

/* TinyMCE form editor should follow the same field tokens */
.tox-tinymce {
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background-color: var(--color-bg-formfields) !important;
  transition: all 0.2s ease-in-out !important;
}

.tox .tox-editor-header,
.tox .tox-statusbar,
.tox .tox-edit-area,
.tox .tox-sidebar-wrap {
  background-color: var(--color-bg-formfields) !important;
  border-color: transparent !important;
}

.tox:not(.tox-tinymce-inline) .tox-editor-header,
.tox .tox-toolbar-overlord,
.tox .tox-toolbar__primary {
  box-shadow: none !important;
  border: 0 !important;
}

.tox .tox-editor-header {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.tox .tox-toolbar-overlord,
.tox .tox-toolbar__primary,
.tox .tox-toolbar__group {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.tox .tox-edit-area::before {
  border: 0 !important;
}

.tox-tinymce:focus-within {
  outline: none;
  border-color: var(--color-secondary-blue) !important;
  background-color: var(--color-bg-formfields) !important;
  box-shadow: 0 0 0 1px var(--color-secondary-blue) !important;
}

/* ===============================
   Focus State (shared)
=============================== */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-secondary-blue);
  background-color: var(--color-bg-formfields);
  box-shadow: 0 0 0 1px var(--color-secondary-blue);
}

/* ===============================
   Error State (shared)
=============================== */
.has-error input,
.has-error textarea,
.has-error select {
  border-color: #c00;
  background-color: #f8dede;
}

.has-error .error-message {
  color: #c00;
  font-weight: var(--weight-regular);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ===============================
   Success State (shared)
=============================== */
.no-error input,
.no-error textarea,
.no-error select {
  border-color: rgb(0, 204, 34);
  background-color: #def8de;
}

.no-error .success-message {
  color: rgb(0, 204, 34);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ===============================
   Select (custom arrow)
=============================== */
select {
  appearance: none;
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'><path fill='none' stroke='%23aaa' stroke-width='2' d='M1 1l6 6 6-6'/></svg>");
}

/* ===============================
   Datetime-local
=============================== */
input[type="datetime-local"] {
  padding: 0.75rem 2.5rem 0.75rem 1rem; /* room for picker icon */
  appearance: none; /* minimise UA quirks */
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.8;
  margin-right: 0.5rem;
}
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

input[type="datetime-local"]::-webkit-datetime-edit,
input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper,
input[type="datetime-local"]::-webkit-datetime-edit-year-field,
input[type="datetime-local"]::-webkit-datetime-edit-month-field,
input[type="datetime-local"]::-webkit-datetime-edit-day-field,
input[type="datetime-local"]::-webkit-datetime-edit-hour-field,
input[type="datetime-local"]::-webkit-datetime-edit-minute-field,
input[type="datetime-local"]::-webkit-datetime-edit-ampm-field { color: inherit; }

input[type="datetime-local"]::-webkit-clear-button { display: none; }

/* ===============================
   File input
=============================== */
input[type="file"] { padding: 0.5rem; } /* space around filename text */

input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button { /* WebKit fallback included */
  margin-right: 1rem;
  padding: 0.5rem 0.9rem;
  border: 0;
  border-radius: 6px;
  background: var(--color-secondary-blue);
  color: #fff;
  font-weight: var(--weight-bold);
  cursor: pointer;
  transition: filter 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover { filter: brightness(1.06); }
input[type="file"]::file-selector-button:active,
input[type="file"]::-webkit-file-upload-button:active { filter: brightness(0.95); }

input[type="file"]:focus {
  outline: none;
  border-color: var(--color-secondary-blue);
  box-shadow: 0 0 0 1px var(--color-secondary-blue);
}

/* ===============================
   Inputs with unit suffix
=============================== */
.input-with-unit {
  position: relative;
  display: inline-block;
  width: 100%;
}
.input-with-unit input { padding-right: 3rem; } /* space for unit */

.input-with-unit::after {
  content: attr(data-unit);
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-weight: var(--weight-bold);
  font-size: 0.95rem;
  pointer-events: none;
  opacity: 0.8;
}

/* ===============================
   Checkboxes
=============================== */
/* ===============================
   Custom checkbox for:
   .checkbox-group > .checkbox-wrapper > input[type=checkbox] + .checkbox-label
=============================== */

/* Spacing between items */
.checkbox-group {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-sans, system-ui, sans-serif);
  color: var(--color-primary, #111);
}

/* Layout: align box with first line of multi-line label */
.checkbox-wrapper {
  position: relative;
  display: flex;
  align-items: flex-start;
}

/* Visually hide native box but keep it focusable and in the a11y tree */
.checkbox-wrapper input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 0rem;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  opacity: 0;
  appearance: none;
  pointer-events: none;
}

/* Label holds text and draws the custom control */
.checkbox-label {
  position: relative;
  margin: 0;
  line-height: 1.5;
  padding-left: 2rem;
  cursor: pointer;
  font-weight: var(--weight-light);
}

/* Box (keep your existing rule) */
.checkbox-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: .35rem;
  border: 2px solid var(--color-border-card, #c8d0d8);
  background: var(--color-bg-formfields, #fff);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
  z-index: 0;
}

/* NEW: Tick positioned relative to the box, not the label */
.checkbox-label::after {
  content: "";
  position: absolute;
  left: .18rem;
  top: .1rem;
  width: .36rem;
  height: .72rem;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) scale(0);
  transform-origin: bottom left;
  opacity: 0;
  transition: transform .18s ease, opacity .15s ease;
  z-index: 1;
}

/* Checked state (single rule) */
.checkbox-wrapper input[type="checkbox"]:checked+.checkbox-label::before {
  background: var(--color-secondary-blue, #1b69d2);
  border-color: var(--color-secondary-blue, #1b69d2);
}

.checkbox-wrapper input[type="checkbox"]:checked+.checkbox-label::after {
  transform: rotate(45deg) scale(1);
  opacity: 1;
}

/* Hover (optional subtle cue) */
.checkbox-wrapper:hover .checkbox-label::before {
  border-color: var(--color-secondary-blue, #1b69d2);
}

/* Keyboard focus */
.checkbox-wrapper input[type="checkbox"]:focus-visible+.checkbox-label::before {
  box-shadow: 0 0 0 2px var(--color-secondary-blue, #1b69d2);
}

/* Disabled state */
.checkbox-wrapper input[type="checkbox"]:disabled+.checkbox-label {
  opacity: .6;
  cursor: not-allowed;
}

.checkbox-wrapper input[type="checkbox"]:disabled+.checkbox-label::before {
  background: var(--color-bg-formfields, #f7f9fc);
  border-color: var(--color-border-card, #c8d0d8);
}

/* Error state: add .has-error on .checkbox-group when invalid */
.checkbox-group.has-error .checkbox-label::before {
  border-color: #c00;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, .15);
}

/* Optional: give extra space if feedback text is present */
.checkbox-group:has(.invalid-feedback),
.checkbox-group:has(.valid-feedback) {
  margin-bottom: 1.25rem;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

  .checkbox-label::after,
  .checkbox-label::before {
    transition: none;
  }
}

/* ===============================
   Dark Mode (scoped + DRY)
=============================== */
:root[data-theme="dark"] input[type="text"],
:root[data-theme="dark"] input[type="email"],
:root[data-theme="dark"] input[type="password"],
:root[data-theme="dark"] input[type="number"],
:root[data-theme="dark"] input[type="datetime-local"],
:root[data-theme="dark"] input[type="file"],
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select,
:root.dark input[type="text"],
:root.dark input[type="email"],
:root.dark input[type="password"],
:root.dark input[type="number"],
:root.dark input[type="datetime-local"],
:root.dark input[type="file"],
:root.dark textarea,
:root.dark select {
  background-color: #353c4a;
  color: #fff;
  border-color: transparent;
}

:root[data-theme="dark"] input:focus,
:root[data-theme="dark"] textarea:focus,
:root[data-theme="dark"] select:focus,
:root.dark input:focus,
:root.dark textarea:focus,
:root.dark select:focus {
  background-color: #353c4a;
  color: #fff;
  border-color: var(--color-secondary-blue);
  box-shadow: 0 0 0 1px var(--color-secondary-blue);
}



/* Datetime picker visibility in dark */
:root[data-theme="dark"] input[type="datetime-local"]::-webkit-calendar-picker-indicator,
:root.dark input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(0.9);
  opacity: 0.9;
}

/* Unit hint colour in dark */
:root[data-theme="dark"] .input-with-unit::after,
:root.dark .input-with-unit::after { color: #ccc; }

/* Checkbox dark adjustments */
:root[data-theme="dark"] .checkbox-label::before,
:root.dark .checkbox-label::before {
  background-color: #353c4a;
  border-color: #555;
}
:root[data-theme="dark"] .checkbox-wrapper .checkbox-label,
:root.dark .checkbox-wrapper .checkbox-label { color: #fff; }
:root[data-theme="dark"] .checkbox-wrapper input[type="checkbox"]:checked + .checkbox-label::before,
:root.dark .checkbox-wrapper input[type="checkbox"]:checked + .checkbox-label::before {
  background-color: var(--color-secondary-blue);
  border-color: var(--color-secondary-blue);
}


/* ===============================
  Voyages
=============================== */
.voyage-selector p {
  text-align: center;
}

.voyage-selector p strong {
  font-weight: var(--weight-bold);
}

.voyages-nav {
  display: flex;
  justify-content: center;
  gap: 4rem;
  list-style: none;
  margin: 0rem 0;
  padding: 0;
  text-align: center;
}

.voyages-nav a {
  font-weight: var(--weight-light);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: color 0.2s ease-in-out;
}

.voyages-nav b {
  font-weight: var(--weight-semibold);

}

.voyages-nav a:hover {
  color: var(--color-secondary-blue, #0089BD);
}

/* Optional: make it responsive */
@media (max-width: 768px) {
  .voyages-nav {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Mobile: stack columns */
@media (max-width: 1000px) {
  .hero-mosaic {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 60svh;
  }
  /* keep presence on small screens */
}

#individual-voyages .voyages-container {
  display: grid;
  grid-template-columns: 35% 1fr;
  grid-template-rows: 1fr;
  gap: 20px 40px;
  align-content: center;
}

#individual-voyages .voyage-description-item {
  grid-area: 1 / 1 / 2 / 2;
  justify-self: center;
}

#individual-voyages .voyage-description-item>h4 {
  margin-top: 0;
}

#individual-voyages .voyage-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* When there are multiple cards, make all except the first two share the row */
#individual-voyages .voyage-card-link:first-child {
  grid-column: 1 / -1;
  /* make first card full width */
}

/* All cards after the first should display two per row */
#individual-voyages .voyage-card-link:not(:first-child) {
  grid-column: span 1;
}

/* Two-column layout for subsequent cards */
@media (min-width: 1500px) {
  #individual-voyages .voyage-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  #individual-voyages .voyage-card-link:first-child {
    grid-column: 1 / -1;
    /* still full width for the first */
  }
}

/* Mobile layout: stack description above voyage cards */
@media (max-width: 768px) {
  #individual-voyages .voyages-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
  }

  #individual-voyages .voyage-description-item {
    grid-area: auto;
    /* let it flow naturally */
    justify-self: stretch;
    text-align: center;
  }
}

.voyagedetail_hero_image {
  margin-top: 40px;
}

.voyagedetail_hero_image img {
  width: 100%;
  height: 58vh;
  display: block;
  object-fit: cover;
  border-radius: 45px;
  /* fill the area without distortion */
  object-position: center;
}

.voyagedetail_hero_grid {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 40%;
  grid-template-rows: 1fr;
  gap: 10px 40px;
  align-items: center;
}

.item:nth-child(1) {
  grid-area: 1 / 1 / 2 / 2;
  align-self: center;
}

.item:nth-child(2) {
  grid-area: 1 / 2 / 2 / 3;
  align-self: center;
  justify-self: start;
}

.voyagedetail_hero_meta ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-base);
  font-weight: var(--weight-light);
}

.voyagedetail_hero_meta ul li {
  margin-bottom: 0.8rem;
}

.voyagedetail_hero_meta ul li i {
  background-color: var(--color-grey);
  color: var(--color-bg);
  border-radius: 50%;
  padding: 8px;
  margin-right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: var(--text-base);
}

.voyagedetail_hero_meta p {
  font-size: var(--text-base);
  font-weight: var(--weight-light);
}

/* Stack the voyage summary and its meta details on phone-sized screens. */
@media (max-width: 768px) {
  .voyagedetail_hero_grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 30px;
    align-items: start;
  }

  .voyagedetail_hero_grid > .page-hero-text,
  .voyagedetail_hero_grid > .voyagedetail_hero_meta {
    grid-area: auto;
    width: 100%;
    justify-self: stretch;
  }
}

.voyage-actions {
  display: flex;
  justify-content: space-between;
  /* buttons left, text right */
  align-items: center;
  flex-wrap: wrap;
  /* allows wrapping on smaller screens */
  gap: 1rem;
  /* controls space between groups when wrapping */
}

/* Group the two left buttons */
.voyage-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  /* 👈 adjust this to control spacing between buttons */
}

/* Orange CTA button */
.apply-btn {
  background-color: #FF7240;
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.apply-btn:hover {
  background-color: #ff8a61;
}

.bursary-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.75rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--color-secondary-blue);
  border-radius: 999px;
  color: var(--color-secondary-blue);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bursary-more-btn:hover {
  background: var(--color-secondary-blue);
  color: #fff;
  transform: translateY(-1px);
}

/* Grey circular share icon */
.share-btn {
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #e0e0e0;
  color: #333;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.share-btn:hover {
  background-color: #cfcfcf;
}

/* Right-hand “Setting sail in 30 days” link */
.info-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #555;
  font-weight: 500;
  text-decoration: none;
}

.info-link i {
  color: #999;
  font-size: 0.9rem;
}

.info-link strong {
  color: #333;
  font-weight: 700;
}

.share-wrapper {
  position: relative;
  display: inline-block;
}

/* Your grey circular share icon */
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #e0e0e0;
  color: #333;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.share-btn:hover {
  background-color: #cfcfcf;
}

/* Popover menu */
.share-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 180px;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 20;
}

.share-menu .share-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: none;
  background: none;
  color: #333;
  text-align: left;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
}

.share-menu .share-action:hover {
  background-color: #f1f1f1;
  border-radius: 6px;
}

.voyage_meta {
  margin-bottom: 80px;
}

.voyage_meta ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-base);
  font-weight: var(--weight-light);
}

.voyage_meta ul li {
  margin-bottom: 0.8rem;
}

.voyage_meta ul li i {
  background-color: var(--color-bg-voyage-card);
  color: var(--color-primary);
  border-radius: 50%;
  padding: 8px;
  margin-right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: var(--text-base);
}

.includes_meta {
  margin-bottom: 80px;
}

.includes_meta ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-base);
  font-weight: var(--weight-light);
}

.includes_meta ul li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 0.8rem;
}

.includes_meta ul li i {
  background-color: var(--color-bg-voyage-card);
  color: var(--color-primary);
  border-radius: 50%;
  padding: 8px;
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: var(--text-xs);
}

#map {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border-radius: 22px;
  overflow: hidden;
}

#trackingMap {
  width: 100%;
  height: 100%;
  min-height: 800px;
  border-radius: 22px;
  border: 1px solid var(--color-grey);
  overflow: hidden;
}

/* make sure parent cell stretches to full height */
#gallery.grid-col-span-2 {
  display: flex;
  flex-direction: column;
}

#map-item.grid-col-span-2 #map {
  flex: 1;
  /* fills remaining height */
}

#images-map-container.container.grid {
  align-items: stretch;
}

.voyage-detail-gallery .masonry {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 110px;
  gap: 18px;
  grid-auto-flow: dense;
}

.voyage-detail-gallery .masonry-item {
  overflow: hidden;
  border-radius: 22px;
  background: #e9ecef;
}

.voyage-detail-gallery .masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.voyage-detail-gallery .c3 {
  grid-column: span 3;
}

.voyage-detail-gallery .c6 {
  grid-column: span 6;
}

.voyage-detail-gallery .r2 {
  grid-row: span 2;
}

.voyage-detail-gallery .r3 {
  grid-row: span 3;
}

.voyage-detail-gallery .r4 {
  grid-row: span 4;
}

.voyage-detail-modals .msp-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.voyage-detail-modals .msp-modal[aria-hidden="false"] {
  display: block;
}

.voyage-detail-modals .msp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.voyage-detail-modals .msp-modal__dialog {
  position: relative;
  max-width: 640px;
  margin: 6vh auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.voyage-detail-modals .msp-modal__dialog--wide {
  max-width: 760px;
  max-height: min(80vh, 720px);
}

.voyage-detail-modals .msp-modal__header {
  background: #2e3b4e;
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.voyage-detail-modals .msp-modal__title {
  margin: 0;
  font-size: 1.125rem;
}

.voyage-detail-modals .msp-modal__close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.voyage-detail-modals .msp-modal__body {
  padding: 20px;
}

.voyage-detail-modals #voyageBursaryModal .msp-modal__body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.voyage-detail-modals .bursary-modal-intro p,
.voyage-detail-modals .bursary-section-copy p {
  margin: 0 0 1rem;
  color: #4b5563;
}

.voyage-detail-modals .bursary-section-list {
  margin: 0;
  padding-left: 1.25rem !important;
  list-style: disc !important;
}

.voyage-detail-modals .bursary-section-list li {
  margin-bottom: 1rem;
  list-style: disc !important;
}

.voyage-detail-modals .bursary-section-list__title {
  display: inline;
}

.voyage-detail-modals .bursary-section-list__detail {
  display: block;
  margin-top: 0.35rem;
  font-size: var(--text-sm) !important;
  line-height: 1.6;
}

.voyage-detail-modals .bursary-modal-intro p:last-child {
  margin-bottom: 1.75rem;
}

.voyage-detail-modals .bursary-fund-list,
.bursary-fund-list {
  display: grid;
  gap: 1rem;
  flex: 1 1 auto;
  min-height: 0;
  margin: 1.5rem 0;
}

.voyage-detail-modals .bursary-fund-list {
  overflow-y: auto;
  padding-right: 0.35rem;
  scrollbar-color: var(--color-secondary-blue) auto;
}

.voyage-detail-modals .bursary-fund-list::-webkit-scrollbar-thumb {
  background: var(--color-secondary-blue);
  border-radius: 999px;
}

.voyage-detail-modals .bursary-fund-list::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary-blue);
}

.voyage-detail-modals .bursary-fund-list::-webkit-scrollbar-button {
  background-color: #fff;
  color: var(--color-secondary-blue);
}

.voyage-detail-modals .bursary-fund-card,
.bursary-fund-card {
  padding: 1rem 1.1rem;
  border: 1px solid #d7e7ef;
  border-radius: 14px;
  background: #f8fcfe;
}

.voyage-detail-modals .bursary-fund-card + .bursary-fund-card,
.bursary-fund-card + .bursary-fund-card {
  box-shadow: inset 0 1px 0 rgba(0, 137, 189, 0.08);
}

.voyage-detail-modals .bursary-fund-card__title,
.bursary-fund-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--color-secondary-blue, #0089BD);
}

.voyage-detail-modals .bursary-fund-card__detail,
.bursary-fund-card__detail {
  color: #25313c;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.voyage-detail-modals .waitlist-modal-intro {
  margin-bottom: 1.5rem;
}

.voyage-detail-modals .waitlist-modal-intro p {
  margin: 0 0 0.85rem;
  color: #4b5563;
  line-height: 1.65;
}

.voyage-detail-modals .waitlist-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.voyage-detail-modals .form-group {
  margin-bottom: 16px;
}

.voyage-detail-modals .form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.voyage-detail-modals .form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.voyage-detail-modals .form-control--invalid {
  border-color: #b00020;
  background: #fff8f8;
}

.voyage-detail-modals .form-control:focus {
  outline: 2px solid #2e3b4e22;
  border-color: #2e3b4e;
}

.voyage-detail-modals .invalid {
  color: #b00020;
  display: block;
  margin-top: 6px;
}

.voyage-detail-modals .valid {
  color: #1b7e3c;
  display: block;
  margin-top: 6px;
}

.voyage-detail-modals .d-none {
  display: none;
}

.voyage-detail-modals .notice {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.voyage-detail-modals .notice--warn {
  background: #e6faffff;
  border: 1px solid #90b3ffff;
}

:root[data-theme="dark"] #initialOptionsForm > div.notice.notice--warn,
:root.dark #initialOptionsForm > div.notice.notice--warn {
  background-color: #353c4a;
  border-color: var(--color-secondary-blue);
}

.voyage-detail-modals .form-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.voyage-detail-modals .btn-visit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.voyage-detail-modals .static-field {
  padding: 10px 12px;
  background: #f7f7f9;
  border: 1px solid #e5e5ea;
  border-radius: 10px;
  font-size: 0.95rem;
}

.voyage-detail-modals .waitlist-form__actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-start;
}

.voyage-detail-modals .waitlist-optional {
  color: #6b7280;
  font-weight: 400;
}

@media (prefers-reduced-motion: no-preference) {
  .voyage-detail-modals .msp-modal__dialog {
    transform: translateY(10px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .voyage-detail-modals .msp-modal[aria-hidden="false"] .msp-modal__dialog {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .voyage-detail-modals .waitlist-form__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  #images-map-container.container.grid {
    grid-template-columns: 1fr;
  }

  #images-map-container .grid-col-span-2 {
    grid-column: auto;
  }

  .voyage-detail-gallery .masonry {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 100px;
  }
}

@media (max-width: 580px) {
  .voyage-detail-gallery .masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .voyage-detail-gallery .masonry-item {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* ===============================
  Back to top
=============================== */
.back-to-top-wrapper {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
  margin-top: 1rem;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--color-border-card);
  background: transparent;
  transition: all 0.25s ease;
  text-decoration: none;
  font-size: 2rem;
}

.back-to-top:hover {
  color: var(--color-primary);
  background: rgba(0, 0, 0, 0.05);
}


/* ===============================
  Divider
=============================== */
.section-divider {
  padding-top: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  margin: 4rem auto;
  color: #aaa;
  text-align: center;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ccc;
  margin: 0 1rem;
}

.section-divider i {
  font-size: 1.2rem;
  color: var(--color-secondary-orange);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 95%;
  margin: 1rem auto;
  color: #aaa;
  text-align: center;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ccc;
  margin: 0 1rem;
}

.divider i {
  font-size: 1.2rem;
  color: var(--color-secondary-orange);
}
/* == 05. Layout foundations ============================================== */
/* Always use border-box so padding doesn't cause overflow */
html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Base container */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1em;
  padding-left: 1em;
  max-width: 1320px;
}

/* Full-width container */
.container-fluid {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-inline: 2rem;
}

/* Grid: start with 1 column, then scale up */
.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  /* prevent implicit wide columns */
  align-items: center;
}

.wider-gap {
  gap: 8rem;
}

@media (max-width: 768px) {
  .wider-gap {
    gap: 2rem;
  }
}

.blog-intro {
  margin-bottom: 0px;
}

@media (min-width: 500px) {
  .blog-intro {
    margin-bottom: 50px;
  }
}

section {
  padding-top: 180px;
}

@media (min-width: 500px) {
  .container {
    width: 100%;
    padding-inline: 2rem;
  }

  .grid {
    grid-template-columns: repeat(1, 1fr);
  }

  section {
    padding-top: 50px;
  }
}

@media (min-width: 800px) {
  .container {
    max-width: 1000px;
    padding-inline: 2rem;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-col-span-2 {
    grid-column: span 2;
  }

  .cta-grid-col-span-2 {
    grid-column: span 1;
  }

  .grid-col-span-3 {
    grid-column: span 3;
  }

  .grid-col-span-4 {
    grid-column: span 4;
  }

  section {
    padding-top: 100px;
  }
}

@media (min-width: 1550px) {
  .container {
    max-width: 1550px;
  }

  .grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid-col-span-2 {
    grid-column: span 2;
  }

  .cta-grid-col-span-2 {
    grid-column: span 2;
  }

  .grid-col-span-3 {
    grid-column: span 3;
  }

  .grid-col-span-4 {
    grid-column: span 4;
  }

  section {
    padding-top: 50px;
  }
}

/* Half + Thirds layout (mobile-first) */
.layout-half-plus-thirds {
  display: grid;
  gap: 1.5rem;
  /* matches your .grid gap */
  grid-template-columns: 1fr;
  /* stack on small screens */
  align-items: start;
}

@media (min-width: 800px) {
  .layout-half-plus-thirds {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    /* left half / right half */
  }
}

/* The right side: three equal columns (becomes sub-grid on md+) */
.layout-thirds {
  display: grid;
  gap: 1.5rem;
  /* keep spacing consistent */
  grid-template-columns: 1fr;
  /* stack on small screens */
}

@media (min-width: 800px) {
  .layout-thirds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Helpful guardrails for media elements inside the grid */
img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

.grid-center {
  text-align: center;
}

.grid-start {
  text-align: left
}

.grid-top {
  align-self: start;
}


/* Newspaper-style columns */
.two-column {
  columns: 2 28rem;
  /* up to 2 columns, min ~28rem each */
  column-gap: 5rem;
  /* space between columns */
}

.two-column p {
    font-size: var(--text-base);
    font-weight: var(--weight-light);
    color: var(--color-primary);
    text-align: left;
    line-height: var(--lh-relaxed);
}

/* Keep elements from splitting awkwardly */
.two-column p,
.two-column blockquote,
.two-column img,
.two-column ul,
.two-column ol,
.two-column li {
  break-inside: avoid;
  page-break-inside: avoid;
}

/* Make headings span the full width (start new row) */
.two-column h1,
.two-column h2,
.two-column h3 {
  column-span: all;
  margin-top: 1.2em;
}

/* Under Surface Pro width → one column */
@media (max-width: 900px) {
  .two-column {
    columns: 1;
  }
}

.two-column p:first-of-type {
  margin-top: 0;
}


/* Footer ---------------------------------------------------
/*
/* ---------------------------------------------------------- */

/* Default: two columns, socials on the right */
.footer-bottom .grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

/* Neutralise any .grid-col-span-* on these two items */
.footer-bottom .grid>* {
  grid-column: auto !important;
}

.footer-about {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.footer-social {
  justify-self: end;
  display: flex;
  gap: 0.75rem;
}

/* ≤720px: stack, socials drop under to the left */
@media (max-width: 720px) {
  .footer-bottom .grid {
    grid-template-columns: 1fr;
    /* single column */
  }

  .footer-social {
    justify-self: start;
    /* left align */
    margin-top: 0.5rem;
    /* small gap from address */
  }
}
/* == 06. Navigation & header ============================================== */
/* =========================================
   Sticky Site Header + Glass on Scroll
   ========================================= */
.site-nav.sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg);
  /* solid at top */
  transition: background-color .5s, box-shadow .5s, backdrop-filter .5s;
}

/* Frosted glass when scrolled */
.site-nav.sticky.is-scrolled {
  background: color-mix(in srgb, var(--color-bg) 60%, transparent);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  /* Safari/iOS */
  box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
}

/* =========================================
   Nav layout (transparent container inside header)
   ========================================= */
nav.flexbox {
  position: static;
  /* header does sticky */
  background: transparent;
  /* let header show through */
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  margin-inline: auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* =========================================
   Nav list + links
   ========================================= */
nav.flexbox ul {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  text-transform: uppercase;
}

nav a:hover {

  color: var(--color-secondary-orange);
}

/* =========================================
   Logo
   ========================================= */
nav .logo {
  display: flex;
  align-items: center;
  font-weight: var(--weight-xtrabold);
  font-size: var(--text-3xl);
  color: var(--color-primary);
  text-decoration: none;
}

nav .logo:hover {
  color: var(--color-primary);
  text-decoration: none;
}

nav .logo-dot {
  color: var(--color-secondary-orange);
}

nav .logo img {
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
}

#theme-toggle, #login-button {
  font-size: var(--text-lg);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#theme-toggle:hover, #login-button:hover {
  color: var(--color-secondary-orange);
}

/* ===============  Structure helpers  =============== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Hide burger by default (desktop); show below 1000px */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: var(--text-3xl);
  line-height: 1;
  color: var(--color-primary);
  cursor: pointer;
}

.nav-toggle:hover {
  color: var(--color-secondary-orange);
}

/* Keep your dark-mode button styling (already in nav.css) */

/* =======  Responsive switch at 1500px  ======= */
@media (max-width: 1500px) {

  /* Hide horizontal menu; keep actions (burger + theme) visible */
  nav.flexbox .menu {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* ===============  Off-canvas drawer  =============== */
/* Uses var(--color-bg) as requested */
.offcanvas {
  position: fixed;
  inset: 0 auto 0 0;
  /* left side */
  width: min(82vw, 360px);
  /* comfortable thumb reach */
  transform: translateX(-100%);
  /* hidden by default */
  transition: transform .35s ease;
  background: var(--color-bg);
  /* matches theme variables */
  box-shadow: 6px 0 18px rgba(0, 0, 0, .14);
  z-index: 1100;
  /* above sticky header */
  display: flex;
  flex-direction: column;
  border-right: 1px solid color-mix(in srgb, var(--color-primary) 10%, transparent);
}

/* When opened (JS adds .is-open) */
.offcanvas.is-open {
  transform: translateX(0);
}

/* Header row inside drawer */
.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.offcanvas-title {
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
}

.offcanvas-close {
  background: none;
  border: 0;
  font-size: var(--text-3xl);
  line-height: 1;
  color: var(--color-primary);
  cursor: pointer;
}

/* List inside drawer */
.offcanvas-body {
  padding: 10px 10px 24px 10px;
  overflow-y: auto;
}

#offcanvas-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

#offcanvas-menu>li {
  border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 10%, transparent);
}

#offcanvas-menu a {
  display: block;
  padding: 14px 12px;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  font-size: var(--text-base);
}

#offcanvas-menu a:hover {
  background: color-mix(in srgb, var(--color-bg) 85%, var(--color-primary) 15%);
  text-decoration: none;
}

/* ===============  Overlay behind the drawer  =============== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .28);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1090;
  opacity: 0;
  transition: opacity .25s ease;
}

.nav-overlay.is-open {
  opacity: 1;
}

body.nav-lock {
  overflow: hidden;
}

/* prevent background scroll */

/* Respect motion preference */
@media (prefers-reduced-motion: reduce) {
  .offcanvas {
    transition: none;
  }

  .nav-overlay {
    transition: none;
  }
}






/* ========= Desktop dropdowns ========= */
nav.flexbox .menu>li {
  position: relative;
}

nav.flexbox .menu>li.has-submenu>a::after {
  font-family: "Font Awesome 7 Pro";
  font-weight: 900;
  /* solid style */
  content: "\f107";
  /* caret-down icon */
  margin-left: 0.4rem;
  display: inline-block;
  transition: transform 0.25s ease;
}

/* Rotate the caret when hovering/focusing */
nav.flexbox .menu>li.has-submenu:hover>a::after,
nav.flexbox .menu>li.has-submenu:focus-within>a::after {
  transform: rotate(180deg);
}

/* Base submenu (hidden) */
nav.flexbox .menu .submenu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  background: var(--color-bg);
  border: 1px solid color-mix(in srgb, var(--color-primary) 12%, transparent);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
  display: none;
  z-index: 1200;
}

/* Show on hover/focus for mouse & keyboard */
nav.flexbox .menu>li.has-submenu:hover>.submenu,
nav.flexbox .menu>li.has-submenu:focus-within>.submenu {
  display: block;
}

nav.flexbox .menu .submenu li a {
  display: block;
  padding: 10px 14px;
  text-transform: none;
  /* subitems not SHOUTY */
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  white-space: nowrap;
}

nav.flexbox .menu .submenu li a:hover {
  background: color-mix(in srgb, var(--color-bg) 85%, var(--color-primary) 15%);
  text-decoration: none;
}

/* ========= Off-canvas accordion ========= */
/* Keep the row inline: text on left, caret on right */
#offcanvas-menu li.has-submenu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  /* lets submenu wrap below */
  column-gap: 8px;
}

#offcanvas-menu li.has-submenu>a {
  flex: 1 1 auto;
  padding: 14px 16px;
  line-height: 1.2;
}

/* caret sits inline, clickable */
#offcanvas-menu .submenu-toggle {
  position: static;
  margin-left: 0;
  padding: 8px;
  border: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#offcanvas-menu .submenu-toggle i {
  font-size: 1.1em;
  transition: transform .25s ease;
}

#offcanvas-menu li.open>.submenu-toggle i {
  transform: rotate(180deg);
}

/* collapse the submenu by default */
#offcanvas-menu li.has-submenu>.submenu {
  list-style: none;
  order: 2;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  border-top: 1px solid color-mix(in srgb, var(--color-primary) 10%, transparent);
  background: color-mix(in srgb, var(--color-bg) 92%, var(--color-primary) 8%);
}

/* expand when the parent <li> gets .open */
#offcanvas-menu li.open>.submenu {
  max-height: 600px;
}

#offcanvas-menu .submenu li a {
  padding: 8px ;
  /* indent children */
  text-transform: none;
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
}

/* remove any old rule that added extra right-padding for an absolute caret */
#offcanvas-menu li.has-submenu>a {
  padding-right: 16px !important;
}

/* ============ Submenu dividers ============ */

/* Applies to BOTH desktop and off-canvas submenus */
nav.flexbox .menu .submenu li.divider,
#offcanvas-menu .submenu li.divider {
  height: 1px;
  margin: 6px 10px;
  background: color-mix(in srgb, var(--color-primary) 20%, transparent);
  pointer-events: none;
  /* divider is not clickable */
  border: 0;
}

/* Optional: slightly stronger divider in dark mode */
html.dark nav.flexbox .menu .submenu li.divider,
html.dark #offcanvas-menu .submenu li.divider {
  background: color-mix(in srgb, var(--color-bg) 80%, var(--color-secondary-blue) 40%);
}

/* Respect your breakpoint: desktop keeps hover menus; mobile uses drawer */
@media (max-width: 1000px) {

  /* prevent desktop dropdowns from popping under the sticky bar on narrow screens */
  nav.flexbox .menu .submenu {
    display: none !important;
  }
}
/* == 07. Hero banners ==================================================== */
.hero {
  position: relative;
  
   --corner: clamp(160px, 20vmin, 360px);    /* corner size: never smaller than 160px, scales with viewport, caps at 360px */
  overflow: hidden;

  width: 100%;
  height: 90vh; /* full viewport height */
  background: url("../images/hero.jpeg") no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;       /* vertical centring */
  justify-content: center;   /* horizontal centring */
  color: white;
  text-align: center;
  padding: 0 2rem;           /* breathing room on small screens */
  box-sizing: border-box;
  border-radius: 60px;
}

.hero-title {
  position: absolute;
  left: clamp(20px, 5vw, 64px);
  top: clamp(16px, 8vh, 96px);
  margin: 0;
  color: #fff;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: .03em;
  font-size: clamp(2.4rem, 6.2vw, 9.5rem);
  text-align: left;
  z-index: 1;
  text-shadow: 1px 1px 10px rgba(60, 72, 103, 1);
}

/*--text-2xl: clamp(1.424rem, 1.28rem + 0.90vw, 1.602rem);*/

.hero-lead {
  position: absolute;
  left: clamp(16px, 5vw, 64px);
  bottom: clamp(16px, 7vh, 82px);
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
  font-weight: var(--weight-light);
  text-align: left;
  max-width: var(--measure);
  line-height: 1.6;
  z-index: 1;
}

.hero-button {
  margin-top: 20px;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: var(--text-base);
  border-radius: 14px;
  font-weight: var(--weight-light);
  text-decoration: none;
  transition: all .25s ease;
  background: var(--color-secondary-orange, #ff7a3a);
  color:#fff;
  border: none;
}

.hero-button:hover {
  background: color-mix(in srgb, var(--color-secondary-orange) 85%, black);
  text-decoration: none;
}

.hero-button-outline {
  margin-left: 0.8rem;
  padding: 0.75rem 1.5rem;
  font-size: var(--text-base);
  border-radius: 14px;
  font-weight: var(--weight-light);
  text-decoration: none;
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.hero-button-outline:hover {
  background: rgba(255, 255, 255, .25);
  text-decoration: none;
}

/* Stop the text overflowing on top of the orange triangle */
@media (max-width: 1400px) {
  .hero-lead {
    width: 70vw;
  }
}

.hero-lead strong {
  font-weight: var(--weight-xtrabold);                 /* bold phrases stand out */
}

/* orange corner: always a square, so the 45° stays constant */
.hero::after{
  content:"";
  position:absolute;
  right:0; bottom:0;
  width: var(--corner);
  height: var(--corner);            /* square -> constant diagonal */
  background: var(--color-secondary-orange, #ff7a3a);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  border-bottom-right-radius: 60px; /* match .hero */
  z-index:0;
}

/* place the icons inside the orange triangle (keep your existing positioning) */
.scroll-hint{
  position:absolute;
  right: calc(var(--corner) * 0.0);
  bottom: calc(var(--corner) * 0.28);
  display:flex;                 /* ⬅ row by default */
  flex-direction: row;          /* arrow left, mouse right */
  align-items: flex-end;        /* align to the bottoms */
  gap: .25rem;                  /* very tight spacing */
  line-height: 1;               /* remove extra inline spacing */
  color:#fff;
  z-index:2;
  pointer-events:none;
}

/* arrow on the left with the bobbing animation */
.scroll-hint .arrow{
  order: 0;
  display: inline-block;
  font-size: 2rem;
  animation: scroll-nudge 1.2s ease-in-out infinite;
}

/* mouse icon tight to the arrow */
.scroll-hint .mouse{
  order: 1;
  display: inline-block;
  font-size: 2rem;
  transform: translateY(2px);   /* tiny nudge to align bottoms nicely */
  transform: translateX(-20px);   /* tiny nudge to align bottoms nicely */
  opacity: .95;
}


/* simple up/down nudge + fade */
@keyframes scroll-nudge{
  0%   { transform: translateY(0);   opacity:.6; }
  50%  { transform: translateY(8px); opacity:1;  }
  100% { transform: translateY(0);   opacity:.6; }
}

    
/* mobile-first: image on top, text below */
.page-hero {
  display: grid;
  gap: clamp(1rem, 2.5vw, 3rem);
  grid-template-areas:
    "media"
    "text";
}

/* keep two columns until *under* Surface Pro width */
@media (min-width: 1024px) {
  .page-hero {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    /* 60/40 */
    grid-template-areas: "text media";
    align-items: center;
    /* vertical center */
    min-height: clamp(420px, 60svh, 720px);
  }
}

/* areas */
.page-hero-media {
  grid-area: media;
}

.page-hero-text {
  grid-area: text;
}

@media (min-width: 1600px) {
    .page-hero-text {
      text-align: center;
      justify-self: center;
      /* centers the block within its grid cell */
    }
  
    .page-hero-text p {
      text-align: center;
      margin-inline: auto;
      /* centers the paragraph itself */
      max-width: var(--measure);
    }
}

/* image box (capped height, rounded) */
.page-hero-media {
  height: clamp(320px, 30vw, 600px);
  border-radius: 24px;
  overflow: hidden;
}

/* image fills the box and stays centered */
.page-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}

.page-hero-text h1 {
  font-weight: var(--weight-light);
  color: var(--color-secondary-blue);
  font-size: 6rem;
  margin: 0;
}

@media (max-width: 767px) {
  .page-hero-text h1 {
    font-size: clamp(3.5rem, 16vw, 4.75rem);
  }
}

/* readable line length */
.page-hero-text p {
  max-width: var(--measure);
  line-height: var(--lh-relaxed);
  font-size: var(--text-xl);
  margin-top: 0;
}


/* ===============================
  Voyages
=============================== */

/* Full-bleed utility like your home hero, without horizontal scrollbar */
.bleed {
  width: calc(100vw - (100vw - 100%));
  margin-left: 50%;
  transform: translateX(-50%);
  padding-inline: clamp(12px, 2vw, 24px);
  /* same “breathing” as home hero edges */
}

/* Mosaic layout */
.hero-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  /* ~60/40 */
  gap: clamp(0.5rem, 3vw, 3.25rem);
  align-items: stretch;

  /* one-screen feel like the home page (won’t overshoot the fold) */
  min-height: clamp(520px, 78svh, 900px);
}

/* Right column: two equal tiles stacked */
.hero-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: inherit;
  height: 90vh;
}

/* Cards (no inner padding, rounded corners, hidden overflow) */
figure {
  margin: 0;
}

.hero-card,
.hero-thumb {
  position: relative;
  border-radius: 60px;
  overflow: hidden;
  background: transparent;
  /* match home hero (no grey while loading) */
}

/* Make images behave like background-size: cover */
.hero-card img,
.hero-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* tweak per image if needed */
}

/* Left card fills full section height; right tiles auto-fill due to 1fr rows */
.hero-card {
  height: 90vh;
}

/* Title overlay like home hero */
.hero-copy {
  position: absolute;
  top: clamp(20px, 3vh, 96px);
  left: clamp(20px, 4vw, 48px);
  right: clamp(20px, 6vw, 72px);
  color: #fff;
  text-shadow: 1px 1px 10px rgba(60, 72, 103, 1);
  pointer-events: none;
}

.hero-copy h1 {
  margin: 0;
  font-weight: var(--weight-light);
  line-height: var(--lh-snug);
  font-size: clamp(4.5rem, 6.5vw, 9.5rem);

}

/* Paragraph prompt */
.hero-card .hero-copy p {
  margin-top: 0.5rem;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: #fff;
  text-shadow: 1px 1px 10px rgba(60, 72, 103, 1);
}

/* Orange corner on the bottom-right image (optional) */
.hero-thumb--corner {
  --corner: clamp(120px, 18vmin, 360px);
}

.hero-thumb--corner::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: var(--corner);
  height: var(--corner);
  background: var(--color-secondary-orange);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  border-bottom-right-radius: 28px;
}

/* Scroll hint sits inside the orange corner */
.hero-thumb--corner .scroll-hint {
  position: absolute;
  right: calc(var(--corner)*0.12);
  bottom: calc(var(--corner)*0.28);
  font-size: 2rem;
  color: #fff;
  pointer-events: none;
}
/* == 08. Cards & voyage listings ========================================= */
:where(.intro-card, .link-card, .voyage-card) {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid var(--color-border-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease;
}

.intro-card--single .card-body {
  background: var(--color-bg-voyage-card);
}

.single-column > .intro-card {
  background: var(--color-bg-card);
}

.intro-overlay__inner a {
      margin: 0;
        color: var(--color-primary-inverted);
        font-size: var(--text-base);
        font-weight: var(--weight-semibold);
        line-height: var(--lh-relaxed);
}

.intro-card {
  background: var(--color-bg-voyage-card);
  position: relative;
}

.intro-card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.intro-card-grid--1 {
  grid-template-columns: 1fr;
}

.intro-card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.intro-card-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.intro-card-grid > * {
  width: 100%;
  min-width: 0;
}

.intro-card-slot {
  display: none;
}

.mce-content-body .intro-card-slot {
  display: block;
  border: 2px dashed var(--color-border-card);
  border-radius: 20px;
  padding: 1rem;
  color: var(--color-primary);
  background: var(--color-bg-card);
}

.mce-content-body .intro-card-slot p {
  margin: 0;
}

@media (max-width: 1200px) {
  .intro-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro-card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro-card-grid--1 { grid-template-columns: 1fr; }
}

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

@media (max-width: 600px) {
  .intro-card-grid { grid-template-columns: 1fr; }
  .intro-card-grid--2 { grid-template-columns: 1fr; }
  .intro-card-grid--1 { grid-template-columns: 1fr; }
}

.intro-card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.intro-card > * {
  position: relative;
  z-index: 1;
}

.intro-card .arrow-btn {
  position: relative;
  z-index: 3;
}

.intro-media {
  position: relative;
  height: 350px;
  overflow: hidden;
}

.intro-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform .4s ease;
  transform-origin: center center;
}

.standard-content .intro-media img {
  max-width: 100%;
  margin: 0;
}

.intro-card:hover .intro-media img {
  transform: scale(1.05);
}

.intro-block p {
  margin-top: 1rem;
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
  color: var(--color-primary);
}

.card-body {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

/* Text */
.card-text h3 {
  margin: 0 0 .25rem 0;
  font-size: var(--text-xl, 1.25rem);
  color: var(--color-primary);
  line-height: var(--lh-snug);
}
.card-text p {
  margin: 0;
  margin-bottom: 20px;
  color: var(--color-primary);
}

/* Arrow */
.arrow-btn {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-primary-inverted);
  margin-bottom: -0.4rem;
  margin-right: -0.5rem;
  transition: box-shadow .2s ease;
  text-decoration: none;
}
.arrow-btn i {
  font-size: var(--text-2xl, 1.25rem);
}


.intro-card:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

.landing-card-grid {
  align-items: stretch;
}

.landing-card-grid .intro-card {
  height: 100%;
}

.landing-card-grid .card-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  grid-template-rows: minmax(2.4rem, auto) minmax(3.7rem, auto);
  column-gap: 1rem;
  row-gap: 0;
  align-items: end;
}

.landing-card-grid .card-text {
  display: contents;
}

.landing-card-grid .card-text h3 {
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: start;
}

.landing-card-grid .card-text p {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  margin-bottom: 0;
}

.landing-card-grid .arrow-btn {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
}

@media (prefers-reduced-motion: reduce) {
  .intro-media img { transition: none; }
  .intro-card:hover .intro-media img { transform: none; }
}

/* Donation impact grid */
.donation-impact-grid {
  margin-top: 2.5rem;
  gap: 2.25rem;
}

.donation-impact-card .intro-media {
  height: clamp(230px, 28vw, 320px);
}

.donation-impact-card {
  background: var(--color-bg-voyage-card);
}

.donation-impact-amount {
  display: block;
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: var(--lh-tight);
}

.donation-impact-info {
  padding: 0.9rem 1.25rem;
  background: var(--color-bg-voyage-card);
  border-top: 1px solid var(--color-border-card);
  height: 100px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.35rem;
}

.donation-impact-text {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
  line-height: var(--lh-relaxed);
  color: var(--color-primary);
}

/* Landing page impact band */
.impact-band {
  padding: 3rem 0;
  background-color: #1f2a3a;
  color: #fff;
}

.impact-band__header {
  max-width: 640px;
  margin-bottom: 2rem;
}

.impact-band__title {
  margin: 0 0 .5rem;
  font-size: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.impact-band__intro {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
}

/* Horizontal, responsive grid */
.impact-band__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

/* Centre-align each impact card */
.impact-card {
  text-align: center;
  align-items: center;
  background: #f5f5f5;
  border-radius: 1rem;
  padding: 1.5rem 1.2rem;
}

@media (prefers-color-scheme: dark) {
  .impact-card {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
  }
}

.dark .impact-card {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

/* Larger, centred percentage box with white text */
.impact-card__percent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6.2rem;
  height: 6.2rem;
  border-radius: 1.2rem;
  background: var(--color-secondary-blue);
  color: #fff;
  font-weight: var(--weight-regular);
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
}

.impact-card__label {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 700;
}

.impact-card__text {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.4;
  opacity: 0.9;
  text-align: center;
}

.impact_band__title {
  margin: 0 !important;
}

.impact_band__text {
  margin: 0;
  margin-bottom: 20px;
}

/* --- Hover/focus overlay for intro cards --- */
.intro-media {
  position: relative;
  /* already true in your file, kept for clarity */
  isolation: isolate;
  /* ensure overlay sits above the image */
}

.intro-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  text-align: center;
  border-radius: 0;
  /* matches your current media edges */
  background: color-mix(in srgb, var(--color-primary) 78%, transparent);
  color: var(--color-primary-inverted);
  opacity: 0;
  transition: opacity .25s ease, backdrop-filter .25s ease;
  backdrop-filter: saturate(1.1) blur(1px);
  /* subtle polish */
  z-index: 1;
}

/* content styling */
.intro-overlay__inner h5 {
  margin: 0 0 0.25rem 0;
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: var(--lh-snug);
  text-align: left;
}

.intro-overlay__inner p {
  margin: 0;
  color:var(--color-primary-inverted);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: var(--lh-relaxed);
}

/* reveal on hover + keyboard focus */
.intro-card:hover .intro-overlay,
.intro-card:focus .intro-overlay,
.intro-card:focus-within .intro-overlay {
  opacity: 1;
}

/* Badge for reading time */
.intro-card .badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--color-bg-card, #fff);
  color: var(--color-primary);
  font-size: var(--text-xs, 0.85rem);
  font-weight: var(--weight-semibold, 600);
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 5px;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Insights listing */
.insights-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.85rem 1rem;
  margin: 48px 0 40px;
  justify-content: center;
}

.insights-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.15rem;
  font-size: var(--text-sm);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-card);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
  color: var(--color-primary);
  font-weight: var(--weight-semibold);
}

.insights-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 0.4rem;
  border-radius: 14px;
  background: rgba(46, 59, 78, 0.06);
  font-size: var(--text-xs);
  color: var(--color-primary);
}

.insights-tab:hover {
  border-color: rgba(46, 59, 78, 0.2);
  background: #f7f9fb;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.insights-tab.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-primary-inverted);
  box-shadow: 0 8px 20px rgba(46, 59, 78, 0.18);
}

.insights-tab.active .insights-tab-count {
  background: var(--color-primary-inverted);
  color: var(--color-primary);
}

.insights-meta {
  position: relative;
  color: var(--color-primary);
  font-size: var(--text-xs, 0.85rem);
  font-weight: var(--weight-light, 600);
  margin: 0 0.35rem 0 0;
}

.insights-meta:not(:last-child)::after {
  content: '•';
  display: inline-block;
  margin-left: 0.5rem;
  color: var(--color-primary);
  opacity: 0.7;
}

.insights-meta-row {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.insights-latest .insights-media {
  min-height: 500px;
}

.insights-media {
  position: relative;
  overflow: hidden;
  height: 350px;
}

.insights-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform .4s ease;
  transform-origin: center center;
}

.intro-card:hover .insights-media img {
  transform: scale(1.05);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.75rem;
  width: 100%;
  justify-items: stretch;
  overflow: hidden;
}

@media (min-width: 1100px) {
  .insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 2000px) {
  .insights-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.insights-grid-item {
  height: 100%;
  width: 100%;
  min-width: 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .55s ease, transform .55s ease;
}

.insights-grid-item a.intro-card {
  height: 100%;
  width: 100%;
  min-width: 0;
}

.insights-grid-item a.intro-card article {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.insights-card-body {
  background: var(--color-bg-voyage-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
  padding: 1rem;
}

.insights-card-text p {
  margin: 0;
}

.insights-card-text h3 {
  margin: 0 0 .25rem 0;
  font-size: var(--text-xl, 1.25rem);
  line-height: var(--lh-snug);
  color: var(--color-primary);
}

.insights-grid-item .insights-card-text p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insights-arrow-btn {
  margin-top: auto;
  margin-right: 0;
  margin-bottom: 0;
  align-self: flex-end;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-primary-inverted);
  transition: box-shadow .2s ease;
}

.insights-grid-item.is-hiding {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
}

.insights-grid-item.is-showing {
  animation: insightsFadeIn 380ms ease forwards;
}

.insights-grid-item[hidden] {
  display: none !important;
}

@keyframes insightsFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .insights-filter-tabs {
    padding-inline: 0.75rem;
  }

  .insights-tab {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 820px) {
  .insights-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .insights-media {
    height: 240px;
  }

  .insights-grid-item,
  .insights-grid-item a.intro-card {
    width: 100%;
  }
}


/* ================
   Voyage Cards
   ================ */

.voyage-cards .grid {
  align-items: stretch;
}

.voyage-cards .voyage-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-voyage-card);
}

.voyage-card img {
  display: block;
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.4s ease; /* smooth zoom */
}

.voyage-card:hover img {
  transform: scale(1.05); /* adjust to taste */
}

.voyage-card:hover{
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

/* Image block */
.voyage-card .media{
  position: relative;
  
  overflow: hidden;
}
.voyage-card img{
  width: 100%;
  height: 350px;
  object-fit: cover;

}

/* Category pill */
.voyage-card .badge{
  position: absolute;
  top: 0.75rem;        
  left: 0.75rem;         
  display: inline-block;
  font-size: var(--text-xs, .85rem);
  background: var(--color-bg-card);
  color: var(--color-primary);
  padding: .35rem .55rem;
  border-radius: 5px;
  border: 1px solid rgba(0,0,0,.06);
  white-space: nowrap;
  z-index: 3;            /* above overlay until hidden */
  transition: opacity .25s ease;
}

/* Hide the voyage type badge when overlay is visible */
.voyage-card:hover .badge,
.voyage-card:focus-within .badge {
  opacity: 0;
  visibility: hidden;
}

.voyage-cards .voyage-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.voyage-card-link:hover .voyage-card,
.voyage-card-link:focus .voyage-card {
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
}
.voyage-card-link:focus-visible {
  outline: 2px solid var(--color-secondary-blue);
  outline-offset: 4px;
}

/* Body */
.voyage-body{
  display:flex;
  flex-direction: column;
  flex: 1; 
  gap: .75rem;
  padding: 1rem;
}
.voyage-cards .voyage-title{
  min-height: 2.4em;
}

.voyage-title{
  margin: 0;
  font-size: var(--text-2xl, 1.25rem);
  line-height: 1.2;
  color: var(--color-primary);
  text-transform: uppercase; /* matches the example */
  letter-spacing: .01em;
}

/* Meta row */
.voyage-meta{
  display:flex;
  align-items:center;
  gap: .65rem;
  color: var(--color-muted, #65748b);
  font-size: var(--text-sm, .95rem);
}
.voyage-meta .dot{
  width: .35rem; height: .35rem;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
}

/* Actions */
.voyage-actions{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-top: auto;
}

.voyage-actions .btn-primary{
  display: inline-flex;
  width: 100%;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: .65rem .9rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: var(--weight-light);
  font-size: var(--text-sm);
  background: var(--color-secondary-blue);
  color: #fff;
  transition: filter .2s ease, transform .1s ease;
}
.voyage-actions .btn-primary:hover{ filter: brightness(1.05); }

/* Voyage collection bento grid (Voyages for Individuals) */
.voyage-collection {
  padding: clamp(2.5rem, 3vw, 3.5rem) 0 clamp(3.5rem, 5vw, 5rem);
}

.voyage-collection .section-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem 2rem;
  align-items: end;
  margin-bottom: 1.75rem;
}

.voyage-collection h2 {
  font-size: clamp(1.9rem, 2vw, 2.3rem);
  letter-spacing: -0.5px;
  margin: 0;
}

.voyage-collection .lead-copy {
  color: #30404d;
  max-width: 52ch;
  line-height: 1.6;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3rem;
  grid-auto-rows: minmax(280px, 1fr);
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-card);
  transition: box-shadow .2s ease;
  isolation: isolate;
  container-type: inline-size;
  cursor: pointer;
}

.bento-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
}

.card-hero {
  min-height: 180px;
  background: linear-gradient(180deg, rgba(5, 10, 20, 0), rgba(5, 10, 20, 0)),
    var(--bg-img, linear-gradient(135deg, #0f172a, #1e293b));
  background-size: cover;
  background-position: center;
  flex: 1;
}

.span-2-row .card-hero {
  min-height: 420px;
}

.span-2-col {
  grid-column: span 2;
}

.span-2-row {
  grid-row: span 2;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  background: var(--color-bg-voyage-card-inverted);
  color: var(--color-primary-inverted);
  border-radius: 20px 20px 20px 0px;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  font-weight: 700;
}

.voyage-card .kicker {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  margin: 0;
  border-top-left-radius: 0;
}

.voyage-card-body {
  display: flex;
  flex-direction: column;
  color: var(--color-primary);
  text-align: left;
  align-items: flex-start;
  padding: 0;
}

.voyage-card-body h3 {
  margin: 0 0 .25rem 0;
  font-size: var(--text-xl, 1.25rem);
  color: var(--color-primary);
  line-height: var(--lh-snug);
}

.voyage-card-body p {
  margin: 0;
  margin-bottom: 0px;
  color: var(--color-primary);
}

.bento-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
}

.voyage-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--color-grey);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.voyage-pill i {
  color: inherit;
}

.voyage-cta {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-primary-inverted);
  margin-bottom: -0.4rem;
  margin-right: -0.5rem;
  transition: box-shadow .2s ease;
  text-decoration: none;
}

.voyage-cta i {
  font-size: var(--text-2xl, 1.25rem);
}

.bento-card:hover .voyage-cta {
  background: var(--color-secondary-orange);
  color: var(--color-primary-inverted);
}

.bento-card strong {
  display: block;
  font-size: 1.05rem;
}

.voyage-card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.1rem 1.05rem;
  background: var(--color-bg-voyage-card);
  backdrop-filter: blur(8px);
  color: var(--color-primary-inverted);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  flex-wrap: wrap;
}

.cta-group {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.price-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  background: rgba(12, 26, 36, 0.06);
  border-radius: 12px;
  padding: 0.5rem 0.7rem;
  font-weight: 700;
  color: #0c1a24;
}

.price-tag small {
  opacity: 0.7;
  font-weight: 600;
}

.bento-card .voyage-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.bento-card .card-hero,
.bento-card .voyage-card-footer {
  position: relative;
  z-index: 1;
}

@media (max-width: 1200px) {
  .bento-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .span-2-col,
  .span-2-row {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@container (max-width: 350px) {
  .bento-card .card-actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
  }

  /* Stack pills naturally */
  .bento-card .meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    flex: 1;
  }

  /* Info button stays bottom-right */
  .bento-card .cta-group {
    display: flex;
    align-items: flex-end;
    align-self: flex-end;
    flex-shrink: 0;
  }
}

/* Voyage overlay: sits over the image inside .media */
.voyage-card .voyage-overlay {
  position: absolute;
  inset: 0;
  display: flex;               
  align-items: center;        
  justify-content: flex-start;
  padding: 1.25rem;
  text-align: left;
  background: color-mix(in srgb, var(--color-primary) 76%, transparent);
  color: var(--color-primary-inverted);
  opacity: 0;
  transition: opacity .25s ease, backdrop-filter .25s ease;
  backdrop-filter: saturate(1.1) blur(1px);
  z-index: 2;
}


/* Hide the voyage type badge when overlay is visible */
.voyage-card .badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  transition: opacity .25s ease;
}

.voyage-card:hover .badge,
.voyage-card:focus-within .badge {
  opacity: 0;
  visibility: hidden;
}

/* Inner content tweaks */
.voyage-card .voyage-overlay__inner h5 {
  margin: 0 0 0.25rem 0;
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: var(--lh-snug);
  text-align: left;
}

.voyage-card .voyage-overlay__inner p {
  margin: 0;
  color:var(--color-primary-inverted);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: var(--lh-relaxed);
}

.voyage-overlay__inner ul  {
  list-style: none;
  font-weight: var(--weight-semibold);
  margin: 0;
    margin-top: 1.25rem;
  padding-left: 0;
    line-height: var(--lh-relaxed);
}

/* Reveal on hover/focus */
.voyage-card:hover .voyage-overlay,
.voyage-card:focus-within .voyage-overlay {
  opacity: 1;
}

/* Keep the type badge visible above the overlay (optional) */
.voyage-card .badge {
  z-index: 3;
}

.grid.links-equal {
  align-items: stretch;
}

.link-card {
  background: var(--color-bg-voyage-card);
}

.link-media {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.link-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform .4s ease;
  transform-origin: center center;
}

.link-card:hover .intro-media img {
  transform: scale(1.05);
}

.link-block p {
  margin-top: 1rem;
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
  color: var(--color-primary);
}

.link-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
}

.link-card:hover .link-media img {
  transform: scale(1.05);
}

/* ================
   Telemetry panel - Ship Tracking
   ================ */

.telemetry-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-family: var(--font-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  color: #163245;
}

.telemetry-row {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  align-items: centre;
}

.telemetry-row-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: centre;
  justify-content: centre;
  font-size: var(--text-6xl);
  color: #27a9df;
}

.telemetry-row-content {
  display: flex;
  flex-direction: column;
}

.telemetry-row-value {
  font-size: var(--text-2xl);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 0.15rem;
}

.telemetry-row-value sup {
  font-size: var(--text-xs);
}

.telemetry-unit {
  font-size: 0.9rem;
  margin-left: 0.15rem;
}

.telemetry-row-label {
  font-size: var(--text-xs);
  color: #7b8b9b;
}

/* Optional: tighten things up on small screens */
@media (max-width: 600px) {
  .telemetry-row {
    column-gap: 0.8rem;
  }

  .telemetry-row-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .telemetry-row-value {
    font-size: 1.2rem;
  }
}

.track-supporters-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7b8b9b;
  margin-bottom: 0.15rem;
}

.supporter-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
  justify-content: space-between;
}

.supporter-logo img {
  height: 48px;
  width: auto;
  display: block;
  border-radius: 4px;
}

.track-timeline {
  margin-top: 2.5rem;
}

.track-timeline-inner {
  display: flex;
  align-items: centre;
  gap: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
}

.timeline-play {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  display: flex;
  /* Centre horizontally */
  justify-content: center;
  /* Centre horizontally */
  align-items: center;
  background: var(--color-secondary-blue);
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.timeline-play i {
  font-size: var(--text-xl);
}

.timeline-play:hover {
  background: var(--color-secondary-blue);
  box-shadow: 0 5px 12px rgba(22, 109, 150, 0.35);
}

.timeline-play.is-paused .fa-pause,
.timeline-play:not(.is-paused) .fa-play {
  display: inline;
}

.timeline-play.is-paused .fa-play,
.timeline-play:not(.is-paused) .fa-pause {
  display: none;
}

/* Info text */
.timeline-info {
  min-width: 160px;
}

.timeline-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7b8b9b;
  margin-bottom: 0.1rem;
}

.timeline-time {
  font-size: 0.9rem;
  color: #163245;
}

/* Slider */
.timeline-slider-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

#timelineSlider {
  width: 100%;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: #e0e7ef;
  outline: none;
}

/* Thumb */
#timelineSlider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #27a9df;
  box-shadow: 0 0 0 3px rgba(39, 169, 223, 0.25);
  cursor: pointer;
  margin-top: -2px;
  /* centre thumb on track (WebKit) */
}

#timelineSlider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #27a9df;
  border: none;
  box-shadow: 0 0 0 3px rgba(39, 169, 223, 0.25);
  cursor: pointer;
}

/* Track in Firefox */
#timelineSlider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: #e0e7ef;
}

.timeline-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #9aa7b4;
}

/* Stack more neatly on small screens */
@media (max-width: 768px) {
  .track-timeline-inner {
    flex-direction: column;
    align-items: stretch;
    border-radius: 1rem;
  }

  .timeline-info {
    min-width: 0;
  }
}

/* == 09. Buttons & actions ================================================ */
.primary-button,
.form-buttons > button,
.form-buttons > a,
.form-btn-primary,
.form-btn-secondary,
.form-btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.2s ease, transform 0.1s ease;
}

.primary-button {
    padding: 0.65rem 4rem;
    border-radius: 12px;
    font-weight: var(--weight-light);
    font-size: var(--text-sm);
    background: var(--button-primary-bg);
    color: var(--button-primary-text);
    border: 1px solid var(--button-primary-border);
}

.primary-button:hover,
.primary-button:focus-visible {
    filter: brightness(1.1);
}

.primary-button:disabled {
    color: var(--button-primary-disabled-text);
    background: var(--button-primary-disabled-bg);
    cursor: not-allowed;
    filter: none;
}

/* == Group Leader Portal ================================================ */
.group-leader-hero {
  margin-bottom: 2rem;
}

.group-leader-hero .page-hero-text h1 {
  font-size: clamp(3rem, 5vw, 6rem);
}

.group-leader-section {
  padding-top: 4rem;
}

.group-leader-section--notice {
  padding-top: 2rem;
}

.portal-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border-card);
  border-radius: 12px;
  background: var(--color-bg-voyage-card);
}

.portal-alert > i {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-secondary-orange);
  color: #fff;
}

.portal-alert strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-primary);
  font-size: var(--text-lg);
}

.portal-alert p {
  margin: 0;
}

.portal-alert p + p {
  margin-top: 0.5rem;
}

.portal-alert a,
.portal-booking-panel a,
.portal-inline-link,
.portal-resource-list a {
  color: var(--color-secondary-orange);
  text-decoration: none;
}

.portal-alert a:hover,
.portal-booking-panel a:hover,
.portal-inline-link:hover,
.portal-resource-list a:hover {
  text-decoration: underline;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1100px) {
  .portal-grid {
    grid-template-columns: minmax(0, 2fr) minmax(320px, 0.9fr);
  }
}

.portal-main,
.portal-sidebar {
  min-width: 0;
}

.portal-booking-panel,
.portal-session-card,
.portal-resource-panel {
  border: 1px solid var(--color-border-card);
  border-radius: 12px;
  background: var(--color-bg-card);
}

.portal-booking-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
  padding: 1rem;
}

@media (min-width: 800px) {
  .portal-booking-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.portal-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-secondary-blue);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-booking-panel code {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  background: var(--color-bg-voyage-card);
  color: var(--color-primary);
  font-size: var(--text-base);
}

.portal-session-card {
  overflow: hidden;
}

.portal-session-card + .portal-session-card {
  margin-top: 1.5rem;
}

.portal-session-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--color-border-card);
}

.portal-session-header h4 {
  margin: 0;
}

.portal-session-email {
  flex: 0 0 auto;
  padding-inline: 1rem;
  white-space: nowrap;
}

.portal-session-email.is-disabled {
  color: var(--button-primary-disabled-text);
  background: var(--button-primary-disabled-bg);
  pointer-events: none;
}

.portal-table-wrap {
  overflow-x: auto;
}

.portal-table {
  border: 0;
  min-width: 680px;
}

.portal-table th,
.portal-table td {
  border-color: var(--color-border-card);
  vertical-align: top;
}

.portal-table th:last-child,
.portal-table td:last-child {
  width: 5rem;
  text-align: center;
}

.portal-status {
  display: block;
  margin-bottom: 0.35rem;
}

.portal-inline-link {
  display: inline-flex;
  font-size: var(--text-sm);
}

.portal-icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: var(--color-secondary-blue);
  color: #fff;
  text-decoration: none;
}

.portal-icon-button:hover {
  filter: brightness(1.1);
}

.portal-empty {
  margin: 0;
  padding: 1rem;
}

.portal-sidebar {
  display: grid;
  gap: 1.5rem;
}

.portal-resource-panel {
  padding: 1.25rem;
}

.portal-resource-panel h3 {
  margin-top: 0;
}

.portal-resource-list {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.portal-resource-list li {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border-card);
}

.portal-resource-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.portal-resource-list a {
  display: inline-flex;
  margin-bottom: 0.25rem;
  font-weight: var(--weight-semibold);
}

.portal-resource-list span {
  display: block;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
  line-height: var(--lh-relaxed);
}

@media (max-width: 700px) {
  .portal-alert,
  .portal-session-header {
    grid-template-columns: 1fr;
  }

  .portal-session-header {
    display: grid;
  }

  .portal-session-email {
    width: 100%;
  }
}

.form-buttons > button,
.form-buttons > a,
.form-btn-primary,
.form-btn-secondary,
.form-btn-success {
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: var(--button-primary-bg);
    color: var(--button-primary-text);
}

.form-buttons > button:hover,
.form-buttons > button:focus,
.form-buttons > a:hover,
.form-buttons > a:focus,
.form-btn-primary:hover,
.form-btn-primary:focus {
    background-color: var(--color-secondary-blue);
    box-shadow: 0 0 0 1px var(--color-secondary-blue), 0 0 10px rgba(0, 152, 217, 0.4);
    outline: none;
}

.form-btn-primary {
    background: var(--button-primary-bg);
    color: var(--button-primary-text);
}

.form-btn-secondary {
    background: var(--color-grey);
    color: var(--color-primary);
}

.form-btn-secondary:hover,
.form-btn-secondary:focus {
    background-color: var(--color-grey);
    box-shadow: 0 0 0 1px var(--color-secondary-blue), 0 0 10px rgba(0, 152, 217, 0.4);
    outline: none;
}

.form-btn-success,
.form-buttons > button.form-btn-success,
.form-buttons > a.form-btn-success {
    background: #198754;
    color: #fff;
}

.form-btn-success:hover,
.form-btn-success:focus,
.form-buttons > button.form-btn-success:hover,
.form-buttons > button.form-btn-success:focus,
.form-buttons > a.form-btn-success:hover,
.form-buttons > a.form-btn-success:focus {
    background-color: #157347;
    box-shadow: 0 0 0 1px #157347, 0 0 10px rgba(25, 135, 84, 0.35);
    outline: none;
}
/* == 10. Blockquotes ===================================================== */
#section-quote > blockquote p {
    font-size: var(--text-6xl);
    font-weight: var(--weight-light);
    max-width: var(--measure);
    margin-left:auto;
    margin-right:auto;
    margin-bottom: 0;
    text-align: center;
}

#section-quote > blockquote p > b,
#section-quote > blockquote p>strong {
    font-weight: var(--weight-bold);
}

#section-quote > blockquote cite {
    margin-top:0;
    text-align: center;
    font-size: var(--text-2xl);
    font-weight: var(--weight-light);
    display: block;
}

#section-quote > blockquote cite::before{
  content: "\2014\00A0";       /* em dash + non-breaking space */
  /* or: content: "— "; */
}

/*==============================================================
  Block Quote (blockquote class="fancy-quote")
==============================================================*/

.fancy-quote {
    all: unset;
    display: block;
    position: relative;
    background: var(--color-bg-voyage-card);
    border-radius: 20px;
    padding: 2rem 2rem;
    margin: 30px
}

/* Main text styling */
.fancy-quote p {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--color-primary);
    text-align: left;
    padding-top: 1.2rem;
    padding-left: 1.8rem;
    padding-right: 1.8rem;
    margin: 0;
}

/* Decorative quote icons using Font Awesome */
.fancy-quote::before,
.fancy-quote::after {
    position: absolute;
    color: var(--color-secondary-orange);
    font-family: "Font Awesome 7 Pro";
    /* or "Font Awesome 6 Pro" if you use Pro */
    font-weight: 900;
    /* needed for solid icons */
    font-size: clamp(2.5rem, 5vw, 3rem);
    line-height: 1;
    pointer-events: none;
    content: "";
}

/* Top-left quote */
.fancy-quote::before {
    content: "\e329";
    /* fa-quote-left */
    top: 0;
    left: 0;
    transform: translate(-35%, -35%);
}

/* Bottom-right quote 
.fancy-quote::after {
    content: "\f10e";
    /* fa-quote-right 
    bottom: 0;
    right: 0;
    transform: translate(35%, 35%);
}*/

/* Citation styling */
.fancy-quote cite {
    display: block;
    font-weight: var(--weight-regular);
    font-style: italic;
    font-size: var(--text-sm);
    margin-top: 1rem;
    padding-left: 1.8rem;
    text-align: right;
    color: var(--color-secondary-blue);
}

.fancy-quote cite::before {
    content: "\2014\00A0";
    /* em dash + non-breaking space */
}
/* == 11. Footer ========================================================= */
.footer {
  background-color: var(--color-bg-voyage-card);
  border-radius: 25px;
  border: 1px solid rgba(0,0,0,.06);
  padding: 2rem;
  display: block;
}

.footer-logo {
  border-radius: 12px;
}

.footer-signup {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.footer-signup__eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary-blue);
}

.footer-signup__intro h3 {
  margin: 0;
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
}

.footer-signup__intro p {
  margin: 0.75rem 0 0;
  color: #44515c;
}

.footer-signup__form {
  margin-top: 1.5rem;
}

.footer-signup__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.footer-signup__field label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: var(--weight-semibold);
}

.footer-signup .form-control {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(37, 49, 60, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #25313c;
}

.footer-signup select.form-control {
  appearance: none;
}

.footer-signup .form-control:focus {
  outline: 2px solid rgba(37, 49, 60, 0.12);
  border-color: #25313c;
}

.footer-signup .form-control--invalid {
  border-color: #b00020;
  background: #fff8f8;
}

.footer-signup .invalid {
  display: block;
  margin-top: 0.4rem;
  color: #b00020;
  font-size: var(--text-sm);
}

.footer-signup__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-signup__actions .primary-button {
  padding-inline: 1.5rem;
  white-space: nowrap;
}

.footer-signup__meta {
  margin: 0;
  color: #44515c;
  font-size: var(--text-sm);
}

.footer-signup__optional {
  color: #6b7280;
  font-weight: var(--weight-light);
}

.footer-signup__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Reset list styles only in footer */
.footer ul {
  list-style: none;          /* remove bullets */
  padding: 0;
  margin: 0;
  margin-top:20px
}

.footer li {
  margin-bottom: 0.5rem;     /* space between links */
}

.footer a {
  text-decoration: none;
  color: inherit;
  font-weight: var(--weight-light);
  transition: color 0.2s ease;
  text-transform: none;
}

.footer a:hover {
  color: var(--color-primary); /* highlight on hover */
}

.footer-links a:hover {
  color: var(--color-secondary-orange);
  text-decoration: underline;
}

.footer .layout-thirds > nav {
  display: flex;
  flex-direction: column;
}

.footer .layout-thirds > nav .rya-logo,
.footer .layout-thirds > nav .asto-logo {
  margin-top: auto;
  padding-top: 24px;
}

.asto-logo img {
  margin-top: 0;
  max-height: 120px;
  border-radius: 12px;
}

.footer-bottom {
  margin-top:30px;
  padding-top: 20px;
}

.footer-about {
  display: flex;
  align-items: center;   /* vertical centering */
  gap: 1rem;  
}

.cornwall-logo {
  display:inline-block;
  height: 45px;
  flex-shrink: 0;
}

.footer-text {
  margin: 0;
}

.border-top {
  border-top: 1px solid black;
}

.footer-social {
  display: flex;
  justify-content: flex-end; /* push to the right */
  align-items: center;               
}

.footer-social a {
  color: var(--color-primary);   /* matches your footer text color */
  transition: color 0.2s ease;
  font-size: var(--text-6xl); 
}

.footer-social a:hover {
  color: var(--color-secondary-blue); /* hover color */
}

.fiftyN {
  color: inherit;
  text-decoration: underline;
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

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

@media (max-width: 780px) {
  .footer-signup__grid {
    grid-template-columns: 1fr;
  }

  .footer-signup__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-signup__actions .primary-button {
    width: 100%;
  }
}


/* == 12. Toast notifications ============================================= */
.mv-toast-stack {
    position: fixed;
    top: clamp(1rem, 3vw, 2.5rem);
    left: 50%;
    transform: translateX(-50%);
    width: min(90vw, 24rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 1200;
    pointer-events: none;
}

.mv-toast {
    --mv-toast-bg: #0f172a;
    --mv-toast-fg: #f8fafc;
    --mv-toast-border: rgba(15, 23, 42, 0.22);
    --mv-toast-accent: rgba(148, 163, 184, 0.5);
    position: relative;
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--mv-toast-bg);
    color: var(--mv-toast-fg);
    border-radius: 5px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    pointer-events: auto;
    opacity: 0;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    transform: translateY(-12px) scale(0.98);
    animation: mv-toast-enter 260ms ease forwards;
}

.mv-toast::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
}

.mv-toast__body {
    display: grid;
    gap: 0.35rem;
}

.mv-toast__title {
    font-weight: var(--weight-xtrabold);
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.mv-toast__message {
    margin: 0;
    font-size: var(--text-sm);
    line-height: var(--lh-snug);
}

.mv-toast__close {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    opacity: 0.8;
    align-self: flex-start;
    transition: opacity 160ms ease;
}

.mv-toast__close:hover,
.mv-toast__close:focus-visible {
    opacity: 1;
}

.mv-toast__close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.mv-toast--success {
    --mv-toast-bg: #166534;
    --mv-toast-fg: #ecfdf3;
    --mv-toast-border: rgba(74, 222, 128, 0.4);
    --mv-toast-accent: rgba(74, 222, 128, 0.9);
}

.mv-toast--error {
    --mv-toast-bg: #991b1b;
    --mv-toast-fg: #fee2e2;
    --mv-toast-border: rgba(248, 113, 113, 0.45);
    --mv-toast-accent: rgba(248, 113, 113, 0.95);
}

.mv-toast--warning {
    --mv-toast-bg: #da5707;
    --mv-toast-fg: #e9e8e6;
    --mv-toast-border: rgba(251, 191, 36, 0.45);
    --mv-toast-accent: rgba(251, 191, 36, 0.9);
}

.mv-toast--info {
    --mv-toast-bg: #1d4ed8;
    --mv-toast-fg: #e0f2fe;
    --mv-toast-border: rgba(96, 165, 250, 0.55);
    --mv-toast-accent: rgba(96, 165, 250, 0.9);
}

.mv-toast--default {
    --mv-toast-bg: #0f172a;
    --mv-toast-fg: #e2e8f0;
    --mv-toast-border: rgba(148, 163, 184, 0.4);
    --mv-toast-accent: rgba(148, 163, 184, 0.75);
}

.mv-toast.is-leaving {
    animation: mv-toast-exit 220ms ease forwards;
}

@keyframes mv-toast-enter {
    0% {
        opacity: 0;
        transform: translateY(-12px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes mv-toast-exit {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-12px) scale(0.96);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mv-toast {
        animation-duration: 1ms;
        transform: none;
    }

    .mv-toast.is-leaving {
        animation-duration: 1ms;
    }
}

/* == 13. Cookie banner & privacy prompt =================================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: min(24rem, calc(100% - 2rem));
  max-width: 100%;
  background: var(--color-bg-card);
  color: var(--color-primary);
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(46, 59, 78, 0.18);
  padding: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.cookie-consent-banner.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-consent-banner__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin: 0;
}

.cookie-consent-banner__body {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
}

.cookie-consent-banner__body a {
  color: var(--color-secondary-orange);
  font-weight: var(--weight-semibold);
}

.cookie-consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-consent-banner .primary-button {
  flex: 1 1 7.5rem;
}

.primary-button--secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.primary-button--secondary:hover {
  background: rgba(46, 59, 78, 0.08);
}

.primary-button--success {
  background: #198754;
  color: #fff;
  border: 1px solid #198754;
}

.privacy-analytics-optout {
  margin-top: 2.5rem;
  padding: 2rem;
  border-radius: 16px;
  background: var(--color-bg-card);
  box-shadow: 0 12px 24px rgba(46, 59, 78, 0.12);
}

.privacy-analytics-optout__title {
  margin: 0 0 0.75rem;
}

.privacy-analytics-optout__intro {
  margin: 0 0 0.75rem;
}

.privacy-analytics-optout__status {
  margin: 0 0 1rem;
}

.privacy-analytics-optout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 720px) {
  .cookie-consent-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
  }

  .cookie-consent-banner__actions {
    flex-direction: column;
  }

  .cookie-consent-banner .primary-button {
    flex: 1 1 auto;
  }
}

.shortcode-block {
  margin: 2.5rem 0;
}

.shortcode-block-header {
  margin-bottom: 1.5rem;
}
