/* 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; }
}
