/*
Theme Name: Jasper Tourism: Wild Mainline
Theme URI: https://jaspertourism.ca
Author: Jasper Tourism Project
Description: A native editorial destination theme for Jasper, Alberta, balancing a real mountain town with the scale of the Athabasca valley and dark sky.
Version: 1.1.2
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jasper-tourism
Tags: blog, news, photography, custom-logo, custom-menu, featured-images, accessibility-ready, translation-ready
*/

:root {
  --jt-ink: #0b1f24;
  --jt-air: #f2efe7;
  --jt-paper: #faf8f2;
  --jt-teal: #2e7e82;
  --jt-lake: #1d5964;
  --jt-amber: #d88a2b;
  --jt-timber: #6b4d3a;
  --jt-moraine: #7b8380;
  --jt-night: #27385e;
  --jt-white: #ffffff;
  --jt-rule: rgba(11, 31, 36, 0.22);
  --jt-gutter: clamp(1.15rem, 4vw, 4.5rem);
  --jt-max: 90rem;
  --jt-reading: 46rem;
  --jt-display: "Barlow Condensed", "Bahnschrift SemiCondensed", Bahnschrift, "Arial Narrow", "Roboto Condensed", sans-serif;
  --jt-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --jt-mono: "IBM Plex Mono", Consolas, monospace;
  --jt-space-1: 0.45rem;
  --jt-space-2: 0.8rem;
  --jt-space-3: 1.25rem;
  --jt-space-4: 2rem;
  --jt-space-5: clamp(3rem, 7vw, 6.5rem);
  --jt-space-6: clamp(5rem, 11vw, 10rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--jt-ink);
  background: var(--jt-air);
  font-family: var(--jt-body);
  font-size: 1.075rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.09;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(11,31,36,.05) 0, rgba(11,31,36,.05) 1px, transparent 1px, transparent 5px),
    radial-gradient(circle at 28% 22%, rgba(255,255,255,.8), transparent 42%);
}

img { max-width: 100%; height: auto; vertical-align: middle; }
figure { margin: 0; }
a { color: var(--jt-lake); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--jt-teal); }
button,
input,
textarea,
select { font: inherit; }

:focus-visible {
  outline: 3px solid var(--jt-amber);
  outline-offset: 4px;
}

::selection { color: var(--jt-white); background: var(--jt-teal); }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
  z-index: 100000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  clip: auto;
  padding: .8rem 1rem;
  color: var(--jt-ink);
  background: var(--jt-amber);
}

.jt-shell { width: min(100% - (2 * var(--jt-gutter)), var(--jt-max)); margin-inline: auto; }
.jt-reading { width: min(100% - (2 * var(--jt-gutter)), var(--jt-reading)); margin-inline: auto; }

.jt-kicker,
.jt-index,
.entry-meta,
.jt-utility {
  font-family: var(--jt-mono);
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.jt-kicker { display: flex; align-items: center; gap: .8rem; margin: 0 0 1rem; }
.jt-kicker::before { width: 2.75rem; height: 1px; content: ""; background: currentColor; }

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 .65em;
  font-family: var(--jt-display);
  font-weight: 730;
  line-height: .96;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(3.4rem, 9vw, 8.8rem); }
h2 { font-size: clamp(2.65rem, 6vw, 5.8rem); }
h3 { font-size: clamp(1.65rem, 3vw, 2.65rem); line-height: 1.06; }
p { margin: 0 0 1.3em; }

