/* Stilark for sidene som ble portet inn fra BrregWeb: /Verden, /Norge,
   /Norge/{fylke} og /Norge/{fylke}/{kommune}.

   Viewene kom med, men stilarket ble liggende igjen i det gamle prosjektet. Uten
   regler for .geo-*, .world-*, .place-* og .vt-* falt sidene tilbake til rå
   Bootstrap-flyt, og SVG-våpnene ble rendret i sin naturlige størrelse — riksløven
   og fylkesvåpnene fylte skjermen. Reglene ligger her, i én fil, fordi fire view
   deler dem. */

/* ── Felles topp ───────────────────────────────────────────────────────────── */
.world-hero {
    background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 55%, #f0f9ff 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 2.5rem 0 2rem;
    margin-bottom: 2rem;
}
.world-hero h1 {
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    font-weight: 800;
    color: #0f172a;
    margin: .4rem 0 .6rem;
}
.world-hero .lead { font-size: 1rem; line-height: 1.65; max-width: 62ch; margin-bottom: 1.25rem; }
.text-soft { color: #475569; }
.muted { color: #64748b; }
.tabular { font-variant-numeric: tabular-nums; }
.world-count { font-size: .82rem; margin-bottom: 1rem; }

/* ── Våpensti: riksløve → fylke → kommune ──────────────────────────────────── */
.vaapen-trail { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.vt-step {
    display: inline-flex; align-items: center; gap: .45rem;
    text-decoration: none; color: #334155; font-size: .87rem; font-weight: 600;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 100px;
    padding: .3rem .8rem .3rem .45rem;
}
.vt-step:hover { border-color: #c7d2fe; color: #4338ca; }
.vt-step.current { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; }
/* Selve fiksen for de altfor store våpnene. */
.vt-step img { width: 22px; height: 26px; object-fit: contain; flex: 0 0 auto; }
.vt-sep { color: #cbd5e1; font-size: .7rem; }

/* ── /Verden: FATF-merker og landliste ─────────────────────────────────────── */
.fatf-legend { display: flex; flex-wrap: wrap; gap: .5rem; }
.fatf-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .78rem; font-weight: 700; padding: .28rem .7rem;
    border-radius: 100px; text-decoration: none; white-space: nowrap;
    border: 1px solid transparent;
}
.fatf-badge b { font-weight: 800; }
.fatf-badge.standard { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.fatf-badge.grey     { background: #fffbeb; color: #b45309; border-color: #fcd34d; }
.fatf-badge.black    { background: #fef2f2; color: #b91c1c; border-color: #fca5a5; }
a.fatf-badge:hover   { filter: brightness(.96); }

.world-wrap, .geo-wrap, .place-wrap { padding-bottom: 3rem; }
.world-toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.world-search { position: relative; flex: 1 1 260px; }
.world-search i {
    position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: .85rem; pointer-events: none;
}
.world-search input {
    width: 100%; padding: .6rem .9rem .6rem 2.35rem;
    border: 1.5px solid #e2e8f0; border-radius: 10px;
    font-size: .92rem; background: #fff; outline: none;
}
.world-search input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.world-filters { display: flex; align-items: center; gap: .5rem; }
.wf-label {
    font-size: .78rem; font-weight: 700; color: #64748b;
    text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
.wf-select {
    padding: .55rem .8rem; border: 1.5px solid #e2e8f0; border-radius: 10px;
    font-size: .88rem; background: #fff; outline: none;
}
.wf-select:focus { border-color: #6366f1; }

.world-list { border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; background: #fff; }
.world-row {
    display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
    justify-content: space-between; padding: .8rem 1.1rem; border-bottom: 1px solid #f1f5f9;
}
.world-row:last-child { border-bottom: 0; }
.world-row:hover { background: #f8fafc; }
.wr-main { min-width: 0; flex: 1 1 320px; }
.wr-name { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: #0f172a; font-size: .95rem; }
.wr-reg { font-size: .83rem; color: #64748b; margin-top: .15rem; }
.wr-side { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.wr-link { font-size: .82rem; font-weight: 600; color: #4f46e5; text-decoration: none; white-space: nowrap; }
.wr-link:hover { text-decoration: underline; }
.wr-link.disabled { color: #cbd5e1; }
.world-empty { padding: 2.5rem 1rem; text-align: center; color: #94a3b8; font-size: .92rem; }

/* Flaggene har width/height i markupen, men uten regel her strakk de seg i flex. */
.flag-img {
    width: 20px; height: 15px; object-fit: cover; border-radius: 2px;
    flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(15,23,42,.08);
}

.states-grid { display: grid; gap: .75rem; margin-top: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.state-card { border: 1px solid #e2e8f0; border-radius: 12px; padding: .85rem 1rem; background: #fff; }
.state-card:hover { border-color: #c7d2fe; }
.sc-name { display: flex; align-items: center; gap: .45rem; font-weight: 700; color: #0f172a; font-size: .9rem; }
.sc-reg { font-size: .8rem; margin: .25rem 0 .5rem; }
.sc-link { font-size: .8rem; font-weight: 600; color: #4f46e5; text-decoration: none; }
.sc-link:hover { text-decoration: underline; }

.world-about { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #e2e8f0; max-width: 68ch; }
.world-about h2 { font-size: 1.25rem; font-weight: 800; color: #0f172a; margin-bottom: .75rem; }
.world-about p, .world-about li { font-size: .93rem; line-height: 1.7; color: #374151; }
.world-about ul { padding-left: 1.2rem; }
.world-about li { margin-bottom: .5rem; }

/* ── /Norge: fylkes- og kommunekort ────────────────────────────────────────── */
.geo-grid { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.geo-card {
    display: flex; align-items: center; gap: .85rem; text-decoration: none;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
    padding: .9rem 1rem; transition: border-color .15s, box-shadow .15s;
}
.geo-card:hover { border-color: #c7d2fe; box-shadow: 0 4px 14px rgba(15,23,42,.06); }
.geo-vaapen { flex: 0 0 auto; width: 40px; height: 46px; display: flex; align-items: center; justify-content: center; }
.geo-vaapen img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.geo-info { min-width: 0; }
.geo-name { font-weight: 700; color: #0f172a; font-size: .95rem; }
.geo-meta { font-size: .8rem; margin-top: .1rem; }

/* ── Kommune: foretakslisten ───────────────────────────────────────────────── */
.place-note {
    border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc;
    padding: 1.25rem 1.5rem; color: #475569; font-size: .93rem;
}
.place-note p { margin: 0; }
.place-list { border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; background: #fff; }
.place-row { padding: .85rem 1.1rem; border-bottom: 1px solid #f1f5f9; }
.place-row:last-child { border-bottom: 0; }
.place-row:hover { background: #f8fafc; }
.pr-main { min-width: 0; }
.pr-name { font-weight: 700; font-size: .95rem; }
.pr-name a { color: #0f172a; text-decoration: none; }
.pr-name a:hover { color: #4338ca; text-decoration: underline; }
.pr-meta { font-size: .82rem; margin-top: .15rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.pr-addr { font-size: .82rem; color: #64748b; margin-top: .2rem; }
.pr-addr-label { font-weight: 600; color: #94a3b8; margin-right: .3rem; }

@media (max-width: 640px) {
    .world-row { align-items: flex-start; }
    .wr-side { width: 100%; justify-content: space-between; }
    .world-filters { width: 100%; }
    .wf-select { flex: 1; }
}
@media (max-width: 480px) {
    .geo-grid { grid-template-columns: 1fr 1fr; }
    .geo-vaapen { width: 34px; height: 40px; }
}

/* ── 2026-09-25: klasser fra de gamle merombedrift-sidene (Aksjonærer, Kunngjøringer,
      Registre) som manglet i _QmsLayout — uten dem ble SVG-ikonene hele siden store. ── */
.world-search svg { position:absolute; left:.8rem; top:50%; transform:translateY(-50%); width:16px; height:16px; color:#94a3b8; pointer-events:none; }
.place-wrap { padding-bottom:64px; }
.place-row.compact { padding:.75rem 1rem; }
.pr-top, .pr-bottom { display:flex; justify-content:space-between; align-items:center; gap:.75rem; flex-wrap:wrap; }
.pr-bottom { margin-top:.3rem; }
.pr-org { font-size:.82rem; color:#64748b; }
.nr-type { display:inline-block; font-size:.74rem; font-weight:700; padding:.12rem .5rem; border-radius:999px; background:rgba(37,99,235,.1); color:#1d4ed8; margin-right:.5rem; }
.nr-date { font-size:.8rem; }
.nr-link { font-size:.85rem; font-weight:700; text-decoration:none; }
.hero { padding:2.2rem 0 1.4rem; }
.hero h1 { font-size:clamp(1.8rem,4vw,2.6rem); font-weight:800; margin:0 0 .6rem; }
.hero .accent, .accent { color:#2563eb; }
.hero .lead { max-width:760px; color:#475569; }
.hero-search { display:flex; gap:.5rem; max-width:620px; margin-top:1.2rem; }
.hero-search input { flex:1; padding:.8rem 1rem; border:1.5px solid #e2e8f0; border-radius:12px; font-size:1rem; background:#fff; outline:none; }
.hero-search input:focus { border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.hero-search button { display:inline-flex; align-items:center; gap:.4rem; padding:.8rem 1.2rem; border:0; border-radius:12px; background:#2563eb; color:#fff; font-weight:700; cursor:pointer; }
.hero-search button svg { width:18px; height:18px; }
.feature-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:1rem; margin-top:1rem; }
.feature-card { background:#fff; border:1px solid #e2e8f0; border-radius:16px; padding:1.3rem 1.4rem; }
.feature-card .ico { width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:rgba(37,99,235,.1); color:#2563eb; margin-bottom:.8rem; }
.feature-card .ico svg { width:22px; height:22px; }
.feature-card h3 { font-size:1.05rem; font-weight:700; margin:0 0 .35rem; }
.feature-card p { color:#64748b; margin:0; font-size:.92rem; }
.reg-wrap { padding-bottom:64px; }
.reg-group { margin:1.8rem 0; }
.reg-group h2 { font-size:1.2rem; font-weight:800; }
.reg-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:.75rem; margin-top:.8rem; }
.reg-card { display:flex; gap:.75rem; align-items:flex-start; padding:.9rem 1rem; background:#fff; border:1px solid #e2e8f0; border-radius:14px; text-decoration:none; color:inherit; transition:border-color .15s, transform .15s; }
.reg-card:hover { border-color:#93c5fd; transform:translateY(-1px); }
.reg-card-ico { width:38px; height:38px; flex-shrink:0; border-radius:10px; display:flex; align-items:center; justify-content:center; }
.reg-name { display:block; font-weight:700; }
.reg-ext { font-size:.7rem; opacity:.5; }
.reg-desc { display:block; font-size:.85rem; margin-top:.15rem; }
[data-theme="dark"] .feature-card, [data-theme="dark"] .reg-card, [data-theme="dark"] .hero-search input { background:#0f172a; border-color:#1e293b; color:#e2e8f0; }
[data-theme="dark"] .hero .lead { color:#94a3b8; }
