/* Hurpedia Design 1.3.1, integrated and adapted for Hurpedia – frågeboken.
   All existing hp-* class contracts are retained. No plugin is required.
   Tables are progressively enhanced; without JS, headers remain visible. */
.hp-art,.hp-home-wrap{max-width:100%;width:100%;margin:0 auto;color:var(--hp-text,#30343b);line-height:1.75}
.hp-art h2{font-size:1.75em;line-height:1.22;margin:48px 0 20px;letter-spacing:-.025em;color:var(--hp-dark,#20252c);font-weight:750}
.hp-art h3{font-size:1.25em;line-height:1.35;margin:32px 0 14px;font-weight:700}
.hp-art p{margin:0 0 20px}.hp-art ul,.hp-art ol{margin:0 0 20px;padding-left:24px}.hp-art li{margin-bottom:8px}
.hp-art a,.hp-home-section a{color:var(--hp-primary,#30378b);text-decoration:underline;text-underline-offset:3px}
.hp-art strong{font-weight:650;color:var(--hp-dark,#20252c)}

/* Native, semantic tables are the safe baseline, including complex tables. */
.entry-content table{display:block;max-width:100%;width:100%;overflow-x:auto;border-collapse:separate;border-spacing:0;margin:26px 0;border:1px solid var(--hp-border,#dfe2d9);border-radius:4px;font-size:.94em;background:#fff;line-height:1.55}
.entry-content thead th{padding:14px 17px;background:var(--hp-primary-dark,#22275f);color:#fff;font-size:.88em;font-weight:650;text-transform:none;letter-spacing:0;text-align:left;vertical-align:middle;border:0}
.entry-content tbody td,.entry-content tbody th{padding:14px 17px;text-align:left;vertical-align:top;border:0;border-bottom:1px solid var(--hp-border,#dfe2d9);font-variant-numeric:tabular-nums;min-width:110px;overflow-wrap:normal;word-break:normal}
.entry-content tbody tr:nth-child(even)>*{background:var(--hp-bg-soft,#f7f8f3)}
.entry-content tbody tr:last-child>*{border-bottom:0}
.entry-content table caption{padding:12px 15px;font-size:.88em;color:var(--hp-muted,#5f6570);text-align:left;caption-side:bottom;line-height:1.6}
.hpk-cell-label{display:none}
.entry-content table.hpk-table-cards{display:table}
.hpk-table-scroll{max-width:100%;overflow:auto;margin:26px 0}
.entry-content .hpk-table-scroll>table{display:table;margin:0;min-width:100%;width:100%;overflow:visible}
.hpk-scroll-hint{display:none;color:var(--hp-muted,#5f6570);font-size:13px;margin:-15px 0 20px}

/* Quick facts preserve their label/value arrangement even without scripts. */
.entry-content .hp-snabb{background:#fff;border:1px solid var(--hp-border,#dfe2d9);border-radius:5px;padding:0;margin:32px 0;overflow:hidden}
.entry-content .hp-snabb h2{margin:0;padding:20px 24px;background:var(--hp-primary-dark,#22275f);color:#fff;font-size:1em;font-weight:650;letter-spacing:0;text-transform:none;border:0}
.entry-content .hp-snabb table{display:table;margin:0;border:0;border-radius:0;width:100%;background:transparent;font-size:.96em;table-layout:fixed}
.entry-content .hp-snabb tbody{display:table-row-group}
.entry-content .hp-snabb tr{display:table-row}
.entry-content .hp-snabb td,.entry-content .hp-snabb th{padding:16px 24px;background:transparent;min-width:0;overflow-wrap:break-word}
.entry-content .hp-snabb td:first-child,.entry-content .hp-snabb th:first-child{width:38%;font-weight:650;color:var(--hp-dark,#20252c)}
.entry-content .hp-snabb td:last-child{font-weight:400}
.entry-content .hp-snabb tbody tr:nth-child(even)>*{background:var(--hp-bg-soft,#f7f8f3)}

.hp-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(140px,100%),1fr));gap:16px;margin:30px 0}
.hp-stat{background:var(--hp-bg-soft,#f7f8f3);padding:24px 18px;border:1px solid var(--hp-border,#dfe2d9);border-top:3px solid var(--hp-primary,#30378b);border-radius:4px;text-align:center}
.hp-stat-num{font-size:2.4em;font-weight:750;color:var(--hp-primary,#30378b);line-height:1.15;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.hp-stat-label{font-size:.85em;color:var(--hp-muted,#5f6570);margin-top:8px}
.hp-tips,.hp-info{padding:22px 26px;margin:28px 0;border-left:3px solid;border-radius:0 4px 4px 0}
.hp-tips{background:var(--hp-green-bg,#f0f5df);border-color:var(--hp-green-border,#a5bf68)}
.hp-info{background:var(--hp-info-bg,#edf0f9);border-color:var(--hp-info-border,#737bc1)}
.hp-tips-rubrik,.hp-info-rubrik{font-size:1em;font-weight:700;margin:0 0 10px}
.hp-tips-rubrik{color:var(--hp-green,#326134)}.hp-info-rubrik{color:var(--hp-info-color,#30378b)}
.hp-tips p:last-child,.hp-info p:last-child{margin-bottom:0}

.entry-content .hp-process{display:grid;grid-template-columns:1fr;gap:12px;padding:0;margin:28px 0;list-style:none;counter-reset:hp-item}
.entry-content .hp-process>li{position:relative;padding:22px 24px 22px 76px;background:#fff;border:1px solid var(--hp-border,#dfe2d9);border-radius:4px;margin:0;counter-increment:hp-item}
.hp-process>li::before{content:counter(hp-item);position:absolute;left:20px;top:20px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:var(--hp-primary,#30378b);border-radius:4px;color:#fff;font-size:1em;font-weight:700}
.entry-content .hp-process>li>ul,.entry-content .hp-process>li>ol{margin:12px 0 0;padding-left:22px}
.hp-process>li>p:last-child{margin-bottom:0}
.hp-internlankar{background:var(--hp-primary-soft,#edf0f9);border-left:3px solid var(--hp-primary,#30378b);padding:24px 28px;margin:36px 0;border-radius:0 4px 4px 0}
.entry-content .hp-internlankar h2{font-size:1.15em;margin:0 0 14px;text-transform:none;letter-spacing:-.015em;color:var(--hp-primary-dark,#22275f)}
.entry-content .hp-internlankar ul{list-style:none;margin:0;padding:0}
.hp-internlankar li{margin:0;padding:10px 0;border-bottom:1px solid #30378b22}.hp-internlankar li:last-child{border:0}
.hp-internlankar a{font-weight:600}

.hp-faq{margin:28px 0;display:block}
.hp-faq dt{position:relative;margin:20px 0 0;padding:20px 24px 10px 57px;background:#fff;border:1px solid var(--hp-border,#dfe2d9);border-bottom:0;border-radius:4px 4px 0 0;font-weight:700;font-size:1.05em;color:var(--hp-dark,#20252c)}
.hp-faq dt::before{content:"?";position:absolute;left:21px;top:21px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--hp-primary,#30378b);color:#fff;font-size:14px;font-weight:700}
.hp-faq dd{margin:0;padding:0 24px 22px 57px;background:#fff;border:1px solid var(--hp-border,#dfe2d9);border-top:0;border-radius:0 0 4px 4px;color:var(--hp-text,#30343b)}
.hp-faq dd p:last-child{margin-bottom:0}
.hp-byline{margin:44px 0 24px;padding:23px 0 0;border-top:1px solid var(--hp-border,#dfe2d9);font-size:.9em;color:var(--hp-muted,#5f6570)}
.hp-byline p{margin:0 0 4px}.hp-byline strong{color:var(--hp-dark,#20252c)}
.hp-kallor{font-size:.9em;color:var(--hp-text,#30343b);padding:24px 27px;margin:32px 0;background:var(--hp-bg-soft,#f7f8f3);border:1px solid var(--hp-border,#dfe2d9);border-radius:4px}
.entry-content .hp-kallor h2{font-size:1.1em;margin:0 0 14px;color:var(--hp-dark,#20252c);text-transform:none;letter-spacing:0}
.hp-kallor ul{margin:0;padding-left:20px}.hp-kallor li{margin-bottom:8px}
.hp-cta-block{background:var(--hp-primary-soft,#edf0f9);border-left:3px solid var(--hp-primary,#30378b);padding:28px 32px;margin:40px 0;border-radius:0 4px 4px 0}
.entry-content .hp-cta-block h2{font-size:1.4em;margin:0 0 16px;color:var(--hp-primary-dark,#22275f)}
.hp-cta-block p:last-of-type{margin-bottom:0}

/* Existing home components, including pages authored before this theme. */
.hp-home-hero{padding:24px 0 0;margin:0 0 56px}
.hp-home-eyebrow{font-size:.85em;letter-spacing:.04em;color:var(--hp-primary,#30378b);font-weight:650;margin:0 0 18px}
.hp-home-deck{font-size:1.2em;line-height:1.65;max-width:850px;margin:0 0 28px}
.hp-home-meta{display:flex;flex-wrap:wrap;gap:18px 32px;border-top:1px solid var(--hp-border,#dfe2d9);padding-top:24px;font-size:.9em;color:var(--hp-muted,#5f6570)}
.hp-home-meta strong{color:var(--hp-dark,#20252c)}
.hp-home-section{margin:0 0 55px}.entry-content .hp-home-section h2{font-size:1.75em;line-height:1.25;margin:0 0 18px}
.hp-home-section h3{font-size:1.25em;margin:30px 0 12px}.hp-home-deck-text{font-size:1.05em;color:var(--hp-muted,#5f6570);margin-bottom:26px}
.hp-home-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:28px 0 0}
.hp-home-card-link{display:block;text-decoration:none!important;color:inherit}
.hp-home-card{height:100%;min-height:180px;padding:24px;border:1px solid var(--hp-border,#dfe2d9);border-radius:4px;background:#fff;display:flex;flex-direction:column}
.hp-home-card-link:hover .hp-home-card{border-color:var(--hp-primary,#30378b);background:var(--hp-bg-soft,#f7f8f3)}
.hp-home-card-tag{font-size:.75em;color:var(--hp-primary,#30378b);font-weight:650;margin:0 0 14px;letter-spacing:.03em}
.entry-content .hp-home-card h3{font-size:1.2em;margin:0 0 12px;line-height:1.3}
.hp-home-card-desc{font-size:.94em;color:var(--hp-muted,#5f6570);line-height:1.6;flex:1;margin:0}
.hp-home-card-foot{margin:20px 0 0;font-size:.85em;color:var(--hp-primary,#30378b);font-weight:650}.hp-home-card-foot::after{content:" →"}
.entry-content .hp-home-manifest{position:relative;background:var(--hp-primary-soft,#edf0f9);border-left:4px solid var(--hp-primary,#30378b);border-radius:0 4px 4px 0;padding:40px 44px;margin:40px 0 55px}
.entry-content .hp-home-manifest h2{font-size:1.7em;color:var(--hp-primary-dark,#22275f);margin:0 0 20px;line-height:1.2}
.hp-home-manifest p{max-width:850px;font-size:1em;line-height:1.75;margin:0 0 16px}.hp-home-manifest p:last-child{margin:0}

@media(max-width:900px){.hp-home-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
  .hp-art h2{font-size:1.5em;margin-top:36px}.hp-art h3{font-size:1.18em}
  .hp-tips,.hp-info,.hp-internlankar,.hp-kallor,.hp-cta-block{padding:20px}
  .entry-content .hp-snabb h2{padding:17px 19px}
  .entry-content .hp-snabb table,.entry-content .hp-snabb tbody{display:block}
  .entry-content .hp-snabb tr{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;padding:16px 19px;border-bottom:1px solid var(--hp-border,#dfe2d9)}
  .entry-content .hp-snabb tr:last-child{border:0}
  .entry-content .hp-snabb td,.entry-content .hp-snabb th{display:block;padding:0;border:0;background:transparent!important;width:auto!important}
  .entry-content .hp-snabb td:first-child{font-size:.87em}
  .hp-stats{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.hp-stat{padding:20px 12px}.hp-stat-num{font-size:2em}
  .entry-content .hp-process>li{padding:19px 18px 19px 64px}.hp-process>li::before{width:30px;height:30px;left:17px;top:18px}
  .hp-faq dt{padding:18px 18px 10px 48px;font-size:1em}.hp-faq dt::before{left:15px;top:19px;width:22px;height:22px}.hp-faq dd{padding:0 18px 20px 48px}
  .hp-home-cards{grid-template-columns:1fr}.hp-home-card{min-height:0}.hp-home-deck{font-size:1.08em}.hp-home-section{margin-bottom:40px}
  .entry-content .hp-home-manifest{padding:26px 24px;margin-bottom:40px}.entry-content .hp-home-manifest h2{font-size:1.5em}
  .hpk-scroll-hint{display:block}
  .entry-content table.hpk-table-cards{display:block;border:0;background:transparent;border-radius:0;overflow:visible}
  .hpk-table-cards thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
  .hpk-table-cards tbody{display:block}
  .entry-content .hpk-table-cards tbody tr{display:block;border:1px solid var(--hp-border,#dfe2d9);border-left:3px solid var(--hp-primary,#30378b);padding:10px 17px;margin:0 0 14px;background:#fff;border-radius:4px}
  .entry-content .hpk-table-cards tbody td,.entry-content .hpk-table-cards tbody th{display:block;min-width:0;padding:9px 0;border-bottom:1px solid var(--hp-border,#dfe2d9);background:transparent;overflow-wrap:anywhere;line-height:1.55}
  .entry-content .hpk-table-cards tbody tr>:last-child{border:0}
  .hpk-table-cards .hpk-cell-label{display:block;font-size:12px;font-weight:700;color:var(--hp-primary,#30378b);margin-bottom:4px}
  .entry-content table.hpk-table-cards caption{display:block;width:100%;max-width:none;padding:3px 0 12px;font-size:13px}
}
@media print{.entry-content table{display:table;width:100%;overflow:visible}.hpk-table-scroll{overflow:visible}.hpk-scroll-hint{display:none}}
