:root{
      --red:#ed0033;--red-dark:#bf0028;--ink:#353535;--muted:#858585;
      --blue:#2f5276;--line:#e2e2e2;--paper:#fff;--bg:#f4f4f2;
      --shadow:0 8px 26px rgba(0,0,0,.08);--radius:22px;
    }
    *{box-sizing:border-box} html,body{margin:0;background:#e9e9e9;font-family:'Titillium Web',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink)}
    button,input,select,textarea{font:inherit} button{cursor:pointer}
    .app{max-width:720px;margin:auto;min-height:100vh;
      background-image:url('../assets/hvid-baggrund-2024.jpg');
      background-size:auto 1000px;
      background-position:center top;
      background-repeat:repeat-y;
      position:relative;padding-bottom:88px}
    .topbar{height:92px;background:#fff;display:flex;align-items:flex-end;justify-content:space-between;padding:16px 22px;border-bottom:1px solid #ddd;position:sticky;top:0;z-index:20}
    .brand{display:flex;align-items:center;gap:12px}.shield{width:42px;height:50px;background:var(--red);color:#fff;clip-path:polygon(13% 8%,50% 0,87% 8%,92% 76%,50% 100%,8% 76%);display:grid;place-items:center;font-size:11px;font-weight:900;text-align:center;line-height:1}
    .top-actions{display:flex;gap:8px;align-items:center}.role{border:1px solid #ddd;border-radius:999px;padding:8px 10px;background:#fff;color:#555;max-width:160px}
    .page{padding:28px 28px 38px}.h1{font-size:34px;font-weight:900;margin:0 0 8px;letter-spacing:-.03em}.h2{font-size:25px;font-weight:900;margin:0 0 10px}.lead{font-size:18px;line-height:1.55;color:#707070;margin:0}
    .section{margin-top:30px}.section-title{font-size:27px;font-weight:900;margin:0 0 10px}.rule{height:3px;background:#e0e0e0;margin-bottom:18px}
    .hero{background:#fff;border-radius:28px;padding:24px;box-shadow:var(--shadow);border:1px solid #e7e7e7;overflow:hidden;position:relative}
    .hero-red{background:linear-gradient(135deg,var(--red),var(--red-dark));color:#fff;border:none}.hero-red .lead{color:rgba(255,255,255,.9)}
    .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
    .card{background:#fff;border:1px solid #e3e3e3;border-radius:20px;box-shadow:0 4px 14px rgba(0,0,0,.04);overflow:hidden}
    .card-pad{padding:18px}.card-title{font-size:18px;font-weight:850;margin:0 0 5px}.muted{color:var(--muted);font-size:14px;line-height:1.45}
    .btn{border:0;border-radius:15px;padding:12px 16px;min-height:46px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px}
    .btn-red{background:var(--red);color:#fff}.btn-blue{background:var(--blue);color:#fff}.btn-white{background:#fff;color:var(--ink);border:1px solid #ddd}.btn-soft{background:#f2f2f2;color:#555}
    .btn-row{display:flex;gap:10px;flex-wrap:wrap}.full{width:100%}.pill{display:inline-flex;border-radius:999px;padding:6px 10px;background:#f2f2f2;font-size:12px;font-weight:800}.pill.red{background:#ffe8ed;color:var(--red)}
    .photo{height:160px;background:linear-gradient(135deg,#c5c4bf,#767676);display:flex;align-items:end;padding:14px;color:#fff;font-weight:900;font-size:22px}
    .post{padding:18px}.post-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}.avatar{width:42px;height:42px;border-radius:50%;background:#efefef;display:grid;place-items:center;font-weight:900}.post p{line-height:1.55;margin:0}.post-foot{display:flex;justify-content:space-between;margin-top:14px;color:#888;font-size:13px}
    .horizontal{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(280px,92%);gap:14px;overflow-x:auto;padding-bottom:5px;scroll-snap-type:x mandatory}.horizontal>.card{scroll-snap-align:start;width:100%}
    .activity-img{height:210px;background:linear-gradient(135deg,#ddd,#777);display:flex;align-items:end;padding:16px;color:#fff;font-size:23px;font-weight:900}.activity-row{padding:14px 16px;display:flex;justify-content:space-between;gap:12px;align-items:center}
    .tools{display:grid;gap:10px}.tool{width:100%;background:#fff;border:1px solid #ddd;border-radius:20px;padding:16px;display:flex;align-items:center;gap:14px;text-align:left}.tool-icon{width:48px;height:48px;border-radius:15px;background:#ffe9ee;color:var(--red);display:grid;place-items:center;font-size:24px;flex:0 0 auto}.tool-main{flex:1}.tool-main strong{font-size:18px;color:var(--red)}.tool-main span{display:block;color:#929292;margin-top:3px}.chev{font-size:26px;color:#c7c7c7}
    .bottom{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:min(720px,100%);height:78px;background:#fff;border-top:1px solid #ddd;display:grid;grid-template-columns:repeat(5,1fr);padding:7px 8px;z-index:30}
    .nav{border:0;background:transparent;color:#aaa;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:12px}.nav i{font-style:normal;font-size:22px}.nav.active{color:var(--red);font-weight:800}
    .cafe-wrap{perspective:1000px}.cafe-card{height:330px;position:relative;transform-style:preserve-3d;transition:transform .5s}.cafe-card.flipped{transform:rotateY(180deg)}.face{position:absolute;inset:0;backface-visibility:hidden;border-radius:26px;overflow:hidden;box-shadow:var(--shadow)}.front{background:linear-gradient(145deg,#202020,#080808);color:#fff;padding:25px}.back{transform:rotateY(180deg);background:#fff;padding:22px;display:flex;flex-direction:column;justify-content:center;align-items:center;border:1px solid #ddd}
    .front .chalk{font-size:46px;font-weight:1000;letter-spacing:.03em;margin-top:34px}.front .points{position:absolute;left:24px;bottom:26px}.points b{font-size:40px}.barcode{height:96px;width:min(500px,90%);display:flex;align-items:stretch;gap:2px;background:#fff;padding:12px;border:1px solid #ddd;border-radius:12px;overflow:hidden}.barcode i{display:block;background:#111;height:100%}.gift{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:20px;font-weight:800;letter-spacing:.07em;margin-top:16px}
    .reward{padding:14px}.reward-visual{height:120px;border-radius:14px;background:linear-gradient(135deg,#ddd,#999);display:grid;place-items:center;font-size:46px}.reward strong{display:block;margin-top:12px;font-size:17px}.reward .price{font-size:18px;color:var(--red);font-weight:900;margin:5px 0 12px}
    .notice{border-radius:18px;padding:15px;background:#f1f1f1;color:#666;line-height:1.5}.success{background:#e8f4eb;color:#2b6443}.warn{background:#fff1df;color:#7a4b10}
    .form{display:grid;gap:14px}.field{display:grid;gap:7px}.field label{font-weight:800}.field input,.field select,.field textarea{width:100%;border:1px solid #ccc;border-radius:14px;background:#fff;padding:12px 13px;min-height:48px;font-size:16px}.field textarea{min-height:105px}
    .list{display:grid;gap:10px}.list-row{background:#fff;border:1px solid #ddd;border-radius:16px;padding:14px;display:flex;align-items:center;gap:12px}.list-row .grow{flex:1;min-width:0}.list-row strong{display:block}.list-row small{color:#888}
    .code{font-size:46px;font-weight:1000;letter-spacing:.16em;text-align:center;margin:12px 0}.profile-card{background:#fff;border-radius:28px;padding:24px;border:1px solid #ddd;text-align:center}.profile-circle{width:120px;height:120px;border-radius:50%;background:#ddd;margin:auto;display:grid;place-items:center;font-size:35px;font-weight:900}.idtag{display:inline-block;background:var(--red);color:#fff;padding:8px 18px;border-radius:8px;margin:14px auto;font-weight:900}
    .admin-tabs{display:flex;gap:8px;overflow:auto;padding-bottom:8px}.admin-tab{white-space:nowrap}.admin-item{display:flex;gap:12px;align-items:center}.admin-item .grow{flex:1}.admin-item small{color:#888}.admin-actions{display:flex;gap:6px}
    .modal-bg{position:fixed;inset:0;background:rgba(0,0,0,.42);z-index:60;display:flex;align-items:flex-start;justify-content:center;padding:50px 16px;overflow:auto}.modal{width:min(650px,100%);background:#fff;border-radius:26px;padding:22px;box-shadow:0 20px 60px rgba(0,0,0,.22);max-height:calc(100vh - 90px);overflow:auto}.modal-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.x{width:40px;height:40px;border-radius:50%;border:0;background:#eee;font-size:24px}
    .calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.day{background:#f3f3f3;border-radius:10px;min-height:64px;padding:7px;font-size:12px}.day b{display:block}.eventdot{width:7px;height:7px;border-radius:50%;background:var(--red);margin-top:5px}
    @media(max-width:520px){.page{padding:24px 18px 34px}.grid3{grid-template-columns:1fr 1fr}.h1{font-size:30px}.section-title{font-size:25px}.cafe-card{height:310px}.role{max-width:145px}}
    @media(max-width:380px){.grid,.grid3{grid-template-columns:1fr}.horizontal{grid-auto-columns:94%}}

/* v4: clickable arbejdsgrupper */
.group-link{width:100%;text-align:left;cursor:pointer;transition:transform .12s ease,border-color .12s ease}
.group-link:active{transform:scale(.99)}
.group-link .group-status{margin-top:5px}

/* v5: Korttyper og rabat-QR */
.card-tabs{display:flex;gap:8px;flex-wrap:wrap}
.card-main-title{font-size:34px;font-weight:1000;margin-top:24px}
.discount-badge{position:absolute;right:22px;top:22px;width:82px;height:82px;border-radius:50%;background:rgba(255,255,255,.14);border:2px solid rgba(255,255,255,.65);display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:26px;font-weight:1000}
.discount-badge small{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.08em}
.fhbu-front{background:linear-gradient(145deg,#284f75,#16324e)!important}
.card-owner{max-width:55%}
.small-discount-qr{position:absolute;right:20px;bottom:20px;display:flex;align-items:center;gap:8px}
.small-discount-qr>div:last-child{font-size:10px;line-height:1.25;max-width:82px}
.small-discount-qr span{display:block;opacity:.8;word-break:break-all}
.discount-qr{width:68px;height:68px;background:#fff;padding:5px;border-radius:8px;display:grid;grid-template-columns:repeat(21,1fr);gap:0}
.discount-qr i{background:#fff}.discount-qr i.on{background:#111}
@media(max-width:430px){
  .discount-badge{width:72px;height:72px;font-size:23px;right:16px;top:16px}
  .small-discount-qr{right:14px;bottom:15px}
  .discount-qr{width:60px;height:60px}
  .card-owner{max-width:52%}
}


/* v6 additions */
.welcome-panel{display:flex;justify-content:center;align-items:center;padding:8px 0 0}
.welcome-cutout{width:100%;height:auto;display:block;filter:drop-shadow(0 4px 12px rgba(0,0,0,.06))}
.post-media,.media-card,.activity-media,.detail-media,.reward-media{overflow:hidden;border-radius:20px 20px 0 0;background:#ececec}
.media-card{height:220px;width:100%}
.activity-media{height:210px;border-radius:20px 20px 0 0}
.reward-media{height:120px;border-radius:14px}
.post-media{height:180px;border-radius:16px;margin-bottom:12px}
.detail-media{height:220px;border-radius:18px;margin:8px 0 16px}
.media-box img,.post-media img,.media-card img,.activity-media img,.detail-media img,.reward-media img{width:100%;height:100%;object-fit:cover;display:block}
.placeholder{display:flex;align-items:flex-end;justify-content:flex-start;padding:14px;color:#fff;font-weight:900;font-size:22px;background:linear-gradient(135deg,#c5c4bf,#767676)}
.card-flat{padding:0}
.full-group-list .group-row{width:100%;text-align:left}
.tag{display:inline-flex;border-radius:999px;padding:6px 10px;background:#f2f2f2;font-size:12px;font-weight:800;color:#666}
.tag.red{background:#ffe8ed;color:var(--red)}
.tag.green{background:#e8f4eb;color:#2b6443}
.backbtn{border:0;background:#fff;border-radius:12px;width:38px;height:38px;font-size:24px}
.brand{gap:10px}
.detail-copy{white-space:pre-line;line-height:1.7;color:#555;margin-top:12px}
.admin-actions{flex-wrap:wrap}
.list-row.card{box-shadow:0 4px 14px rgba(0,0,0,.04)}
@media(max-width:520px){
  }


/* v7 tweaks */
.horizontal>.card{overflow:hidden}
.horizontal .card-pad{padding:18px 20px 22px}


/* v8 administration */
.admin-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.summary-number{font-size:36px;font-weight:1000;line-height:1;margin-bottom:5px}
@media(max-width:520px){.admin-summary-grid{grid-template-columns:1fr}}


/* v9: gæst/SMS og profiloprettelse */
.sms-card{text-align:center;padding:28px 22px}
.sms-icon{width:92px;height:72px;margin:0 auto 18px;border-radius:18px;background:linear-gradient(135deg,#e94a51,#c92e35);color:#fff;display:grid;place-items:center;font-size:28px;font-weight:1000;box-shadow:0 10px 24px rgba(201,46,53,.18)}

/* v10: intern browser er en native funktion i den pakkede app; web-prototypen åbner fallback i nyt browservindue. */


/* v11 */
.devotional-card{padding:0;overflow:hidden}
.devotional-card .media-card{border-radius:20px 20px 0 0}
.devotional-card .card-pad{padding:18px 20px 22px}


/* v12 typography */
h1,h2,h3,h4,h5,h6,
.h1,.h2,.section-title,.card-title,.card-main-title,
.brand strong,.tool-main strong,.volunteer-main strong,
.profile-card h2,.modal h2,.modal h3{
  font-family:'Montserrat',Arial,sans-serif;
}
body,p,.lead,.muted,.tool-main span,.volunteer-main span,.volunteer-main small,
input,select,textarea{
  font-family:'Titillium Web',Arial,sans-serif;
}
.btn,.pill,.idtag{
  font-family:'Montserrat',Arial,sans-serif;
}

/* v12 Dispo */
.volunteer-list{display:grid;gap:0;background:rgba(255,255,255,.7);border-radius:20px;overflow:hidden}
.volunteer-row{width:100%;border:0;border-bottom:1px solid #e5e5e5;background:transparent;padding:14px 8px;display:flex;align-items:center;gap:14px;text-align:left}
.volunteer-row:last-child{border-bottom:0}
.volunteer-avatar{width:72px;height:72px;border-radius:50%;background:#ececec;border:4px solid #fff;box-shadow:0 0 0 1px #ddd;display:grid;place-items:center;overflow:hidden;flex:0 0 auto;font-family:'Montserrat',Arial,sans-serif;font-weight:800;color:#666}
.volunteer-avatar img,.volunteer-detail-avatar img{width:100%;height:100%;object-fit:cover}
.volunteer-main{flex:1;min-width:0}
.volunteer-main strong{display:block;font-size:20px}
.volunteer-main span{display:block;color:#777;font-size:16px;margin-bottom:3px}
.volunteer-main small{display:block;color:#929292;font-size:14px;line-height:1.35}
.volunteer-detail{text-align:center;padding:4px 6px 20px}
.volunteer-detail-avatar{width:150px;height:150px;border-radius:50%;background:#ececec;border:6px solid #fff;box-shadow:0 0 0 1px #ddd;display:grid;place-items:center;overflow:hidden;margin:0 auto 18px;font-family:'Montserrat',Arial,sans-serif;font-size:38px;font-weight:800;color:#666}
.volunteer-detail h2{font-size:34px;margin:0 0 4px}
.volunteer-role{font-size:25px;color:#777;margin-bottom:30px}
.volunteer-contact{display:grid;gap:8px;text-align:left;width:max-content;max-width:100%;margin:0 auto 26px;color:#8a8a8a;font-size:18px}
.contact-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.contact-actions a{text-decoration:none}


/* v13 – full-width opslagbilleder */
.post-card{
  padding:0 !important;
  overflow:hidden;
}
.post-card .post-media{
  width:100%;
  height:230px;
  margin:0;
  border-radius:0;
}
.post-card .post-body{
  padding:18px;
}
.post-card .post-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}


/* v14 layout, navigation and calmer spacing */
:root{
  --content-max:640px;
}
html,body{font-size:15px}
.app{max-width:690px;padding-bottom:86px}
.topbar{
  height:112px;
  background:#fff;
  display:grid;
  grid-template-columns:56px 1fr 56px;
  align-items:end;
  padding:16px 18px 12px;
  border-bottom:1px solid #dcdcdc;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
}
.top-center{display:flex;justify-content:center;align-items:center}
.top-right{display:flex;justify-content:flex-end;align-items:center}
.header-spacer{display:block;width:36px;height:36px}
.header-icon{
  width:40px;height:40px;border:0;background:#fff;border-radius:12px;color:#111;
  display:grid;place-items:center;padding:0;
}
.header-icon .svg-icon svg{width:28px;height:28px}
.shield-top{width:60px;height:70px;font-size:14px}
.shield-drawer{width:54px;height:64px;font-size:12px}
.page{
  padding:24px 24px 38px;
}
.page>section,
.page>.section{
  max-width:var(--content-max);
  margin-left:auto;
  margin-right:auto;
}
.h1{font-size:31px}
.h2{font-size:23px}
.lead{font-size:16px;line-height:1.5}
.section{margin-top:26px}
.section-title{font-size:23px;margin-bottom:8px}
.card-title{font-size:17px}
.muted{font-size:13.5px}
.btn{min-height:44px;font-size:15px}
.tool-main strong{font-size:17px}
.tool-main span{font-size:14px}
.role{max-width:none;width:100%}

/* bottom nav with svg icons */
.bottom{height:84px;padding:8px 10px 10px;background:#fff}
.nav{gap:5px;font-size:11px;font-weight:600;color:#b7b7b7}
.nav span{display:block;line-height:1.15}
.svg-icon{display:inline-flex;align-items:center;justify-content:center;line-height:0}
.svg-icon svg{width:24px;height:24px}
.nav-svg svg{width:27px;height:27px}
.nav.active{color:var(--red)}

/* drawer */
.drawer-wrap{position:fixed;inset:0;z-index:55;pointer-events:none}
.drawer-wrap.open{pointer-events:auto}
.drawer-scrim{position:absolute;inset:0;background:rgba(0,0,0,.18);opacity:0;transition:opacity .22s ease}
.drawer-panel{
  position:absolute;left:0;top:0;bottom:0;width:min(82vw,360px);background:#f6f6f6;
  padding:22px 20px 24px;transform:translateX(-102%);transition:transform .24s ease;
  box-shadow:16px 0 40px rgba(0,0,0,.16);overflow:auto;
}
.drawer-wrap.open .drawer-scrim{opacity:1}
.drawer-wrap.open .drawer-panel{transform:translateX(0)}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:8px 0 16px;border-bottom:2px solid #e3e3e3;margin-bottom:14px}
.drawer-close{width:40px;height:40px;border:0;background:transparent;color:#111;border-radius:12px;display:grid;place-items:center}
.drawer-close .svg-icon svg{width:30px;height:30px}
.drawer-list{display:grid;gap:10px;margin-bottom:24px}
.drawer-item{
  width:100%;display:flex;align-items:center;gap:16px;padding:14px 14px;background:transparent;border:0;
  border-radius:18px;text-align:left;color:#444;font-family:'Montserrat',Arial,sans-serif;font-size:17px;font-weight:700;
}
.drawer-item:hover,.drawer-item:active{background:rgba(255,255,255,.8)}
.drawer-item[data-route="home"]{background:rgba(255,255,255,.8);color:var(--red)}
.drawer-item .svg-icon{color:currentColor}
.drawer-item .svg-icon svg{width:30px;height:30px}
.drawer-contact,.drawer-prototype{margin-top:18px;border-radius:24px}
.drawer-contact h3{margin:0 0 10px}
.drawer-contact p{margin:0 0 16px;line-height:1.6}
.section-kicker{font-family:'Montserrat',Arial,sans-serif;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#858585}

/* posts */
.post-card{padding:0!important}
.post-card .post-body{padding:18px}
.post-card .post-head{margin-bottom:12px}
.post-card .post-media{height:220px;margin:4px 0 14px;border-radius:18px}
.post-card h3{margin:0 0 8px;font-size:23px}

/* home CTA */
.home-cta-section{margin-top:16px}
.cta-card{padding:0;overflow:hidden;display:block}
.cta-media{height:230px;background:#ececec}
.cta-media img{width:100%;height:100%;object-fit:cover;display:block}
.cta-copy{padding:18px}
.cta-copy h3{margin:12px 0 6px;font-size:24px}

/* reward slider */
.reward-slider{grid-auto-columns:minmax(240px,78%)}
.reward-card{padding:0;overflow:hidden}
.reward-card .reward-media{height:150px;border-radius:20px 20px 0 0}
.reward-body{padding:16px}
.reward-body strong{display:block;font-size:18px}
.reward .price{margin:6px 0 14px}

/* slightly calmer cards */
.card{border-radius:22px}
.tool,.list-row,.profile-card,.hero{border-radius:22px}
.tools{gap:12px}

@media(max-width:520px){
  .page{padding:22px 20px 34px}
  .h1{font-size:28px}
  .section-title{font-size:21px}
  .horizontal{grid-auto-columns:88%}
  .reward-slider{grid-auto-columns:82%}
  .cta-media{height:200px}
}


/* v15 refinements */
html,body{font-size:14.5px}
.app{
  max-width:690px;
  padding-bottom:86px;
  background-size:cover;
  background-position:center top;
  background-repeat:no-repeat;
  background-attachment:fixed;
}
.page{padding:30px 30px 42px}
.page>section,
.page>.section{max-width:610px}
.h1{font-size:28px}
.h2{font-size:21px}
.lead{font-size:15px;line-height:1.45}
.section-title{font-size:21px}
.card-title{font-size:16px}
.muted{font-size:13px}
.post p,.detail-copy,.volunteer-main span,.volunteer-main small, .tool-main span{font-size:14px}
.btn{font-size:14px}
.tool-main strong{font-size:16px}
.tool-main span{font-size:13.5px}

.drawer-panel{
  width:min(76vw,340px);
  padding:18px 18px 18px;
  display:flex;
  flex-direction:column;
}
.drawer-head{padding:2px 0 12px;margin-bottom:10px}
.drawer-list{gap:4px;margin-bottom:14px}
.drawer-item{padding:11px 12px;font-size:16px;gap:14px}
.drawer-item .svg-icon svg{width:26px;height:26px}
.drawer-contact{margin-top:auto}
.drawer-contact .card-pad{padding:16px}
.drawer-contact h3{font-size:16px;margin-bottom:8px}
.drawer-contact p{font-size:14px;line-height:1.45;margin-bottom:12px}
.drawer-prototype{margin-top:10px;border-radius:18px}
.drawer-prototype summary{list-style:none;cursor:pointer;padding:12px 16px;font-family:'Montserrat',Arial,sans-serif;font-weight:700;font-size:14px;color:#666}
.drawer-prototype summary::-webkit-details-marker{display:none}
.drawer-prototype .field label{font-size:13px}

.post-card .post-body{padding:18px}
.post-card .post-head{margin-bottom:10px}
.post-card .post-media{
  width:calc(100% + 36px);
  margin:10px -18px 14px;
  height:220px;
  border-radius:0;
}
.post-card .post-media img{display:block;width:100%;height:100%;object-fit:cover}
.post-card h3{font-size:19px;margin:0 0 8px}

.cta-card{display:block;width:100%;appearance:none;-webkit-appearance:none}
.cta-media{height:210px}
.cta-copy{display:block;padding:16px 18px 18px}
.cta-copy h3{font-size:21px}
.cta-copy p{font-size:14px;line-height:1.45;margin:0}
.home-cta-section .card{overflow:hidden}

.topbar{height:108px;padding:16px 18px 10px}
.shield-top{width:56px;height:66px;font-size:13px}

@media(min-width:900px){
  .page{padding:34px 36px 44px}
  .page>section,
  .page>.section{max-width:600px}
  .cta-card{max-width:100%}
  .cta-media{height:190px}
}
@media(max-width:520px){
  .page{padding:26px 24px 36px}
  .h1{font-size:26px}
  .h2{font-size:20px}
  .section-title{font-size:20px}
  .lead{font-size:14.5px}
  .drawer-panel{width:min(88vw,340px)}
}


/* v16 – real shield, modal Dispo, communications and food control */
.shield-img{display:block;object-fit:contain}
.shield-top{width:52px;height:auto}
.shield-drawer{width:48px;height:auto}
.drawer-contact a,.no-underline{text-decoration:none!important}

.bottom{
  height:calc(92px + env(safe-area-inset-bottom));
  padding:9px 10px calc(18px + env(safe-area-inset-bottom));
}
.app{padding-bottom:calc(104px + env(safe-area-inset-bottom))}
.nav{padding-top:3px}

.brief-welcome .h1{margin:12px 0 6px}
.brief-welcome .pill{margin-bottom:2px}
.modal-volunteer-list{max-height:54vh;overflow:auto}

.centered-title{text-align:center}
.centered-copy{text-align:center;max-width:460px;margin:0 auto}
.communication-section{padding-top:2px}
.communication-tools .tool{min-height:88px}
.communication-tools .tool-icon{font-family:'Montserrat',Arial,sans-serif;font-size:30px;font-weight:900}
.contact-options{display:grid;gap:10px}

.control-visit-btn{min-height:58px;border-radius:18px;font-size:16px}
.control-list{background:#fff;border:1px solid #e3e3e3;border-radius:22px;overflow:hidden}
.control-row{width:100%;border:0;border-bottom:1px solid #e3e3e3;background:#fff;display:grid;grid-template-columns:42px 1fr 24px;align-items:center;gap:10px;padding:15px 16px;text-align:left;font-family:'Titillium Web',Arial,sans-serif;font-size:16px;color:var(--ink)}
.control-row:last-child{border-bottom:0}
.control-icon{font-size:20px;text-align:center}
.control-report-grid{display:grid;gap:9px;margin-top:16px}
.control-report-card{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid #e2e2e2;border-radius:16px;background:#fff}
.control-report-card>span{font-size:22px;width:30px;text-align:center}
.control-report-card strong{display:block;font-family:'Montserrat',Arial,sans-serif;font-size:14px}
.control-report-card small{display:block;color:#888;margin-top:2px}

@media(max-width:520px){
  .bottom{height:calc(96px + env(safe-area-inset-bottom));padding-bottom:calc(20px + env(safe-area-inset-bottom))}
  .app{padding-bottom:calc(110px + env(safe-area-inset-bottom))}
}


/* v17 refinements */
.shield-top{width:46px!important;height:auto}
.bottom{
  height:calc(86px + env(safe-area-inset-bottom))!important;
  padding:8px 10px calc(11px + env(safe-area-inset-bottom))!important;
}
.app{padding-bottom:calc(96px + env(safe-area-inset-bottom))!important}
@media(max-width:520px){
  .bottom{height:calc(88px + env(safe-area-inset-bottom))!important;padding-bottom:calc(12px + env(safe-area-inset-bottom))!important}
  .app{padding-bottom:calc(98px + env(safe-area-inset-bottom))!important}
}

/* Black headings: no blue heading text anywhere */
h1,h2,h3,h4,h5,h6,.h1,.h2,.section-title,.card-title,.modal h2,.modal h3,.control-report-card strong{color:var(--ink)!important}

/* Workgroups */
.group-row strong,.group-link strong,.group-transparency strong,.group-responsible-inline{
  font-family:'Montserrat',Arial,sans-serif!important;
  color:var(--ink)!important;
}
.group-responsible-inline{display:block;margin-top:4px;font-size:12px!important;font-weight:700}
.group-transparency{display:grid;gap:16px;margin-top:18px;padding:16px;border:1px solid #e2e2e2;border-radius:18px;background:#fafafa}
.group-label{display:block;font-family:'Montserrat',Arial,sans-serif;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#777;margin-bottom:9px}
.group-person{display:flex;align-items:center;gap:10px;padding:7px 0}
.group-person strong{display:block;font-size:14px}
.group-person small{display:block;color:#888;margin-top:1px}
.group-member-list{display:grid;gap:2px}
.group-member-avatar{width:36px;height:36px;border-radius:50%;background:#ececec;display:grid;place-items:center;overflow:hidden;flex:0 0 auto;font-family:'Montserrat',Arial,sans-serif;font-size:11px;font-weight:800;color:#666}
.group-member-avatar img{width:100%;height:100%;object-fit:cover}

/* Editable profile */
.profile-photo{overflow:hidden}
.profile-photo img{width:100%;height:100%;object-fit:cover;display:block}
.profile-edit-preview{width:120px;height:120px;border-radius:50%;overflow:hidden;margin:4px auto 12px;border:4px solid #fff;box-shadow:0 0 0 1px #ddd}
.profile-edit-preview img{width:100%;height:100%;object-fit:cover}

/* Existing blue is reserved for action buttons only, never headings. */


/* v18 refinements */
.hero-red .h1,.hero-red h1{color:#fff!important}

/* Slightly less bottom air */
.bottom{
  height:calc(82px + env(safe-area-inset-bottom))!important;
  padding:7px 10px calc(7px + env(safe-area-inset-bottom))!important;
}
.app{padding-bottom:calc(91px + env(safe-area-inset-bottom))!important}
@media(max-width:520px){
  .bottom{height:calc(84px + env(safe-area-inset-bottom))!important;padding-bottom:calc(8px + env(safe-area-inset-bottom))!important}
  .app{padding-bottom:calc(93px + env(safe-area-inset-bottom))!important}
}

/* All headings remain black, except white headings on red hero cards */
h1,h2,h3,h4,h5,h6,.h1,.h2,.section-title,.card-title,.modal h2,.modal h3{color:var(--ink)!important}
.hero-red h1,.hero-red .h1{color:#fff!important}

/* Inline page builder for admins */
.page-inline-editor{
  border:1px dashed #c9c9c9;
  border-radius:18px;
  padding:14px;
  background:rgba(255,255,255,.74);
}
.inline-editor-title{
  font-family:'Montserrat',Arial,sans-serif;
  font-weight:800;
  color:var(--ink);
  margin-bottom:10px;
}
.custom-page-block{position:relative}
.inline-admin-controls{
  display:flex;
  justify-content:flex-end;
  gap:6px;
  margin-bottom:7px;
  flex-wrap:wrap;
}
.mini-admin-btn{
  border:1px solid #d4d4d4;
  background:#fff;
  color:#555;
  border-radius:9px;
  padding:6px 8px;
  font-family:'Montserrat',Arial,sans-serif;
  font-size:11px;
  font-weight:700;
}
.mini-admin-btn.danger{color:#a31c28}
.mini-admin-btn:disabled{opacity:.35}
.custom-text-block h2{margin:0 0 8px}
.custom-block-copy{white-space:pre-line;line-height:1.6;color:#555}
.custom-image-block{padding:0;overflow:hidden}
.custom-image-block img{display:block;width:100%;height:auto}
.custom-image-placeholder{height:190px;display:grid;place-items:center;background:#eee;color:#888;font-family:'Montserrat',Arial,sans-serif;font-weight:700}
.custom-image-caption{padding:11px 14px;color:#666;font-size:13px}
.group-responsibility-extra{margin-top:16px;display:grid;gap:8px}

/* Workgroup titles: explicitly Montserrat + black */
.group-row strong,.group-link strong{
  font-family:'Montserrat',Arial,sans-serif!important;
  color:#292929!important;
}

/* Profile image picker is intentionally archive-friendly (no forced camera capture). */


/* v19: admin page content + group management */
.fixed-inline-edit{
  display:flex;
  justify-content:flex-end;
  margin:0 0 8px;
}
.hero .fixed-inline-edit .mini-admin-btn{
  background:rgba(255,255,255,.95);
}
.admin-group-section{
  margin-top:22px;
}
.admin-group-section h3{
  margin:0 0 10px;
}


/* v20 – linked image blocks */
.custom-image-link{
  display:block;
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  text-align:inherit;
  cursor:pointer;
}
.custom-image-link img{
  display:block;
  width:100%;
}
.page-block-link-field{
  display:none;
}

/* v20 – stacked workgroup cards in Administration */
.admin-group-card{
  display:grid;
  gap:10px;
  padding:18px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.94);
  border-radius:20px;
  box-shadow:0 5px 16px rgba(0,0,0,.04);
}
.admin-group-title{
  font-family:'Montserrat',Arial,sans-serif;
  color:var(--ink);
  font-size:18px;
  font-weight:800;
  line-height:1.25;
}
.admin-group-description{
  color:#555;
  font-size:14px;
  line-height:1.45;
}
.admin-group-meta{
  color:#8a8a8a;
  font-size:12.5px;
  margin-top:-3px;
}


/* v21 – point history */
.point-history-see-all{
  margin-top:10px;
}
.point-history-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:13px 15px;
  margin-bottom:14px;
  border-radius:15px;
  background:#f4f4f4;
}
.point-history-summary span{
  color:#777;
}
.point-history-summary strong{
  font-family:'Montserrat',Arial,sans-serif;
  color:var(--ink);
}
.point-history-modal-list{
  max-height:58vh;
  overflow:auto;
  padding-right:2px;
}


/* v22 card fronts */
.front{
  position:relative;
  background-color:#173653;
  background-size:cover;
  background-position:center;
  isolation:isolate;
}
.front::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(20,49,79,.76);
  z-index:-1;
}
.cafe-front{
  background-image:url('../assets/cafekort-front.jpg')!important;
}
.fhbu-front{
  background-image:url('../assets/fhbu-front.jpg')!important;
}
.fhbu-front::before{
  background:rgba(20,49,79,.68);
}
.front .pill,.front .card-main-title,.front .discount-badge,.front .small-discount-qr,.front .card-owner{
  position:relative;
  z-index:1;
}

/* Admin card search / history */
.card-admin-search{
  position:sticky;
  top:112px;
  z-index:5;
}
.admin-card-user{
  display:grid;
  gap:9px;
  padding:16px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
}
.admin-card-user-title{
  font-family:'Montserrat',Arial,sans-serif;
  font-size:17px;
  font-weight:800;
  color:var(--ink);
}
.admin-card-user-meta{
  color:#777;
  font-size:13px;
}

/* Workgroup minutes */
.group-minutes-section{
  margin-top:18px;
  display:grid;
  gap:10px;
}
.group-minute-row{
  width:100%;
  text-align:left;
}

/* QR scanner */
.qr-scanner-box{
  position:relative;
  aspect-ratio:4/3;
  background:#111;
  border-radius:20px;
  overflow:hidden;
}
.qr-scanner-box video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.qr-scan-frame{
  position:absolute;
  width:52%;
  aspect-ratio:1;
  left:24%;
  top:18%;
  border:3px solid #fff;
  border-radius:18px;
  box-shadow:0 0 0 999px rgba(0,0,0,.16);
}
.prototype-qr-fallback{
  margin-top:14px;
  padding:13px;
  border:1px dashed #ccc;
  border-radius:15px;
}


/* v23 – stable card overlays */
.front{
  padding:0!important;
  background-size:cover!important;
  background-position:center!important;
}
.front::before{
  z-index:0!important;
}
.card-front-content{
  position:relative;
  z-index:1;
  height:100%;
  display:grid;
  grid-template-rows:auto 1fr auto;
  gap:10px;
  padding:22px;
}
.card-front-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.front .discount-badge{
  position:static!important;
  flex:0 0 auto;
}
.front .card-main-title{
  position:static!important;
  align-self:start;
  margin-top:8px;
}
.card-front-bottom{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:14px;
}
.front .card-owner{
  position:static!important;
  left:auto!important;
  bottom:auto!important;
  max-width:none!important;
}
.front .small-discount-qr{
  position:static!important;
  right:auto!important;
  bottom:auto!important;
  align-self:end;
}
.front .small-discount-qr>div:last-child{
  max-width:78px;
  color:#fff;
}
.front .small-discount-qr span{
  color:#fff;
}
.front .points b{font-size:34px}
@media(max-width:430px){
  .card-front-content{padding:17px}
  .card-front-bottom{gap:8px}
  .front .discount-badge{width:66px;height:66px;font-size:21px}
  .front .points b{font-size:30px}
  .front .small-discount-qr>div:last-child{display:none}
}

/* v23 – profile ID background */
.profile-card-pattern{
  background-image:
    linear-gradient(rgba(255,255,255,.90),rgba(255,255,255,.90)),
    url('../assets/id-kort-bg3.jpg')!important;
  background-size:cover!important;
  background-position:center!important;
}

/* v23 – QR action admin */
.admin-qr-action{
  display:grid;
  gap:9px;
  padding:16px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
}
.admin-qr-title{
  font-family:'Montserrat',Arial,sans-serif;
  font-weight:800;
  color:var(--ink);
  font-size:17px;
}
.admin-qr-code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  background:#f3f3f3;
  border-radius:10px;
  padding:8px 10px;
  word-break:break-all;
  color:#555;
}
.qr-award-result{
  display:grid;
  justify-items:center;
  gap:4px;
  padding:22px;
  border-radius:18px;
  background:#f4f4f4;
}
.qr-award-result strong{
  font-family:'Montserrat',Arial,sans-serif;
  font-size:34px;
  color:#2d6b48;
}
.qr-award-result span{color:#777}


/* v24 – plain brochure/image sections */
.home-program-section .btn,
#openCalendar,
#openInfoScreen{margin-top:14px}
.plain-image-block{display:block;width:100%}
.plain-image-block img{display:block;width:100%;height:auto;border-radius:0;box-shadow:none;background:transparent}
.plain-image-program{margin:2px 0 0}
.program-hero-stack{display:grid;gap:16px;justify-items:center;margin-top:18px}
.program-hero-top{display:block;width:min(100%,760px);height:auto}
.program-hero-bottom{display:block;width:min(100%,780px);height:auto}
#openInfoScreen{background:var(--red);border:none;color:#fff}
#openInfoScreen:hover{filter:brightness(.98)}

/* remove card look for program / home CTA media sections */
.home-program-section{margin-top:20px}

@media(max-width:520px){
  .program-hero-stack{gap:12px;margin-top:14px}
  .home-program-section .btn,#openCalendar,#openInfoScreen{margin-top:12px}
}

.hero-home-section{padding-top:6px;padding-bottom:0}


/* v26 – uploaded SVG Repo icons */
.repo-icon{
  width:24px;
  height:24px;
  display:inline-block;
  flex:0 0 auto;
  background:currentColor;
  -webkit-mask-image:var(--repo-icon);
  mask-image:var(--repo-icon);
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-position:center;
  mask-position:center;
  -webkit-mask-size:contain;
  mask-size:contain;
}
.nav .repo-icon{
  width:27px;
  height:27px;
}
.drawer-item .repo-icon{
  width:26px;
  height:26px;
}
.repo-tool-icon{
  width:25px;
  height:25px;
}

/* The temporary two-part Home artwork was removed in v26. */
.hero-home-section,
.program-hero-stack,
.program-hero-top,
.program-hero-bottom{
  display:none!important;
}


/* v27 – administration navigation */
.admin-section-label{
  font-family:'Montserrat',Arial,sans-serif;
  font-size:14px;
  font-weight:800;
  color:var(--ink);
  margin-bottom:10px;
}
.admin-area-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.admin-area-btn{
  min-height:58px;
  border:1px solid #d9d9d9;
  border-radius:16px;
  background:rgba(255,255,255,.94);
  color:#555;
  padding:10px 12px;
  text-align:left;
  font-family:'Montserrat',Arial,sans-serif;
  font-size:13px;
  font-weight:700;
  line-height:1.25;
}
.admin-area-btn.active{
  background:var(--red);
  border-color:var(--red);
  color:#fff;
  box-shadow:0 5px 14px rgba(237,0,51,.15);
}
@media(min-width:620px){
  .admin-area-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* v27 – stacked admin content cards */
.admin-content-card,
.admin-page-card{
  display:grid;
  gap:9px;
  padding:16px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
}
.admin-content-title,
.admin-page-title{
  font-family:'Montserrat',Arial,sans-serif;
  font-weight:800;
  color:var(--ink);
  font-size:17px;
  line-height:1.3;
}
.admin-content-description,
.admin-page-description{
  color:#666;
  font-size:13.5px;
  line-height:1.5;
  white-space:pre-line;
  overflow-wrap:anywhere;
}
.admin-content-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:2px;
}
@media(max-width:420px){
  .admin-content-actions{grid-template-columns:1fr}
}

/* Old horizontal admin tab strip is no longer used. */
.admin-tabs{display:none!important}

/* v27 – remove SVG Repo mask layer from v26 */
.repo-icon{display:none!important}


/* v28 – Font Awesome icon system */
.fa-app-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  color:currentColor;
  flex:0 0 auto;
}
.fa-app-icon i{
  display:block;
  color:currentColor;
}
.nav-fa-icon{
  width:28px;
  height:28px;
  font-size:25px;
}
.drawer-fa-icon{
  width:26px;
  height:26px;
  font-size:23px;
}
.tool-fa-icon{
  width:25px;
  height:25px;
  font-size:22px;
}
.button-fa-icon{
  width:18px;
  height:18px;
  font-size:16px;
}
.tool-icon .fa-app-icon{
  color:var(--red);
}
.nav .fa-app-icon{
  color:inherit;
}
.drawer-item .fa-app-icon{
  color:inherit;
}


/* v29 – BRIEF greeting without card/frame */
.brief-welcome{
  max-width:610px;
  margin-left:auto;
  margin-right:auto;
  padding:4px 0 2px;
  background:transparent;
  border:0;
  box-shadow:none;
}
.brief-welcome-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}
.brief-welcome-top .fixed-inline-edit{margin:0}
.brief-greeting-row{
  display:flex;
  align-items:center;
  gap:14px;
}
.brief-greeting-photo{
  width:64px;
  height:64px;
  flex:0 0 64px;
  border-radius:50%;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:#ececec;
  border:3px solid #fff;
  box-shadow:0 0 0 1px #ddd;
  font-family:'Montserrat',Arial,sans-serif;
  font-weight:800;
  color:#666;
}
.brief-greeting-photo img{width:100%;height:100%;object-fit:cover;display:block}
.brief-greeting-copy{min-width:0}
.brief-greeting-copy .h1{margin:0 0 4px}
.brief-greeting-copy .lead{margin:0}

/* v29 – profile photo overlaps the profile-card top edge by half */
.profile-card-pattern{
  margin-top:66px;
  overflow:visible!important;
}
.profile-card-pattern .profile-photo{
  margin-top:-84px!important;
  border:5px solid #fff;
  box-shadow:0 0 0 1px #d8d8d8,0 6px 16px rgba(0,0,0,.08);
}

/* v29 – tighter vertical spacing between communication buttons */
.communication-tools{gap:5px!important}
.communication-tools .tool{min-height:80px}

/* v29 – calendar brochure */
.calendar-print-image img{border-radius:18px!important}

/* v29 – icon-only search button */
.icon-only-action{
  width:46px;
  min-width:46px;
  padding-left:0!important;
  padding-right:0!important;
}

/* v29 – action buttons with Font Awesome */
.btn .button-fa-icon,
.mini-admin-btn .button-fa-icon{
  margin-right:1px;
}


/* v30 – SMS page without white card */
.sms-signup-section{
  margin-top:6px;
}
.sms-signup-panel{
  text-align:center;
  background:transparent;
  border:0;
  box-shadow:none;
  padding:0;
}
.sms-signup-image{
  display:block;
  width:min(100%,420px);
  height:auto;
  margin:0 auto 16px;
}
.sms-signup-panel h2{
  margin:0 0 8px;
}
.sms-signup-panel .lead{
  max-width:500px;
  margin:0 auto;
}

/* v30 – Font Awesome drawer icons */
.drawer-item .drawer-fa-icon{
  color:currentColor;
}


/* v31 – modal inputs must stay inside the popup */
.modal,
.modal *{
  box-sizing:border-box;
}
.modal .field{
  min-width:0;
}
.modal .field input,
.modal .field select,
.modal .field textarea{
  max-width:100%;
  min-width:0;
}
.modal input[type="date"]{
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
  -webkit-appearance:none;
  appearance:none;
}

/* v31 – Dispo contact glyphs */
.inline-contact-icon{
  width:18px;
  min-width:18px;
  font-size:15px;
  color:var(--red);
  margin-right:5px;
}
.volunteer-contact>div{
  display:flex;
  align-items:center;
}

/* v31 – tighter BRIEF tool list */
.brief-tools{
  gap:5px!important;
}
.brief-tools .tool{
  padding-top:12px;
  padding-bottom:12px;
}
.brief-welcome-top:empty{
  display:none;
}

/* v31 – standards-based QR / Code128 */
.machine-qr{
  display:inline-grid;
  place-items:center;
  background:#fff;
  padding:9px;
  border-radius:8px;
  color:#777;
  font-size:11px;
  line-height:1;
}
.machine-qr canvas,
.machine-qr img{
  display:block!important;
  image-rendering:auto;
}
.machine-barcode-wrap{
  width:100%;
  background:#fff;
  border-radius:14px;
  padding:8px 10px;
  overflow:hidden;
}
.machine-barcode{
  width:100%;
  height:auto;
  display:block;
}
.card-discount-machine-qr{
  padding:7px;
  border-radius:8px;
}
.back .machine-barcode-wrap{
  width:min(520px,96%);
}

/* v31 – physical volunteer ID */
.profile-id-card{
  position:relative;
  background:#fff;
  border:1px solid #ddd;
  border-radius:28px;
  padding:74px 20px 18px;
  text-align:center;
  overflow:visible;
  box-shadow:var(--shadow);
}
.profile-id-photo{
  position:absolute;
  top:-58px;
  left:50%;
  transform:translateX(-50%);
  width:116px;
  height:116px;
  border-radius:50%;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:#ddd;
  border:5px solid #fff;
  box-shadow:0 0 0 1px #d8d8d8,0 8px 20px rgba(0,0,0,.08);
  font-family:'Montserrat',Arial,sans-serif;
  font-size:32px;
  font-weight:900;
}
.profile-id-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.profile-id-main h2{
  margin:8px 0 2px;
}
.profile-id-title{
  color:#666;
  font-size:15px;
}
.profile-id-footer{
  margin-top:20px;
  padding-top:15px;
  border-top:1px solid #ddd;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  text-align:left;
}
.profile-id-org{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.profile-id-org strong,
.profile-id-org span{
  display:block;
}
.profile-id-org span{
  color:#777;
  font-size:12px;
  line-height:1.35;
  margin-top:2px;
}
.profile-id-shield{
  width:48px;
  height:auto;
}
.profile-verify{
  text-align:center;
  display:grid;
  justify-items:center;
  gap:5px;
  max-width:115px;
}
.profile-verify span{
  font-size:10px;
  line-height:1.2;
  color:#777;
}
.profile-verify .machine-qr{
  padding:7px;
}

/* v31 – volunteer POS barcode */
.profile-pos-card{
  background:#fff;
  border:1px solid #ddd;
  border-radius:22px;
  padding:16px;
}
.profile-pos-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.profile-pos-head strong,
.profile-pos-head span{
  display:block;
}
.profile-pos-head span{
  color:#777;
  font-size:13px;
}
.profile-pos-icon{
  font-size:23px;
  color:var(--red);
}
.profile-pos-code{
  text-align:center;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:12px;
  color:#777;
  margin-top:6px;
  letter-spacing:.06em;
}

/* v31 – profile link menu */
.profile-link-card{
  background:#fff;
  border:1px solid #ddd;
  border-radius:22px;
  overflow:hidden;
}
.profile-link-row{
  width:100%;
  border:0;
  border-bottom:1px solid #e5e5e5;
  background:#fff;
  display:grid;
  grid-template-columns:28px 1fr 20px;
  align-items:center;
  gap:10px;
  padding:14px 15px;
  text-align:left;
  color:var(--ink);
  font-family:'Montserrat',Arial,sans-serif;
  font-size:14px;
  font-weight:700;
}
.profile-link-row:last-child{
  border-bottom:0;
}
.profile-link-icon{
  width:22px;
  font-size:18px;
  color:var(--red);
}
.profile-info-list{
  display:grid;
  gap:0;
  border:1px solid #ddd;
  border-radius:18px;
  overflow:hidden;
}
.profile-info-list>div{
  display:grid;
  gap:3px;
  padding:11px 13px;
  border-bottom:1px solid #e5e5e5;
}
.profile-info-list>div:last-child{
  border-bottom:0;
}
.profile-info-list span{
  color:#777;
  font-size:12px;
}
.profile-info-list strong{
  overflow-wrap:anywhere;
}
.profile-discount-qr{
  text-align:center;
  padding:8px 0;
}
.code-label{
  text-align:center;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  color:#666;
  margin-top:8px;
}
.profile-danger-zone{
  display:grid;
  gap:8px;
  padding-bottom:8px;
}

/* Supersede the older profile-card overlap rule */
.profile-card-pattern{
  margin-top:60px;
}
.profile-id-card.profile-card-pattern{
  margin-top:60px;
}
@media(max-width:420px){
  .profile-id-footer{
    grid-template-columns:1fr;
    justify-items:start;
  }
  .profile-verify{
    grid-template-columns:auto 1fr;
    max-width:none;
    text-align:left;
    justify-items:start;
    align-items:center;
  }
}


/* v32 – profile QR + spacing */
.profile-verify{
  max-width:82px;
  gap:0;
}
.profile-verify .machine-qr{
  padding:5px;
  border-radius:7px;
}
.profile-verify span{display:none!important}

/* v32 – tighter kasseadgang */
.profile-pos-card{
  padding:14px;
}
.profile-pos-head{
  margin-bottom:8px;
}
.profile-pos-card .machine-barcode-wrap{
  padding:4px 8px;
  border-radius:12px;
}
.profile-pos-code{
  margin-top:2px;
}

/* v32 – communication links inside a framed card */
.communication-link-card{
  margin-top:18px;
}
.communication-link-row{
  grid-template-columns:28px 1fr 20px;
  gap:10px;
  padding:13px 15px;
}
.communication-link-row .profile-link-copy{
  display:grid;
  gap:2px;
  min-width:0;
}
.communication-link-row .profile-link-copy strong{
  font-family:'Montserrat',Arial,sans-serif;
  font-size:15px;
  font-weight:800;
  color:var(--red);
}
.communication-link-row .profile-link-copy small{
  font-family:'Titillium Web',Arial,sans-serif;
  font-size:13px;
  color:#8a8a8a;
  line-height:1.25;
}
.communication-link-row .tool-link-icon{
  width:22px;
  font-size:18px;
  color:var(--red);
  background:none;
  height:auto;
  border-radius:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* v32 – stop button matches profile card surface */
.btn-profile-card{
  background-image:linear-gradient(rgba(255,255,255,.90),rgba(255,255,255,.90)), url('../assets/id-kort-bg3.jpg');
  background-size:cover;
  background-position:center;
  color:var(--ink);
  border:1px solid #ddd;
}
.btn-profile-card .button-fa-icon,
.btn-profile-card .fa-solid{
  color:var(--red);
}


/* v33 – avoid duplicate QR renderers from qrcodejs */
.machine-qr{
  overflow:hidden;
}
.machine-qr img,
.machine-qr canvas{
  display:block;
  margin:0 auto;
}
.machine-qr img + img,
.machine-qr canvas + canvas,
.machine-qr canvas + img,
.machine-qr img + canvas{
  display:none !important;
}


/* v34 – profile + BRIEF simplification */
.brief-tool-card,
.communication-link-card{
  overflow:hidden;
}
.brief-tool-row,
.communication-link-row.simple-link-row{
  grid-template-columns:28px 1fr 20px;
  gap:10px;
  padding:13px 15px;
  font-family:'Montserrat',Arial,sans-serif;
  font-size:14px;
  font-weight:700;
  color:var(--ink);
}
.brief-tool-row .profile-link-icon,
.communication-link-row.simple-link-row .profile-link-icon{
  color:var(--red);
}
.brief-tool-row span:nth-child(2),
.communication-link-row.simple-link-row span:nth-child(2){
  min-width:0;
}
.communication-link-row .profile-link-copy,
.communication-link-row .tool-link-icon{
  display:none!important;
}
.brief-welcome{margin-bottom:0}

/* v34 – cleaner profile identity card */
.profile-id-footer{
  gap:12px;
  align-items:center;
}
.profile-verify{
  max-width:64px;
  justify-items:end;
  justify-self:end;
}
.profile-verify .machine-qr{
  padding:5px;
}
.profile-id-org{
  align-items:center;
}
.profile-pos-card .machine-barcode-wrap{
  margin-top:2px;
  margin-bottom:2px;
}
.profile-pos-card .profile-pos-code{
  margin-top:0;
}

/* v34 – cafe card copy + controls */
.gift-subline{
  margin-top:4px;
  font-family:'Montserrat',Arial,sans-serif;
  font-size:13px;
  font-weight:700;
  color:#555;
  text-align:center;
}
.card-back-copy{
  text-align:center;
  margin-top:8px;
  line-height:1.4;
  max-width:520px;
}
.cafe-card-toggle-row{
  margin-top:6px!important;
  justify-content:center;
}
.scan-qr-card{
  background-image:linear-gradient(rgba(255,255,255,.90),rgba(255,255,255,.90)), url('../assets/id-kort-bg3.jpg');
  background-size:cover;
  background-position:center;
  border:1px solid #ddd;
}
.scan-qr-card .muted{
  text-align:center;
  margin-bottom:12px;
}

/* v34 – remove extra spacing and hide removed info */
.communication-section .centered-copy{display:none}


/* v35 – transient active-card confirmation */
.transient-card-status{
  transition:opacity .45s ease, transform .45s ease, max-height .45s ease, margin .45s ease, padding .45s ease;
  max-height:90px;
  overflow:hidden;
}
.transient-card-status.is-hiding{
  opacity:0;
  transform:translateY(-5px);
  max-height:0;
  margin:0;
  padding-top:0;
  padding-bottom:0;
}
.cafe-status-section{
  margin-bottom:-10px;
}

/* v35 – QR scan card */
.scan-qr-card h3{
  margin:0 0 7px;
  text-align:center;
  font-family:'Montserrat',Arial,sans-serif;
  font-size:18px;
  color:var(--ink);
}

/* v35 – reward affordability */
.reward-unaffordable{
  background:#efefef!important;
}
.reward-unaffordable .reward-media img{
  filter:grayscale(1);
  opacity:.46;
}
.reward-unaffordable .reward-visual{
  filter:grayscale(1);
  opacity:.38;
}
.reward-unaffordable .reward-body,
.reward-unaffordable .reward-body strong,
.reward-unaffordable .price{
  color:#9a9a9a!important;
}
.reward-unaffordable .btn{
  filter:grayscale(1);
  opacity:.45;
}
.reward-affordable{
  opacity:1;
}

/* v35 – Egenkontrol Font Awesome icons */
.control-fa-icon{
  width:24px;
  height:24px;
  font-size:20px;
  color:var(--red);
}
.inline-form-icon{
  width:18px;
  height:18px;
  font-size:15px;
  color:var(--red);
  vertical-align:middle;
  margin-right:5px;
}


/* v36 – Dispo contact details stay on one row */
.volunteer-contact{
  width:min(100%,420px);
}
.volunteer-contact-row{
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr);
  align-items:center;
  column-gap:8px;
  width:100%;
  text-align:left;
}
.volunteer-contact-row .inline-contact-icon{
  margin-right:0;
  justify-self:center;
}
.volunteer-contact-row strong{
  display:block;
  min-width:0;
  overflow-wrap:anywhere;
}

/* v36 – back buttons inside Egenkontrol modal flow */
.modal-back-btn{
  border:0;
  background:transparent;
  color:var(--ink);
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:6px 4px 6px 0;
  font-family:'Montserrat',Arial,sans-serif;
  font-size:13px;
  font-weight:700;
}
.modal-back-btn .button-fa-icon{
  color:var(--red);
}

/* v36 – rounded Program-med-tryk image on Home */
.home-program-section .plain-image-program img{
  border-radius:18px!important;
}


/* v37 – posts */
.post-sender-logo{
  width:42px;
  height:42px;
  flex:0 0 42px;
  display:grid;
  place-items:center;
}
.post-sender-shield{
  width:40px;
  height:40px;
  object-fit:contain;
  display:block;
}
.post-card .post-head>div:last-child{
  min-width:0;
}
.post-card .post-head strong{
  font-family:'Montserrat',Arial,sans-serif;
  font-size:14px;
}
.post-card .post-head .muted{
  font-size:12.5px;
  margin-top:1px;
}
.all-posts-button{
  margin-top:12px;
}
.admin-content-title .pill{
  margin-left:6px;
  vertical-align:middle;
}
