/* Artiklene (/artikler). Lesebredde på teksten, figurene litt bredere.
   Figurene følger statistikksidene: tynne stolper i én farge, verdien ved
   enden, og partiet vist med logo ved navnet, ikke med farge på stolpen. */

.ar-side { max-width: 1100px; margin: 0 auto; padding: 0 24px 56px; }
.ar-smal { max-width: 760px; margin: 0 auto; }

.ar-sti { margin: 22px 0 14px; font-size: 0.88rem; color: #64748b; }
.ar-sti a { color: #475569; text-decoration: none; }
.ar-sti a:hover { text-decoration: underline; }

.ar-emne { display: inline-block; margin: 0 0 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: #1d4ed8; text-decoration: none; }
a.ar-emne:hover { text-decoration: underline; }

.ar-hode h1 { margin: 0 0 14px; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); line-height: 1.15; letter-spacing: -0.015em; color: var(--primary); }
.ar-ingress { margin: 0 0 16px; font-size: clamp(1.08rem, 1rem + 0.4vw, 1.25rem); line-height: 1.55; color: #334155; }
.ar-byline { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 0.88rem; color: #64748b; }
.ar-byline li + li::before { content: "·"; margin-right: 14px; color: #cbd5e1; }
.ar-byline strong { color: var(--primary); font-weight: 600; }

/* Tallet øverst i artikkelen */
.ar-forside { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 28px; margin: 0 0 28px;
    padding: 30px 32px; border-radius: 16px; color: #fff;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #1e3a8a 100%); }
.ar-forside-tall { margin: 0; font-size: clamp(2.8rem, 2rem + 5vw, 4.6rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ar-forside-tekst { margin: 10px 0 0; font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem); line-height: 1.45; color: #dbe4f0; max-width: 34ch; }
.ar-forside-partier { display: flex; gap: 12px; }
.ar-forside-partier img { width: 72px; height: 72px; border-radius: 50%; background: #fff; object-fit: contain; padding: 9px; }

.ar-kort-fortalt { margin: 0 0 30px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; }
.ar-kort-fortalt h2 { margin: 0 0 10px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #475569; }
.ar-kort-fortalt ul { margin: 0; padding-left: 20px; }
.ar-kort-fortalt li { margin: 0 0 6px; line-height: 1.55; color: #1e293b; }
.ar-kort-fortalt li:last-child { margin-bottom: 0; }

/* Teksten */
.ar-tekst > p { margin: 0 0 20px; font-size: 1.08rem; line-height: 1.72; color: #1e293b; }
.ar-tekst > h2 { margin: 38px 0 14px; font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.55rem); line-height: 1.25; color: var(--primary); letter-spacing: -0.01em; }
.ar-tekst > ul { margin: 0 0 22px; padding-left: 22px; }
.ar-tekst > ul li { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.65; color: #1e293b; }
.ar-tekst a, .ar-kort-fortalt a, .ar-fakta a { color: #1d4ed8; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: 500; }
.ar-tekst a:hover, .ar-kort-fortalt a:hover, .ar-fakta a:hover { color: #1e3a8a; text-decoration-thickness: 2px; }

.ar-fakta { margin: 28px 0; padding: 20px 24px; background: var(--accent-soft); border-radius: 12px; }
.ar-fakta h3 { margin: 0 0 8px; font-size: 1.02rem; color: var(--primary); }
.ar-fakta p { margin: 0; font-size: 0.98rem; line-height: 1.65; color: #1e293b; }

/* Figurene */
.ar-figur { margin: 30px 0; padding: 22px 24px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); }
.ar-figur figcaption { margin: 0 0 16px; }
.ar-figur-tittel { display: block; font-size: 1.05rem; font-weight: 700; line-height: 1.35; color: var(--primary); }
.ar-figur-under { display: block; margin-top: 4px; font-size: 0.9rem; line-height: 1.5; color: #475569; }
.ar-figur-kilde { margin: 14px 0 0; font-size: 0.8rem; color: #64748b; }
.ar-figur-kilde a { color: #475569; }

.ar-stolper { list-style: none; margin: 0; padding: 0; }
.ar-stolper li { display: grid; grid-template-columns: minmax(0, 190px) minmax(60px, 1fr) auto; align-items: center; gap: 2px 14px; padding: 8px 0; border-top: 1px solid #f1f5f9; }
.ar-stolper li:first-child { border-top: 0; }
.ar-stolpe-navn { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 0.95rem; font-weight: 600; color: var(--primary); line-height: 1.3; }
.ar-stolpe-navn img { width: 20px; height: 20px; object-fit: contain; flex: none; }
.ar-stolpe-navn a { color: inherit; text-decoration: none; }
.ar-stolpe-navn a:hover { text-decoration: underline; }
.ar-stolpe { height: 12px; background: #eef2f7; border-radius: 0 4px 4px 0; }
.ar-stolpe > span { display: block; height: 100%; min-width: 2px; background: var(--accent); border-radius: 0 4px 4px 0; }
.ar-stolpe-verdi { font-size: 0.95rem; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; min-width: 62px; }
.ar-stolpe-merknad { grid-column: 2 / -1; font-size: 0.8rem; color: #64748b; font-variant-numeric: tabular-nums; }

/* Stolper til begge sider av null: endring opp og ned */
.ar-stolper-delt .ar-stolpe { display: grid; grid-template-columns: 1fr 1fr; background: none; border-radius: 0; position: relative; }
.ar-stolper-delt .ar-stolpe::before { content: ""; position: absolute; left: 50%; top: -5px; bottom: -5px; width: 1px; background: #94a3b8; }
.ar-stolper-delt .ar-stolpe > span { background: none; min-width: 0; border-radius: 0; display: flex; }
.ar-stolper-delt .ar-ned { justify-content: flex-end; }
.ar-stolper-delt .ar-stolpe i { display: block; height: 100%; min-width: 2px; }
.ar-stolper-delt .ar-opp i { background: var(--accent); border-radius: 0 4px 4px 0; }
.ar-stolper-delt .ar-ned i { background: #c2410c; border-radius: 4px 0 0 4px; }

/* Søyler: utvikling over tid */
.ar-soyler { display: flex; align-items: flex-end; gap: 6px; height: 200px; margin: 26px 0 0; padding: 0; list-style: none; border-bottom: 1px solid #cbd5e1; }
.ar-soyler li { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.ar-soyle { width: 100%; max-width: 44px; min-height: 2px; background: var(--accent); border-radius: 4px 4px 0 0; }
.ar-soyle-verdi { margin-bottom: 4px; font-size: 0.74rem; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ar-soyle-navn { display: flex; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.ar-soyle-navn li { flex: 1 1 0; min-width: 0; text-align: center; font-size: 0.72rem; line-height: 1.25; color: #475569; overflow-wrap: anywhere; }

.ar-tabellvisning { margin: 14px 0 0; }
.ar-tabellvisning summary { cursor: pointer; font-size: 0.86rem; color: #1d4ed8; font-weight: 600; }
.ar-tabell-rull { overflow-x: auto; }
.ar-tabell { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 0.93rem; }
.ar-tabell th { text-align: left; padding: 8px 10px 8px 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: #475569; border-bottom: 2px solid var(--border); white-space: nowrap; }
.ar-tabell td { padding: 9px 10px 9px 0; border-bottom: 1px solid #f1f5f9; line-height: 1.45; color: #1e293b; vertical-align: top; }
.ar-tabell tr:last-child td { border-bottom: 0; }
.ar-tabell .ar-tallcelle { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 16px; padding-left: 10px; }
.ar-tabell .ar-tallcelle:last-child { padding-right: 0; }

/* Tallfliser */
.ar-fliser { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 30px 0; padding: 0; list-style: none; }
.ar-fliser li { padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); }
.ar-flis-tall { display: block; font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.2rem); font-weight: 700; line-height: 1.1; color: var(--primary); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ar-flis-tekst { display: block; margin-top: 6px; font-size: 0.9rem; line-height: 1.45; color: #475569; }
.ar-fliser-tittel { margin: 30px 0 -16px; font-size: 1.05rem; font-weight: 700; color: var(--primary); }

/* Personer med bilde */
.ar-personer { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ar-tekst a.ar-person { color: inherit; font-weight: inherit; text-decoration: none; }
.ar-person { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border: 1px solid #f1f5f9; border-radius: 12px; text-align: center; text-decoration: none; color: inherit; height: 100%; }
a.ar-person:hover { border-color: #bfdbfe; background: #f8fafc; }
.ar-person-bilde { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: top; background: #e2e8f0; }
.ar-person-uten { display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3rem; color: #475569; }
.ar-person-navn { font-size: 0.95rem; font-weight: 700; line-height: 1.25; color: var(--primary); }
.ar-person-parti { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; color: #64748b; }
.ar-person-parti img { width: 15px; height: 15px; object-fit: contain; }
.ar-person-tekst { font-size: 0.85rem; line-height: 1.35; color: #334155; font-variant-numeric: tabular-nums; }

/* Under artikkelen */
.ar-om { margin: 40px 0 0; padding: 20px 24px; background: #f1f5f9; border-radius: 12px; font-size: 0.92rem; line-height: 1.6; color: #334155; }
.ar-om h2 { margin: 0 0 8px; font-size: 0.95rem; color: var(--primary); }
.ar-om p { margin: 0 0 8px; }
.ar-om p:last-child { margin-bottom: 0; }
.ar-om a { color: #1d4ed8; }
.ar-kilder { margin: 8px 0 0; padding-left: 20px; }
.ar-kilder li { margin: 0 0 4px; }

.ar-les-mer { margin: 28px 0 0; }
.ar-les-mer h2, .ar-andre h2 { margin: 0 0 12px; font-size: 1.15rem; color: var(--primary); }
.ar-les-mer ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.ar-les-mer a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 10px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--primary); font-weight: 600; font-size: 0.95rem; text-decoration: none; line-height: 1.35; }
.ar-les-mer a:hover { border-color: #93c5fd; color: #1d4ed8; }

.ar-andre { margin: 44px 0 0; padding-top: 30px; border-top: 1px solid var(--border); }

/* Kortene på oversikten og forsiden */
.ar-oversikt-hode { padding: 8px 0 6px; }
.ar-oversikt-hode h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 1.4rem + 2vw, 2.5rem); line-height: 1.15; color: var(--primary); letter-spacing: -0.015em; }
.ar-oversikt-hode p { margin: 0 0 18px; max-width: 68ch; font-size: 1.08rem; line-height: 1.6; color: #334155; }
.ar-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.ar-filter a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #cbd5e1; background: var(--surface); color: #334155; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.ar-filter a:hover { border-color: #93c5fd; color: #1d4ed8; }
.ar-filter a[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }

.ar-kort-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.ar-kort { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: box-shadow 0.15s, border-color 0.15s; }
.ar-kort:hover { border-color: #93c5fd; box-shadow: var(--shadow-md); }
.ar-kort-bilde { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; min-height: 124px; color: #fff; background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #1e3a8a 100%); }
.ar-kort-tall { display: block; font-size: 2.1rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ar-kort-talltekst { display: block; margin-top: 6px; font-size: 0.86rem; line-height: 1.35; color: #dbe4f0; }
.ar-kort-partier { display: flex; gap: 6px; flex: none; }
.ar-kort-partier img { width: 38px; height: 38px; border-radius: 50%; background: #fff; object-fit: contain; padding: 5px; }
.ar-kort-kropp { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 20px; flex: 1; }
.ar-kort-emne { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #1d4ed8; }
.ar-kort-tittel { margin: 0; font-size: 1.14rem; font-weight: 700; line-height: 1.3; color: var(--primary); }
.ar-kort:hover .ar-kort-tittel { color: #1d4ed8; }
.ar-kort-ingress { margin: 0; font-size: 0.93rem; line-height: 1.55; color: #475569; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ar-kort-meta { margin: auto 0 0; padding-top: 6px; font-size: 0.8rem; color: #64748b; }

.ar-kort-stor { grid-column: 1 / -1; }
.ar-kort-stor .ar-kort { flex-direction: row; }
.ar-kort-stor .ar-kort-bilde { flex: 0 0 40%; min-height: 220px; padding: 28px 30px; flex-direction: column; align-items: flex-start; justify-content: center; }
.ar-kort-stor .ar-kort-tall { font-size: clamp(2.6rem, 2rem + 3vw, 3.8rem); }
.ar-kort-stor .ar-kort-talltekst { font-size: 1rem; }
.ar-kort-stor .ar-kort-kropp { padding: 28px 30px; justify-content: center; gap: 10px; }
.ar-kort-stor .ar-kort-tittel { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); line-height: 1.22; }
.ar-kort-stor .ar-kort-ingress { font-size: 1.02rem; -webkit-line-clamp: 4; }
.ar-kort-stor .ar-kort-meta { margin-top: 4px; }

.ar-blad { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; font-size: 0.95rem; color: #475569; }
.ar-blad a { color: #1d4ed8; font-weight: 600; text-decoration: none; }
.ar-tom { padding: 30px 0; color: #475569; }
.ar-folg { margin: 30px 0 0; font-size: 0.9rem; color: #64748b; }
.ar-folg a { color: #1d4ed8; }

@media (max-width: 720px) {
    .ar-side { padding: 0 16px 44px; }
    .ar-forside { grid-template-columns: 1fr; padding: 24px 22px; }
    .ar-forside-partier img { width: 54px; height: 54px; padding: 7px; }
    .ar-figur { padding: 18px 16px 14px; margin-left: -4px; margin-right: -4px; }
    .ar-stolper li { grid-template-columns: minmax(0, 1fr) auto; }
    .ar-stolper .ar-stolpe { grid-column: 1 / -1; grid-row: 2; }
    .ar-stolpe-merknad { grid-column: 1 / -1; grid-row: 3; }
    .ar-tekst > p { font-size: 1.04rem; }
    .ar-soyler { gap: 3px; height: 170px; }
    .ar-soyle-navn { gap: 3px; }
    .ar-soyle-navn li { font-size: 0.64rem; }
    .ar-soyle-verdi { font-size: 0.66rem; }
    .ar-kort-stor .ar-kort { flex-direction: column; }
    .ar-kort-stor .ar-kort-bilde { flex: none; min-height: 150px; padding: 22px; }
    .ar-kort-stor .ar-kort-kropp { padding: 20px 22px 22px; }
    .ar-kort-liste { grid-template-columns: 1fr; }
}

/* Linjen redaktøren ser over et utkast og på oversikten. */
.ar-redaktor { margin: 14px 0 18px; padding: 10px 14px; border: 1px solid var(--border); border-left: 4px solid #15803d; border-radius: 8px; background: var(--surface); font-size: 0.92rem; color: var(--primary); }
.ar-redaktor-utkast { border-left-color: #b45309; background: #fffbeb; }
.ar-redaktor a { margin-left: 8px; font-weight: 600; }
