/*
  Taxis In Thirsk – global styles
  Modern, Apple-inspired minimal UI with soft blue accent.
*/

:root {
  --color-bg: #f7fbf5; /* light neutral with green tint */
  --color-surface: #ffffff;
  --color-border-subtle: rgba(72, 133, 35, 0.18);
  --color-text: #1f2933; /* neutral body text */
  --color-muted: #5b6b75;
  --color-accent: #1d4060; /* brand blue to match logo */
  --color-accent-2: #488523; /* brand green */
  --color-accent-soft: rgba(29, 64, 96, 0.16);
  --color-accent-2-soft: rgba(72, 133, 35, 0.12);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius-xl: 1.75rem;
  --radius-lg: 1rem;
  --radius-pill: 999px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

main {
  display: block;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(243, 244, 246, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 1.5rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Header actions are primarily for mobile where the primary nav is hidden. */
.header-actions {
  display: none;
}

.site-logo-icon {
  width: 184px;
  height: 92px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
}

.site-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.site-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-subtitle {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.site-title-block {
  display: flex;
  flex-direction: column;
}

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.nav-link {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  color: var(--color-text);
}

.nav-link:hover {
  background-color: var(--color-accent-soft);
  text-decoration: none;
}

.nav-link.is-active {
  background-color: rgba(37, 150, 190, 0.2);
  color: var(--color-text);
}

.nav-more {
  position: relative;
}

.nav-more[open] > summary.nav-more-trigger {
  background-color: rgba(37, 150, 190, 0.2);
}

.nav-more summary {
  list-style: none;
  cursor: pointer;
}

.nav-more summary::marker,
.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more-menu {
  position: absolute;
  top: 110%;
  right: 0;
  min-width: 200px;
  padding: 0.4rem;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(37, 150, 190, 0.12);
  display: grid;
  gap: 0.25rem;
  z-index: 10;
}

.nav-more-link {
  display: block;
  width: 100%;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 65, 96, 0.15);
  color: var(--color-text);
  cursor: pointer;
  background: rgba(31, 65, 96, 0.06);
}

.nav-toggle-icon {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle-icon::before {
  top: -6px;
}
.nav-toggle-icon::after {
  top: 6px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: #1d4060;
  color: #f9fafb;
  border: 1px solid #488523;
  box-shadow: 0 18px 40px rgba(31, 65, 96, 0.35);
}

.btn-primary:hover {
  background: #488523;
  text-decoration: none;
}

.btn-secondary {
  background: #1d4060;
  color: #f9fafb;
  border: 1px solid #488523;
}

.btn-secondary:hover {
  background: #488523;
  text-decoration: none;
}

.btn-pill {
  border-radius: 999px;
}

.hero {
  padding: 2.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr);
  gap: 2rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.04);
  font-size: 0.8rem;
  color: var(--color-muted);
}

.hero-heading {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 1.1rem 0 0.75rem;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--color-muted);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 0;
}

.hero-footnote {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.hero-card {
  background: radial-gradient(circle at top left, #eff6ff, #ffffff);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(199, 210, 254, 0.8);
  padding: 1.5rem 1.5rem 1.2rem;
  box-shadow: var(--shadow-soft);
}

.hero-card-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #4b5563;
}

.hero-card-metric {
  margin-top: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.hero-card-metric span:first-child {
  font-size: 1.9rem;
  font-weight: 600;
}

.hero-card-metric span:last-child {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.hero-card-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.hero-card-media {
  position: relative;
  margin: -1.2rem -1.2rem 1.1rem;
  border-radius: calc(var(--radius-xl) - 2px);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.hero-media {
  position: relative;
}

.hero-media-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.hero-media-picture {
  display: block;
}

.hero-media-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-media-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: rgba(15, 23, 42, 0.92);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(10px);
}

.section {
  padding: 1rem 0 2.2rem;
}

.section-tight {
  padding-top: 0.6rem;
  padding-bottom: 1.4rem;
}


.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.2rem;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text);
}

.section-title {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 0.94rem;
  color: var(--color-muted);
  max-width: 32rem;
}

.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.07);
}

