/*
 * Alpine Adventures / Tarn block theme.
 * Tokens come from theme.json (--wp--preset--*). This file carries the
 * pixel-exact component styles from the design handoff (Alpine Home Cleanup).
 * Class prefix: aa-
 */

:root {
  --aa-max: 1200px;
  --aa-pad-x: 48px;
  --aa-pad-y: 72px;
  --aa-gap: 28px;
  --aa-radius-card: 10px;
  --aa-radius-btn: 6px;
  --aa-shadow-card: 0 2px 10px rgba(22, 50, 74, 0.08);
  --aa-shadow-card-hover: 0 8px 24px rgba(22, 50, 74, 0.16);
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Layout primitives ---------- */

.aa-section {
  box-sizing: content-box;
  max-width: var(--aa-max);
  margin: 0 auto;
  padding: var(--aa-pad-y) var(--aa-pad-x);
}

.aa-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.aa-section__head > * {
  margin: 0;
}

.aa-section__intro {
  color: var(--wp--preset--color--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 0 36px;
  text-wrap: pretty;
}

.aa-section > h2,
.aa-band__inner > h2 {
  margin: 0 0 12px;
}

.aa-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--aa-gap);
}

/* ---------- Buttons ---------- */

.aa-btn,
.wp-block-button__link {
  display: inline-block;
  border-radius: var(--aa-radius-btn);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.aa-btn--primary {
  background: var(--wp--preset--color--cta);
  color: #fff;
  padding: 10px 22px;
  font-size: 15px;
}

.aa-btn--primary:hover,
.aa-btn--primary:focus-visible {
  background: var(--wp--preset--color--cta-hover);
  color: #fff;
}

.aa-btn--sm {
  padding: 10px 20px;
  font-size: 15px;
}

.wp-block-button.aa-btn--lg .wp-block-button__link {
  padding: 14px 30px;
  font-size: 17px;
}

.wp-block-button.aa-btn--md .wp-block-button__link {
  padding: 12px 22px;
  font-size: 15px;
}

.wp-block-button.aa-btn--band .wp-block-button__link {
  padding: 14px 28px;
  font-size: 16px;
}

.wp-block-button.is-style-secondary-light .wp-block-button__link {
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  font-weight: 600;
}

.wp-block-button.is-style-secondary-light .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.wp-block-button.is-style-secondary-dark .wp-block-button__link {
  background: transparent;
  border: 1.5px solid var(--wp--preset--color--ink);
  color: var(--wp--preset--color--ink);
  font-weight: 600;
}

.wp-block-button.is-style-secondary-dark .wp-block-button__link:hover {
  background: var(--wp--preset--color--ink);
  color: #fff;
}

.wp-block-button.is-style-dark .wp-block-button__link {
  background: var(--wp--preset--color--ink);
  color: #fff;
}

.wp-block-button.is-style-dark .wp-block-button__link:hover {
  background: var(--wp--preset--color--brand-teal);
  color: #fff;
}

.wp-block-button.is-style-white .wp-block-button__link {
  background: #fff;
  color: var(--wp--preset--color--ink);
}

.wp-block-button.is-style-white .wp-block-button__link:hover {
  background: var(--wp--preset--color--cta);
  color: #fff;
}

.wp-block-button.is-style-link .wp-block-button__link {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--wp--preset--color--brand-teal);
  font-weight: 600;
  font-size: inherit;
  line-height: inherit;
}

.wp-block-button.is-style-link .wp-block-button__link:hover {
  background: transparent;
  color: var(--wp--preset--color--cta);
}

.aa-link {
  color: var(--wp--preset--color--brand-teal);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 0;
  text-decoration: none;
}

.aa-link:hover {
  color: var(--wp--preset--color--cta);
}

/* ---------- Eyebrows and pills ---------- */

.is-style-eyebrow,
.aa-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.aa-eyebrow--cta {
  color: var(--wp--preset--color--cta);
}

.aa-eyebrow--teal {
  color: var(--wp--preset--color--brand-teal);
}

.aa-eyebrow--light {
  color: var(--wp--preset--color--on-dark-eyebrow);
}

.aa-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.aa-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.aa-pill--green {
  background: var(--wp--preset--color--badge-green-bg);
  color: var(--wp--preset--color--badge-green-text);
}

.aa-pill--orange {
  background: var(--wp--preset--color--badge-orange-bg);
  color: var(--wp--preset--color--badge-orange-text);
}