.site-header {
  position: relative;
  z-index: 50;
  color: var(--jt-white);
  background: var(--jt-ink);
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.site-header__main {
  min-height: 6.6rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
}

.site-branding { display: flex; align-items: center; min-width: 0; }
.custom-logo-link,
.jt-default-logo { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.custom-logo { width: auto; max-width: min(12rem, 45vw); max-height: 4.6rem; object-fit: contain; }
.jt-default-logo img { width: auto; height: 4.4rem; }

.primary-navigation { justify-self: stretch; }
.primary-navigation .menu,
.primary-navigation ul { display: flex; align-items: center; gap: clamp(.9rem, 2.1vw, 2.2rem); padding: 0; margin: 0; list-style: none; }
.primary-navigation a { color: var(--jt-white); font-size: .88rem; font-weight: 650; text-decoration: none; }
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current-menu-ancestor > a { color: #8ed4d2; }
.primary-navigation a::after { display: block; width: 0; height: 2px; margin-top: .38rem; content: ""; background: var(--jt-amber); transition: width .2s ease; }
.primary-navigation a:hover::after,
.primary-navigation .current-menu-item > a::after { width: 100%; }

.site-header__tools { display: flex; align-items: center; gap: .75rem; }
.jt-header-search { position: relative; }
.jt-header-search summary { display: grid; width: 2.75rem; height: 2.75rem; place-items: center; cursor: pointer; list-style: none; border: 1px solid rgba(255,255,255,.28); }
.jt-header-search summary::-webkit-details-marker { display: none; }
.jt-header-search[open] .search-form { position: absolute; top: calc(100% + 1rem); right: 0; width: min(23rem, calc(100vw - 2rem)); padding: 1rem; background: var(--jt-ink); border: 1px solid rgba(255,255,255,.25); }
.search-form { display: flex; gap: .5rem; }
.search-field { min-width: 0; flex: 1; padding: .75rem .9rem; color: var(--jt-ink); background: var(--jt-white); border: 0; border-radius: 0; }
.search-submit { padding: .75rem 1rem; color: var(--jt-ink); background: var(--jt-amber); border: 0; cursor: pointer; }

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  color: var(--jt-white);
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  cursor: pointer;
}
.menu-toggle__lines,
.menu-toggle__lines::before,
.menu-toggle__lines::after { display: block; width: 1.25rem; height: 2px; margin: auto; content: ""; background: currentColor; }
.menu-toggle__lines { position: relative; }
.menu-toggle__lines::before { position: absolute; top: -.42rem; }
.menu-toggle__lines::after { position: absolute; top: .42rem; }

.jt-mainline {
  position: relative;
}
.jt-mainline::before {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: var(--jt-gutter);
  width: 1px;
  content: "";
  pointer-events: none;
  background: rgba(255,255,255,.36);
}

.jt-hero {
  position: relative;
  min-height: clamp(42rem, 82vh, 58rem);
  overflow: hidden;
  color: var(--jt-white);
  background: var(--jt-ink);
  isolation: isolate;
}
.jt-hero__media { position: absolute; z-index: -2; inset: 0; }
.jt-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 43%; }
.jt-hero::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, rgba(7,22,26,.93) 0, rgba(7,22,26,.74) 33%, rgba(7,22,26,.18) 64%, rgba(7,22,26,.3) 100%); }
.jt-hero__grid { min-height: inherit; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; padding-block: clamp(4.5rem, 8vw, 7rem) 4rem; }
.jt-hero__copy { grid-column: 1 / span 6; padding-left: 1.6rem; }
.jt-hero h1 { max-width: 9ch; margin-bottom: .28em; font-size: clamp(3.8rem, 7vw, 6.5rem); }
.jt-hero__lede { max-width: 31rem; font-size: clamp(1.08rem, 1.7vw, 1.32rem); }
.jt-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.jt-hero__locator { grid-column: 10 / -1; align-self: end; justify-self: end; padding: 1.25rem 0 0 1.25rem; border-top: 1px solid rgba(255,255,255,.45); font-family: var(--jt-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

.jt-button,
.wp-block-button__link,
.jt-arrow-link {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  padding: .78rem 1.15rem;
  color: var(--jt-ink);
  background: var(--jt-amber);
  border: 1px solid var(--jt-amber);
  border-radius: 0;
  font-size: .86rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.jt-button::after,
.jt-arrow-link::after { content: "→"; }
.jt-button:hover,
.wp-block-button__link:hover,
.jt-arrow-link:hover { color: var(--jt-white); background: var(--jt-lake); border-color: var(--jt-lake); transform: translateX(.18rem); }
.jt-button--ghost { color: var(--jt-white); background: transparent; border-color: rgba(255,255,255,.65); }

.jt-route-band { color: var(--jt-white); background: var(--jt-teal); }
.jt-route-band__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); min-height: 7.6rem; }
.jt-route-band__intro,
.jt-route-band a { display: flex; align-items: center; padding: 1.25rem clamp(1rem, 2.4vw, 2rem); border-right: 1px solid rgba(255,255,255,.23); }
.jt-route-band__intro { font-family: var(--jt-display); font-size: 1.45rem; font-weight: 700; line-height: 1; }
.jt-route-band a { justify-content: space-between; color: var(--jt-white); font-size: .84rem; font-weight: 700; text-decoration: none; }
.jt-route-band a:hover { color: var(--jt-ink); background: var(--jt-amber); }

.jt-section { padding-block: var(--jt-space-6); }
.jt-section--compact { padding-block: var(--jt-space-5); }
.jt-section--ink { color: var(--jt-white); background: var(--jt-ink); }
.jt-section--night { color: var(--jt-white); background-color: var(--jt-night); background-image: radial-gradient(circle at 19% 24%, rgba(255,255,255,.7) 0 1px, transparent 1.5px), radial-gradient(circle at 73% 39%, rgba(255,255,255,.55) 0 1px, transparent 1.5px), radial-gradient(circle at 84% 77%, rgba(255,255,255,.45) 0 1px, transparent 1.5px); background-size: 17rem 19rem, 23rem 29rem, 31rem 37rem; }
.jt-section--paper { background: var(--jt-paper); }

.jt-editorial-split,
.jt-feature-split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 7vw, 8rem); align-items: center; }
.jt-feature-split--reverse { grid-template-columns: 7fr 5fr; }
.jt-feature-split--reverse .jt-feature-split__media { order: -1; }
.jt-section-heading { max-width: 10ch; }
.jt-section-intro { max-width: 35rem; font-size: 1.15rem; }

