/* Find a Guide — directory + map (loaded only on /guides/ pages) */

/* breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 400 12px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 26px; }
.crumbs a { color: var(--text-muted-rev); text-decoration: none; }
.crumbs a:hover { color: var(--fog); }
.crumbs span { color: var(--text-muted-rev); }
.crumbs span:last-child { color: var(--fog); }
[data-mood="light"] .crumbs a, [data-mood="light"] .crumbs span { color: var(--text-muted); }

.pagehero--dir { padding: 58px 0 46px; }
.dir-preview { margin-top: 26px; max-width: 68ch; font: 400 12.5px/1.7 var(--font-mono); color: var(--text-muted-rev); border: 1px dashed var(--hairline-rev); border-radius: 10px; padding: 12px 16px; }
.dir-preview b { color: var(--fog); font-weight: 500; }
.pagehero--dir .lede { max-width: 68ch; }
.dir-stats { margin-top: 22px; font: 400 12.5px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted-rev); border-left: var(--rule-w) solid var(--line); padding-left: 12px; }

/* ---- split shell: list + sticky map ---- */
.dirsec { padding: 0; }
.dir-shell { display: grid; grid-template-columns: minmax(430px, 46%) 1fr; align-items: start; }
.dir-list { padding: 34px clamp(22px, 2.6vw, 44px) 64px clamp(20px, 5vw, 72px); min-width: 0; }
.dir-map { position: sticky; top: 0; height: 100vh; height: 100dvh; }
.subpage .dir-map { top: var(--nav-h); height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h)); }
.dir-map .mapbox { position: absolute; inset: 0; width: 100%; height: 100%; background: #EDE9DE; } /* beats maplibregl-map's position:relative */
.mapbox canvas { outline: none; }
.map-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.map-fallback p { font: 400 13px/1.6 var(--font-mono); color: var(--text-muted); max-width: 34ch; }

/* tools */
.dir-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.dt-search { flex: 1; display: flex; align-items: center; gap: 10px; border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 0 16px; background: var(--paper); color: var(--text-muted); transition: border-color .2s; }
.dt-search:focus-within { border-color: var(--ink); color: var(--ink); }
.dt-search input { flex: 1; border: 0; background: none; padding: 12px 0; font: 400 16px/1.3 var(--font-body); color: var(--ink); min-width: 0; }
.dt-search input:focus { outline: none; }
.dt-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
#gState { border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 12px 34px 12px 16px; font: 500 14px/1.3 var(--font-body); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='m1 1 4 4 4-4' stroke='%2316232B' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--ink); appearance: none; cursor: pointer; }
#gState:focus-visible, .dt-search input:focus-visible { outline: 2px solid var(--line); outline-offset: 1px; }
.dt-all { font: 500 13.5px/1 var(--font-body); color: var(--ink); text-decoration: none; border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 13px 16px; white-space: nowrap; }
.dt-all:hover { border-color: var(--ink); }
.dir-count { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font: 400 12px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 14px 4px; }
.dt-bounds { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; text-transform: none; letter-spacing: .02em; }
.dt-bounds input { appearance: none; -webkit-appearance: none; width: 17px; height: 17px; border: 1.5px solid rgba(22,35,43,.4); border-radius: 4px; background: var(--paper); cursor: pointer; display: grid; place-content: center; margin: 0; }
.dt-bounds input:checked { background: var(--line); border-color: var(--line); }
.dt-bounds input:checked::before { content: ""; width: 9px; height: 9px; background: var(--fog); clip-path: polygon(14% 44%, 0 62%, 40% 100%, 100% 16%, 84% 2%, 38% 68%); }
.dt-bounds input:focus-visible { outline: 2px solid var(--line); outline-offset: 2px; }

/* cards */
.gcards { display: flex; flex-direction: column; }
.gcard { display: flex; gap: 16px; align-items: flex-start; padding: 18px 14px; margin: 0 -14px; border-radius: 12px; position: relative; transition: background .15s; }
.gcard::after { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px; background: var(--hairline); }
.gcard:last-child::before { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 1px; background: var(--hairline); }
.gcard:hover, .gcard.is-hot { background: #EDE8DC; }
.gcard:hover::after, .gcard.is-hot::after { opacity: 0; }
.gcard[hidden] { display: none; }
.gc-locate { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 12px; flex: 0 0 auto; }
.gc-locate:focus-visible { outline: 2px solid var(--line); outline-offset: 3px; border-radius: 12px; }
.gmono { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 10px; font: 500 17px/1 var(--font-display); font-variation-settings: var(--frx); letter-spacing: .02em; user-select: none; }
/* tint pool: deep enough that fog initials pass WCAG AA (4.5:1) */
.gmono.t0 { background: var(--river); color: var(--fog); }
.gmono.t1 { background: #4A573F; color: var(--fog); } /* deep reed */
.gmono.t2 { background: var(--ink); color: var(--fog); }
.gmono.t3 { background: #97450E; color: var(--fog); } /* deep ember */
.gc-main { flex: 1; min-width: 0; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 5px; }
.gc-main:focus-visible { outline: 2px solid var(--line); outline-offset: 3px; border-radius: 4px; }
.gc-name { font: 500 18.5px/1.25 var(--font-display); font-variation-settings: var(--frx); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gc-loc { font-size: 13.5px; color: var(--text-muted); }
.gc-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.gc-chips i { font: 400 11.5px/1 var(--font-mono); font-style: normal; color: var(--ink); background: var(--fog); border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 5px 9px; }
.gc-chips i.more { color: var(--text-muted); background: none; }
.gc-meta { font: 400 11.5px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }
.gc-badge { font: 500 10.5px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--fog); background: var(--river); border-radius: var(--radius-pill); padding: 4px 8px; }
.gc-note { font: 400 10px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(22,35,43,.45); }
.dir-empty { padding: 34px 4px; font-size: 15px; color: var(--text-muted); }
.dir-empty a { color: var(--ink); font-weight: 600; }

/* browse-by-state + license */
.dir-states { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dt-k { flex-basis: 100%; font: 400 11px/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.dir-states a { font: 500 13.5px/1 var(--font-body); color: var(--ink); text-decoration: none; border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 9px 13px; }
.dir-states a b { font-weight: 400; color: var(--text-muted); margin-left: 3px; }
.dir-states a:hover { border-color: var(--ink); }
.lic-note { margin-top: 40px; border-top: var(--rule-w) solid var(--line); padding-top: 16px; }
.lic-note p { font-size: 14.5px; line-height: 1.6; color: var(--text-muted); max-width: 58ch; }
.lic-note a { color: var(--ink); font-weight: 600; }

/* map ui */
.map-pill { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 60; display: none; gap: 8px; box-shadow: 0 12px 32px rgba(22,35,43,.35); }
.mapview-close { position: absolute; top: 14px; left: 14px; z-index: 5; display: none; }
.gpin { width: 20px; height: 20px; border-radius: 50%; background: var(--line); border: 2.5px solid var(--fog); box-shadow: 0 1px 4px rgba(22,35,43,.35); cursor: pointer; } /* same dot system as the directory map's point layer */
.gclu { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink); color: var(--fog); font: 500 13px/1 var(--font-body); border: 2px solid var(--fog); box-shadow: 0 4px 12px rgba(22,35,43,.3); cursor: pointer; box-sizing: content-box; }
.maplibregl-popup.gpop .maplibregl-popup-content { border-radius: 16px; padding: 0; box-shadow: 0 18px 44px rgba(22,35,43,.25); font-family: var(--font-body); overflow: hidden; }
.gpop-in { display: flex; gap: 12px; padding: 14px 16px; align-items: flex-start; background: var(--paper); color: var(--ink); min-width: 230px; }
.gpop-in .gmono { width: 40px; height: 40px; font-size: 14px; border-radius: 8px; }
.gpop-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gpop-n { font: 500 15.5px/1.25 var(--font-display); font-variation-settings: var(--frx); }
.gpop-t { font-size: 12.5px; color: var(--text-muted); }
.gpop-w { font: 400 11px/1.5 var(--font-mono); color: var(--text-muted); }
.gpop-a { font: 600 13px/1 var(--font-body); color: var(--ink); text-decoration: none; margin-top: 6px; border-bottom: 2px solid var(--line); align-self: flex-start; padding-bottom: 2px; }
.maplibregl-popup.gpop .maplibregl-popup-close-button { font-size: 18px; width: 32px; height: 32px; color: var(--text-muted); }

/* de-factory the map furniture: brand the zoom control + attribution */
.maplibregl-ctrl-group { background: var(--fog); border: 1px solid var(--hairline); border-radius: 10px; box-shadow: 0 1px 3px rgba(22,35,43,.15); overflow: hidden; }
.maplibregl-ctrl-group button { width: 32px; height: 32px; background: var(--fog); }
.maplibregl-ctrl-group button + button { border-top: 1px solid var(--hairline); }
.maplibregl-ctrl-group button:hover { background: #EDE8DC; }
.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M9 4v10M4 9h10' stroke='%2316232B' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E"); }
.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M4 9h10' stroke='%2316232B' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E"); }
.maplibregl-ctrl-attrib { font: 400 10px/1.4 var(--font-body); background: rgba(244,240,230,.85); border-radius: 8px; }
.maplibregl-ctrl-attrib a { color: var(--text-muted); }
.maplibregl-compact-show.maplibregl-ctrl-attrib { padding: 2px 30px 2px 10px; }
button.maplibregl-ctrl-attrib-button { width: 20px; height: 20px; background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='6.2' fill='none' stroke='%2316232B' stroke-opacity='.45' stroke-width='1.3'/%3E%3Cpath d='M7 6.2v4' stroke='%2316232B' stroke-opacity='.45' stroke-width='1.4' stroke-linecap='round'/%3E%3Ccircle cx='7' cy='3.9' r='.9' fill='%2316232B' fill-opacity='.45'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }

/* mobile bottom sheet */
.msheet { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; background: var(--paper); color: var(--ink); border-radius: 16px; box-shadow: 0 18px 44px rgba(22,35,43,.35); padding: 22px 16px 16px; display: none; }
.msheet::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 36px; height: 4px; border-radius: 2px; background: rgba(22,35,43,.15); }
.msheet.is-open { display: block; }
.msheet .gpop-in { padding: 0; }
.msheet-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--text-muted); cursor: pointer; padding: 6px; }

/* suggest + claim forms (light bg variants of start-form) */
.sgsec { padding: 90px 0 100px; border-top: 1px solid var(--hairline); }
.sg-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.sg-copy h2 { margin-bottom: 18px; }
.sg-form { box-shadow: 0 30px 70px rgba(22,35,43,.12); border: 1px solid var(--hairline); border-bottom: var(--rule-w) solid var(--line); }
.sg-form .form-2col { grid-template-columns: 1fr 1fr; }
.sg-form.is-sent > div:not(.form-success), .sg-form.is-sent button { display: none; }
.sg-form.is-sent .form-success { display: block; }

/* hub faq */
.gfaq { padding: 80px 0 100px; border-top: 1px solid var(--hairline); }
.gfaq h2 { margin-bottom: 26px; }
.gfaq .faq-list { max-width: 760px; }

/* ---- profile ---- */
.gp-hero { padding: 66px 0 46px; }
.gp-head { display: flex; gap: 22px; align-items: center; }
.gmono--lg { width: 84px; height: 84px; border-radius: 16px; font-size: 28px; flex: 0 0 auto; }
.gp-hero .gmono.t2 { background: var(--fog); color: var(--ink); } /* ink tile would sink into the dark hero */
.gp-hero .gmono { box-shadow: inset 0 0 0 1px var(--hairline-rev); }
.gp-title h1 { font: 500 clamp(30px, 3.6vw, 50px)/1.1 var(--font-display); font-variation-settings: var(--frx); letter-spacing: -.01em; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.gp-sub { margin-top: 8px; font: 400 12.5px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted-rev); }
.gp-body { padding: 64px 0 40px; }
.gp-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.gp-preview { font: 400 12px/1.6 var(--font-mono); color: var(--text-muted); border: 1px dashed var(--hairline); border-radius: 10px; padding: 10px 14px; margin-bottom: 22px; max-width: 56ch; }
.gp-blurb { font-size: 18.5px; line-height: 1.65; max-width: 62ch; margin-bottom: 34px; }
/* answer-first quick summary (AI Summary Nugget) */
.gp-quick { font: 500 17px/1.6 var(--font-body); color: var(--ink); max-width: 64ch; margin: 0 0 22px; padding-left: 16px; border-left: var(--rule-w) solid var(--line); }
/* answer-engine Q&A: click-to-open accordions (details.qa base styles live in components.css) */
.gp-qa { margin: 10px 0 40px; max-width: 66ch; }
.qa-eyebrow { display: block; font: 400 11px/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.gp-qa details.qa summary { font-size: 16.5px; padding: 18px 0; }
.gp-qa .ans a { color: var(--ink); font-weight: 600; }

/* read-more: long SEO description behind a quiet toggle (native details = content always in DOM) */
.readmore { margin: -16px 0 32px; max-width: 64ch; }
.readmore summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font: 600 14px/1 var(--font-body); color: var(--ink); padding: 5px 0; }
.readmore summary::-webkit-details-marker { display: none; }
.readmore summary:hover { color: var(--line); }
.readmore .rm-ic { width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform .25s ease; }
.readmore[open] .rm-ic { transform: rotate(-135deg); margin-top: 3px; }
.rm-body { margin-top: 14px; }
.rm-body p { font-size: 15.5px; line-height: 1.72; color: var(--text-muted); margin: 0 0 14px; }
.rm-body p:last-child { margin-bottom: 0; }

/* sidebar booking CTA — above the fold, sticky */
.gp-cta { background: var(--paper); border: 1px solid var(--hairline); border-bottom: var(--rule-w) solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 20px; box-shadow: 0 24px 60px rgba(22,35,43,.1); }
.gp-cta-k { display: block; font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.gp-cta-p { font-size: 14.5px; line-height: 1.5; color: var(--ink); margin: 0 0 16px; }
.gp-cta .gp-ctas { display: flex; flex-direction: column; gap: 10px; }
.gp-cta .gp-ctas .btn { width: 100%; justify-content: center; }
.gp-cta .gp-nobook { color: var(--text-muted); font-size: 14px; }
.gp-cta .gp-nobook a { color: var(--ink); font-weight: 600; }
.gp-details { border-top: 1px solid var(--hairline); margin-bottom: 44px; }
.gp-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--hairline); font-size: 15px; }
.fk { font: 400 11px/1.7 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); }
.fv { color: var(--ink); line-height: 1.5; }
.fv a { color: var(--ink); font-weight: 600; }
.gp-book { background: var(--ink); color: var(--fog); border-radius: 16px; padding: clamp(24px, 3vw, 36px); margin-bottom: 44px; }
.gp-book h2 { font-size: clamp(21px, 2.2vw, 28px); margin-bottom: 10px; }
.gp-book p { color: var(--text-muted-rev); font-size: 15px; line-height: 1.6; max-width: 52ch; margin-bottom: 20px; }
.gp-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.gp-book .btn-primary { background: var(--fog); color: var(--ink); }
.gp-book .btn-ghost { color: var(--fog); border-color: var(--hairline-rev); }
.gp-nobook { color: var(--text-muted-rev); font-size: 14.5px; }
.gp-nobook a { color: var(--fog); font-weight: 600; }
.gp-claim { border-top: var(--rule-w) solid var(--line); padding-top: 22px; }
.gp-claim h3 { font: 500 21px/1.2 var(--font-display); font-variation-settings: var(--frx); margin-bottom: 8px; }
.gp-claim > p { font-size: 14.5px; line-height: 1.6; color: var(--text-muted); max-width: 58ch; margin-bottom: 18px; }
.sg-form--claim { box-shadow: none; border: 1px solid var(--hairline); border-bottom: var(--rule-w) solid var(--line); }
.gp-side { position: sticky; top: calc(var(--nav-h) + 24px); }
.gp-facts { background: var(--paper); border: 1px solid var(--hairline); border-bottom: var(--rule-w) solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(22,35,43,.1); }
.minimap { height: 210px; background: #EDE9DE; position: relative; }
.fact { display: flex; flex-direction: column; gap: 3px; padding: 13px 20px; border-top: 1px solid var(--hairline); }
.minimap + .fact { border-top: 0; }
.fact-link { display: block; padding: 15px 20px; font: 600 13.5px/1 var(--font-body); color: var(--ink); text-decoration: none; border-top: 1px solid var(--hairline); background: var(--fog); }
.gp-nearby { padding: 30px 0 96px; }
.gp-nearby h2 { margin-bottom: 10px; }
.gcards--row .gcard:first-child { border-top: 1px solid var(--hairline); }

/* ============ Driftline Certified (client guides) ============ */
/* badge: brass fill + ink glyph/text (contrast law) — overrides the base .gc-badge river pill */
.gc-badge--cert { background: var(--brass); color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.gc-seal { flex: 0 0 auto; display: inline-block; }

/* monogram tile: brass at every size (list 52 / popup 40 / hero 84) — the gold-at-a-glance cue */
.gmono.is-certified { background: var(--brass-deep); color: var(--fog); }
.gp-hero .gmono.is-certified { background: var(--brass-deep); color: var(--fog); } /* beats the .gp-hero .gmono.t2 fog override */

/* directory card: subtle brass left-rule + faint wash (premium, not an ad) */
.gcard.is-certified { background: var(--brass-wash); box-shadow: inset 3px 0 0 var(--brass); }
.gcard.is-certified:hover, .gcard.is-certified.is-hot { background: #EDE3CC; }
.gcard.is-certified:hover::after, .gcard.is-certified.is-hot::after { opacity: 0; }

/* map: certified minimap marker (brass, larger, brass halo ring) */
.gpin--certified { width: 26px; height: 26px; background: var(--brass); border-color: var(--fog); box-shadow: 0 0 0 6px var(--brass-glow), 0 1px 4px rgba(22,35,43,.35); }

/* map popup certified line */
.gpop-cert { font: 500 10.5px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--brass-deep); }

/* certified filter chip (hub + state) */
.dt-cert { display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1 var(--font-body); color: var(--brass-deep); background: var(--paper); border: 1px solid rgba(176,129,46,.42); border-radius: var(--radius-pill); padding: 9px 14px; cursor: pointer; margin: 0 0 14px 4px; transition: background .15s, border-color .15s; }
.dt-cert .gc-seal { color: var(--brass); }
.dt-cert:hover { border-color: var(--brass); }
.dt-cert.is-on { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.dt-cert.is-on .gc-seal { color: var(--ink); }
.dt-cert:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* profile: the "what Driftline Certified means" lockup */
.cert-panel { display: flex; gap: 22px; align-items: flex-start; background: var(--brass-wash); border: 1px solid rgba(176,129,46,.28); border-left: var(--rule-w) solid var(--brass); border-radius: 14px; padding: 22px 24px; margin-bottom: 34px; }
.cert-seal { flex: 0 0 auto; width: 78px; display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--brass-deep); }
.cert-seal-svg { width: 50px; height: 50px; }
.cert-seal-k { font: 500 10px/1.25 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; text-align: center; color: #6E4E19; /* brass family, 6.3:1 on the wash bg — --brass-deep was 4.4:1 at this 10px size */ }
.cert-body h2 { font: 500 clamp(20px, 2.2vw, 26px)/1.15 var(--font-display); font-variation-settings: var(--frx); margin: 2px 0 8px; }
.cert-body p { font-size: 15px; line-height: 1.6; color: var(--text-muted); max-width: 60ch; margin-bottom: 14px; }
.cert-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cert-list li { position: relative; padding-left: 24px; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.cert-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath d='M3 8.5l3 3 7-8' stroke='%23B0812E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* ============ Add a Guide page ============ */
.addsec { border-top: 0; padding-top: 48px; }
.add-points { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.add-points li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.add-points li b { color: var(--ink); font-weight: 600; }
.add-points li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath d='M3 8.5l3 3 7-8' stroke='%23B0812E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
/* scoped under .start-form to beat the uppercase-mono `.start-form label` rule */
.start-form .add-attest { display: flex; gap: 11px; align-items: flex-start; margin: 6px 0 2px; cursor: pointer; }
.start-form .add-attest span { font: 400 13.5px/1.5 var(--font-body); letter-spacing: normal; text-transform: none; color: var(--text-muted); }
.start-form .add-attest input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 20px; height: 20px; margin: 0; border: 1.5px solid rgba(22,35,43,.4); border-radius: 5px; background: var(--paper); cursor: pointer; display: grid; place-content: center; }
.start-form .add-attest input:checked { background: var(--line); border-color: var(--line); }
.start-form .add-attest input:checked::before { content: ""; width: 10px; height: 10px; background: var(--fog); clip-path: polygon(14% 44%, 0 62%, 40% 100%, 100% 16%, 84% 2%, 38% 68%); }
.start-form .add-attest input:focus-visible { outline: 2px solid var(--line); outline-offset: 2px; }

/* ---- responsive ---- */

/* ---------- mobile directory helpers (dir-states-row + g-more + dt-map; desktop hides all) ---------- */
.dir-states-row { display: none; }
.g-more { display: none; margin: 18px auto 4px; }
.dt-map { display: none; }

@media (max-width: 1080px) {
  .dir-shell { grid-template-columns: 1fr; }
  .dir-map { position: fixed; inset: 0; top: 0; height: 100vh; height: 100dvh; z-index: 55; display: none; }
  .subpage .dir-map { top: 0; height: 100vh; height: 100dvh; }
  body.map-open .dir-map { display: block; }
  body.map-open { overflow: hidden; }
  body.map-open .map-pill { display: none; }
  .mapview-close { display: inline-flex; }
  .map-pill { display: inline-flex; }
  .dir-list { padding: 26px var(--pad-x) 96px; } /* clearance so the Map pill never covers the last row */
  .dt-bounds { display: none; } /* map is a separate overlay view on mobile */
  .dir-tools { position: sticky; top: 0; z-index: 40; background: var(--fog); padding: 10px 0 12px; margin: -10px 0 0; box-shadow: 0 10px 18px -14px rgba(22,35,43,.28); }
  .dir-states-row { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px 0 12px; margin: 6px 0 2px; }
  .dir-states-row::-webkit-scrollbar { display: none; }
  .dir-states-row a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px/1 var(--font-body); color: var(--ink); text-decoration: none; border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 8px 12px; background: var(--paper); white-space: nowrap; }
  .dir-states-row a b { font: 400 10.5px/1 var(--font-mono); color: var(--text-muted); }
  .g-more { display: block; }
  .g-more[hidden] { display: none; }
  .dt-map { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 12px 16px; font: 500 14px/1.3 var(--font-body); background: var(--paper); color: var(--ink); cursor: pointer; white-space: nowrap; }
  .gp-grid { grid-template-columns: 1fr; }
  .gp-side { position: static; order: -1; }
  .sg-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pagehero--dir { padding: 34px 0 26px; }
  .pagehero--dir .lede { font-size: 15.5px; line-height: 1.55; }
  .dir-preview { font-size: 11.5px; }
  .gcard { padding: 12px 10px; gap: 12px; }
  .gmono { width: 40px; height: 40px; font-size: 14px; }
  .gc-name { font-size: 16px; }
  .gc-loc { font-size: 12.5px; }
  .gc-meta { font-size: 10.5px; }
  .dir-tools { flex-wrap: wrap; }
  .dt-search { flex-basis: 100%; }
  #gState, .dt-all { font-size: 16px; } /* iOS zooms on focus below 16px */
  .dt-map { font-size: 16px; flex: 0 0 auto; }
  #gState { flex: 1 1 auto; min-width: 0; }
  .gp-head { gap: 14px; }
  .gmono--lg { width: 64px; height: 64px; font-size: 22px; border-radius: 12px; }
  .gp-row { grid-template-columns: 92px 1fr; }
  .gc-chips i { padding: 5px 8px; }
  .dir-count { flex-wrap: wrap; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .gcard, .dt-search { transition: none; }
}

/* ============ directory-only nav (dir-page) ============ */
/* no burger on directory pages; keep the two CTAs right-aligned at every width */
.dir-page .nav-ctas--dir { margin-left: auto; }
/* ghost "Add a Guide" sits on the always-dark subpage nav — force light (base .btn-ghost is ink-on-transparent) */
.nav-ctas--dir .btn-ghost { color: var(--fog); border-color: var(--hairline-rev); }
.nav-ctas--dir .btn-ghost:hover { border-color: var(--fog); }
@media (max-width: 1080px) {
  .dir-page .nav-ctas--dir { margin-left: auto; }
  .dir-page .nav-ctas--dir .btn { font-size: 13px; padding: 10px 14px; }
}
@media (max-width: 400px) {
  .dir-page .nav-ctas--dir .btn { font-size: 12.5px; padding: 9px 11px; }
}

/* certified lockup stacks on small screens */
@media (max-width: 640px) {
  .cert-panel { flex-direction: column; gap: 14px; padding: 20px; }
  .cert-seal { flex-direction: row; width: auto; gap: 10px; }
  .cert-seal-svg { width: 40px; height: 40px; }
}

/* ---- guide-profile photo gallery + lightbox (v1 2026-07-06) ---- */
.gp-gallery { margin: 28px 0 8px; }
.gpg-h { font-family: var(--font-display, "Fraunces", serif); font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: -.01em; margin: 0 0 14px; }
.gpg-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.gpg-n1 { grid-template-columns: 1fr; }
.gpg-n2 { grid-template-columns: repeat(2, 1fr); }
.gpg-n4 { grid-template-columns: repeat(2, 1fr); }
.gpg-item { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: rgba(22,35,43,.06); }
.gpg-n1 .gpg-item { aspect-ratio: 16 / 10; }
.gpg-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.gpg-item:hover img, .gpg-item:focus-visible img { transform: scale(1.03); }
.gpg-item:focus-visible { outline: 2px solid var(--ember, #C96F2E); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .gpg-item img { transition: none; } .gpg-item:hover img { transform: none; } }
@media (max-width: 640px) { .gpg-grid, .gpg-n4 { grid-template-columns: repeat(2, 1fr); } }

.gplb { position: fixed; inset: 0; z-index: 999; display: none; align-items: center; justify-content: center; background: rgba(12,19,24,.92); padding: 4vh 4vw; }
.gplb.on { display: flex; }
.gplb img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.gplb-cap { position: absolute; bottom: 3vh; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: 13px; letter-spacing: .02em; }
.gplb-x, .gplb-prev, .gplb-next { position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.gplb-x:hover, .gplb-prev:hover, .gplb-next:hover, .gplb-x:focus-visible, .gplb-prev:focus-visible, .gplb-next:focus-visible { background: rgba(255,255,255,.22); }
.gplb-x { top: 18px; right: 18px; }
.gplb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.gplb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.gplb[data-n="1"] .gplb-prev, .gplb[data-n="1"] .gplb-next { display: none; }
@media (max-width: 640px) { .gplb-prev { left: 6px; } .gplb-next { right: 6px; } }

/* ============================================================ ENRICHMENT: logos, chips, Google rating */
/* Real brand-mark avatar (monogram .gmono is the fallback). Sits on a paper tile so a
   light OR dark logo reads on any background; certified guides get a brass ring. */
.gavatar { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 10px; flex: 0 0 auto; background: var(--paper); border: 1px solid var(--hairline); overflow: hidden; padding: 3px; box-sizing: border-box; }
.gavatar.gmono--lg { width: 84px; height: 84px; border-radius: 16px; padding: 5px; }
.gavatar .glogo { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.gavatar.is-certified { border-color: var(--brass, #B8894A); box-shadow: inset 0 0 0 1px var(--brass, #B8894A); }
.gp-hero .gavatar { background: var(--fog); border-color: transparent; }
/* near-white marks (designed for a dark navbar) get the ink tile instead of paper, or they vanish */
.gavatar.gavatar--dark { background: var(--ink); border-color: var(--ink); }
.gp-hero .gavatar.gavatar--dark { background: var(--ink); }
/* no logo: guide's own photo instead of a bare monogram. A photo should crop-cover the tile,
   unlike a logo mark which stays inside it — so it gets its own padding + object-fit rule. */
.gavatar.gavatar--photo { padding: 0; }
.gavatar.gavatar--photo .glogo { width: 100%; height: 100%; object-fit: cover; }

/* Scannable species (linked → species hub) + trip chips on the profile detail block */
.gp-taglist { display: flex; flex-wrap: wrap; gap: 7px; }
.gp-tag { font: 400 12.5px/1 var(--font-mono); font-style: normal; color: var(--ink); background: var(--fog); border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 6px 11px; text-decoration: none; transition: border-color .18s; }
a.gp-tag:hover { border-color: var(--ink); }
.gp-tag--plain { color: var(--text-muted); background: transparent; }

/* Google rating module — renders ONLY when a live, Google-attributed pull has populated the
   record (dormant until a Places API key exists). We never render the frozen scrape rating. */
.gp-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; text-decoration: none; padding: 15px 17px; margin-bottom: 16px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--paper); transition: border-color .18s; }
.gp-rating:hover { border-color: var(--ink); }
.gpr-num { font: 600 22px/1 var(--font-display); font-variation-settings: var(--frx); color: var(--ink); }
.gpr-stars { display: inline-flex; gap: 2px; }
.gpr-stars .star { width: 15px; height: 15px; background: var(--hairline); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.3 6.9.8-5.1 4.7 1.4 6.8L12 17.8 5 21.4l1.4-6.8L1.3 9.9l6.9-.8z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.3 6.9.8-5.1 4.7 1.4 6.8L12 17.8 5 21.4l1.4-6.8L1.3 9.9l6.9-.8z'/%3E%3C/svg%3E") center/contain no-repeat; }
.gpr-stars .star.on { background: var(--ember, #C96F2E); }
.gpr-stars .star.half { background: linear-gradient(90deg, var(--ember, #C96F2E) 50%, var(--hairline) 50%); }
.gpr-meta { flex-basis: 100%; font: 400 11.5px/1.3 var(--font-mono); letter-spacing: .03em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- state field-notes rail (2026-07-24) ----------
   The 50 state directory pages shipped linking to zero field notes while 5-6 articles per state
   sat unlinked. This makes each state page the state's real anchor page. */
.sfn { padding: clamp(40px, 6vw, 78px) 0; }
.sfn h2 { font: 500 clamp(24px, 3vw, 32px)/1.12 var(--font-display); font-variation-settings: var(--frx); letter-spacing: -.01em; }
.sfn .lede { color: var(--text-muted); margin: 12px 0 clamp(20px, 3vw, 30px); max-width: 44rem; }
.sfn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(14px, 1.8vw, 20px); }
.sfn-card {
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 20px; background: var(--paper); text-decoration: none; color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sfn-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(22,35,43,.10); border-color: var(--line); }
.sfn-card .sfn-k { font: 400 11px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.sfn-card h3 { font: 500 18px/1.18 var(--font-display); font-variation-settings: var(--frx); letter-spacing: -.01em; margin: 0; }

/* ---- hub answer layer (water + species hubs) ------------------------------------------------
   These pages were bare card lists. The nugget reuses .gp-quick and the FAQ reuses .gp-qa from the
   profile, so the hub reads as the same object as everything else in the directory rather than a
   second design. Only the photo band and the related-hub row are new. */
.hub-photo { margin: 0 0 26px; }
.hub-photo .ph-wrap { display: block; position: relative; border-radius: var(--radius); overflow: hidden; }
.hub-photo img { width: 100%; height: clamp(190px, 26vw, 320px); object-fit: cover; display: block; }
.hub-photo figcaption { font: 400 13px/1.6 var(--font-body); color: var(--text-muted); padding-top: 9px; }
.hub-related { margin: 4px 0 34px; max-width: 66ch; }
.hub-rel-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.hub-rel-link {
  display: inline-block; border: 1px solid var(--hairline); border-radius: 999px;
  padding: 7px 14px; font: 500 13.5px/1 var(--font-body); color: var(--ink);
  text-decoration: none; background: var(--paper);
  transition: border-color .2s ease, transform .2s ease;
}
.hub-rel-link:hover { border-color: var(--line); transform: translateY(-1px); }
.dir-list .gp-quick { margin-top: 4px; }

/* ---- A-Z index pages (/guides/water/, /guides/species/) -------------------------------------
   The parent pages 2,351 water and species hubs never had. Dense on purpose: this is a wayfinding
   index, so the job is to fit a lot of real links on screen and stay scannable. */
.azi-jumps { display: flex; flex-wrap: wrap; gap: 6px; margin: 26px 0 34px; }
.azi-jump {
  display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px;
  border: 1px solid var(--hairline); border-radius: 8px; font: 500 13px/1 var(--font-mono);
  color: var(--ink); text-decoration: none; transition: border-color .2s ease, background .2s ease;
}
.azi-jump:hover { border-color: var(--line); background: var(--paper); }
.azi-group { margin: 0 0 30px; scroll-margin-top: 90px; }
.azi-h {
  font: 500 22px/1 var(--font-display); font-variation-settings: var(--frx);
  margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--hairline);
}
.azi-row { display: flex; flex-wrap: wrap; gap: 7px; }
.azi-link {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px;
  border: 1px solid var(--hairline); border-radius: 999px; background: var(--paper);
  font: 400 14px/1.2 var(--font-body); color: var(--ink); text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.azi-link:hover { border-color: var(--line); transform: translateY(-1px); }
.azi-n { font: 400 11px/1 var(--font-mono); color: var(--text-muted); }
.azi-back { margin: 40px 0 0; font: 500 15px/1.4 var(--font-body); }
.azi-back a { color: var(--ink); }
@media (max-width: 640px) { .azi-link { font-size: 13.5px; padding: 5px 10px; } }
