*{box-sizing:border-box}
:root{
    --green:#1f6f43;--green-dark:#123d2a;--green-light:#e4f0e8;
    --bg:#f4f3ed;--card:#fff;--text:#1c2b22;--muted:#66756d;
    --line:#dce5df;--radius:18px;
}
html{font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text);-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg)}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
img{max-width:100%;display:block}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.m-shell{width:min(100% - 28px,920px);margin-inline:auto}
.m-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}
.m-header__inner{min-height:68px;width:min(100% - 28px,920px);margin:auto;display:flex;align-items:center;justify-content:space-between;gap:16px}
.m-brand{display:flex;align-items:center;gap:10px;color:var(--green-dark);font-weight:800;font-size:17px}
.m-brand img{width:38px;height:38px;object-fit:contain}
.m-menu-button{width:44px;height:44px;border:0;border-radius:12px;background:var(--green-light);display:grid;place-content:center;gap:4px;cursor:pointer}
.m-menu-button span:not(.sr-only){display:block;width:20px;height:2px;background:var(--green-dark);border-radius:4px}
.m-menu{position:absolute;left:0;right:0;top:100%;padding:8px 14px 16px;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 14px 30px rgba(18,61,42,.12)}
.m-menu[hidden]{display:none}
.m-menu a{display:flex;align-items:center;min-height:48px;padding:0 14px;border-bottom:1px solid #edf1ee;font-weight:700}
.m-menu__urgent{color:#8d2d27!important}
.m-main{padding-bottom:22px}
.m-hero{margin:14px;border-radius:22px;background:linear-gradient(135deg,var(--green-dark),var(--green));color:#fff;overflow:hidden}
.m-hero .m-shell{width:auto;margin:0;padding:36px 22px 38px}
.m-eyebrow{margin:0 0 7px;color:var(--green);font-size:11px;font-weight:900;letter-spacing:.11em}
.m-hero .m-eyebrow{color:#cfe7d8}
.m-hero h1{margin:0;font-family:Georgia,'Times New Roman',serif;font-size:36px;line-height:1.05}
.m-hero p:last-child{margin:12px 0 0;color:#edf6f0;line-height:1.5}
.m-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}
.m-shortcut{min-height:132px;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 3px 12px rgba(18,61,42,.035)}
.m-shortcut__icon{display:grid;place-items:center;width:34px;height:34px;margin-bottom:13px;border-radius:10px;background:var(--green-light);color:var(--green);font-weight:900}
.m-shortcut strong,.m-shortcut small{display:block}
.m-shortcut strong{font-size:15px}
.m-shortcut small{margin-top:4px;color:var(--muted);font-size:12px;line-height:1.35}
.m-section{padding-top:34px}
.m-section__heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:13px}
.m-section__heading h2,.m-office h2{margin:0;font-family:Georgia,'Times New Roman',serif;color:var(--green-dark);font-size:25px}
.m-section__heading>a{padding-bottom:3px;color:var(--green);font-size:13px;font-weight:800}
.m-stack{display:grid;gap:10px}
.m-news-card,.m-event-card{display:flex;align-items:center;gap:13px;padding:15px;border:1px solid var(--line);border-radius:15px;background:#fff}
.m-news-card>div,.m-event-card__body{min-width:0;flex:1}
.m-news-card small,.m-event-card small{color:var(--muted)}
.m-news-card h3,.m-event-card h3{margin:4px 0 5px;font-size:15px;line-height:1.3}
.m-news-card p,.m-event-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.4}
.m-news-card>a,.m-event-card>a{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:var(--green-light);color:var(--green);font-size:20px;font-weight:900}
.m-date{display:grid;place-items:center;flex:0 0 52px;width:52px;height:58px;border-radius:12px;background:var(--green-dark);color:#fff}
.m-date strong{font-size:21px;line-height:1}
.m-date span{font-size:10px;font-weight:800;text-transform:uppercase}
.m-office{padding:22px;border-radius:18px;background:var(--green-dark);color:#fff}
.m-office .m-eyebrow{color:#cfe7d8}
.m-office h2{color:#fff}
.m-office>p:not(.m-eyebrow){color:#dcebe2;line-height:1.5}
.m-office__actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:18px}
.m-button{display:flex;align-items:center;justify-content:center;min-height:46px;padding:10px 12px;border:1px solid rgba(255,255,255,.35);border-radius:12px;color:#fff;font-size:13px;font-weight:800;text-align:center}
.m-button--primary{background:#fff;color:var(--green-dark);border-color:#fff}
.m-link-list{overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff}
.m-link-list a{display:flex;align-items:center;justify-content:space-between;min-height:54px;padding:0 16px;border-bottom:1px solid #edf1ee;font-weight:700}
.m-link-list a:last-child{border-bottom:0}
.m-link-list b{color:var(--green);font-size:23px}
.m-empty{padding:18px;border:1px dashed #cbd8d0;border-radius:14px;color:var(--muted);background:#fafcfb}
.m-footer{margin-top:34px;padding:28px 0 calc(28px + env(safe-area-inset-bottom));background:var(--green-dark);color:#eaf3ed}
.m-footer .m-shell{display:grid;grid-template-columns:44px 1fr;gap:12px;align-items:center}
.m-footer img{width:42px}
.m-footer p{margin:0;font-size:13px;line-height:1.45}
.m-footer small{grid-column:2;color:#afc9ba}
@media(min-width:700px){
    .m-shell,.m-header__inner{width:min(100% - 48px,920px)}
    .m-hero{width:min(100% - 48px,920px);margin:22px auto 0}
    .m-hero .m-shell{padding:48px 34px}
    .m-hero h1{font-size:46px}
    .m-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
    .m-shortcut{min-height:142px}
    .m-stack{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:1000px){
    .m-shell,.m-header__inner,.m-hero{max-width:1040px}
}


/* =========================================================
   4.02 – NYHEDER & ARRANGEMENTER
   ========================================================= */
.m-subhero{margin:14px;border-radius:22px;background:linear-gradient(135deg,var(--green-dark),var(--green));color:#fff}
.m-subhero .m-shell{width:auto;padding:28px 22px 31px}
.m-subhero .m-eyebrow{color:#cfe7d8;margin-top:18px}
.m-subhero h1,.m-article__header h1{margin:0;font-family:Georgia,'Times New Roman',serif;font-size:32px;line-height:1.08}
.m-subhero p:last-child{margin:10px 0 0;color:#eaf3ed;line-height:1.5}
.m-back{display:inline-flex;align-items:center;min-height:38px;color:inherit;font-size:13px;font-weight:800}
.m-section--first{padding-top:22px}
.m-filter{display:grid;gap:12px;margin-bottom:28px;padding:15px;border:1px solid var(--line);border-radius:15px;background:#fff}
.m-filter label>span{display:block;margin-bottom:6px;color:var(--green-dark);font-size:12px;font-weight:800}
.m-filter input,.m-filter select{width:100%;min-height:46px;padding:10px 12px;border:1px solid #cfdad3;border-radius:10px;background:#fff;color:var(--text);font-size:16px}
.m-filter__search{display:grid;grid-template-columns:1fr auto;gap:7px}
.m-filter__search button{min-width:68px;border:0;border-radius:10px;background:var(--green);color:#fff;font-weight:800}
.m-count{padding:7px 10px;border-radius:999px;background:var(--green-light);color:var(--green);font-size:11px;font-weight:800;white-space:nowrap}
.m-news-list,.m-arrangement-list{display:grid;gap:13px}
.m-news-item{overflow:hidden;border:1px solid var(--line);border-radius:17px;background:#fff}
.m-news-item__image{display:block;aspect-ratio:16/9;background:#e9efeb}
.m-news-item__image img{width:100%;height:100%;object-fit:cover}
.m-news-item__body{padding:17px}
.m-news-item time,.m-article__header time{color:var(--muted);font-size:12px;font-weight:700}
.m-news-item h2{margin:7px 0 8px;font-size:20px;line-height:1.2;color:var(--green-dark)}
.m-news-item p{margin:0 0 14px;color:var(--muted);font-size:14px;line-height:1.5}
.m-inline-action{display:inline-flex;align-items:center;gap:7px;color:var(--green);font-size:13px;font-weight:900}
.m-inline-action span{font-size:18px}
.m-article__header{padding:30px 0 24px;background:#eaf3ed}
.m-article__header .m-back{margin-bottom:20px;color:var(--green)}
.m-article__header h1{margin-top:8px;color:var(--green-dark)}
.m-article__lead{margin:13px 0 0;color:#50655a;font-size:17px;line-height:1.55}
.m-article__image{width:calc(100% - 28px);margin-top:18px;border-radius:17px;aspect-ratio:16/10;object-fit:cover}
.m-article__content{padding-top:24px;padding-bottom:20px}
.m-prose{margin-bottom:24px;color:#29372f;font-size:16px;line-height:1.72}
.m-button--green{background:var(--green);border-color:var(--green);color:#fff}
.m-arrangement{padding:17px;border:1px solid var(--line);border-radius:17px;background:#fff}
.m-arrangement--next{border-color:#9fc6ae;box-shadow:0 5px 18px rgba(18,61,42,.06)}
.m-arrangement__top{display:flex;align-items:flex-start;gap:13px}
.m-arrangement__title{min-width:0;flex:1}
.m-arrangement__title h2{margin:8px 0 0;color:var(--green-dark);font-size:20px;line-height:1.2}
.m-pill{display:inline-flex;margin:0 5px 5px 0;padding:5px 8px;border-radius:999px;background:#edf2ef;color:#52645a;font-size:10px;font-weight:800}
.m-pill--next,.m-pill--open{background:#e0f1e6;color:#17613e}
.m-pill--later{background:#fff3d9;color:#795b18}
.m-pill--closed{background:#f5e7e5;color:#8b3931}
.m-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:16px}
.m-facts div{padding:10px;border-radius:10px;background:#f5f8f6}
.m-facts span,.m-facts strong{display:block}
.m-facts span{color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase}
.m-facts strong{margin-top:3px;color:var(--green-dark);font-size:13px;line-height:1.35}
.m-arrangement__summary{margin:16px 0 0;color:#394a41;line-height:1.55}
.m-arrangement__meta{margin:11px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
.m-arrangement__actions{display:grid;gap:9px;margin-top:16px}
.m-details{border-top:1px solid #e6ece8;padding-top:12px}
.m-details summary{color:var(--green);font-size:13px;font-weight:900;cursor:pointer}
.m-details>div{padding-top:11px;color:#4f6057;font-size:14px;line-height:1.6}
@media(min-width:700px){
    .m-subhero{width:min(100% - 48px,920px);margin:22px auto 0}
    .m-subhero .m-shell{padding:38px 34px}
    .m-filter{grid-template-columns:1fr 180px;align-items:end}
    .m-news-list{grid-template-columns:repeat(2,minmax(0,1fr))}
    .m-arrangement-list{grid-template-columns:repeat(2,minmax(0,1fr))}
    .m-article__image{width:min(100% - 48px,920px)}
}


/* =========================================================
   4.03 – ARRANGEMENTSTILMELDING & PERSONLIGT LINK
   ========================================================= */
.registration-hero{
    margin:14px;
    border-radius:22px;
    background:linear-gradient(135deg,var(--green-dark),var(--green));
    color:#fff;
}
.registration-hero .wrap{
    width:auto;
    padding:28px 22px 31px;
}
.registration-hero .resident-back{
    display:inline-flex;
    min-height:38px;
    align-items:center;
    color:#dcebe2;
    font-size:13px;
    font-weight:800;
}
.registration-hero .eyebrow{color:#cfe7d8;margin-top:18px}
.registration-hero h1{
    margin:0;
    color:#fff;
    font-family:Georgia,'Times New Roman',serif;
    font-size:31px;
    line-height:1.08;
}
.registration-hero p:last-child{
    margin:10px 0 0;
    color:#eaf3ed;
    line-height:1.5;
}
.registration-shell{
    width:min(100% - 28px,920px);
    margin:0 auto;
    padding:22px 0 34px;
}
.registration-back{
    display:inline-flex;
    min-height:40px;
    align-items:center;
    margin-bottom:12px;
    color:var(--green);
    font-size:13px;
    font-weight:800;
}
.registration-layout{display:grid;gap:13px}
.registration-card{
    padding:18px;
    border:1px solid var(--line);
    border-radius:17px;
    background:#fff;
}
.registration-card>.eyebrow,
.registration-success>.eyebrow,
.registration-closed>.eyebrow{
    margin-bottom:7px;
}
.registration-card h2,
.registration-success h2,
.registration-closed h2{
    margin:0 0 12px;
    color:var(--green-dark);
    font-family:Georgia,'Times New Roman',serif;
    font-size:23px;
    line-height:1.2;
}
.registration-facts{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin:16px 0 0;
}
.registration-facts div{
    min-width:0;
    padding:11px;
    border-radius:10px;
    background:#f4f8f5;
}
.registration-facts dt{
    color:var(--muted);
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
}
.registration-facts dd{
    margin:4px 0 0;
    color:var(--green-dark);
    font-size:13px;
    font-weight:800;
    line-height:1.4;
    overflow-wrap:anywhere;
}
.registration-description{
    margin-top:16px;
    padding-top:15px;
    border-top:1px solid #e5ece7;
    color:#4c5d54;
    font-size:14px;
    line-height:1.6;
}
.registration-intro{
    margin:0 0 17px;
    color:var(--muted);
    font-size:14px;
    line-height:1.55;
}
.registration-form{display:grid;gap:13px}
.registration-field{display:block}
.registration-field>span{
    display:block;
    margin-bottom:6px;
    color:var(--green-dark);
    font-size:12px;
    font-weight:800;
}
.registration-field input,
.registration-field select{
    width:100%;
    min-height:48px;
    padding:10px 12px;
    border:1px solid #cdd9d1;
    border-radius:10px;
    background:#fff;
    color:var(--text);
    font-size:16px;
}
.registration-field input:focus,
.registration-field select:focus{
    outline:3px solid rgba(31,111,67,.13);
    border-color:var(--green);
}
.registration-field select:disabled{
    background:#f1f4f2;
    color:#7b8881;
}
.registration-field small{
    display:block;
    margin-top:6px;
    color:#718078;
    font-size:11px;
    line-height:1.45;
}
.registration-form__two{display:grid;gap:13px}
.registration-email-parts{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1.25fr);
    gap:6px;
    align-items:center;
}
.registration-email-at{
    color:var(--green-dark);
    font-weight:900;
}
.registration-field--phone input{max-width:180px}
.registration-privacy-note{
    padding:13px 14px;
    border-radius:11px;
    background:#f1f6f3;
    color:#52645a;
    font-size:12px;
    line-height:1.5;
}
.registration-privacy-note strong{display:block;color:var(--green-dark)}
.registration-privacy-note p{margin:4px 0 0}
.registration-primary,
.registration-danger{
    display:flex;
    width:100%;
    min-height:49px;
    align-items:center;
    justify-content:center;
    padding:11px 15px;
    border:0;
    border-radius:11px;
    font-weight:900;
    text-align:center;
    cursor:pointer;
}
.registration-primary{
    background:var(--green);
    color:#fff;
}
.registration-danger{
    background:#8c342e;
    color:#fff;
}
.registration-alert{
    margin-bottom:15px;
    padding:13px 14px;
    border-radius:11px;
    font-size:13px;
    line-height:1.5;
}
.registration-alert--error{
    border:1px solid #e5bdb8;
    background:#fff0ee;
    color:#7c302a;
}
.registration-alert--success{
    border:1px solid #b9d9c5;
    background:#edf8f1;
    color:#175a3a;
}
.registration-success__mark{
    display:grid;
    width:48px;
    height:48px;
    place-items:center;
    margin-bottom:14px;
    border-radius:50%;
    background:#dff1e6;
    color:var(--green);
    font-size:25px;
    font-weight:900;
}
.registration-success p,
.registration-closed p{
    color:#53645b;
    line-height:1.55;
}
.registration-warning{
    padding:12px;
    border-radius:10px;
    background:#fff5dd;
    color:#71571d!important;
}
.registration-cancel-zone{
    margin-top:22px;
    padding-top:18px;
    border-top:1px solid #e4ebe6;
}
.registration-cancel-zone h3{
    margin:0 0 11px;
    color:#5f2d29;
    font-size:16px;
}
@media(min-width:700px){
    .registration-hero{
        width:min(100% - 48px,920px);
        margin:22px auto 0;
    }
    .registration-hero .wrap{padding:38px 34px}
    .registration-shell{width:min(100% - 48px,920px)}
    .registration-layout{
        grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
        align-items:start;
    }
    .registration-form__two{grid-template-columns:1fr 1fr}
    .registration-primary,.registration-danger{width:auto;min-width:180px}
}
@media(max-width:420px){
    .registration-email-parts{
        grid-template-columns:1fr 24px 1.2fr;
        gap:4px;
    }
    .registration-email-parts input{padding-left:8px;padding-right:8px}
    .registration-facts{grid-template-columns:1fr 1fr}
}


/* =========================================================
   4.04 – DOKUMENTER, HUSORDEN, RÅDERET & VEDLIGEHOLDELSE
   ========================================================= */
.documents-hero,.resident-page-hero{
    margin:14px;
    border-radius:22px;
    background:linear-gradient(135deg,var(--green-dark),var(--green));
    color:#fff;
}
.documents-hero .wrap,.resident-page-hero .wrap{
    width:auto;
    padding:28px 22px 31px;
}
.documents-hero .eyebrow,.resident-page-hero .eyebrow{color:#cfe7d8}
.documents-hero h1,.resident-page-hero h1{
    margin:0;
    color:#fff;
    font-family:Georgia,'Times New Roman',serif;
    font-size:31px;
    line-height:1.08;
}
.documents-hero p,.resident-page-hero> .wrap > p:not(.eyebrow){
    margin:10px 0 0;
    color:#eaf3ed;
    line-height:1.55;
}
.documents-hero__mark{display:none}
.house-rules-meta{
    display:inline-flex;
    flex-direction:column;
    gap:2px;
    margin-top:17px;
    padding:10px 13px;
    border:1px solid rgba(255,255,255,.2);
    border-radius:10px;
    background:rgba(255,255,255,.09);
}
.house-rules-meta span{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:#d5e7dc}
.house-rules-meta strong{font-size:13px;color:#fff}
.resident-back{
    display:inline-flex;
    min-height:38px;
    align-items:center;
    margin-bottom:16px;
    color:#dcebe2;
    font-size:13px;
    font-weight:800;
}
.documents-layout,.house-rules-layout,.resident-guide-layout{
    width:min(100% - 28px,920px);
    margin:0 auto;
    padding:22px 0 34px;
}
.documents-layout,.house-rules-layout,.resident-guide-layout{display:block}
.documents-sidebar,.house-rules-nav,.resident-guide-nav{
    margin-bottom:16px;
    padding:15px;
    border:1px solid var(--line);
    border-radius:15px;
    background:#fff;
}
.documents-sidebar__heading h2,.house-rules-nav h2,.resident-guide-nav h2{
    margin:0 0 5px;
    color:var(--green-dark);
    font-size:18px;
}
.documents-sidebar__heading p{margin:0 0 12px;color:var(--muted);font-size:12px}
.document-categories,.house-rules-nav nav,.resident-guide-nav nav{
    display:flex;
    gap:7px;
    overflow-x:auto;
    padding:2px 0 5px;
    scrollbar-width:thin;
}
.document-category,.house-rules-nav nav a,.resident-guide-nav nav a{
    flex:0 0 auto;
    min-height:39px;
    padding:9px 12px;
    border:1px solid #d6e1da;
    border-radius:999px;
    background:#f7faf8;
    color:var(--green-dark);
    font-size:12px;
    font-weight:800;
    white-space:nowrap;
}
.document-category.is-active{
    border-color:var(--green);
    background:var(--green);
    color:#fff;
}
.document-category>span:last-child{display:none}
.document-toolbar{
    display:grid;
    gap:11px;
    margin-bottom:22px;
    padding:15px;
    border:1px solid var(--line);
    border-radius:15px;
    background:#fff;
}
.document-search>span,.document-year>span{
    display:block;
    margin-bottom:6px;
    color:var(--green-dark);
    font-size:12px;
    font-weight:800;
}
.document-search__field{display:grid;grid-template-columns:1fr auto;gap:7px}
.document-search input,.document-year select{
    width:100%;
    min-height:46px;
    padding:10px 12px;
    border:1px solid #cfdad3;
    border-radius:10px;
    background:#fff;
    color:var(--text);
    font-size:16px;
}
.document-search button{
    min-width:68px;
    border:0;
    border-radius:10px;
    background:var(--green);
    color:#fff;
    font-weight:800;
}
.documents-result-header,.m-section__heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:12px;
    margin-bottom:13px;
}
.documents-result-header h2{margin:0;color:var(--green-dark);font-size:22px}
.documents-result-header>span{
    padding:7px 10px;
    border-radius:999px;
    background:var(--green-light);
    color:var(--green);
    font-size:11px;
    font-weight:800;
    white-space:nowrap;
}
.document-list{display:grid;gap:10px}
.document-item{
    display:grid;
    grid-template-columns:42px 1fr;
    gap:12px;
    padding:15px;
    border:1px solid var(--line);
    border-radius:15px;
    background:#fff;
}
.document-item__icon{
    display:grid;
    width:42px;
    height:42px;
    place-items:center;
    border-radius:10px;
    background:var(--green-light);
    color:var(--green);
    font-size:20px;
}
.document-item__content{min-width:0}
.document-item__meta,.document-item__filemeta{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    color:var(--muted);
    font-size:10px;
    font-weight:700;
}
.document-item h3{margin:6px 0;color:var(--green-dark);font-size:17px;line-height:1.25}
.document-item p{margin:0 0 8px;color:var(--muted);font-size:13px;line-height:1.5}
.document-download{
    grid-column:1/-1;
    display:flex;
    min-height:45px;
    align-items:center;
    justify-content:center;
    gap:7px;
    border-radius:10px;
    background:var(--green);
    color:#fff;
    font-size:13px;
    font-weight:900;
}
.documents-empty{
    padding:25px 18px;
    border:1px solid var(--line);
    border-radius:15px;
    background:#fff;
    text-align:center;
}
.documents-empty__icon{font-size:28px;color:var(--green)}
.documents-empty h3{color:var(--green-dark)}
.documents-empty p{color:var(--muted);line-height:1.55}
.house-rules-content,.resident-guide-content{display:grid;gap:12px}
.house-rule-section,.resident-guide-section{
    scroll-margin-top:86px;
    padding:18px;
    border:1px solid var(--line);
    border-radius:15px;
    background:#fff;
}
.house-rule-section h2,.resident-guide-section h2{
    margin:0 0 10px;
    color:var(--green-dark);
    font-family:Georgia,'Times New Roman',serif;
    font-size:22px;
    line-height:1.2;
}
.house-rule-section h3,.resident-guide-section h3{
    margin:17px 0 7px;
    color:var(--green-dark);
    font-size:16px;
}
.house-rule-section p,.resident-guide-section p,
.house-rule-section li,.resident-guide-section li{
    color:#44564c;
    font-size:14px;
    line-height:1.65;
}
.house-rule-section__number,.resident-guide-section__number{
    margin:0 0 5px!important;
    color:var(--green)!important;
    font-size:11px!important;
    font-weight:900;
    letter-spacing:.08em;
}
.house-rule-list,.resident-guide-list{
    margin:10px 0;
    padding-left:20px;
}
.house-rule-highlight,.resident-guide-highlight,
.house-rule-warning,.resident-guide-warning{
    margin:13px 0;
    padding:13px 14px;
    border-radius:11px;
    background:#edf6f0;
}
.house-rule-warning,.resident-guide-warning{background:#fff4df}
.house-rule-highlight strong,.resident-guide-highlight strong,
.house-rule-warning strong,.resident-guide-warning strong{
    display:block;
    margin-bottom:4px;
    color:var(--green-dark);
}
.house-rule-highlight span,.resident-guide-highlight span{color:#4b5e53;font-size:13px;line-height:1.5}
.resident-guide-table{display:grid;gap:8px;margin-top:12px}
.resident-guide-table>div{
    padding:12px;
    border-radius:10px;
    background:#f5f8f6;
}
.resident-guide-table strong,.resident-guide-table span{display:block}
.resident-guide-table strong{color:var(--green-dark);font-size:13px}
.resident-guide-table span{margin-top:4px;color:#56675e;font-size:12px;line-height:1.5}
.house-rules-signatures{
    display:grid;
    gap:8px;
    margin-top:15px;
}
.house-rules-signatures span{
    padding:11px;
    border-radius:10px;
    background:#f5f8f6;
    color:var(--green-dark);
    font-weight:800;
}
.house-rules-signatures small{display:block;color:var(--muted);font-weight:600}
@media(min-width:700px){
    .documents-hero,.resident-page-hero{
        width:min(100% - 48px,920px);
        margin:22px auto 0;
    }
    .documents-hero .wrap,.resident-page-hero .wrap{padding:38px 34px}
    .documents-layout,.house-rules-layout,.resident-guide-layout{width:min(100% - 48px,920px)}
    .document-toolbar{grid-template-columns:1fr 180px;align-items:end}
    .document-list{grid-template-columns:repeat(2,minmax(0,1fr))}
    .document-item{grid-template-columns:42px 1fr}
    .document-download{grid-column:1/-1}
}


/* =========================================================
   4.05 – PRAKTISK HJÆLP, KONTAKT & PARKERING
   ========================================================= */
.resident-info-grid,
.urgent-layout,
.resident-topic-grid,
.important-contacts-page,
.activities-intro,
.parking-special,
.resident-notice{
    width:min(100% - 28px,920px);
    margin-left:auto;
    margin-right:auto;
}
.resident-info-grid,
.urgent-layout,
.resident-topic-grid,
.important-contact-grid{
    display:grid;
    gap:12px;
    padding-top:22px;
    padding-bottom:8px;
}
.resident-info-card,
.urgent-card,
.urgent-warning,
.resident-topic-card,
.important-contact-card,
.parking-special,
.resident-notice,
.activities-intro{
    padding:18px;
    border:1px solid var(--line);
    border-radius:15px;
    background:#fff;
}
.resident-info-card h2,
.urgent-card h2,
.urgent-warning h2,
.resident-topic-card h2,
.important-contact-card h3,
.parking-special h2,
.activities-intro h2{
    margin:0 0 10px;
    color:var(--green-dark);
    line-height:1.2;
}
.resident-info-card h2,
.urgent-warning h2,
.resident-topic-card h2,
.parking-special h2,
.activities-intro h2{
    font-family:Georgia,'Times New Roman',serif;
}
.resident-info-card p,
.urgent-card p,
.urgent-warning p,
.resident-topic-card p,
.parking-special p,
.resident-notice p,
.activities-intro p{
    color:#4d5f55;
    font-size:14px;
    line-height:1.6;
}
.resident-info-note{
    margin-top:13px!important;
    padding:12px;
    border-radius:10px;
    background:#f4f8f5;
    color:#66766d!important;
    font-size:12px!important;
}
.resident-notice{
    margin-top:13px;
    margin-bottom:30px;
    background:#edf6f0;
}
.resident-notice>strong{
    display:block;
    margin-bottom:4px;
    color:var(--green-dark);
}
.resident-notice a{color:var(--green);font-weight:900}
.resident-page-hero--urgent{
    background:linear-gradient(135deg,#5e2926,#8b3931);
}
.urgent-card{
    text-align:center;
}
.urgent-card>.eyebrow{
    margin-bottom:6px;
    color:var(--green);
}
.urgent-card h2{
    margin-bottom:8px;
    font-family:inherit;
    font-size:34px;
    letter-spacing:.02em;
}
.urgent-card__instruction{font-size:16px!important}
.button.button--primary,
.important-contacts-alert__button{
    display:flex;
    min-height:49px;
    align-items:center;
    justify-content:center;
    margin-top:15px;
    padding:11px 15px;
    border-radius:11px;
    background:var(--green);
    color:#fff;
    font-weight:900;
    text-align:center;
}
.urgent-warning{
    border-color:#ead2aa;
    background:#fff7e8;
}
.urgent-warning h2{color:#74551c}
.urgent-warning p{color:#695c42}
.important-contacts-intro{
    margin-top:22px;
    margin-bottom:10px;
}
.important-contacts-intro .eyebrow{
    margin:0 0 5px;
    color:var(--green);
}
.important-contacts-page{padding-bottom:30px}
.important-contact-section{margin-top:12px}
.important-contact-card{
    position:relative;
}
.important-contact-card--emergency{
    border-color:#d8aaa6;
    background:#fffafa;
}
.important-contact-card__label{
    margin:0 0 5px;
    color:var(--green);
    font-size:10px;
    font-weight:900;
    letter-spacing:.07em;
}
.important-contact-card__top h3{
    padding-right:54px;
    font-size:19px;
}
.important-contact-card__badge{
    position:absolute;
    top:15px;
    right:15px;
    padding:5px 8px;
    border-radius:999px;
    background:#8b3931;
    color:#fff;
    font-size:9px;
    font-weight:900;
}
.important-contact-card__description,
.important-contact-card__note{
    color:#586960;
    font-size:13px;
    line-height:1.55;
}
.important-contact-card__fact{
    margin-top:11px;
    padding:11px;
    border-radius:10px;
    background:#f4f8f5;
}
.important-contact-card__fact span{
    display:block;
    margin-bottom:3px;
    color:var(--muted);
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
}
.important-contact-card__fact a{
    color:var(--green-dark);
    font-size:16px;
    font-weight:900;
    overflow-wrap:anywhere;
}
.important-contact-card__link{
    display:inline-flex;
    min-height:40px;
    align-items:center;
    margin-top:10px;
    color:var(--green);
    font-size:13px;
    font-weight:900;
}
.important-contacts-empty{
    padding:22px;
    border:1px solid var(--line);
    border-radius:15px;
    background:#fff;
}
.parking-grid{padding-bottom:10px}
.parking-card__label{
    margin:0 0 5px!important;
    color:var(--green)!important;
    font-size:10px!important;
    font-weight:900;
    letter-spacing:.07em;
}
.parking-list,.parking-steps{
    margin:10px 0;
    padding-left:20px;
}
.parking-list li,.parking-steps li{
    margin:6px 0;
    color:#44564c;
    font-size:14px;
    line-height:1.55;
}
.parking-warning,.parking-neutral{
    margin-top:13px;
    padding:12px 13px;
    border-radius:10px;
}
.parking-warning{
    background:#fff1e8;
}
.parking-neutral{
    background:#f4f8f5;
}
.parking-warning strong,.parking-neutral strong{
    display:block;
    color:var(--green-dark);
}
.parking-warning p,.parking-neutral p{
    margin:4px 0 0;
    font-size:13px;
}
.parking-price-list{
    display:grid;
    gap:7px;
    margin:13px 0;
}
.parking-price-list>div{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:10px 11px;
    border-radius:9px;
    background:#f4f8f5;
    color:#4b5c53;
    font-size:12px;
}
.parking-price-list strong{color:var(--green-dark)}
.parking-card__note{
    padding-top:10px;
    border-top:1px solid #e5ebe7;
    color:#697870!important;
    font-size:12px!important;
}
.parking-special{
    margin-top:4px;
    margin-bottom:12px;
    background:#f0f7f2;
}
.parking-special .parking-card__label{margin-bottom:5px!important}
.parking-control{margin-bottom:30px}
@media(min-width:700px){
    .resident-info-grid,
    .urgent-layout,
    .resident-topic-grid,
    .important-contacts-page,
    .activities-intro,
    .parking-special,
    .resident-notice{
        width:min(100% - 48px,920px);
    }
    .resident-info-grid,
    .urgent-layout,
    .resident-topic-grid,
    .important-contact-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .resident-info-card--wide{grid-column:span 2}
    .urgent-card,.urgent-warning{min-height:100%}
}

/* 4.06 – fællesskab, frivillighed, lokaler og tryghed */
.community-page-hero,.facility-hero{margin:14px;border-radius:22px;background:linear-gradient(135deg,var(--green-dark),var(--green));color:#fff}
.community-page-hero .wrap,.facility-hero .wrap{width:auto;padding:28px 22px 31px}
.community-page-hero .eyebrow,.facility-hero .eyebrow{color:#cfe7d8}
.community-page-hero h1,.facility-hero h1{margin:0;color:#fff;font-family:Georgia,"Times New Roman",serif;font-size:31px;line-height:1.08}
.community-page-hero p:last-child,.facility-hero p:last-child{margin:10px 0 0;color:#eaf3ed;line-height:1.55}
.activities-intro,.activities-grid,.activities-info,.volunteer-grid,.volunteer-posts,.facility-overview,.facility-grid,.facility-common,.facility-contact,.safety-intro,.safety-grid,.safety-source{width:min(100% - 28px,920px);margin-left:auto;margin-right:auto}
.activities-intro,.facility-overview,.safety-intro{margin-top:22px;padding:18px;border:1px solid var(--line);border-radius:15px;background:#fff}
.activities-grid,.volunteer-grid,.facility-grid,.safety-grid{display:grid;gap:12px;padding:12px 0}
.activity-card,.volunteer-card,.facility-card,.safety-card,.activities-info,.facility-common,.facility-contact,.safety-source,.volunteer-current{padding:18px;border:1px solid var(--line);border-radius:15px;background:#fff}
.activity-card__label,.volunteer-card__label,.safety-card__label{margin:0 0 6px;color:var(--green);font-size:10px;font-weight:900;letter-spacing:.07em}
.activity-card h2,.volunteer-card h2,.facility-card h2,.safety-card h2,.volunteer-current h2,.activities-intro h2,.facility-overview h2,.safety-intro h2{margin:0 0 10px;color:var(--green-dark);font-size:20px;line-height:1.2}
.activity-card p,.volunteer-card p,.facility-card p,.safety-card p,.volunteer-current p,.volunteer-current li,.activities-intro p,.facility-overview p,.safety-intro p{color:#4d5f55;font-size:14px;line-height:1.58}
.activity-card__place,.facility-card__capacity{display:inline-flex;margin-bottom:9px;padding:5px 8px;border-radius:999px;background:var(--green-light);color:var(--green);font-size:10px;font-weight:800}
.activity-card__fact,.activity-card__facts>div,.activity-schedule>div,.facility-facts>div,.facility-price,.facility-common__grid>div{margin-top:8px;padding:11px;border-radius:10px;background:#f4f8f5}
.activity-card__fact span,.activity-card__facts span,.activity-schedule span,.facility-facts span,.facility-price span{display:block;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase}
.activity-card__fact strong,.activity-card__facts strong,.activity-schedule strong,.facility-facts strong,.facility-price strong{display:block;margin-top:3px;color:var(--green-dark);font-size:13px;line-height:1.4}
.activity-card__facts,.facility-facts{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.activity-card__link,.facility-document-link,.resident-guide-button{display:inline-flex;min-height:40px;align-items:center;margin-top:10px;color:var(--green);font-size:13px;font-weight:900}
.volunteer-current{margin-top:12px}.volunteer-current__content{display:grid;gap:12px}.volunteer-current ul,.facility-rules,.safety-status ul{padding-left:20px}
.volunteer-current__contact{padding:14px;border-radius:11px;background:#f0f7f2}
.volunteer-email-button{display:flex;min-height:48px;align-items:center;justify-content:center;margin-top:12px;padding:10px;border-radius:10px;background:var(--green);color:#fff;font-size:13px;font-weight:900;text-align:center}
.facility-price strong{font-size:22px}.facility-price small{display:block;margin-top:3px;color:var(--muted);font-size:11px}
.facility-rules li,.safety-status li{margin:6px 0;color:#44564c;font-size:13px;line-height:1.5}
.facility-common__grid{display:grid;gap:8px}.facility-contact__actions{display:flex;flex-wrap:wrap;gap:8px}
.safety-status,.safety-note{margin-top:11px;padding:13px;border-radius:11px;background:#edf6f0}.safety-status--warning{background:#fff4df}
.activities-info,.facility-common,.facility-contact,.safety-source{margin-bottom:28px}
@media(min-width:700px){.community-page-hero,.facility-hero{width:min(100% - 48px,920px);margin:22px auto 0}.community-page-hero .wrap,.facility-hero .wrap{padding:38px 34px}.activities-intro,.activities-grid,.activities-info,.volunteer-grid,.volunteer-posts,.facility-overview,.facility-grid,.facility-common,.facility-contact,.safety-intro,.safety-grid,.safety-source{width:min(100% - 48px,920px)}.activities-grid,.volunteer-grid,.facility-grid,.safety-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.volunteer-current__content{grid-template-columns:1fr .8fr}.facility-common__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* =========================================================
   4.07 – SAMLET NAVIGATION, TABLET & KONSISTENS
   ========================================================= */
html{scroll-behavior:smooth}
body{overflow-x:hidden}
body.m-menu-open{overflow:hidden}
img,svg,video{max-width:100%;height:auto}
input,select,textarea{max-width:100%}

.m-menu{max-height:calc(100dvh - 72px);overflow-y:auto;overscroll-behavior:contain}
.m-menu__group{display:grid;gap:3px;padding:11px 0;border-bottom:1px solid rgba(255,255,255,.12)}
.m-menu__group:last-child{border-bottom:0}
.m-menu__label{padding:0 16px 5px;color:rgba(255,255,255,.62);font-size:10px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.m-menu__group a{display:flex;min-height:46px;align-items:center;border-radius:10px}
.m-menu__group a.is-current{background:rgba(255,255,255,.14);color:#fff}
.m-menu__group a.is-current::after{content:"";width:7px;height:7px;margin-left:auto;border-radius:50%;background:#fff}
.m-menu__urgent{background:rgba(126,43,36,.24)}

a,button,input,select,textarea,summary{-webkit-tap-highlight-color:rgba(31,111,67,.12)}
button,.m-button,.button,.registration-primary,.registration-danger,.document-download,.volunteer-email-button{touch-action:manipulation}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid rgba(109,190,127,.48);outline-offset:2px}

@media(min-width:600px) and (max-width:899px){
    .m-shell,.registration-shell,.documents-layout,.house-rules-layout,.resident-guide-layout,
    .resident-info-grid,.urgent-layout,.resident-topic-grid,.important-contacts-page,
    .activities-intro,.activities-grid,.activities-info,.volunteer-grid,.volunteer-posts,
    .facility-overview,.facility-grid,.facility-common,.facility-contact,.safety-intro,.safety-grid,.safety-source{
        width:min(100% - 40px,820px)
    }
    .m-subhero,.registration-hero,.documents-hero,.resident-page-hero,.community-page-hero,.facility-hero{
        width:min(100% - 40px,820px);margin:20px auto 0
    }
    .m-subhero .m-shell,.registration-hero .wrap,.documents-hero .wrap,.resident-page-hero .wrap,
    .community-page-hero .wrap,.facility-hero .wrap{padding:34px 30px}
    .m-news-list,.m-arrangement-list,.document-list,.resident-info-grid,.urgent-layout,
    .resident-topic-grid,.important-contact-grid,.activities-grid,.volunteer-grid,.facility-grid,.safety-grid{
        grid-template-columns:repeat(2,minmax(0,1fr))
    }
    .m-filter,.document-toolbar{grid-template-columns:minmax(0,1fr) 180px;align-items:end}
    .registration-form__two{grid-template-columns:1fr 1fr}
}
@media(max-width:380px){
    .m-subhero,.registration-hero,.documents-hero,.resident-page-hero,.community-page-hero,.facility-hero{margin-left:9px;margin-right:9px}
    .m-subhero h1,.registration-hero h1,.documents-hero h1,.resident-page-hero h1,.community-page-hero h1,.facility-hero h1{font-size:28px}
    .m-facts,.registration-facts,.activity-card__facts,.facility-facts{grid-template-columns:1fr}
}


/* 4.08 – release candidate: overflow and media corrections */
.m-hero,.m-subhero,.registration-hero,.documents-hero,.resident-page-hero,.community-page-hero,.facility-hero{min-width:0;overflow:hidden}
.m-hero h1,.m-subhero h1,.registration-hero h1,.documents-hero h1,.resident-page-hero h1,.community-page-hero h1,.facility-hero h1{max-width:100%;overflow-wrap:anywhere;word-break:normal;hyphens:auto}
.m-hero h1{font-size:clamp(38px,10.7vw,58px);line-height:1;letter-spacing:-.025em}
.important-contacts-page,.important-contact-grid,.important-contact-card,.important-contact-card__top,.important-contact-card__fact{min-width:0;max-width:100%}
.important-contact-card{overflow:hidden}
.important-contact-card__top h3,.important-contact-card__description,.important-contact-card__note,.important-contact-card__fact a,.important-contact-card__fact strong,.important-contact-card__fact span{max-width:100%;overflow-wrap:anywhere;word-break:normal}
.important-contact-card__top h3{padding-right:0}
.important-contact-card__badge{position:static;display:inline-flex;width:max-content;max-width:100%;margin:0 0 10px}
.documents-sidebar{min-width:0;overflow:hidden}
.document-categories{display:flex;flex-wrap:wrap;gap:8px;overflow:visible;padding:2px 0}
.document-category{flex:0 1 auto;max-width:100%;min-height:42px;white-space:normal;text-align:center;overflow-wrap:anywhere}
.document-toolbar,.document-search,.document-search__field,.document-year{min-width:0;max-width:100%}
.document-search__field{grid-template-columns:minmax(0,1fr) auto}.document-search input{min-width:0}
.m-main>*,main>*,.m-shell>*,.wrap>*{min-width:0}
@media(max-width:430px){.m-hero h1{font-size:clamp(36px,10.4vw,48px)}.document-category{font-size:12px;padding:9px 11px}}
@media(max-width:360px){.m-hero h1{font-size:36px}.document-search__field{grid-template-columns:1fr}.document-search button{min-height:44px}}


/* =========================================================
   4.08B – EMNEKNAPPER PÅ HUSORDEN / RÅDERET / VEDLIGEHOLDELSE
   ========================================================= */

/*
 * De tre sider bruger samme emnenavigation. På mobil skal den ikke
 * være en vandret scroller. Alle knapper skal være synlige i viewporten.
 */
.resident-topic-nav,
.resident-guide-nav,
.house-rules-nav,
.topic-nav,
.guide-nav{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    width:100%;
    max-width:100%;
    min-width:0;
    overflow:visible;
    overflow-x:visible;
    padding-right:0;
}

.resident-topic-nav a,
.resident-guide-nav a,
.house-rules-nav a,
.topic-nav a,
.guide-nav a{
    flex:0 1 auto;
    max-width:100%;
    min-width:0;
    white-space:normal;
    overflow-wrap:anywhere;
    text-align:center;
}

/* Catch the actual pill/list containers used inside the resident pages. */
.resident-page .section-nav,
.resident-guide-layout .section-nav,
.house-rules-layout .section-nav,
.resident-page .anchor-nav,
.resident-guide-layout .anchor-nav,
.house-rules-layout .anchor-nav{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    width:100%;
    max-width:100%;
    min-width:0;
    overflow:visible;
    overflow-x:visible;
    padding-right:0;
}

.resident-page .section-nav a,
.resident-guide-layout .section-nav a,
.house-rules-layout .section-nav a,
.resident-page .anchor-nav a,
.resident-guide-layout .anchor-nav a,
.house-rules-layout .anchor-nav a{
    flex:0 1 auto;
    max-width:100%;
    white-space:normal;
    text-align:center;
}

/* No horizontal page overflow from the guide navigation containers. */
.house-rules-layout,
.resident-guide-layout,
.resident-page,
.resident-page main,
.resident-guide-layout > *,
.house-rules-layout > *{
    min-width:0;
    max-width:100%;
}

@media(max-width:430px){
    .resident-topic-nav a,
    .resident-guide-nav a,
    .house-rules-nav a,
    .topic-nav a,
    .guide-nav a,
    .resident-page .section-nav a,
    .resident-guide-layout .section-nav a,
    .house-rules-layout .section-nav a,
    .resident-page .anchor-nav a,
    .resident-guide-layout .anchor-nav a,
    .house-rules-layout .anchor-nav a{
        font-size:12px;
        padding:9px 11px;
        min-height:42px;
        display:inline-flex;
        align-items:center;
        justify-content:center;
    }
}


/* =========================================================
   5.01D – MOBILOPSÆTNING AF LADEGÅRDSPARKENS ADRESSEVÆLGER
   ========================================================= */

@media (max-width: 760px) {
    .progressive-address {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 16px 0 18px;
    }

    .progressive-address[hidden] {
        display: none !important;
    }

    .progressive-address__field {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .progressive-address__field label {
        display: block;
        margin: 0 0 7px;
        font-size: 15px;
        line-height: 1.3;
        font-weight: 800;
    }

    .progressive-address__field select {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 50px;
        margin: 0;
        padding: 11px 42px 11px 14px;
        border-radius: 10px;
        box-sizing: border-box;
        font-size: 16px;
    }

    .progressive-address__hint {
        width: 100%;
        max-width: 100%;
        margin: -2px 0 0;
        font-size: 13px;
        line-height: 1.45;
    }

    select.address-is-locked:disabled {
        width: 100%;
        max-width: 100%;
        min-height: 50px;
        box-sizing: border-box;
        opacity: 1;
        background: #eef1ef;
        color: #65706a;
        border-color: #ccd6d1;
        -webkit-text-fill-color: #65706a;
        cursor: not-allowed;
    }
}
