/* Bibb County Internet — lightweight, readable */

:root {
  --bg: #f8f7f4;
  --card: #fff;
  --text: #1c1c1c;
  --text-muted: #505050;
  --accent: #0d6b63;
  --accent-hover: #094a44;
  --border: #e5e3de;
  --radius: 8px;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "DM Serif Text", Georgia, "Times New Roman", serif;
  --content-width: 52rem;
  --space: 1.25rem;
  --space-lg: 2rem;
  --shadow-sm: 0 2px 8px rgba(19, 33, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(19, 33, 42, 0.08);
}

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

html {
  font-size: 112.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-wrap {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* Header */
.site-header {
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf8 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(2px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.5rem 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
}

.site-brand:hover {
  color: var(--accent);
}

.site-brand:hover .site-brand-title {
  color: var(--accent);
}

.site-brand-mark {
  width: 1.45rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.site-brand-mark img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
}

.site-brand-lines {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.site-brand-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
}

.site-brand-subtitle {
  margin-top: 0.1rem;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #74807d;
}

.site-header-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.34rem;
  font-size: 0.86rem;
}
.site-nav a {
  color: #586562;
  text-decoration: none;
  padding: 0.28rem 0.52rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
  background: #f1f6f5;
  color: var(--accent);
  border-color: #d8e5e2;
}

.site-nav a.is-active {
  background: #eef6f5;
  color: #0b5d55;
  border-color: #d4e4e0;
}

.site-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.4rem 0.74rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
  transition: background 0.16s ease, transform 0.16s ease;
}

.site-header-cta::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  line-height: 1;
}

.site-header-cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.mobile-menu {
  display: none;
}

/* Breadcrumbs */
.breadcrumbs-bar {
  border-bottom: 1px solid var(--border);
  background: var(--card);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.015);
}

.breadcrumbs-bar nav {
  padding: 0.62rem 0;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 0.25rem;
  color: var(--border);
  font-size: 1.1em;
  font-weight: 300;
  line-height: 1;
}

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

.breadcrumbs a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.breadcrumbs li:last-child span {
  color: var(--text);
  font-weight: 500;
}

/* Main */
.site-main {
  padding: 0.7rem 0 var(--space-lg);
}

.page-shell > header,
.home-page .page-intro,
.section-page .page-intro {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.1rem;
}

.page-shell > header {
  margin-bottom: var(--space-lg);
  position: relative;
}

.page-shell > header::before {
  content: "Local Internet Guide";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  background: #eef6f5;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-city > header::before { content: "City Internet"; }
.page-county > header::before { content: "County Internet"; }
.page-problem > header::before { content: "Troubleshooting"; }
.page-service > header::before { content: "Service Overview"; }
.page-compare > header::before { content: "Provider Comparison"; }
.page-guide > header::before { content: "Practical Guide"; }

.page-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 0.2rem;
  min-height: 15rem;
  display: flex;
  align-items: flex-end;
  border-top: 1px solid #c5c0b5;
  border-bottom: 1px solid #c5c0b5;
  background-image:
    linear-gradient(to bottom, rgba(15, 20, 24, 0.2), rgba(15, 20, 24, 0.58)),
    url("../images/heroes/bibb-county.jpg");
  background-size: cover;
  background-position: center;
}

.page-hero-inner {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1.35rem var(--space) 1.45rem;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 400;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
}

/* Hero now carries the primary page title. */
.page-shell > header,
.home-page > .page-intro > h1,
.section-page > .page-intro > h1 {
  display: none;
}

/* Most generated pages already carry the page title in the hero.
   Hide the first in-content H1 to prevent duplicate title rendering. */
.page-shell .content > h1:first-child,
.home-page .content > h1:first-child,
.section-page .content > h1:first-child {
  display: none;
}

.home-page .page-intro,
.section-page .page-intro {
  margin-bottom: var(--space-lg);
}

.page-intro {
  margin-bottom: var(--space-lg);
}

/* Compare index intro should read as plain lead copy, not a card. */
.section-page-compare .page-intro {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.section-page-problems .page-intro {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.page-intro h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 400;
}

.section-block {
  margin: 0 0 var(--space-lg);
}

.section-block h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.section-block h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #d9d4c8, transparent 70%);
}

.card-grid {
  display: grid;
  gap: 0.75rem;
}

