/* 071 · Sligo demo. Black and white (Sligo colours) with one Atlantic teal accent. */
:root {
  --ink: #0b0b0c;
  --paper: #ffffff;
  --bg: #f4f4f1;
  --line: #deded8;
  --muted: #55585c;
  --accent: #0b6e78;        /* teal, 5.9:1 on white */
  --accent-ink: #064c53;    /* darker teal for small text on tint */
  --accent-soft: #e1f2f3;
  --accent-bright: #4fd3de; /* for use on black */
  --focus: #0b6e78;
  --radius: 14px;
  --header-h: 60px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5;
  color: var(--ink); background: var(--bg); overflow-x: hidden;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-ink); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--accent-bright); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: 8px; top: -60px; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px; z-index: 5000; font-weight: 600; }
.skip:focus { top: 8px; }

/* Demo banner */
.demo-banner { background: var(--accent-soft); color: #0a3a40; border-bottom: 1px solid #b9dde0; font-size: 14px; }
.demo-banner .wrap { padding-top: 8px; padding-bottom: 8px; display: flex; flex-wrap: wrap; gap: 2px 10px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 2000; background: var(--ink); color: #fff; }
.header-inner { display: flex; align-items: center; gap: 10px; min-height: var(--header-h); position: relative; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.logo:hover { color: #fff; }
.logo-mark { display: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo-name span { color: var(--accent-bright); }
.logo-tag { font-size: 12px; color: #c9ccd0; margin-top: 2px; }
.demo-pill { margin-left: 2px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #0a3a40; background: var(--accent-bright); padding: 3px 8px; border-radius: 999px; }

.menu-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; background: transparent; color: #fff; border: 1px solid #55595e; border-radius: 10px; font: inherit; font-size: 16px; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; content: ""; position: relative; }
.menu-icon::before { position: absolute; top: -6px; }
.menu-icon::after { position: absolute; top: 6px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-top: 1px solid #2a2c2f; padding: 6px 16px 14px; box-shadow: 0 14px 24px rgba(0,0,0,.35); }
.site-nav.open { display: block; }
.site-nav a { display: block; color: #fff; text-decoration: none; padding: 13px 4px; font-weight: 600; border-bottom: 1px solid #202225; }
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a:hover { color: var(--accent-bright); }

@media (min-width: 860px) {
  :root { --header-h: 66px; }
  .logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 800; font-size: 15px; letter-spacing: -0.03em; }
  .menu-btn { display: none; }
  .site-nav { display: block; position: static; margin-left: auto; padding: 0; border: 0; box-shadow: none; background: transparent; }
  .site-nav ul { display: flex; gap: 4px; }
  .site-nav a { border: 0; padding: 10px 14px; border-radius: 10px; font-size: 15px; }
  .site-nav a:hover { background: #1b1d20; }
}

/* Hero */
.hero { position: relative; background: linear-gradient(90deg, rgba(11,11,12,.82) 0%, rgba(11,11,12,.55) 55%, rgba(11,11,12,.25) 100%), url("assets/benbulben.jpg") center 88% / cover no-repeat, var(--ink); color: #fff; padding: 30px 0 90px; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 8px; }
.hero h1 { font-size: clamp(30px, 7vw, 52px); font-weight: 800; letter-spacing: -0.03em; max-width: 14ch; }
.hero-sub { margin-top: 12px; color: #d6d9dc; max-width: 52ch; font-size: 17px; }
.hero-hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; display: block; }
.hills-back { fill: #12292c; }
.hills-front { fill: var(--bg); }
@media (min-width: 860px) { .hero { padding: 54px 0 120px; } .hero-hills { height: 110px; } }

.filters { margin-top: 22px; max-width: 820px; }
.search-row { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .search-row { grid-template-columns: 1fr 230px; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.filters .field label { color: #e8eaec; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid #8a8d91; border-radius: 12px; padding: 0 14px; min-height: 48px; width: 100%; max-width: 100%; }
textarea { padding: 12px 14px; resize: vertical; min-height: 110px; }
input::placeholder { color: #6b6e72; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230b0b0c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { font: inherit; font-size: 15px; font-weight: 600; min-height: 42px; padding: 0 15px; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.4); cursor: pointer; transition: background .15s, color .15s; }
.chip:hover { background: rgba(255,255,255,.18); }
.chip[aria-pressed="true"] { background: var(--accent-bright); color: var(--ink); border-color: var(--accent-bright); }
.chip[aria-pressed="true"]::before { content: "\2713\00a0"; font-weight: 800; }

/* Sections */
.section { padding: 44px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 22px; max-width: 70ch; }
.section-head h2, .board-head h2, .add-intro h2 { font-size: clamp(24px, 4.5vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); margin-top: 8px; }
.on-dark .section-head p { color: #cfd3d6; }

.btn { font: inherit; font-size: 15px; font-weight: 600; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.btn:hover { background: #f0f0ec; color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn.ghost { border-color: #8a8d91; }
.btn.big { min-height: 50px; padding: 0 22px; font-size: 16px; }
.btn.small { min-height: 38px; padding: 0 12px; font-size: 14px; }

/* Board */
.board { padding-top: 22px; }
.board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.summary { color: var(--muted); margin-top: 4px; font-size: 15px; }
.board-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.map-col { order: -1; scroll-margin-top: calc(var(--header-h) + 10px); }
#map { height: 300px; border-radius: 16px; border: 1px solid var(--line); background: #dfe7e8; z-index: 0; }
.map-hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
@media (min-width: 960px) {
  .board-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 28px; align-items: start; }
  .map-col { order: 0; position: sticky; top: calc(var(--header-h) + 16px); }
  #map { height: calc(100vh - var(--header-h) - 80px); min-height: 440px; }
}

.day-head { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 10px; }
.day-head:first-child { margin-top: 0; }
.cards { display: grid; gap: 10px; }
.card { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #b5b8b2; }
.card.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.date-tile { align-self: start; text-align: center; background: var(--ink); color: #fff; border-radius: 10px; padding: 7px 0 8px; line-height: 1.05; }
.date-tile .dow, .date-tile .mon { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #d0d3d6; }
.date-tile .dom { display: block; font-size: 22px; font-weight: 800; margin: 2px 0; }
.card-title { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.card-title button { all: unset; cursor: pointer; display: block; }
.card-title button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.card-meta { color: var(--muted); font-size: 15px; margin-top: 4px; }
.card-meta strong { color: var(--ink); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1; padding: 6px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.tag-free { background: var(--ink); color: #fff; }
.tag-sample { background: #fff; color: #4a4d51; border: 1px solid #a3a6aa; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.tag-sponsor { background: #fff; color: #3d4044; border: 1px dashed #8a8d91; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; white-space: normal; line-height: 1.25; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.empty { background: #fff; border: 1.5px dashed #a3a6aa; border-radius: var(--radius); padding: 28px 18px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.empty .btn { margin-top: 14px; }

/* Map pins and popups */
.pin-wrap { background: none; border: 0; }
.pin { position: relative; display: block; width: 32px; height: 40px; transition: transform .15s; transform-origin: 50% 100%; }
.pin svg { width: 32px; height: 40px; display: block; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.pin path { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.pin circle { fill: #fff; }
.pin-n { position: absolute; left: 0; right: 0; top: 7px; text-align: center; font: 700 13px/16px var(--font); color: #fff; }
.pin-wrap.is-active .pin { transform: scale(1.25); }
.pin-wrap.is-active .pin path { fill: var(--ink); }
.leaflet-container { font-family: var(--font); }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { margin: 12px 14px; font-size: 14px; line-height: 1.4; min-width: 200px; }
.pop h4 { margin: 0 0 6px; font-size: 15px; }
.pop ul { max-height: 190px; overflow: auto; margin: 0; padding: 0; }
.pop li { padding: 8px 0; border-top: 1px solid var(--line); }
.pop li.is-focus .pop-title { color: var(--accent-ink); text-decoration: underline; }
.pop-when { display: block; color: var(--muted); font-size: 13px; }
.pop-title { font-weight: 700; display: block; }
.pop button { font: inherit; font-size: 13px; font-weight: 600; min-height: 32px; margin-top: 4px; padding: 0 10px; border-radius: 8px; border: 1.5px solid var(--accent); background: #fff; color: var(--accent-ink); cursor: pointer; }
.map-fail { display: grid; place-items: center; height: 100%; padding: 20px; text-align: center; color: var(--muted); }

/* News */
.news-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.news-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.news-card h3 { font-size: 19px; }
.news-card p { color: #3d4044; font-size: 15px; }

/* Sponsors */
.sponsor-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .sponsor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .sponsor-grid { grid-template-columns: repeat(4, 1fr); } }
.sponsor { background: #fff; border: 2px dashed #a3a6aa; border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.sponsor svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sponsor h3 { font-size: 18px; }
.sponsor p { color: var(--muted); font-size: 15px; }

/* Add event */
.add-wrap { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .add-wrap { grid-template-columns: 1fr 1.3fr; gap: 48px; } }
.add-intro p { margin-top: 10px; color: #3d4044; max-width: 46ch; }
.add-intro .note { font-weight: 600; color: var(--accent-ink); }
.add-form { display: grid; gap: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
@media (min-width: 600px) { .add-form { padding: 24px; } }
.add-form .field label { color: var(--ink); }
.row2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .row2 { grid-template-columns: 1fr 1fr; } }
.hint { font-size: 13px; color: var(--muted); }
.form-result { font-weight: 600; color: var(--accent-ink); }
.form-result:not(:empty) { background: var(--accent-soft); border: 1px solid #b0d6d9; border-radius: 12px; padding: 12px 14px; }
input[type="date"], input[type="time"] { min-width: 0; -webkit-appearance: none; appearance: none; }

/* Why */
.why { background: var(--ink); color: #fff; }
.why-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-grid li { background: #17191b; border: 1px solid #2c2f33; border-radius: var(--radius); padding: 20px; border-top: 3px solid var(--accent-bright); }
.why-grid h3 { font-size: 18px; margin-bottom: 8px; }
.why-grid p { color: #cfd3d6; font-size: 15px; }
.counties { margin-top: 30px; }
.counties h3 { font-size: 18px; }
.counties p { color: #cfd3d6; margin-top: 6px; }
.county-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.county-pills li { padding: 8px 14px; border-radius: 999px; border: 1.5px solid #5b5f64; color: #e6e8ea; font-size: 15px; }
.county-pills li b { color: var(--accent-bright); margin-right: 4px; }
.county-pills li.current { background: #fff; color: var(--ink); border-color: #fff; }
.county-pills li.current b { color: var(--accent-ink); }
.proto-note { margin-top: 26px; font-size: 14px; color: #b4b8bc; }

/* Footer */
.site-footer { background: #000; color: #c9ccd0; padding: 28px 0 34px; font-size: 14px; }
.footer-inner { display: grid; gap: 8px; }
.site-footer a { color: var(--accent-bright); }
.site-footer strong { color: #fff; }

/* Modal */
dialog { border: 0; padding: 0; border-radius: 18px; width: min(640px, calc(100% - 24px)); max-height: calc(100% - 24px); color: var(--ink); background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
dialog::backdrop { background: rgba(8,10,12,.62); }
.modal-inner { position: relative; padding: 22px 18px 20px; }
@media (min-width: 600px) { .modal-inner { padding: 30px 30px 26px; } }
.modal-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #f0f0ec; color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: #e2e2dc; }
#modal-body h2 { font-size: clamp(22px, 5vw, 28px); font-weight: 800; letter-spacing: -0.02em; margin: 12px 0 14px; padding-right: 40px; }
.facts { display: grid; gap: 12px; margin: 0 0 14px; }
.facts div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; }
.facts dt { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; }
.modal-desc { margin: 4px 0 16px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-note { margin-top: 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
html.modal-open { overflow: hidden; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 6000; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Network switcher (31.10): one platform, one site per area code */
.network-bar { background: #161719; color: #d7dadd; border-bottom: 1px solid #2a2c2f; font-size: 13px; }
.network-inner { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.network-label { flex: none; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 11px; color: #9aa1a8; }
.network-list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 6px 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.network-list::-webkit-scrollbar { display: none; }
.net-city { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 4px 10px; border-radius: 999px; border: 1px solid #34373b; color: #d7dadd; text-decoration: none; }
.net-city b { font-variant-numeric: tabular-nums; }
.net-city.is-current { background: var(--accent-bright); border-color: var(--accent-bright); color: #0a3a40; }
.net-city.is-current:hover { color: #0a3a40; }
.net-city.is-soon { opacity: .7; cursor: default; }
.net-city small { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #9aa1a8; }
@media (max-width: 520px) { .network-label { display: none; } }

/* County identity (31.10): crest + landmark photo per city, common network layout */
.hero-crest { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.hero-crest img { width: auto; height: 84px; object-fit: contain; filter: drop-shadow(0 0 1px rgba(255,255,255,.45)) drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.hero-crest .eyebrow { margin: 0; }
.hero h1, .hero-sub { text-shadow: 0 2px 12px rgba(0,0,0,.45); }
@media (max-width: 520px) { .hero-crest img { width: 48px; height: 48px; } }
