/* cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/golos-text-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/golos-text-400-latin-ext.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/golos-text-400-latin.woff2) format('woff2');
  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;
}
/* cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/golos-text-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/golos-text-600-latin-ext.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/golos-text-600-latin.woff2) format('woff2');
  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;
}
/* cyrillic */
@font-face {
  font-family: 'Fira Sans Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/fira-sans-condensed-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Fira Sans Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/fira-sans-condensed-500-latin-ext.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fira Sans Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/fira-sans-condensed-500-latin.woff2) format('woff2');
  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;
}
/* cyrillic */
@font-face {
  font-family: 'Fira Sans Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/fira-sans-condensed-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Fira Sans Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/fira-sans-condensed-600-latin-ext.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fira Sans Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/fira-sans-condensed-600-latin.woff2) format('woff2');
  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;
}
/* Galičica trails. Palette: karst limestone, the two lakes, and the park's own trail-sign colors. */
:root {
  --stone: #E9ECE7;      /* page: pale limestone */
  --slab: #F6F7F4;       /* raised surfaces */
  --ink: #18221F;        /* text */
  --muted: #56635F;      /* secondary text */
  --rule: #C7CEC8;       /* hairlines */
  --lake: #134B63;       /* links, Ohrid blue */
  --lake-2: #2B6E8C;
  --bar: #134B63; --btn: #134B63; --btn-ink: #FFFFFF; --btn-hover: #2B6E8C;
  --h: #C8202F; --t: #1F7A3D; --g: #D4A20B; --mtb: #24357F;
  --plate-ink: #FFFFFF; --g-ink: #18221F;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sign: "Fira Sans Condensed", "Arial Narrow", system-ui, sans-serif;
  --step--1: .875rem; --step-0: 1.0625rem; --step-1: 1.3rem; --step-2: 1.7rem; --step-3: 2.3rem; --step-4: 3.1rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --stone: #111A1C; --slab: #172327; --ink: #E4E9E5; --muted: #9DABA6; --rule: #2E3D40;
    --lake: #8CC6DD; --lake-2: #B5DCEA; --g-ink: #18221F; color-scheme: dark; --bar: #0D2F3E; --btn: #8CC6DD; --btn-ink: #0D2F3E; --btn-hover: #B5DCEA;
  }
}
:root[data-theme="dark"] {
  --stone: #111A1C; --slab: #172327; --ink: #E4E9E5; --muted: #9DABA6; --rule: #2E3D40;
  --lake: #8CC6DD; --lake-2: #B5DCEA; --g-ink: #18221F; color-scheme: dark; --bar: #0D2F3E; --btn: #8CC6DD; --btn-ink: #0D2F3E; --btn-hover: #B5DCEA;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stone); color: var(--ink); font: 400 var(--step-0)/1.6 var(--body); }
a { color: var(--lake); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--lake-2); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lake); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--sign); font-weight: 600; line-height: 1.1; letter-spacing: -.005em; margin: 0; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-2); margin: 2.2rem 0 .6rem; }
h3 { font-size: var(--step-1); margin: 1.8rem 0 .3rem; display: flex; gap: .55rem; align-items: center; }
p { margin: 0 0 1em; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 16px; }
.prose { max-width: 42rem; padding-top: 2rem; padding-bottom: 2rem; }
.prose h1 { font-size: var(--step-3); margin-bottom: 1rem; }
.prose li { margin-bottom: .5em; }