.jt-feature-split__media,
.jt-editorial-media,
.jt-card__media { position: relative; overflow: hidden; background: #d9d8d1; }
.jt-feature-split__media img,
.jt-editorial-media img,
.jt-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.jt-feature-split__media > img { position: absolute; inset: 0; }
.jt-feature-split__media { min-height: clamp(27rem, 50vw, 44rem); clip-path: polygon(0 0, 96% 0, 100% 4%, 100% 100%, 0 100%); }
.jt-feature-split__media:hover img,
.jt-card:hover .jt-card__media img { transform: scale(1.018) translateX(.2%); }

.jt-panoramic { position: relative; min-height: clamp(30rem, 60vw, 48rem); display: grid; align-items: end; overflow: hidden; color: var(--jt-white); background: var(--jt-ink); }
.jt-panoramic > img { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jt-panoramic::after { position: absolute; z-index: 1; inset: 0; content: ""; background: linear-gradient(0deg, rgba(11,31,36,.85), transparent 65%); }
.jt-panoramic__copy { position: relative; z-index: 2; width: min(100% - (2 * var(--jt-gutter)), var(--jt-max)); margin-inline: auto; padding-block: 4rem; display: grid; grid-template-columns: 7fr 5fr; gap: 2rem; align-items: end; }
.jt-panoramic__copy > :last-child { grid-column: 2; }

.jt-card-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2vw, 1.75rem); }
.jt-card { position: relative; color: inherit; text-decoration: none; border-top: 1px solid var(--jt-rule); }
.jt-card-grid > .jt-card:nth-child(1) { grid-column: 1 / span 5; }
.jt-card-grid > .jt-card:nth-child(2) { grid-column: 6 / span 3; margin-top: 5rem; }
.jt-card-grid > .jt-card:nth-child(3) { grid-column: 9 / -1; }
.jt-card-grid > .jt-card:nth-child(4) { grid-column: 2 / span 4; margin-top: 2rem; }
.jt-card-grid > .jt-card:nth-child(5) { grid-column: 7 / -1; margin-top: 6rem; }
.jt-card__media { aspect-ratio: 3 / 2; margin-bottom: 1.2rem; }
.jt-card-grid > .jt-card:nth-child(2) .jt-card__media,
.jt-card-grid > .jt-card:nth-child(4) .jt-card__media { aspect-ratio: 4 / 5; }
.jt-card__body { padding: 0 .25rem 1.5rem; }
.jt-card__body h3 { margin-top: .5rem; }
.jt-card__meta { color: var(--jt-moraine); font-family: var(--jt-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }

.jt-guide-hero { padding-block: var(--jt-space-5); background: var(--jt-paper); border-bottom: 1px solid var(--jt-rule); }
.jt-guide-hero__grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(2rem, 6vw, 7rem); align-items: end; }
.jt-guide-hero h1 { font-size: clamp(4rem, 10vw, 9rem); }
.jt-guide-hero__description { max-width: 38rem; padding-bottom: .75rem; }

