/* Temple Navigator — matched to the live site
   Forest green + antique gold + limewash cream. Lora display, Manrope UI. */

:root {
  --green-900: #1c3a2c;   /* footer, dark bands, primary buttons */
  --green-800: #244a39;   /* headings */
  --green-700: #2f5a45;
  --gold:      #a8823c;   /* italic accents, eyebrows, counts */
  --gold-soft: #c9a961;   /* gold on dark backgrounds */
  --cream:     #ece6d9;   /* hero band */
  --cream-alt: #f4f0e6;   /* alternating sections */
  --paper:     #fbf9f4;   /* page background */
  --white:     #ffffff;
  --ink:       #2b2b26;
  --muted:     #6d6d64;
  --line:      #e4ded0;

  --wrap: 1280px;
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Lora, Georgia, serif;
  font-weight: 500;
  color: var(--green-800);
  line-height: 1.14;
  margin: 0 0 .45em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }
a { color: var(--green-800); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { width: min(var(--wrap), 100% - 4rem); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 2.5rem); } }

.skip { position: absolute; left: -9999px; background: var(--green-900); color: #fff; padding: .8rem 1.2rem; z-index: 100; }
.skip:focus { left: 0; top: 0; }

/* eyebrow label above headings */
.eyebrow {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin: 0 0 1.1rem;
}
.eyebrow.on-dark { color: var(--gold-soft); }

.serif-em { font-style: italic; color: var(--gold); }

/* --- Masthead ---------------------------------------------------- */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.15rem 0; }

.wordmark { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.wordmark .mark {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--green-800); display: grid; place-items: center; flex: none;
}
.wordmark .mark svg { width: 22px; height: 22px; }
.wordmark .type { font-family: Manrope, sans-serif; line-height: 1.15; }
.wordmark .type b { display: block; font-size: .95rem; font-weight: 700; letter-spacing: .12em; color: var(--green-800); }
.wordmark .type span { display: block; font-size: .95rem; font-weight: 700; letter-spacing: .12em; color: var(--gold); }

.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav a { color: var(--ink); text-decoration: none; font-size: .97rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green-800); }
.nav select {
  border: 0; background: none; font: inherit; font-size: .97rem; color: var(--ink);
  padding-right: .3rem; cursor: pointer;
}

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); padding: .5rem .8rem; font: inherit; cursor: pointer; }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .masthead .wrap { position: relative; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border: 1px solid var(--line); padding: .6rem 1.2rem 1.2rem; z-index: 40;
  }
  .nav.open { display: flex; }
  .nav a { padding: .75rem 0; border-bottom: 1px solid var(--line); }
}

