/* ==========================================================================
   Boulder Park Dolina — public guide
   GitLab-style (Pajamas): neutral surfaces, thin borders, one blue accent, text-only buttons.
   ========================================================================== */

:root {
    color-scheme: dark;

    --bg: #0b1017;
    --bg-glow: radial-gradient(900px 420px at 15% -10%, rgba(255, 138, 76, 0.14), transparent 60%),
               radial-gradient(800px 380px at 90% 0%, rgba(56, 189, 248, 0.12), transparent 60%);
    --surface: #131a24;
    --surface-2: #1a2330;
    --sunken: #0f1520;
    --border: #243042;
    --border-strong: #35455c;
    --text: #d6deea;
    --muted: #90a0b6;
    --heading: #f4f7fb;

    --accent: #ff8a4c;
    --accent-hover: #ffa36e;
    --accent-subtle: rgba(255, 138, 76, 0.12);
    --accent-2: #38bdf8;
    --on-accent: #1a0e06;

    --easy: #4ade80;
    --easy-bg: rgba(74, 222, 128, 0.13);
    --mid: #38bdf8;
    --mid-bg: rgba(56, 189, 248, 0.13);
    --hard: #fbbf24;
    --hard-bg: rgba(251, 191, 36, 0.14);
    --expert: #fb7185;
    --expert-bg: rgba(251, 113, 133, 0.15);

    --header-bg: rgba(11, 16, 23, 0.82);
    --map-bg: #0e1620;
    --map-glow: #162231;
    --title-from: #ffffff;
    --title-to: #ffc9a6;
    --link-hover: #7dd3fc;
    --rock: #3a4658;
    --rock-edge: #62748e;
    --trail: #e9a35f;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 10px 30px rgba(0, 0, 0, 0.45);
    --wrap: 1120px;
}


