:root { --bg:#f5f7f6; --ink:#17302b; --muted:#5d716c; --line:#d5dedb; --sea:#e6eef3; --nodata:#dcdfdf; --border:#ffffff; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); }

.site-header { background-color: #ffea97; padding: 15px 15px 3px 18px; margin: -10px; }
.site-menu { float: right; padding: 5px 0; font-size: 12px; font-family: 'Old Standard TT', Georgia, 'Times New Roman', serif; }
.site-logo { height: 40px; }
.sm-logo { height: 30px; }
.kofi-logo { height: 40px; }
.site-footer { background-color: #ffea97; padding: 1px; margin: -10px; font-size: 8px; font-style: italic; 
       text-align: center; line-height: 12px; }
.site-note { font-size: .45rem; color: var(--muted); text-align: center; padding-top: 1.5em; font-style: italic; }
.site-note-top { font-size: .8rem; color: var(--muted); text-align: center; }

.hero { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.hero header { padding: 1.5rem 1.25rem .75rem; flex: 0 0 auto; }
h1 { margin: 0; font-size: clamp(1.4rem, 4.5vw, 2.2rem); line-height: 1.15; }
.subtitle { margin: .3rem 0 0; color: var(--muted); font-size: clamp(.9rem, 2.5vw, 1.05rem); }
.subtitle2 { color: var(--muted); font-size: 0.8rem; padding-bottom: .4rem; font-style: italic; }

#map { flex: 1 1 auto; min-height: 0; position: relative; background: var(--sea); overflow: hidden; }
#map svg { display: block; width: 100%; height: 100%; }
.prov { stroke: var(--border); stroke-width: .6; stroke-linejoin: round; }
.prov:hover { stroke: #17302b; stroke-width: 1.4; }
#tip { position: absolute; pointer-events: none; display: none; background: #fff; border: 1px solid var(--line);
       border-radius: 10px; padding: .6rem .8rem; min-width: 150px; box-shadow: 0 4px 14px rgba(0,0,0,.2); z-index: 5; }
.tt-name  { font-size: .8rem; color: var(--muted); margin-bottom: .35rem; }
.tt-cat   { font-size: 1.15rem; font-weight: 700; padding: .25rem 0; border-radius: 6px; }
.tt-nodata{ font-size: .9rem; color: var(--muted); font-style: italic; }
.tt-row   { display: flex; justify-content: space-between; gap: 1rem; font-size: .65rem; margin-top: .3rem; }
.tt-label { color: var(--muted); font-style: italic; }
#sidebox { position: absolute; right: .75rem; top: .75rem; max-width: 125px;
       display: flex; flex-direction: column; gap: .5rem; z-index: 2; }
#legend { background: rgba(255,255,255,.92); max-height: 45%; overflow-y: auto; border-radius: 6px; 
       padding: .5rem .7rem; font-size: .6rem; line-height: 1.35; color: var(--ink); }
#legend .ttl { font-weight: 600; margin-bottom: .25rem; }
#legend .item { display: flex; align-items: center; gap: .45rem; margin: .15rem 0; }
#legend .sw { width: 12px; height: 12px; border-radius: 3px; flex: none; border: 1px solid rgba(0,0,0,.15); }
#mnote { font-size: .42rem; color: var(--muted); }
#mcredit { position: absolute; right: .75rem; bottom: .75rem; font-size: .5rem; font-style: italic;
       color: var(--muted); overflow-y: auto; }

.kofi { text-align: center; vertical-align: middle; }

.table-section { padding: 1rem 1.25rem 2rem; max-width: 900px; margin: 0 auto; }
.table-section h2 { margin: 0 0 1rem; font-size: 1.3rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 420px; }
th, td { text-align: left; padding: .7rem 1rem; border-bottom: 10px solid var(--bg); }
th { background: #eaf0ee; font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
.td-prov { font-weight: 600; font-size: 1.25rem; line-height: 2.6rem;  }
.td-source { color: var(--muted); font-size: 0.6rem; font-style: italic; }
.td-extras { color: var(--muted); font-size: 0.8rem; }
.td-exval { color: var(--ink); font-size: 0.8rem; }
.hl { font-weight: 600; line-height: 1.6rem; }
.s-eno { background-color: #219ebc; color: #ffffff; }
.s-non { background-color: #de615c; color: #ffffff; }
.s-ano { background-color: #f9c74f; color: #000000; }
.s-i { background-color: #90be6d; color: #ffffff; }
.s-an { background-color: #f8961e; color: #ffffff; }
.s-ense { background-color: #d8b2ff; color: #ffffff; }
.s-other { background-color: #d08c60; color: #ffffff; }