/* --- Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
  background: var(--green-900); color: var(--white);
  border: 0; border-radius: var(--r-sm); cursor: pointer;
  padding: .82rem 1.5rem; font: inherit; font-size: .96rem; font-weight: 600;
  text-decoration: none; transition: background .15s ease;
}
.btn:hover { background: #16301f; color: var(--white); }
.btn-outline { background: transparent; color: var(--green-800); border: 1px solid var(--line); }
.btn-outline:hover { background: var(--white); color: var(--green-800); border-color: var(--green-800); }
.btn-on-dark { background: var(--green-700); color: #fff; }
.btn-ghost-dark { background: transparent; color: #fff; border: 1px solid rgba(201,169,97,.45); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.07); color: #fff; }

/* --- Hero -------------------------------------------------------- */
.hero { background: var(--cream); padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.hero h1 { margin-bottom: .35em; }
.hero .lede { font-size: 1.12rem; color: #4a4a42; max-width: 34ch; margin-bottom: 2rem; }

.searchbar {
  display: flex; align-items: center; gap: .5rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: .45rem .45rem .45rem 1.1rem; max-width: 34rem;
  box-shadow: 0 10px 26px -20px rgba(28,58,44,.5);
}
.searchbar svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.searchbar input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 1rem; background: none; padding: .55rem 0; color: var(--ink); }
.searchbar input::placeholder { color: #9a9a90; }
.searchbar .btn { padding: .72rem 1.35rem; }

.locate {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: 1.15rem; color: var(--green-800); font-weight: 600;
  font-size: .96rem; text-decoration: none;
}
.locate svg { width: 17px; height: 17px; }

.popular { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: 2.4rem; }
.popular > span { color: var(--muted); font-size: .9rem; margin-right: .3rem; }
.pill {
  display: inline-flex; gap: .4rem; align-items: baseline;
  border: 1px solid var(--line); background: transparent;
  border-radius: 999px; padding: .45rem 1rem; font-size: .92rem;
  color: var(--ink); text-decoration: none;
}
.pill:hover { border-color: var(--gold); }
.pill b { color: var(--green-800); font-weight: 700; }

/* hero artwork */
.hero-art { position: relative; }
.hero-art .shot { position: relative; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4/4.4; background: var(--green-800); }
.hero-art .shot img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .over {
  position: absolute; left: 1.6rem; top: 1.5rem; color: #fff;
  font-size: .74rem; letter-spacing: .16em; font-weight: 600; line-height: 1.8;
}
.hero-art .over em { display: block; font-style: normal; color: var(--gold-soft); }
.hero-art .base {
  position: absolute; left: 1.6rem; bottom: 1.4rem; color: rgba(255,255,255,.85); font-size: .8rem;
}
.quote {
  position: absolute; right: -1.5rem; bottom: 2rem; max-width: 20rem;
  background: var(--white); border-radius: var(--r-sm); padding: 1.4rem 1.6rem;
  font-family: Lora, Georgia, serif; font-size: 1.02rem; line-height: 1.5; color: var(--green-800);
  box-shadow: 0 18px 40px -26px rgba(28,58,44,.6);
}
.quote::before { content: "“"; color: var(--gold); font-size: 1.7rem; line-height: 0; vertical-align: -.3rem; margin-right: .3rem; }
@media (max-width: 980px) { .quote { position: static; margin-top: 1rem; max-width: none; } }

/* --- Sections ---------------------------------------------------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-cream { background: var(--cream-alt); }
.section-dark { background: var(--green-900); color: #d8d3c6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 40ch; margin-bottom: 2.6rem; }
.section-head p { color: var(--muted); margin: 0; }
.section-dark .section-head p { color: #b6b1a4; }

/* --- Country cards ------------------------------------------------ */
.country-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }
@media (max-width: 1040px) { .country-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .country-grid { grid-template-columns: 1fr; } }
.country {
  display: flex; align-items: center; gap: 1rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 1.4rem 1.5rem; text-decoration: none; background: transparent;
}
.country:hover { border-color: var(--gold); }
.country .code { font-size: .82rem; color: var(--muted); letter-spacing: .06em; flex: none; }
.country .body { flex: 1; }
.country .body strong { display: block; font-family: Lora, serif; font-size: 1.22rem; font-weight: 500; color: var(--green-800); }
.country .body span { font-size: .88rem; color: var(--muted); }
.country .arrow { color: var(--gold); font-size: 1.2rem; }

/* --- Numbered steps ------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; border-top: 1px solid rgba(201,169,97,.4); padding-top: 2.2rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 2rem; } }
.steps .n { font-family: Manrope, monospace; font-size: .82rem; color: var(--gold-soft); letter-spacing: .1em; margin-bottom: 1.6rem; }
.steps h3 { font-size: 1.9rem; margin-bottom: .4em; }
.steps p { color: #b6b1a4; max-width: 26ch; margin: 0; }

/* --- Contribute band ----------------------------------------------- */
.contribute { display: grid; grid-template-columns: 1.4fr .6fr; gap: 4rem; align-items: start; }
@media (max-width: 860px) { .contribute { grid-template-columns: 1fr; gap: 2rem; } }
.contribute p { color: var(--muted); max-width: 44ch; }
.contribute .acts { display: grid; gap: .9rem; }

/* --- Assurance row -------------------------------------------------- */
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; padding: 3rem 0; background: var(--paper); }
@media (max-width: 860px) { .assure { grid-template-columns: 1fr; gap: 1.8rem; } }
.assure .item { display: flex; gap: 1rem; align-items: flex-start; }
.assure svg { width: 24px; height: 24px; color: var(--green-700); flex: none; margin-top: .15rem; }
.assure strong { display: block; font-weight: 600; color: var(--green-800); margin-bottom: .2rem; }
.assure span { font-size: .92rem; color: var(--muted); }

