/* Manrope and Newsreader variable type. Fontsource 5.3.0, SIL OFL in assets/fonts. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/manrope-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/manrope-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/newsreader-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/newsreader-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ikliMap */
:root {
  color-scheme: light;
  --bg: #f1f5ee;
  --surface: #fbfcf8;
  --ink: #14332c;
  --mute: #49645a;
  --line: #cddacf;
  --sea: #1d473b;
  --panel: #e6eee5;
  --accent: #286350;
  --tag: #945039;
  --coral: #f0ad93;
  --heat: #ed986a;
  --bad: #a42e23;
  --good: #246746;
  --body: Manrope, system-ui, sans-serif;
  --display: Newsreader, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.6 var(--body);
}
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #aa502e; outline-offset: 3px; }
.leaflet-container a:focus-visible { outline: 3px solid #aa502e; outline-offset: 2px; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.025em; line-height: 1.06; }
h3, h4 { line-height: 1.28; }
.sr, .skip-link:not(:focus) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  inset: .5rem auto auto .5rem;
  z-index: 20;
  padding: .65rem 1rem;
  color: white;
  background: var(--sea);
}
.shell { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.shell > *, .header-inner > *, .atlas-grid > *, .field-notes > *, .modgrid > * { min-width: 0; }
main { min-height: 58vh; }
main:focus, #gozlem-haritasi:focus { outline: none; }
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner { min-height: 5rem; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.brand img { display: block; width: 9.55rem; height: auto; }
.tabbar, .utility-nav { display: flex; align-items: center; gap: .35rem; }
.tabbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 2.75rem;
  padding: .45rem .8rem;
  border-radius: .5rem;
  text-decoration: none;
  color: var(--mute);
  font-size: .865rem;
  font-weight: 750;
}
.tabbar a svg { width: 1rem; height: 1rem; flex: none; }
.tabbar a[aria-current="page"], .tabbar a:hover { background: var(--panel); color: var(--ink); }
.tabbar .shoot { margin-inline-start: .45rem; background: var(--sea); color: white; }
.tabbar .shoot:hover, .tabbar .shoot[aria-current="page"] { background: var(--ink); color: white; }
.tabbar .shoot[aria-current="page"] { box-shadow: inset 0 -3px var(--coral); }

.home-layout {
  display: grid;
  grid-template: "intro photo" auto "atlas atlas" auto "notes notes" auto / minmax(0, 1fr) minmax(0, 1.07fr);
  align-items: center;
  column-gap: clamp(2rem, 5vw, 5rem);
}
.hero-copy, .hero-photo { margin-block: clamp(2rem, 4vw, 3.25rem) clamp(2.25rem, 3.8vw, 3.2rem); }
.hero-copy { grid-area: intro; }
.hero-photo { grid-area: photo; }
.atlas { grid-area: atlas; }
.field-notes { grid-area: notes; }
.mobile-copy, .mobile-control, .camera-choice { display: none; }
.project-label {
  display: inline-block;
  margin-bottom: 1.1rem;
  border-left: 3px solid #bd765a;
  padding-left: .7rem;
  font-size: .85rem;
  font-weight: 800;
  color: var(--mute);
}
.hero-copy h1 { font-size: clamp(3.35rem, 5.1vw, 4.6rem); line-height: 1.01; letter-spacing: -.046em; }
.hero-intro { max-width: 29rem; margin-block: 1rem 1.5rem; color: var(--mute); font-size: clamp(1rem, 1.4vw, 1.22rem); }
.hero-status { margin-top: .75rem; color: var(--mute); font-size: .79rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.button, button.go, button.ghost, button.danger, .qdo, .fcta, .go2, .locbtn, .minelist button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.8rem;
  padding: .55rem .95rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  background: transparent;
  font-weight: 800;
  font-size: .875rem;
  text-decoration: none;
  cursor: pointer;
}
.button-primary, button.go { background: var(--sea); color: white; }
.button-primary:hover, button.go:hover { background: var(--ink); }
.button-primary span { padding-inline-start: .35rem; color: #ffd1bc; }
.button-text { color: var(--sea); }
.button-text:hover { text-decoration: underline; }
.hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1.58;
  overflow: hidden;
  border-radius: .7rem;
  background: #d3e2d9;
}
.hero-photo img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 50% 50%; }
.hero-photo figcaption {
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  padding: .2rem .48rem;
  border-radius: .25rem;
  background: #102a24;
  color: #ecf4ed;
  font-size: .65rem;
  font-weight: 700;
}

