/* Shared mobile layout, loaded after page styles. Navigation still works without JS. */
:root {
  --site-header-height: 88px;
}
html {
  scroll-padding-top: calc(var(--site-header-height) + 16px);
}
html[data-brand="navodu"] .site-header.site-container {
  --header-content-inset: max(var(--site-gutter), calc((100% - var(--site-width)) / 2));
  position: sticky;
  top: 0;
  z-index: 60;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--header-content-inset);
  background: var(--background, #f3f5f2);
  box-shadow: none;
  transition: background-color 220ms ease, box-shadow 220ms ease, min-height 220ms ease, padding-block 220ms ease;
}
html[data-brand="navodu"] .site-header .brand-emblem {
  transition: width 220ms ease, height 220ms ease;
}
html[data-brand="navodu"] .site-header .brand-wordmark {
  transition: font-size 220ms ease;
}
html[data-brand="navodu"] .site-header .brand-water-outline {
  transition: stroke 220ms ease;
}
html[data-brand="navodu"] .site-header .brand-water-cap-outline {
  transition: fill 220ms ease;
}
html[data-brand="navodu"] .site-header.site-container[data-header-condensed] {
  --background: #fff;
  min-height: 68px;
  padding-block: 8px;
  box-shadow: 0 6px 18px -12px rgb(48 59 53 / 25%);
}
html[data-brand="navodu"] .site-header[data-header-condensed] .brand-emblem {
  width: 48px;
  height: 48px;
}
html[data-brand="navodu"] .site-header[data-header-condensed] .brand-wordmark {
  font-size: 22px;
}
.article-aside {
  top: calc(var(--site-header-height) + 24px);
}

.mobile-header-actions,
.mobile-menu-toggle,
html[data-brand="navodu"] .site-header nav .mobile-nav-phone {
  display: none;
}
.mobile-menu-toggle[hidden],
#site-navigation[hidden] {
  display: none !important;
}

@media (min-width: 1181px) and (max-width: 1400px) {
  html[data-brand="navodu"] .site-header.site-container {
    gap: 16px;
  }
  html[data-brand="navodu"] .site-header nav {
    gap: 16px;
  }
  .site-header .brand-custom small {
    display: none;
  }
  .site-header .header-phone {
    font-size: 13px;
    gap: 8px;
  }
}