.aa-pill--gray {
  background: var(--wp--preset--color--badge-gray-bg);
  color: var(--wp--preset--color--badge-gray-text);
}

.aa-pill--blue {
  background: var(--wp--preset--color--badge-blue-bg);
  color: var(--wp--preset--color--brand-teal);
}

/* ---------- Dividers ---------- */

.aa-divider {
  display: block;
  width: 100%;
  line-height: 0;
  pointer-events: none;
}

.aa-divider svg {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Bleed 1px past the flat edge into the neighbouring section (same color by
   design). When the edge lands on a fractional pixel, the divider's antialiased
   edge and the section background underneath each half-cover that pixel row,
   and the dark background shows through as a hairline. */
.aa-divider--top svg {
  top: -1px;
}

.aa-divider--bottom svg {
  top: 1px;
}

.aa-divider--overlay {
  position: relative;
  z-index: 2;
}

.aa-divider--overlay.aa-divider--bottom {
  margin-top: calc(-1 * var(--aa-divider-h, 52px));
}

.aa-divider--overlay.aa-divider--top {
  margin-bottom: calc(-1 * var(--aa-divider-h, 52px));
}

/* ---------- Utility bar ---------- */

.aa-utility {
  background: var(--wp--preset--color--brand-dark);
  color: var(--wp--preset--color--on-dark);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 6px var(--aa-pad-x);
}

.aa-utility__left,
.aa-utility__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.aa-utility__left {
  gap: 20px;
}

.aa-utility__right {
  gap: 16px;
}

.aa-utility p {
  margin: 0;
  font-size: 13px;
}

.aa-utility .wp-block-button.is-style-link .wp-block-button__link {
  color: var(--wp--preset--color--on-dark);
  font-size: 13px;
  font-weight: 400;
}

.aa-utility .wp-block-button.is-style-link .wp-block-button__link:hover {
  color: #fff;
}

.aa-utility .aa-utility__phone .wp-block-button.is-style-link .wp-block-button__link {
  color: #fff;
  font-weight: 600;
}

/* ---------- Sticky header ---------- */

.aa-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px var(--aa-pad-x);
  box-shadow: 0 1px 0 rgba(22, 50, 74, 0.08);
}

.admin-bar .aa-header {
  top: 32px;
}

.aa-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.aa-brand .wp-block-site-logo img {
  height: 46px;
  width: auto;
  display: block;
}

.aa-brand .wp-block-site-title {
  margin: 0;
}

.aa-brand .wp-block-site-title a {
  text-decoration: none;
}

.aa-header__right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.aa-nav {
  font-size: 15px;
  font-weight: 600;
}

.aa-nav .wp-block-navigation-item__content {
  color: var(--wp--preset--color--ink);
  text-decoration: none;
}

.aa-nav .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--cta);
}

.aa-nav.wp-block-navigation .wp-block-navigation__container {
  gap: 28px;
}

.aa-header .wp-block-buttons {
  margin: 0;
}

/* ---------- Hero ---------- */

.aa-hero.wp-block-cover {
  min-height: 560px;
  padding: 0;
  align-items: flex-end;
  justify-content: flex-start;
}

.aa-hero .wp-block-cover__inner-container {
  box-sizing: content-box;
  max-width: 760px;
  margin: 0;
  padding: 88px var(--aa-pad-x) 88px;
  color: #fff;
}

.aa-hero__title,
.aa-hero h1 {
  color: #fff;
  margin: 0;
}

.aa-hero__sub {
  color: var(--wp--preset--color--on-photo);
  font-size: var(--wp--preset--font-size--lead);
  line-height: 1.5;
  margin: 16px 0 28px;
  max-width: 560px;
  text-wrap: pretty;
}

.aa-hero__actions.wp-block-buttons {
  gap: 14px;
}

.aa-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .aa-hero__video {
    display: none;
  }
}

/* ---------- River status strip ---------- */