.card-visual {
  height: 92px;
  border-radius: calc(var(--radius-xl) - 6px);
  background: #28393f;
  margin-bottom: 0.9rem;
  position: relative;
  overflow: hidden;
}

.card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  mix-blend-mode: normal;
  opacity: 0;
}

.card-visual-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.05rem;
  color: #f8fafc;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.card-visual-text {
  font-size: 0.95rem;
}

.card-visual-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

.card-visual-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: #28393f;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
}

.card-subtitle {
  font-size: 0.86rem;
  color: var(--color-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.badge-featured {
  background-color: #e0edff;
  color: #1d4ed8;
}

.badge-soft {
  background-color: rgba(15, 23, 42, 0.04);
  color: #4b5563;
}

.card-body {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.card-meta {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.card-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-actions .btn-primary,
.card-actions .btn-secondary {
  font-size: 0.85rem;
  padding-inline: 0.9rem;
  padding-block: 0.55rem;
}

.alpha-logo-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, #111827, #4b5563);
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Taxi list cards */

.taxi-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.taxi-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.taxi-name {
  font-size: 1rem;
  font-weight: 600;
}

.taxi-phone {
  font-size: 0.95rem;
}

.taxi-phone-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.taxi-phone-label {
  font-size: 0.75rem;
  color: var(--color-muted);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.05rem 0.45rem;
  border-radius: var(--radius-pill);
}

.taxi-phone a {
  font-weight: 500;
}

.taxi-notes {
  font-size: 0.86rem;
  color: var(--color-muted);
}

.taxi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.4rem;
}

.taxi-tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.04);
  color: #4b5563;
}

.taxi-card-footer {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* Taxi directory controls */

.directory-controls {
  margin-top: 1.2rem;
  margin-bottom: 1.1rem;
  display: grid;
  gap: 0.6rem;
}

.filter-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}

.chip-btn {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(226, 232, 240, 0.20);
  color: var(--color-text);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  cursor: pointer;
}

.chip-btn[aria-pressed="true"] {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.18);
}

.filter-status {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Compact taxi cards for mobile directory browsing */

.taxi-card-compact {
  gap: 0.75rem;
}

.taxi-compact-header {
  display: grid;
  gap: 0.35rem;
}

.taxi-compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.taxi-compact-actions .btn-call {
  flex: 1 1 12rem;
}

.taxi-details {
  margin-top: 0.1rem;
}

.taxi-details > summary {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(226, 232, 240, 0.14);
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.9rem;
}

.taxi-details > summary::after {
  content: "+";
  float: none;
  position: static;
  font-size: 1rem;
}

.taxi-details[open] > summary::after {
  content: "–";
}

.taxi-details-body {
  margin-top: 0.75rem;
}

.taxi-other-phones {
  margin-top: 0.65rem;
}

.taxi-other-phones-title {
  font-size: 0.82rem;
  color: var(--color-muted);
  font-weight: 750;
  margin-bottom: 0.35rem;
}

.taxi-other-phones ul {
  margin: 0;
  padding-left: 1.1rem;
}

.taxi-other-phones li {
  margin: 0.15rem 0;
}

/* Rank / routes */

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.info-panel {
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-subtle);
  padding: 1.2rem 1.25rem;
}

