/* Shared finishing details for Makanda's public website. */
:root {
  --ink: #193e30;
  --muted: #53655b;
  --paper: #fffdf8;
  --gold: #e8c591;
  --soft-border: #dcded1;
  --card-shadow: inset 0 1px 0 #ffffffd9, 0 1px 3px #173e3208, 0 18px 34px -25px #173e3266;
  --panel-shadow: inset 0 1px 0 #ffffffcc, 0 3px 8px #173e3208, 0 28px 55px -34px #173e326b;
  --ambient-forest: #204c3b14;
  --ambient-gold: #d2ac7533;
  --banner-height: 650px;
  --banner-position: center 48%;
}
body { -webkit-font-smoothing: antialiased; }
::selection { background: #e8c591; color: #193e30; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: #d2ac7533; }
input:focus-visible, select:focus-visible { outline: 3px solid #c58d3c; outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
main { outline: none; }
.wrap, .hero .wrap, .mast, .footer-inner { max-width: 1160px; }
.wrap { padding-inline: 28px; }
.home-section, .gov-section, .business-directory, .business-community, .tour-section, .docs-section { padding-block: 72px; }
.government-page section[id], .business-page section[id], .tourism-page section[id], .documents-page section[id], #main { scroll-margin-top: 112px; }
.eyebrow { display: inline-block; font-size: 11px; letter-spacing: .17em; line-height: 1.6; }
.gov-heading, .home-heading { margin-bottom: 32px; }
.gov-heading h2, .home-heading h2, .business-directory-heading h2 { font-size: clamp(28px, 3.2vw, 39px); line-height: 1.3; }
.gov-heading p, .home-heading p, .business-directory-heading p { font-size: 16px; color: var(--muted); }
.gov-heading .eyebrow.dark, .home-heading .eyebrow.dark, .business-directory-heading .eyebrow.dark { display: inline-flex; align-items: center; gap: 12px; }
.gov-heading .eyebrow.dark::before, .home-heading .eyebrow.dark::before, .business-directory-heading .eyebrow.dark::before { content: ''; width: 24px; height: 1px; background: #ab7d43; }

/* An illustrated smiley water tower gives the wordmark a local identity. */
.site-header { position: sticky; top: -35px; z-index: 20; }
.topline { min-height: 35px; font-size: 10px; letter-spacing: .14em; }
.topline span { padding-inline: 7px; color: var(--gold); }
.mast { padding: 16px 28px; gap: 22px; }
.mast .brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; margin: 0; letter-spacing: .075em; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 48px; height: 58px; object-fit: contain; filter: drop-shadow(0 2px 5px #061f264d); }
/* A brief welcome sway, anchored at the tower's single pipe. */
@media (prefers-reduced-motion: no-preference) {
  .brand-mark {
    transform-origin: 50% 96%;
    animation: var(--tower-welcome, none), var(--tower-hover, none);
  }
  .brand-mark-welcome { --tower-welcome: tower-welcome 1.6s ease-in-out .25s 1; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .brand:has(.brand-mark:hover) .brand-mark { --tower-hover: tower-hover 1.2s ease-in-out 1; }
}
/* Separate rotation keeps hovering from restarting the Home welcome. */
@keyframes tower-hover {
  0%, 100% { rotate: 0deg; }
  22% { rotate: -5deg; }
  46% { rotate: 3.5deg; }
  68% { rotate: -2deg; }
  84% { rotate: 1deg; }
}
@keyframes tower-welcome {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-7deg); }
  43% { transform: rotate(5deg); }
  64% { transform: rotate(-3deg); }
  82% { transform: rotate(1.5deg); }
}
.brand .brand-wordmark { font-size: inherit; font-weight: 700; line-height: 1.3; }
.brand-wordmark>span { font-size: 11px; font-weight: 400; }
.brand small { color: var(--gold); font-size: 9px; letter-spacing: .45em; margin-top: 6px; }
.mast nav { gap: 22px; align-items: center; }
.mast nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0; font-size: 13px; font-weight: 500; border: 0; }
.mast nav a::after { content: ''; position: absolute; bottom: 5px; left: 0; width: 100%; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.mast nav a[aria-current="page"] { padding: 0; border: 0; color: var(--gold); }
.mast nav a:hover, .mast nav a:focus-visible { text-decoration: none; }
.mast nav a:hover::after, .mast nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; }
.skip:focus { position: fixed; z-index: 30; border-radius: 6px; color: var(--ink); }

/* All page banners share the same composition and photographic treatment. */
.refined-hero, .gov-hero, .business-hero, .tour-hero, .docs-hero { position: relative; min-height: var(--banner-height); background-size: cover, cover, cover; background-position: center, center, var(--banner-position); border-bottom: 1px solid #d2ac75; }
.gov-hero, .business-hero, .tour-hero, .docs-hero { display: flex; align-items: center; }
.refined-hero .wrap, .gov-hero .wrap, .business-hero .wrap, .tour-hero .wrap, .docs-hero .wrap { width: 100%; padding: 58px 28px 78px; }
.gov-hero h1, .business-hero h1, .tour-hero h1, .docs-hero h1 { font-size: clamp(38px, 4.2vw, 58px); max-width: 800px; margin: 18px 0 20px; line-height: 1.2; letter-spacing: -.04em; }
.gov-hero p, .business-hero p, .tour-hero p, .docs-hero p { color: #eef2e8; max-width: 580px; margin: 0 0 20px; }
.hero .eyebrow, .gov-hero .eyebrow, .business-hero .eyebrow, .tour-hero .eyebrow, .docs-hero .eyebrow { color: #f0d5ab; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 14px 22px; border: 1px solid #d2ac75; border-radius: 7px; font-size: 14px; line-height: 1.4; background: linear-gradient(135deg, #e8c591, #d2ac75); box-shadow: 0 6px 14px -8px #061f2659; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.button:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 20px -10px #061f2680; }
.home-actions { gap: 10px; }
.home-actions .button { margin-top: 0; }
.home-actions .secondary { background: rgb(255 248 235 / .88); border: 1px solid rgb(255 245 225 / .92); color: #193e30; box-shadow: 0 8px 18px -11px #061f2699; }
.home-actions .secondary:hover { background: #fff8eb; border-color: #fff8eb; color: #102e24; }
.refined-hero h1 { margin: 18px 0 14px; font-size: clamp(58px, 6.2vw, 88px); line-height: 1.06; max-width: 680px; font-weight: 400; letter-spacing: -.045em; }
.refined-hero h1 em { display: block; color: #f0c882; font-weight: 400; text-shadow: 0 2px 18px #061f2673; }
.refined-hero .eyebrow { padding: 9px 13px; border: 1px solid rgb(240 200 130 / .68); border-radius: 6px; background: rgb(8 39 31 / .64); box-shadow: 0 6px 18px -12px #061f26; }
.refined-hero p { max-width: 490px; margin: 0 0 18px; font-size: 18px; line-height: 1.65; }
.refined-hero .hero-location { margin: 22px 0 0; color: #fff8eb; font-size: 11px; font-weight: 500; letter-spacing: .075em; text-shadow: 0 1px 4px #061f2699; }
.hero-location::before { content: ''; display: inline-block; width: 20px; height: 1px; background: var(--gold); margin: 0 10px 3px 0; }

/* A floating services panel and archival gallery anchor the homepage. */
.home-section:has(#quick-title) { position: relative; margin-top: -30px; padding-top: 40px; padding-bottom: 60px; border: 1px solid #e5dfcfff; border-radius: 22px; background: linear-gradient(135deg, #ffffffed, #fffdf8eb); box-shadow: var(--panel-shadow); width: min(calc(100% - 48px), 1160px); }
.quick-grid { gap: 16px; }
.quick-grid a.quick-card { min-height: 174px; padding: 24px; border: 1px solid #dce2d5; border-radius: 12px; background: #fff; box-shadow: var(--card-shadow); }
.quick-grid a.quick-card .quick-icon { width: 44px; height: 44px; background: linear-gradient(135deg, #edf2e8, #e0e9dc); border: 1px solid #e1e8d9; margin-bottom: 3px; }
.quick-grid a.quick-card strong { font-size: 16px; }
.quick-grid a.quick-card small { max-width: 240px; font-size: 13px; }
.quick-grid a.quick-card .quick-arrow { opacity: 1; font-size: 20px; top: 29px; right: 24px; color: #8a6331; }
.home-soft:has(#updates-title) { margin-top: 56px; }
.home-soft:has(#updates-title) .home-section { padding-block: 76px; }
.home-info { border-radius: 14px; padding: 32px; }
.home-info h3 { line-height: 1.4; margin-block: 20px 14px; }
.home-info a { min-height: 44px; align-content: center; }
.home-section:has(#history-title) .home-heading { padding-left: 24px; margin-bottom: 30px; }
.heritage-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: 760px; margin: 0 0 32px; padding: 24px 0; border-block: 1px solid #bdac8870; }
.heritage-facts>div { display: flex; flex-direction: column; gap: 8px; padding-inline: 24px; border-right: 1px solid #bdac8870; }
.heritage-facts>div:first-child { padding-left: 0; }
.heritage-facts>div:last-child { border-right: 0; }
.heritage-facts dt { color: #687365; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; }
.heritage-facts dd { margin: 0; font-family: 'Libre Baskerville', Georgia, serif; color: var(--ink); font-size: 30px; }
.history-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 145px; gap: 14px; margin-bottom: 14px; }
.history-gallery a { aspect-ratio: auto; height: 100%; border-radius: 12px; }
.history-gallery a:first-child { grid-column: span 2; grid-row: span 2; }
.history-gallery a:last-child { grid-column: span 2; }
.history-gallery a>span { opacity: 1; background: linear-gradient(transparent, #122b22cc); padding-top: 30px; font-size: 11px; }
.history-caption { color: #53655b; font-size: 12px; margin: 0 0 28px; }
.history-details { padding: 0; border-radius: 12px; box-shadow: var(--card-shadow); }
.history-details>summary { position: relative; padding: 22px 24px; line-height: 1.5; list-style: none; padding-right: 52px; }
.history-details>summary::-webkit-details-marker { display: none; }
.history-details>summary::after { content: '+'; position: absolute; right: 24px; top: 18px; font-size: 24px; color: #8a6331; }
.history-details[open]>summary::after { content: '−'; }
.history-original { margin: 0; padding: 0 24px 24px; background: transparent; border: 0; line-height: 1.8; }
.history-original h3 { margin-top: 24px; font-family: 'Libre Baskerville', Georgia, serif; }
.home-soft:has(#explore-title) { background: #eef2e5d9; border-top: 1px solid #d8dec9; }
.explore-tile { min-height: 370px; border-radius: 16px; border: 1px solid #b6c4ae; box-shadow: var(--card-shadow); }
.explore-tile span { left: 30px; right: 30px; bottom: 30px; gap: 12px; }
.explore-tile strong { font-family: 'Libre Baskerville', Georgia, serif; font-weight: 400; font-size: 26px; line-height: 1.35; }
.explore-tile .explore-kicker { color: #f0d5ab; }

/* Card proportions, action links, and readable contrast across all pages. */
.gov-official, .gov-president, .gov-records-panel, .gov-year, .gov-committee, .gov-calendar,
.business-card, .community-card, .tour-attraction, .tour-festival, .tour-planning, .tour-rental-card, .docs-feature { border-radius: 14px; box-shadow: var(--card-shadow); }
.gov-official, .community-card, .tour-attraction, .docs-feature { transition: border-color .2s ease, box-shadow .2s ease; }
.gov-official:hover, .community-card:hover, .tour-attraction:hover, .docs-feature:hover { border-color: #a7b49a; box-shadow: 0 18px 38px -24px #173e3266; }
.gov-jumpbar { background: #fffdf8ed; }
.gov-jumpbar .wrap { padding-block: 12px; gap: 12px 28px; }
.gov-jumpbar a { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; }
.gov-leadership, .gov-staff, .gov-trustees { gap: 20px; }
.gov-leadership>*, .gov-staff>*, .gov-trustees>*, .gov-records-panel>* { min-width: 0; }
.gov-president { padding: 36px; min-height: 270px; }
.gov-president h3 { font-size: 30px; line-height: 1.3; }
.gov-official { border-top: 3px solid #a9b894; padding: 26px; background: linear-gradient(145deg, #fffffff5, #fffdf8eb); }
.gov-official .gov-role { display: inline-block; font-size: 10px; letter-spacing: .14em; }
.gov-official h3 { font-size: 21px; }
.gov-official a { overflow-wrap: anywhere; font-size: 14px; }
.gov-official h3, .gov-president h3, .gov-term, .gov-foia-officers h3, .gov-committee summary { overflow-wrap: anywhere; }
.gov-official-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 18px; }
.gov-contact-call { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; padding: 10px 14px; border: 1px solid #c4d2bd; border-radius: 7px; background: #e9f0e3; font-weight: 600; text-decoration: none; white-space: nowrap; }
.gov-contact-call:hover { background: #dce8d4; text-decoration: none; }
.gov-president .gov-contact-call { background: #fffdf81a; color: #fff8eb; border-color: #e8c59180; }
.gov-subheading { margin-top: 40px; }
.gov-calendar { min-width: 220px; }
.gov-year>summary { min-height: 88px; padding: 22px 26px; }
.gov-year-count { display: inline-block; padding: 6px 10px; background: #e9eee2; border-radius: 30px; }
.gov-year>summary:hover, .gov-committee>summary:hover { background: #f3f0e6; }
.gov-meeting-files a { display: inline-flex; align-items: center; min-height: 44px; }
.gov-records-panel { padding: 40px; background: radial-gradient(ellipse 300px 190px at 95% 0%, #d2ac7538, transparent 75%), #f3eddf; box-shadow: var(--panel-shadow); }
.gov-committee-section { padding-top: 0; }
.gov-committee summary { min-height: 76px; font-size: 15px; }
.gov-committee-plus { flex-shrink: 0; }
.business-directory-heading { gap: 36px; }
.business-search input { min-height: 48px; box-shadow: 0 3px 10px #173e3208; }
.business-filters { border-bottom-color: #bfcbb680; padding-bottom: 22px; }
.business-filters button { min-height: 44px; }
.business-results { margin-block: 22px; }
.business-card { border-color: #ccd3c1; box-shadow: 0 14px 28px -20px #173e3259; }
.business-card-body { padding: 26px; }
.business-card h3 { font-size: 21px; line-height: 1.45; overflow-wrap: anywhere; }
.business-category { align-self: flex-start; line-height: 1.5; }
.business-details a.business-call { min-height: 44px; padding: 11px 14px; font-size: 13px; border-radius: 7px; }
.business-details p { overflow-wrap: anywhere; max-width: 100%; }
.business-card.business-card-no-photo { border-color: #bdc8b4; border-left: 5px solid var(--business-accent); background: var(--paper); }
.business-card-no-photo .business-card-body { background: var(--paper); padding: 24px 26px; }
.business-website { min-height: 44px; line-height: 1.5; }
.business-listing-band .wrap { padding-block: 58px; }
.business-listing-band .button { display: flex; flex-direction: column; gap: 3px; }
.business-listing-band .button small { margin-top: 3px; }
.community-card { border-color: #d4d6c6; background: linear-gradient(145deg, #fffffff5, #fffdf8eb); }
.community-church { background: radial-gradient(ellipse at 80% 15%, #f7ecd3, transparent 65%), #eee6d6; }
.community-card>div:last-child { padding: 26px; }
.community-card h3, .community-card p, .community-card address { overflow-wrap: anywhere; }
.community-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #e4dfd1; }
.community-links>* { min-width: 0; max-width: 100%; }
.community-links .community-call { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 11px 14px; color: #fff; background: #204c3b; border: 1px solid #204c3b; border-radius: 7px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.community-links .community-call:hover { background: #143b2e; }
.community-email { overflow-wrap: anywhere; font-size: 14px; }
.community-links .business-website { border: 0; padding-top: 0; }
.tour-festival { border-color: #d6c5af; box-shadow: var(--panel-shadow); }
.tour-festival>* { min-width: 0; }
.tour-festival-visual { background: radial-gradient(ellipse at top right, #d2ac7533, transparent 60%), linear-gradient(135deg, #88442f, #ae6745); }
.tour-festival-body { padding: 40px; }
.tour-festival-body h3 { font-size: clamp(29px, 3vw, 38px); overflow-wrap: anywhere; }
.tour-festival-body .tour-event-date { line-height: 1.8; }
.tour-festival-body p, .tour-tags li { overflow-wrap: anywhere; }
.tour-event-location { display: inline; }
.tour-date-range strong { font-size: 30px; line-height: 1.4; overflow-wrap: anywhere; }
.tour-date { min-width: 0; }
.tour-tags { gap: 9px; }
.tour-tags li { border: 1px solid #e4ccb0; background: #faf0e3; border-radius: 30px; }
.tour-contact { min-height: 44px; display: inline-flex; align-items: center; border-radius: 7px; line-height: 1.5; }
.tour-attraction { padding: 32px; background: linear-gradient(145deg, #fffffff5, #fffdf8eb); }
.tour-attraction h3 { line-height: 1.4; }
.tour-attraction a { min-height: 44px; align-content: center; }
.tour-icon { width: 54px; height: 54px; border: 1px solid #e2dfd0; border-radius: 14px; }
.tour-planning { border-color: #bdcbb4; }
.tour-planning-intro { padding: 40px; }
.tour-planning-intro h2 { font-size: 34px; line-height: 1.35; }
.tour-resources { padding: 16px 32px; }
.tour-resources>a { padding-block: 24px; }
.tour-resources>a>div { min-width: 0; }
.tour-center-facts>div { box-shadow: var(--card-shadow); border-radius: 12px; }
.tour-center-facts strong { line-height: 1.4; }
.tour-rental-card { padding: 32px; }
.docs-feature { padding: 28px; background: linear-gradient(135deg, #ffffff99, #ffffff00 65%), var(--tour-tint); }
.docs-feature-top { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.docs-feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 48px; border: 1px solid #ffffff; background: #fffdf8cc; border-radius: 10px; color: var(--tour-accent); }
.docs-feature-icon svg { width: 23px; height: 27px; }
.docs-feature-format { padding: 5px 8px; color: var(--tour-accent); background: #fffdf8b3; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.docs-feature h3 { font-size: 19px; overflow-wrap: anywhere; margin-bottom: 26px; }
.docs-feature-action { width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 44px; border-top: 1px solid #173e3226; padding-top: 14px; }
.docs-tools { padding: 26px; border-radius: 14px; border-color: #bccbb2; background: #fffdf8ed; box-shadow: var(--panel-shadow); }
.docs-tools input, .docs-tools select, .docs-tools button { min-height: 48px; height: 48px; border-radius: 7px; }
.docs-results { margin-block: 26px 18px; }
.docs-row { border-radius: 12px; padding: 22px; border-color: #cad5c0; background: #fffffff2; box-shadow: inset 0 1px 0 #fff, 0 2px 6px #173e3205; transition: border-color .2s ease, box-shadow .2s ease; }
.docs-row:hover { border-color: #97af89; box-shadow: var(--card-shadow); }
.docs-row h3 { font-size: 16px; overflow-wrap: anywhere; }
.docs-open { min-height: 44px; border-radius: 7px; }
.docs-more button { min-height: 48px; border-radius: 7px; }
.docs-help { padding-block: 64px; }

/* The footer completes the landscape with the same identity and gold accents. */
footer.site-footer { border-top: 3px solid #d2ac75; }
.footer-inner { padding: 60px 28px 44px; grid-template-columns: 1.8fr 1fr 1fr; gap: 64px; }
.footer-inner>div { gap: 4px; }
.footer-inner .footer-intro { gap: 15px; }
.footer-identity { display: flex; align-items: center; gap: 14px; }
.footer-inner .footer-identity:hover { text-decoration: none; }
.footer-identity>img { flex-shrink: 0; width: 45px; height: 54px; }
.footer-identity .footer-brand { font-family: 'Libre Baskerville', Georgia, serif; font-weight: 400; font-size: 21px; line-height: 1.45; }
.footer-brand small { display: block; margin-top: 7px; font-family: 'DM Sans', Arial, sans-serif; font-size: 10px; color: #e8c591; }
.footer-intro p { max-width: 340px; font-size: 14px; }
.footer-intro>small { font-size: 11px; }
.footer-inner .footer-label { margin-bottom: 12px; color: #e8c591; text-transform: uppercase; letter-spacing: .14em; font-size: 10px; }
.footer-inner>div>a:not(.footer-identity) { display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; }
.back-to-top {
  position: fixed;
  right: max(24px, calc(env(safe-area-inset-right) + 12px));
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px));
  z-index: 25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 17px;
  border: 1px solid #d2ac7599;
  border-radius: 30px;
  background: linear-gradient(135deg, #315b46, #173f31);
  color: #fffdf8;
  box-shadow: inset 0 1px 0 #fffdf826, 0 5px 18px #102e2433;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.back-to-top[hidden] { display: none; }
.back-to-top svg { width: 21px; height: 21px; color: #e8c591; flex-shrink: 0; }
.back-to-top:hover { background: linear-gradient(135deg, #3c674f, #204c3b); text-decoration: none; transform: translateY(-2px); box-shadow: inset 0 1px 0 #fffdf826, 0 8px 22px #102e2440; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: #0c2a2366; padding: 20px max(28px, calc((100% - 1104px)/2)); text-align: left; font-size: 10px; line-height: 1.7; }
.footer-bottom { padding-right: max(180px, calc((100% - 1104px)/2)); }

/* Light belongs to the content: localized forest and gold glows, on textured ivory. */
.home-heading, .gov-heading, .business-directory-heading {
  position: relative;
  isolation: isolate;
}
.home-heading::before, .gov-heading::before, .business-directory-heading::before {
  content: '';
  position: absolute;
  inset: -48px -20px -52px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse closest-side at 32% 50%, var(--ambient-forest), transparent 100%),
    radial-gradient(ellipse closest-side at 70% 50%, var(--ambient-gold), transparent 100%);
}
.home-soft:has(#updates-title) .home-heading::before {
  background: radial-gradient(ellipse closest-side at 42% 50%, #e8c5911f, transparent 100%);
}
.refined-hero .wrap, .gov-hero .wrap, .business-hero .wrap, .tour-hero .wrap, .docs-hero .wrap {
  position: relative;
  isolation: isolate;
}
.refined-hero .wrap::before, .gov-hero .wrap::before, .business-hero .wrap::before,
.tour-hero .wrap::before, .docs-hero .wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: min(680px, 100%);
  height: 360px;
  transform: translateY(-50%);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse closest-side at 38% 50%, #d2ac751a, transparent 100%);
}
.gov-meetings, .docs-archive-band, .tour-explore-band, .home-soft:has(#explore-title) {
  background-color: #eef1e9;
  background-image: url('/images/makanda-grain.svg');
  background-size: 180px 180px;
}
/* Keep texture behind the lettering and illustrated landscapes. */
.site-header, footer.site-footer, .home-soft:has(#updates-title), .business-listing-band,
.tour-planning-intro, .gov-president {
  isolation: isolate;
}
footer.site-footer, .home-soft:has(#updates-title), .business-listing-band,
.tour-planning-intro, .gov-president {
  position: relative;
}
.site-header::before, footer.site-footer::before, .home-soft:has(#updates-title)::before,
.business-listing-band::before, .tour-planning-intro::before, .gov-president::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: url('/images/makanda-grain.svg') repeat;
  opacity: .55;
  pointer-events: none;
}
.gov-calendar { background: #fffdf8ed; box-shadow: var(--panel-shadow); }
.tour-rental-card { background: linear-gradient(145deg, #fffffff5, #fffdf8eb); }
.business-card-body {
  background-image: linear-gradient(125deg, #ffffff66, #ffffff00 55%);
}
.business-card-no-photo .business-card-body {
  background: linear-gradient(145deg, #fffffff5, #fffdf8eb);
}
@supports (backdrop-filter: blur(8px)) {
  .home-section:has(#quick-title), .docs-tools, .gov-calendar, .gov-jumpbar {
    backdrop-filter: blur(8px);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .home-section:has(#quick-title), .docs-tools, .gov-calendar, .gov-jumpbar,
  .gov-official, .community-card, .tour-attraction, .tour-rental-card, .docs-row {
    background: #fffdf8;
    backdrop-filter: none;
  }
}

@media (max-width: 1000px) {
  .mast nav { gap: 16px; }
  .mast .brand { gap: 8px; font-size: 16px; }
  .brand-mark { width: 42px; height: 54px; }
  .footer-inner { gap: 36px; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .mast { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .mast .brand { width: 100%; justify-content: center; }
  .site-header { position: relative; top: 0; }
}
@media (max-width: 760px) {
  :root { --banner-height: 560px; }
  .site-header { position: relative; top: 0; }
  .topline { min-height: 33px; padding-block: 9px; font-size: 8px; letter-spacing: .06em; }
  .topline span { padding-inline: 3px; }
  .mast { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0; padding: 14px 20px; }
  .mast .brand { font-size: 15px; letter-spacing: .045em; gap: 7px; }
  .brand-mark { width: 34px; height: 46px; }
  .brand-wordmark>span { font-size: 9px; }
  .brand small { font-size: 8px; margin-top: 5px; }
  .nav-toggle:not([hidden]) { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 11px; font-size: 11px; font-weight: 600; color: #fff8eb; border: 1px solid #e8c59170; border-radius: 7px; background: #0c2a2333; cursor: pointer; }
  .nav-toggle-icon { display: flex; flex-direction: column; gap: 4px; width: 16px; }
  .nav-toggle-icon span { display: block; height: 1px; width: 16px; background: var(--gold); transition: transform .2s ease, opacity .2s ease; }
  .menu-open .nav-toggle-icon span:first-child { transform: translateY(5px) rotate(45deg); }
  .menu-open .nav-toggle-icon span:nth-child(2) { opacity: 0; }
  .menu-open .nav-toggle-icon span:last-child { transform: translateY(-5px) rotate(-45deg); }
  .mast nav { width: 100%; display: grid; gap: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 14px; margin-top: 14px; border-top: 1px solid #e8c59133; }
  .mast nav a { padding: 10px; font-size: 13px; min-height: 48px; border-radius: 5px; }
  .mast nav a::after { display: none; }
  .mast nav a[aria-current="page"] { padding: 10px; background: #e8c59114; }
  .site-header.nav-enhanced:not(.menu-open) nav { display: none; }
  .wrap, .hero .wrap { padding-inline: 24px; }
  .home-section, .gov-section, .business-directory, .business-community, .tour-section, .docs-section { padding-block: 52px; }
  .government-page section[id], .business-page section[id], .tourism-page section[id], .documents-page section[id], #main { scroll-margin-top: 24px; }
  .refined-hero .wrap, .gov-hero .wrap, .business-hero .wrap, .tour-hero .wrap, .docs-hero .wrap { padding: 52px 24px 72px; }
  .refined-hero h1 { font-size: clamp(51px, 9vw, 70px); }
  .refined-hero p { max-width: 440px; font-size: 17px; }
  .home-section:has(#quick-title) { width: calc(100% - 32px); padding-inline: 24px; margin-top: -24px; padding-block: 32px 40px; border-radius: 16px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .quick-grid a.quick-card { min-height: 184px; padding: 20px; }
  .quick-grid a.quick-card .quick-arrow { right: 18px; top: 24px; }
  .home-soft:has(#updates-title) { margin-top: 40px; }
  .home-soft:has(#updates-title) .home-section { padding-block: 54px; }
  .history-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 140px; }
  .history-gallery a:first-child { grid-column: span 2; grid-row: span 2; }
  .gov-hero h1, .business-hero h1, .tour-hero h1, .docs-hero h1 { font-size: clamp(34px, 6vw, 48px); }
  .docs-featured { grid-template-columns: 1fr; gap: 16px; }
  .docs-feature { padding: 24px; }
  .docs-feature-top { margin-bottom: 18px; }
  .docs-feature h3 { margin-bottom: 18px; }
  .tour-date-range strong { font-size: 26px; }
  .tour-planning-intro, .tour-festival-body { padding: 30px; }
  .gov-committee-section { padding-top: 0; }
  .footer-inner { padding: 44px 24px 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .footer-inner .footer-intro { grid-column: 1/-1; }
  .footer-bottom { padding-inline: 24px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-bottom { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .back-to-top { right: max(16px, calc(env(safe-area-inset-right) + 12px)); bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px)); width: 50px; height: 50px; padding: 0; }
  .back-to-top-label { display: none; }
}
@media (max-width: 560px) {
  :root { --banner-height: 585px; --banner-position: 57% center; }
  .gov-heading, .home-heading { margin-bottom: 28px; }
  .gov-heading h2, .home-heading h2, .business-directory-heading h2 { font-size: 29px; }
  .gov-heading p, .home-heading p, .business-directory-heading p { font-size: 15px; }
  .refined-hero h1 { margin-block: 24px; font-size: clamp(48px, 12.5vw, 64px); }
  .refined-hero p { font-size: 16px; }
  .home-actions { flex-direction: column; align-items: stretch; gap: 10px; max-width: 360px; }
  .home-actions .button { margin: 0; }
  .refined-hero .home-actions { margin-top: 24px; }
  .refined-hero .hero-location { font-size: 10px; }
  .quick-grid { grid-template-columns: 1fr; gap: 12px; }
  .quick-grid a.quick-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px 16px; min-height: 112px; padding: 22px 20px; }
  .quick-grid a.quick-card .quick-icon { grid-row: 1/span 2; align-self: center; margin: 0; }
  .quick-grid a.quick-card strong { padding-right: 10px; font-size: 15px; }
  .quick-grid a.quick-card small { grid-column: 2; font-size: 12px; }
  .quick-grid a.quick-card .quick-arrow { display: none; }
  .home-info { padding: 28px; }
  .home-section:has(#history-title) .home-heading { padding-left: 18px; }
  .heritage-facts { gap: 12px; }
  .heritage-facts>div { padding-inline: 10px; }
  .heritage-facts dt { font-size: 8px; letter-spacing: .06em; line-height: 1.7; }
  .heritage-facts dd { font-size: 23px; }
  .history-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 132px; gap: 10px; }
  .history-gallery a:first-child { grid-column: span 2; grid-row: span 2; }
  .explore-tile { min-height: 330px; }
  .explore-tile span { left: 26px; right: 26px; bottom: 26px; }
  .explore-tile strong { font-size: 24px; }
  .gov-jumpbar .wrap { gap: 4px 20px; }
  .gov-jumpbar .wrap>span { width: 100%; margin: 7px 0; }
  .gov-president { padding: 28px; }
  .gov-official, .gov-records-panel { padding: 26px; }
  .gov-official-contact { align-items: flex-start; flex-direction: column; }
  .gov-year>summary { padding: 20px 18px; gap: 12px; }
  .gov-year-count { font-size: 10px; padding: 5px 8px; }
  .gov-records-panel { gap: 26px; }
  .gov-foia-officers { padding-left: 0; }
  .business-card-body, .business-card-no-photo .business-card-body { padding: 24px; }
  .business-card-no-photo .business-details { gap: 12px; }
  .business-listing-band .wrap { padding-block: 48px; }
  .tour-festival-visual { flex-direction: column; }
  .tour-festival-visual>img { width: 100%; height: 200px; min-height: 0; }
  .tour-date { padding: 24px; gap: 8px; }
  .tour-date strong { font-size: 44px; }
  .tour-date-range strong { font-size: 28px; }
  .tour-event-no-image { min-height: 210px; }
  .tour-festival-body, .tour-attraction, .tour-planning-intro, .tour-rental-card { padding: 28px; }
  .tour-planning-intro h2 { font-size: 30px; }
  .tour-resources { padding-inline: 24px; }
  .tour-rate { align-items: flex-start; gap: 12px; }
  .tour-rate>span { max-width: 140px; }
  .docs-tools { padding: 20px; }
  .docs-row { padding: 20px 16px; gap: 12px; }
  .docs-row h3 { font-size: 15px; }
  .docs-help { padding-block: 48px; }
}
@media (max-width: 360px) {
  .mast { padding-inline: 16px; }
  .mast .brand { font-size: 12px; gap: 4px; letter-spacing: .03em; }
  .brand-mark { width: 29px; }
  .brand-wordmark>span { font-size: 8px; }
  .nav-toggle:not([hidden]) { gap: 6px; padding-inline: 9px; }
  .wrap, .hero .wrap { padding-inline: 20px; }
  .home-section:has(#quick-title) { padding-inline: 18px; }
  .quick-grid a.quick-card { padding-inline: 16px; gap: 6px 12px; }
  .gov-heading h2, .home-heading h2, .business-directory-heading h2 { font-size: 26px; }
  .gov-year-count { padding-inline: 5px; }
  .business-details a.business-call, .community-links .community-call, .gov-contact-call { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .business-call-label { flex-shrink: 0; }
  .gov-contact-call>span { min-width: 0; }
  .gov-meeting-files { gap: 8px; }
  .tour-center-facts>div { flex-wrap: wrap; }
  .tour-festival-body, .tour-attraction, .tour-planning-intro, .tour-rental-card { padding: 24px; }
  .docs-tools { gap: 12px; padding: 16px; }
  .docs-tools label { font-size: 11px; }
  .docs-tools select { padding-inline: 8px; font-size: 13px; }
  .footer-inner { gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
  .back-to-top:hover { transform: none; }
  .button, .mast nav a::after, .nav-toggle-icon span, .gov-official, .community-card, .tour-attraction, .docs-feature, .docs-row { transition: none; }
  .button:hover, .quick-grid a.quick-card:hover, .history-gallery a:hover img, .explore-tile:hover img { transform: none; }
}
