/* One mobile layout, loaded only at widths of 760px and below. */
:root { --mobile-gutter: 16px; }
body { min-width: 0; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 32px var(--mobile-gutter); }
.utility { justify-content: space-between; padding: 8px var(--mobile-gutter); gap: 8px; }
.utility a { padding: 4px 8px; font-size: 11px; }

/* The full logo and menu toggle always share one row. */
header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 16px var(--mobile-gutter); }
header .brand-image { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 4px; width: min(100%,250px); min-width: 0; height: 44px; flex-basis: auto; }
header .brand-badge { display: block; flex: 0 0 39px; width: 39px; height: 44px; background-size: 223.2px 40px; background-position: -4px center; }
header .brand-wordmark { flex: 1 1 0; min-width: 0; width: auto; height: 40px; overflow: hidden; }
header .brand-wordmark img { width: 100%; height: auto; }
header .mobilemenu { display: inline-flex; align-items: center; justify-content: center; position: static; grid-column: 2; grid-row: 1; justify-self: end; min-width: 76px; min-height: 44px; padding: 10px 12px; margin: 0; font-size: 14px; line-height: 1.2; border: 1px solid var(--accent); border-radius: 4px; color: var(--accent); background: #2b2117; }
header nav, header.menu-open nav { position: static; inset: auto; grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; }
header nav { display: none; }
header.menu-open nav { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
header nav > a, header nav .nav-trigger { width: 100%; min-height: 46px; padding: 12px 14px; font-size: 14px; line-height: 1.4; text-align: left; justify-content: space-between; border-radius: 4px; }
header nav > a { justify-content: flex-start; }
header nav a:hover { transform: none; }
header .nav-dropdown { width: 100%; min-width: 0; }
header .nav-submenu { display: none; position: static; inset: auto; width: 100%; min-width: 0; margin: 6px 0 0; padding: 4px 0 4px 12px; border: 0; border-left: 2px solid var(--accent); border-radius: 0; background: transparent; box-shadow: none; }
header .nav-dropdown.is-open > .nav-submenu { display: flex; flex-direction: column; gap: 4px; }
header nav .nav-submenu a { min-height: 44px; padding: 11px 14px; font-size: 14px; line-height: 1.4; background: var(--panel); justify-content: flex-start; }
header .nav-trigger span { margin-left: auto; }

/* Equal-height image, copy and control areas keep every slide aligned. */
.hero-carousel { display: block; width: calc(100% - 32px); height: auto; margin: 12px var(--mobile-gutter) 0; overflow: hidden; }
.carousel-viewport { height: 328px; }
.carousel-track { height: 100%; align-items: stretch; }
.hero-slide { display: grid; grid-template-rows: 160px minmax(0,1fr); align-items: stretch; min-width: 0; background: var(--panel); }
.hero-slide > img, .hero-slide.slide-first-contact > img, .hero-slide.slide-training > img, .hero-slide.slide-join > img { display: block; position: static; inset: auto; z-index: auto; width: 100%; max-width: none; height: 160px; object-fit: cover; mask-image: none; -webkit-mask-image: none; transform: none; }
.hero-slide:before, .hero-slide:after { display: none; }
.hero-slide.slide-ranges > img { object-position: 65% 52% !important; }
.hero-slide.slide-first-contact > img { object-position: 50% 42% !important; }
.hero-slide.slide-training > img { object-position: 100% 42% !important; }
.hero-slide.slide-join > img { object-position: 100% 42% !important; }
.hero-slide .hero-slide-copy, .hero-slide.slide-first-contact .hero-slide-copy, .hero-slide.slide-training .hero-slide-copy { display: flex; flex-direction: column; align-items: flex-start; width: 100%; max-width: none; min-width: 0; padding: 14px 16px; background: var(--panel); }
.hero-slide h2, .hero-slide.slide-first-contact h2, .hero-slide.slide-training h2 { width: 100%; min-height: 50px; margin: 0; font: normal 22px/1.14 Georgia,serif; color: #fff; }
.hero-slide p, .hero-slide.slide-first-contact p, .hero-slide.slide-training p { width: 100%; max-width: none; min-height: 40px; margin: 8px 0 10px; font-size: 14px; line-height: 1.4; color: #d4d4d4; }
.hero-slide .carousel-link, .hero-slide.slide-first-contact .carousel-link, .hero-slide.slide-training .carousel-link { align-self: flex-start; margin-top: auto; font-size: 12px; line-height: 1.4; }
.carousel-controls { display: flex; align-items: center; justify-content: center; position: static; inset: auto; width: 100%; height: 48px; gap: 8px; margin: 0; padding: 4px 12px; border-top: 1px solid var(--line); border-radius: 0; background: #121212; }
.carousel-controls > button { flex: 0 0 36px; width: 36px; min-width: 36px; height: 40px; min-height: 40px; padding: 0; font-size: 24px; }
.carousel-dots { display: flex; align-items: center; gap: 4px; }
.carousel-dots .carousel-dot { position: relative; flex: 0 0 28px; width: 28px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.carousel-dot:before { content: ''; position: absolute; top: 16px; left: 10px; width: 8px; height: 8px; border-radius: 50%; background: #aaa; }
.carousel-dot[aria-pressed='true']:before { background: var(--accent); }

/* Shared content grid and gutters. */
.grid2, .grid3, .split, .layout, .fields, .about-layout, .event-detail-grid, .contact-section, .package-card-grid, .package-catalogs, .album-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
.grid2 > *, .grid3 > *, .split > *, .layout > *, .fields > *, .about-layout > *, .event-detail-grid > *, .contact-section > * { min-width: 0; }
.sectionhead { display: block; margin-bottom: 24px; }
.sectionhead h2 { font-size: 30px; }
.sectionhead p { margin-top: 14px; }
.button { max-width: 100%; white-space: normal; text-align: center; }
.buttons { gap: 8px; flex-wrap: wrap; }
.card { padding: 22px; }
.card h3 { font-size: 25px; }
.homehero { grid-template-columns: minmax(0,1fr); gap: 20px; padding-top: 20px; padding-bottom: 32px; }
.home-hero-panel { min-height: 360px; }
.home-hero-copy { padding: 24px; }
.home-hero-copy h1 { font-size: 40px; line-height: 1.1; }
.home-hero-copy p { font-size: 15px; }
.home-hero-photo { object-position: 58% center; }
.event-sidebar { width: 100%; padding: 22px; margin: 0; }
.upcoming-item a { min-width: 0; }
.crumbs { width: 100%; padding: 18px var(--mobile-gutter) 0; font-size: 12px; }
.page-intro { padding: 28px var(--mobile-gutter) 0; }
.page-intro h1 { font-size: 36px; }
.about-photo { width: 100%; max-width: 560px; }
.about-story p { font-size: 16px; }
.about-story p:first-child { font-size: 17px; }
.about-faq { padding-top: 30px; }
.about-faq h2 { font-size: 28px; }
.contact-section, .training-enquiry, .training-contact, .package-location, .event-facts, .event-location { padding: 22px; }
.contact-section h2 { font-size: 28px; }
.contact-data div { grid-template-columns: 85px minmax(0,1fr); }
.contact-data dd, .contact-data a, .training-contact a { overflow-wrap: anywhere; }
.package-location object { height: 480px; }
.package-switch button { min-width: 0; flex: 1; padding: 14px 10px; font-size: 14px; overflow-wrap: anywhere; }
.package-card { padding: 22px; }
.package-card h3 { min-height: 0; }
.package-contact { display: block; padding: 22px; }
.package-contact .buttons { margin-top: 18px; }
.album-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.event-detail-visual { min-height: 240px; }
.event-detail-heading { padding: 24px; }
.event-detail-heading h1 { font-size: 34px; overflow-wrap: anywhere; }
.range-photo img { aspect-ratio: 16/9; object-position: 65% center; }
.real-event-date { font-size: 27px; }
footer { display: block; padding: 24px var(--mobile-gutter); }
footer > span { display: block; margin-top: 14px; }
.footerlinks { gap: 12px 16px; }

.news-grid, .news-article-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
.news-card-image { height: 190px; }
.news-card-copy, .news-article-facts { padding: 22px; }
.news-card h2 { font-size: 26px; }
.news-article-text { font-size: 16px; }
.news-article-text h2 { font-size: 27px; }

.hero-slide.slide-calendar > img { object-position: 50% 100% !important; }