.aa-status {
  background: var(--wp--preset--color--brand-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 14px var(--aa-pad-x);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.aa-status__badge {
  background: var(--wp--preset--color--cta);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.aa-status__msg {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.aa-status__msg a {
  color: #fff;
  text-decoration: underline;
}

.aa-status__msg a:hover {
  color: var(--wp--preset--color--on-dark-link);
}

.aa-status__link {
  color: var(--wp--preset--color--on-dark-link);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.aa-status__link:hover {
  color: #fff;
}

/* ---------- Trip cards ---------- */

.aa-card {
  background: #fff;
  border-radius: var(--aa-radius-card);
  overflow: hidden;
  box-shadow: var(--aa-shadow-card);
  color: var(--wp--preset--color--ink);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}

.aa-card:hover {
  box-shadow: var(--aa-shadow-card-hover);
}

.aa-card__img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.aa-card__img-link {
  display: block;
  line-height: 0;
}

.aa-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.aa-card__title {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  color: var(--wp--preset--color--ink);
  text-decoration: none;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
}

.aa-card__title:hover {
  color: var(--wp--preset--color--brand-teal);
}

.aa-card__meta {
  font-size: 15px;
  color: var(--wp--preset--color--muted);
}

.aa-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

/* In narrow cards (the trips page column) the link drops below; the button text never breaks. */
.aa-card__actions > * {
  white-space: nowrap;
}

.aa-cards-empty {
  border: 1px dashed var(--wp--preset--color--muted);
  border-radius: var(--aa-radius-card);
  padding: 24px;
  color: var(--wp--preset--color--muted);
  font-size: 15px;
}

/* ---------- Dark band (whitewater classes) ---------- */

.aa-band {
  background: var(--wp--preset--color--brand-dark);
  color: #fff;
}

.aa-band__inner {
  box-sizing: content-box;
  max-width: var(--aa-max);
  margin: 0 auto;
  padding: 48px var(--aa-pad-x) 72px;
}

.aa-band__inner h2 {
  color: #fff;
}

.aa-band__intro {
  color: var(--wp--preset--color--on-dark);
  font-size: 16px;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 0 40px;
  text-wrap: pretty;
}

.aa-classes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.aa-class {
  background: rgba(255, 255, 255, 0.06);
  border-top: 4px solid var(--wp--preset--color--class-1);
  border-radius: 0 0 8px 8px;
  padding: 20px 18px;
}

.aa-class > * {
  margin: 0;
}

.aa-class__num {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.1;
  color: #fff;
}

.aa-class__level {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 4px 0 8px;
  color: var(--wp--preset--color--class-1);
}

.aa-class__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--wp--preset--color--on-dark-soft);
}

.aa-class--2 { border-top-color: var(--wp--preset--color--class-2); }
.aa-class--2 .aa-class__level { color: var(--wp--preset--color--class-2); }
.aa-class--3 { border-top-color: var(--wp--preset--color--class-3); }
.aa-class--3 .aa-class__level { color: var(--wp--preset--color--class-3); }
.aa-class--4 { border-top-color: var(--wp--preset--color--class-4); }
.aa-class--4 .aa-class__level { color: var(--wp--preset--color--class-4); }
.aa-class--5 { border-top-color: var(--wp--preset--color--class-5); }
.aa-class--5 .aa-class__level { color: var(--wp--preset--color--class-5); }

/* ---------- Cards (prepare, contact) ---------- */

.wp-block-group.is-style-card,
.aa-info-card {
  background: #fff;
  border-radius: var(--aa-radius-card);
  padding: 26px 28px;
  box-shadow: var(--aa-shadow-card);
  color: var(--wp--preset--color--ink);
}

.wp-block-group.is-style-card-dark,
.aa-info-card--dark {
  background: var(--wp--preset--color--ink);
  border-radius: var(--aa-radius-card);
  padding: 26px 28px;
  color: #fff;
}

.is-style-card ul,
.is-style-card-dark ul,
.aa-info-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 2;
  color: var(--wp--preset--color--body-strong);
}

.is-style-card-dark ul,
.aa-info-card--dark ul {
  color: var(--wp--preset--color--on-band);
}

.is-style-card p,
.is-style-card-dark p {
  margin: 0;
}

.aa-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--wp--preset--color--sand);
  border-radius: var(--aa-radius-card);
  padding: 22px 28px;
  margin-top: var(--aa-gap);
  flex-wrap: wrap;
}

.aa-callout__text {
  font-size: 15px;
  line-height: 1.6;
  color: #4a5a40;
  max-width: 640px;
  margin: 0;
}

.aa-callout__text strong {
  color: var(--wp--preset--color--ink);
}

.aa-callout .wp-block-buttons {
  gap: 12px;
  margin: 0;
}

