/* Sandskogens vägförening – overrides on top of Source's built/screen.css */

:root {
    --sk-green: #0e4a1b;
    --sk-green-dark: #0b3414;
    --sk-text: #292929;
    --sk-bg: #f5f5f5;
    --background-color: var(--sk-bg);
    --ghost-accent-color: var(--sk-green);
    --color-darker-gray: var(--sk-text);
    --color-primary-text: var(--sk-text);
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
    --gh-font-heading: "Cantarell", var(--font-sans); /* Source reads this for all headings */
    --container-width: 960px;
}

body { background: var(--sk-bg); color: var(--sk-text); font-family: var(--font-sans); }
.is-body, .gh-content { font-family: var(--font-sans); }
.is-title, h1, h2, h3, h4, .sk-title { font-family: var(--gh-font-heading); font-weight: 400;} /* Cantarell only for title + headings */
.gh-content a { color: var(--sk-green); }

/* Header: banner + menu bar */
.sk-header.gh-navigation { height: auto; padding: 0; background: none; }

.sk-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 24px;
    background: var(--sk-green) center / cover no-repeat;
    text-decoration: none;
}
.sk-header .sk-banner, .sk-header a.sk-title { color: #fff; text-decoration: none; }
.sk-banner-text { display: flex; flex-direction: column; align-items: flex-end; }
.sk-title {
    font-size: clamp(3rem, 2rem + 3vw, 5rem);
    line-height: 1.1;
    text-align: center;
    text-shadow: #151515 3px 3px 3px;
}
.sk-subtitle {
    margin-top: -0.2em;
    font-family: "Bad Script", cursive;
    font-size: clamp(2rem, 1.5rem + 1.5vw, 3rem);
    text-shadow: #151515 3px 3px 4px;
}

.sk-nav { position: sticky; top: 0; z-index: 50; background: var(--sk-green); color: #fff; } /* menu bar follows on scroll */
html { scroll-padding-top: 50px; } /* keep #anchors clear of the sticky bar */
.sk-nav-inner { max-width: var(--container-width); margin: 0 auto; }
.sk-nav a { color: #fff; text-decoration: none; }
.sk-menu, .sk-sub { list-style: none; margin: 0; padding: 0; }
.sk-menu { display: flex; flex-wrap: wrap; justify-content: center; font-size: 1.6rem; }
.sk-menu > li { position: relative; }
.sk-menu :is(a, button) { display: block; padding: 10px 14px; }
.sk-menu button { background: none; border: 0; color: #fff; font: inherit; cursor: pointer; }
.sk-menu li:is(.is-current, .is-current-parent) > :is(a, button),
.sk-menu :is(a, button):is(:hover, :focus-visible) { background: var(--sk-green-dark); }
.sk-menu > li.has-sub > :is(a, button)::after { content: " ▾"; }

.sk-sub {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    min-width: 280px;
    background: var(--sk-green);
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.2);
    display: none;
}
.sk-menu > li:is(:hover, :focus-within) > .sk-sub { display: block; }

.sk-burger { display: none; margin-left: auto; padding: 8px 12px; background: none; border: 0; color: #fff; cursor: pointer; }
.sk-burger svg { width: 28px; height: 28px; }

@media (max-width: 767px) {
    .sk-nav-inner { display: flex; flex-direction: column; }
    .sk-burger { display: block; }
    /* open menu overlays the page instead of pushing it down */
    .sk-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 50px); overflow-y: auto; box-shadow: 0 8px 16px rgb(0 0 0 / 0.3); }
    .sk-menu.is-open { display: flex; }
    .sk-menu button { width: 100%; text-align: left; } /* full-width like the links */
    /* light open menu: dark text, active item in bold green instead of a background */
    .sk-menu, .sk-sub { background: #fff; }
    .sk-nav .sk-menu :is(a, button) { color: var(--sk-text); }
    .sk-menu li:is(.is-current, .is-current-parent) > :is(a, button) { background: none; color: var(--sk-green); font-weight: 700; }
    .sk-menu :is(a, button):is(:hover, :focus-visible) { background: #eef3ef; }
    .sk-sub { position: static; display: block; box-shadow: none; padding-left: 16px; }
}

/* Homepage */
.sk-home { padding-block: 32px 48px; }
.sk-latest-title { font-size: clamp(2.6rem, 2rem + 1.5vw, 3.4rem); line-height: 1.2; }
.sk-latest-title a { color: inherit; text-decoration: none; }
.sk-date { display: block; margin: 8px 0 16px; font-size: 1.5rem; color: var(--color-secondary-text); }
.sk-more { margin-top: 48px; }
.sk-more h2 { font-size: 2.2rem; margin-bottom: 12px; }
.sk-more ul { padding-left: 0; list-style: none; font-size: 1.7rem; }
.sk-more li { padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.sk-more li a { color: var(--sk-green); }
.sk-more .sk-date { display: inline; margin: 0 0 0 8px; }
.sk-actions { margin-top: 32px; }
.sk-actions > .sk-button { justify-self: end; }

.sk-button, .gh-button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    background: var(--sk-green);
    color: #fff;
    font-size: 1.6rem;
    text-decoration: none;
}
.sk-button:hover { background: var(--sk-green-dark); }

/* Footer */
.sk-footer { margin-top: auto; background: var(--sk-green); color: #fff; }
.sk-footer-inner { box-sizing: content-box; max-width: var(--content-width, 720px); margin: 0 auto; padding: 20px var(--container-gap, 14px); } /* aligns with page text column */
.sk-footer-title { font-size: 1.6rem; }
/* footer blocks side by side, wrapping on narrow screens */
.sk-footer-content { display: flex; flex-wrap: wrap; gap: 12px 48px; justify-content: space-between; align-items: flex-start; font-size: 1.4rem; line-height: 1.5; color: #fff; }
.sk-footer-content > * { margin: 0; }
.sk-footer-content :is(h2, h3) { font-size: 1.6rem; color: #fff; }
.sk-footer a { color: #fff; text-decoration: underline; }

/* Document browser (/dokument/) */
.sk-docs-page { padding-block: 32px 48px; }
.sk-page-title { font-size: clamp(2.6rem, 2rem + 1.5vw, 3.4rem); line-height: 1.2; margin-bottom: 12px; }
.sk-docs-page p { font-size: 1.7rem; }
#sk-docs { margin-top: 24px; font-size: 1.6rem; }
.sk-docs-status { color: var(--color-secondary-text); }
.sk-crumbs { margin-bottom: 12px; font-weight: 700; }
.sk-crumbs a { color: var(--sk-green); text-decoration: none; }
.sk-crumbs a:hover { text-decoration: underline; }
.sk-docs-table { overflow-x: auto; background: #fff; border: 1px solid #dcdcdc; border-radius: 6px; }
.sk-docs-table table { width: 100%; border-collapse: collapse; }
.sk-docs-table th, .sk-docs-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #ececec; white-space: nowrap; }
.sk-docs-table th { background: #f0f2f1; font-size: 1.4rem; }
.sk-docs-table tr:last-child td { border-bottom: 0; }
.sk-docs-table tbody tr:hover { background: #f7faf8; }
.sk-docs-name { width: 100%; white-space: normal !important; }
.sk-docs-name a { display: inline-flex; align-items: center; gap: 8px; color: var(--sk-green); text-decoration: none; }
.sk-docs-name a:hover span { text-decoration: underline; }
.sk-ico { flex: none; width: 20px; height: 20px; fill: none; stroke: #7a7c7b; stroke-width: 1.6; stroke-linejoin: round; }
.sk-ico-pdf { stroke: #bd2130; }
.sk-ico-dir { fill: #e8b84a; stroke: #c99a2e; }
@media (max-width: 600px) {
    .sk-docs-table th:nth-child(3), .sk-docs-table td:nth-child(3) { display: none; }
}

/* Pages: tighter title spacing than Source (72px 32px) */
.page-template .gh-article-header { margin-block: 32px 20px; }

/* Tighter text rhythm: scales all Source content gaps (paragraphs 28px -> ~17px, headings 56px -> ~34px) */
.gh-content { --content-spacing-factor: 0.6; }

/* Homepage intro (page "startsida"): welcome text + shortcut boxes from its bulleted list */
.sk-intro { margin-bottom: 40px; }
.sk-intro .gh-content > :last-child { margin-bottom: 0; }
/* Shortcut boxes: an HTML card <div class="sk-genvagar"></div> right before a list (Ghost lists cannot have classes) */
.sk-genvagar { display: none; }
.gh-content .sk-genvagar + ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; list-style: none; }
.gh-content .sk-genvagar + ul > li { margin: 0; padding: 14px 16px; background: #fff; border-left: 4px solid var(--sk-green); border-radius: 4px; font-size: 1.5rem; line-height: 1.4; }
.gh-content .sk-genvagar + ul > li a { font-size: 1.7rem; font-weight: 600; }
.sk-excerpt a { color: var(--sk-green); }

/* Mobile: 100vh counts the hidden browser toolbar, pushing the footer of short pages under it */
.gh-viewport { min-height: 100dvh; }
@media (max-width: 599px) { .gh-content .sk-genvagar + ul { grid-template-columns: 1fr; } } /* stack shortcuts instead of 2 + 1 */

/* Contact form (custom-kontaktformular.hbs) */
.sk-form-wrap { margin-block: 32px 64px; }
.sk-form { display: grid; gap: 14px; margin-top: 12px; }
.sk-form label { display: grid; gap: 4px; font-size: 1.5rem; font-weight: 600; }
.sk-form :is(input, textarea) { width: 100%; padding: 10px 12px; border: 1px solid #c8d0ca; border-radius: 4px; background: #fff; color: var(--sk-text); font: inherit; font-weight: 400; }
.sk-form :is(input, textarea):focus { outline: 2px solid var(--sk-green); outline-offset: 1px; }
.sk-form .sk-button { justify-self: start; border: 0; font: inherit; cursor: pointer; }
.sk-hp { position: absolute; left: -9999px; }
.sk-form-status { padding: 12px 16px; border-left: 4px solid var(--sk-green); border-radius: 4px; background: #fff; }
.sk-form-status:is(.is-fel, .is-vanta) { border-left-color: #b3261e; }

.page-template .gh-content > :last-child:not(.kg-width-full) {
    margin-bottom: 2em;
}
