/* South Manchester Metal Detecting Club: the treasure map.
   The whole site is one map on an explorer's desk. Places on the map open
   journal pages. No navigation bar: the map's key does that job. */

@font-face { font-family: "Ultra"; font-display: swap; src: url("/assets/fonts/ultra.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English"; font-display: swap; src: url("/assets/fonts/im-fell.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English"; font-style: italic; font-display: swap; src: url("/assets/fonts/im-fell-italic.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English SC"; font-display: swap; src: url("/assets/fonts/im-fell-sc.woff2") format("woff2"); }
@font-face { font-family: "Special Elite"; font-display: swap; src: url("/assets/fonts/special-elite.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/caveat.woff2") format("woff2"); }
@font-face { font-family: "Crimson Pro"; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/crimson-pro.woff2") format("woff2"); }
@font-face { font-family: "Crimson Pro"; font-style: italic; font-display: swap; src: url("/assets/fonts/crimson-pro-italic.woff2") format("woff2"); }

:root {
  --ink: #2b1a0c;
  --ink-2: #4a3220;
  --ink-3: #7a5c3e;
  --paper: #f1e3c0;
  --paper-2: #e6d09f;
  --land: #efe0bb;
  --sea: #dcc38f;
  --red: #a3221a;
  --red-2: #7d1810;
  --gold: #d79a35;
  --wood: #23140a;
  --phosphor: #a9d2c2;
  --display: "Ultra", "Rockwell Extra Bold", Georgia, serif;
  --engraved: "IM Fell English", Georgia, "Times New Roman", serif;
  --engraved-sc: "IM Fell English SC", Georgia, serif;
  --type: "Special Elite", "Courier New", Courier, monospace;
  --hand: "Caveat", "Segoe Print", cursive;
  --body: "Crimson Pro", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; overflow: hidden; color: var(--ink); font-family: var(--body); font-size: 19px; line-height: 1.55;
  background-color: var(--wood);
  background-image:
    repeating-linear-gradient(93deg, rgba(255, 220, 170, .025) 0 2px, transparent 2px 9px, rgba(0, 0, 0, .06) 9px 11px, transparent 11px 23px),
    repeating-linear-gradient(91deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 47px),
    radial-gradient(120% 90% at 50% 40%, #3a2312 0%, #23140a 60%, #140a04 100%);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--ink); }
/* scroll bars in leather and parchment, never the system's white */
:root { scrollbar-color: #8a6a44 rgba(43, 26, 12, .1); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(43, 26, 12, .1); }
::-webkit-scrollbar-thumb { background: #8a6a44; border: 2px solid transparent; border-radius: 6px; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--red-2); }
::-webkit-scrollbar-corner { background: transparent; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 900; background: var(--paper); color: var(--ink); padding: 10px 16px; font-family: var(--type); text-decoration: none; border: 2px solid var(--ink); }
.skip:focus { top: 12px; }

/* The adventure poster lettering */
.indy {
  font-family: var(--display); font-weight: 400; line-height: .95; letter-spacing: .01em;
  background: linear-gradient(180deg, #ffe08a 0%, #f2a53a 36%, #d9542a 62%, #8e1f10 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: .045em #2b1205;
  filter: drop-shadow(.05em .06em 0 #2b1205);
  transform: perspective(600px) rotateY(-12deg) skewX(-9deg);
  transform-origin: left center;
  display: inline-block;
}

/* ================================================================ the map */
.atlas { position: fixed; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.atlas.is-dragging { cursor: grabbing; }
.world { position: absolute; left: 0; top: 0; width: 3400px; height: 2500px; transform-origin: 0 0; --inv: 2.5; }
.world.is-moving { will-change: transform; }
/* No live filters on the map: the sheet's shadow and grain are baked into the map pictures */
.map-art { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.map-raster { position: absolute; pointer-events: none; }
.map-raster .lvl { position: absolute; top: 0; left: 0; width: 100%; height: 100%; will-change: transform; }
.map-raster .lvl-1 { opacity: 0; transition: opacity .35s; }
.map-raster .lvl-1.is-on { opacity: 1; }
.map-raster .tiles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; will-change: transform; visibility: hidden; }
.map-raster .tiles.is-on { visibility: visible; }
.map-raster .tile { position: absolute; display: block; max-width: none; }
.map-art svg { width: 100%; height: 100%; }
.map-art .region-l { font-family: var(--engraved-sc); font-size: 58px; letter-spacing: .42em; fill: #3a2414; opacity: .55; }
.map-art .region-s { font-family: var(--engraved); font-style: italic; font-size: 30px; fill: #3a2414; opacity: .55; }
.map-art .sea-l { font-family: var(--engraved-sc); letter-spacing: .35em; fill: #3a2414; opacity: .6; }
.map-art .sea-s { font-family: var(--engraved); font-style: italic; font-size: 26px; fill: #3a2414; opacity: .6; }
.map-art .town-l { font-family: var(--engraved); font-size: 28px; fill: #24160b; }
.map-art .town-s { font-family: var(--engraved); font-style: italic; font-size: 21px; fill: #5a3a1e; }
.map-art .wall-l { font-family: var(--engraved); font-style: italic; font-size: 22px; fill: #3a2414; }
.map-art .grat-l { font-family: var(--type); font-size: 18px; fill: #3a2414; }
.map-art .cmp-l { font-family: var(--engraved-sc); font-size: 40px; fill: #3a2414; }
.map-fallback { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; font-family: var(--type); color: var(--paper); }

.routes { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tour { display: none; }
.leader { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 3 7; stroke-linecap: round; opacity: .7; }
.flight { fill: none; stroke: var(--red); stroke-width: 7; stroke-dasharray: 18 12; stroke-linecap: round; }
.eagle { transition: opacity .4s; }

/* Places: scroll banners in world pixels, never smaller than a readable size */
.place {
  position: absolute; z-index: 3; text-decoration: none; color: var(--ink);
  /* banners hold a steady size on screen, between 15px and 24px whatever the zoom */
  font-size: 46px;
  transform: translate(var(--tx, -50%), var(--ty, -100%)) scale(var(--kb, 1)); transform-origin: var(--to, 50% 100%);
  transition: transform .35s var(--ease);
}
.place-inner { display: flex; flex-direction: column; align-items: center; padding: 0 .85em; transform: rotate(var(--rot, 0deg)); transition: transform .35s var(--ease); }
.place:hover .place-inner, .place:focus-within .place-inner { transform: rotate(0deg) scale(1.07); }
.place .scroll:focus { outline: none; }
.place .scroll:focus-visible { outline: .1em solid var(--red); outline-offset: .12em; }
a.scroll { color: var(--ink); text-decoration: none; }
/* a scroll lifts when its entry in the menu is pointed at */
.place.is-hot { z-index: 8; }
.place.is-hot .place-inner { transform: rotate(0deg) scale(1.12); }
.place.is-hot .scroll { box-shadow: 0 0 0 .08em var(--red), 0 .16em 0 rgba(43, 26, 12, .35), 0 .5em .9em -.35em rgba(0, 0, 0, .55); }
.scroll {
  position: relative; display: inline-flex; align-items: center; gap: .35em; padding: .3em .75em .34em;
  background: linear-gradient(180deg, #f8edd4, #e7d09e); border: .085em solid var(--ink); border-radius: .1em;
  font-family: var(--display); font-size: 1em; line-height: 1; white-space: nowrap; letter-spacing: .01em;
  box-shadow: 0 .16em 0 rgba(43, 26, 12, .35), 0 .5em .9em -.35em rgba(0, 0, 0, .55);
}
.scroll::before, .scroll::after {
  content: ""; position: absolute; top: .34em; height: 100%; width: 1.05em; z-index: -1;
  background: linear-gradient(180deg, #cdb27a, #a98a52); border: .085em solid var(--ink);
}
.scroll::before { left: -.78em; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, .36em 50%); }
.scroll::after { right: -.78em; clip-path: polygon(0 0, 100% 0, calc(100% - .36em) 50%, 100% 100%, 0 100%); }
.scroll svg { width: .92em; height: .92em; flex: none; color: var(--red); }
.place-sub {
  margin-top: .5em; padding: .14em .5em; font-family: var(--type); font-size: .5em; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(241, 227, 192, .92); border: 1px solid rgba(43, 26, 12, .4); white-space: nowrap;
}
.place-x { position: absolute; z-index: 2; width: 26px; height: 26px; transform: translate(-50%, -50%) scale(var(--km, 1)); transition: transform .35s var(--ease); pointer-events: none; }
.place-x::before, .place-x::after { content: ""; position: absolute; left: 50%; top: 0; width: 22%; height: 100%; margin-left: -11%; background: var(--red); border-radius: 2px; box-shadow: 0 0 0 1px rgba(43, 26, 12, .6); }
.place-x::before { transform: rotate(45deg); }
.place-x::after { transform: rotate(-45deg); }
.atlas.is-intro .place, .atlas.is-intro .place-x, .atlas.is-intro .leader { opacity: 0; }
/* The film's last frame shows the bare map, so the pins wait and fade in after the handover */
.hoard, .dig-pin, .here { transition: transform .35s var(--ease), opacity .9s ease .6s; }
.atlas.is-far .hoard { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.atlas.is-intro .hoard, .atlas.is-intro .dig-pin, .atlas.is-intro .here { opacity: 0; transition: none; }
.leader { transition: opacity .6s .5s; }
.place.pop { animation: stampIn .55s var(--ease) both; }
@keyframes stampIn { from { opacity: 0; transform: translate(var(--tx, -50%), var(--ty, -100%)) scale(calc(var(--kb, 1) * 1.6)); } to { opacity: 1; } }

/* Legendary finds */
.hoard {
  position: absolute; z-index: 2; width: 34px; height: 34px; padding: 0;
  transform: translate(-50%, -50%) scale(var(--km, 1)); border-radius: 50%; border: 3px solid var(--ink);
  background: radial-gradient(circle at 35% 30%, #ffe7a3, #d79a35 55%, #8a5a18); box-shadow: 0 3px 6px rgba(0, 0, 0, .35);
  display: grid; place-items: center; transition: transform .25s var(--ease);
}
.hoard::before, .hoard::after { content: ""; position: absolute; width: 56%; height: 12%; background: var(--ink); border-radius: 2px; }
.hoard::before { transform: rotate(45deg); }
.hoard::after { transform: rotate(-45deg); }
.hoard:hover, .hoard:focus-visible, .hoard[aria-expanded="true"] { transform: translate(-50%, -50%) scale(calc(var(--km, 1) * 1.25)); }
.dig-pin { position: absolute; z-index: 2; padding: 0; border: 0; background: none; width: 30px; height: 30px; transform: translate(-50%, -50%) scale(var(--km, 1)); }
.dig-pin::before, .dig-pin::after { content: ""; position: absolute; left: 50%; top: 0; width: 22%; height: 100%; margin-left: -11%; background: var(--red-2); border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 240, 210, .6); }
.dig-pin::before { transform: rotate(45deg); }
.dig-pin::after { transform: rotate(-45deg); }
.dig-pin.past { opacity: .5; }
.dig-pin:hover, .dig-pin:focus-visible { transform: translate(-50%, -50%) scale(calc(var(--km, 1) * 1.3)); }
.here { position: absolute; z-index: 4; width: 22px; height: 22px; transform: translate(-50%, -50%) scale(var(--km, 1)); border-radius: 50%; background: var(--red); border: 3px solid #f6e7c4; pointer-events: none; transition: left .01s, top .01s; }
.here::after { content: ""; position: absolute; top: -3px; right: -3px; bottom: -3px; left: -3px; border-radius: 50%; border: 3px solid var(--red); animation: herePing 1.8s var(--ease) infinite; }
@keyframes herePing { from { transform: scale(1); opacity: .9; } to { transform: scale(3); opacity: 0; } }

.tip {
  position: fixed; z-index: 60; max-width: 290px; padding: 14px 16px 12px; pointer-events: none;
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 6px 8px 0 rgba(43, 26, 12, .3);
  font-size: 16px; line-height: 1.4; opacity: 0; transform: translateY(6px) rotate(-1deg); transition: opacity .2s, transform .25s var(--ease);
}
.tip.is-on { opacity: 1; transform: rotate(-1deg); }
.tip b { display: block; font-family: var(--engraved-sc); font-size: 21px; font-weight: 400; line-height: 1.1; }
.tip .tip-meta { display: block; font-family: var(--type); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--red-2); margin: 4px 0 6px; }
.tip .tip-tag { display: inline-block; margin-top: 8px; font-family: var(--hand); font-weight: 700; font-size: 19px; color: var(--red); }


/* ================================================================ furniture on the map */
.title-card { position: fixed; z-index: 20; left: 22px; top: 18px; display: flex; gap: 14px; align-items: center; pointer-events: none; }
.title-card img { width: 74px; height: 77px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); pointer-events: auto; }
/* a parchment label, so the lettering reads the same over the map and over the dark wood */
.title-card .tc-text {
  padding: 8px 20px 10px 14px; background: linear-gradient(175deg, #f7ecd2, #e8d4a5); border: 1px solid rgba(43, 26, 12, .55); border-radius: 3px;
  box-shadow: 4px 6px 0 rgba(0, 0, 0, .28), inset 0 0 0 3px rgba(247, 236, 210, .9), inset 0 0 0 4px rgba(43, 26, 12, .25); transform: rotate(-.6deg);
}
.tc-pre { margin: 0; font-family: var(--type); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.tc-main { margin: 0; font-size: 62px; }
.tc-post { margin: 2px 0 0 4px; font-family: var(--engraved); font-style: italic; font-size: 20px; color: var(--ink); }

.tag {
  position: fixed; z-index: 20; right: 26px; top: 22px; width: 230px; padding: 14px 16px 14px 34px; text-decoration: none;
  background: linear-gradient(170deg, #f6e9cc, #e3cb96); border: 2px solid var(--ink); border-radius: 4px 14px 14px 4px;
  box-shadow: 5px 7px 0 rgba(0, 0, 0, .25); transform: rotate(3deg); transform-origin: top left; transition: transform .4s var(--ease), opacity .9s ease, visibility .9s;
}
.tag:hover { transform: rotate(0deg); }
.tag::before { content: ""; position: absolute; left: 11px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--wood); border: 2px solid var(--ink); }
.tag::after { content: ""; position: absolute; left: -46px; top: calc(50% - 1px); width: 62px; height: 2px; background: #b39361; transform: rotate(-24deg); transform-origin: right center; }
.tag-k { display: block; font-family: var(--type); font-size: 11px; letter-spacing: .18em; color: var(--red); }
.tag-t { display: block; font-family: var(--engraved-sc); font-size: 22px; line-height: 1.05; margin: 4px 0 6px; }
.tag-d { display: block; font-family: var(--type); font-size: 13px; color: var(--ink-2); }
.tag-c { display: block; font-family: var(--hand); font-weight: 700; font-size: 20px; color: var(--red-2); margin-top: 2px; }

.legend {
  position: fixed; z-index: 20; left: 18px; bottom: 18px; width: 278px; max-height: calc(100vh - 210px); overflow: auto;
  background: linear-gradient(180deg, #f6ead0, #e9d6a8); border: 3px double var(--ink); outline: 1px solid var(--ink); outline-offset: 3px;
  padding: 14px 16px 12px; box-shadow: 6px 9px 0 rgba(0, 0, 0, .28);
}
/* printed on the sheet: no card, no shadow, the paper shows through */
.legend.in-map {
  position: absolute; left: 0; top: 0; bottom: auto; z-index: 1; max-height: none; overflow: visible; transform-origin: 0 0;
  background: radial-gradient(120% 90% at 50% 40%, rgba(250, 241, 219, .72), rgba(240, 225, 190, .5));
  border: 3px double rgba(43, 26, 12, .8); outline: 1px solid rgba(43, 26, 12, .55); outline-offset: 5px; box-shadow: none; cursor: auto;
}
.legend.in-map::before, .legend.in-map::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid rgba(43, 26, 12, .7); pointer-events: none; }
.legend.in-map::before { left: -11px; top: -11px; border-radius: 50%; background: radial-gradient(circle, rgba(163, 34, 26, .85) 0 3px, transparent 4px); }
.legend.in-map::after { right: -11px; bottom: -11px; border-radius: 50%; background: radial-gradient(circle, rgba(163, 34, 26, .85) 0 3px, transparent 4px); }
.legend.in-map .ix-pages a { box-shadow: none; background: rgba(251, 243, 223, .85); }
.legend.in-map { width: 330px; }
.legend .ix-intro { margin: -2px 0 8px; font-family: var(--engraved); font-style: italic; font-size: 15px; text-align: center; color: var(--ink-3); }
.legend.in-map .symbols { display: none; }
.legend.in-map .index > li { padding: 5px 0 8px; }
.legend.in-map .ix-place b { font-size: 20px; }
.legend.in-map .ix-place svg { width: 21px; height: 21px; }
.legend.in-map .ix-pages { margin: 4px 0 0 13px; padding-left: 14px; gap: 5px; }
.legend.in-map .ix-pages a { padding: 3px 8px 2px; font-size: 12.5px; letter-spacing: .04em; border-width: 1.5px; }
.legend .ix-join { border-bottom: 0 !important; padding-top: 10px !important; }
.legend .ix-join .ix-place { display: flex; justify-content: center; gap: 10px; padding: 9px 12px; background: var(--red); color: #fbf3df; border-radius: 3px; box-shadow: 0 3px 0 var(--red-2); }
.legend .ix-join .ix-place:hover, .legend .ix-join .ix-place:focus-visible { background: var(--red-2); }
.legend .ix-join .ix-place svg { color: #fbf3df; }
.legend .ix-join .ix-place b { font-size: 19px; }
.legend .ix-join .ix-place small { display: none; }
.legend.in-map .symbols li { white-space: nowrap; }
.legend.in-map .legend-foot { display: none; }
.legend.in-map h2 { font-size: 22px !important; }
.legend.in-map .symbols { grid-template-columns: 1fr 1fr; gap: 2px 8px; margin-top: 4px; font-size: 13.5px; }
.legend.in-map .symbols li { gap: 7px; white-space: normal; line-height: 1.2; }
.journal-open .legend.in-map { opacity: 1; visibility: visible; }
/* tighter when printed, so it fits beside Ireland at a readable size */
.legend.in-map { padding: 10px 13px 9px; }
.legend.in-map h2 { margin-bottom: 4px; padding-bottom: 4px; font-size: 20px; }
.legend.in-map .index > li { padding: 2px 0 4px; }
.legend.in-map .ix-place { padding: 2px 4px; }
.legend.in-map .ix-place small { display: none; }
.legend.in-map .ix-pages { gap: 4px; margin-top: 1px; margin-bottom: 1px; }
.legend.in-map .ix-pages a { padding: 2px 6px 1px; font-size: 11px; }
.legend.in-map .symbols { margin-top: 6px; }
.legend.in-map .legend-foot { margin-top: 6px; padding-top: 5px; font-size: 11px; line-height: 1.5; }
.legend.in-map .legend-foot br { display: none; }
.legend.in-map .legend-foot a[href^="tel"]::after, .legend.in-map .legend-foot a[href^="mailto"]::after { content: "\00a0\00b7 "; color: var(--ink-3); }
.legend h2 { margin: 0 0 8px; font-family: var(--engraved-sc); font-weight: 400; font-size: 22px; letter-spacing: .12em; text-align: center; border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.legend ol { list-style: none; margin: 0; padding: 0; counter-reset: lg; }
.legend li { counter-increment: lg; }
.legend ol a { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: center; padding: 5px 4px; text-decoration: none; border-bottom: 1px dotted rgba(43, 26, 12, .35); }
.legend ol a:hover, .legend ol a:focus-visible { background: rgba(163, 34, 26, .08); }
.legend ol a svg { width: 20px; height: 20px; color: var(--red); }
.legend ol b { display: block; font-family: var(--engraved-sc); font-weight: 400; font-size: 18px; line-height: 1.05; }
.legend ol small { display: block; font-family: var(--type); font-size: 11px; letter-spacing: .06em; color: var(--ink-3); }
.legend .symbols { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-family: var(--engraved); font-style: italic; font-size: 15px; }
.legend .symbols li { display: flex; gap: 10px; align-items: center; }
.sym { width: 18px; height: 18px; flex: none; position: relative; }
.sym-hoard { border-radius: 50%; border: 2px solid var(--ink); background: radial-gradient(circle at 35% 30%, #ffe7a3, #d79a35 55%, #8a5a18); }
.sym-x::before, .sym-x::after { content: ""; position: absolute; left: 7px; top: 1px; width: 4px; height: 16px; background: var(--red); border-radius: 1px; }
.sym-x::before { transform: rotate(45deg); }
.sym-x::after { transform: rotate(-45deg); }
.sym-road { height: 2px; background: repeating-linear-gradient(90deg, #8a2a14 0 2px, transparent 2px 7px); }
.sym-tour { height: 3px; background: repeating-linear-gradient(90deg, var(--red) 0 3px, transparent 3px 9px); }
.legend-foot { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--ink); font-family: var(--type); font-size: 12px; line-height: 1.6; text-align: center; }
.legend-foot a { text-decoration: none; }
.legend-toggle { display: none; }
/* small desktop windows: the key folds behind its button, as on phones */
html.key-drawer .legend { left: 10px; bottom: 12px; width: auto; max-width: calc(100vw - 20px); padding: 0; border-width: 3px; overflow: visible; max-height: none; }
html.key-drawer .legend-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; background: none; border: 0; font-family: var(--engraved-sc); font-size: 19px; letter-spacing: .1em; }
html.key-drawer .legend-toggle svg { width: 18px; height: 18px; color: var(--red); }
html.key-drawer .legend-inner { display: none; position: absolute; left: -3px; bottom: calc(100% + 10px); width: min(300px, calc(100vw - 20px)); max-height: 66vh; overflow: auto; padding: 14px 16px 12px; background: linear-gradient(180deg, #f6ead0, #e9d6a8); border: 3px double var(--ink); box-shadow: 6px 9px 0 rgba(0, 0, 0, .28); }
html.key-drawer .legend.is-open .legend-inner { display: block; }

.seal {
  position: fixed; z-index: 20; right: 24px; bottom: 22px; width: 122px; height: 122px; display: grid; place-items: center; text-align: center; text-decoration: none;
  color: #f7d9c2; border-radius: 47% 53% 50% 50% / 52% 48% 55% 45%;
  background: radial-gradient(circle at 38% 32%, #d0453a, #a3221a 45%, #6e120c 80%);
  box-shadow: inset -6px -8px 14px rgba(0, 0, 0, .35), inset 6px 6px 10px rgba(255, 170, 150, .25), 0 10px 18px rgba(0, 0, 0, .45);
  transform: rotate(-8deg); transition: transform .35s var(--ease), opacity .9s ease, visibility .9s;
}
.seal::before { content: ""; position: absolute; top: 12px; right: 12px; bottom: 12px; left: 12px; border-radius: 50%; border: 2px dashed rgba(255, 210, 190, .45); }
.seal:hover { transform: rotate(0deg) scale(1.06); }
.seal span { position: relative; font-family: var(--engraved-sc); font-size: 13px; line-height: 1.15; letter-spacing: .08em; text-shadow: 0 -1px 0 rgba(0, 0, 0, .35); }
.seal b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: .02em; color: #ffe2cf; }

.zoom-ctl { position: fixed; z-index: 20; right: 46px; bottom: 166px; display: grid; gap: 8px; }
.zoom-ctl button, .zoom-ctl .zc-admin {
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid #3b2610; display: grid; place-items: center; font-family: var(--engraved); font-size: 24px; line-height: 1; color: #2b1a0c;
  background: radial-gradient(circle at 35% 30%, #f3d68a, #c4923a 60%, #7d5517); box-shadow: 0 4px 8px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.zoom-ctl button:hover, .zoom-ctl .zc-admin:hover { filter: brightness(1.08); }
.zoom-ctl svg { width: 20px; height: 20px; }
/* the way in for the committee: set a little apart from the map controls */
.zoom-ctl .zc-admin { margin-top: 10px; text-decoration: none; }
.zoom-ctl .zc-admin svg { width: 18px; height: 18px; }
.foot-admin { display: none; }

.hint { position: fixed; z-index: 19; left: 320px; top: 150px; font-family: var(--hand); font-weight: 700; font-size: 27px; line-height: 1.1; color: var(--red-2); transform: rotate(-4deg); pointer-events: none; transition: opacity .6s; text-shadow: 0 0 8px rgba(239, 224, 187, .9); }
.hint svg { width: 70px; height: 50px; margin: 4px 0 0 60px; color: var(--red-2); }
.hint.is-gone { opacity: 0; }

/* While a journal page is open the key and the hint step aside */
.legend, .hint { transition: opacity .9s, visibility .9s; }
.journal-open .legend, .journal-open .hint { opacity: 0; visibility: hidden; }

/* ================================================================ journal pages */
.journal {
  position: fixed; z-index: 40; top: 14px; right: 14px; bottom: 14px; width: min(820px, 60vw);
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background-color: var(--paper);
  background-image:
    radial-gradient(60% 40% at 85% 12%, rgba(150, 95, 35, .12), transparent 70%),
    radial-gradient(50% 35% at 10% 80%, rgba(150, 95, 35, .1), transparent 70%),
    linear-gradient(90deg, rgba(110, 70, 25, .22), rgba(110, 70, 25, 0) 26px, rgba(110, 70, 25, 0) calc(100% - 18px), rgba(110, 70, 25, .18));
  box-shadow: -20px 0 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(43, 26, 12, .5);
  border-radius: 3px;
  visibility: hidden; transform: translateX(calc(100% + 40px)) rotate(2.5deg); transform-origin: right bottom;
  transition: transform .7s var(--ease), visibility 0s .7s;
}
.journal:focus { outline: none; }
.journal.is-open { visibility: visible; transform: none; transition: transform .75s var(--ease), visibility 0s; }
.journal::after { content: ""; position: fixed; pointer-events: none; }
.j-bar {
  position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 22px; background: rgba(241, 227, 192, .96); border-bottom: 1px dashed rgba(43, 26, 12, .45);
  font-family: var(--type); font-size: 13px; letter-spacing: .06em;
}
.j-close { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--ink); color: var(--paper); border: 0; font-family: var(--type); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.j-close:hover { background: var(--red-2); }
.j-close svg { width: 16px; height: 16px; }
.j-loc { color: var(--ink-3); white-space: nowrap; }
.j-head { position: relative; padding: 34px 54px 10px; }
.j-kicker { margin: 0 0 10px; font-family: var(--type); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.j-title { margin: 0; max-width: 92%; font-size: 58px; font-size: clamp(40px, 4.6vw, 66px); }
.j-place { margin: 12px 0 0; font-family: var(--engraved); font-style: italic; font-size: 24px; color: var(--ink-2); }
.j-stamp {
  position: absolute; right: 30px; top: 16px; padding: 5px 10px; border: 3px solid var(--red); color: var(--red); font-family: var(--type); font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  transform: rotate(9deg); opacity: .78; mix-blend-mode: multiply; border-radius: 4px;
}
.j-body { padding: 10px 54px 40px; }
.j-body > section { margin-top: 42px; }
.j-body h3 { margin: 0 0 14px; font-family: var(--engraved-sc); font-weight: 400; font-size: 32px; line-height: 1.1; letter-spacing: .02em; }
.j-body h3::after { content: ""; display: block; width: 110px; height: 8px; margin-top: 6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 8'%3E%3Cpath d='M2 5 Q30 1 55 4 T108 3' fill='none' stroke='%23a3221a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat; }
.j-body h4 { margin: 18px 0 4px; font-family: var(--type); font-weight: 400; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-2); }
.j-body p { margin: 0 0 14px; }
.lede { font-size: 23px; line-height: 1.45; }
.note { display: block; margin: 16px 0 18px; padding-left: 4px; font-family: var(--hand); font-weight: 600; font-size: 25px; line-height: 1.2; color: var(--red-2); transform: rotate(-1.2deg); }
.note::before { content: "\2192\00a0"; }
.aside {
  margin: 22px 0; padding: 16px 20px 14px; background: rgba(255, 252, 240, .55); border: 1px solid rgba(43, 26, 12, .25); border-left: 4px solid var(--red);
  font-size: 17px; line-height: 1.5; box-shadow: 3px 4px 0 rgba(43, 26, 12, .12);
}
.aside b { font-family: var(--type); font-weight: 400; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-2); display: block; margin-bottom: 4px; }
.j-foot { margin: 40px 54px 0; padding: 18px 0 30px; border-top: 1px dashed rgba(43, 26, 12, .45); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; font-family: var(--type); font-size: 13px; color: var(--ink-3); }
.onward { display: inline-flex; align-items: center; gap: 10px; font-family: var(--engraved-sc); font-size: 22px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.onward svg { width: 22px; height: 22px; color: var(--red); transition: transform .25s var(--ease); }
.onward:hover svg { transform: translateX(4px); }
.onward span { font-family: var(--type); font-size: 12px; letter-spacing: .1em; color: var(--red); text-transform: uppercase; }
.onward:hover { color: var(--red-2); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper);
  font-family: var(--type); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; box-shadow: 4px 4px 0 rgba(43, 26, 12, .3);
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 rgba(43, 26, 12, .35); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(43, 26, 12, .35); }
.btn-red { background: var(--red); border-color: var(--red-2); }
.btn-line { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* Typed lists */
.typed { list-style: none; margin: 0; padding: 0; }
.typed li { position: relative; padding: 12px 0 12px 44px; border-bottom: 1px dotted rgba(43, 26, 12, .4); }
.typed li::before { content: counter(list-item, decimal-leading-zero); position: absolute; left: 0; top: 13px; font-family: var(--type); font-size: 15px; color: var(--red); }
.typed b { display: block; font-family: var(--engraved-sc); font-weight: 400; font-size: 22px; line-height: 1.15; }
.checks li::before { content: ""; left: 6px; top: 16px; width: 18px; height: 18px; border: 2px solid var(--ink); }
.checks li::after { content: "\2713"; position: absolute; left: 6px; top: 2px; font-family: var(--hand); font-size: 34px; font-weight: 700; color: var(--red); transform: rotate(-8deg); }

/* Pinned photographs */
.photos { display: flex; flex-wrap: wrap; gap: 26px 22px; margin: 26px 0 10px; }
.photo { position: relative; margin: 0; padding: 10px 10px 34px; background: #fbf6ea; box-shadow: 0 10px 18px -8px rgba(43, 26, 12, .55), 0 0 0 1px rgba(43, 26, 12, .12); transform: rotate(var(--r, -2deg)); transition: transform .35s var(--ease); }
.photo:hover { transform: rotate(0deg) scale(1.02); z-index: 2; }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.55) contrast(1.05) saturate(.85); transition: filter .5s; }
.photo:hover img { filter: none; }
.photo figcaption { position: absolute; left: 12px; right: 12px; bottom: 4px; font-family: var(--hand); font-weight: 600; font-size: 21px; line-height: 1.1; color: var(--ink-2); text-align: center; }
.photo::before { content: ""; position: absolute; z-index: 1; left: 50%; top: -12px; width: 90px; height: 26px; margin-left: -45px; background: rgba(236, 222, 180, .75); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); transform: rotate(-3deg); }
.photo-a { width: 58%; aspect-ratio: 4 / 5; }
.photo-b { width: 36%; aspect-ratio: 4 / 3; align-self: flex-end; --r: 3deg; }

/* Telegrams (reviews) */
.telegrams { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.telegram { margin: 0; padding: 16px 18px; background: #f7efdc; border: 1px solid rgba(43, 26, 12, .35); box-shadow: 3px 4px 0 rgba(43, 26, 12, .15); font-family: var(--type); font-size: 15px; line-height: 1.5; transform: rotate(var(--r, .6deg)); }
.telegram header { display: flex; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin-bottom: 10px; font-size: 12px; letter-spacing: .14em; }
.telegram blockquote { margin: 0; text-transform: uppercase; }
.telegram figcaption { margin-top: 10px; font-family: var(--hand); font-weight: 700; font-size: 22px; color: var(--red-2); }

/* The code we keep */
.code { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 26px; }
.code li { padding-left: 34px; position: relative; font-size: 17px; }
.code li::before { content: "\2715"; position: absolute; left: 4px; top: 0; font-weight: 700; color: var(--red); font-size: 20px; }
.code b { display: block; font-family: var(--engraved-sc); font-weight: 400; font-size: 21px; }
.motto { margin: 30px 0 0; text-align: center; font-family: var(--engraved); font-style: italic; font-size: 27px; line-height: 1.3; }
.motto small { display: block; font-family: var(--type); font-style: normal; font-size: 12px; letter-spacing: .18em; color: var(--ink-3); margin-top: 6px; }

/* Expedition tickets (digs) */
.expedition { position: relative; margin: 22px 0; display: grid; grid-template-columns: 150px 1fr; background: #fbf3df; border: 2px solid var(--ink); box-shadow: 5px 6px 0 rgba(43, 26, 12, .22); }
.exp-date { position: relative; padding: 18px 14px; text-align: center; border-right: 2px dashed var(--ink); background: repeating-linear-gradient(45deg, rgba(163, 34, 26, .05) 0 6px, transparent 6px 12px); }
.exp-date small { display: block; font-family: var(--type); font-size: 12px; letter-spacing: .14em; color: var(--red); text-transform: uppercase; }
.exp-date b { display: block; font-family: var(--display); font-weight: 400; font-size: 52px; line-height: 1; margin: 6px 0 4px; }
.exp-date span { display: block; font-family: var(--engraved-sc); font-size: 20px; }
.exp-date em { display: block; margin-top: 8px; font-family: var(--hand); font-style: normal; font-weight: 700; font-size: 21px; color: var(--red-2); }
.exp-body { padding: 18px 22px 20px; }
.exp-body h4 { margin: 0; }
.exp-body h5 { margin: 4px 0 6px; font-family: var(--engraved-sc); font-weight: 400; font-size: 30px; line-height: 1.05; }
.exp-meta { font-family: var(--type); font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.exp-meta span + span::before { content: "  \00b7  "; white-space: pre; }
.exp-story h6 { margin: 14px 0 2px; font-family: var(--type); font-weight: 400; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-2); }
.exp-story p { font-size: 17.5px; }
.exp-story .callout { font-size: 16px; padding: 10px 12px; border: 1px dashed var(--ink-3); background: rgba(255, 252, 240, .6); }
.story-more[hidden] { display: none; }
.story-toggle { background: none; border: 0; padding: 0; margin: 6px 0 4px; font-family: var(--hand); font-weight: 700; font-size: 22px; color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.expedition .stamp { position: absolute; right: 16px; top: 14px; padding: 4px 10px; border: 3px solid var(--red); color: var(--red); font-family: var(--type); font-size: 13px; letter-spacing: .14em; transform: rotate(8deg); opacity: .8; mix-blend-mode: multiply; }
.expedition.past { grid-template-columns: 150px 1fr; opacity: .85; box-shadow: none; }
.expedition.past .exp-body { padding: 12px 18px; }
.expedition.past h5 { font-size: 23px; }
.empty-note { padding: 18px; border: 2px dashed rgba(43, 26, 12, .4); font-style: italic; }

.daysteps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.daysteps li { counter-increment: s; display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 10px 0; }
.daysteps li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--display); font-size: 20px; color: var(--red); background: #fbf3df; }
.daysteps b { display: block; font-family: var(--engraved-sc); font-weight: 400; font-size: 22px; line-height: 1.15; }

/* Layers of time */
.section-drawing { position: relative; margin: 26px 0; border: 2px solid var(--ink); background: #fbf3df; }
.depth { position: sticky; top: 56px; z-index: 3; display: flex; justify-content: space-between; align-items: baseline; padding: 10px 16px; background: var(--ink); color: var(--paper); font-family: var(--type); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.depth b { font-family: var(--engraved); font-style: italic; font-weight: 400; font-size: 22px; letter-spacing: 0; text-transform: none; color: #ffd38a; }
.stratum { position: relative; display: grid; grid-template-columns: 74px 1fr; border-top: 2px solid var(--ink); }
.stratum-band { position: relative; background: var(--c); border-right: 2px solid var(--ink); background-image: var(--grain), radial-gradient(circle, rgba(0, 0, 0, .25) 1.5px, transparent 2px), radial-gradient(circle, rgba(255, 255, 255, .18) 1px, transparent 1.6px); background-size: 240px, 13px 11px, 9px 15px; }
.stratum-body { padding: 18px 22px; transition: background-color .4s; }
.stratum.is-active .stratum-body { background: rgba(215, 154, 53, .12); }
.stratum .age { font-family: var(--type); font-size: 13px; letter-spacing: .12em; color: var(--red); text-transform: uppercase; }
.stratum h4 { margin: 4px 0 6px; font-family: var(--engraved-sc); font-weight: 400; font-size: 28px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.stratum p { font-size: 18px; }
.finds-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.finds-tags li { font-family: var(--type); font-size: 12px; padding: 3px 8px; border: 1px solid rgba(43, 26, 12, .45); background: rgba(255, 255, 255, .35); }
.stratum .photo { width: 62%; margin: 18px 0 10px 8px; aspect-ratio: 16 / 10; }
.stratum .find-icon { position: absolute; left: 20px; top: 50%; width: 34px; height: 34px; margin-top: -17px; }

/* The trial: the practice detector */
.trial-stage { display: grid; gap: 14px; margin-top: 20px; }
.sweep-field {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; cursor: none; touch-action: none; user-select: none; -webkit-user-select: none;
  border: 3px solid var(--ink); box-shadow: inset 0 0 60px rgba(0, 0, 0, .55), 6px 7px 0 rgba(43, 26, 12, .25);
  background:
    repeating-linear-gradient(176deg, rgba(0, 0, 0, 0) 0 26px, rgba(0, 0, 0, .16) 26px 30px, rgba(255, 255, 255, .03) 30px 34px),
    radial-gradient(60% 80% at 30% 30%, #6a4c31, transparent 70%),
    radial-gradient(70% 60% at 80% 80%, #3f2c1c, transparent 70%),
    #563d27;
}
.sweep-field::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-image: var(--grain); mix-blend-mode: overlay; pointer-events: none; }
.sweep-field::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(118, 150, 70, .55) 1.2px, transparent 1.6px), radial-gradient(circle, rgba(190, 170, 130, .25) 1px, transparent 1.4px); background-size: 37px 29px, 23px 31px; background-position: 0 0, 11px 7px; opacity: .55; }
.sweep-field:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.sweep-coil { position: absolute; left: 0; top: 0; width: 22%; aspect-ratio: 1; margin: -11% 0 0 -11%; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .3s; }
.sweep-field.is-live .sweep-coil { opacity: 1; }
.sweep-coil svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 14px 10px rgba(0, 0, 0, .45)); }
.sweep-coil .coil-glow { opacity: 0; }
.sweep-hint { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; z-index: 2; pointer-events: none; transition: opacity .4s; }
.sweep-hint span { padding: 10px 16px; background: var(--paper); border: 2px solid var(--ink); font-family: var(--type); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.sweep-field.is-live .sweep-hint { opacity: 0; }
.hole { position: absolute; width: 14%; aspect-ratio: 1; margin: -7% 0 0 -7%; z-index: 1; pointer-events: none; }
.hole::before { content: ""; position: absolute; top: 14%; right: 8%; bottom: 14%; left: 8%; border-radius: 50%; background: radial-gradient(closest-side, #1a110a 30%, #2b1d12 70%, rgba(43, 29, 18, 0)); }
.hole svg { position: absolute; left: 20%; top: 18%; width: 60%; height: 60%; animation: popUp .7s var(--ease) both; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .5)); }
@keyframes popUp { from { transform: translateY(40%) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.lcd { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 14px 18px; background: #101512; border: 3px solid #6b5537; border-radius: 10px; box-shadow: inset 0 0 26px rgba(95, 155, 134, .12), 0 0 0 2px #2b1a0c; font-family: var(--type); color: var(--phosphor); }
.lcd-vdi { display: flex; flex-direction: column; min-width: 70px; }
.lcd-vdi small { font-size: 11px; letter-spacing: .16em; opacity: .7; }
.lcd-vdi b { font-weight: 400; font-size: 40px; line-height: 1; text-shadow: 0 0 12px rgba(169, 210, 194, .5); font-variant-numeric: tabular-nums; }
.lcd-mid { min-width: 0; }
.lcd-id { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcd-bars { display: flex; gap: 3px; margin-top: 8px; height: 16px; align-items: flex-end; }
.lcd-bars i { flex: 1; height: 100%; border-radius: 2px; background: rgba(169, 210, 194, .12); }
.lcd-bars i:nth-child(1) { height: 30%; } .lcd-bars i:nth-child(2) { height: 38%; } .lcd-bars i:nth-child(3) { height: 46%; } .lcd-bars i:nth-child(4) { height: 54%; } .lcd-bars i:nth-child(5) { height: 62%; } .lcd-bars i:nth-child(6) { height: 70%; } .lcd-bars i:nth-child(7) { height: 78%; } .lcd-bars i:nth-child(8) { height: 86%; } .lcd-bars i:nth-child(9) { height: 93%; } .lcd-bars i:nth-child(10) { height: 100%; }
.lcd-bars i.on { background: var(--phosphor); box-shadow: 0 0 8px rgba(169, 210, 194, .5); }
.lcd .btn { padding: 10px 16px; background: var(--red); border-color: #e0a090; color: #fff; box-shadow: none; }
.lcd-hint { display: none; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; border: 1px solid rgba(169, 210, 194, .25); color: rgba(169, 210, 194, .6); white-space: nowrap; transition: all .15s; }
.is-locked .lcd-hint { color: #fff; background: var(--red); border-color: #e0a090; box-shadow: 0 0 18px rgba(163, 34, 26, .6); }
@media (hover: hover) and (pointer: fine) {
  .trial-stage:not(.is-touch) .lcd .btn { display: none; }
  .trial-stage:not(.is-touch) .lcd-hint { display: inline-block; }
}
.sweep-result { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; padding: 16px 18px; min-height: 96px; background: #fbf3df; border: 2px solid var(--ink); }
.sweep-result svg { width: 64px; height: 64px; }
.sweep-result h4 { margin: 0 0 4px; font-family: var(--engraved-sc); font-size: 24px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.sweep-result p { margin: 0; font-size: 17px; }
.sweep-result .verdict { display: inline-block; margin-left: 8px; padding: 2px 8px; border: 2px solid var(--red); color: var(--red); font-family: var(--type); font-size: 12px; letter-spacing: .12em; vertical-align: middle; transform: rotate(-4deg); }
.sweep-result .verdict.bin { border-color: var(--ink-3); color: var(--ink-3); }
.sweep-result.is-empty { grid-template-columns: 1fr; font-style: italic; color: var(--ink-3); align-items: center; }
.sweep-result.is-flash { animation: flash .6s var(--ease); }
@keyframes flash { from { background: #f3d68a; } }
.sweep-tools { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-family: var(--type); font-size: 14px; }
.sweep-tools .btn { padding: 8px 12px; font-size: 13px; }
.sweep-score b { color: var(--red); font-size: 18px; }
.vdi-legend { margin: 20px 0 6px; }
.vdi-bar { height: 12px; border: 2px solid var(--ink); background: linear-gradient(90deg, #7d4a33 0 36%, #b48a3e 36% 61%, #8f9aa3 61% 75%, #d6a35a 75% 100%); }
.vdi-zones { display: grid; grid-template-columns: 36fr 25fr 14fr 25fr; margin-top: 6px; font-family: var(--type); font-size: 12px; }

/* The treasure room */
.drawers { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 8px; }
.drawers button { padding: 8px 14px 6px; border: 2px solid var(--ink); border-bottom-width: 0; background: #e6d09f; font-family: var(--type); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; border-radius: 8px 8px 0 0; }
.drawers button[aria-pressed="true"] { background: #fbf3df; color: var(--red); }
.cabinet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 22px; padding: 26px 6px 6px; border-top: 2px solid var(--ink); }
.cabinet .photo { width: auto; aspect-ratio: 4 / 5; padding-bottom: 46px; }
.cabinet .photo:nth-child(3n+1) { --r: -2.5deg; }
.cabinet .photo:nth-child(3n+2) { --r: 1.8deg; }
.cabinet .photo:nth-child(3n) { --r: -.8deg; }
.cabinet .photo[hidden] { display: none; }
.cabinet .photo button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.cabinet .photo figcaption { font-size: 19px; bottom: 6px; }

/* The library */
.kit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 26px; }
.kit div { padding: 4px 0 0 52px; position: relative; }
.kit svg { position: absolute; left: 0; top: 4px; width: 38px; height: 38px; color: var(--red-2); }
.kit b { display: block; font-family: var(--engraved-sc); font-weight: 400; font-size: 22px; }
.kit p { font-size: 17px; }
.law details, .faq details { border-bottom: 1px dotted rgba(43, 26, 12, .45); }
.law summary, .faq summary { list-style: none; cursor: pointer; padding: 14px 34px 14px 0; position: relative; font-family: var(--engraved-sc); font-size: 23px; line-height: 1.2; }
.law summary small { display: block; font-family: var(--body); font-style: italic; font-size: 16px; color: var(--ink-3); }
.law summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.law summary::after, .faq summary::after { content: "+"; position: absolute; right: 6px; top: 10px; font-family: var(--display); font-size: 24px; color: var(--red); transition: transform .3s; }
.law details[open] summary::after, .faq details[open] summary::after { transform: rotate(45deg); }
.law .law-body, .faq details p { padding: 0 0 16px; font-size: 17.5px; }
.law a, .j-body p a, .aside a { color: var(--red-2); }
.names { width: 100%; border-collapse: collapse; font-size: 17px; }
.names th { text-align: left; font-family: var(--type); font-weight: 400; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 6px 10px 6px 0; border-bottom: 2px solid var(--ink); }
.names td { padding: 9px 12px 9px 0; border-bottom: 1px dotted rgba(43, 26, 12, .4); vertical-align: top; }
.names td:first-child { font-family: var(--engraved); font-style: italic; font-size: 20px; white-space: nowrap; }
.mini-map { margin: 22px 0; border: 2px solid var(--ink); background: #efe3c8; box-shadow: 5px 6px 0 rgba(43, 26, 12, .2); }
.mini-map svg { width: 100%; height: auto; }
.mini-map .mc-label { font-family: var(--engraved); font-style: italic; fill: #5b4a39; font-size: 15px; }
.mini-map .mc-hot { fill: rgba(163, 34, 26, .16); stroke: var(--red); stroke-width: 2; }
.mini-map .mc-plot { cursor: pointer; outline: none; }
.mini-map .mc-plot path { fill: rgba(239, 227, 200, 0); stroke: #7a6347; stroke-width: 1.6; stroke-linejoin: round; transition: fill .15s; }
.mini-map .mc-plot:hover path { fill: rgba(163, 34, 26, .08); }
.mini-map .mc-plot:focus-visible path { stroke: var(--red); stroke-width: 3; }
.mini-map .mc-plot.is-on path { fill: rgba(163, 34, 26, .16); stroke: var(--red); stroke-width: 2; }
.mini-map .mc-plot.is-on .mc-label { font-weight: 600; fill: var(--ink); }
.mini-map .mc-no { font-family: var(--type); font-size: 10px; fill: #8a7763; }
.mc-card { padding: 14px 18px 16px; border-top: 2px solid var(--ink); background: #fbf3df; }
.mc-kicker { margin: 0 0 6px !important; font-family: var(--type); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-2); }
.mc-record { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 22px; margin: 0 0 8px; justify-content: start; }
.mc-record dt { font-family: var(--type); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.mc-record dd { margin: 0; font-family: var(--engraved); font-size: 19px; }
.mc-read { margin: 0 !important; font-size: 17px; }
.tithe-cols td:first-child { font-family: var(--type); font-style: normal; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding-top: 12px; }
#tithe-guide { scroll-margin-top: 130px; }
@media (max-width: 760px) { .mc-record { grid-template-columns: repeat(2, auto); } }
.mini-map .mc-ping { fill: none; stroke: var(--red); stroke-width: 1.5; transform-origin: center; transform-box: fill-box; animation: mapPing 2.4s var(--ease) infinite; }
@keyframes mapPing { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.scans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.scans button { padding: 0; border: 1px solid rgba(43, 26, 12, .4); background: #fff; cursor: zoom-in; transition: transform .25s; }
.scans button:hover { transform: translateY(-4px) rotate(-1.5deg); }

/* Enlistment */
.orders { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: o; }
.orders li { counter-increment: o; padding: 16px; background: #fbf3df; border: 2px solid var(--ink); font-size: 17px; }
.orders li::before { content: "Order " counter(o, upper-roman); display: block; font-family: var(--type); font-size: 12px; letter-spacing: .16em; color: var(--red); text-transform: uppercase; margin-bottom: 4px; }
.orders b { display: block; font-family: var(--engraved-sc); font-weight: 400; font-size: 22px; }
.contact-lines { display: grid; gap: 10px; margin: 18px 0; }
.contact-lines a { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--type); font-size: 17px; }
.contact-lines a svg { width: 22px; height: 22px; color: var(--red); }
.contact-lines a:hover { color: var(--red-2); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; padding: 24px; background: #fbf3df; border: 2px solid var(--ink); box-shadow: 5px 6px 0 rgba(43, 26, 12, .2); }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--type); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.field input, .field select, .field textarea { width: 100%; padding: 8px 2px; font-family: var(--type); font-size: 17px; color: var(--ink); background: transparent; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; -webkit-appearance: none; appearance: none; }
.field textarea { min-height: 120px; resize: vertical; background-image: repeating-linear-gradient(transparent 0 31px, rgba(43, 26, 12, .25) 31px 32px); line-height: 32px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.form-foot p { margin: 0; font-size: 15px; font-style: italic; color: var(--ink-3); max-width: 360px; }
.form-status { grid-column: 1 / -1; margin: 0; font-family: var(--type); font-size: 14px; color: var(--red-2); }
.form-status:empty { display: none; }
.hp { position: absolute; left: -9999px; }
.landowner { margin-top: 24px; padding: 20px 22px; border: 2px dashed var(--ink); background: rgba(215, 154, 53, .1); }
.landowner b { display: block; font-family: var(--engraved-sc); font-weight: 400; font-size: 26px; }

/* Lightbox */
.lightbox { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 300; background: rgba(15, 8, 3, .94); display: none; align-items: center; justify-content: center; padding: 64px 70px; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; border: 10px solid #fbf6ea; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox figcaption { margin-top: 14px; text-align: center; max-width: 640px; color: var(--paper); font-size: 18px; }
.lightbox figcaption b { display: block; font-family: var(--engraved-sc); font-weight: 400; font-size: 26px; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--paper); background: transparent; color: var(--paper); display: grid; place-items: center; }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; margin-top: -24px; }
.lb-next { right: 12px; top: 50%; margin-top: -24px; }
.lb-count { position: absolute; top: 28px; left: 24px; font-family: var(--type); font-size: 14px; color: var(--paper); }

/* ================================================================ the opening film */
/* The overlay shows from the first paint. film.js adds .film-running; if it never
   runs, the failsafe animations hide the overlay and bring the map back after 4s. */
.intro { display: none; }
.intro-on .intro {
  display: block; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 800; overflow: hidden;
  background-color: var(--wood);
  background-image:
    repeating-linear-gradient(93deg, rgba(255, 220, 170, .025) 0 2px, transparent 2px 9px, rgba(0, 0, 0, .06) 9px 11px, transparent 11px 23px),
    radial-gradient(120% 90% at 50% 40%, #3a2312 0%, #23140a 60%, #140a04 100%);
  transition: opacity 1s ease;
  animation: introFailsafe .5s 4s forwards;
}
.intro-on .intro::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: url("/assets/video/fort-poster.jpg") center / cover no-repeat; }
@media (max-aspect-ratio: 9/10) { .intro-on .intro::before { background-image: url("/assets/video/fort-poster-portrait.jpg"); } }
.film-running .intro { animation: none; }
@keyframes introFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.intro.is-out { opacity: 0; pointer-events: none; }

.intro-film .atlas { visibility: hidden; animation: showAgain 0s 4s forwards; }
.intro-lock .title-card, .intro-lock .tag, .intro-lock .legend, .intro-lock .seal, .intro-lock .zoom-ctl, .intro-lock .hint { opacity: 0; visibility: hidden; animation: showAgain 0s 4s forwards; }
.film-running.intro-film .atlas, .film-running.intro-lock .title-card, .film-running.intro-lock .tag, .film-running.intro-lock .legend,
.film-running.intro-lock .seal, .film-running.intro-lock .zoom-ctl, .film-running.intro-lock .hint { animation: none; }
@keyframes showAgain { to { visibility: visible; opacity: 1; } }
.title-card, .zoom-ctl { transition: opacity .9s ease, visibility .9s; }

.film { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.film-2 { opacity: 0; }
.film-2.is-on { opacity: 1; }
.film.is-gone { opacity: 0; }

.gate { position: absolute; z-index: 3; left: 0; right: 0; bottom: 9vh; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0 16px; opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.gate.is-in { opacity: 1; transform: none; }
.gate.is-out { opacity: 0; transform: translateY(-10px); pointer-events: none; transition-duration: .5s; }
.gate-pre { margin: 0; padding: 6px 16px; background: rgba(20, 12, 6, .6); font-family: var(--type); font-size: 16px; letter-spacing: .32em; text-transform: uppercase; color: #f4e6c4; text-shadow: 0 2px 12px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .9); }
.gate-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.tablet {
  position: relative; min-width: 300px; padding: 22px 38px 16px; color: #3b2c1c; text-align: center;
  background: linear-gradient(180deg, #ddd4c1 0%, #c3b69d 55%, #ab9d84 100%); border: 3px solid #4a3a28; border-radius: 3px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(0, 0, 0, .22), 0 14px 30px rgba(0, 0, 0, .6);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.tablet::before { content: ""; position: absolute; top: 6px; right: 6px; bottom: 6px; left: 6px; border: 1px solid rgba(59, 44, 28, .45); pointer-events: none; }
.tablet::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-image: var(--grain); opacity: .35; mix-blend-mode: multiply; pointer-events: none; }
.tablet b { display: block; font-family: var(--engraved-sc); font-weight: 400; font-size: 32px; line-height: 1.1; letter-spacing: .05em; text-shadow: 0 1px 0 rgba(255, 255, 255, .6), 0 -1px 0 rgba(0, 0, 0, .25); }
.tablet small { display: block; margin-top: 5px; font-family: var(--engraved-sc); font-size: 15px; letter-spacing: .45em; color: #8a2a14; }
.tablet:hover, .tablet:focus-visible { transform: translateY(-3px); outline: none; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(0, 0, 0, .22), 0 0 0 3px rgba(232, 189, 82, .9), 0 18px 36px rgba(0, 0, 0, .65); }

.film-bar { position: absolute; z-index: 4; top: 16px; right: 16px; display: flex; gap: 8px; }
.film-btn { padding: 8px 14px; background: rgba(20, 12, 6, .55); border: 1px solid rgba(241, 227, 192, .35); color: rgba(241, 227, 192, .85); font-family: var(--type); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.film-btn:hover { color: #fff; border-color: rgba(241, 227, 192, .8); }
.film-btn[aria-pressed="true"] { color: #ffe08a; border-color: rgba(255, 224, 138, .6); }
.film-play { position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 20px 34px; font-family: var(--engraved-sc); font-size: 28px; color: #3b2c1c; background: linear-gradient(180deg, #ddd4c1, #ab9d84); border: 3px solid #4a3a28; box-shadow: 0 14px 30px rgba(0, 0, 0, .6); }

/* ================================================================ small screens */
@media (max-width: 1100px) {
  .journal { width: min(760px, 66vw); }
}
@media (max-width: 760px) {
  body { font-size: 18px; }
  .title-card { left: 10px; top: 10px; gap: 8px; }
  .title-card img { width: 44px; height: 46px; }
  .title-card .tc-text { padding: 4px 14px 6px 8px; }
  .tc-pre { font-size: 9px; letter-spacing: .1em; }
  .tc-main { font-size: 36px; }
  .tc-post { font-size: 14px; }
  .tag { top: auto; bottom: 16px; right: 108px; left: auto; width: auto; max-width: calc(100vw - 230px); padding: 7px 10px 7px 24px; transform: rotate(-2deg); border-radius: 3px 10px 10px 3px; }
  .tag::before { left: 8px; width: 9px; height: 9px; margin-top: -4.5px; }
  .tag::after { display: none; }
  .tag-t { font-size: 15px; margin: 1px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tag-d, .tag-c { display: none; }
  .tag-k { font-size: 9px; }
  .seal { width: 88px; height: 88px; right: 12px; bottom: 12px; }
  .seal span { font-size: 10px; }
  .seal b { font-size: 19px; }
  .zoom-ctl { display: none; }
  .foot-admin { display: inline; }
  .legend { left: 10px; bottom: 12px; width: auto; max-width: calc(100vw - 20px); padding: 0; border-width: 3px; overflow: visible; max-height: none; }
  .legend-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; background: none; border: 0; font-family: var(--engraved-sc); font-size: 19px; letter-spacing: .1em; }
  .legend-toggle svg { width: 18px; height: 18px; color: var(--red); }
  .legend-inner { display: none; position: absolute; left: -3px; bottom: calc(100% + 10px); width: min(300px, calc(100vw - 20px)); max-height: 66vh; overflow: auto; padding: 14px 16px 12px; background: linear-gradient(180deg, #f6ead0, #e9d6a8); border: 3px double var(--ink); box-shadow: 6px 9px 0 rgba(0, 0, 0, .28); }
  .legend.is-open .legend-inner { display: block; }
  .hint { left: 18px; top: 84px; font-size: 22px; }
  .tablet { min-width: 230px; padding: 14px 22px 11px; }
  .tablet b { font-size: 22px; }
  .gate { bottom: 7vh; }
  .gate-pre { font-size: 12px; }
  .hint svg { width: 52px; height: 38px; margin-left: 40px; }
  .journal { top: 0; right: 0; bottom: 0; left: 0; width: auto; border-radius: 0; transform: translateY(105%); transform-origin: center bottom; box-shadow: none; }
  .j-bar { padding: 10px 14px; }
  .j-loc { display: none; }
  .j-head { padding: 24px 20px 6px; }
  .j-title { font-size: 46px; }
  .j-stamp { display: none; }
  .j-place { font-size: 20px; }
  .j-body { padding: 6px 20px 30px; }
  .j-foot { margin: 30px 20px 0; }
  .lede { font-size: 20px; }
  .telegrams, .code, .kit, .orders { grid-template-columns: 1fr; }
  .cabinet { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .expedition, .expedition.past { grid-template-columns: 1fr; }
  .exp-date { border-right: 0; border-bottom: 2px dashed var(--ink); display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; text-align: left; padding: 12px 16px; }
  .exp-date b { font-size: 36px; margin: 0; }
  .form { grid-template-columns: 1fr; padding: 18px; }
  .scans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .names td:first-child { white-space: normal; }
  .lcd { grid-template-columns: auto 1fr; }
  .lcd .btn { grid-column: 1 / -1; justify-content: center; }
  .sweep-field { aspect-ratio: 4 / 3.6; }
  .sweep-coil { width: 30%; margin: -15% 0 0 -15%; }
  .hole { width: 18%; margin: -9% 0 0 -9%; }
  .stratum { grid-template-columns: 34px 1fr; }
  .stratum .photo { width: 100%; margin-left: 0; }
  .photo-a { width: 100%; }
  .photo-b { width: 70%; margin-left: auto; }
  .lightbox { padding: 64px 12px 90px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; margin: 0; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

@supports not (aspect-ratio: 1 / 1) {
  .sweep-field { height: 0; padding-bottom: 62.5%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ================================================================ pages inside a journal */
/* Tabs are bookmark ribbons along the top of the page; they stay in view while you read */
.j-tabs {
  position: sticky; top: 61px; z-index: 4; display: flex; gap: 4px; padding: 10px 46px 0; overflow-x: auto; scrollbar-width: none;
  background: linear-gradient(rgba(241, 227, 192, .97), rgba(241, 227, 192, .97)); border-bottom: 2px solid var(--ink);
}
.j-tabs::-webkit-scrollbar { display: none; }
.j-tabs a {
  flex: none; padding: 9px 16px 8px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 8px 8px 0 0; margin-bottom: -2px;
  background: #e6d09f; color: var(--ink-2); text-decoration: none; font-family: var(--type); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s;
}
.j-tabs a:hover { background: #efdcb0; color: var(--ink); }
.j-tabs a[aria-current="page"] { background: var(--paper); color: var(--red); position: relative; }
.j-tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; background: var(--paper); }
.chapter[hidden] { display: none; }
.chapter > section { margin-top: 42px; }
.chapter > section:first-child, .chapter > .aside:first-child { margin-top: 0; }
.small-print { font-size: 14px; font-style: italic; color: var(--ink-3); margin-top: 12px; }

/* lists fed by the club's content (news, blog, members, sponsors, charities, for sale) */
.feed { display: grid; gap: 22px; margin: 22px 0; }
.post { padding: 20px 22px; background: #fbf3df; border: 2px solid var(--ink); box-shadow: 4px 5px 0 rgba(43, 26, 12, .18); }
.post-meta { margin: 0 0 4px; font-family: var(--type); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--red-2); display: flex; gap: 10px; align-items: center; }
.post-tag { padding: 2px 8px; border: 1px solid var(--red); color: var(--red); }
.post h4, .member-card h4, .org-card h4, .listing h4 { margin: 0 0 8px; font-family: var(--engraved-sc); font-weight: 400; font-size: 26px; line-height: 1.15; letter-spacing: 0; text-transform: none; color: var(--ink); }
.post-img { width: 100%; max-height: 380px; object-fit: cover; margin: 10px 0 12px; border: 6px solid #fbf6ea; box-shadow: 0 6px 14px -8px rgba(43, 26, 12, .5); }
.post-sum { font-size: 18px; }
.post-body p { font-size: 17.5px; }
.post-more { background: none; border: 0; padding: 0; margin-top: 4px; font-family: var(--hand); font-weight: 700; font-size: 22px; color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.member-card, .org-card, .listing { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: start; padding: 18px 20px; background: #fbf3df; border: 2px solid var(--ink); box-shadow: 4px 5px 0 rgba(43, 26, 12, .18); }
.member-card .photo, .listing .photo { margin: 0; padding: 8px 8px 30px; --r: -2deg; }
.member-card .photo img, .listing .photo img { aspect-ratio: 1; height: auto; }
.facts { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; font-size: 16px; }
.facts b { display: inline-block; min-width: 128px; font-family: var(--type); font-weight: 400; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--red-2); }
.org-card { grid-template-columns: 140px 1fr; }
.member-card.no-photo, .org-card.no-photo, .listing.no-photo { grid-template-columns: 1fr; }
.org-logo { display: grid; place-items: center; padding: 12px; min-height: 110px; background: #fff; border: 1px solid rgba(43, 26, 12, .25); }
.org-logo img { max-height: 90px; width: auto; filter: none; }
.listing-meta { display: flex; gap: 14px; align-items: baseline; margin: 0 0 8px; font-family: var(--type); }
.listing-meta b { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--red); }
.listing-meta span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.listing .btn { margin-top: 6px; }
.cabinet.scenery .photo { aspect-ratio: 4 / 3; }
.feed .empty-note, .chapter > .empty-note { background: rgba(255, 252, 240, .5); }
.feed[hidden] { display: none; }
.post-facts { margin: 0 0 6px !important; font-family: var(--type); font-size: 13px; letter-spacing: .04em; color: var(--ink-3); }
.post-link { font-family: var(--hand); font-weight: 700; font-size: 22px; color: var(--red); text-underline-offset: 4px; display: inline-flex; align-items: center; gap: 6px; }
.post-link svg, .article em svg { width: 18px; height: 18px; }
.post-dig { border-style: dashed; }
/* Meet a Member: the questions, and each member's answers */
.typed.questions li { padding-top: 9px; padding-bottom: 9px; }
.typed.questions li::before { top: 11px; }
.typed.questions b { font-family: var(--engraved); font-style: italic; font-size: 20px; }
.qa { margin: 10px 0 0; }
.qa dt { margin-top: 10px; font-family: var(--engraved); font-style: italic; font-size: 18px; color: var(--red-2); }
.qa dd { margin: 2px 0 0; font-size: 17px; }
/* Members: the club's corners, as index cards */
.corner { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.corner a { display: block; padding: 14px 16px; background: #fbf3df; border: 2px solid var(--ink); box-shadow: 3px 4px 0 rgba(43, 26, 12, .18); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.corner a:hover, .corner a:focus-visible { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 rgba(43, 26, 12, .22); }
.corner b { display: block; font-family: var(--engraved-sc); font-weight: 400; font-size: 21px; color: var(--ink); }
.corner span { display: block; margin-top: 2px; font-size: 16px; line-height: 1.35; color: var(--ink-2); }
/* Blog: the club's long reads */
.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.article { display: flex; flex-direction: column; padding: 16px 18px; background: #fbf3df; border: 2px solid var(--ink); box-shadow: 3px 4px 0 rgba(43, 26, 12, .18); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.article:hover, .article:focus-visible { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 rgba(43, 26, 12, .22); }
.article span { font-family: var(--type); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.article b { margin: 4px 0 6px; font-family: var(--engraved-sc); font-weight: 400; font-size: 23px; line-height: 1.15; color: var(--ink); }
.article p { flex: 1; margin: 0 0 8px !important; font-size: 16.5px; line-height: 1.45; color: var(--ink-2); }
.article em { display: inline-flex; align-items: center; gap: 6px; font-family: var(--hand); font-weight: 700; font-style: normal; font-size: 21px; color: var(--red); }

/* the key as a contents list: places, with their pages underneath */
.legend .index { list-style: none; margin: 0; padding: 0; }
.legend .index > li { padding: 4px 0 6px; border-bottom: 1px dotted rgba(43, 26, 12, .35); }
.legend .ix-place { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: center; padding: 4px; text-decoration: none; border: 0; }
.legend .ix-place:hover, .legend .ix-place:focus-visible { background: rgba(163, 34, 26, .08); }
.legend .ix-place svg { width: 20px; height: 20px; color: var(--red); }
.legend .ix-place b { display: block; font-family: var(--engraved-sc); font-weight: 400; font-size: 18px; line-height: 1.05; }
.legend .ix-place small { display: block; font-family: var(--type); font-size: 10.5px; letter-spacing: .06em; color: var(--ink-3); }
/* the pages are small tabs hanging off their place, so they read as buttons, not a description */
.ix-pages { display: flex; flex-wrap: wrap; gap: 5px; margin: 3px 0 2px 14px; padding: 2px 0 2px 16px; border-left: 2px solid rgba(163, 34, 26, .45); }
.legend .ix-pages a {
  display: inline-block; padding: 4px 8px 3px; border: 1.5px solid rgba(43, 26, 12, .55); border-radius: 4px; background: #fbf3df;
  font-family: var(--type); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; white-space: nowrap; text-decoration: none; color: var(--ink);
  box-shadow: 1px 2px 0 rgba(43, 26, 12, .18); transition: background-color .15s, color .15s, border-color .15s;
}
.legend .ix-pages a:hover, .legend .ix-pages a:focus-visible { background: var(--red); border-color: var(--red-2); color: #fbf3df; }
.legend .symbols { grid-template-columns: 1fr 1fr; gap: 3px 10px; font-size: 13px; }
.ix-admin { display: inline-flex; align-items: center; gap: 4px; }
.ix-admin svg { width: 12px; height: 12px; }

@media (max-width: 760px) {
  .j-tabs { top: 57px; padding: 8px 14px 0; }
  .j-tabs a { padding: 8px 12px 7px; font-size: 12px; }
  .member-card, .org-card, .listing { grid-template-columns: 1fr; }
  .member-card .photo, .listing .photo { max-width: 260px; }
}

/* ================================================================ sound, and the page reveals */
.sfx-toggle {
  position: fixed; z-index: 20; right: 46px; bottom: 376px; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 2px solid #3b2610; display: grid; place-items: center; color: #2b1a0c;
  background: radial-gradient(circle at 35% 30%, #f3d68a, #c4923a 60%, #7d5517); box-shadow: 0 4px 8px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: opacity .9s ease, visibility .9s;
}
.sfx-toggle:hover { filter: brightness(1.08); }
.sfx-toggle svg { width: 20px; height: 20px; }
.sfx-toggle[aria-pressed="false"] { filter: saturate(.35) brightness(.92); }
.intro-lock .sfx-toggle { opacity: 0; visibility: hidden; animation: showAgain 0s 4s forwards; }
.film-running.intro-lock .sfx-toggle { animation: none; }
.fx-canvas { position: fixed; left: 0; top: 0; z-index: 45; pointer-events: none; }
.journal.fx-run { visibility: visible; transform: none !important; transition: none !important; will-change: transform, clip-path; contain: paint; }
@media (max-width: 760px) {
  .sfx-toggle { right: 10px; top: 10px; bottom: auto; width: 38px; height: 38px; }
  .sfx-toggle svg { width: 18px; height: 18px; }
}

/* ================================================================ detector settings (Armoury, Tools) */
.dset { margin-top: 18px; padding: 22px 24px 24px; background: #fbf3df; border: 2px solid var(--ink); box-shadow: 5px 6px 0 rgba(43, 26, 12, .2); }
.dset-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.dset .field select { padding-right: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b1a0c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center / 16px; cursor: pointer; }
.dset .field select:disabled { opacity: .5; cursor: not-allowed; }
.dset-chips { margin: 20px 0 0; padding: 0; border: 0; min-width: 0; }
.dset-chips legend { padding: 0; margin-bottom: 8px; font-family: var(--type); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.dset-chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.dset-chip { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 9px; border: 1.5px solid rgba(43, 26, 12, .55); border-radius: 4px; background: var(--paper); font-family: var(--type); font-size: 13px; letter-spacing: .03em; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.dset-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dset-chip svg { width: 20px; height: 20px; flex: none; color: var(--red-2); }
.dset-chip:hover { border-color: var(--ink); background: #f6e7c4; }
.dset-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fbf3df; }
.dset-chip.is-on svg { color: #f3c77a; }
.dset-chip:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.dset-out { margin-top: 24px; }
.dset-wait { margin: 0; padding: 18px; border: 2px dashed rgba(43, 26, 12, .35); font-style: italic; color: var(--ink-3); text-align: center; }
.linkish { padding: 0; border: 0; background: none; color: var(--red-2); text-decoration: underline; font: inherit; }

.ds-card { position: relative; padding: 22px 24px 18px; background: #fffaf0; border: 1px solid rgba(43, 26, 12, .4); box-shadow: 0 1px 0 rgba(43, 26, 12, .15), 3px 4px 0 rgba(43, 26, 12, .12);
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(80, 120, 170, .12) 31px 32px); }
.ds-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: 38px; width: 1px; background: rgba(163, 34, 26, .3); }
.ds-head { padding-left: 26px; margin-bottom: 14px; }
.ds-kicker { margin: 0 !important; font-family: var(--type); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.j-body .ds-head h4 { margin: 4px 0 2px; font-family: var(--engraved-sc); font-size: 28px; letter-spacing: .01em; text-transform: none; color: var(--ink); }
.ds-sub { margin: 0 !important; font-family: var(--hand); font-weight: 700; font-size: 22px; color: var(--red-2); }
.ds-tech { margin: 4px 0 0 !important; font-family: var(--type); font-size: 13px; color: var(--ink-3); }
.ds-set { margin: 0 0 12px 26px; padding: 0; }
.ds-row { display: grid; grid-template-columns: minmax(150px, 38%) 1fr; gap: 4px 16px; padding: 8px 0; border-bottom: 1px dashed rgba(43, 26, 12, .25); }
.ds-row dt { font-family: var(--type); font-size: 14px; letter-spacing: .02em; }
.ds-row dt small { display: block; font-size: 12px; color: var(--ink-3); letter-spacing: 0; }
.ds-row dd { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 24px; line-height: 1.1; color: var(--ink); }
.ds-note { margin: 4px 0 12px 26px !important; padding: 10px 14px; border-left: 3px solid var(--red); background: rgba(163, 34, 26, .06); font-size: 17px; }
.ds-rest { margin: 0 0 14px 26px; }
.ds-rest summary { cursor: pointer; font-family: var(--type); font-size: 13px; letter-spacing: .04em; color: var(--red-2); padding: 6px 0; }
.ds-rest .ds-set { margin-left: 0; }
.ds-rest .ds-row dd { font-size: 20px; color: var(--ink-2); }
.ds-row dd small { display: block; margin-top: 4px; font-family: var(--type); font-weight: 400; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.ds-wx { box-shadow: inset 4px 0 0 #2f6f9f; padding-left: 12px; background: rgba(47, 111, 159, .06); }
.ds-wx-key { margin: 0 0 10px 26px !important; padding-left: 12px; border-left: 4px solid #2f6f9f; font-size: 15px; color: var(--ink-2); }
.ds-sec { margin: 14px 0 0 26px; }
.j-body .ds-sec h5 { margin: 0 0 4px; font-family: var(--type); font-weight: 400; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--red-2); }
.ds-sec p, .ds-sec ul { margin: 0 0 6px; font-size: 17px; }
.ds-sec ul { padding-left: 18px; }
.ds-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin: 18px 0 0 26px; padding-top: 12px; border-top: 1px solid rgba(43, 26, 12, .3); }
.ds-foot p { margin: 0 !important; font-size: 15px; font-style: italic; }
.ds-foot .btn { padding: 8px 14px; font-size: 13px; }
@media (max-width: 760px) {
  .dset { padding: 16px 14px 18px; margin-left: -6px; margin-right: -6px; }
  .dset-row { grid-template-columns: 1fr; }
  .dset-chip { padding: 6px 10px 6px 8px; font-size: 12px; }
  .ds-card { padding: 16px 14px 14px; }
  .ds-card::before { left: 14px; }
  .ds-head, .ds-set, .ds-note, .ds-rest, .ds-sec, .ds-foot { margin-left: 10px !important; }
  .ds-head { padding-left: 10px; }
  .ds-row { grid-template-columns: 1fr; gap: 0; }
}

/* ================================================================ members' finds (Treasure Room) */
.pf-switch { display: flex; gap: 6px; margin: 4px 0 14px; }
.pf-switch button { padding: 8px 14px; border: 2px solid var(--ink); background: transparent; font-family: var(--type); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.pf-switch button[aria-pressed="true"] { background: var(--ink); color: #fbf3df; }
.pf-who { font-size: 16px; color: var(--ink-3); }
.pf-photo { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; }
.pf-preview { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border: 2px dashed rgba(43, 26, 12, .4); background: rgba(255, 252, 240, .6); font-family: var(--type); font-size: 13px; color: var(--ink-3); }
.pf-preview.has-photo { border-style: solid; padding: 6px 6px 18px; background: #fffaf0; box-shadow: 2px 3px 0 rgba(43, 26, 12, .15); }
.pf-preview img { width: 100%; height: 100%; object-fit: cover; }
.pf-pick { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pf-pick .btn { cursor: pointer; }
.pf-pick .btn:focus-within { outline: 3px solid var(--red); outline-offset: 3px; }
.pf-hint, .adm-hint { flex-basis: 100%; margin: 0 !important; font-size: 14px; font-style: italic; color: var(--ink-3); }
@media (pointer: fine) { .pf-camera { display: none; } }
.pf-check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.pf-check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--red); }
.pf-form textarea { min-height: 96px; }
.pf-mine h4 { margin-top: 26px !important; }
.pf-list { list-style: none; margin: 0; padding: 0; }
.pf-list li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px dashed rgba(43, 26, 12, .3); }
.pf-list img { width: 56px; height: 56px; object-fit: cover; border: 1px solid rgba(43, 26, 12, .35); }
.pf-list b { display: block; font-weight: 600; font-size: 17px; line-height: 1.2; }
.pf-status { font-family: var(--type); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--red-2); }
.pf-status.is-live { color: #3c6b2a; }
@media (max-width: 760px) {
  .pf-photo { grid-template-columns: 1fr; }
  .pf-preview { max-width: 240px; }
}

/* ================================================================ the admin page */
.sheet.admin-sheet { max-width: 1040px; transform: none; }
.adm-who { font-size: 16px; color: var(--ink-3); }
.adm-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.adm-tabs button { padding: 8px 12px; border: 2px solid var(--ink); border-radius: 6px; background: #e6d09f; font-family: var(--type); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.adm-tabs button[aria-current="page"] { background: var(--ink); color: #fbf3df; }
.adm-count { display: inline-block; min-width: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; text-align: center; }
.adm-panel { padding-top: 18px; }
.adm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.adm-head h3 { margin: 0 !important; }
.adm-head > div { display: flex; gap: 14px; align-items: center; font-family: var(--type); font-size: 13px; }
.adm-list { list-style: none; margin: 14px 0 0; padding: 0; }
.adm-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px dashed rgba(43, 26, 12, .3); }
.adm-item img, .adm-noimg { width: 64px; height: 64px; object-fit: cover; border: 1px solid rgba(43, 26, 12, .35); background: rgba(43, 26, 12, .06); }
.adm-item b { display: block; font-size: 18px; line-height: 1.2; }
.adm-item small { font-family: var(--type); font-size: 12px; color: var(--ink-3); }
.adm-state.is-published { color: #3c6b2a; }
.adm-state.is-pending { color: var(--red-2); }
.adm-acts { display: flex; gap: 12px; align-items: center; }
.adm-acts .btn { padding: 7px 12px; font-size: 13px; }
.adm-acts select { padding: 6px 8px; font-family: var(--type); font-size: 14px; background: #fbf3df; border: 1.5px solid var(--ink); }
.adm-queue { display: grid; gap: 16px; }
.adm-card { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding: 14px; background: #fffaf0; border: 2px solid var(--ink); box-shadow: 4px 5px 0 rgba(43, 26, 12, .18); }
.adm-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.j-body .adm-card h5 { margin: 0 0 4px; font-family: var(--engraved-sc); font-weight: 400; font-size: 24px; }
.adm-meta { font-family: var(--type); font-size: 13px; color: var(--ink-3); }
.adm-check { font-size: 15px; font-style: italic; color: var(--red-2); }
.adm-error { padding: 10px 14px; border-left: 4px solid var(--red); background: rgba(163, 34, 26, .08); }
.adm-form h3 { margin: 0 !important; font-size: 26px !important; }
.adm-form textarea.short { min-height: 70px; }
.adm-form textarea.long { min-height: 260px; }
.adm-photo { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center; }
.adm-status { border: 0; padding: 0; margin: 0; }
.adm-status legend { font-family: var(--type); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.adm-status label { display: flex; gap: 8px; align-items: center; font-size: 16px; text-transform: none; letter-spacing: 0; font-family: var(--body); color: var(--ink); }
.adm-signin { max-width: 640px; }
@media (max-width: 760px) {
  .adm-item { grid-template-columns: 48px 1fr; }
  .adm-item img, .adm-noimg { width: 48px; height: 48px; }
  .adm-acts { grid-column: 1 / -1; }
  .adm-card, .adm-photo { grid-template-columns: 1fr; }
}

/* ================================================================ single sheets (privacy, 404) */
.sheet-page body { overflow: auto; padding: 28px 16px 60px; }
.sheet {
  position: relative; max-width: 780px; margin: 0 auto; padding: 34px 54px 30px;
  background-color: var(--paper);
  background-image: radial-gradient(60% 40% at 85% 12%, rgba(150, 95, 35, .12), transparent 70%), radial-gradient(50% 35% at 10% 80%, rgba(150, 95, 35, .1), transparent 70%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(43, 26, 12, .5); transform: rotate(-.4deg);
}
.sheet .j-title { margin-top: 4px; }
.sheet-back { margin: 0 0 26px; }
.sheet-back .j-close { text-decoration: none; }
.sheet-foot { margin: 40px 0 0; padding-top: 16px; border-top: 1px dashed rgba(43, 26, 12, .45); font-family: var(--type); font-size: 13px; color: var(--ink-3); }
.sheet-foot a { color: inherit; }
@media (max-width: 760px) { .sheet { padding: 24px 20px; transform: none; } }

/* Without JavaScript the map still works: the key links straight to each page */
.no-js body { overflow: auto; }
.no-js .journal:target { visibility: visible; transform: none; }

/* the printed menu says what to do, so the handwritten hint is not needed beside it */
.key-in-map .hint { display: none; }

/* ================================================================ newsletter and dig alerts */
.signup { margin: 14px 0 0; padding: 18px 20px; background: #fbf3df; border: 2px solid var(--ink); box-shadow: 5px 6px 0 rgba(43, 26, 12, .2); }
.signup-row { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 14px 18px; align-items: end; }
.signup .btn { white-space: nowrap; }
.signup .pf-check { margin-top: 12px; }
.signup .form-status { margin: 8px 0 0; }
.signup .signup-note { margin: 6px 0 0 !important; }
.dig-alerts { padding: 18px 0 0; }
@media (max-width: 760px) {
  .signup { padding: 14px; }
  .signup-row { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- dig cards: photos, times, places, documents, Secure your place */
.exp-places { color: var(--red-2); font-weight: 700; }
.exp-places.full { color: var(--red); }
.exp-also { margin: -4px 0 10px !important; font-family: var(--type); font-size: 13px; color: var(--red-2); }
.exp-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 4px 0 12px; }
.exp-ph { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.exp-ph img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 5px solid #fbf6ea; box-shadow: 0 4px 10px -6px rgba(43, 26, 12, .6); }
.exp-ph.first { grid-column: 1 / -1; }
.exp-ph.first img { aspect-ratio: 16 / 7; }
.exp-video, .post-video { display: block; width: 100%; max-height: 420px; margin: 12px 0; background: #000; border: 5px solid #fbf6ea; }
.exp-docs, .exp-update { margin: 14px 0 0; padding: 12px 14px; border: 1px dashed var(--ink-3); background: rgba(255, 252, 240, .6); }
.exp-docs h6, .exp-update h6 { margin: 0 0 4px; font-family: var(--type); font-weight: 400; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-2); }
.exp-update p { font-size: 16.5px; margin: 4px 0; }
.exp-docs ul, .post-docs { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.exp-docs a, .post-docs a { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; color: var(--red-2); text-underline-offset: 3px; }
.exp-docs svg, .post-docs svg { width: 22px; height: 22px; flex: none; }
.post-docs { margin: 4px 0 10px; }
.exp-full { margin: 16px 0 0; font-family: var(--type); font-size: 15px; color: var(--red); }
.secure { margin: 14px 0 0; padding: 16px 18px; background: rgba(255, 252, 240, .8); border: 2px dashed var(--ink); }
.secure[hidden] { display: none; }
.secure .secure-lede { margin: 0 0 10px; font-size: 16.5px; }
.secure-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; align-items: end; }
.secure-row .sp-places { max-width: 120px; }
.secure .btn { white-space: nowrap; justify-self: end; }
.secure-row.no-places .btn { grid-column: 1 / -1; }
.secure .form-status { margin: 8px 0 0; }
.secure .small-print { margin: 6px 0 0; }
.post-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.post-photos button { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.post-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 4px solid #fbf6ea; }
@media (max-width: 760px) {
  .exp-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .secure { padding: 14px; }
  .secure-row .field:nth-child(1), .secure-row .field:nth-child(2) { grid-column: 1 / -1; }
  .secure .btn { justify-content: center; justify-self: stretch; }
}

/* ---------------------------------------------------------------- Meet the Team */
.feed.team-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.feed.team-grid .empty-note { grid-column: 1 / -1; }
.team-card { background: #fbf3df; border: 2px solid var(--ink); box-shadow: 4px 5px 0 rgba(43, 26, 12, .18); }
.team-photo { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-bottom: 2px solid var(--ink); }
.team-initial { display: grid; place-items: center; aspect-ratio: 1; background: var(--paper-2); border-bottom: 2px solid var(--ink); font-family: var(--display); font-size: 64px; color: var(--ink-3); }
.team-card > div { padding: 12px 16px 16px; }
.team-card h4 { margin: 0; font-family: var(--engraved-sc); font-weight: 400; font-size: 25px; line-height: 1.1; }
.team-card .team-role { margin: 3px 0 8px; font-family: var(--type); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--red-2); }
.team-card p { font-size: 16.5px; margin: 0; }

/* ---------------------------------------------------------------- the PDF reader */
.reader { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 320; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 8, 3, .9); }
.reader-box { width: 100%; max-width: 1000px; height: 100%; display: flex; flex-direction: column; background: var(--paper); border: 2px solid var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.reader-box header { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-bottom: 2px solid var(--ink); }
.reader-box header b { flex: 1; min-width: 0; font-family: var(--engraved-sc); font-weight: 400; font-size: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-box header a { font-family: var(--type); font-size: 13px; color: var(--red-2); white-space: nowrap; }
.reader-x { flex: none; width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 50%; background: none; font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; }
.reader iframe { flex: 1; width: 100%; border: 0; background: #fff; }

/* ---------------------------------------------------------------- the admin portal's preview banner (only in the browser that ran the portal) */
.portal-preview-bar { position: fixed; z-index: 400; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: center; width: max-content; max-width: calc(100% - 24px); padding: 9px 14px; background: #2b1a0c; color: #fbf3df; font-family: var(--type); font-size: 13px; border: 2px solid var(--red); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.portal-preview-bar b { padding: 1px 7px; background: var(--red); color: #fff; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.portal-preview-bar a { color: #f3c77a; }