@media (max-width: 1180px) {
  :root {
    --site-header-height: 78px;
  }
  html[data-brand="navodu"] .site-header.site-container:not([data-nav-enhanced]) {
    position: static;
  }
  html[data-brand="navodu"] .site-header.site-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0 16px;
    min-height: 78px;
    padding-block: 12px;
  }
  html[data-brand="navodu"] .site-header .brand-custom {
    min-width: 0;
    gap: 8px;
  }
  html[data-brand="navodu"] .site-header .brand-custom small,
  html[data-brand="navodu"] .site-header .header-phone {
    display: none;
  }
  html[data-brand="navodu"] .site-header .brand-emblem {
    width: 48px;
    height: 48px;
  }
  html[data-brand="navodu"] .site-header .brand-wordmark {
    font-size: 23px;
    letter-spacing: -1px;
  }
  html[data-brand="navodu"] .site-header.site-container[data-header-condensed] {
    min-height: 64px;
  }
  html[data-brand="navodu"] .site-header[data-header-condensed] .brand-emblem {
    width: 40px;
    height: 40px;
  }
  html[data-brand="navodu"] .site-header[data-header-condensed] .brand-wordmark {
    font-size: 20px;
  }
  .mobile-header-actions {
    display: flex;
    align-items: center;
    flex: none;
    gap: 6px;
  }
  .mobile-header-actions [data-nav-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .mobile-header-action,
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid #c6d3c3;
    border-radius: 14px;
    color: #303b35;
    background: #e3eae0;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
    text-decoration: none;
  }
  .mobile-header-action svg {
    flex: none;
    width: 22px;
    height: 22px;
  }
  .mobile-header-book {
    color: #fff;
    background: #48694f;
    border-color: #48694f;
  }
  .mobile-header-call {
    color: #48694f;
    background: transparent;
  }
  .mobile-menu-icon {
    position: relative;
    display: block;
    width: 20px;
    height: 18px;
    flex: none;
  }
  .mobile-menu-icon::before,
  .mobile-menu-icon::after,
  .mobile-menu-line {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }
  .mobile-menu-icon::before {
    top: 2px;
  }
  .mobile-menu-line {
    top: 8px;
  }
  .mobile-menu-icon::after {
    top: 14px;
  }
  .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon::before {
    transform: translateY(6px) rotate(45deg);
  }
  .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-line {
    opacity: 0;
    transform: scaleX(0);
  }
  .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon::after {
    transform: translateY(-6px) rotate(-45deg);
  }
  html[data-brand="navodu"] .site-header #site-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 3;
    flex: 0 0 100%;
    min-width: 0;
    width: 100%;
    gap: 4px;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid #ced8cd;
    border-radius: 18px;
    background: #fff;
  }
  html[data-brand="navodu"] .site-header[data-nav-enhanced] #site-navigation {
    position: absolute;
    top: 100%;
    left: var(--header-content-inset);
    right: var(--header-content-inset);
    width: auto;
    margin-top: 0;
    max-height: calc(100vh - var(--site-header-height) - 16px);
    max-height: calc(100dvh - var(--site-header-height) - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 14px 30px rgb(48 59 53 / 12%);
  }
  html[data-brand="navodu"] .site-header #site-navigation a {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;
    border: 0;
    border-radius: 10px;
    color: #303b35;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    text-decoration: none;
  }
  html[data-brand="navodu"] .site-header #site-navigation a::after {
    display: none;
  }
  html[data-brand="navodu"] .site-header #site-navigation a[aria-current] {
    background: #e3eae0;
    color: #3b5942;
  }
  html[data-brand="navodu"] .site-header #site-navigation .nav-order {
    background: #48694f;
    color: #fff;
  }
  html[data-brand="navodu"] .site-header #site-navigation .mobile-nav-phone {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-top: 6px;
    border-top: 1px solid #ced8cd;
    border-radius: 0;
    color: #48694f;
  }
  .mobile-nav-phone span {
    font-size: 14px;
    font-weight: 500;
  }
  .mobile-header-action:focus-visible,
  .mobile-menu-toggle:focus-visible,
  #site-navigation a:focus-visible {
    outline: 3px solid #48694f;
    outline-offset: 2px;
  }
}

@media (max-width: 800px) {
  :root {
    --site-gutter: 20px;
  }
  .inner-shell {
    padding-inline: var(--site-gutter);
  }
  :is(
      .order-layout,
      .order-form,
      .article-layout,
      .article-body,
      .feed-heading,
      .feed-story,
      .featured-story,
      .board-summary,
      .sup-card-copy,
      .section-heading,
      .home-seo,
      .journal-card,
      .route-preview-card
    )
    > * {
    min-width: 0;
  }
  :is(h1, h2, h3, .booking-total output, .footer-links a) {
    overflow-wrap: anywhere;
  }
  :is(input, select, textarea) {
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
  }
  :is(
    .button,
    .text-link,
    .copy-request,
    .full-order-link,
    .footer-links a,
    .aside-phone,
    .order-direct-phone,
    .rental-route-note a
  ) {
    min-height: 44px;
  }
  .text-link,
  .footer-links a {
    display: inline-flex;
    align-items: center;
  }
  .button {
    white-space: normal;
    text-align: center;
  }
  .site-footer.site-container {
    flex-wrap: wrap;
    gap: 24px;
    padding-block: 32px;
  }
  .site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-size: 14px;
  }
  .site-footer .footer-copy {
    font-size: 13px;
    line-height: 1.7;
  }
  .breadcrumbs {
    padding-top: 16px;
  }
  .breadcrumbs ol,
  .breadcrumbs li {
    column-gap: 8px;
  }
  .booking-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .field,
  .booking-options,
  .booking-summary {
    min-width: 0;
  }
  .booking-fields :is(input, select) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 52px;
    font-size: 16px !important;
  }
  .order-form .booking-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-body,
  .article-aside,
  .article-table-shell {
    min-width: 0;
    max-width: 100%;
  }
  :is(.order-form, .booking-dialog) .copy-request {
    min-height: 44px !important;
    height: auto !important;
    font-size: 14px !important;
    white-space: normal;
    text-align: left;
  }
  :is(.order-form, .booking-dialog) .booking-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  :is(.order-form, .booking-dialog) .booking-actions .button {
    min-height: 52px;
    padding: 14px 16px;
    font-size: 16px;
  }
  :is(.order-form, .booking-dialog) .booking-note,
  :is(.order-form, .booking-dialog) .order-confirmation p,
  :is(.order-form, .booking-dialog) .booking-address,
  .board-selection-note,
  .rental-tariff-note {
    font-size: 14px;
    line-height: 1.7;
  }
  :is(.order-form, .booking-dialog) .booking-total {
    flex-wrap: wrap;
    gap: 16px;
  }
  .stepper button {
    width: 44px;
    min-height: 44px;
  }
  dialog .booking-close {
    width: 44px;
    height: 44px;
    right: 8px;
    top: 8px;
  }
}

