/* Injera Finder: warm injera-beige ground, sefed colours (berbere, green, honey, near-black on straw), Bricolage Grotesque headings over Figtree. */
:root {
  --bg: #f4ecdf;
  --surface: #fffbf4;
  --ink: #241a14;
  --muted: #5f4e3d;
  --line: #e3d6c0;
  --line-strong: #d9c9b0;
  --accent: #8a3a10;          /* links */
  --btn-bg: #a8362b;          /* primary buttons */
  --btn-ink: #ffffff;
  --berbere: #a8362b;
  --green: #2e7d4f;
  --honey: #e0a030;
  --honey-ink: #8a5a12;
  --black: #2a1d16;
  --straw: #e8c88a;
  --marker: #a8362b;
  --map-land: #eadfcb;
  --map-edge: #d3c2a6;
  --map-sea: #f4ecdf;
  --tile-filter: sepia(.25) saturate(.85);
  --shadow: 0 1px 2px rgba(36, 26, 20, .06), 0 10px 28px rgba(36, 26, 20, .08);
  --display: "Bricolage Grotesque", "Segoe UI", Helvetica, Arial, sans-serif;
  --body: "Figtree", "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17110d; --surface: #221913; --ink: #f3e9da; --muted: #c9b8a2; --line: #3a2c22; --line-strong: #4a382b;
    --accent: #f2b35a; --btn-bg: #e9a23b; --btn-ink: #17110d; --berbere: #e2715c; --green: #6cc596; --honey: #e9a23b; --honey-ink: #f2c06a;
    --black: #f3e9da; --straw: #4a382b; --marker: #e9a23b;
    --map-land: #2a201a; --map-edge: #4a382b; --map-sea: #17110d;
    --tile-filter: invert(1) hue-rotate(180deg) brightness(.8) contrast(.9) saturate(.5) sepia(.2);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17110d; --surface: #221913; --ink: #f3e9da; --muted: #c9b8a2; --line: #3a2c22; --line-strong: #4a382b;
  --accent: #f2b35a; --btn-bg: #e9a23b; --btn-ink: #17110d; --berbere: #e2715c; --green: #6cc596; --honey: #e9a23b; --honey-ink: #f2c06a;
  --black: #f3e9da; --straw: #4a382b; --marker: #e9a23b;
  --map-land: #2a201a; --map-edge: #4a382b; --map-sea: #17110d;
  --tile-filter: invert(1) hue-rotate(180deg) brightness(.8) contrast(.9) saturate(.5) sepia(.2);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: clip;
  font-family: var(--body); font-size: 1rem; line-height: 1.55;
}
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Coil stripe: the bands of a sefed, laid flat. Full width wherever it sits. */
.coil { height: 14px; width: 100vw; margin-left: calc(50% - 50vw);
  background: linear-gradient(#b83a2b 0 3px, #e8c88a 3px 4px, #2a1d16 4px 6px, #e8c88a 6px 7px, #2e7d4f 7px 10px, #e8c88a 10px 11px, #e0a030 11px 14px); }

.wrap { max-width: 74rem; margin: 0 auto; padding-inline: 1rem; }
@media (min-width: 720px) { .wrap { padding-inline: 2rem; } }

/* Header */
.site-head { background: var(--bg); position: relative; z-index: 2; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; padding-block: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.brand svg { width: 32px; height: 32px; flex: 0 0 auto; }
.nav { display: flex; gap: .4rem 1.5rem; flex-wrap: wrap; align-items: center; font-size: .97rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; }
.nav a.nav-cta { background: var(--btn-bg); color: var(--btn-ink); padding: .5rem .95rem; border-radius: 999px; font-weight: 600; }
.nav a.nav-cta:hover { text-decoration: none; filter: brightness(1.08); }
.nav-toggle { display: none; font: inherit; font-size: .95rem; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
@media (max-width: 760px) {
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: .4rem 0 .6rem; }
  .js .nav.open { display: flex; }
  .js .nav a { padding: .75rem .25rem; border-top: 1px solid var(--line); }
  .js .nav a.nav-cta { margin-top: .6rem; text-align: center; border-top: 0; }
}

main { padding-block: 1.25rem 3.5rem; }
.crumbs { font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .7rem; position: relative; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { opacity: .6; }
.lede { color: var(--muted); max-width: 60ch; margin: .7rem 0 0; font-size: 1.05rem; }
.eyebrow { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }

/* Page heads carry a sefed in the corner */
.page-head { display: grid; gap: .25rem; margin-bottom: 1.6rem; position: relative; isolation: isolate; padding-top: .4rem; }
.page-head::before { content: ""; position: absolute; z-index: -1; right: -70px; top: -46px; width: 170px; height: 170px;
  background: url("sefed.svg") center / contain no-repeat; pointer-events: none; }
.page-head h1 { max-width: calc(100% - 100px); }
@media (min-width: 760px) {
  .page-head::before { right: -120px; top: -96px; width: 360px; height: 360px; }
  .page-head h1, .page-head .lede, .page-head .facts { max-width: min(60ch, calc(100% - 260px)); }
  .page-head h1 { max-width: min(16ch, calc(100% - 260px)); }
}
.facts { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: .9rem; color: var(--muted); font-size: .97rem; }
.facts b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 1.15rem; margin-right: .3rem; }

section { margin-top: 2.5rem; }
section > h2 { margin-bottom: 1rem; }

/* Home hero */
.home-hero { position: relative; isolation: isolate; padding-block: 2.5rem 2.75rem; display: grid; gap: 1.2rem; }
.hero-sefed { position: absolute; z-index: -1; right: -56px; top: -30px; width: 190px; height: 190px; pointer-events: none; }
@media (max-width: 759px) { .home-hero { padding-top: 172px; } }
@media (min-width: 760px) { .hero-sefed { width: 620px; height: 620px; right: -170px; top: -80px; } }
.home-hero h1 { font-size: clamp(3rem, 1.8rem + 5.2vw, 5.6rem); line-height: .95; max-width: 10ch; }
.home-hero > p { margin: 0; color: var(--muted); max-width: 32em; font-size: 1.2rem; }

/* Search */
.search { display: grid; gap: .8rem; max-width: 44rem; margin-top: .4rem; }
.search-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.search input[type="search"] { flex: 1 1 18rem; min-width: 0; font: inherit; font-size: 1.1rem; height: 58px; padding: 0 1.3rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); }
.search select { font: inherit; height: 44px; padding: 0 .7rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); }
.btn { font: inherit; font-weight: 600; border: 1px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-ink); min-height: 44px; padding: .55rem 1.3rem; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.search .btn[type="submit"] { height: 58px; padding-inline: 1.7rem; font-size: 1.1rem; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); font-weight: 500; }
.search label.inline { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .97rem; }
.status { font-size: .95rem; color: var(--muted); min-height: 1.4em; margin: 0; }
.results { display: grid; gap: 0; }
.results .group:first-child { border-top: 0; }
.dist { font-size: .85rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hint { font-size: .9rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.chip { font: inherit; font-size: .95rem; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .3rem 1rem; cursor: pointer; }
.chip:hover { border-color: var(--line-strong); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--berbere); }
.chip:nth-of-type(4n+2) .dot { background: var(--green); }
.chip:nth-of-type(4n+3) .dot { background: var(--honey); }
.chip:nth-of-type(4n+4) .dot { background: var(--black); }
.chip .n { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.results-wrap { margin-top: 0; }
.results-wrap:has(.status:not(:empty)) { margin-block: 0 2rem; }

/* Map */
.map { height: clamp(260px, 46vw, 480px); width: 100%; max-width: 100%; border-radius: 22px;
  background: var(--map-land); overflow: hidden; border: 0; }
.map.small { height: clamp(220px, 34vw, 360px); }
.map-note { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.leaflet-container { font-family: var(--body); background: var(--map-sea); }
.leaflet-tile-pane { filter: var(--tile-filter); }
.leaflet-tooltip { font-family: var(--body); font-size: .9rem; background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.leaflet-tooltip-top:before { border-top-color: var(--surface); }
.leaflet-bar a, .leaflet-control-attribution { background: var(--surface); color: var(--ink); }
.leaflet-control-attribution a { color: var(--accent); }

/* Lists of places: cards with a Map pill */
.group { padding-block: 1.1rem; border-top: 1px solid var(--line); display: grid; gap: .7rem; }
.group:last-child { border-bottom: 1px solid var(--line); }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.group-head h3 { font-size: 1.25rem; }
.group-head .count { color: var(--muted); font-size: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.places { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: .55rem; }
.places li { display: flex; gap: .6rem; align-items: center; justify-content: space-between; min-height: 56px; padding: .55rem .6rem .55rem .95rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.places .name { min-width: 0; overflow-wrap: anywhere; font-size: 1.02rem; }
.places .meta { display: inline-flex; gap: .45rem; align-items: center; flex-shrink: 0; }
.places.shops li { border-left: 5px solid var(--honey); }
.places a.out { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--berbere) 45%, transparent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
.places a.out:hover, .places a.out:focus-visible { color: var(--berbere); text-decoration-color: currentColor; }
.places a.out::after { content: "\2197"; font-size: .72em; margin-left: .2em; opacity: .55; vertical-align: .15em; }
.maplink { display: inline-flex; align-items: center; min-height: 36px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--green); color: var(--green);
  font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.maplink:hover, .maplink:focus-visible { background: var(--green); color: var(--surface); }
.places.shops .maplink { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.places.shops .maplink:hover { filter: brightness(1.08); }
.prose .maplink { min-height: 0; padding: .05rem .6rem; }
.tag { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.tag.shop { color: var(--honey-ink); border-color: color-mix(in srgb, var(--honey) 60%, transparent); }
.tag.social { color: var(--muted); }
.tag.old { color: var(--berbere); border-color: color-mix(in srgb, var(--berbere) 40%, transparent); }
.list-head { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .8rem; }
.list-head h2 { margin: 0; }
.list-head.shops h2 { color: var(--berbere); }
.list-head.eat h2 { color: var(--green); }
.list-head .count { color: var(--muted); font-weight: 600; }
.more { font-size: .97rem; }

/* Index grids (countries, states, cities) */
.index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0 2rem; }
.index li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 48px; padding: .3rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
.index li a { min-width: 0; overflow-wrap: anywhere; color: var(--ink); text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.index li a:hover { color: var(--accent); }
.index .count { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; font-weight: 600; }
.index.pills .count { min-width: 2.3rem; text-align: center; padding: .15rem .55rem; border-radius: 999px; color: #ffffff; background: #b83a2b; }
.index.pills li:nth-child(4n+2) .count { background: #2e7d4f; }
.index.pills li:nth-child(4n+3) .count { background: #8a5a12; }
.index.pills li:nth-child(4n+4) .count { background: #2a1d16; }
.continent { margin-top: 1.8rem; }
.continent h3 { font-family: var(--body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: .2rem; }

/* Info cards */
.cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.card { padding: 1.5rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--green); display: grid; gap: .45rem; align-content: start; }
.card:nth-child(2) { border-top-color: var(--berbere); }
.card:nth-child(3) { border-top-color: var(--honey); }
.card h3 { font-size: 1.3rem; }
.card p { margin: 0; color: var(--muted); }

/* Toggle (segmented control) */
.toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px; background: var(--surface); gap: 2px; margin-bottom: 1rem; flex-wrap: wrap; }
.toggle button { font: inherit; font-size: .95rem; min-height: 40px; border: 0; background: transparent; color: var(--muted); padding: 0 1rem; border-radius: 999px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-ink); font-weight: 600; }

.two { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.prose { max-width: 66ch; }
.prose p, .prose li { color: var(--ink); }
.prose h2 { margin-top: 2rem; }

.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.site-foot .wrap { padding-block: 1.5rem 2.2rem; display: grid; gap: .4rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Forms */
.form { max-width: 40rem; display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field legend { font-weight: 600; font-size: .97rem; padding: 0; }
.field .opt { font-weight: 400; color: var(--muted); font-size: .88rem; }
.field input, .field select, .field textarea { font: inherit; min-height: 48px; padding: .65rem .9rem; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); width: 100%; min-width: 0; }
.field textarea { resize: vertical; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.radios { display: grid; gap: .45rem; margin-top: .3rem; }
.radios label { display: flex; gap: .55rem; align-items: center; font-weight: 400; min-height: 32px; }
.radios input { accent-color: var(--berbere); width: 1.1rem; height: 1.1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; gap: .8rem; align-items: center; }
.btn:disabled { opacity: .6; cursor: progress; }
.status.ok { color: var(--green); }
.status.warn { color: var(--berbere); }
.suggest-line { margin-top: 2.5rem; color: var(--muted); font-size: .97rem; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.wrap-actions { flex-wrap: wrap; }

.faq { margin-top: 2.75rem; max-width: 62ch; }
.faq h3 { font-family: var(--body); font-size: 1.02rem; font-weight: 600; letter-spacing: 0; margin: 1.1rem 0 .25rem; }
.faq p { margin: 0; color: var(--muted); }