.section-block > h2 + .card-grid {
  margin-top: 1rem;
}

.card-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.card-link {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.card-link strong {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.card-link strong::before {
  content: "•";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #eef6f5;
  color: var(--accent);
  font-size: 0.82rem;
  line-height: 1;
  flex-shrink: 0;
}

.card-link[href*="/locations/"] strong::before { content: "⌂"; }
.card-link[href*="/services/"] strong::before { content: "⚡"; }
.card-link[href*="/problems/"] strong::before { content: "⚠"; }
.card-link[href*="/compare/"] strong::before { content: "⇄"; }
.card-link[href*="/guides/"] strong::before { content: "✦"; }
.card-link[href*="/check-availability/"] strong::before { content: "✓"; }

.card-link span {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card-link:hover {
  border-color: #cfcac0;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Home: Browse section — editorial link list */
.browse-section > h2 { margin-bottom: 0.85rem; }
.browse-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.browse-list li {
  border-bottom: 1px solid var(--border);
}
.browse-list li:last-child {
  border-bottom: 0;
}
.browse-list a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem 0.85rem 1.15rem;
  color: inherit;
  text-decoration: none;
  position: relative;
  padding-left: 1.15rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.browse-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8f4f3 0%, #dceeea 100%);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  border: 1px solid rgba(13, 107, 99, 0.12);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.browse-list a:hover .browse-icon {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.05);
}
.browse-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.browse-list a:hover {
  background: #f6faf9;
}
.browse-list a:hover::before {
  opacity: 1;
}
.browse-list-text {
  flex: 1;
  min-width: 0;
}
.browse-list-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.browse-list a:hover .browse-list-title {
  color: var(--accent);
}
.browse-list-desc {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.browse-list a::after {
  content: "→";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: #b5c4c1;
  transition: color 0.15s ease, transform 0.15s ease;
}
.browse-list a:hover::after {
  color: var(--accent);
  transform: translateY(-50%) translateX(2px);
}

.page-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.page-list li {
  border-bottom: 1px solid var(--border);
}

.page-list li:last-child {
  border-bottom: 0;
}

.page-list a {
  display: block;
  padding: 0.72rem 0.9rem;
  color: var(--accent);
  text-decoration: none;
  position: relative;
  padding-right: 1.8rem;
}

.page-list a:hover {
  background: #f3f8f7;
  color: var(--accent-hover);
}

.page-list a::after {
  content: "→";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa8a5;
  font-size: 0.9rem;
}

.problem-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 0.9rem;
}

.problem-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.problem-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cddad7;
}

.problem-card-media {
  min-height: 92px;
  padding: 0.62rem 0.72rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  border-bottom: 1px solid #d4dfdc;
  background-image: linear-gradient(155deg, rgba(5, 43, 50, 0.72), rgba(12, 91, 84, 0.58));
  background-size: cover;
  background-repeat: no-repeat;
}

.problem-card-media-buffering {
  background-image:
    linear-gradient(155deg, rgba(5, 43, 50, 0.72), rgba(12, 91, 84, 0.58)),
    url("../images/problems/buffering.jpg");
  background-position: center 34%;
}

.problem-card-media-high-ping {
  background-image:
    linear-gradient(155deg, rgba(5, 43, 50, 0.72), rgba(12, 91, 84, 0.58)),
    url("../images/problems/high-ping.jpg");
  background-position: center 44%;
}

.problem-card-media-internet-keeps-dropping {
  background-image:
    linear-gradient(155deg, rgba(5, 43, 50, 0.72), rgba(12, 91, 84, 0.58)),
    url("../images/problems/internet-keeps-dropping.jpg");
  background-position: center 42%;
}

.problem-card-media-lag {
  background-image:
    linear-gradient(155deg, rgba(5, 43, 50, 0.72), rgba(12, 91, 84, 0.58)),
    url("../images/problems/lag.jpg");
  background-position: center 40%;
}

.problem-card-media-slow-internet {
  background-image:
    linear-gradient(155deg, rgba(5, 43, 50, 0.72), rgba(12, 91, 84, 0.58)),
    url("../images/problems/slow-internet.jpg");
  background-position: center 36%;
}

.problem-card-icon {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.19);
  border: 1px solid rgba(255, 255, 255, 0.26);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  line-height: 1;
}

.problem-card-kicker {
  font-size: 0.73rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
}

.problem-card-body {
  padding: 0.78rem 0.82rem 0.9rem;
}

.problem-card-body h3 {
  margin: 0 0 0.38rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
}

.problem-card-body p {
  margin: 0 0 0.64rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.47;
}

.problem-card-link {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
}

.problem-card-link::after {
  content: " →";
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.location-tile {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.location-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cfd7d5;
}

.location-tile-media {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dcecea 0%, #ecf5f3 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid #d4e1de;
}

.location-tile-media span {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d7e7e4;
  color: #116d64;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.location-tile-body {
  padding: 0.82rem 0.85rem 0.95rem;
}

.location-tile-body strong {
  display: block;
  margin-bottom: 0.24rem;
  color: var(--text);
  font-size: 1rem;
}

.location-tile-body span {
  display: block;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.42;
}

.location-tile-fallback .location-tile-media {
  background-image:
    linear-gradient(155deg, rgba(8, 38, 42, 0.3), rgba(8, 38, 42, 0.52)),
    url("../images/heroes/bibb-county.jpg");
  border-bottom-color: #cfd7d5;
}


article header {
  margin-bottom: var(--space-lg);
}

article h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  color: var(--text);
}

/* Content typography */
.content {
  font-size: 1rem;
}

/* Keep homepage vertical rhythm consistent between hero, intro copy, and sections. */
.home-page > .content {
  margin: var(--space-lg) 0;
}

.home-page > .content p:last-child {
  margin-bottom: 0;
}

.content h1 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: var(--space-lg) 0 0.75rem;
  padding-top: 0.5rem;
}

