/*
Theme Name: Jet Field Notes
Theme URI: 
Author: Jet Field Notes Editorial
Description: A field-route atlas block theme for practical mobile LiDAR workflows.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: jet-field-notes
*/

:root {
  --glbv-bg: #fbf7fb;
  --glbv-surface: #f3eef3;
  --glbv-text: #2a1b2e;
  --glbv-muted: #736876;
  --glbv-accent: #10b981;
  --glbv-on-accent: #111111;
  --glbv-border: #d5cfd6;
  --glbv-gutter: 24px;
  --glbv-frame: 1184px;
  --glbv-prose: 704px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: #fbf7fb;
  color: #2a1b2e;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.588;
  background-image:
    linear-gradient(rgba(42, 27, 46, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 27, 46, .035) 1px, transparent 1px);
  background-size: 32px 32px;
}

a { color: #2a1b2e; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover, a:focus-visible { color: #10b981; }
:focus-visible { outline: 3px solid #10b981; outline-offset: 3px; }

h1, h2, h3, h4, h5, h6 {
  color: #2a1b2e;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 650;
  letter-spacing: -.02em;
}

.glbv-utility-bar {
  min-height: 56px;
  border-bottom: 1px solid #d5cfd6;
  background: rgba(251, 247, 251, .96);
}

.glbv-utility-inner {
  width: min(calc(100% - 48px), 1440px);
  min-height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.glbv-wordmark { margin-right: auto; font-family: "Fraunces", Georgia, serif; font-size: 21px; font-weight: 650; }
.glbv-wordmark a { text-decoration: none; }
.glbv-independence { color: #736876; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.glbv-header-search { min-width: 208px; }
.glbv-saved-link { font-size: 13px; font-weight: 700; white-space: nowrap; }

.glbv-main-frame { width: min(calc(100% - 48px), 1184px); margin-inline: auto; }

.glbv-route-hero {
  padding: 72px 0 54px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}

.glbv-route-copy { grid-column: span 5; }
.glbv-route-copy h1 { margin: 12px 0 20px; font-size: clamp(40px, 5vw, 48px); line-height: 1.083; }
.glbv-eyebrow { margin: 0; color: #736876; font-size: 13px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.glbv-hero-deck { max-width: 39ch; margin-bottom: 0; font-size: 19px; line-height: 1.55; }

.glbv-route-visual {
  grid-column: span 7;
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid #d5cfd6;
  border-radius: 2px 12px 2px 2px;
  background: #f3eef3;
}

.glbv-route-visual img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; display: block; }
.glbv-evidence-stamp {
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 8px 12px;
  border: 1px solid #10b981;
  background: #fbf7fb;
  color: #2a1b2e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.glbv-builder { margin-bottom: 88px; padding: 28px; border: 1px solid #d5cfd6; border-radius: 2px 12px 2px 2px; background: #f3eef3; }
.glbv-builder-head { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; }
.glbv-builder-head h2 { margin: 0; font-size: 30px; line-height: 1.167; }
.glbv-match-count { margin: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.glbv-builder-steps { margin-top: 24px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.glbv-waypoint { min-height: 96px; padding: 14px; border: 1px solid #d5cfd6; background: #fbf7fb; }
.glbv-waypoint strong { display: block; margin-bottom: 8px; font-family: "Fraunces", Georgia, serif; font-size: 16px; }
.glbv-waypoint span { color: #736876; font-size: 13px; line-height: 1.38; }
.glbv-waypoint-no { display: inline-grid !important; width: 22px; height: 22px; margin-right: 6px; place-items: center; border-radius: 50%; background: #10b981; color: #111111 !important; font-size: 11px !important; font-weight: 800; }

.glbv-directory { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 48px; padding: 64px 0 88px; }
.glbv-facet-rail { align-self: start; position: sticky; top: 24px; padding: 24px 20px; border-top: 3px solid #10b981; background: #f3eef3; }
.glbv-facet-rail h2 { margin: 0 0 18px; font-size: 20px; }
.glbv-workflow-list { margin: 0; padding: 0; list-style: none; }
.glbv-workflow-list li { padding: 10px 0; border-top: 1px solid #d5cfd6; font-size: 13px; }
.glbv-workflow-list a { text-decoration: none; }
.glbv-rail-count { float: right; color: #736876; font-variant-numeric: tabular-nums; }
.glbv-saved-tray { margin-top: 24px; padding-top: 18px; border-top: 1px solid #2a1b2e; font-size: 13px; }

.glbv-directory-main { min-width: 0; }
.glbv-section-heading { margin: 0 0 12px; font-size: 30px; line-height: 1.167; }
.glbv-section-question { max-width: 62ch; margin: 0 0 26px; color: #736876; }
.glbv-facet-summary { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.glbv-facet-chip { padding: 6px 10px; border: 1px solid #10b981; border-radius: 999px; color: #2a1b2e; font-size: 12px; font-weight: 700; }
.glbv-guide-grid .wp-block-post-template { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; }
.glbv-guide-card { height: 100%; padding: 24px; border: 1px solid #d5cfd6; border-radius: 2px 12px 2px 2px; background: #fbf7fb; }
.glbv-guide-card h2 { margin: 12px 0; font-size: 23px; line-height: 1.25; }
.glbv-guide-card .wp-block-post-excerpt__excerpt { margin: 0; color: #736876; }
.glbv-guide-meta { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.glbv-card-ledger { margin-top: 22px; display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid #d5cfd6; }
.glbv-card-ledger span { padding: 8px; border-bottom: 1px solid #d5cfd6; color: #736876; font-size: 11px; }
.glbv-card-ledger span:nth-child(odd) { border-right: 1px solid #d5cfd6; }

.glbv-comparison-ledger { margin-top: 56px; overflow-x: auto; border-top: 3px solid #2a1b2e; }
.glbv-comparison-ledger table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.glbv-comparison-ledger th, .glbv-comparison-ledger td { padding: 14px; border: 1px solid #d5cfd6; text-align: left; }
.glbv-comparison-ledger th { background: #2a1b2e; color: #fbf7fb; }
.glbv-comparison-ledger tbody tr:nth-child(even) { background: #f3eef3; }
.glbv-field-note { margin-top: 28px; padding: 20px 24px; border-left: 4px solid #10b981; background: #f3eef3; font-size: 14px; }

.glbv-article-shell { width: min(calc(100% - 48px), 1184px); margin: 0 auto; padding: 68px 0 88px; }
.glbv-article-head { max-width: 900px; margin-bottom: 40px; }
.glbv-article-head h1 { margin: 12px 0 18px; font-size: clamp(40px, 5vw, 48px); line-height: 1.083; }
.glbv-scope-deck { max-width: 64ch; color: #736876; font-size: 19px; }
.glbv-output-checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.glbv-output-checks span { padding: 7px 10px; border: 1px solid #10b981; font-size: 12px; font-weight: 700; }
.glbv-article-grid { display: grid; grid-template-columns: minmax(0, 704px) 248px; justify-content: space-between; gap: 48px; align-items: start; }
.glbv-prose { max-width: 704px; }
.glbv-prose > *:first-child { margin-top: 0; }
.glbv-prose p { margin: 0 0 27px; }
.glbv-prose h2 { margin: 48px 0 16px; font-size: 30px; line-height: 1.167; }
.glbv-field-ledger { position: sticky; top: 24px; padding: 20px; border: 1px solid #d5cfd6; border-top: 3px solid #10b981; background: #f3eef3; }
.glbv-field-ledger h2 { margin: 0 0 16px; font-size: 20px; }
.glbv-field-ledger dl { margin: 0; }
.glbv-field-ledger dt { margin-top: 14px; color: #736876; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.glbv-field-ledger dd { margin: 2px 0 0; font-size: 14px; }
.glbv-evidence-note { margin: 32px 0; padding: 16px 20px; border-top: 1px solid #10b981; border-bottom: 1px solid #10b981; color: #736876; font-size: 13px; }

.glbv-page-shell { width: min(calc(100% - 48px), 880px); min-height: 55vh; margin: 0 auto; padding: 72px 0 88px; }
.glbv-page-shell h1 { margin: 0 0 28px; font-size: clamp(40px, 5vw, 48px); line-height: 1.083; }
.glbv-page-content { max-width: 704px; }

.glbv-route-footer { background: #2a1b2e; color: #fbf7fb; }
.glbv-footer-inner { width: min(calc(100% - 48px), 1184px); margin: 0 auto; padding: 52px 0 30px; }
.glbv-footer-heading { margin: 0 0 28px; color: #fbf7fb; font-size: 24px; }
.glbv-destination-map { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; margin-bottom: 40px; }
.glbv-destination-map::before { content: ""; position: absolute; top: 10px; left: 5%; right: 5%; height: 2px; background: #10b981; }
.glbv-destination { position: relative; padding-top: 28px; color: #fbf7fb; font-size: 12px; text-decoration: none; }
.glbv-destination::before { content: ""; position: absolute; top: 5px; left: 0; width: 12px; height: 12px; border: 2px solid #2a1b2e; border-radius: 50%; background: #10b981; }
.glbv-footer-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 20px; border-top: 1px solid #736876; color: #d5cfd6; font-size: 12px; }
.glbv-footer-meta a { color: #fbf7fb; }

.glbv-pagination { margin-top: 36px; }
.glbv-empty-route { padding: 24px; border: 1px dashed #736876; color: #736876; }

@media (max-width: 899px) {
  .glbv-independence, .glbv-header-search { display: none; }
  .glbv-main-frame, .glbv-article-shell, .glbv-footer-inner { width: min(calc(100% - 32px), 704px); }
  .glbv-route-hero { padding-top: 44px; }
  .glbv-route-copy, .glbv-route-visual { grid-column: 1 / -1; }
  .glbv-route-copy { order: 1; }
  .glbv-route-visual { order: 2; min-height: 280px; }
  .glbv-route-visual img { min-height: 280px; }
  .glbv-builder { margin-bottom: 56px; padding: 20px 16px; overflow: hidden; }
  .glbv-builder-steps { display: flex; overflow-x: auto; padding-bottom: 10px; }
  .glbv-waypoint { min-width: 190px; }
  .glbv-directory { display: block; padding-top: 40px; }
  .glbv-facet-rail { position: static; margin-bottom: 30px; max-height: 210px; overflow-y: auto; }
  .glbv-guide-grid .wp-block-post-template { grid-template-columns: 1fr; }
  .glbv-article-grid { display: flex; flex-direction: column; }
  .glbv-field-ledger { order: -1; position: static; width: 100%; }
  .glbv-destination-map { grid-template-columns: 1fr 1fr; }
  .glbv-destination-map::before { top: 0; bottom: 0; left: 5px; right: auto; width: 2px; height: auto; }
  .glbv-destination { padding: 0 0 0 24px; }
  .glbv-destination::before { top: 6px; left: 0; }
}

@media (max-width: 639px) {
  .glbv-utility-inner { width: calc(100% - 32px); gap: 14px; }
  .glbv-route-hero { display: block; }
  .glbv-route-copy { margin-bottom: 28px; }
  .glbv-route-copy h1, .glbv-article-head h1, .glbv-page-shell h1 { font-size: 38px; line-height: 1.1; }
  .glbv-builder-head { display: block; }
  .glbv-match-count { margin-top: 8px; }
  .glbv-card-ledger { grid-template-columns: 1fr; }
  .glbv-card-ledger span:nth-child(odd) { border-right: 0; }
  .glbv-output-checks { display: grid; }
}

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