.jt-lead-story { display: grid; grid-template-columns: 7fr 5fr; min-height: 38rem; background: var(--jt-ink); color: var(--jt-white); }
.jt-lead-story__media { overflow: hidden; }
.jt-lead-story__media img { width: 100%; height: 100%; object-fit: cover; }
.jt-lead-story__copy { align-self: end; padding: clamp(2rem, 6vw, 5rem); }
.jt-lead-story a { color: inherit; }

.jt-index-list { border-top: 1px solid var(--jt-rule); }
.jt-index-row { display: grid; grid-template-columns: 7rem 1fr minmax(12rem, 25rem); gap: 2rem; align-items: center; padding-block: 2rem; color: inherit; text-decoration: none; border-bottom: 1px solid var(--jt-rule); }
.jt-index-row:hover { background: rgba(46,126,130,.08); }
.jt-index-row__copy { display: grid; gap: var(--jt-space-2); min-width: 0; }
.jt-index-row__copy .jt-card__meta { display: block; line-height: 1.4; }
.jt-index-row__copy strong { display: block; line-height: 1.4; }
.jt-lead-story__copy .entry-meta { margin-bottom: var(--jt-space-3); }
.jt-index-row__thumb { aspect-ratio: 3 / 2; overflow: hidden; }
.jt-index-row__thumb img { width: 100%; height: 100%; object-fit: cover; }

.jt-category-support { max-width: 52rem; margin-top: var(--jt-space-5); padding-top: 2rem; border-top: 1px solid var(--jt-rule); }
.pagination { margin-top: 4rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .45rem; }
.page-numbers { min-width: 2.8rem; min-height: 2.8rem; display: grid; place-items: center; padding: .4rem .8rem; color: var(--jt-ink); text-decoration: none; border: 1px solid var(--jt-rule); }
.page-numbers.current,
.page-numbers:hover { color: var(--jt-white); background: var(--jt-lake); }

.single-hero { color: var(--jt-white); background: var(--jt-ink); }
.single-hero__grid { display: grid; grid-template-columns: 5fr 7fr; min-height: clamp(34rem, 60vw, 48rem); }
.single-hero__copy { display: flex; flex-direction: column; justify-content: end; padding: clamp(3rem, 7vw, 6rem) var(--jt-gutter); }
.single-hero h1 { font-size: clamp(3.4rem, 7vw, 7rem); }
.single-hero__image { overflow: hidden; clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%, 0 5%); }
.single-hero__image img { width: 100%; height: 100%; object-fit: cover; }