.atlas { border-top: 1px solid var(--line); padding-top: 1.35rem; }
.atlas-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; margin-bottom: 1rem; }
.atlas-heading h2, .field-section h2 { font-size: clamp(2.15rem, 4vw, 3.2rem); }
.atlas-heading p { font-size: .89rem; color: var(--mute); }
.atlas-grid {
  display: grid;
  grid-template: "map topics" auto "map legend" 1fr / minmax(0, 1fr) 15rem;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: .78rem;
  background: var(--surface);
}
.mapwrap { grid-area: map; position: relative; isolation: isolate; }
#map { position: relative; z-index: 0; min-height: 25rem; height: clamp(25rem, 47vw, 35rem); }
#map:not(.leaflet-container) { display: grid; place-items: center; padding: 1.5rem; text-align: center; background: var(--panel); }
.leaflet-container { font: 13px var(--body); background: #0b3231; }
.leaflet-control-attribution { font-size: 10px; }
.basemap-city { color: #e2eeeb; font: 700 11px/1.2 var(--body); white-space: nowrap; text-shadow: 0 1px 3px #0b3231; }
.basemap-city::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 4px 2px 0; border-radius: 50%; background: #c9e2d9; }
.topic-filter { grid-area: topics; padding: 1.35rem 1.35rem 0; border-inline-start: 1px solid var(--line); }
.topic-filter h3 { font-size: 1rem; }
.map-legend { grid-area: legend; padding-inline: 1.35rem; align-content: start; border-inline-start: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-block: .85rem; }
.topic-filter .chips { display: grid; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .3rem .65rem;
  border-radius: .4rem;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
}
.chip i { inline-size: .65rem; block-size: .65rem; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px #14332c38; }
.chip[aria-pressed="false"] { background: transparent; color: var(--mute); }
.chip[aria-pressed="false"] i { background: transparent !important; box-shadow: inset 0 0 0 1px var(--mute); }
.legend { display: grid; gap: .45rem; padding-block: .9rem; color: var(--mute); font-size: .75rem; }
.legend span { display: inline-flex; gap: .5rem; align-items: center; }
.legend p { margin-top: .35rem; }
#reset-filters { margin-top: -.25rem; }
.legend-cell { display: inline-block; width: .9rem; height: .9rem; background: #4a7768; clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); }
.legend-task { display: grid; place-items: center; width: .9rem; height: .9rem; border-radius: 50%; background: var(--heat); color: var(--ink); line-height: 1; }
.hexm i, .hexm b { position: absolute; clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); }
.hexm i { inset: 0; background: #0b3231; }
.hexm b { inset: 2px; }
.hexm.sel i { background: white; }
.hexm.sel b { inset: 3px; }
.qmark b {
  position: absolute;
  inset: 6px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #fbe0d2;
  background: var(--heat);
  color: #362414;
  font: 800 14px var(--body);
}
.qmark span { position: absolute; inset: 2px; border: 1px solid #f8c3a9; border-radius: 50%; }
.pop {
  position: absolute;
  z-index: 500;
  inset: auto .7rem .8rem;
  display: flex;
  gap: .65rem;
  align-items: center;
  max-width: 32rem;
  margin: 0 auto;
  padding: .6rem;
  border-radius: .6rem;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 .4rem 1.4rem #11292354;
}
.pop .th { position: relative; display: grid; place-items: center; flex: 0 0 3.6rem; height: 3.6rem; overflow: hidden; border-radius: .4rem; color: white; }
.pop .th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pop .tx { flex: 1; min-width: 0; font-size: .875rem; line-height: 1.4; }
.pop q { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pop .meta { font-size: .75rem; color: var(--mute); }
.pop .open, .pop .x {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  border: 0;
  border-radius: .4rem;
  background: var(--sea);
  color: white;
  font-weight: 800;
  cursor: pointer;
}
.pop .x { background: var(--panel); color: var(--ink); font-size: 1.25rem; }

.field-notes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 5.5rem); margin-block: 3.25rem 4rem; }
.field-section { border-top: 1px solid var(--line); padding-top: 1.15rem; }
.field-section h2 { margin-bottom: 1.1rem; }
.feed, .rules, .minelist, .utility-links { margin: 0; padding: 0; list-style: none; }
.fitem { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .7rem; border-bottom: 1px solid var(--line); padding-block: .85rem; }
.fic, .qic { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .45rem; color: white; }
.ftop { display: flex; flex-wrap: wrap; gap: .2rem .6rem; font-size: .75rem; color: var(--mute); }
.ftag, .qtag, .season { color: var(--tag); font-weight: 800; }
.fitem h3, .fitem h4 { margin: .25rem 0; font-size: 1rem; }
.fitem p, .qcard p { font-size: .875rem; color: var(--mute); }
.fcta, .more { margin-top: .35rem; padding-inline: 0; color: var(--sea); text-decoration: underline; text-underline-offset: .25em; }
.more { min-height: 2.75rem; border: 0; background: transparent; font-size: .875rem; font-weight: 800; cursor: pointer; }
.season { margin-bottom: .35rem; font-size: .88rem; }
.reel { display: flex; gap: .65rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: .25rem .25rem .75rem; margin-inline: -.25rem; }
.quest-list { margin-top: .85rem; }
.qcard { flex: 0 0 min(82%, 16rem); display: grid; align-content: start; gap: .5rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--surface); padding: .85rem; scroll-snap-align: start; }
.qcard.flash, .pcard.flash { box-shadow: inset 0 0 0 3px #aa502e; }
.qcard.done { border-color: var(--accent); }
.qtop, .qfoot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.qtag, .qfoot { font-size: .75rem; }
.qcard h3 { font-size: .99rem; }
.qic { width: 1.85rem; height: 1.85rem; }
.qdo, .go2, .locbtn, button.ghost, .minelist button { border-color: var(--line); background: var(--surface); color: var(--sea); }
.qdo:hover, .go2:hover, .locbtn:hover, button.ghost:hover, .minelist button:hover { border-color: var(--accent); background: var(--panel); }

.pad, .moderation-main, .doc { padding-block: clamp(2.15rem, 5vw, 4rem); }
.pad { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.reading-column, .narrow { max-width: 47rem; margin-inline: auto; }
.page-title, .doc h1 { font-size: clamp(2.85rem, 6.5vw, 5rem); margin-bottom: .8rem; }
.sub, .hint, .service-status { color: var(--mute); }
.sub { margin-bottom: .8rem; }
.sub:empty { display: none; }
.page-intro .sub { max-width: 39rem; font-size: 1.08rem; }
.panel, .empty { border: 1px solid var(--line); border-radius: .6rem; padding: 1rem; background: var(--surface); }
.empty { color: var(--mute); }
.entries-page .plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1rem; margin-top: 1.2rem; }
.pcard { overflow: hidden; border: 1px solid var(--line); border-radius: .7rem; background: var(--surface); }
.pcard .ph { position: relative; display: flex; align-items: flex-start; aspect-ratio: 4 / 3; overflow: hidden; padding: .8rem; color: white; }
.pcard .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard .ph span { position: relative; padding: .24rem .55rem; border-radius: .4rem; background: #102a24; font-size: .75rem; font-weight: 800; }
.pcard .ph svg { position: absolute; right: 1rem; bottom: 1rem; }
.pcard .b { display: grid; gap: .6rem; justify-items: start; padding: 1rem; }
.pcard blockquote { font: 500 1.5rem/1.2 var(--display); }
.pcard .meta, .pcard .need { font-size: .85rem; color: var(--mute); }

.block { margin-top: 1.8rem; border-top: 1px solid var(--line); padding-top: 1.05rem; }
.page-intro { margin-top: 0; padding-top: 0; border: 0; }
.sec { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem; margin-bottom: .75rem; font-size: clamp(1.7rem, 4vw, 2.35rem); }
.sec small { color: var(--mute); font: 700 .8rem var(--body); letter-spacing: 0; }
.rules { display: grid; gap: .7rem; }
.rules li { border-inline-start: 2px solid #bf856c; padding-inline-start: .7rem; }
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; font-size: .8rem; color: var(--mute); }
.ladder div { border-top: 3px solid var(--line); padding-top: .45rem; }
.ladder div.done { border-color: var(--accent); }
.ladder div.now { border-color: #bf856c; }
.ladder b { display: block; color: var(--ink); font-size: .9rem; }
.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 5.5rem), 1fr)); gap: .8rem; overflow: visible; }
.badge { text-align: center; font-size: .78rem; font-weight: 800; }
.badge .b { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin: 0 auto .35rem; border-radius: 50%; color: white; }
.badge.lock { color: var(--mute); }
.badge.lock .b { background: var(--panel) !important; color: var(--mute); }
.principles { display: grid; }
.principles details { border-bottom: 1px solid var(--line); }
.principles summary { min-height: 2.75rem; padding: .5rem 0; font-weight: 800; cursor: pointer; }
.principles p { margin-bottom: .75rem; color: var(--mute); }
.minelist { display: grid; gap: .5rem; }
.minelist li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: .55rem; padding: .55rem .75rem; background: var(--surface); }
.st { font-weight: 800; }
.st.pending { color: var(--tag); }
.st.approved { color: var(--good); }
.st.rejected, .st.withdrawn { color: var(--mute); }

form, .step, .win { display: grid; gap: .9rem; }
#f, .win { border: 1px solid var(--line); border-radius: .65rem; background: var(--surface); padding: clamp(1rem, 4vw, 1.7rem); }
.big { font-size: clamp(1.9rem, 6vw, 2.8rem); margin-bottom: .4rem; }
.steps { display: flex; align-items: center; gap: .7rem; color: var(--mute); font-size: .85rem; }
.bar, .xp { height: .45rem; overflow: hidden; border-radius: 1rem; background: var(--line); }
.steps .bar { flex: 1; }
.bar i, .xp i { display: block; width: 0; height: 100%; background: var(--accent); }
.lbl { display: block; font-size: .88rem; font-weight: 800; margin-bottom: .3rem; }
.lbl span { color: var(--mute); font-weight: 500; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid #aebfb2;
  border-radius: .5rem;
  background: var(--surface);
  color: var(--ink);
  padding: .6rem .65rem;
}
textarea { min-height: 7rem; resize: vertical; }
textarea.short { min-height: 5.8rem; }
.counter { text-align: end; color: var(--mute); font-size: .78rem; }
.pickphoto { position: relative; display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; border-radius: .55rem; background: var(--sea); color: white; font-weight: 800; cursor: pointer; }
.photo-controls { display: grid; gap: .55rem; }
.pickphoto.camera-choice { display: none; }
.pickphoto input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pickphoto:focus-within { outline: 3px solid #aa502e; outline-offset: 3px; }
.ph0 { display: grid; place-items: center; aspect-ratio: 2 / 1; overflow: hidden; border: 1px dashed #aebfb2; border-radius: .55rem; background: var(--panel); color: var(--mute); }
.ph0 img { width: 100%; height: 100%; object-fit: cover; }
.hint { font-size: .8rem; }
#pick { height: 16rem; border-radius: .55rem; }
.opts, .btns, .navbtns, .withdraw-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.opts label { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; border: 1px solid var(--line); border-radius: .5rem; padding: .25rem .6rem; font-size: .88rem; cursor: pointer; }
.opts label:has(input:checked) { border-color: var(--sea); background: var(--panel); color: var(--ink); }
.opts i { width: .55rem; height: .55rem; border-radius: 50%; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--sea); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.check { display: flex; align-items: flex-start; gap: .5rem; min-height: 2.75rem; padding-block: .3rem; font-size: .88rem; cursor: pointer; }
.check input { margin-top: .16rem; width: 1.3rem; height: 1.3rem; flex: none; }
.err { color: var(--bad); font-weight: 750; }
.err:empty { display: none; }
.btns .go, .navbtns .go, .withdraw-row input { flex: 1; }
button:disabled, input:disabled { opacity: .7; cursor: not-allowed; }
.mini { display: grid; gap: .35rem; background: var(--panel); border-radius: .55rem; padding: .6rem; font-size: .85rem; }
.wcard { display: flex; align-items: center; gap: .75rem; padding: 1rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--panel); }
.wtop { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: space-between; align-items: baseline; }
.xp { margin-block: .35rem; }
.lvl { display: grid; place-items: center; flex: none; width: 3.3rem; height: 3.3rem; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p, 0) * 1%), var(--line) 0); }
.lvl b { display: grid; place-items: center; width: 2.76rem; height: 2.76rem; border-radius: 50%; background: var(--surface); font-size: 1.2rem; }
.plus { color: var(--good); font-weight: 800; }
.code { overflow-wrap: anywhere; border-radius: .4rem; padding: .5rem .7rem; color: var(--sea); background: var(--panel); font-family: ui-monospace, monospace; font-weight: 700; user-select: all; }
.withdraw-row { margin-top: .5rem; }
.withdraw-row input { min-width: 9.5rem; }
.toast { position: fixed; z-index: 12; inset: auto 1rem calc(1rem + env(safe-area-inset-bottom)) 1rem; width: fit-content; max-width: calc(100% - 2rem); margin-inline: auto; padding: .7rem .9rem; border-radius: .55rem; background: var(--ink); color: white; font-size: .9rem; box-shadow: 0 .4rem 1rem #11292340; }
.toast:empty { display: none; }

.site-footer { border-top: 1px solid var(--line); padding-block: 1.3rem; color: var(--mute); font-size: .8rem; }
.footer-inner, .footer-inner div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .45rem 1rem; }
.footer-inner strong { margin-inline-end: .4rem; color: var(--ink); }
.footer-inner a { min-height: 2.75rem; display: inline-flex; align-items: center; }
.utility-nav, .utility-links { flex-wrap: wrap; }
.utility-links { display: flex; align-items: center; gap: .5rem; font-size: .85rem; }
#who { overflow-wrap: anywhere; }
#who:empty, .utility-links li:has(> [hidden]) { display: none; }
.login { max-width: 28rem; }
.login h2 { font-size: 2.1rem; }
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .9rem; }
.tabs button { min-height: 2.75rem; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--surface); font-weight: 800; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--sea); color: white; border-color: var(--sea); }
.modgrid { display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: 1rem; align-items: start; }
.list { display: grid; gap: .55rem; max-height: 75vh; overflow: auto; padding: .2rem; }
.list button { display: grid; gap: .25rem; padding: .65rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--surface); text-align: start; cursor: pointer; }
.list button[aria-current="true"] { border-color: var(--sea); box-shadow: inset 3px 0 var(--coral); }
.list small, .facts { color: var(--mute); }
.ed { display: grid; gap: .8rem; }
.canvaswrap { background: #14332c; border-radius: .5rem; overflow: hidden; touch-action: none; }
.canvaswrap canvas { display: block; width: 100%; height: auto; cursor: crosshair; }
.facts { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .85rem; }
.facts b { color: var(--ink); }
button.danger { border-color: var(--bad); color: var(--bad); }
.doc h2 { margin-block: 1.65rem .45rem; font-size: 1.75rem; }
.doc p:not(:last-child) { margin-bottom: .7rem; }
.doc li + li { margin-top: .35rem; }
.doc ul { padding-inline-start: 1.2rem; }
.draft { background: #f6e5d7; color: #60392c; padding: .75rem 1rem; border-inline-start: 3px solid #bf856c; border-radius: .35rem; }
.ph-fill { background: #fff1b8; color: #4a3b00; padding-inline: .2rem; }

@media (max-width: 900px) {
  .home-layout { column-gap: 1.5rem; }
  .hero-copy h1 { font-size: clamp(3.1rem, 5.4vw, 4.6rem); }
  .atlas-grid { grid-template-columns: minmax(0, 1fr) 12.5rem; }
  .topic-filter, .map-legend { padding-inline: 1rem; }
}

@media (max-width: 700px) {
  :root { --tab-clearance: calc(4.35rem + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-block: .75rem var(--tab-clearance); }
  body.app { padding-bottom: var(--tab-clearance); }
  .shell, .pad { width: calc(100% - 2rem); }
  .header-inner { min-height: 3.5rem; gap: .4rem; }
  .brand img { width: 7.7rem; }
  .tabbar {
    position: fixed;
    z-index: 15;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .2rem;
    padding: .3rem max(.55rem, env(safe-area-inset-right, 0px)) calc(.3rem + env(safe-area-inset-bottom, 0px)) max(.55rem, env(safe-area-inset-left, 0px));
    border-top: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 -.3rem 1rem #14332c14;
  }
  .tabbar a { flex-direction: column; min-height: 3.15rem; gap: .16rem; padding: .22rem .15rem; font-size: .68rem; white-space: nowrap; }
  .tabbar a svg { width: 1.05rem; height: 1.05rem; }
  .tabbar a[aria-current="page"] { color: var(--ink); background: var(--panel); box-shadow: inset 0 2px var(--accent); }
  .tabbar .shoot { margin-inline-start: 0; color: var(--ink); background: #f5d9ca; }
  .tabbar .shoot:hover, .tabbar .shoot[aria-current="page"] { color: white; background: var(--sea); box-shadow: inset 0 2px var(--coral); }
  .app .toast { bottom: calc(var(--tab-clearance) + .5rem); }

  .home-layout { grid-template: "intro" auto "atlas" auto "photo" auto "notes" auto / minmax(0, 1fr); align-items: stretch; }
  .hero-copy { margin-block: .8rem .55rem; }
  .hero-copy h1 { font-size: clamp(1.95rem, 8.3vw, 2.15rem); line-height: 1.01; letter-spacing: -.035em; }
  .hero-intro { margin-block: .45rem .25rem; font-size: .85rem; }
  .hero-status { margin-top: .35rem; font-size: .73rem; }
  .hero-copy:has(.hero-status:not([hidden])) .hero-intro { display: none; }
  .hero-actions, .project-label, .desktop-copy { display: none; }
  .mobile-copy { display: inline; }
  .hero-photo { margin-block: 1.15rem 0; aspect-ratio: 2.45; }
  .hero-photo img { object-position: 55% 52%; }

  .atlas { padding-top: .35rem; }
  .atlas-heading { align-items: center; gap: .35rem; margin-bottom: .35rem; }
  .atlas-heading h2 { font-size: clamp(1.7rem, 6.5vw, 2.6rem); }
  .atlas-grid { grid-template: "topics" auto "map" auto "legend" auto / minmax(0, 1fr); }
  #map { height: clamp(18.5rem, 46vh, 23rem); min-height: 18.5rem; }
  #map .leaflet-control-zoom a { width: 2.75rem; height: 2.75rem; line-height: 2.75rem; }
  .mobile-control { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 2.75rem; padding: .3rem .6rem; border: 1px solid var(--line); border-radius: .45rem; color: var(--ink); background: var(--surface); font-size: .73rem; font-weight: 800; cursor: pointer; }
  .filter-toggle { flex: 0 0 auto; }
  .mobile-control[aria-expanded="true"], .mobile-control[aria-pressed="true"] { border-color: var(--sea); background: var(--sea); color: white; }
  .filter-count { color: inherit; }
  .map-pan { position: absolute; z-index: 450; inset: .6rem .6rem auto auto; box-shadow: 0 1px .4rem #14332c20; }
  .topic-filter { display: none; border-inline-start: none; border-bottom: 1px solid var(--line); padding: .7rem .75rem; }
  .atlas[data-filters-open] .topic-filter { display: block; }
  .topic-filter .chips { display: flex; margin-block: .45rem 0; }
  .topic-filter h3 { font-size: .85rem; }
  .topic-filter #reset-filters { margin: .25rem 0 0; }
  .map-legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; border-inline-start: none; padding: .45rem .6rem; font-size: .68rem; }
  .legend p { flex-basis: 100%; margin-top: 0; }

  .field-notes { grid-template-columns: minmax(0, 1fr); gap: 1.45rem; margin-block: 1.4rem 2rem; }
  .quest-list .qcard { flex-basis: min(86%, 18rem); }
  .app .pad { padding-block-start: 1.45rem; }
  .app .page-title { font-size: clamp(2.1rem, 9.8vw, 3.2rem); }
  .photo-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pickphoto.camera-choice { display: flex; }
  .photo-controls .pickphoto { min-height: 3rem; padding: .4rem; text-align: center; font-size: .79rem; }
  .photo-library { background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
  .capture-return { display: inline-flex; }
  .ladder, .row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modgrid { grid-template-columns: minmax(0, 1fr); }
  .list { max-height: none; }
}
@media (max-width: 360px) {
  .pop .th { display: none; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
}
