/* ==========================================================================
   Area-guide pages (crestview, hurlburt-field, eglin-afb, niceville-vs-crestview)
   Loaded ONLY on those pages, after styles.css. Built 12 Oct 2026.
   Darker gold (#7a6334) is used for small gold text on cream so it passes
   WCAG AA 4.5:1 (the site-wide #b3985f is about 2.5:1 on cream).
   ========================================================================== */
.guide-page { --gold-text: #7a6334; }

/* skip link + focus */
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 1000;
  background: var(--charcoal); color: var(--cream);
  padding: 12px 18px; font-size: 14px; letter-spacing: .08em;
  outline: 3px solid var(--gold-soft); outline-offset: 2px;
}
.skip-link:focus { top: 12px; }
#main:focus { outline: none; }
.guide-page :focus-visible { outline: 3px solid var(--gold-text); outline-offset: 3px; }
.guide-page .site-header :focus-visible,
.guide-page .band-dark :focus-visible,
.guide-page .site-footer :focus-visible,
.guide-page .g-hero :focus-visible { outline-color: var(--gold-soft); }
html { scroll-padding-top: 110px; }

/* hero */
.g-hero { min-height: 56vh; }
.g-hero p { max-width: 58ch; }
.g-updated { font-size: 14px !important; letter-spacing: .06em; margin-top: 18px !important; color: rgba(247,243,234,.88) !important; }
.g-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 0; margin: 0 0 22px; font-size: 13px; letter-spacing: .08em; }
.g-crumbs li { color: rgba(247,243,234,.9); }
.g-crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--gold-soft); }
.g-crumbs a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

/* sections */
.g-section { padding: clamp(64px, 9vh, 110px) 0; }
.band-tint { background: var(--cream-deep); }
.g-eyebrow { color: var(--gold-text); margin-bottom: 18px; }
.g-h2 { margin-bottom: 26px; }
.g-h2-sm { font-size: clamp(26px, 3vw, 36px); margin-bottom: 22px; }
.g-h3 { font-size: clamp(21px, 2.2vw, 26px); margin: 34px 0 10px; }
.g-body, .g-faq, .g-fit-grid { max-width: 920px; }
.g-p { font-size: 17.5px; line-height: 1.85; color: var(--charcoal-soft); max-width: 70ch; margin-top: 16px; }
.g-two .g-p:first-child { margin-top: 0; }
.g-note { font-size: 14px; line-height: 1.7; color: var(--charcoal-soft); max-width: 80ch; margin-top: 16px; }
.g-section a:not(.btn):not(.card-link),
.g-sources a, .g-note a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; color: var(--charcoal); }
.g-section a:not(.btn):not(.card-link):hover, .g-sources a:hover { color: var(--gold-text); }

.g-list { list-style: none; padding: 0; margin-top: 14px; max-width: 75ch; }
.g-list li { position: relative; padding-left: 26px; margin: 12px 0; color: var(--charcoal-soft); line-height: 1.75; }
.g-list li::before { content: ""; position: absolute; left: 4px; top: .78em; width: 8px; height: 8px; background: var(--gold-text); transform: rotate(45deg); }

.g-fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 70px); }
.g-fit .g-h3 { margin-top: 0; }
@media (max-width: 760px) { .g-fit-grid { grid-template-columns: 1fr; } }

/* stat tiles */
.g-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.g-tile { border-top: 2px solid var(--gold-text); padding: 20px 4px 0; min-width: 0; }
.g-tile-num { display: block; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 46px); color: var(--charcoal); line-height: 1.05; }
.g-tile-label { display: block; margin-top: 10px; font-size: 15px; color: var(--charcoal); }
.g-tile-src { display: block; margin-top: 4px; font-size: 13px; color: var(--charcoal-soft); }
@media (max-width: 860px) { .g-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* tables */
.g-table-wrap { margin-top: 10px; }
.g-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.g-table caption { text-align: left; font-family: var(--serif); font-size: 20px; color: var(--charcoal); padding-bottom: 14px; }
.g-table thead th { text-align: left; font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.g-table tbody th { text-align: left; font-family: var(--serif); font-weight: 500; font-size: 17px; color: var(--charcoal); padding: 16px; border-bottom: 1px solid var(--hairline); }
.g-table td { padding: 16px; border-bottom: 1px solid var(--hairline); color: var(--charcoal-soft); }
@media (max-width: 700px) {
  .g-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .g-table, .g-table tbody, .g-table tr, .g-table th, .g-table td { display: block; width: 100%; }
  .g-table caption { display: block; width: 100%; }
  .g-table tr { border: 1px solid var(--hairline); padding: 16px 18px; margin-bottom: 12px; background: rgba(253,252,249,.5); }
  .g-table tbody th { padding: 0 0 10px; margin-bottom: 6px; }
  .g-table td { border-bottom: 0; padding: 7px 0; display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  .g-table td::before { content: attr(data-label); text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); flex: 0 0 45%; }
  .g-table td:empty::after { content: "—"; }
}

/* listings */
.g-listing-grid { margin-top: 28px; }
.g-listing-grid:empty { display: none; }
.g-listing-grid .card h3 { font-size: 21px; margin-top: 14px; overflow-wrap: anywhere; }
.g-listing-grid .card .price { font-size: 26px; margin-top: 16px; }
.g-listing-grid .card .listing-office { font-size: 13px; color: var(--charcoal-soft); margin-top: 8px; }
.g-listing-grid .card .card-link { min-height: 24px; }

/* faq */
.g-faq .faq-item summary { font-size: clamp(19px, 2vw, 23px); }
.g-faq .faq-item summary::after { color: var(--gold-text); }

/* related + sources */
.g-related { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; }
.g-related .map-point h3 { font-size: 22px; }
.g-tag { color: var(--gold-text) !important; }
.g-sources { background: var(--cream-deep); }
.g-src-list { padding-left: 22px; max-width: 90ch; }
.g-src-list li { margin: 8px 0; font-size: 15px; color: var(--charcoal-soft); }
.g-byline { margin-top: 26px; font-size: 14.5px; color: var(--charcoal-soft); max-width: 80ch; }

/* footer headings are h2 here (keeps heading order); styled like the site's h4s */
.site-footer h2.g-fh {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 400; margin-bottom: 20px; line-height: 1.4;
}

/* phones */
@media (max-width: 600px) {
  .g-p { font-size: 17px; }
  .g-hero .display { font-size: clamp(36px, 10vw, 48px); overflow-wrap: break-word; }
  .band-dark .btn-row .btn { width: 100%; text-align: center; padding: 16px 20px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* small fixes found by the axe + tap-target pass, 12 Oct 2026 */
.guide-page .nav-toggle { min-width: 44px; min-height: 44px; display: none; align-items: center; justify-content: center; }
@media (max-width: 980px) { .guide-page .nav-toggle { display: inline-flex; } }
.guide-page .footer-powered-label { opacity: 1 !important; color: rgba(247,243,234,.78) !important; }
.g-cta-note { margin-top: 14px; font-size: 15px; color: rgba(247,243,234,.82); }