.content h1:first-child {
  margin-top: 0;
  padding-top: 0;
}

.content h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin: var(--space-lg) 0 0.5rem;
  color: var(--text);
  position: relative;
  padding-left: 0.7rem;
}

.content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 3px;
  height: 1em;
  border-radius: 2px;
  background: #c8d9d6;
}

.content p {
  margin: 0 0 1rem;
}

.content p:has(> strong:first-child) {
  margin: 0 0 0.75rem;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.content p strong {
  display: inline;
}
.content p > strong:first-child {
  display: block;
  margin-bottom: 0.3rem;
  color: #1f2f35;
  font-size: 0.98rem;
}

/* Speed guide: "Speed by Use" / "How Much You Need by Activity" rows with icons (Font Awesome) */
.content .speed-by-use-section > p {
  position: relative;
}
/* Override card padding so content starts after icon (must beat .content p:has(> strong:first-child)) */
.content .speed-by-use-section > p:not(:first-child) {
  padding-left: calc(0.9rem + 2.25rem + 0.75rem);
}
.speed-by-use-section > p::before {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8f4f3 0%, #dceeea 100%);
  color: var(--accent);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1rem;
  border: 1px solid rgba(13, 107, 99, 0.12);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0.9rem;
  top: 0.78rem;
  line-height: 1;
  pointer-events: none;
}
/* Intro paragraph: no icon, no extra padding */
.speed-by-use-section > p:first-child::before {
  display: none;
}
.content .speed-by-use-section > p:first-child {
  padding-left: 0.9rem;
}
.speed-by-use-section > p:nth-child(2)::before { content: "\f0e0"; }   /* envelope - email/browsing */
.speed-by-use-section > p:nth-child(3)::before { content: "\f26c"; }   /* tv - streaming */
.speed-by-use-section > p:nth-child(4)::before { content: "\f03d"; }   /* video - video calls */
.speed-by-use-section > p:nth-child(5)::before { content: "\f11b"; }  /* gamepad - gaming */
.speed-by-use-section > p:nth-child(6)::before { content: "\f0b1"; }   /* briefcase - remote work */
.speed-by-use-section > p:nth-child(7)::before { content: "\f0c0"; }   /* users - several people */

.content ul,
.content ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.content li {
  margin-bottom: 0.35rem;
}

/* Guide “tip list”: step badges instead of default numbering */
.page-guide .content ol {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem;
  counter-reset: step;
}

.page-guide .content ol li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

/* More space between section header and first quick-win card (match Related Topics) */
.page-guide .content h2 + ol {
  margin-top: 0.75rem;
}

.page-guide .content ol li:last-child {
  margin-bottom: 0;
}

.page-guide .content ol li::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
}

