/* Kabrastan – deep green, warm ivory, restrained brass. High contrast for
   outdoor use on phones. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.da03732a27e1.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.51205681a1ba.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.2ede57db1a3a.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.bf1e09fb81d7.woff2") format("woff2"); }
:root {
  --green: #0b3d2e;
  --green-2: #12573f;
  --green-soft: #dfeae2;
  --ivory: #fbf7ec;
  --ivory-2: #f3ecda;
  --brass: #a8822f;
  --brass-soft: #efe2bf;
  --ink: #14201b;
  --muted: #4c5a53;
  --line: #d6cdb5;
  --danger: #8f1d1d;
  --warn-bg: #fff3d6;
  --ok-bg: #e3f1e6;
  --radius: 10px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", Ubuntu, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 17px/1.55 var(--font); }
a { color: var(--green-2); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brass); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; color: var(--green); }
h1 { font-size: 1.75rem; margin: .2em 0 .5em; }
h2 { font-size: 1.3rem; margin: 1.4em 0 .5em; }
h3 { font-size: 1.08rem; margin: 1.1em 0 .4em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }

/* Header */
.site-header { background: var(--green); color: var(--ivory); border-bottom: 3px solid var(--brass); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; }
.brand img { width: 44px; height: 44px; background: var(--ivory); border-radius: 50%; padding: 3px; object-fit: contain; }
.brand strong { display: block; font-size: .98rem; letter-spacing: .02em; text-transform: uppercase; }
.brand span { display: block; font-size: .78rem; opacity: .85; }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a, .nav button { color: var(--ivory); text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: .95rem;
  background: none; border: 0; font: inherit; cursor: pointer; }
.nav a:hover, .nav a.active, .nav button:hover { background: var(--green-2); }
.site-footer { margin-top: 48px; background: var(--green); color: var(--ivory); padding: 24px 0; font-size: .92rem; }
.site-footer a { color: var(--brass-soft); }

/* Hero */
.hero { background: var(--green); color: var(--ivory); padding: 32px 0 40px; text-align: center; }
.hero h1 { color: var(--ivory); font-size: 1.9rem; text-transform: uppercase; letter-spacing: .03em; margin: .3em 0; }
.hero p { max-width: 640px; margin: 0 auto 18px; opacity: .92; }
.hero .logo { width: 150px; height: auto; background: var(--ivory); border-radius: 14px; padding: 8px; }
.search-card { background: var(--ivory); color: var(--ink); border-radius: var(--radius); padding: 18px; max-width: 640px;
  margin: 0 auto; text-align: left; border: 2px solid var(--brass); }
.search-card h2 { margin-top: 0; }

/* Forms */
label { display: block; font-weight: 600; margin: 12px 0 4px; }
input[type=text], input[type=search], input[type=email], input[type=number], input[type=date], input[type=time],
input[type=password], input[type=file], select, textarea {
  width: 100%; font: inherit; padding: 11px 12px; border: 2px solid #9aa59f; border-radius: 8px; background: #fff;
  color: var(--ink); min-height: 48px; }
textarea { min-height: 80px; }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; vertical-align: middle; margin-right: 6px; }
.check label, label.check { display: flex; align-items: center; font-weight: 500; }
.helptext, .help { display: block; color: var(--muted); font-size: .86rem; margin-top: 3px; font-weight: 400; }
.errorlist { color: var(--danger); margin: 4px 0; padding-left: 18px; font-weight: 600; }
.btn { display: inline-block; font: inherit; font-weight: 600; padding: 11px 18px; border-radius: 8px; border: 2px solid var(--green);
  background: var(--green); color: var(--ivory); text-decoration: none; cursor: pointer; min-height: 48px; line-height: 1.4; }