.entry-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(17rem, 4fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; padding-block: var(--jt-space-5); }
.entry-content { min-width: 0; max-width: var(--jt-reading); font-size: 1.08rem; }
.entry-content > h2 { margin-top: 1.5em; font-size: clamp(2.4rem, 4.5vw, 4rem); }
.entry-content > h3 { margin-top: 1.7em; }
.entry-content ul,
.entry-content ol { padding-left: 1.35em; margin: 0 0 1.5rem; }
.entry-content li + li { margin-top: .45rem; }
.entry-content li > ul,
.entry-content li > ol { margin-top: .45rem; }
.entry-content blockquote,
.wp-block-quote { margin: 2.5rem 0; padding: 1.5rem 1.5rem 1.5rem 2rem; border-left: 5px solid var(--jt-teal); background: var(--jt-paper); font-size: 1.28rem; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: .96rem; }
.entry-content th,
.entry-content td { padding: .85rem; text-align: left; vertical-align: top; border: 1px solid var(--jt-rule); }
.entry-content th { color: var(--jt-white); background: var(--jt-lake); }
.wp-block-image { margin: 2.5rem 0; }
.wp-block-image figcaption,
.wp-element-caption { margin-top: .6rem; color: #4f5d5d; font-size: .84rem; line-height: 1.45; }
.alignwide { width: min(70rem, calc(100vw - 2 * var(--jt-gutter))); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }

.entry-sidebar { position: sticky; top: 2rem; }
.jt-sidebar-panel { margin-bottom: 1.5rem; padding: 1.5rem; border-top: 4px solid var(--jt-teal); background: var(--jt-paper); }
.jt-sidebar-panel h2 { font-size: 2rem; }
.jt-sidebar-routes { padding: 0; margin: 1rem 0 0; list-style: none; }
.jt-sidebar-routes li { border-top: 1px solid var(--jt-rule); }
.jt-sidebar-routes a { display: flex; justify-content: space-between; padding: .8rem 0; color: inherit; text-decoration: none; }

.jt-related { padding-block: var(--jt-space-5); background: var(--jt-paper); border-top: 1px solid var(--jt-rule); }
.jt-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.jt-page-hero { padding-block: clamp(5rem, 11vw, 10rem) var(--jt-space-5); color: var(--jt-white); background-color: var(--jt-ink); background-size: cover; background-position: center; background-blend-mode: normal; }
.jt-page-hero h1 { max-width: 11ch; }
.jt-page-hero__intro { max-width: 42rem; font-size: 1.22rem; }
.jt-page-content { padding-block: var(--jt-space-5); }
.jt-page-content--legal { width: min(100% - (2 * var(--jt-gutter)), 50rem); margin-inline: auto; }

.jt-tours-mosaic { display: grid; grid-template-columns: 7fr 5fr; gap: 1rem; margin-top: 3rem; }
.jt-tours-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.jt-tours-mosaic__main { min-height: 34rem; }
.jt-tours-mosaic__stack { display: grid; grid-template-rows: 1fr 1fr; gap: 1rem; }
.jt-integration-region { margin-top: 3rem; padding: clamp(2rem, 5vw, 4rem); color: var(--jt-white); background: var(--jt-lake); border-top: 4px solid var(--jt-amber); }
.jt-integration-state { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; }
.jt-integration-state__index { width: 3.4rem; height: 3.4rem; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); font-family: var(--jt-mono); }

/* Provider presentation lives in assets/css/providers.css. */

.jt-contact-routes { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2.5rem; border-top: 1px solid var(--jt-rule); border-left: 1px solid var(--jt-rule); }
.jt-contact-routes a { min-height: 10rem; padding: 1.5rem; color: inherit; text-decoration: none; border-right: 1px solid var(--jt-rule); border-bottom: 1px solid var(--jt-rule); }
.jt-contact-routes a:hover { color: var(--jt-white); background: var(--jt-lake); }

.jt-404 { min-height: 72vh; display: grid; align-items: end; position: relative; overflow: hidden; color: var(--jt-white); background: var(--jt-ink); }
.jt-404 > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.jt-404::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(11,31,36,.96), rgba(11,31,36,.28)); }
.jt-404__copy { position: relative; z-index: 1; max-width: 43rem; padding-block: var(--jt-space-5); }
.jt-404 h1 { font-size: clamp(5rem, 16vw, 13rem); }

