/* Jærmuseet funksjonar – brukar fargane og skriftene i temaet (theme.json-variablar). */
.jm{--jm-gap:clamp(16px,2vw,24px)}
.jm-prikk{display:inline-block;width:.7em;height:.7em;border-radius:50%;background:var(--jm-farge,currentColor);margin-right:.45em;vertical-align:.02em;flex:none}
.jm-rutenett{display:grid;gap:var(--jm-gap);grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))}
.jm-kort,.jm-museum{display:flex;flex-direction:column;background:var(--wp--preset--color--base);border:1px solid var(--wp--preset--color--border);border-radius:var(--wp--custom--radius--md,4px);overflow:hidden;position:relative}
.jm-kort[hidden],.jm-museum[hidden]{display:none}
.jm-kort-bilete{aspect-ratio:3/2;overflow:hidden;background:var(--wp--preset--color--base-2)}
.jm-kort-bilete img{width:100%;height:100%;object-fit:cover;display:block}
.jm-kort-tekst{padding:18px 20px 20px;display:flex;flex-direction:column;gap:8px;flex:1}
.jm-kort h3,.jm-museum h3{font-size:var(--wp--preset--font-size--medium,1.2rem);margin:0;line-height:1.25}
.jm-kort h3 a,.jm-museum h3 a{color:inherit;text-decoration:none}
.jm-kort h3 a::after,.jm-museum h3 a::after{content:"";position:absolute;inset:0}
.jm-kort:focus-within,.jm-museum:focus-within{outline:3px solid var(--wp--preset--color--accent);outline-offset:2px}
.jm-kort:hover h3 a,.jm-museum:hover h3 a{text-decoration:underline;text-underline-offset:3px}
.jm-meta{margin:0;display:flex;flex-wrap:wrap;gap:4px 14px;font-size:.88rem;color:var(--wp--preset--color--contrast-2)}
.jm-dato{font-weight:600;color:var(--wp--preset--color--contrast)}
.jm-utdrag{margin:0;color:var(--wp--preset--color--contrast-2);font-size:.95rem}
.jm-etikettar{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:6px}
.jm-etikettar span{font-size:.75rem;font-weight:600;padding:2px 8px;background:var(--wp--preset--color--base-2);border-radius:2px}
.jm-museum{border-top:6px solid var(--jm-farge)}
.jm-gruppe{margin:0;font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--wp--preset--color--contrast-2)}
.jm-status{margin:auto 0 0;font-weight:600;font-size:.92rem;display:inline-flex;align-items:center;gap:.5em}
.jm-status::before{content:"";width:.6em;height:.6em;border-radius:50%;background:#2E7D32}
.jm-stengt::before{background:#B42318}
.jm-filter{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 16px;margin:0 0 var(--jm-gap)}
.jm-filter label{display:grid;gap:4px;font-size:.85rem;font-weight:600}
.jm-filter select{font:inherit;font-size:1rem;padding:.55rem 2.2rem .55rem .8rem;border:1px solid var(--wp--preset--color--contrast-2);border-radius:2px;background:var(--wp--preset--color--base);color:var(--wp--preset--color--contrast);min-width:200px}
.jm-tal{margin:0 0 .55rem auto;font-size:.9rem;color:var(--wp--preset--color--contrast-2)}
.jm-ingen{padding:20px;background:var(--wp--preset--color--base-2);border-radius:4px}
.jm-meir{margin-top:var(--jm-gap)}
.jm-veke,.jm-sesong table,.jm-tabell table{border-collapse:collapse;width:100%;max-width:560px}
.jm-veke caption{text-align:left;font-weight:700;padding:0 0 8px}
.jm-veke th,.jm-veke td,.jm-sesong th,.jm-sesong td,.jm-tabell th,.jm-tabell td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--wp--preset--color--border);font-weight:400;vertical-align:top}
.jm-veke th,.jm-sesong th{font-weight:600}
.jm-idag{background:var(--wp--preset--color--base-2)}
.jm-veke small{color:var(--wp--preset--color--contrast-2)}
.jm-sesong{border:1px solid var(--wp--preset--color--border);border-radius:4px;margin-top:12px;max-width:560px}
.jm-sesong summary{cursor:pointer;padding:10px 14px;font-weight:600}
.jm-sesong table{margin:0 0 6px}
.jm-tabell{overflow-x:auto}.jm-tabell table{max-width:none;font-size:.92rem}.jm-tabell thead th{font-weight:700;white-space:nowrap}.jm-tabell a{color:inherit;font-weight:600;white-space:nowrap}
.jm-tilsette-liste{display:grid;gap:var(--jm-gap);grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));margin-bottom:32px}
.jm-person{display:flex;gap:14px;align-items:flex-start}.jm-person p{margin:0;font-size:.95rem}
.jm-namn{font-weight:700}.jm-portrett img{width:72px;height:72px;border-radius:50%;object-fit:cover;display:block}
.jm-gruppetittel{display:flex;align-items:center}
.jm-sokeskjema label{display:block;font-weight:700;margin-bottom:6px}
.jm-sokeskjema div{display:flex;gap:8px;flex-wrap:wrap}
.jm-sokeskjema input{flex:1 1 260px;font:inherit;padding:.7rem .9rem;border:1px solid var(--wp--preset--color--contrast-2);border-radius:2px}
.jm-treff{list-style:none;padding:0;margin:16px 0 0;display:grid;gap:18px}.jm-treff a{font-weight:700;font-size:1.1rem}.jm-treff p{margin:2px 0}
.jm-velgar{position:relative;z-index:1000}
.jm-velgar summary{cursor:pointer;list-style:none;font-weight:600;padding:.4rem .2rem;display:inline-flex;align-items:center;gap:.4em}
.jm-velgar summary::-webkit-details-marker{display:none}
.jm-velgar summary::after{content:"";width:.45em;height:.45em;border-right:2px solid;border-bottom:2px solid;transform:rotate(45deg) translateY(-2px)}
.jm-velgar[open] summary::after{transform:rotate(-135deg) translateY(-2px)}
.jm-velgar ul{display:block;position:absolute;z-index:1001;top:100%;max-height:70vh;overflow-y:auto;left:0;min-width:260px;margin:6px 0 0;padding:8px;list-style:none;background:var(--wp--preset--color--base);border:1px solid var(--wp--preset--color--border);border-radius:4px;box-shadow:0 10px 30px rgba(0,0,0,.12)}
.jm-velgar a{display:flex;align-items:center;padding:8px 10px;color:inherit;text-decoration:none;border-radius:2px}
.jm-velgar a:hover,.jm-velgar a[aria-current]{background:var(--wp--preset--color--base-2)}
.jm-kartlenkjer{display:flex;flex-wrap:wrap;gap:10px}
.jm-kontur{background:transparent!important;color:var(--wp--preset--color--contrast)!important;border:2px solid currentColor!important}
@media (max-width:600px){.jm-filter select{min-width:0;width:100%}.jm-filter label{flex:1 1 100%}.jm-tal{margin-left:0}}
.jm-fakta{display:flex;flex-wrap:wrap;gap:12px 40px;margin:0;padding:18px 22px;background:var(--wp--preset--color--base-2);border-left:6px solid var(--wp--preset--color--anlegg,var(--wp--preset--color--accent));border-radius:2px}
.jm-fakta dt{font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--wp--preset--color--contrast-2)}.jm-fakta dd{margin:0;font-weight:600}
.jm-besok p,.jm-prisar p{margin:0 0 .8em}.jm-besok .wp-element-button{margin:0 8px 8px 0}
.jm-museumsliste{list-style:none;margin:0;padding:0;columns:2 170px;column-gap:24px}.jm-museumsliste li{break-inside:avoid;padding:3px 0}.jm-museumsliste a{display:inline-flex;align-items:baseline;overflow-wrap:normal;word-break:normal;hyphens:manual}.jm-museumsliste a{color:inherit;text-decoration:none}.jm-museumsliste a:hover{text-decoration:underline}
.jm-knapperad{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 16px}
.wp-block-post-content>.wp-block-group>h2:first-child{margin-top:var(--wp--preset--spacing--40,2rem)}
.jm-velgar-rad{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.jm-til-hovud{font-weight:600;text-decoration:none;color:inherit}.jm-til-hovud:hover{text-decoration:underline}