.btn:hover { background: var(--green-2); }
.btn.secondary { background: #fff; color: var(--green); }
.btn.brass { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.small { padding: 6px 12px; min-height: 36px; font-size: .92rem; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px 14px; margin: 14px 0; background: #fff; }
legend { font-weight: 700; color: var(--green); padding: 0 6px; }

/* Cards, tables, badges */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
.card.brass { border: 2px solid var(--brass); }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 8px; padding: 12px 14px; text-decoration: none; color: inherit; display: block; }
.stat b { display: block; font-size: 1.7rem; color: var(--green); }
.stat.alert { border-left-color: var(--brass); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; background: #fff; font-size: .95rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--ivory-2); color: var(--green); font-weight: 700; }
tr.total td { font-weight: 700; background: var(--ivory-2); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .8rem; font-weight: 700; background: var(--green-soft); color: var(--green); white-space: nowrap; }
.badge.warn { background: var(--warn-bg); color: #6b4c00; }
.badge.bad { background: #f8dede; color: var(--danger); }
.badge.ok { background: var(--ok-bg); color: #1b5e20; }
.badge.private { background: #2d2d2d; color: #fff; }
.messages { list-style: none; padding: 0; margin: 12px 0; }
.messages li { padding: 12px 14px; border-radius: 8px; margin-bottom: 8px; background: var(--ok-bg); border: 1px solid #b9d9bf; }
.messages li.warning, .messages li.error { background: var(--warn-bg); border-color: #e6c87a; }
.messages li.error { background: #f8dede; border-color: #e2a5a5; }
.notice { background: var(--warn-bg); border: 1px solid #e6c87a; border-radius: 8px; padding: 12px 14px; margin: 12px 0; }
.notice.private { background: #f1f1f1; border-color: #bbb; }
dl.facts { display: grid; grid-template-columns: minmax(140px, 34%) 1fr; gap: 6px 14px; margin: 8px 0; }
dl.facts dt { font-weight: 600; color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { dl.facts { grid-template-columns: 1fr; } dl.facts dd { margin-bottom: 6px; } }
.raw { font-family: ui-monospace, Consolas, monospace; background: var(--ivory-2); padding: 1px 5px; border-radius: 4px; white-space: pre-wrap; }

/* Assignment banner */
.assign { background: var(--green); color: var(--ivory); border: 3px solid var(--brass); border-radius: var(--radius); padding: 16px; text-align: center; margin: 16px 0; }
.assign .big { font-size: 2rem; font-weight: 800; letter-spacing: .02em; display: block; }
.location-text { font-size: 1.9rem; font-weight: 800; color: var(--green); margin: 6px 0; }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare .side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.compare .side h3 { margin-top: 0; }
.side.field { border-top: 5px solid var(--brass); }
.side.register { border-top: 5px solid var(--green); }
.name-big { font-size: 1.35rem; font-weight: 700; }

/* Results */
.results { list-style: none; padding: 0; }
.results li a { display: block; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 10px 0; text-decoration: none; color: var(--ink); }
.results li a:hover { border-color: var(--green); }
.results .rname { font-size: 1.2rem; font-weight: 700; color: var(--green); }

/* Map */
.map-wrap { position: relative; background: var(--ivory-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; touch-action: none; }
.map-tools { position: absolute; right: 8px; top: 8px; display: flex; gap: 6px; z-index: 2; }
.map-tools button { min-width: 44px; min-height: 44px; font-size: 1.2rem; font-weight: 700; border-radius: 8px; border: 2px solid var(--green); background: #fff; color: var(--green); cursor: pointer; }
svg.cemetery-map { display: block; width: 100%; height: auto; max-height: 72vh; }
.cemetery-map .boundary { fill: #eef1e4; stroke: #c48d1c; stroke-width: 2.5; }
.cemetery-map .zone { fill: #cfe3d3; stroke: #3d5e4c; stroke-width: 1.1; transition: opacity .2s; }
.cemetery-map a .zone:hover { fill: #a9d1b3; cursor: pointer; }
.cemetery-map.has-highlight .zone { opacity: .28; }
.cemetery-map.has-highlight .zone.is-highlight { opacity: 1; fill: #8fc49c; stroke: var(--brass); stroke-width: 3.5; }
.cemetery-map .walkway { fill: none; stroke: #b5442f; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.cemetery-map .zlabel { font: 700 15px var(--font); fill: var(--green); text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.cemetery-map.has-highlight .zlabel { opacity: .35; }
.cemetery-map.has-highlight .zlabel.is-highlight { opacity: 1; font-size: 19px; }
.cemetery-map .entrance circle { fill: var(--brass); stroke: #fff; stroke-width: 2; }
.cemetery-map .entrance text, .cemetery-map .landmark text { font: 700 11px var(--font); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.cemetery-map .landmark rect { fill: #6d5a3a; stroke: #fff; stroke-width: 1.5; }
.cemetery-map .pin circle.outer { fill: var(--danger); stroke: #fff; stroke-width: 2; }
.cemetery-map .pin circle.inner { fill: #fff; }
.cemetery-map .pin.proposed circle.outer { fill: #888; }
.map-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: .85rem; padding: 8px 10px; border-top: 1px solid var(--line); background: #fff; }
.map-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 5px; border: 1px solid #3d5e4c; }
.sw-used { background: #cfe3d3; }
.sw-walk { background: #b5442f; } .sw-ent { background: var(--brass); border-radius: 50% !important; }

/* Walking route from the visitor's QR point to the grave */
.cemetery-map .route-under { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.cemetery-map .route { fill: none; stroke: #1d5fd1; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 2 9; animation: route-walk 1.1s linear infinite; }
@keyframes route-walk { to { stroke-dashoffset: -11; } }
@media (prefers-reduced-motion: reduce) { .cemetery-map .route { animation: none; stroke-dasharray: none; } }
.cemetery-map .you-are-here circle { fill: #1d5fd1; stroke: #fff; stroke-width: 2.5; }
.cemetery-map .you-are-here .halo { fill: rgba(29, 95, 209, .18); stroke: none; }
.cemetery-map .route-end circle { fill: #fff; stroke: #1d5fd1; stroke-width: 3; }
.cemetery-map .me-dot circle { fill: #1d5fd1; stroke: #fff; stroke-width: 2.5; }
.cemetery-map .me-dot .acc { fill: rgba(29, 95, 209, .15); stroke: rgba(29, 95, 209, .4); stroke-width: 1; }
.sw-route { background: #1d5fd1; border-color: #1d5fd1 !important; height: 5px !important; vertical-align: 2px !important; }
.sw-here { background: #1d5fd1; border-radius: 50% !important; border: 2px solid #fff !important; box-shadow: 0 0 0 1px #1d5fd1; }
.here-note { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; background: #eef3fc; border-left: 3px solid #1d5fd1; }
.here-dot { width: 12px; height: 12px; border-radius: 50%; background: #1d5fd1; box-shadow: 0 0 0 4px rgba(29, 95, 209, .2); flex: none; }
.directions { display: grid; gap: 4px; padding: 14px 16px; margin: 14px 0; background: #fff; border: 1px solid var(--line); border-left: 4px solid #1d5fd1; }
.directions .dist { font-size: 1.15rem; font-weight: 600; }
.directions ol { margin: 6px 0 0; padding-left: 20px; }
.directions ol li { margin: 3px 0; }
.start-from { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; font-size: .92rem; }
.start-from a { padding: 4px 10px; border: 1px solid var(--line); text-decoration: none; background: #fff; }
.gps-box { display: grid; gap: 8px; }
.gps-reading { font-variant-numeric: tabular-nums; }
.gps-reading.good { color: var(--green); font-weight: 600; }
.gps-reading.poor { color: #9a5b00; }

/* Mobile field screen */
.zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.zone-grid a { display: block; text-align: center; padding: 12px 4px; border-radius: 8px; background: #fff; border: 2px solid var(--green); color: var(--green); font-weight: 800; text-decoration: none; font-size: 1.2rem; }
.zone-grid a small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); }
.plot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 5px; }
.plot-grid a { display: block; text-align: center; padding: 8px 0; border-radius: 6px; font-weight: 700; text-decoration: none; font-size: .95rem; border: 1px solid #999; color: var(--ink); }
.plot-grid a.linked { background: #8fc49c; }
.plot-grid a.unidentified { background: #f2c98a; }
.plot-grid a.available { background: #fff; border-style: dashed; }
.plot-grid a.unknown { background: #e6e6e6; }

@media print {
  .site-header, .site-footer, .no-print, .map-tools { display: none !important; }
  body { background: #fff; font-size: 11pt; }
}

@media (max-width: 640px) {
  .site-header .wrap { min-height: 56px; padding-top: 6px; }
  .brand strong { font-size: .82rem; }
  .nav { margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .nav a, .nav button { white-space: nowrap; font-size: .9rem; padding: 6px 9px; }
  .hero h1 { font-size: 1.45rem; }
  .assign .big { font-size: 1.6rem; }
}

/* Map editor (superusers) */
.wrap.wide { max-width: 1400px; }
.me-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .me-layout { grid-template-columns: 1fr; } }
.me-toolbar, .me-savebar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.me-inline { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.me-inline.grow { flex: 1 1 260px; }
.me-inline.grow input { flex: 1; }
.me-coords { margin-left: auto; font-variant-numeric: tabular-nums; }
.me-svg { width: 100%; height: auto; min-height: 320px; max-height: 78vh; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); touch-action: none; cursor: grab; user-select: none; }
.me-svg .me-frame { fill: none; stroke: var(--line); stroke-dasharray: 4 4; pointer-events: none; }
.me-svg .zone, .me-svg .boundary, .me-svg .me-hit, .me-svg .me-marker, .me-svg .me-label { cursor: pointer; }
.me-svg .me-label { pointer-events: all; cursor: move; }
.me-svg .me-hit { fill: none; stroke: transparent; stroke-width: 14; }
.me-svg .zone.me-selected { fill: #8fc49c; stroke: var(--brass); stroke-width: 2.5; cursor: move; }
.me-svg .boundary.me-selected { stroke-width: 4; stroke-dasharray: 6 3; cursor: move; }
.me-svg .walkway.me-selected { stroke: #e0662f; }
.me-svg .me-marker.me-selected circle, .me-svg .me-marker.me-selected rect { stroke: var(--green); stroke-width: 3; }
.me-svg .me-marker { cursor: move; }
.me-svg .me-vertex { fill: #fff; stroke: var(--green); stroke-width: 1.5; cursor: move; vector-effect: non-scaling-stroke; }
.me-svg .me-vertex.active { fill: var(--brass); }
.me-svg .me-mid { fill: var(--brass-soft); stroke: var(--brass); stroke-width: 1; cursor: copy; opacity: .85; vector-effect: non-scaling-stroke; }
.me-status { min-height: 1.4em; font-weight: 600; margin: 4px 0; }
.me-status.ok { color: var(--green); } .me-status.warn { color: #8a5a00; } .me-status.error { color: var(--danger); }
.me-side h3 { font-size: .95rem; margin: 12px 0 6px; }
.me-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.me-chip { font: inherit; font-size: .88rem; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; min-height: 34px; }
.me-chip.on { background: var(--green); color: #fff; border-color: var(--green); }
.me-code { width: 6em; text-transform: uppercase; }
.small { font-size: .88rem; }
.cemetery-map .entrance.primary circle { r: 8.5; }

/* Office zone allocation / number entry */
.sticky-bar { position: sticky; top: 0; z-index: 5; background: var(--ivory); padding: 8px 0; border-bottom: 1px solid var(--line); }
label.plain { display: inline; font-weight: 500; margin: 0; }
.num-input { width: 7em; }
.zone-grid .zone-cell { display: block; text-align: center; padding: 12px 4px; border-radius: 8px; background: #fff; border: 1px dashed var(--line); color: var(--muted); font-weight: 800; font-size: 1.2rem; }
.zone-grid .zone-cell small { display: block; font-weight: 500; font-size: .72rem; }
table input.num-input { width: 8em; max-width: 100%; }

/* ===================== CSMJC website ===================== */
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--brass); margin: 0 0 4px; }
.section-intro { max-width: 680px; color: var(--muted); margin-top: 0; }
.lead-dark { font-size: 1.08rem; }
.link-more { font-weight: 600; }
.btn.ghost { background: transparent; border-color: var(--ivory); color: var(--ivory); }
.btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn.brass:hover { background: #8f6d24; border-color: #8f6d24; }
.spread { justify-content: space-between; }
.spread h1, .spread h2 { margin: 0; }
.band { padding: 44px 0; }
.band.alt { background: var(--ivory-2); }
.band h2 { margin-top: 0; font-size: 1.6rem; }

.home-hero { background: var(--green); color: var(--ivory); padding: 40px 0 48px;
  background-image: radial-gradient(circle at 85% 10%, rgba(168,130,47,.25), transparent 45%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 36px; align-items: center; }
.hero-copy h1 { color: var(--ivory); font-size: 2.1rem; text-transform: uppercase; letter-spacing: .02em; margin: .4em 0 .3em; }
.hero-copy .lead { font-size: 1.1rem; opacity: .92; max-width: 520px; }
.hero-logo { width: 96px; height: auto; background: var(--ivory); border-radius: 14px; padding: 6px; }
.appeal-card { background: var(--ivory); color: var(--ink); border-radius: 14px; overflow: hidden; border: 2px solid var(--brass);
  box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.appeal-card .cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.appeal-body { padding: 18px 20px 20px; }
.appeal-body h2 { margin: 0 0 6px; font-size: 1.5rem; }
.appeal-body h2 a { color: var(--green); text-decoration: none; }

.photo-placeholder { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; width: 100%;
  background: var(--green-soft); background-image: repeating-linear-gradient(45deg, rgba(11,61,46,.05) 0 10px, transparent 10px 20px); }
.photo-placeholder img { width: 72px; opacity: .55; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: -26px; position: relative; }
.pillar { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; text-decoration: none; color: var(--ink); box-shadow: 0 6px 18px rgba(11,61,46,.08); }
.pillar:hover { border-color: var(--brass); }
.pillar svg { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  background: var(--green-soft); border-radius: 50%; padding: 6px; box-sizing: content-box; }
.pillar strong { display: block; color: var(--green); }
.pillar span { font-size: .9rem; color: var(--muted); }
.pillar span strong { font-size: 1rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.two-col .search-card { max-width: none; margin: 0; }
.link-list { padding-left: 1.1em; }
.link-list li { margin: 6px 0; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card-grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.give-card, .story-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.give-card .cover, .story-card .cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.give-body, .story-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.give-body h3, .story-body h3 { margin: 0; }
.give-body h3 a, .story-body h3 a { color: var(--green); text-decoration: none; }
.give-body p, .story-body p { margin: 4px 0; }
.give-body .btn { margin-top: auto; align-self: flex-start; }

.progress-block { margin: 8px 0 12px; }
.progress { height: 10px; background: var(--ivory-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.progress .bar { display: block; height: 100%; background: var(--brass); border-radius: 999px; }
.progress-text { margin: 6px 0 0; font-size: .95rem; }

.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 10px 0 20px; }
.stat-tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; position: relative; overflow: hidden; }
.stat-tile .sw-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.stat-tile .label { display: block; font-size: .85rem; color: var(--muted); }
.stat-tile .value { display: block; font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.stat-tile .sub { display: block; font-size: .85rem; color: var(--muted); }
.stat-tile.total { background: var(--green); border-color: var(--green); }
.stat-tile.total .label, .stat-tile.total .sub { color: var(--brass-soft); }
.stat-tile.total .value { color: var(--ivory); }

.chart { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.chart figcaption { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin-bottom: 8px; }
.legend { list-style: none; display: flex; gap: 14px; padding: 0; margin: 0 0 0 auto; font-size: .9rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; margin-right: 4px; }
[data-c="0"].sw, [data-c="0"].sw-bar { background: #1a7a55; }
[data-c="1"].sw, [data-c="1"].sw-bar { background: #b8862b; }
[data-c="2"].sw, [data-c="2"].sw-bar { background: #3e6ea8; }
[data-c="3"].sw, [data-c="3"].sw-bar { background: #a2506a; }
.chart-box { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: #ebe6d8; stroke-width: 1; }
.chart .baseline { stroke: #c9c1aa; stroke-width: 1; }
.chart .tick { font: 11px var(--font); fill: var(--muted); text-anchor: end; dominant-baseline: middle; }
.chart .xlab { font: 11px var(--font); fill: var(--muted); text-anchor: middle; }
.chart .xyear { font: 10px var(--font); fill: #8a958f; text-anchor: middle; }
.chart .endlabel { font: 700 12px var(--font); fill: var(--ink); text-anchor: middle; }
.chart .hit { fill: transparent; }
.chart .col { outline: none; cursor: default; }
.chart .col:hover .hit, .chart .col:focus .hit { fill: rgba(11,61,46,.05); }
.chart-tip { position: absolute; z-index: 3; pointer-events: none; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-size: .85rem; box-shadow: 0 8px 20px rgba(0,0,0,.12); min-width: 150px; }
.chart-table { margin-top: 10px; font-size: .9rem; }

.campaign-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; margin-bottom: 18px; }
.campaign-photo .cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; display: block; }
.give-box { margin: 28px 0; }
.pay-row { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pay-row:first-of-type { border-top: 0; }
.pay-label { font-weight: 700; color: var(--green); }
.big-num { font-size: 1.25rem; letter-spacing: .04em; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 10px 0 20px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.article-photo { width: 100%; border-radius: 12px; margin: 8px 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-size: .9rem; }
.chip.on { background: var(--green); color: #fff; border-color: var(--green); }
.footer-links a { white-space: nowrap; }

/* Office website editor */
.plain-list { list-style: none; padding: 0; margin: 8px 0; }
.plain-list li { padding: 6px 0; border-bottom: 1px solid var(--ivory-2); }
.admin-thumb { max-width: 260px; border-radius: 8px; border: 1px solid var(--line); }
.photo-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.photo-admin img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.photo-admin .card { margin: 0; padding: 10px; }
.danger-zone { margin-top: 32px; padding: 14px; border: 1px solid #e2a5a5; border-radius: var(--radius); background: #fdf3f3; }
.badge.brass { background: var(--brass-soft); color: #6b5217; }

@media (max-width: 860px) {
  .hero-grid, .two-col, .campaign-head { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; margin-top: 16px; }
  .hero-copy h1 { font-size: 1.5rem; }
  .legend { margin-left: 0; width: 100%; }
}
.progress .bar.w0 { width: 0%; }
.progress .bar.w1 { width: 1%; }
.progress .bar.w2 { width: 2%; }
.progress .bar.w3 { width: 3%; }
.progress .bar.w4 { width: 4%; }
.progress .bar.w5 { width: 5%; }
.progress .bar.w6 { width: 6%; }
.progress .bar.w7 { width: 7%; }
.progress .bar.w8 { width: 8%; }
.progress .bar.w9 { width: 9%; }
.progress .bar.w10 { width: 10%; }
.progress .bar.w11 { width: 11%; }
.progress .bar.w12 { width: 12%; }
.progress .bar.w13 { width: 13%; }
.progress .bar.w14 { width: 14%; }
.progress .bar.w15 { width: 15%; }
.progress .bar.w16 { width: 16%; }
.progress .bar.w17 { width: 17%; }
.progress .bar.w18 { width: 18%; }
.progress .bar.w19 { width: 19%; }
.progress .bar.w20 { width: 20%; }
.progress .bar.w21 { width: 21%; }
.progress .bar.w22 { width: 22%; }
.progress .bar.w23 { width: 23%; }
.progress .bar.w24 { width: 24%; }
.progress .bar.w25 { width: 25%; }
.progress .bar.w26 { width: 26%; }
.progress .bar.w27 { width: 27%; }
.progress .bar.w28 { width: 28%; }
.progress .bar.w29 { width: 29%; }
.progress .bar.w30 { width: 30%; }
.progress .bar.w31 { width: 31%; }
.progress .bar.w32 { width: 32%; }
.progress .bar.w33 { width: 33%; }
.progress .bar.w34 { width: 34%; }
.progress .bar.w35 { width: 35%; }
.progress .bar.w36 { width: 36%; }
.progress .bar.w37 { width: 37%; }
.progress .bar.w38 { width: 38%; }
.progress .bar.w39 { width: 39%; }
.progress .bar.w40 { width: 40%; }
.progress .bar.w41 { width: 41%; }
.progress .bar.w42 { width: 42%; }
.progress .bar.w43 { width: 43%; }
.progress .bar.w44 { width: 44%; }
.progress .bar.w45 { width: 45%; }
.progress .bar.w46 { width: 46%; }
.progress .bar.w47 { width: 47%; }
.progress .bar.w48 { width: 48%; }
.progress .bar.w49 { width: 49%; }
.progress .bar.w50 { width: 50%; }
.progress .bar.w51 { width: 51%; }
.progress .bar.w52 { width: 52%; }
.progress .bar.w53 { width: 53%; }
.progress .bar.w54 { width: 54%; }
.progress .bar.w55 { width: 55%; }
.progress .bar.w56 { width: 56%; }
.progress .bar.w57 { width: 57%; }
.progress .bar.w58 { width: 58%; }
.progress .bar.w59 { width: 59%; }
.progress .bar.w60 { width: 60%; }
.progress .bar.w61 { width: 61%; }
.progress .bar.w62 { width: 62%; }
.progress .bar.w63 { width: 63%; }
.progress .bar.w64 { width: 64%; }
.progress .bar.w65 { width: 65%; }
.progress .bar.w66 { width: 66%; }
.progress .bar.w67 { width: 67%; }
.progress .bar.w68 { width: 68%; }
.progress .bar.w69 { width: 69%; }
.progress .bar.w70 { width: 70%; }
.progress .bar.w71 { width: 71%; }
.progress .bar.w72 { width: 72%; }
.progress .bar.w73 { width: 73%; }
.progress .bar.w74 { width: 74%; }
.progress .bar.w75 { width: 75%; }
.progress .bar.w76 { width: 76%; }
.progress .bar.w77 { width: 77%; }
.progress .bar.w78 { width: 78%; }
.progress .bar.w79 { width: 79%; }
.progress .bar.w80 { width: 80%; }
.progress .bar.w81 { width: 81%; }
.progress .bar.w82 { width: 82%; }
.progress .bar.w83 { width: 83%; }
.progress .bar.w84 { width: 84%; }
.progress .bar.w85 { width: 85%; }
.progress .bar.w86 { width: 86%; }
.progress .bar.w87 { width: 87%; }
.progress .bar.w88 { width: 88%; }
.progress .bar.w89 { width: 89%; }
.progress .bar.w90 { width: 90%; }
.progress .bar.w91 { width: 91%; }
.progress .bar.w92 { width: 92%; }
.progress .bar.w93 { width: 93%; }
.progress .bar.w94 { width: 94%; }
.progress .bar.w95 { width: 95%; }
.progress .bar.w96 { width: 96%; }
.progress .bar.w97 { width: 97%; }
.progress .bar.w98 { width: 98%; }
.progress .bar.w99 { width: 99%; }
.progress .bar.w100 { width: 100%; }

fieldset.checks { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 12px 0; }
fieldset.checks legend { font-weight: 600; padding: 0 4px; }
fieldset.checks label.check { margin: 8px 0; align-items: flex-start; }
.photo-placeholder.cover { display: flex; }
@media (max-width: 600px) { .chart-box { overflow-x: auto; -webkit-overflow-scrolling: touch; } .chart svg { min-width: 560px; } }
fieldset.checks input[type=checkbox], .check input[type=checkbox] { flex: none; }

.card.ok-card { border: 2px solid var(--green); }
.inline-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.inline-form input { width: auto; }
.qr-ref { font-size: 1.15rem; }

/* Office: header stays in view, breadcrumb trail and back link under it */
.office-header { position: sticky; top: 0; z-index: 30; }
.nav a.active { background: var(--green-2); box-shadow: inset 0 -2px 0 var(--brass); }
.crumbs { background: #fff; border-bottom: 1px solid var(--line); font-size: .92rem; position: sticky; top: 67px; z-index: 29; }
.crumbs .wrap { display: flex; align-items: center; gap: 14px; min-height: 42px; overflow-x: auto; white-space: nowrap; }
.crumbs ol { display: flex; list-style: none; margin: 0; padding: 0; gap: 0; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: #8a8f87; }
.crumbs a { color: var(--green); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.crumb-back { flex: none; padding: 4px 10px 4px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--green); text-decoration: none; font-weight: 600; }
.crumb-back:hover { background: #f3f6f1; }
@media (max-width: 760px) {
  .office-header { position: static; }
  .crumbs { top: 0; }
}
.cemetery-map .me-dot[hidden] { display: none; }
.gps-box { justify-items: start; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
td details.danger-zone { margin: 0; padding: 0; border: 0; background: none; }
td details.danger-zone summary { cursor: pointer; color: var(--danger); font-weight: 600; }
td details.danger-zone[open] { padding: 10px; border: 1px solid #e2a5a5; background: #fdf3f3; border-radius: var(--radius); min-width: 260px; }
td details.danger-zone input { margin: 6px 0; }
.tab-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.tab-tiles .tile { display: grid; gap: 2px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--muted); }
.tab-tiles .tile.active { border-top-color: var(--brass); color: var(--ink); box-shadow: 0 2px 10px rgba(11, 61, 46, .08); }
.tab-tiles .tile-n { font-size: 1.8rem; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.zone-group h2 { display: flex; align-items: center; gap: 10px; margin-top: 26px; }
.zone-group h2 .count { font-size: .8rem; font-weight: 600; background: #e8efe9; color: var(--green); padding: 2px 9px; border-radius: 99px; }

/* ---- Office dashboard ---------------------------------------------------- */
.dash { padding-bottom: 40px; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; margin: 22px 0 18px; }
.dash-head h1 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 2.3rem; letter-spacing: .005em; margin: 2px 0 4px; color: var(--green); }
.dash-head p { margin: 0; }
.eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin: 0; }
.dash-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dash-filter select { width: auto; padding: 6px 8px; min-height: 36px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.seg a { padding: 6px 12px; border-radius: 6px; text-decoration: none; color: var(--muted); font-size: .88rem; font-weight: 500; white-space: nowrap; }
.seg a.on { background: var(--green); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid #e6dfcc; border-top: 3px solid var(--green); border-radius: 12px; padding: 14px 16px 12px; box-shadow: 0 1px 2px rgba(20, 32, 27, .04), 0 6px 18px rgba(20, 32, 27, .04); display: grid; gap: 2px; }
.kpi.k2 { border-top-color: #3e6ea8; } .kpi.k3 { border-top-color: var(--brass); } .kpi.k4 { border-top-color: #1a7a55; }
.kpi.k5 { border-top-color: #b8862b; } .kpi.k6 { border-top-color: #a2506a; }
.k-label { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kpi b { font-size: 2rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.15; }
.k-sub { font-size: .82rem; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.dash-grid .span-2 { grid-column: span 2; }
.panel { background: #fff; border: 1px solid #e6dfcc; border-radius: 12px; padding: 18px 20px; margin: 0 0 18px; box-shadow: 0 1px 2px rgba(20, 32, 27, .04), 0 6px 18px rgba(20, 32, 27, .04); }
.dash-grid .panel { margin: 0; }
.panel h2 { font-size: 1.02rem; font-weight: 600; margin: 0; color: var(--ink); }
.chart-panel figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 10px; }
.chart-panel figcaption .legend { margin-left: auto; }
.chart-panel svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-panel .grid { stroke: #efeadc; stroke-width: 1; }
.chart-panel .baseline { stroke: #c9c1aa; stroke-width: 1; }
.chart-panel .tick { font: 11px var(--font); fill: #6b766f; text-anchor: end; dominant-baseline: middle; }
.chart-panel .xlab { font: 11px var(--font); fill: #6b766f; text-anchor: middle; }
.chart-panel .area { fill: rgba(26, 122, 85, .10); }
.chart-panel .line { fill: none; stroke: #1a7a55; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-panel .dot { fill: #1a7a55; stroke: #fff; stroke-width: 2; }
.chart-panel .val { font: 600 11px var(--font); fill: var(--ink); text-anchor: middle; }
.chart-panel .cross { stroke: #c9c1aa; stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.chart-panel .col:hover .cross, .chart-panel .col:focus .cross { opacity: 1; }
.chart-panel .col:hover .dot, .chart-panel .col:focus .dot { r: 6; }
.chart-panel .hit { fill: transparent; }
.chart-panel .col { outline: none; }
.chart-panel .col:hover .hit, .chart-panel .col:focus .hit { fill: rgba(11, 61, 46, .04); }
.chart-panel .blab { font: 500 12px var(--font); fill: var(--ink); text-anchor: end; dominant-baseline: middle; }
.chart-panel .bval { font: 600 12px var(--font); fill: var(--ink); dominant-baseline: middle; }
.chart-panel .muted-t { font-weight: 400; fill: #6b766f; }
.donut-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.donut { width: 200px !important; flex: none; }
.donut .d-n { font: 600 30px var(--font); fill: var(--ink); text-anchor: middle; dominant-baseline: middle; }
.donut .d-l { font: 12px var(--font); fill: #6b766f; text-anchor: middle; }
.d-legend { list-style: none; padding: 0; margin: 0; flex: 1; min-width: 200px; display: grid; gap: 8px; }
.d-legend li { display: grid; grid-template-columns: 14px 1fr auto 52px; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid #f0ebde; font-size: .92rem; }
.d-legend b { font-variant-numeric: tabular-nums; } .d-legend em { font-style: normal; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.d-legend .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.d-legend .swatch svg { width: 12px; height: 12px; display: block; }
.pipeline { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; }
.pipeline .p-top { display: grid; grid-template-columns: 1fr auto 48px; gap: 10px; font-size: .92rem; margin-bottom: 6px; }
.pipeline em { font-style: normal; color: var(--muted); text-align: right; }
.pipeline .progress { height: 8px; }
.workflow { margin-top: 14px; }
.workflow summary { cursor: pointer; color: var(--green); font-weight: 600; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } .dash-grid .span-2 { grid-column: auto; } }
@media (max-width: 600px) { .dash-head h1 { font-size: 1.8rem; } .kpis { grid-template-columns: 1fr 1fr; } .kpi b { font-size: 1.6rem; } .donut { width: 160px !important; } }
@media (max-width: 600px) { .chart-panel .chart-box { overflow-x: auto; -webkit-overflow-scrolling: touch; } .chart-panel .chart-box svg { min-width: 560px; } }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; margin-bottom: 16px; }
form.btn-row { flex-wrap: nowrap; align-items: stretch; }
form.btn-row input[type=search] { flex: 1 1 auto; width: auto; min-width: 0; margin: 0; }
form.btn-row select { width: auto; margin: 0; }
@media (max-width: 600px) { form.btn-row { flex-wrap: wrap; } }
.chart-panel { min-width: 0; }
@media (max-width: 600px) { .dash-filter { width: 100%; } .seg { width: 100%; justify-content: space-between; } .panel { padding: 14px; } }
.chart-panel .dot.quiet { opacity: 0; }
.chart-panel .col:hover .dot.quiet, .chart-panel .col:focus .dot.quiet { opacity: 1; }
.progress.big { height: 14px; margin: 0 0 18px; }
.progress-row, .mayat-row { display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; margin-bottom: 10px; }
.progress-row img, .progress-row .ph { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--ivory-2); flex: none; }
.mayat-row { justify-content: space-between; flex-wrap: wrap; }

/* v1.10 drill-down from the dashboard */
.drill-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; background: #f3f7f4; border: 1px solid #d5e4da; border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }
.chip { background: #fff; border: 1px solid #d5e4da; border-radius: 999px; padding: 3px 10px; font-size: .9rem; }
.chip em { font-style: normal; color: var(--muted); margin-right: 2px; }
.drill-n { margin-left: auto; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 16px 0; }
a.col { cursor: pointer; }
.chart-panel a.col:hover .hit, .chart-panel a.col:focus-visible .hit { fill: rgba(42, 120, 214, .07); }
.donut a.col path { transition: opacity .15s; }
.donut:hover a.col path { opacity: .55; }
.donut a.col:hover path, .donut a.col:focus path { opacity: 1; }
.d-legend a { color: inherit; text-decoration: none; display: contents; }
.d-legend li:hover span { text-decoration: underline; }
a.kpi { text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; }
a.kpi:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,32,27,.06), 0 10px 24px rgba(20,32,27,.08); }
.kpi.k7 { border-top-color: #eb6834; }
.pipeline a { color: inherit; text-decoration: none; display: block; }
.pipeline a:hover .p-top span { text-decoration: underline; }
.chart-panel .bval .muted-t { fill: #6b766f; }
.tip-go { color: #2a78d6; font-size: .8rem; margin-top: 2px; }
.tip-tag { font-size: .72rem; background: #eef4fb; color: #1c5cab; border-radius: 999px; padding: 1px 7px; }
.chart-panel .blab.main { font-weight: 600; fill: var(--ink); }
.donut-wrap.chart-box { position: relative; }
.zone-grid-rich { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.zone-grid-rich a { text-align: left; padding: 10px 12px; border-width: 1px; border-color: #d5e4da; }
.zone-grid-rich a b { font-size: 1.3rem; display: block; margin-bottom: 2px; }
.zone-grid-rich a small strong { color: var(--ink); }
.zone-grid-rich a small em { color: #b45a1c; font-style: normal; }
.zone-grid-rich a:hover { border-color: var(--green); background: #f6faf7; }
.field[hidden] { display: none !important; }
.radios { display: flex; flex-wrap: wrap; gap: 6px 18px; }
/* Mayat preview in the office (mirrors the website card) */
.paste-box summary { cursor: pointer; }
.paste-box textarea { font-size: .95rem; }
.or-line { text-align: center; margin: 10px 0; }
.notice { border: 1px solid #d5e4da; background: #f3f7f4; border-radius: 10px; padding: 10px 14px; margin: 12px 0; }
.notice.warn { border-color: #ecd9a8; background: #fdf8ea; }
.notice ul { margin: 6px 0 0 18px; padding: 0; }
.preview-frame { border: 1px dashed #c9c1aa; border-radius: 12px; overflow: hidden; margin: 12px 0 18px; }
.preview-frame .w-mayat-band { background: #f6f1e6; padding: 22px; }
.preview-frame .mb-dua { font-family: "Amiri", serif; font-size: 1.5rem; color: #0d3b2e; text-align: center; margin: 0; }
.preview-frame .mb-dua-en { text-align: center; color: #6d7570; font-size: .85rem; margin: 0 0 14px; }
.preview-frame .w-mayat-card { background: #fff; border: 1px solid #e2d9c5; border-left: 3px solid #0d3b2e; padding: 18px 22px; }
.preview-frame .w-mayat-card p { margin: 0; }
.preview-frame .m-title { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #b48a3c; }
.preview-frame .m-name { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.7rem; font-weight: 600; color: #1e2622; line-height: 1.15; }
.preview-frame .m-comm { color: #0d3b2e; font-weight: 600; font-size: .92rem; }
.preview-frame .m-rel { color: #6d7570; font-size: .92rem; }
.preview-frame .m-times { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0 0; }
.preview-frame .m-times div { border-top: 1px solid #e2d9c5; padding-top: 8px; }
.preview-frame .m-times dt { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #b48a3c; }
.preview-frame .m-times dd { margin: 2px 0 0; font-size: 1.05rem; font-weight: 600; color: #1e2622; }
.preview-frame .m-times dd span { display: block; font-size: .82rem; font-weight: 400; color: #6d7570; }
.preview-frame .m-dua, .preview-frame .m-notes { margin-top: 12px; font-size: .85rem; color: #6d7570; }
.privacy-note { background: #f3f7f4; border-left: 4px solid #1a7a55; border-radius: 8px; padding: 10px 14px; margin: 10px 0 14px; font-size: .95rem; }
.onsite-card h2 { margin-top: 0; }
.clan-panel h3 { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-top: 0; }
.clan-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.clan-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.clan-row input[type=text] { max-width: 220px; }
.clan-break { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.clan-break a { text-decoration: none; }
.clan-break .chip.on { background: #e6f1ea; border-color: #1a7a55; }
.clan-break a.chip { color: var(--ink); } .clan-break a.chip.on { color: #0b3d2e; font-weight: 600; }
fieldset.rights { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 14px 0; }
fieldset.rights legend { font-weight: 600; padding: 0 4px; }
.rights-area h3 { font-size: .95rem; margin: 12px 0 4px; color: var(--green); }
.rights-area label.check { margin: 6px 0; align-items: flex-start; }
.btn-row.nowrap { flex-wrap: nowrap; } .edit-entry { border: 2px solid #b8862b; }
/* Burial books */
.steps-line { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 8px 0 16px; color: var(--muted); font-size: .92rem; }
.steps-line b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: .75rem; margin-right: 4px; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.book-photo { position: sticky; top: 12px; margin: 0; }
.book-photo img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.ocr-text { white-space: pre-wrap; font-size: .75rem; max-height: 260px; overflow: auto; background: #faf8f2; padding: 8px; }
.approve-box { border: 2px solid var(--green); }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } .book-photo { position: static; } }
/* v1.10 map: zones shaded by how full they are, smooth walkways that sit between the zones */
.cemetery-map .boundary { fill: #f4efe2; stroke: #c48d1c; stroke-width: 2.5; stroke-linejoin: round; }
.cemetery-map .zone { stroke: #ffffff; stroke-width: 1.6; stroke-linejoin: round; transition: opacity .2s, filter .15s; }
.cemetery-map .zone.f0, .fs.f0 { fill: #eef5ef; background: #eef5ef; }
.cemetery-map .zone.f1, .fs.f1 { fill: #d3e9d8; background: #d3e9d8; }
.cemetery-map .zone.f2, .fs.f2 { fill: #b3d9bd; background: #b3d9bd; }
.cemetery-map .zone.f3, .fs.f3 { fill: #8cc59c; background: #8cc59c; }
.cemetery-map .zone.f4, .fs.f4 { fill: #63ad79; background: #63ad79; }
.cemetery-map .zone.f5, .fs.f5 { fill: #3d915a; background: #3d915a; }
.cemetery-map .zone.f6, .fs.f6 { fill: #1f6f3f; background: #1f6f3f; }
.cemetery-map .zone:hover, .cemetery-map a .zone:hover { filter: brightness(.93); cursor: pointer; }
.cemetery-map a .zone.f0:hover { fill: #dcebdf; }
.cemetery-map.has-highlight .zone.is-highlight { stroke: var(--brass); stroke-width: 3.5; }
.cemetery-map.has-highlight .zone.is-highlight.f0 { fill: #cfe6d5; }
.cemetery-map .zlabel.f4, .cemetery-map .zlabel.f5, .cemetery-map .zlabel.f6 { fill: #fff; }
.cemetery-map .walkway-edge { fill: none; stroke: #cdb98f; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.cemetery-map .walkway { fill: none; stroke: #f6eedb; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; opacity: 1; }
.sw-walk { background: #f6eedb; border: 2px solid #cdb98f !important; }
.fill-scale { display: inline-flex; align-items: center; gap: 2px; }
.fill-scale em { font-style: normal; margin: 0 4px; }
.fill-scale .fs { display: inline-block; width: 16px; height: 12px; border-radius: 2px; border: 1px solid rgba(0,0,0,.08); }
.map-wrap { position: relative; }
.map-tip { position: absolute; z-index: 5; pointer-events: none; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 10px; font-size: .85rem; box-shadow: 0 6px 18px rgba(20,32,27,.12); max-width: 240px; }
.map-tip strong { display: block; color: var(--green); }
.map-tip span { display: block; color: var(--muted); }

/* Register list: filter boxes always on the page */
.reg-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; }
.reg-filters > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.reg-filters label { font-size: .78rem; font-weight: 600; color: var(--muted); margin: 0; }
.reg-filters input, .reg-filters select { margin: 0; }
.reg-filters .rf-search { flex: 1 1 240px; }
.reg-filters .rf-years span { display: flex; gap: 6px; }
.reg-filters select:disabled { opacity: .6; }
.chip-x { margin-left: 4px; text-decoration: none; color: var(--muted); font-weight: 700; padding: 0 2px; }
.chip-x:hover, .chip-x:focus { color: #b3261e; }
@media (max-width: 640px) { .reg-filters > div { flex: 1 1 45%; } .reg-filters .rf-search, .reg-filters .rf-go { flex-basis: 100%; } }

/* Settings: every administration page in one place */
.settings-find { display: grid; gap: 4px; max-width: 420px; margin: 8px 0 6px; font-weight: 600; }
.settings-group { margin-top: 26px; }
.settings-group h2 { margin-bottom: 2px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 10px; }
.settings-card { display: grid; gap: 4px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); text-decoration: none; color: var(--muted); min-height: 44px; }
.settings-card strong { color: var(--ink, #1d2a24); }
.settings-card span { font-size: .92rem; line-height: 1.4; }
.settings-card:hover, .settings-card:focus-visible { border-color: var(--green); background: #f6faf7; }
.settings-card[hidden], .settings-group[hidden] { display: none; }

/* Islamic (Hijri) date shown under/next to the ordinary date */
.hijri { color: var(--muted); font-size: .86em; white-space: nowrap; }

/* Find a Grave: clan drop-down appears under the Jamat when it has sub-communities */
.q-clan-box { margin-top: 10px; }
.q-clan-box[hidden] { display: none; }
.q-clan-box select { width: 100%; }
.edit-pen { color: var(--muted); font-size: .85em; margin-left: 2px; }