.info-panel h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.info-panel p {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.info-panel ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.info-panel li {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.map-embed {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
}

.map-embed iframe {
  border: 0;
  width: 100%;
  height: 100%;
}



/* Map reveal (mobile performance) */
.map-reveal {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
}

.map-reveal > summary {
  cursor: pointer;
  padding: 0.9rem 1rem;
  font-weight: 650;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.map-reveal > summary::-webkit-details-marker {
  display: none;
}

.map-reveal > summary::after {
  content: "Show";
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.85;
}

.map-reveal[open] > summary::after {
  content: "Hide";
}

.map-reveal[open] > summary {
  border-bottom: 1px solid var(--color-border-subtle);
}

.map-frame {
  aspect-ratio: 4 / 3;
  min-height: 220px;
}

.map-frame iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.map-links {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.routes-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
}

.route-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-subtle);
  padding: 1rem 1.1rem;
}

.route-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.route-meta {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  color: var(--color-muted);
}

.route-note {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Page footer */

.site-footer {
  margin-top: auto;
  padding: 1.2rem 0 1.8rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #4b5563;
  text-decoration: none;
}

.footer-cta a:hover {
  background: rgba(15, 23, 42, 0.05);
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-note {
  max-width: 30rem;
}

/* FAQ (details/summary) */

details {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(229, 231, 235, 0.9);
}

details:first-of-type {
  border-top: none;
  padding-top: 0;
}

summary {
  cursor: pointer;
  color: var(--color-text);
  font-size: 0.92rem;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  color: var(--color-muted);
  font-weight: 600;
}

details[open] summary::after {
  content: "–";
}

details > p {
  margin-bottom: 0;
}

/* Long-form accordion sections (used on mobile to reduce scrolling) */

.accordion-section {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(226, 232, 240, 0.22);
  border-radius: 22px;
  padding: 0;
  margin: 1rem 0;
  overflow: hidden;
}

/* Override global details styling */
.accordion-section {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.accordion-section:first-of-type {
  padding-top: 0;
}

.accordion-section > summary {
  padding: 1rem 1.1rem;
  font-weight: 900;
  font-size: 1rem;
  position: relative;
  padding-right: 3rem;
}

.accordion-title {
  display: block;
  letter-spacing: -0.01em;
}

.accordion-subtitle {
  display: block;
  font-weight: 650;
  opacity: 0.75;
  font-size: 0.92rem;
  margin-top: 0.2rem;
}

.accordion-section > summary::after {
  position: absolute;
  right: 1.05rem;
  top: 1.05rem;
  float: none;
  font-size: 1.15rem;
}

.accordion-body {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1rem 1.1rem 1.1rem;
}

.accordion-body .card-grid {
  margin-top: 0;
}

.accordion-body .card-grid + .callout {
  margin-top: 1.1rem;
}

/* Responsive layout tweaks */

@media (min-width: 720px) {
  .hero {
    padding: 3.5rem 0 2.8rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  }
}

/* Mobile-first header: avoid horizontal scrolling nav; rely on bottom-bar drawer instead. */
@media (max-width: 720px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    padding: 10px 0;
    gap: 0.6rem;
  }

  .site-subtitle {
    display: none;
  }

  .nav-toggle-label {
    display: none;
    order: 2;
    padding: 0.5rem 0.8rem;
  }
  .nav-toggle {
    display: none;
  }

  nav.primary-nav {
    display: none !important;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
    order: 2;
  }

  .header-cta {
    padding: 0.6rem 0.95rem;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .nav-more summary {
    display: none;
  }

  .hero-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    padding: 0.6rem 0.9rem;
    white-space: nowrap;
  }
}


/* --- Accessibility & UX Enhancements (v2) --- */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 1000;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
  transform: translateY(-200%);
  transition: transform 160ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.quick-actions a:focus-visible,
.tt-bottom-bar__item:focus-visible,
.tt-bottom-bar a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.65);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Provide a small visual cue for the active nav beyond colour alone */
.nav-link[aria-current="page"] {
  box-shadow: inset 0 -2px 0 rgba(37, 99, 235, 0.55);
}

/* --- Mobile Bottom Action Bar + Menu Drawer --- */
:root {
  --tt-bottom-bar-h: 4.65rem;
}

.tt-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.tt-bottom-bar__inner {
  width: min(1120px, 100% - 1.25rem);
  margin: 0 auto;
  padding: 0.55rem 0.2rem calc(0.55rem + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  align-items: stretch;
}

.tt-bottom-bar__item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: calc(var(--tt-bottom-bar-h) - 1.1rem);
  padding: 0.65rem 0.6rem;
  border-radius: 18px;
  font-weight: 800;
  text-decoration: none;
  color: #f4fbff;
  background: #1d4060;
  border: 1px solid #488523;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tt-bottom-bar__item svg {
  fill: currentColor;
}

.tt-bottom-bar__label {
  font-size: 0.86rem;
  line-height: 1.1;
  text-align: center;
  color: #f4fbff;
}

.tt-bottom-bar__primary {
  background: #488523;
  color: #f6f9f1;
}

/* Menu Drawer (rendered outside the bottom bar for reliable mobile positioning) */
.tt-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
}

body.tt-menu-open {
  overflow: hidden;
  touch-action: none;
}

body.tt-menu-open .tt-menu {
  display: block;
}

.tt-menu__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 23, 0.55);
  cursor: pointer;
}