/* ---------- Photo band (guide training) ---------- */

.aa-guide.wp-block-cover {
  padding: 0;
  min-height: 0;
}

.aa-guide .wp-block-cover__inner-container {
  box-sizing: content-box;
  max-width: var(--aa-max);
  margin: 0 auto;
  padding: 88px var(--aa-pad-x);
}

.aa-guide__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.aa-guide__copy {
  max-width: 640px;
}

.aa-guide__copy h2 {
  color: #fff;
  font-size: var(--wp--preset--font-size--display-lg);
  margin: 0 0 10px;
}

.aa-guide__copy p {
  color: var(--wp--preset--color--on-band);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  text-wrap: pretty;
}

.aa-guide .wp-block-buttons {
  margin: 0;
  flex-shrink: 0;
}

/* ---------- Testimonial ---------- */

.aa-quote {
  box-sizing: content-box;
  padding: var(--aa-pad-y) var(--aa-pad-x);
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.aa-quote__text {
  font-family: var(--wp--preset--font-family--display);
  font-size: var(--wp--preset--font-size--display-md);
  font-weight: 600;
  line-height: 1.35;
  color: var(--wp--preset--color--ink);
  margin: 0;
  text-wrap: pretty;
}

.aa-quote__by {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--wp--preset--color--muted);
}

.aa-quote__by strong {
  color: var(--wp--preset--color--ink);
}

/* ---------- Contact + map ---------- */

.aa-contact {
  box-sizing: content-box;
  padding: 0 var(--aa-pad-x) var(--aa-pad-y);
  max-width: var(--aa-max);
  margin: 0 auto;
}

.aa-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--aa-gap);
  align-items: stretch;
}

.aa-contact__card {
  background: #fff;
  border-radius: var(--aa-radius-card);
  padding: 30px 32px;
  box-shadow: var(--aa-shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aa-contact__card h2 {
  font-size: 32px;
  margin: 0;
}

.aa-contact__card > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--wp--preset--color--muted);
}

.aa-contact__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
  margin-top: 4px;
}

.aa-contact__links .wp-block-button.is-style-link .wp-block-button__link {
  font-size: 16px;
  font-weight: 400;
}

.aa-contact__links .aa-contact__phone .wp-block-button.is-style-link .wp-block-button__link {
  font-weight: 700;
  color: var(--wp--preset--color--ink);
}

.aa-contact__links .aa-contact__phone .wp-block-button.is-style-link .wp-block-button__link:hover {
  color: var(--wp--preset--color--cta);
}

.aa-contact__card .wp-block-buttons {
  margin-top: auto;
}

.aa-contact__map,
.aa-map iframe {
  width: 100%;
  min-height: 340px;
  border: 0;
  border-radius: var(--aa-radius-card);
  box-shadow: var(--aa-shadow-card);
  display: block;
}

.aa-map {
  line-height: 0;
  height: 100%;
}

.aa-map iframe {
  height: 100%;
}

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

.aa-footer {
  background: var(--wp--preset--color--brand-dark);
  color: var(--wp--preset--color--on-dark);
  padding: 0 0 32px;
}

.aa-footer .aa-divider {
  margin-bottom: 48px;
}

.aa-footer__inner {
  box-sizing: content-box;
  max-width: var(--aa-max);
  margin: 0 auto;
  padding: 0 var(--aa-pad-x);
}

.aa-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.aa-footer__brand {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px;
}

.aa-footer__blurb {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  max-width: 380px;
  text-wrap: pretty;
}

.aa-footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
}

.aa-footer__col .aa-eyebrow {
  color: var(--wp--preset--color--on-dark-eyebrow);
  margin: 0;
}

.aa-footer .wp-block-button.is-style-link .wp-block-button__link {
  color: var(--wp--preset--color--on-dark);
  font-weight: 400;
  font-size: 15px;
}

.aa-footer .wp-block-button.is-style-link .wp-block-button__link:hover {
  color: #fff;
}

.aa-footer .aa-footer__phone .wp-block-button.is-style-link .wp-block-button__link {
  color: #fff;
  font-weight: 600;
}

.aa-footer .wp-block-site-title.aa-footer__brand a,
.aa-footer .aa-footer__brand a:hover {
  color: #fff;
  text-decoration: none;
}

.aa-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin: 40px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
}

.aa-footer__legal {
  margin: 0;
  font-size: 13px;
  color: var(--wp--preset--color--on-dark-muted);
}