/* header */
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .6rem 16px; background: var(--bar); color: #fff; }
.top a { color: #fff; text-decoration: none; }
.top a:hover { color: #fff; text-decoration: underline; }
.brand { font: 600 1.25rem/1 var(--sign); display: inline-flex; align-items: center; gap: .5rem; }
.brand-mark { width: 1.35rem; height: .9rem; border-radius: 2px;
  background: linear-gradient(#fff 0 0) center/100% 34% no-repeat, var(--h); box-shadow: 0 0 0 1.5px #fff; }
.top nav { display: flex; gap: 1.1rem; font: 500 1.02rem/1 var(--sign); }

/* the signpost plate: the one bold element */
.plate { display: inline-block; font: 600 1rem/1 var(--sign); letter-spacing: .02em; color: var(--plate-ink);
  padding: .28em .5em .26em; border-radius: 3px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.88); white-space: nowrap;
  font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: center; }
.plate-h { background: var(--h); } .plate-t { background: var(--t); } .plate-mtb { background: var(--mtb); }
.plate-g { background: var(--g); color: var(--g-ink); box-shadow: inset 0 0 0 2px rgba(255,255,255,.9); }
.plate-big { font-size: var(--step-3); padding: .22em .45em .2em; border-radius: 5px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.9); }
.plate-link { text-decoration: none; }
.plate-link:hover .plate { filter: brightness(1.12); }
.plate-link + .plate-link { margin-left: .3rem; }

/* index hero: the network itself */
.hero { display: grid; grid-template-columns: minmax(22rem, 30rem) 1fr; background: var(--slab); border-bottom: 1px solid var(--rule); }
.map { width: 100%; background: #d9ded8; }
.map-hero { height: max(34rem, calc(100vh - 3.2rem)); max-height: 56rem; grid-column: 2; grid-row: 1; }
.hero-card { grid-column: 1; grid-row: 1; padding: 2rem 1.6rem 1.5rem; align-self: center; }
.hero-card h1 { font-size: var(--step-3); }
.lede { font-size: 1.08rem; margin: .7rem 0 .9rem; }
.legend { display: grid; gap: .35rem; margin-bottom: .9rem; }
.lg { display: grid; grid-template-columns: auto auto 1fr; gap: .55rem; align-items: center; font-size: var(--step--1); line-height: 1.3; cursor: pointer; color: var(--muted); }
.lg input { margin: 0; accent-color: var(--lake); width: 1rem; height: 1rem; }
.lg .plate { min-width: 3.4em; font-size: .92rem; }
.cta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
.btn { display: inline-block; background: var(--btn); color: var(--btn-ink); text-decoration: none; font: 600 1.05rem/1 var(--sign);
  padding: .7rem 1rem; border-radius: 4px; }
.btn:hover { background: var(--btn-hover); color: var(--btn-ink); text-decoration: none; }
.quiet { font-size: var(--step--1); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .map-hero { height: 60vh; min-height: 22rem; grid-column: 1; grid-row: 2; }
  .hero-card { grid-row: 1; padding: 1.2rem 16px; }
  .hero-card h1 { font-size: var(--step-2); }
}

.intro { max-width: 42rem; margin-top: 2.2rem; }
.mk { color: var(--muted); font-size: var(--step--1); border-left: 3px solid var(--rule); padding-left: .8rem; }
.block { margin-top: 1rem; }
.note { color: var(--muted); font-size: var(--step--1); max-width: 42rem; }
.kind-what { color: var(--muted); margin: 0 0 .4rem; font-size: var(--step--1); }

/* trail tables */
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th { text-align: left; font: 500 var(--step--1)/1.2 var(--sign); color: var(--muted); padding: .35rem .5rem; border-bottom: 1px solid var(--rule); }
td { padding: .45rem .5rem; border-bottom: 1px solid var(--rule); vertical-align: middle; }
tbody tr:hover { background: var(--slab); }
td:first-child, th:first-child { padding-left: 0; width: 4.5rem; }
.n { text-align: right; white-space: nowrap; }
.u { color: var(--muted); font-size: .85em; }
.dl { text-align: right; width: 3.5rem; }
.dl a { font: 600 .9rem/1 var(--sign); }
@media (max-width: 560px) { .hide-s { display: none; } td, th { padding-left: .3rem; padding-right: .3rem; } .u { display: none; } }

/* routes list */
.routes { list-style: none; padding: 0; margin: 0; }
.route { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.route .rn { font: 600 1.15rem/1.25 var(--sign); }
.rmeta { color: var(--muted); font-size: var(--step--1); grid-column: 1; }
.rplates { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; }
.rplates .plate { font-size: .82rem; min-width: 0; }
@media (max-width: 560px) { .route { grid-template-columns: 1fr; } .rplates { grid-column: 1; grid-row: auto; text-align: left; } }
.downloads li { margin-bottom: .6rem; }

/* trail page */
.trail { padding-top: 1.2rem; padding-bottom: 2rem; }
.crumbs { font-size: var(--step--1); color: var(--muted); margin-bottom: .8rem; }
.trail h1 { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; font-size: var(--step-3); }
.trail h1 span { max-width: 40rem; }
.trail .lede { max-width: 44rem; }
.facts { display: flex; flex-wrap: wrap; gap: .4rem 2.2rem; margin: 1rem 0; padding: .8rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts div { min-width: 7rem; }
.facts dt { font: 500 var(--step--1)/1.2 var(--sign); color: var(--muted); }
.facts dd { margin: .15rem 0 0; font: 600 1.2rem/1.2 var(--sign); }
.map-trail { height: min(62vh, 520px); border-radius: 6px; }
.profile { width: 100%; height: auto; display: block; max-width: 48rem; }
.profile text { font: 11px var(--body); fill: var(--muted); }
.profile .g { stroke: var(--rule); stroke-width: 1; }
.profile .a { opacity: .16; }
.profile .l { fill: none; stroke-width: 2.4; stroke-linejoin: round; }
.links, .along { padding-left: 0; list-style: none; max-width: 44rem; }
.links li, .along li { padding: .3rem 0; }
.along li { padding-left: 1rem; position: relative; }
.along li::before { content: ""; position: absolute; left: 0; top: .85em; width: .45rem; height: .3rem; background: var(--h); box-shadow: 0 0 0 1px var(--rule); }
.dirs { max-width: 44rem; margin: 1rem 0; }
.dirs td:first-child, .dirs th:first-child { width: auto; padding-left: 0; }
@media (max-width: 560px) { .dirs td:first-child { min-width: 9rem; } }
details { max-width: 44rem; margin: .5rem 0 1rem; }
summary { cursor: pointer; color: var(--lake); }
.prevnext { display: flex; justify-content: space-between; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.prevnext a { display: inline-flex; gap: .5rem; align-items: center; text-decoration: none; font-family: var(--sign); }

/* map labels */
.leaflet-container { font: var(--step--1) var(--body); }
.leaflet-tooltip.tlabel { font: 600 .85rem/1 var(--sign); padding: .25rem .4rem; border: 0; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85); }
.leaflet-tooltip.tlabel::before { display: none; }
.leaflet-popup-content { font: var(--step--1)/1.4 var(--body); }
.leaflet-popup-content b { font-family: var(--sign); font-size: 1rem; }

.foot { margin-top: 3rem; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: var(--step--1); }
.foot p { max-width: 48rem; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.steps { max-width: 42rem; padding-left: 1.3rem; }
.steps li { margin-bottom: .55rem; padding-left: .2rem; }
.hero-card .note { margin: 0; }