/* --- Temple cards ---------------------------------------------------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
}
.card-media { position: relative; aspect-ratio: 16/9; background: var(--cream-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .info {
  position: absolute; right: .7rem; top: .7rem; width: 26px; height: 26px;
  border-radius: 50%; background: rgba(0,0,0,.45); color: #fff;
  display: grid; place-items: center; font-size: .78rem; font-style: italic;
  font-family: Lora, serif;
}
.card-body { padding: 1.4rem 1.5rem 0; }
.card-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.card h3 { font-size: 1.5rem; margin: 0 0 .5rem; }
.card h3 a { color: var(--green-800); text-decoration: none; }
.card h3 a:hover { color: var(--gold); }
.card-head .go { color: var(--gold); font-size: 1.15rem; text-decoration: none; flex: none; }
.card .region { color: var(--muted); font-size: .93rem; margin: 0 0 .15rem; }
.card .street { color: var(--muted); font-size: .93rem; margin: 0 0 .7rem; }
.card .today {
  display: flex; align-items: center; gap: .45rem;
  color: var(--gold); font-size: .93rem; font-weight: 600; margin: 0 0 1.2rem;
}
.card .today svg { width: 15px; height: 15px; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--line); margin: 0 1.5rem; padding: 1rem 0 1.1rem;
}
.status { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.status.ok { color: var(--green-700); }
.card-foot .acts { display: flex; align-items: center; gap: 1.3rem; }
.card-foot a { color: var(--green-800); font-size: .92rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.card-foot a:hover { color: var(--gold); }
.card-foot svg { width: 15px; height: 15px; }

.grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* --- Discovery layout -------------------------------------------------- */
.discover { display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 1000px) { .discover { grid-template-columns: 1fr; } }

.refine { background: var(--cream-alt); border-radius: var(--r); padding: 1.8rem; position: sticky; top: 1.5rem; }
@media (max-width: 1000px) { .refine { position: static; } }
.refine h2 { font-size: 1.7rem; margin-bottom: 1.6rem; }
.refine label { display: block; font-size: .9rem; color: var(--ink); margin-bottom: .45rem; font-weight: 500; }
.refine .field { margin-bottom: 1.3rem; }