.aa-footer__powered {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--on-dark-muted);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.aa-footer__powered:hover {
  opacity: 1;
}

.aa-footer__powered svg {
  width: 14px;
  height: 14px;
}

.aa-footer__powered strong {
  font-weight: 600;
}

/* ---------- Inner pages ---------- */

/* Short pages: keep the footer at the bottom of the window. Scoped to templates
   with a top-level <main> (page, single, index, 404); the front page and River
   trip template are never short, and their auto-margined sections would
   shrink-wrap as flex items. */
.wp-site-blocks:has(> main) {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px));
}

.wp-site-blocks:has(> main) > footer {
  margin-top: auto;
}

/* border-box + width so it still fills the column as a flex item (auto margins
   would otherwise shrink it to its content). Same rendered size as before. */
.aa-page {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(860px + 2 * var(--aa-pad-x));
  margin: 0 auto;
  padding: 56px var(--aa-pad-x) var(--aa-pad-y);
}

.aa-page h1 {
  margin: 0 0 24px;
  font-size: var(--wp--preset--font-size--display-xl);
}

.aa-page .entry-content > * + *,
.aa-prose > * + * {
  margin-top: 1em;
}

/* A pasted URL or long word wraps instead of widening the page on phones. */
.aa-prose {
  overflow-wrap: break-word;
}

.aa-prose h2 {
  margin-top: 1.6em;
}

.aa-prose img {
  border-radius: var(--aa-radius-card);
}

/* Tables in page content (schedules, rate lists): a white card with a dark header row. */
.aa-prose .wp-block-table {
  border-radius: var(--aa-radius-card);
  box-shadow: var(--aa-shadow-card);
}

.aa-prose .wp-block-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  font-size: 15px;
  line-height: 1.5;
}

.aa-prose .wp-block-table thead {
  border-bottom: 0;
}

.aa-prose .wp-block-table th,
.aa-prose .wp-block-table td {
  border: 0;
  border-bottom: 1px solid var(--wp--preset--color--sand);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}

