/* «Κοντά μου» (F4), 23 Nov 2026 — the page /near: one row of districts, the island, the list. Linked by near.html itself (the island
   is static and must be styled at first paint) and again by /features/boot.js before near.js (the same file, from the cache).
   Every class is «ef-ne-…». Colours and corners ONLY from the shared set: --ef-bg --ef-bg2 --ef-card --ef-ink --ef-ink2 --ef-ink3
   --ef-rule --ef-rule2 --ef-red · --ef-rad (15px) --ef-rad-s (10px) · pills 999px; a pin takes its section's colour from ef.SEC (--c).
   The look is the paper's engravings: a cream sea, the land a shade darker, a fine ink coast with three water lines around it.
   THE ISLAND IS ONE: no rule here may draw a line across it. A district shows only as a soft tint when the reader picks it. */

/* ---- the one row: districts (and the days at its end). The pills are the tool pages' shared .ef-chip (tools.css); the count is its <b> */
.ef-ne-bar{display:flex;align-items:center;gap:6px;min-height:36px;margin:9px 0 0;padding:1px 0;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.ef-ne-bar::-webkit-scrollbar{display:none}
.ef-ne-bar.r{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 30px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 30px),transparent)}
.ef-ne-bar.l{-webkit-mask-image:linear-gradient(to left,#000 calc(100% - 30px),transparent);mask-image:linear-gradient(to left,#000 calc(100% - 30px),transparent)}
.ef-ne-bar.l.r{-webkit-mask-image:linear-gradient(to right,transparent,#000 30px,#000 calc(100% - 30px),transparent);mask-image:linear-gradient(to right,transparent,#000 30px,#000 calc(100% - 30px),transparent)}
.ef-ne-pill{font-variant-numeric:tabular-nums}
.ef-ne-pill:focus-visible,.ef-ne-more:focus-visible,.ef-ne-x:focus-visible{outline:2px solid var(--ef-red);outline-offset:2px}
.ef-ne-range{flex:none;margin-left:auto;padding:0 2px 0 10px;font:600 11px/1 Inter,system-ui,sans-serif;color:var(--ef-ink3);white-space:nowrap}

/* ---- the island */
.ef-ne-grid{margin-top:8px}
.ef-ne-map{position:relative;margin:0;width:100%;aspect-ratio:836/528;max-height:46vh;overflow:hidden;border:1px solid var(--ef-rule);border-radius:var(--ef-rad);background:var(--ef-card);
  touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
.ef-ne-svg{position:absolute;inset:0;display:block;width:100%;height:100%}
/* the water lines of an engraved chart: the coast stroked wide in ink-grey, then a little narrower in the sea's own colour, three times;
   the land covers the inner half. Widths are screen pixels (the path has vector-effect: non-scaling-stroke), so they keep their look at any zoom. */
.ef-ne-sea use{fill:none;stroke-linejoin:round;stroke-linecap:round}
.ef-ne-sea .a{stroke:var(--ef-rule)}.ef-ne-sea .b{stroke:var(--ef-card)}
.ef-ne-sea .w3.a{stroke-width:21px;opacity:.55}.ef-ne-sea .w3.b{stroke-width:19.6px}
.ef-ne-sea .w2.a{stroke-width:12.6px;opacity:.8}.ef-ne-sea .w2.b{stroke-width:11.2px}
.ef-ne-sea .w1.a{stroke-width:6px}.ef-ne-sea .w1.b{stroke-width:4.6px}
.ef-ne-land{fill:var(--ef-bg2);stroke:none}
.ef-ne-coast{fill:none;stroke:var(--ef-ink);stroke-width:1px;stroke-linejoin:round;pointer-events:none}
.ef-ne-d{fill:var(--ef-rule);fill-opacity:0;stroke:none;cursor:pointer;transition:fill-opacity .3s}
.ef-ne-d.on{fill-opacity:.5}
/* the six names, in the small capitals of a chart; they step aside when the map moves in and the pins carry their own names */
.ef-ne-labs,.ef-ne-pins{position:absolute;inset:0;pointer-events:none}
.ef-ne-labs{transition:opacity .2s}
.ef-ne-labs span{position:absolute;transform:translate(-50%,-50%);font:700 8px/1 Inter,system-ui,sans-serif;letter-spacing:.22em;text-transform:uppercase;color:var(--ef-ink3);white-space:nowrap}
.ef-ne-labs span.off,.ef-ne-map.in .ef-ne-labs{opacity:0}
.ef-ne-pins{transition:opacity .18s}
.ef-ne-map.moving .ef-ne-pins{opacity:0;transition:none}.ef-ne-map.moving .ef-ne-pin{pointer-events:none}
/* a pin: the button is the finger-sized target (38px round, never overlapping another: near.js merges pins that would), the dot inside is what shows */
.ef-ne-pin{position:absolute;width:38px;height:38px;margin:-19px 0 0 -19px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer;pointer-events:auto;display:grid;place-items:center;-webkit-tap-highlight-color:transparent}
.ef-ne-pin i{position:relative;display:grid;place-items:center;width:13px;height:13px;border-radius:50%;background:var(--c,var(--ef-ink));color:var(--ef-card);font:700 11px/1 Inter,system-ui,sans-serif;font-style:normal;font-variant-numeric:tabular-nums;
  box-shadow:0 0 0 2px var(--ef-card),0 0 0 3px var(--ef-rule);transition:transform .15s,box-shadow .15s}
.ef-ne-pin.s2 i{width:22px;height:22px}.ef-ne-pin.s3 i{width:27px;height:27px;font-size:11.5px}.ef-ne-pin.s4 i{width:32px;height:32px;font-size:12.5px}
.ef-ne-pin:hover i{transform:scale(1.12)}
.ef-ne-pin.on i{box-shadow:0 0 0 2px var(--ef-card),0 0 0 4.5px var(--ef-ink)}
.ef-ne-pin:focus-visible{outline:none}.ef-ne-pin:focus-visible i{box-shadow:0 0 0 2px var(--ef-card),0 0 0 4.5px var(--ef-red)}
/* today's pins breathe: one ring that widens and fades. Without motion the ring simply stays. */
.ef-ne-pin.now i::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:1.5px solid var(--c,var(--ef-ink));opacity:0;animation:ef-ne-ping 2.6s ease-out infinite}
@keyframes ef-ne-ping{0%{transform:scale(.72);opacity:.8}70%,100%{transform:scale(1.28);opacity:0}}
.ef-ne-pn,.ef-ne-rf{position:absolute;white-space:nowrap;pointer-events:none;
  -webkit-text-stroke:3px var(--ef-bg2);paint-order:stroke fill;text-shadow:0 0 2px var(--ef-bg2),0 0 3px var(--ef-bg2)}   /* a paper halo: a name stays readable where it crosses the coast or a tint */
.ef-ne-pn{font:600 10px/1 Inter,system-ui,sans-serif;color:var(--ef-ink)}
.ef-ne-rf{font:500 9.5px/1 Inter,system-ui,sans-serif;color:var(--ef-ink3)}
.ef-ne-rd{position:absolute;width:5px;height:5px;margin:-2.5px 0 0 -2.5px;border:1px solid var(--ef-ink3);border-radius:50%;background:var(--ef-bg2);pointer-events:none}
.ef-ne-leads{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.ef-ne-leads line{stroke:var(--ef-ink3);stroke-width:1px;stroke-dasharray:2 2}.ef-ne-leads circle{fill:var(--ef-ink3)}
.ef-ne-map.moving .ef-ne-leads{opacity:0}
.ef-ne-key[hidden]{display:none}
.ef-ne-key{position:absolute;left:11px;top:9px;display:flex;align-items:center;gap:6px;font:600 10px/1 Inter,system-ui,sans-serif;color:var(--ef-ink3);pointer-events:none}
.ef-ne-key i{width:8px;height:8px;border-radius:50%;background:var(--ef-red);box-shadow:0 0 0 2.5px var(--ef-card),0 0 0 3.5px var(--ef-red)}

/* ---- the list: one card per place, newest first */
.ef-ne-head{display:flex;align-items:center;gap:10px;min-height:32px;margin:12px 0 8px}
.ef-ne-head div{flex:1 1 0;min-width:0;display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px}
.ef-ne-head h2{margin:0;font:700 11px/1.2 Inter,system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--ef-red)}
.ef-ne-head span{font:500 12px/1.2 Inter,system-ui,sans-serif;color:var(--ef-ink3)}
.ef-ne-x{flex:none;height:30px;border:1px solid var(--ef-rule);border-radius:999px;background:var(--ef-card);padding:0 12px;font:700 11.5px/1 Inter,system-ui,sans-serif;color:var(--ef-ink2);cursor:pointer;white-space:nowrap}
.ef-ne-x:hover{border-color:var(--ef-ink3);color:var(--ef-ink)}
.ef-ne-xo{width:32px;height:32px;padding:0;font-size:13px}
.ef-ne-place{margin:0 0 10px;background:var(--ef-card);border:1px solid var(--ef-rule2);border-radius:var(--ef-rad);overflow:hidden}
.ef-ne-ph{display:flex;align-items:baseline;gap:4px 10px;flex-wrap:wrap;padding:12px 14px 8px}
.ef-ne-ph h3{margin:0;font:400 22px/1.08 'GFS Didot',Georgia,serif;color:var(--ef-ink)}
.ef-ne-ph span{font:600 11px/1.2 Inter,system-ui,sans-serif;color:var(--ef-ink3)}
.ef-ne-ph .occ{font-weight:700;font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--ef-ink2);border:1px solid var(--ef-rule);border-radius:999px;padding:3px 7px 2.5px}
.ef-ne-ph .n{margin-left:auto;font-variant-numeric:tabular-nums}
.ef-ne-st{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;align-items:start;padding:10px 14px;border-top:1px solid var(--ef-rule2);color:var(--ef-ink)}
.ef-ne-st.np{grid-template-columns:minmax(0,1fr)}
.ef-ne-st img{display:block;width:76px;height:57px;border-radius:var(--ef-rad-s);object-fit:cover;background:var(--ef-bg2)}
.ef-ne-st em{display:block;font:700 9.5px/1.25 Inter,system-ui,sans-serif;font-style:normal;letter-spacing:.12em;text-transform:uppercase;color:var(--c,var(--ef-red))}
.ef-ne-st time{font-weight:600;letter-spacing:.02em;text-transform:none;font-size:11px;color:var(--ef-ink3)}
.ef-ne-st b{display:block;margin-top:4px;font:700 15.5px/1.28 Literata,Georgia,serif;transition:color .15s}
.ef-ne-st:hover b,.ef-ne-st:focus-visible b{color:var(--ef-red)}
.ef-ne-st:focus-visible{outline:2px solid var(--ef-red);outline-offset:-2px}
.ef-ne-more{display:block;width:100%;border:0;border-top:1px solid var(--ef-rule2);background:none;padding:12px 14px;text-align:left;font:700 12px/1 Inter,system-ui,sans-serif;color:var(--ef-red);cursor:pointer}
.ef-ne-more:hover{background:var(--ef-bg)}
.ef-ne-note{margin:0;padding:34px 16px;text-align:center;font:500 15px/1.5 Literata,Georgia,serif;color:var(--ef-ink3)}
.ef-ne-note[hidden]{display:none}
.ef-ne-note .ef-ne-x,.ef-ne-note a{display:inline-flex;align-items:center;margin:14px 0 0;font:700 12px/1 Inter,system-ui,sans-serif}
.ef-ne-note a{color:var(--ef-red)}

/* ---- a computer: the island stays on the left while the list scrolls */
@media (min-width:1000px){
  .ef-ne-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(360px,1fr);gap:28px;align-items:start;margin-top:12px}
  .ef-ne-mapcol{position:sticky;top:12px}
  .ef-ne-map{max-height:calc(100vh - 24px)}
  .ef-ne-head{margin-top:0}
  .ef-ne-labs span{font-size:10px;letter-spacing:.26em}
  .ef-ne-pn{font-size:11px}
  .ef-ne-sea .w3.a{stroke-width:30px}.ef-ne-sea .w3.b{stroke-width:28.4px}
  .ef-ne-sea .w2.a{stroke-width:18px}.ef-ne-sea .w2.b{stroke-width:16.4px}
  .ef-ne-sea .w1.a{stroke-width:8px}.ef-ne-sea .w1.b{stroke-width:6.4px}
  .ef-ne-coast{stroke-width:1.1px}
  .ef-ne-st{grid-template-columns:96px minmax(0,1fr);gap:14px}.ef-ne-st.np{grid-template-columns:minmax(0,1fr)}
  .ef-ne-st img{width:96px;height:72px}
  .ef-ne-st b{font-size:16.5px}
}
/* a phone held sideways: 46% of so short a screen would shrink the island to a stamp */
@media (orientation:landscape) and (max-height:520px){.ef-ne-map{max-height:74vh}}
@media (prefers-reduced-motion:reduce){
  .ef-ne-pin.now i::after{animation:none;opacity:.55;transform:none}
  .ef-ne-pin i,.ef-ne-d,.ef-ne-pins,.ef-ne-labs{transition:none}
}
