/* NS OF-kort v0.4 – Temptations-identitet (Fraunces, lilla/lavendel, rolige kort) */
.ofc,.ofx{--lav:#a967bf;--lav-d:#7d3f94;--plum:#24122b;--blush:#f7eff9;--sand:#f7f0fa;--line:#eadff0;--ink:#221a27;--mut:#6b5f72;--ok:#2f8f5b}

/* ---------- Kortboks ---------- */
.ofc{background:#fff;border:1px solid var(--line);border-radius:20px;padding:20px;margin:24px 0 32px;color:var(--ink)}
@media(max-width:600px){.ofc{padding:14px;border-radius:16px}}
.ofc[hidden]{display:none}
.ofc .ofc-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.ofc .ofc-title{font-family:"OFC Fraunces",Georgia,serif;font-weight:500;font-size:24px;line-height:1.2;margin:0;color:var(--plum)}
@media(max-width:600px){.ofc .ofc-title{font-size:20px}}
.ofc .ofc-ad{font-size:12px;font-weight:700;color:var(--lav-d);background:var(--blush);border:1px solid var(--line);border-radius:999px;padding:3px 10px;letter-spacing:.04em;line-height:1.4}
.ofc .ofc-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.ofc .ofc-filters[hidden]{display:none}
.ofc .ofc-filters button{font:inherit;font-size:13.5px;font-weight:600;line-height:1.3;border:1px solid var(--line);background:#fff;color:var(--lav-d);border-radius:999px;padding:8px 16px;min-height:36px;cursor:pointer;box-shadow:none;text-transform:none;letter-spacing:0}
.ofc .ofc-filters button[aria-pressed="true"]{background:var(--lav);border-color:var(--lav);color:#fff}
.ofc .ofc-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(200px,100%),1fr));gap:16px}
@media(max-width:480px){.ofc .ofc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
.ofc .ofc-card{margin:0;padding:0;min-width:0}
.ofc .ofc-grid .ofc-card::before{content:none}
.ofc .ofc-more-item{display:none}
.ofc.ofc-all .ofc-more-item{display:block}
.ofc .ofc-card.ofc-hide{display:none!important}
.ofc a.ofc-link,.ofc a.ofc-link:link,.ofc a.ofc-link:visited{display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px 10px 12px;color:var(--ink);text-decoration:none;transition:box-shadow .2s,transform .2s}
.ofc a.ofc-link:hover,.ofc a.ofc-link:focus-visible{box-shadow:0 10px 28px rgba(80,40,100,.10);transform:translateY(-2px);color:var(--ink)}
.ofc a.ofc-link:focus-visible{outline:2px solid var(--lav);outline-offset:2px}
.ofc .ofc-img{position:relative;aspect-ratio:1/1;border-radius:10px;overflow:hidden;background:var(--blush);display:block}
.ofc .ofc-img img{width:100%;height:100%;object-fit:cover;display:block;margin:0;border-radius:0}
.ofc .ofc-pill{position:absolute;left:8px;top:8px;font-size:12px;font-weight:700;line-height:1.4;background:rgba(255,255,255,.94);color:var(--ok);border-radius:999px;padding:3px 9px}
@media(max-width:480px){.ofc .ofc-pill{left:5px;top:5px;font-size:10px;font-weight:600;padding:1px 6px}}
.ofc .ofc-body{display:flex;flex-direction:column;gap:2px;padding:10px 2px 0;flex:1;font-size:14px;line-height:1.5;min-width:0}
.ofc .ofc-name{font-family:"OFC Fraunces",Georgia,serif;font-weight:600;font-size:18px;line-height:1.25;color:var(--plum);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:480px){.ofc .ofc-name{font-size:16px}}
.ofc .ofc-user{font-size:13px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ofc .ofc-btn{align-self:flex-start;margin-top:auto;font-size:13px;font-weight:700;color:#fff;background:var(--lav);border-radius:999px;padding:7px 14px;white-space:nowrap;line-height:1.4}
.ofc .ofc-body .ofc-user + .ofc-btn,.ofc .ofc-body .ofc-name + .ofc-btn{margin-top:10px}
.ofc a.ofc-link:hover .ofc-btn{background:var(--lav-d)}
.ofc .ofc-more{display:block;margin:18px auto 0;font:inherit;font-size:14px;font-weight:700;background:#fff;color:var(--lav-d);border:1px solid var(--line);border-radius:999px;padding:10px 22px;min-height:44px;cursor:pointer;box-shadow:none;text-transform:none}
.ofc .ofc-more[hidden]{display:none}
.ofc .ofc-note{font-size:12.5px;line-height:1.5;color:var(--mut);margin:14px 2px 0}
.ofc .ofc-skel .ofc-link{min-height:260px;background:linear-gradient(90deg,#f7eff9 0,#fbf6fc 50%,#f7eff9 100%);background-size:200% 100%;animation:ofc-sh 1.2s infinite linear;border:0}
@keyframes ofc-sh{to{background-position:-200% 0}}
@media(prefers-reduced-motion:reduce){.ofc .ofc-skel .ofc-link{animation:none}.ofc a.ofc-link{transition:none}}

/* ---------- Guide-layout (_ns_of_layout=guide) ---------- */
.ofx-guide .entry-header,.ofx-guide .ast-breadcrumbs-wrapper{display:none}
.ofx{color:var(--ink)}
.ofx .ofx-hero{background:var(--sand);border:1px solid var(--line);border-radius:20px;padding:28px 28px 26px;margin:0 0 8px}
@media(max-width:600px){.ofx .ofx-hero{padding:18px 16px 16px;border-radius:16px}}
.ofx .ofx-crumb{font-size:13px;color:var(--mut);margin:0 0 10px}
.ofx .ofx-crumb a{color:var(--mut);text-decoration:none;display:inline-block;padding:4px 0}
.ofx .ofx-kicker{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--lav-d);margin:0 0 6px}
.ofx .ofx-hero h1{font-family:"OFC Fraunces",Georgia,serif;font-weight:600;font-size:clamp(28px,4.4vw,42px);line-height:1.15;margin:0 0 10px;color:var(--plum)}
.ofx .ofx-lede{font-size:17px;line-height:1.6;margin:0;max-width:680px}
@media(max-width:600px){.ofx .ofx-lede{font-size:15.5px}}
.ofx .ofx-body{max-width:760px}
.ofx .ofx-body h2{font-family:"OFC Fraunces",Georgia,serif;font-weight:500;font-size:28px;line-height:1.2;color:var(--plum);margin:40px 0 10px}
.ofx .ofx-body h2:first-child{margin-top:8px}
.ofx .ofx-body ul{padding-left:20px;margin-left:0}
.ofx .ofx-body li{margin:6px 0}
.ofx .ofx-tip{background:var(--blush);border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin:18px 0}
.ofx .ofx-related{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));grid-auto-rows:1fr;gap:12px;list-style:none;padding:0;margin:12px 0 0}
.ofx .ofx-related li{margin:0;display:flex}
.ofx .ofx-related a{flex:1;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:14px;padding:14px 16px;text-decoration:none;color:var(--plum);font-weight:700;background:#fff;box-shadow:0 1px 2px rgba(80,40,100,.06);transition:border-color .15s,box-shadow .15s,transform .15s}
.ofx .ofx-related a::after{content:"→";flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:999px;background:var(--blush);color:var(--lav-d);font-weight:700;transition:background .15s,color .15s}
.ofx .ofx-related a:hover,.ofx .ofx-related a:focus-visible{border-color:var(--lav);box-shadow:0 8px 20px rgba(80,40,100,.10);transform:translateY(-1px)}
.ofx .ofx-related a:hover::after{background:var(--lav);color:#fff}
.ofx .ofx-related b{display:block;min-width:0}
.ofx .ofx-related span{display:block;font-weight:400;font-size:13px;color:var(--mut);margin-top:2px}