.page-guide .content ol li p {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content a:hover {
  color: var(--accent-hover);
}

.content strong {
  font-weight: 600;
}

.content .cta-button,
.content .cta-button:hover {
  color: #fff;
  text-decoration: none;
}

.content table {
  width: 100%;
  margin: 1.1rem 0 1.3rem;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.content thead {
  background: #eef6f5;
}

.content th,
.content td {
  padding: 0.68rem 0.72rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.content tbody tr:nth-child(even) {
  background: #fbfbfa;
}

.content tbody tr:last-child td {
  border-bottom: 0;
}

/* CTA blocks */
.cta {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cta p {
  margin: 0 0 1rem;
}

.cta-logo {
  display: block;
  width: min(320px, 82%);
  height: auto;
  margin: 0 auto 0.9rem;
}

.cta-final .cta-logo {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.28));
  opacity: 0.98;
}

.cta-problem {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--text);
}

.cta-support {
  margin: 0 0 1rem;
}

.cta-mid {
  margin: var(--space-lg) 0;
}

.cta-final {
  background: linear-gradient(135deg, #0d6b63 0%, #0a524c 100%);
  border: none;
  color: #fff;
}

.cta-final p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.0625rem;
}

.cta-final .cta-problem {
  color: #fff;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.62rem 1.15rem;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cta-button::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  line-height: 1;
}

.cta-button:hover {
  background: var(--accent-hover);
  color: #fff;
}

.cta-final .cta-button {
  background: #fff;
  color: var(--accent);
}

.cta-final .cta-button::before {
  background: rgba(13, 107, 99, 0.14);
}

.cta-final .cta-button:hover {
  background: var(--bg);
  color: var(--accent-hover);
}

/* Related links */
.related-links {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-sm);
}

.related-links h2 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.related-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-links li {
  margin: 0;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

.related-links li:last-child {
  border-bottom: none;
}

.related-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9375rem;
}

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

/* TOC (guides) */
.toc {
  margin-bottom: var(--space-lg);
  padding: var(--space);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.toc nav {
  font-size: 0.9375rem;
}

.toc ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

/* Top-level TOC: step-style number badges for consistent alignment + styling */
.toc > nav > ul {
  counter-reset: toc;
}

.toc > nav > ul > li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.toc > nav > ul > li:last-child {
  margin-bottom: 0;
}

.toc > nav > ul > li::before {
  counter-increment: toc;
  content: counter(toc);
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.toc > nav > ul > li > a {
  flex: 1;
  min-width: 0;
}

.toc ul ul {
  padding-left: 2.1rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.toc ul ul li {
  margin-bottom: 0.25rem;
}

.toc ul ul li::before {
  display: none;
}

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

.toc a:hover {
  text-decoration: underline;
}

/* Availability form */
.availability-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.1rem;
  margin: 0 0 var(--space-lg);
}

.availability-form-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
}

.availability-form-card > p {
  margin: 0 0 0.9rem;
  color: var(--text-muted);
}

.availability-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem 0.8rem;
}

.availability-form label {
  display: grid;
  gap: 0.32rem;
  font-size: 0.87rem;
  font-weight: 600;
  color: #314744;
}

.availability-form input,
.availability-form select,
.availability-form textarea {
  width: 100%;
  border: 1px solid #d5dfdc;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 0.56rem 0.62rem;
  font: inherit;
  font-size: 0.93rem;
  line-height: 1.4;
}

.availability-form input:focus,
.availability-form select:focus,
.availability-form textarea:focus {
  outline: none;
  border-color: #94c0bb;
  box-shadow: 0 0 0 3px rgba(13, 107, 99, 0.12);
}

.availability-form-notes {
  grid-column: 1 / -1;
}

.availability-submit {
  grid-column: 1 / -1;
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.56rem 0.95rem;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

.availability-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.check-availability-page > .content {
  margin-bottom: var(--space-lg);
}

.check-availability-page > .content p:first-child {
  margin-bottom: 0.65rem;
  font-size: 1.04rem;
  color: #253735;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 1.6rem 0 1rem;
  border-top: 1px solid #d8e6e3;
  background: linear-gradient(180deg, #f4f8f7 0%, #edf4f2 100%);
  font-size: 0.9rem;
  color: #3d4c4a;
}

.site-footer-inner {
  display: grid;
  gap: 1.15rem;
}

.site-footer-top {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr 1.15fr;
  gap: 1rem;
  align-items: start;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
  color: #0d5e56;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.footer-brand-link:hover {
  color: var(--accent);
}

.footer-brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  color: #0d6b63;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-mark img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
}

.footer-brand p {
  margin: 0;
  color: #4a5a57;
  line-height: 1.55;
}

.footer-links-group h2,
.footer-cta h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 400;
  color: #233734;
}