.site-footer { color: var(--jt-white); background: var(--jt-ink); }
.site-footer__slogan { padding-block: var(--jt-space-5); border-bottom: 1px solid rgba(255,255,255,.15); }
.site-footer__slogan p { max-width: 13ch; margin: 0; font-family: var(--jt-display); font-size: clamp(3.2rem, 8vw, 7rem); font-weight: 730; line-height: .9; letter-spacing: -.02em; }
.site-footer__grid { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: clamp(2rem, 5vw, 5rem); padding-block: var(--jt-space-5); }
.site-footer__logo img { width: auto; height: 6rem; }
.site-footer h2 { font-size: 1rem; font-family: var(--jt-mono); letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { padding: 0; margin: 0; list-style: none; }
.site-footer li + li { margin-top: .55rem; }
.site-footer a { color: var(--jt-white); }
.site-footer__credits details { margin-top: 1rem; }
.site-footer__credits summary { cursor: pointer; font-size: .85rem; }
.site-footer__credits ul { margin-top: .8rem; color: #c7d1d0; font-size: .76rem; line-height: 1.45; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.2rem; border-top: 1px solid rgba(255,255,255,.15); color: #c7d1d0; font-size: .78rem; }

@media (max-width: 72rem) {
  .site-header__main { grid-template-columns: auto auto; justify-content: space-between; min-height: 5.5rem; }
  .primary-navigation {
    position: absolute;
    z-index: 60;
    top: 5rem;
    right: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 5rem);
    padding: 2.5rem var(--jt-gutter) 3rem;
    color: var(--jt-white);
    background: var(--jt-ink);
    border-top: 3px solid var(--jt-amber);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-.5rem);
    visibility: hidden;
    transition: transform .22s ease, opacity .22s ease, visibility .22s;
  }
  .primary-navigation.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); visibility: visible; }
  .primary-navigation .menu,
  .primary-navigation ul { display: block; }
  .primary-navigation li { border-top: 1px solid rgba(255,255,255,.18); }
  .primary-navigation a { display: block; padding: .9rem 0; font-family: var(--jt-display); font-size: clamp(1.7rem, 7vw, 3.2rem); line-height: 1; }
  .site-header__tools { position: relative; z-index: 70; }
  .menu-toggle { display: block; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 58rem) {
  body { font-size: 1rem; }
  .jt-hero { min-height: 47rem; }
  .jt-hero__media img { object-position: 66% center; }
  .jt-hero::after { background: linear-gradient(0deg, rgba(7,22,26,.93) 0, rgba(7,22,26,.62) 56%, rgba(7,22,26,.18) 100%); }
  .jt-hero__grid { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding-bottom: 3rem; }
  .jt-hero__copy { padding-left: 1.25rem; }
  .jt-hero__locator { display: none; }
  .jt-route-band__grid { grid-template-columns: 1fr 1fr; }
  .jt-route-band__intro { grid-column: 1 / -1; border-bottom: 1px solid rgba(255,255,255,.23); }
  .jt-editorial-split,
  .jt-feature-split,
  .jt-feature-split--reverse,
  .jt-panoramic__copy,
  .jt-guide-hero__grid,
  .jt-lead-story,
  .single-hero__grid,
  .entry-layout,
  .site-footer__grid { grid-template-columns: 1fr; }
  .jt-feature-split--reverse .jt-feature-split__media { order: 0; }
  .jt-feature-split__media { min-height: 26rem; }
  .jt-panoramic__copy > :last-child { grid-column: 1; }
  .jt-card { grid-column: auto !important; margin-top: 0 !important; }
  .jt-card-grid { grid-template-columns: 1fr 1fr; }
  .jt-card-grid > .jt-card:nth-child(1), .jt-card-grid > .jt-card:nth-child(5) { grid-column: 1 / -1 !important; }
  .jt-card-grid > .jt-card:nth-child(2) .jt-card__media, .jt-card-grid > .jt-card:nth-child(4) .jt-card__media { aspect-ratio: 3 / 2; }
  .jt-index-row { grid-template-columns: 4.5rem 1fr; }
  .jt-index-row__thumb { display: none; }
  .single-hero__image { order: -1; min-height: 24rem; }
  .entry-sidebar { position: static; }
  .jt-related__grid,
  .jt-contact-routes { grid-template-columns: 1fr 1fr !important; }
  .jt-tours-mosaic { grid-template-columns: 1fr; }
  .jt-tours-mosaic__main { min-height: 25rem; }
}

@media (max-width: 38rem) {
  :root { --jt-gutter: 1rem; }
  .site-header__main { min-height: 5rem; }
  .jt-default-logo img,
  .custom-logo { max-width: 9.4rem; max-height: 3.75rem; }
  .jt-header-search { display: none; }
  .jt-hero__copy { padding-left: 1rem; }
  .jt-hero h1 { font-size: clamp(3.7rem, 18vw, 5.5rem); }
  .jt-hero__actions { display: grid; width: 100%; }
  .jt-button { width: 100%; }
  .jt-route-band__grid { grid-template-columns: 1fr; }
  .jt-route-band__intro,
  .jt-route-band a { grid-column: 1; min-height: 4.5rem; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.23); }
  .jt-card-grid,
  .jt-related__grid,
  .jt-contact-routes { grid-template-columns: 1fr !important; }
  .jt-card { grid-column: 1 !important; }
  .jt-index-row { grid-template-columns: 3.5rem 1fr; gap: .8rem; }
  .entry-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .site-footer__bottom { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .site-footer, .entry-sidebar, .jt-related, .jt-route-band { display: none !important; }
  body { color: var(--jt-ink); background: var(--jt-white); }
  .entry-layout { display: block; }
  a { color: inherit; }
}
