:root {
  --tb-navy: #102d45;
  --tb-blue: #17638c;
  --tb-cyan: #28a8c7;
  --tb-orange: #d95d2b;
  --tb-yellow: #edb83f;
  --tb-ice: #eef6f8;
  --tb-white: #ffffff;
  --tb-ground: #e6eef1;
  --tb-ink: #203746;
  --tb-muted: #566d79;
  --tb-line: #bed0d8;
}

body.tubing-page { color: var(--tb-ink); background: var(--tb-ground); }
.tubing-page .site-header { background: rgba(242, 247, 249, .96); border-bottom-color: #bfd0d8; }
.tubing-page main { padding-top: 0; padding-bottom: 5rem; }
.tubing-page .crumb { color: inherit; text-decoration: none; }
.tubing-page .crumb:hover { text-decoration: underline; }

.tubing-hero { position: relative; display: flex; min-height: clamp(33rem, 55vw, 45rem); align-items: flex-end; overflow: hidden; background: var(--tb-navy); }
.tubing-hero-photo,
.tubing-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tubing-hero-photo img { object-fit: cover; object-position: center; }
.tubing-hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 38, 58, .82) 0%, rgba(10, 38, 58, .14) 58%, rgba(10, 38, 58, .03) 100%); }
.tubing-hero-inner { position: relative; z-index: 1; width: 100%; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.tubing-title-panel { max-width: 58rem; padding-left: 1.4rem; color: #fff; border-left: 8px solid var(--tb-orange); }
.tubing-title-panel .eyebrow { color: #cfeaf1; }
.tubing-title-panel h1 { margin: .45rem 0 1rem; color: #fff; font-size: clamp(3rem, 6vw, 5.8rem); line-height: .94; text-shadow: 0 4px 25px rgba(5, 29, 45, .35); }
.tubing-title-panel .lede { max-width: 48rem; color: #f1f8fa; font-size: 1.15rem; line-height: 1.68; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.45rem; }
.hero-tags span { padding: .55rem .72rem; color: var(--tb-navy); background: #fff; border-bottom: 4px solid var(--tb-yellow); font-size: .76rem; font-weight: 800; }

.tubing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 2.2rem; align-items: start; max-width: 78rem; padding-top: 3.6rem; }
.tubing-main { min-width: 0; }
.tubing-intro { max-width: 55rem; }
.section-kicker { margin: 0; color: var(--tb-orange); font-size: .73rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tubing-intro h2,
.connection-heading h2 { margin: .25rem 0 .7rem; color: var(--tb-navy); font-size: clamp(2rem, 3.4vw, 2.85rem); }
.tubing-intro > p:last-child { color: var(--tb-muted); line-height: 1.76; }

.tubing-key { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.55rem; }
.tubing-key div { padding: .9rem 1rem; background: var(--tb-navy); border-bottom: 5px solid var(--tb-cyan); }
.tubing-key div:nth-child(2) { border-bottom-color: var(--tb-yellow); }
.tubing-key div:nth-child(3) { border-bottom-color: var(--tb-orange); }
.tubing-key strong,
.tubing-key span { display: block; }
.tubing-key strong { color: #fff; font-size: .9rem; }
.tubing-key span { margin-top: .22rem; color: #cfe0e8; font-size: .78rem; line-height: 1.48; }

.tubing-list { display: grid; gap: .82rem; margin-top: 1.25rem; }
.tubing-card { overflow: hidden; background: var(--tb-white); border: 1px solid var(--tb-line); box-shadow: 0 5px 16px rgba(16, 45, 69, .06); }
.tubing-card[open] { border-color: #78a4b9; box-shadow: 0 16px 34px rgba(16, 45, 69, .12); }
.tubing-card summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .85rem; min-height: 5.25rem; align-items: center; padding: 1rem 1.15rem; cursor: pointer; list-style: none; }
.tubing-card summary::-webkit-details-marker { display: none; }
.tubing-card summary:hover { background: var(--tb-ice); }
.tubing-card[open] summary { background: var(--tb-navy); }
.card-title { display: grid; gap: .2rem; }
.card-title strong { color: var(--tb-navy); font: 650 1.22rem/1.3 var(--font-display); }
.card-title small { color: var(--tb-muted); font-size: .8rem; font-weight: 700; }
.tubing-card[open] .card-title strong,
.tubing-card[open] .card-title small { color: #fff; }
.lift-label { padding: .4rem .6rem; color: #0f5673; background: #e2f3f7; border: 1px solid #afd6e0; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.lift-label.walk { color: #863d21; background: #fae9df; border-color: #e4bca8; }
.tubing-card[open] .lift-label { color: var(--tb-navy); background: #fff; border-color: #fff; }
.summary-action { min-width: 3.7rem; padding: .39rem .55rem; color: #fff; background: var(--tb-orange); font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.tubing-card[open] .summary-action { color: var(--tb-navy); background: var(--tb-yellow); font-size: 0; }
.tubing-card[open] .summary-action::before { content: "Close"; font-size: .65rem; }

.tubing-card-body { padding: 1.35rem; overflow: hidden; border-top: 1px solid var(--tb-line); }
.tubing-card-grid { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.45rem; align-items: start; }
.visit-facts { margin: 0; background: var(--tb-ice); border-top: 5px solid var(--tb-cyan); }
.visit-facts div { padding: .76rem .85rem; }
.visit-facts div + div { border-top: 1px solid var(--tb-line); }
.visit-facts dt { color: #617984; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.visit-facts dd { margin: .18rem 0 0; color: var(--tb-ink); font-size: .84rem; font-weight: 700; line-height: 1.47; }
.tubing-copy p { color: #415966; line-height: 1.77; }
.tubing-copy p + p { margin-top: .84rem; }
.conditions { padding: .85rem 1rem; background: #fff4dd; border-left: 4px solid var(--tb-yellow); font-size: .9rem; }
.official-link { display: inline-flex; align-items: center; gap: .45rem; margin-top: .25rem; padding: .65rem .84rem; color: #fff; background: var(--tb-blue); font-size: .89rem; font-weight: 700; text-decoration: none; }
.official-link:hover { color: #fff; background: var(--tb-orange); }
.research-note { margin: 1.4rem 0 0; padding-left: 1rem; color: #5b707b; border-left: 3px solid #91aab5; font-size: .84rem; line-height: 1.65; }

.activity-sidebar { position: sticky; top: 5.5rem; display: grid; gap: .68rem; }
.activity-heading { padding: 1.1rem; color: #fff; background: var(--tb-navy); border-bottom: 5px solid var(--tb-cyan); }
.activity-heading span,
.activity-heading small { display: block; }
.activity-heading span { font: 650 1.24rem var(--font-display); }
.activity-heading small { margin-top: .3rem; color: #d2e3eb; line-height: 1.45; }
.activity-sidebar > a { position: relative; display: grid; gap: .18rem; min-height: 5.65rem; padding: .9rem 2.6rem .9rem 1rem; color: var(--tb-ink); background: #fff; border: 1px solid var(--tb-line); border-left: 5px solid #647d68; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.activity-sidebar > a:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(16, 45, 69, .11); }
.activity-sidebar b { color: var(--tb-navy); font-size: .97rem; }
.activity-sidebar small { color: var(--tb-muted); line-height: 1.38; }
.activity-sidebar i { position: absolute; top: .9rem; right: .9rem; color: var(--tb-orange); font-size: 1.15rem; font-style: normal; }
.activity-sidebar .alpacas { border-left-color: #5d7f6c; }
.activity-sidebar .lights { border-left-color: #b18c39; }
.activity-sidebar .safaris { border-left-color: #667140; }
.activity-sidebar .villages { border-left-color: #a34c43; }
.activity-sidebar .petting { border-left-color: #407d87; }
.activity-sidebar .pumpkins { border-left-color: #b96535; }
.activity-sidebar .reindeer { border-left-color: #7d4c45; }
.activity-sidebar .upick { border-left-color: #4d7955; }

.outing-connections { max-width: 78rem; margin-top: 4rem; padding: clamp(1.7rem, 4vw, 3rem); color: #eaf4f8; background: var(--tb-navy); border-bottom: 7px solid var(--tb-orange); box-shadow: 0 18px 40px rgba(16, 45, 69, .18); }
.outing-connections .section-kicker { color: #f1c968; }
.connection-heading h2 { color: #fff; }
.connection-heading > p:last-child { max-width: 59rem; color: #d3e3ea; line-height: 1.74; }
.connection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.2); }
.connection-grid article { padding: 1.2rem; background: rgba(255,255,255,.06); border-top: 4px solid var(--tb-cyan); }
.connection-grid article:nth-child(2) { border-top-color: var(--tb-yellow); }
.connection-grid article:nth-child(3) { border-top-color: var(--tb-orange); }
.connection-season { margin: 0 0 .35rem; color: #f1c968; font-size: .69rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.connection-grid h3 { margin: 0 0 .7rem; color: #fff; font-size: 1.2rem; }
.connection-grid article > p:last-child { margin: 0; color: #d6e5eb; line-height: 1.72; }
.connection-grid a { color: #f1cf76; font-weight: 700; }

.alpaca-context { max-width: 78rem; margin-top: 2rem; padding: clamp(1.6rem, 4vw, 2.7rem); background: #fff; border: 1px solid var(--tb-line); border-left: 7px solid var(--tb-cyan); box-shadow: 0 11px 28px rgba(16, 45, 69, .08); }
.alpaca-context h2 { margin: .25rem 0 1rem; color: var(--tb-navy); font-size: clamp(1.9rem, 3vw, 2.65rem); }
.alpaca-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.alpaca-columns p { margin: 0; color: #455e6b; line-height: 1.78; }
.alpaca-columns a { color: var(--tb-blue); font-weight: 700; }
.tubing-page .finder-band { max-width: 78rem; }

@media (max-width: 980px) {
  .tubing-layout { grid-template-columns: 1fr; }
  .activity-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); order: 2; }
  .activity-heading { grid-column: 1 / -1; }
  .connection-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .tubing-key { grid-template-columns: 1fr; }
  .tubing-card-grid { grid-template-columns: 1fr; }
  .visit-facts { display: grid; grid-template-columns: 1fr 1fr; }
  .visit-facts div:nth-child(even) { border-left: 1px solid var(--tb-line); }
  .visit-facts div:nth-child(n + 3) { border-top: 1px solid var(--tb-line); }
  .alpaca-columns { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .tubing-layout,
  .outing-connections,
  .alpaca-context { width: calc(100% - 2rem); margin-inline: 1rem; }
  .tubing-layout { padding-inline: 0; }
}

@media (max-width: 620px) {
  .tubing-hero { min-height: 44rem; }
  .tubing-hero-shade { background: linear-gradient(0deg, rgba(10, 38, 58, .92) 0%, rgba(10, 38, 58, .16) 70%, rgba(10, 38, 58, .03) 100%); }
  .tubing-hero-photo img { object-position: center 36%; }
  .tubing-hero-inner { padding-block: 2.2rem; }
  .tubing-title-panel { padding-left: 1rem; border-left-width: 5px; }
  .tubing-title-panel h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .activity-sidebar,
  .visit-facts { grid-template-columns: 1fr; }
  .visit-facts div:nth-child(even) { border-left: 0; }
  .visit-facts div + div { border-top: 1px solid var(--tb-line); }
  .tubing-card summary { grid-template-columns: minmax(0, 1fr) auto; align-items: start; padding: 1rem; }
  .lift-label { grid-column: 1; justify-self: start; white-space: normal; }
  .summary-action { grid-column: 2; grid-row: 1; }
  .tubing-card-body { padding: 1rem; }
  .outing-connections,
  .alpaca-context { padding: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .activity-sidebar > a { transition: none; }
}