.aa-prose .wp-block-table thead th {
  background: var(--wp--preset--color--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aa-prose .wp-block-table tbody tr:last-child td {
  border-bottom: 0;
}

.aa-prose .wp-block-table figcaption {
  margin: 0;
  padding: 10px 16px 12px;
  background: #fff;
  border-radius: 0 0 var(--aa-radius-card) var(--aa-radius-card);
  font-size: 13px;
  color: var(--wp--preset--color--muted);
  text-align: left;
}

/* Checklist list style (block style "Checklist"): two columns of ticked items. */
.wp-block-list.is-style-checklist {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  line-height: 1.5;
}

.wp-block-list.is-style-checklist li {
  position: relative;
  padding-left: 30px;
}

.wp-block-list.is-style-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--wp--preset--color--brand-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

@media (max-width: 480px) {
  .wp-block-list.is-style-checklist {
    grid-template-columns: minmax(0, 1fr);
  }

  .aa-prose .wp-block-table th,
  .aa-prose .wp-block-table td {
    padding: 10px 12px;
    font-size: 14px;
  }
}

.aa-post-meta {
  color: var(--wp--preset--color--muted);
  font-size: 14px;
  margin: 0 0 24px;
}

/* River trip page */

.aa-trip-hero.wp-block-cover {
  min-height: 420px;
  padding: 0;
  align-items: flex-end;
  justify-content: flex-start;
}

.aa-trip-hero .wp-block-cover__inner-container {
  box-sizing: content-box;
  max-width: var(--aa-max);
  margin: 0 auto;
  padding: 72px var(--aa-pad-x) 56px;
  color: #fff;
  width: 100%;
}

.aa-trip-hero h1 {
  color: #fff;
  margin: 12px 0 0;
  font-size: var(--wp--preset--font-size--display-hero);
}

.aa-trip-hero .aa-trip-pills {
  color: #fff;
}

.aa-trip-pills__line {
  font-size: 16px;
  color: var(--wp--preset--color--on-photo);
  margin: 10px 0 0;
}

.aa-trip-bar {
  background: #fff;
  box-shadow: var(--aa-shadow-card);
  position: sticky;
  top: 0;
  z-index: 15;
}

.aa-trip-bar__inner {
  box-sizing: content-box;
  max-width: var(--aa-max);
  margin: 0 auto;
  padding: 12px var(--aa-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.aa-trip-bar__inner p {
  margin: 0;
  font-size: 15px;
  color: var(--wp--preset--color--muted);
}

.aa-trip-bar .wp-block-buttons {
  margin: 0;
}

.aa-trip-hero__tagline {
  color: var(--wp--preset--color--on-photo);
  font-size: var(--wp--preset--font-size--lead);
  margin: 10px 0 0;
  max-width: 640px;
}

.aa-trip-hero__tagline:empty {
  display: none;
}

/* Two-column trip body: content + sticky facts rail */

.aa-trip-layout {
  box-sizing: content-box;
  max-width: var(--aa-max);
  margin: 0 auto;
  padding: 56px var(--aa-pad-x) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: start;
}

.aa-trip-main {
  min-width: 0;
}

.aa-trip-main .aa-prose > * + * {
  margin-top: 1em;
}

.aa-trip-main .aa-prose h2 {
  font-size: var(--wp--preset--font-size--display-xl);
  margin-top: 1.4em;
}

.aa-trip-main .aa-prose h3 {
  margin-top: 1.4em;
}

/* WordPress derives gallery column widths from this variable; set it rather than `gap`. */
.aa-prose .wp-block-gallery {
  --wp--style--unstable-gallery-gap: 12px;
  gap: 12px;
}

.aa-trip-main .aa-prose .wp-block-gallery img,
.aa-trip-main .aa-prose .wp-block-image img {
  border-radius: var(--aa-radius-card);
}

.aa-trip-main .aa-prose .wp-block-embed iframe,
.aa-trip-main .aa-prose iframe {
  border-radius: var(--aa-radius-card);
  max-width: 100%;
}

.aa-trip-rail {
  position: sticky;
  top: 90px;
}

.admin-bar .aa-trip-rail {
  top: 122px;
}

/* Facts card */

.aa-facts {
  background: #fff;
  border-radius: var(--aa-radius-card);
  box-shadow: var(--aa-shadow-card);
  padding: 22px 24px 24px;
}

.aa-facts__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.aa-facts__head .aa-eyebrow {
  margin: 0;
}

.aa-facts__list {
  margin: 0;
  display: grid;
  gap: 0;
}

.aa-facts__row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #ebe7dc;
  font-size: 15px;
  line-height: 1.45;
}

.aa-facts__row dt {
  color: var(--wp--preset--color--muted);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding-top: 2px;
}

.aa-facts__row dd {
  margin: 0;
  color: var(--wp--preset--color--body-strong);
}

.aa-facts__map {
  color: var(--wp--preset--color--brand-teal);
  font-weight: 600;
  white-space: nowrap;
}

.aa-facts__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.aa-btn--block {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.aa-facts__links {
  margin: 14px 0 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
}

.aa-btn--outline-dark {
  border: 1.5px solid var(--wp--preset--color--ink);
  color: var(--wp--preset--color--ink);
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 600;
  background: transparent;
}

.aa-btn--outline-dark:hover {
  background: var(--wp--preset--color--ink);
  color: #fff;
}

/* Booking section */

.aa-book .aa-booking {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--aa-radius-card);
  box-shadow: var(--aa-shadow-card);
  padding: 8px;
  box-sizing: border-box;
}

.aa-book .aa-booking--inquiry {
  max-width: 720px;
}

.aa-booking iframe,
.aa-inquiry iframe {
  border-radius: 8px;
  width: 100%;
  border: 0;
}

/* Where to meet */

.aa-meeting {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--aa-gap);
  align-items: stretch;
}

.aa-meeting__card {
  background: #fff;
  border-radius: var(--aa-radius-card);
  box-shadow: var(--aa-shadow-card);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aa-meeting__card .aa-eyebrow {
  margin: 0;
}

.aa-meeting__address {
  font-family: var(--wp--preset--font-family--display);
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
  color: var(--wp--preset--color--ink);
}

.aa-meeting__times,
.aa-meeting__note {
  margin: 0;
  font-size: 15px;
  color: var(--wp--preset--color--muted);
}

.aa-meeting__card .aa-btn {
  align-self: flex-start;
  margin-top: auto;
}

.aa-meeting__map {
  line-height: 0;
  min-height: 340px;
}

.aa-meeting__map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  border-radius: var(--aa-radius-card);
  box-shadow: var(--aa-shadow-card);
}

.aa-policies__grid + .aa-callout {
  margin-top: var(--aa-gap);
}

.aa-callout--policy .aa-callout__text {
  max-width: none;
}

@media (max-width: 1024px) {
  .aa-trip-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .aa-trip-rail {
    position: static;
    order: -1;
  }

  .aa-meeting {
    grid-template-columns: 1fr;
  }
}

.aa-inquiry {
  min-height: 640px;
}

.aa-inquiry iframe {
  border-radius: var(--aa-radius-card);
}

/* Blog list */

.aa-post-list {
  display: grid;
  gap: var(--aa-gap);
}

.aa-post-list .wp-block-post {
  background: #fff;
  border-radius: var(--aa-radius-card);
  padding: 26px 28px;
  box-shadow: var(--aa-shadow-card);
}

.aa-post-list .wp-block-post-title {
  font-size: 26px;
  margin: 0 0 8px;
  text-transform: none;
  letter-spacing: 0;
}

.aa-post-list .wp-block-post-title a {
  color: var(--wp--preset--color--ink);
}

.aa-post-list .wp-block-post-excerpt__excerpt {
  margin: 0;
  color: var(--wp--preset--color--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .aa-classes {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

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

  .aa-contact__grid {
    grid-template-columns: 1fr;
  }

  .aa-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 781px) {
  :root {
    --aa-pad-x: 20px;
    --aa-pad-y: 48px;
  }

  body .aa-utility .aa-utility__left > :not(.aa-utility__phone),
  body .aa-utility .aa-utility__right {
    display: none;
  }

  .aa-utility {
    justify-content: center;
  }

  .aa-header {
    gap: 16px;
  }

  .aa-header__right {
    gap: 12px;
  }

  /* The logo carries the name; drop the wordmark so the nav toggle and Reserve fit. */
  .aa-brand .wp-block-site-title {
    display: none;
  }

  .aa-header .wp-block-button__link {
    white-space: nowrap;
    padding: 9px 16px;
    font-size: 14px;
  }

  .aa-hero.wp-block-cover {
    min-height: 480px;
  }

  .aa-hero .wp-block-cover__inner-container {
    padding: 64px var(--aa-pad-x) 72px;
  }

  .aa-hero__sub {
    font-size: 17px;
    margin: 12px 0 22px;
  }

  .aa-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px var(--aa-pad-x);
  }

  .aa-section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
  }

  .aa-grid-3,
  .aa-footer__grid {
    grid-template-columns: 1fr;
  }

  .aa-footer__grid {
    gap: 32px;
  }

  .aa-band__inner {
    padding: 32px var(--aa-pad-x) 48px;
  }

  .aa-guide .wp-block-cover__inner-container {
    padding: 64px var(--aa-pad-x);
  }

  .aa-callout {
    flex-direction: column;
    align-items: flex-start;
  }

  .aa-divider {
    --aa-divider-h: 32px;
    height: 32px !important;
  }

  .aa-trip-hero .wp-block-cover__inner-container {
    padding: 56px var(--aa-pad-x) 40px;
  }
}

@media (max-width: 480px) {
  .aa-hero.wp-block-cover {
    min-height: 460px;
  }

  .aa-hero__actions.wp-block-buttons .wp-block-button,
  .aa-callout .wp-block-button {
    width: 100%;
  }

  .aa-hero__actions.wp-block-buttons .wp-block-button__link,
  .aa-callout .wp-block-button__link {
    width: 100%;
    text-align: center;
  }

  .aa-card__actions {
    flex-wrap: wrap;
  }
}

/* ---------- Editor niceties ---------- */

/* Bound to a blank Site setting: hidden on the site (assets/js/bindings-editor.js). */
.editor-styles-wrapper .tarn-blank-setting {
  opacity: 0.45;
  outline: 1px dashed currentColor;
  outline-offset: 2px;
}

.editor-styles-wrapper .aa-header {
  position: static;
}

/* Post/page editor: give the content the same measure as the page template. */
.editor-styles-wrapper.post-type-page .is-root-container,
.editor-styles-wrapper.post-type-post .is-root-container {
  box-sizing: content-box;
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 48px 80px;
}

.editor-styles-wrapper.post-type-page .is-root-container > * + *,
.editor-styles-wrapper.post-type-post .is-root-container > * + * {
  margin-top: 1em;
}