@media (max-width: 900px) {
  .order-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .order-form {
    width: 100%;
    max-width: 620px;
    justify-self: center;
  }
  .order-form .booking-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .order-layout > *,
  .order-form .field {
    min-width: 0;
  }
  .price-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  html[data-brand="navodu"] .price-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 24px;
    min-width: 0;
    padding: 26px;
  }
  .price-card > * {
    min-width: 0;
  }
  .plan-top {
    grid-column: 1 / -1;
    margin-bottom: 20px;
  }
  .plan-duration {
    grid-column: 1;
    font-size: 38px;
  }
  .price-card h3 {
    grid-column: 1;
    font-size: 18px;
    margin: 10px 0;
  }
  .plan-description {
    grid-column: 1;
    min-height: 0;
    font-size: 15px;
  }
  html[data-brand="navodu"] .plan-price {
    grid-area: 2 / 2 / 4;
    text-align: right;
    margin: auto 0 0;
    font-size: 40px;
  }
  .plan-per-day {
    grid-area: 4 / 2;
    align-items: flex-end;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    border: 0;
    padding: 0;
    font-size: 14px;
  }
  .plan-weekend-price {
    grid-column: 1 / -1;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 16px;
  }
  html[data-brand="navodu"] .plan-button {
    grid-column: 1 / -1;
    min-height: 52px;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px !important;
    font-size: 16px;
    white-space: normal;
    margin-top: 18px;
  }
  .date-input,
  .duration-select,
  .copy-feedback textarea {
    font-size: 16px !important;
  }
  .date-input,
  .duration-select {
    height: 52px !important;
  }
  .quantity-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .stepper button {
    width: 44px;
    height: 44px;
    flex: none;
  }
  .field label {
    font-size: 14px;
  }
  .rss-link,
  .full-order-link,
  .route-text-link {
    min-height: 44px;
    align-content: center;
  }
  .feed-topics > a {
    min-height: 44px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
  }
  .article-toc a {
    display: block;
    min-height: 44px;
    padding-block: 10px;
    font-size: 14px;
  }
  #sup-map .leaflet-control-zoom a {
    width: 44px;
    height: 44px;
    line-height: 44px;
  }
  .sup-card-link {
    min-height: 44px;
    font-size: 14px;
  }
  .sup-card-bottom {
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
  }
  .sup-card-bottom small {
    font-size: 13px;
  }
  .sup-card-copy > p {
    font-size: 16px;
  }
  .board-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .board-summary {
    min-width: 0;
  }
  .board-details {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 651px) and (max-width: 900px) {
  .routes-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  :root {
    --site-gutter: 16px;
  }
  html[data-brand="navodu"] .site-header.site-container {
    column-gap: 8px;
  }
  html[data-brand="navodu"] .site-header .brand-custom {
    gap: 6px;
  }
  html[data-brand="navodu"] .site-header .brand-emblem {
    width: 40px;
    height: 40px;
  }
  html[data-brand="navodu"] .site-header .brand-wordmark {
    font-size: 20px;
  }
  html[data-brand="navodu"] .site-header #site-navigation {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-brand="navodu"] .hero.hero-classic {
    --hero-inset: 20px;
    min-height: 460px;
    padding-block: 20px;
  }
  html[data-brand="navodu"] .hero.hero-classic .hero-content {
    padding-block: 24px;
  }
  html[data-brand="navodu"] .hero.hero-classic .hero-content h1 {
    font-size: clamp(50px, 14vw, 64px);
  }
  html[data-brand="navodu"] .hero.hero-classic .hero-actions {
    align-items: stretch;
  }
  html[data-brand="navodu"] .hero.hero-classic .hero-actions .button {
    width: 100%;
    min-height: 54px;
    justify-content: space-between;
    font-size: 16px;
  }
  html[data-brand="navodu"] .hero.hero-classic .hero-price {
    white-space: normal;
    line-height: 1.6;
  }
  .inner-shell {
    padding-inline: 16px;
  }
  .inner-main h1,
  .catalog-heading h1,
  .board-summary h1 {
    font-size: clamp(34px, 9vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.035em;
  }
  .order-intro h1 br {
    display: none;
  }
  .order-form {
    padding: 20px 16px;
  }
  dialog.booking-dialog {
    width: calc(100% - 16px) !important;
    max-height: calc(100dvh - 16px);
    padding: 28px 18px 22px !important;
    border-radius: 18px !important;
    overscroll-behavior: contain;
    scroll-padding-block: 24px;
  }
  dialog .booking-title {
    font-size: 30px !important;
    line-height: 1.2 !important;
  }
  dialog .booking-description {
    font-size: 16px !important;
  }
  dialog .booking-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .order-pickup p {
    max-width: none;
    font-size: 14px;
  }
  .order-form .booking-total > div > span {
    font-size: 14px;
  }
  .route-preview-card {
    grid-template-columns: 30% minmax(0, 1fr);
  }
  .route-preview-card > div {
    padding: 16px;
  }
  .route-preview-card h3 {
    font-size: 20px;
    gap: 8px;
  }
  .home-seo h2,
  .journal-preview .section-heading h2,
  .order-guide h2 {
    font-size: 34px;
  }
  .journal-cta h2 {
    font-size: 32px;
  }
  html[data-brand="navodu"] .price-card {
    padding: 22px 18px;
    grid-template-columns: minmax(0, 1fr);
  }
  .price-card
    > :is(
      .plan-top,
      .plan-duration,
      h3,
      .plan-description,
      .plan-price,
      .plan-per-day,
      .plan-weekend-price,
      .plan-button
    ) {
    grid-area: auto;
    grid-column: 1;
  }
  html[data-brand="navodu"] .plan-price {
    grid-area: auto;
    margin-top: 18px;
    text-align: left;
    font-size: 40px;
  }
  .plan-per-day {
    align-items: flex-start;
    gap: 5px;
  }
  .plan-duration {
    font-size: 36px;
  }
  .plan-top .eyebrow {
    font-size: 12px;
    letter-spacing: 0.5px;
  }
  .plan-description {
    margin-bottom: 0;
    font-size: 15px;
  }
  .plan-weekend-price {
    margin-top: 12px;
  }
  .contact-phone {
    font-size: clamp(22px, 6.2vw, 29px);
    gap: 10px;
  }
  .intro-layout h2,
  .section-heading h2,
  .faq-section h2 {
    font-size: 36px;
  }
  .contact-section h2 {
    font-size: 44px;
  }
  .section-shell {
    padding: 52px var(--site-gutter);
  }
  .board-summary > .button,
  .catalog-help-card .button,
  .board-pickup .button {
    width: 100%;
  }
  .sup-card-copy {
    padding: 22px 18px;
  }
  .board-rates a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
  }
  .board-rates .weekend-price {
    grid-column: 1 / -1;
  }
  .article-toc ol {
    columns: 1;
  }
  .article-related > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .feed-heading > div:last-child {
    flex-wrap: wrap;
  }
  .featured-story h3 {
    font-size: 30px;
  }
  .feed-story {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 14px;
  }
  .feed-story-number {
    font-size: 28px;
  }
  .feed-story h3 {
    font-size: 23px;
  }
  .feed-story p,
  .featured-story p,
  .feed-heading p {
    font-size: 16px;
  }
  .site-footer > span {
    width: 100%;
    max-width: none;
    text-align: left;
    font-size: 13px;
  }
  .not-found-page {
    padding: 40px 24px;
  }
  .not-found-page > div {
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (any-pointer: coarse) {
  .sup-card-toggle:not([hidden]) {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-icon::before,
  .mobile-menu-icon::after,
  .mobile-menu-line {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-brand="navodu"] .site-header.site-container,
  html[data-brand="navodu"] .site-header :is(.brand-emblem, .brand-wordmark, .brand-water-outline, .brand-water-cap-outline) {
    transition: none;
  }
}
