/* LDV design system v3.50: one shared typography and control baseline.
   Headings = Barlow Condensed (sans serif), body = Lora (serif). */
:root{
 --ldv-font-heading:'Barlow Condensed','Arial Narrow',Impact,sans-serif;
 --ldv-font-body:'Lora',Georgia,serif;
 --ldv-type-h1:clamp(36px,7vw,44px);
 --ldv-type-h2:clamp(30px,5.5vw,36px);
 --ldv-type-h3:clamp(24px,4.5vw,28px);
 --ldv-type-h4:clamp(20px,3.8vw,23px);
 --ldv-type-body:16px;
 --ldv-button-radius:12px;
}
html,body,main,section,article,aside,dialog,details,summary,
p,li,dl,dt,dd,td,th,label,input,textarea,select,option,
.card,.muted,.feature-note,.participant-card,.participant-detail,
#ldv-gate,#ldv-gate-panel{
 font-family:var(--ldv-font-body)!important;
}
body{font-size:var(--ldv-type-body);line-height:1.55}
h1,h2,h3,h4,.card h1,.card h2,.card h3,.card h4,
#hem h1,#hem h2,#hem h3,#hem h4{
 font-family:var(--ldv-font-heading)!important;
 letter-spacing:.005em!important;
 line-height:1.12!important;
}
h1,#hem h1{font-size:var(--ldv-type-h1)!important;font-weight:800!important}
h2,#hem h2{font-size:var(--ldv-type-h2)!important;font-weight:800!important}
h3,#hem h3{font-size:var(--ldv-type-h3)!important;font-weight:700!important}
h4,#hem h4{font-size:var(--ldv-type-h4)!important;font-weight:700!important}
/* Controls use one heading-family style, while preserving existing button colors and actions. */
button,input[type=button],input[type=submit],input[type=reset],
.btn,[role=button],.tag,legend{
 font-family:var(--ldv-font-heading)!important;
 font-weight:700;
}
button,input[type=button],input[type=submit],input[type=reset],.btn{
 border-radius:var(--ldv-button-radius);
 line-height:1.2;
}
button:disabled,.btn:disabled{cursor:not-allowed;opacity:.6}
input:not([type=button]):not([type=submit]):not([type=reset]),
textarea,select{font-family:var(--ldv-font-body)!important}

/* LDV v3.58: unified action buttons. Navigation, tabs and icon-only controls are excluded. */
:root{--ldv-action-blue:#111a67;--ldv-action-red:#ad2538}
button.ldv-action-button{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;
 background:var(--ldv-action-blue)!important;color:#fff!important;border:1px solid transparent!important;
 border-radius:12px!important;font-family:var(--ldv-font-heading)!important;font-weight:700!important;
 text-decoration:none!important;min-height:36px;box-shadow:none!important;
}
button.ldv-action-button.ldv-action-danger{background:var(--ldv-action-red)!important;color:#fff!important}
button.ldv-action-button:not(:disabled):hover{filter:brightness(1.12)}
button.ldv-action-button:focus-visible{outline:3px solid #f8c928!important;outline-offset:2px!important}
button.ldv-action-button .ldv-action-icon{display:block!important;flex:none!important;width:18px!important;height:18px!important;color:inherit!important}

/* v3.63: hidden action buttons must stay hidden, even with inline-flex overrides. */
button.ldv-action-button[hidden],button[hidden],input[hidden]{display:none!important}
.profile-actions{display:flex!important;flex-wrap:wrap!important;gap:10px!important;align-items:stretch!important}
.profile-actions button:not([hidden]){flex:1 1 150px!important;width:auto!important;min-width:0!important;white-space:normal!important;overflow-wrap:normal!important;padding:11px 14px!important;line-height:1.25!important;margin-top:0!important}
.profile-actions button .ldv-action-icon{flex-shrink:0!important}

/* v3.64: fyra prioriterade åtgärder på en rad i personredigeringen. */
#profile-form .profile-actions{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;width:100%!important}
#profile-form .profile-actions button:not([hidden]){flex:0 1 auto!important;width:auto!important;min-width:0!important;white-space:nowrap!important;padding:11px 9px!important;font-size:clamp(11px,1.6vw,15px)!important;gap:5px!important}
#profile-form .profile-actions button[type="submit"]{flex:1 1 34%!important}
#profile-form .profile-actions #profile-cancel{flex:1 1 28%!important}
#profile-form .profile-actions #profile-trip-remove,#profile-form .profile-actions #profile-trip-add{flex:0 1 24%!important}
#profile-form .profile-actions #profile-delete{flex:0 1 14%!important}
#profile-form .profile-actions .ldv-action-icon{width:16px!important;height:16px!important}
@media(max-width:520px){#profile-form .profile-actions{gap:4px!important}#profile-form .profile-actions button:not([hidden]){font-size:10px!important;padding:10px 4px!important;gap:3px!important}#profile-form .profile-actions .ldv-action-icon{width:13px!important;height:13px!important}}

/* v3.67: samma diskreta mörkblå stängknapp i hela appen */
button.profile-close,button#admin-photo-close,button#ldv-myprofile-photo-close,button[aria-label^="Stäng"],button[aria-label^="stäng"]{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;
 padding:0!important;border:0!important;border-radius:11px!important;
 background:#111a67!important;color:#fff!important;
 font-family:Arial,Helvetica,sans-serif!important;font-size:24px!important;
 font-weight:500!important;line-height:1!important;box-shadow:none!important;flex:none!important;
}
button.profile-close:hover,button#admin-photo-close:hover,button#ldv-myprofile-photo-close:hover,button[aria-label^="Stäng"]:hover{filter:brightness(1.15)!important}