input[type=text], input[type=search], input[type=email], input[type=password], select {
  width: 100%; padding: .78rem .95rem; font: inherit; font-size: .96rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); color: var(--ink);
}
input::placeholder { color: #a3a399; }
input:focus, select:focus { border-color: var(--gold); outline-offset: 0; }

.results-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.results-head h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 .2rem; }
.results-head .sub { color: var(--muted); font-size: .93rem; }
.viewtabs { display: flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.viewtabs a { padding: .55rem 1.05rem; font-size: .92rem; font-weight: 600; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.viewtabs a.on { background: var(--green-900); color: #fff; }
.viewtabs svg { width: 15px; height: 15px; }

.result-list { display: grid; gap: 1.5rem; }
.result-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; align-items: start; }
@media (max-width: 1180px) { .result-cols { grid-template-columns: 1fr; } }
#map { height: 620px; border-radius: var(--r); border: 1px solid var(--line); position: sticky; top: 1.5rem; z-index: 0; }
@media (max-width: 1180px) { #map { position: static; height: 420px; } }

/* --- Pagination ---------------------------------------------------------- */
.pager { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin-top: 2.5rem; }
.pager a, .pager span.p {
  min-width: 42px; height: 42px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 600; padding: 0 .6rem;
}
.pager a:hover { border-color: var(--gold); }
.pager .cur { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.pager .gap { color: var(--muted); padding: 0 .2rem; }
.pager .count { margin-left: .8rem; color: var(--muted); font-size: .92rem; }

.empty { background: var(--white); border: 1px dashed var(--line); border-radius: var(--r); padding: 3.5rem 1.5rem; text-align: center; }
.empty p { color: var(--muted); }

/* --- Temple detail -------------------------------------------------------- */
.crumbs { font-size: .92rem; color: var(--muted); padding: 2rem 0 0; display: flex; gap: .55rem; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green-800); }
.crumbs .sep { color: #bdbdb2; }

.backlink { display: inline-flex; align-items: center; gap: .55rem; margin: 1.6rem 0 2rem; color: var(--green-800); font-weight: 600; font-size: .96rem; text-decoration: none; }

.hero-photo { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.hero-photo img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.photo-note { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.4rem; font-size: .93rem; color: var(--muted); }
.photo-note a { color: var(--green-800); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }

.detail-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin: 2.6rem 0 0; }
.detail-title h1 { margin: 0; }
.vstat { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; font-weight: 600; color: var(--gold); }
.vstat.ok { color: var(--green-700); }
.vstat svg { width: 17px; height: 17px; }

.detail-acts { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.8rem 0 0; padding-top: 1.8rem; border-top: 1px solid var(--line); }

.evidence {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem;
  background: var(--cream-alt); border-left: 3px solid var(--green-700);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 1.7rem 1.9rem; margin-top: 2.2rem;
}
@media (max-width: 800px) { .evidence { grid-template-columns: 1fr; gap: 1.2rem; } }
.evidence strong { display: flex; align-items: center; gap: .6rem; color: var(--green-800); font-size: 1.02rem; margin-bottom: .5rem; }
.evidence svg { width: 17px; height: 17px; color: var(--green-700); }
.evidence p { color: #55554c; font-size: .95rem; margin: 0; }
.evidence dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .55rem 1.6rem; font-size: .93rem; align-items: baseline; }
.evidence dt { color: var(--muted); }
.evidence dd { margin: 0; color: var(--ink); }

.detail-body { display: grid; grid-template-columns: 1.55fr .85fr; gap: 3.5rem; align-items: start; margin-top: 3.5rem; }
@media (max-width: 960px) { .detail-body { grid-template-columns: 1fr; gap: 2rem; } }
.detail-body h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.detail-body .prose p { color: #4d4d45; max-width: 60ch; }

.sidecard { background: var(--cream-alt); border-radius: var(--r-sm); padding: 1.4rem 1.6rem; margin-bottom: 1.2rem; }
.sidecard .top { display: flex; align-items: center; gap: .65rem; color: var(--green-800); font-weight: 600; margin-bottom: .35rem; }
.sidecard svg { width: 19px; height: 19px; color: var(--green-700); }
.sidecard .val { color: var(--muted); font-size: .95rem; }
.sidecard a { color: var(--green-800); }

.callout { background: var(--cream-alt); border-left: 3px solid var(--gold); padding: 1.4rem 1.7rem; margin: 0 0 1.8rem; }
.callout p { margin: 0; color: #4d4d45; }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: .95rem .2rem; border-bottom: 1px solid var(--line); font-weight: 400; font-size: .98rem; }
.hours th { color: var(--muted); width: 40%; }
.hours td { color: var(--ink); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--green-800); font-weight: 700; }
.hours td.dim { color: #9d9d93; }

.rowlist { width: 100%; border-collapse: collapse; }
.rowlist th, .rowlist td { text-align: left; padding: 1rem .2rem; border-bottom: 1px solid var(--line); font-weight: 400; font-size: .98rem; }
.rowlist th { color: var(--muted); width: 30%; }

.inline-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--green-800); font-weight: 600; text-decoration: none; margin-top: 1.4rem; }

.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.ticks li { padding: .45rem 0 .45rem 1.5rem; position: relative; color: #4d4d45; }
.ticks li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

/* dark help band */
.helpband { background: var(--green-900); border-radius: var(--r); padding: 2.6rem 2.8rem; margin-top: 4rem; display: grid; grid-template-columns: 1.4fr auto; gap: 2.5rem; align-items: center; }
@media (max-width: 800px) { .helpband { grid-template-columns: 1fr; padding: 2rem; } }
.helpband h2 { color: #fff; margin-bottom: .4em; }
.helpband p { color: #b6b1a4; margin: 0; max-width: 46ch; font-size: .96rem; }
.helpband .acts { display: flex; gap: .8rem; flex-wrap: wrap; }

/* --- Footer ------------------------------------------------------------- */
.foot { background: var(--green-900); color: #b6b1a4; padding: 4rem 0 2rem; }
.foot-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; }
@media (max-width: 860px) { .foot-cols { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) { .foot-cols { grid-template-columns: 1fr; } }
.foot .wordmark .mark { border-color: var(--gold-soft); }
.foot .wordmark .mark svg { color: var(--gold-soft); }
.foot .wordmark .type b { color: #fff; }
.foot .wordmark .type span { color: var(--gold-soft); }
.foot .tag { color: #fff; margin: 1.1rem 0 1.2rem; font-size: .97rem; }
.foot .fine { font-size: .89rem; color: #928e83; max-width: 30ch; }
.foot h4 { font-family: Manrope, sans-serif; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; margin: 0 0 1.1rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .7rem; }
.foot li a { color: #dcd8cf; text-decoration: none; font-size: .95rem; }
.foot li a:hover { color: var(--gold-soft); }
.foot-base { border-top: 1px solid rgba(201,169,97,.22); margin-top: 3rem; padding-top: 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; color: #928e83; }

/* nav overrides — the generic .nav a rule must not win over .btn */
.nav a { white-space: nowrap; }
.nav a.btn, .nav a.btn:hover { color: var(--white); }
.nav a.btn { padding: .78rem 1.35rem; }
.masthead .wordmark .mark svg { color: var(--green-800); }

/* keep the hero art from collapsing when the photo fails to load */
.hero-art .shot img { min-height: 100%; }

/* global icon sizing — every inline svg defaults to a text-sized glyph */
svg { width: 18px; height: 18px; flex: none; }
.wordmark .mark svg { width: 22px; height: 22px; }
.assure svg { width: 24px; height: 24px; }
.sidecard svg { width: 19px; height: 19px; }
.card .today svg, .card-foot svg, .viewtabs svg, .evidence svg { width: 15px; height: 15px; }
.backlink svg, .locate svg, .inline-link svg { width: 17px; height: 17px; }
.eyebrow svg { width: 14px; height: 14px; }
.hero-photo img { display: block; background: var(--cream-alt); }

/* --- Card: whole surface is the link ------------------------------- */
.card { position: relative; transition: border-color .15s ease, transform .15s ease; }
.card:hover { border-color: var(--gold); }
.card:has(.card-hit:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.card-hit { position: absolute; inset: 0; z-index: 1; }
.card-hit:focus { outline: none; }
.card .info, .card-foot .lift { position: relative; z-index: 2; }
.card h3 { color: var(--green-800); }
.card:hover h3 { color: var(--gold); }
.card-foot { justify-content: space-between; }
.status { display: inline-flex; align-items: center; gap: .4rem; }
.status.ok svg { width: 14px; height: 14px; }

/* (i) tooltip explaining a representative image */
.card-media .info { cursor: help; }
.card-media .info .tip {
  position: absolute; right: 0; top: 130%; width: 15rem;
  background: var(--green-900); color: #eae6dc; font-family: Manrope, sans-serif;
  font-size: .78rem; font-style: normal; line-height: 1.5;
  padding: .6rem .8rem; border-radius: var(--r-sm);
  opacity: 0; visibility: hidden; transition: opacity .15s ease; z-index: 5;
}
.card-media .info:hover .tip, .card-media .info:focus .tip { opacity: 1; visibility: visible; }

/* --- Map section (full width, under the list) ----------------------- */
.mapsection { margin-top: 3.5rem; }
.mapsection .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.mapsection .head p { color: var(--muted); font-size: .93rem; margin: 0; }
#map { height: 560px; border-radius: var(--r); border: 1px solid var(--line); position: static; }
.legend { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: .9rem; font-size: .88rem; color: var(--muted); }
.legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; margin-right: .4rem; vertical-align: -1px; border: 1px solid var(--green-900); }
.legend .v { background: var(--green-700); }
.legend .u { background: var(--gold-soft); }

/* near-me banner */
.nearbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: var(--cream-alt); border-radius: var(--r-sm); padding: .95rem 1.3rem; margin-bottom: 1.6rem;
  font-size: .95rem;
}
.nearbar strong { color: var(--green-800); }
.nearbar a, .nearbar button {
  color: var(--green-800); font: inherit; font-weight: 600; background: none; border: 0;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem;
}