.footer-links-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}

.footer-links-group a {
  color: #195f58;
  text-decoration: none;
}

.footer-links-group a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.footer-cta {
  padding: 0;
}

.footer-cta p {
  margin: 0 0 0.7rem;
  color: #3f504d;
  line-height: 1.5;
}

.footer-action {
  width: 100%;
  justify-content: center;
}

.site-footer-bottom {
  border-top: 1px solid #d8e6e3;
  padding-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  font-size: 0.72rem;
  color: #63706d;
}

.footer-al-logo {
  width: 100%;
  text-align: center;
  margin-bottom: 0.5rem;
}

.footer-al-logo a {
  display: inline-block;
  line-height: 0;
  color: inherit;
}

.footer-al-logo a:hover {
  text-decoration: none;
}

.footer-al-logo img {
  height: 30px;
  width: auto;
  vertical-align: middle;
}

.footer-credit {
  width: 100%;
  text-align: center;
  margin-top: 0.35rem;
}

.footer-sep {
  color: #9aa8a5;
}

.site-footer-bottom a {
  color: var(--accent);
  text-decoration: none;
}

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

@media (max-width: 720px) {
  .site-header-inner {
    padding: 0.5rem 0;
    align-items: center;
    gap: 0.35rem;
  }

  .site-brand-title {
    font-size: 1.2rem;
    white-space: normal;
  }

  .site-brand-subtitle {
    font-size: 0.63rem;
  }

  .site-header-actions {
    margin-left: auto;
    width: auto;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
  }

  .site-nav-desktop,
  .site-header-cta-desktop {
    display: none;
  }

  .mobile-menu {
    display: block;
    position: relative;
  }

  .mobile-menu summary {
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    border: 1px solid #d4e4e0;
    border-radius: 999px;
    padding: 0.3rem 0.62rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1d5f58;
    background: #edf6f5;
    user-select: none;
  }

  .mobile-menu-summary::before {
    content: "☰";
    font-size: 0.86rem;
    line-height: 1;
  }

  .mobile-menu[open] .mobile-menu-summary::before {
    content: "✕";
  }

  .mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(83vw, 20rem);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 4.4rem 1rem 1rem;
    background: #fff;
    border-left: 1px solid var(--border);
    box-shadow: -16px 0 28px rgba(0, 0, 0, 0.16);
    transform: translateX(102%);
    transition: transform 0.22s ease;
    z-index: 45;
  }

  .mobile-menu[open] .mobile-menu-panel {
    transform: translateX(0);
  }

  .mobile-menu-nav {
    display: grid;
    gap: 0.2rem;
  }

  .mobile-menu-nav a {
    display: block;
    border: 1px solid #e1ece9;
    border-radius: 10px;
    padding: 0.52rem 0.62rem;
    color: #37504c;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
  }

  .mobile-menu-nav a.is-active {
    background: #eef6f5;
    border-color: #cfe2de;
    color: #0b5d55;
  }

  .mobile-menu-cta {
    width: 100%;
    margin-top: 0.25rem;
  }

  .page-intro h1 {
    font-size: 1.75rem;
  }

  .page-hero {
    min-height: 12rem;
  }

  .page-hero-inner {
    padding-bottom: 1.1rem;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }

  .availability-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 1.2rem 0 0.9rem;
  }

  .site-footer-top {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .footer-cta {
    padding: 0.75rem;
  }

  .site-footer-bottom {
    justify-content: flex-start;
  }

  .footer-sep {
    display: none;
  }
}

@media (max-width: 540px) {
  .site-brand-mark {
    width: 1.28rem;
    height: 1.28rem;
  }

  .site-brand-title {
    font-size: 1.1rem;
  }

  .site-brand-subtitle {
    display: none;
  }

  .mobile-menu-panel {
    width: min(88vw, 19rem);
  }
}

/* System stack used; optional Google Fonts loaded via baseof for DM Sans + DM Serif Text */