.tt-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: min(420px, 88vw);
  max-width: 88vw;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-left: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: -30px 0 70px rgba(2, 6, 23, 0.24);
  border-top-left-radius: 26px;
  border-bottom-left-radius: 26px;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  transform: translateX(102%);
  transition: transform 180ms ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

body.tt-menu-open .tt-menu__panel {
  transform: translateX(0);
}

.tt-menu__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.tt-menu__title {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.tt-menu__subtitle {
  opacity: 0.75;
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

.tt-menu__close {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  padding: 0.55rem 0.7rem;
  font-weight: 900;
  cursor: pointer;
}

.tt-menu__nav {
  display: grid;
  gap: 0.35rem;
}

.tt-menu__nav a {
  padding: 0.85rem 0.9rem;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 800;
  color: var(--color-text);
  background: rgba(148, 163, 184, 0.14);
}

.tt-menu__nav a:hover {
  background: rgba(37, 99, 235, 0.12);
}

.tt-menu__nav a.is-current {
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(37, 99, 235, 0.28);
}

.tt-menu__nav a.is-current::after {
  content: "Current";
  float: right;
  font-size: 0.85rem;
  opacity: 0.75;
  font-weight: 800;
}

/* Call Now Picker */
.tt-call {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

body.tt-call-open {
  overflow: hidden;
  touch-action: none;
}

body.tt-call-open .tt-call {
  display: block;
}

.tt-call__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 23, 0.55);
  cursor: pointer;
}

.tt-call__panel {
  position: absolute;
  left: 50%;
  bottom: calc(var(--tt-bottom-bar-h) + env(safe-area-inset-bottom) + 10px);
  transform: translateX(-50%) translateY(18px);
  width: min(520px, calc(100vw - 24px));
  max-height: min(72vh, 560px);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.28);
  border-radius: 26px;
  padding: 1rem 1rem 1.1rem;
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

body.tt-call-open .tt-call__panel {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tt-call__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.tt-call__title {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.tt-call__subtitle {
  opacity: 0.75;
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

.tt-call__close {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  padding: 0.55rem 0.7rem;
  font-weight: 900;
  cursor: pointer;
}

.tt-call__list {
  display: grid;
  gap: 0.75rem;
}

.tt-call__item {
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(226, 232, 240, 0.22);
  border-radius: 22px;
  padding: 0.9rem 0.95rem;
}

.tt-call__name {
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.tt-call__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.tt-call__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.62);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

.tt-call__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tt-call__footer {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.tt-menu__meta {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(226, 232, 240, 0.26);
  border-radius: 22px;
  padding: 0.9rem 1rem;
  font-size: 0.98rem;
}

/* Ensure content never sits under the bottom bar on small screens */
main {
  padding-bottom: calc(var(--tt-bottom-bar-h) + env(safe-area-inset-bottom));
}

@media (min-width: 840px) {
  .tt-bottom-bar {
    display: none;
  }
  main {
    padding-bottom: 0;
  }
}

/* --- Informational / independence callouts --- */
.notice {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(226, 232, 240, 0.28);
  border-radius: 22px;
  padding: 1rem 1.1rem;
}

.notice strong {
  font-weight: 800;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.meta-row .meta {
  font-size: 0.95rem;
  opacity: 0.82;
}

/* Forms */
.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-grid label {
  font-weight: 700;
  display: block;
  margin-bottom: 0.35rem;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.75rem 0.85rem;
  font: inherit;
}

.form-grid textarea {
  min-height: 140px;
  resize: vertical;
}


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


.media-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.media-tile {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.media-tile-picture {
  display: block;
}

.media-tile-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-tile-label {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: rgba(15, 23, 42, 0.92);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(10px);
}

@media (min-width: 720px) {
  .media-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