[data-theme="light"] {
    color-scheme: light;

    --bg: #f6f7fb;
    --bg-glow: radial-gradient(900px 420px at 15% -10%, rgba(255, 138, 76, 0.16), transparent 60%),
               radial-gradient(800px 380px at 90% 0%, rgba(56, 189, 248, 0.16), transparent 60%);
    --surface: #ffffff;
    --surface-2: #f1f3f9;
    --sunken: #eceff6;
    --border: #dde2ee;
    --border-strong: #c3cbdd;
    --text: #2b3445;
    --muted: #5d6b82;
    --heading: #10172a;

    --accent: #d9560f;
    --accent-hover: #bb460a;
    --accent-subtle: rgba(217, 86, 15, 0.10);
    --accent-2: #0b78b8;
    --on-accent: #ffffff;

    --easy: #15803d;
    --easy-bg: rgba(21, 128, 61, 0.10);
    --mid: #0b78b8;
    --mid-bg: rgba(11, 120, 184, 0.10);
    --hard: #a16207;
    --hard-bg: rgba(202, 138, 4, 0.14);
    --expert: #be123c;
    --expert-bg: rgba(190, 18, 60, 0.10);

    --header-bg: rgba(246, 247, 251, 0.85);
    --map-bg: #e9eef0;
    --map-glow: #f7faf8;
    --rock: #c3cad6;
    --rock-edge: #7c8798;
    --trail: #b9704a;
    --title-from: #10172a;
    --title-to: #c2410c;
    --link-hover: #075985;
    --shadow: 0 1px 2px rgba(16, 23, 42, 0.08);
    --shadow-lift: 0 10px 30px rgba(16, 23, 42, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
[x-cloak] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg-glow) no-repeat, var(--bg);
    background-attachment: fixed, scroll;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
h1, h2, h3 { color: var(--heading); line-height: 1.25; margin: 0; font-weight: 600; }
p { margin: 0 0 0.75rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.container { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }

/* ---- Header ------------------------------------------------------------ */
.header-nav {
    position: sticky; top: 0; z-index: 50;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 1rem; }
.nav-links > li { display: flex; align-items: stretch; }
.nav-links .nav-link { display: flex; align-items: center; }
.brand { color: var(--heading); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
.brand::before { content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.55rem; border-radius: 2px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); transform: rotate(45deg); }
.brand:hover { color: var(--heading); text-decoration: none; }
.brand small { color: var(--muted); font-weight: 400; margin-left: 0.5rem; font-size: 0.8rem; }

.nav-links { display: flex; align-items: center; gap: 0.5rem; align-self: stretch; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-link {
    display: inline-block; padding: 0.5rem 0.7rem; margin-bottom: -1px;
    color: var(--text); font-size: 0.9rem; background: none; border: 0; border-bottom: 2px solid transparent;
    cursor: pointer; font-family: inherit; transition: color 0.15s, border-color 0.15s;
}
.nav-link:hover { color: var(--heading); border-bottom-color: var(--border-strong); text-decoration: none; }
.nav-link.active { color: var(--heading); font-weight: 600; border-bottom-color: var(--accent); }

.theme-toggle { margin-left: 0.5rem; align-self: center; background: none; border: 1px solid var(--border-strong); border-radius: 9999px; color: var(--text); padding: 0.2rem 0.8rem; font: inherit; font-size: 0.8rem; cursor: pointer; }
.theme-toggle:hover { border-color: var(--accent); color: var(--heading); }
.nav-end { display: flex; align-items: center; gap: 0.5rem; }
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; right: -0.5rem; top: calc(100% + 4px); z-index: 60;
    background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift); padding: 0.75rem; margin: 0; list-style: none;
    display: grid; grid-template-columns: repeat(5, 2.75rem); gap: 0.4rem;
}
.dropdown-menu::before { content: "Scegli un masso"; grid-column: 1 / -1; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: 0 0.1rem 0.25rem; }
.dropdown-item {
    display: flex; align-items: center; justify-content: center; height: 2.75rem;
    border: 1px solid var(--tone, var(--border)); border-radius: var(--radius); background: var(--tone-bg, transparent);
    color: var(--tone, var(--text)); font-weight: 700; font-size: 0.95rem;
}
.dropdown-item:hover { background: var(--tone, var(--accent)); color: var(--surface); text-decoration: none; }

.mobile-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); padding: 0.35rem 0.7rem; font: inherit; font-size: 0.85rem; cursor: pointer; }
.mobile-menu { display: none; border-top: 1px solid var(--border); background: var(--bg); padding: 0.5rem 1.25rem 0.9rem; }
.mobile-menu .nav-link { display: block; padding: 0.55rem 0; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.mobile-menu .nav-link.active { border-bottom-color: var(--accent); }
.mobile-boulders { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.35rem; padding: 0.7rem 0 0.4rem; }
.mobile-boulders .dropdown-item { width: auto; }

/* ---- Page head ----------------------------------------------------------- */
.hero-banner { border-bottom: 1px solid var(--border); }
.hero-box { padding: 2.75rem 1.25rem 2.25rem; }
.hero-header { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.hero-title { font-size: 2.4rem; letter-spacing: -0.03em; font-weight: 700; }
.hero-title { background: linear-gradient(100deg, var(--title-from) 30%, var(--title-to) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-subtitle { color: var(--muted); font-size: 0.95rem; }
.hero-text { color: var(--text); max-width: 68ch; margin: 0; font-size: 1.05rem; }
.hero-text strong { color: var(--accent); font-weight: 600; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.1rem; padding: 0; list-style: none; }
.hero-badges li { color: var(--muted); font-size: 0.9rem; }
.hero-badges li { padding: 0.25rem 0.8rem; border: 1px solid var(--border); border-radius: 9999px; background: var(--surface); }
.hero-badges strong { color: var(--accent); font-weight: 700; margin-right: 0.3rem; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

.content { padding-top: 1.75rem; padding-bottom: 3.5rem; }
.section { margin-top: 2.75rem; }
.section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section-head h2 { font-size: 1.35rem; letter-spacing: -0.01em; }
.section-head h2::before { content: ""; display: inline-block; width: 4px; height: 1.05em; margin-right: 0.6rem; vertical-align: -0.12em; border-radius: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
.section-head p { color: var(--muted); margin: 0.15rem 0 0; font-size: 0.9rem; }

/* ---- Buttons (text only) ------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.45rem 0.9rem; border-radius: var(--radius); border: 1px solid var(--border-strong);
    background: var(--surface-2); color: var(--text); font: inherit; font-size: 0.875rem; font-weight: 500;
    cursor: pointer; line-height: 1.3; box-shadow: var(--shadow);
}
.btn:hover { background: var(--surface-2); border-color: var(--accent); color: var(--heading); text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #ff6a3a); border-color: transparent; color: var(--on-accent); font-weight: 600; }
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-hover), #ff7f55); color: var(--on-accent); }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.82rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---- Cards, badges ----------------------------------------------------------- */
.card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.card-body { padding: 1.1rem 1.25rem; }
.card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.card p { color: var(--muted); font-size: 0.9rem; }

.badge {
    display: inline-block; padding: 0.1rem 0.55rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600;
    line-height: 1.5; background: var(--sunken); color: var(--muted); border: 1px solid transparent;
}
.badge-grade-easy, .tier-easy { --tone: var(--easy); --tone-bg: var(--easy-bg); }
.badge-grade-mid, .tier-mid { --tone: var(--mid); --tone-bg: var(--mid-bg); }
.badge-grade-hard, .tier-hard { --tone: var(--hard); --tone-bg: var(--hard-bg); }
.badge-grade-expert, .tier-expert { --tone: var(--expert); --tone-bg: var(--expert-bg); }
.badge[class*="badge-grade-"] { background: var(--tone-bg); color: var(--tone); }

/* ---- Crag map -------------------------------------------------------------------- */
.map-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 1.25rem; align-items: start; }
.map-card { padding: 0.75rem; }
.crag-map { display: block; width: 100%; height: auto; max-height: 78vh; background: radial-gradient(circle at 50% 40%, var(--map-glow), var(--map-bg) 75%); border-radius: var(--radius); }
.crag-map .trail path { fill: var(--trail); opacity: 0.85; }
.crag-map .entrance { fill: var(--text); opacity: 0.55; }
.crag-map .rock { fill: var(--rock); stroke: var(--rock-edge); stroke-width: 3; stroke-linejoin: round; transition: fill 0.15s; }
.crag-map .rock.is-active { fill: var(--accent); fill-opacity: 0.45; stroke: var(--accent); }
.crag-map .marker { cursor: pointer; outline: none; }
.crag-map .marker circle { fill: var(--map-bg); stroke: var(--tone); stroke-width: 4; filter: drop-shadow(0 0 6px var(--tone)); transition: transform 0.15s; transform-box: fill-box; transform-origin: center; }
.crag-map .marker text {
    fill: var(--tone); font: 700 34px var(--font); text-anchor: middle; dominant-baseline: central; pointer-events: none;
}
.crag-map .marker:hover circle, .crag-map .marker.is-active circle, .crag-map .marker:focus-visible circle { transform: scale(1.25); fill: var(--tone); }
.crag-map .marker:hover text, .crag-map .marker.is-active text, .crag-map .marker:focus-visible text { fill: var(--surface); }
.map-legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin: 0.75rem 0.25rem 0.1rem; font-size: 0.8rem; color: var(--muted); align-items: center; }
.map-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.map-legend i { width: 0.75rem; height: 0.75rem; border-radius: 50%; border: 2px solid var(--tone); background: var(--tone-bg); display: inline-block; }

.map-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.map-item {
    display: grid; grid-template-columns: 2.1rem 1fr auto; align-items: center; gap: 0.7rem;
    padding: 0.55rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); transition: border-color 0.15s, background 0.15s;
}
.map-item:hover, .map-item.is-active { border-color: var(--tone); background: var(--tone-bg); text-decoration: none; color: var(--text); }
.map-num {
    width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center;
    font-weight: 700; font-size: 0.9rem; color: var(--tone); background: var(--tone-bg); border: 2px solid var(--tone);
}
.map-name { font-weight: 600; color: var(--heading); font-size: 0.95rem; }
.map-meta { color: var(--muted); font-size: 0.8rem; }
.map-hardest { font-size: 0.78rem; }

/* ---- Carousel ---------------------------------------------------------------------- */
.carousel-wrapper { position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.carousel-slides { position: relative; aspect-ratio: 16 / 9; max-height: 520px; width: 100%; background: var(--sunken); }
.carousel-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.45s ease; }
.carousel-slide.active { opacity: 1; pointer-events: auto; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.25rem 0.9rem;
    background: linear-gradient(to top, rgba(15, 15, 20, 0.78), rgba(15, 15, 20, 0));
    display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.carousel-caption-title { color: #fff; font-size: 1.05rem; font-weight: 600; margin: 0; }
.carousel-caption-title a { color: #fff; }
.carousel-caption-sub { color: rgba(255, 255, 255, 0.82); font-size: 0.82rem; margin: 0.1rem 0 0; }
.carousel-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0.9rem; border-top: 1px solid var(--border); gap: 0.75rem; }
.carousel-dots { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.carousel-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; border: 0; padding: 0; background: var(--border-strong); cursor: pointer; }
.carousel-dot.active { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.carousel-controls { display: flex; gap: 0.4rem; }

/* ---- Boulder list ---------------------------------------------------------------------- */
.boulder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.9rem; }
.boulder-card { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem 1.1rem; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s; }
.boulder-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-lift), 0 0 0 1px var(--accent-subtle); text-decoration: none; color: var(--text); }
.boulder-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.boulder-card h3 { margin: 0; font-size: 1.05rem; }
.boulder-card p { margin: 0; font-size: 0.86rem; color: var(--muted); flex: 1; }
.boulder-card-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 0.6rem; font-size: 0.82rem; color: var(--muted); }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.9rem; }
.info-card { padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 0.2rem; }
.info-card .btn-row { margin-top: auto; padding-top: 0.6rem; }
.weather-now { font-size: 1.5rem; font-weight: 600; color: var(--heading); letter-spacing: -0.01em; margin: 0.1rem 0; min-height: 2rem; }
.weather-now small { font-size: 0.85rem; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-left: 0.3rem; }

/* ---- Boulder page ------------------------------------------------------------------------ */
.boulder-header-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.jump-bar { display: flex; align-items: center; gap: 0.6rem 0.9rem; flex-wrap: wrap; padding: 0.7rem 1rem; margin-bottom: 1.25rem; }
.jump-bar strong { font-size: 0.88rem; color: var(--heading); }
.jump-links { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.jump-links a { text-decoration: none; }
.lines-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.line-card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.line-card-img-wrap { position: relative; cursor: zoom-in; background: var(--sunken); aspect-ratio: 4 / 3; overflow: hidden; }
.line-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s; }
.line-card-img-wrap:hover .line-card-img { transform: scale(1.03); }
.line-zoom-badge { position: absolute; right: 0.6rem; bottom: 0.6rem; background: rgba(15, 15, 20, 0.72); color: #fff; font-size: 0.75rem; padding: 0.15rem 0.55rem; border-radius: 9999px; }
.line-card-body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.line-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; }
.line-card-title { font-size: 1rem; display: flex; flex-direction: column; gap: 0.1rem; }
.line-label { font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.line-desc-box { font-size: 0.86rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 0.6rem; }
.line-desc-box strong { display: block; color: var(--heading); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.15rem; }
.empty { padding: 2.5rem 1rem; text-align: center; }

.lightbox-modal { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 14, 0.88); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.lightbox-content { position: relative; max-width: 1100px; width: 100%; text-align: center; pointer-events: none; }
.lightbox-content > * { pointer-events: auto; }  /* the empty sides of the box belong to the backdrop: a click there closes */
.lightbox-img { max-height: 82vh; width: auto; max-width: 100%; border-radius: var(--radius); }
.lightbox-img { background: #fff; }
.lightbox-caption { color: #fff; margin-top: 0.6rem; font-size: 0.92rem; }
.lightbox-caption a { color: #7dd3fc; }
.lightbox-close { position: absolute; top: -2.2rem; right: 0; background: none; border: 1px solid rgba(255, 255, 255, 0.5); color: #fff; border-radius: var(--radius); padding: 0.2rem 0.7rem; cursor: pointer; font: inherit; font-size: 0.82rem; }

/* ---- Where / weather / area ------------------------------------------------------------------------ */
.notice { border: 1px solid var(--border); border-left: 4px solid var(--accent); background: var(--accent-subtle); color: var(--text); border-radius: var(--radius); padding: 0.8rem 1rem; margin-bottom: 1.25rem; font-size: 0.92rem; }
.parking-card { display: grid; gap: 1rem; }
.parking-card img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.coords-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.25rem; }
.coords-text { font-weight: 600; color: var(--heading); font-variant-numeric: tabular-nums; }
.coords-sub { color: var(--muted); font-size: 0.85rem; }

.forecast { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.forecast th, .forecast td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--border); }
.forecast th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; }
.forecast tr:last-child td { border-bottom: 0; }
.forecast td:first-child { font-weight: 600; color: var(--heading); white-space: nowrap; }
.weather-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.9rem; margin-bottom: 1rem; }
.stat { padding: 0.9rem 1.1rem; }
.stat b { display: block; font-size: 1.7rem; color: var(--accent); font-weight: 700; letter-spacing: -0.01em; }
.stat span { color: var(--muted); font-size: 0.82rem; }
.verdict { padding: 0.9rem 1.1rem; margin-bottom: 1rem; border: 1px solid var(--tone); border-left-width: 4px; background: var(--tone-bg); border-radius: var(--radius); }
.verdict strong { color: var(--tone); }

/* ---- Printable sheet ------------------------------------------------------------------------------------ */
.sheet-index { margin-bottom: 1.5rem; }
.sheet-boulder { margin-bottom: 1.75rem; break-inside: avoid-page; }
.sheet-boulder header { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.sheet-boulder h2 { font-size: 1.15rem; }
.sheet-boulder h2 a { color: var(--heading); }
.sheet-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sheet-table th, .sheet-table td { padding: 0.55rem 0.8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.sheet-table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--sunken); }
.sheet-table tr:last-child td { border-bottom: 0; }
.nowrap { white-space: nowrap; }
.sheet-table { table-layout: fixed; }
.sheet-table th:nth-child(1) { width: 6rem; }
.sheet-table th:nth-child(2) { width: 14rem; }
.sheet-table th:nth-child(3) { width: 5rem; }
@media (max-width: 720px) { .sheet-table { table-layout: auto; } .sheet-table thead { display: none; } .sheet-table tr { display: block; padding: 0.5rem 0; border-bottom: 1px solid var(--border); } .sheet-table td { display: inline-block; border: 0; padding: 0.15rem 0.8rem; } .sheet-table td:last-child { display: block; } }

/* ---- Footer ------------------------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); background: var(--sunken); padding: 2.25rem 0 1.5rem; margin-top: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.footer-col-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; margin-bottom: 0.7rem; }
.footer p { font-size: 0.86rem; color: var(--muted); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.88rem; }
.footer-list.cols { grid-template-columns: 1fr 1fr; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: 1.75rem; padding-top: 1rem; font-size: 0.8rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); }

.btn-top {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; display: none;
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-lift);
    color: var(--text); padding: 0.4rem 0.8rem; cursor: pointer; font: inherit; font-size: 0.82rem;
}

/* ---- Responsive ------------------------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .map-layout { grid-template-columns: 1fr; }
    .crag-map { max-height: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .nav-links { display: none; }
    .mobile-toggle { display: inline-block; }
    .mobile-menu.open { display: block; }
    .hero-title { font-size: 1.6rem; }
    .hero-box { padding-top: 1.5rem; }
    .carousel-slides { aspect-ratio: 4 / 3; }
    .footer-grid { grid-template-columns: 1fr; }
    .lines-grid { grid-template-columns: 1fr; }
}
@media print {
    :root, [data-theme] {
        --bg: #fff; --bg-glow: none; --surface: #fff; --surface-2: #fff; --sunken: #f3f5f8; --border: #cfd5df; --border-strong: #aab3c2;
        --text: #1b2433; --muted: #4b5870; --heading: #000; --accent: #b3450a; --accent-2: #0b5f94;
        --easy: #15803d; --easy-bg: #e8f4ec; --mid: #0b78b8; --mid-bg: #e6f1f8; --hard: #8a5a00; --hard-bg: #fbf0d8; --expert: #be123c; --expert-bg: #fbe6eb;
        --title-from: #000; --title-to: #000; --shadow: none;
    }
    body { background: #fff; font-size: 11pt; }
    .header-nav, .footer, .btn-top, .carousel-wrapper, .btn-row, .sheet-index { display: none; }
    .hero-banner { border: 0; }
    .hero-title { color: #000; background: none; -webkit-text-fill-color: #000; }
    .container { max-width: none; padding: 0; }
    .sheet-table { font-size: 9.5pt; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
