/* Felles undersidemønster: roligere enn forsiden, men med tydelig verktøyidentitet. */
body.tb-inner-page{
  --inner-ink:#10233d;
  --inner-muted:#52657a;
  --inner-soft:#f3f7fa;
}
body.tb-inner-page main{position:relative}
body.tb-inner-page :is(.tb-hero,.page-hero):not(.tool-home-hero){
  position:relative;
  overflow:hidden;
  padding:clamp(46px,6vw,76px) 0 clamp(42px,5vw,64px);
  background:
    linear-gradient(115deg,rgba(255,255,255,.97),rgba(242,247,250,.94)),
    repeating-linear-gradient(90deg,transparent 0 78px,rgba(15,23,42,.025) 78px 79px);
  color:var(--inner-ink);
  border-bottom:1px solid rgba(15,23,42,.09);
}
body.tb-inner-page :is(.tb-hero,.page-hero):not(.tool-home-hero)::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:6px;
  background:linear-gradient(90deg,var(--primary) 0 42%,var(--accent,var(--primary)) 42% 58%,var(--primary) 58%);
}
body.tb-inner-page :is(.tb-hero,.page-hero):not(.tool-home-hero)::after{
  content:"";
  position:absolute;
  width:140px;
  height:140px;
  left:auto;
  right:max(4vw,28px);
  top:50%;
  bottom:auto;
  transform:translateY(-50%);
  border:18px solid rgba(15,23,42,.035);
  border-radius:50%;
  background:transparent;
  pointer-events:none;
}
body.tb-inner-page :is(.tb-hero,.page-hero):not(.tool-home-hero) > .container{
  position:relative;
  z-index:1;
  max-width:1160px;
}
body.tb-inner-page :is(.tb-hero,.page-hero):not(.tool-home-hero) h1{
  max-width:850px;
  margin:.3rem 0 .85rem;
  color:var(--inner-ink);
  font-size:clamp(2.15rem,4.5vw,4rem);
  line-height:1.02;
  letter-spacing:-.042em;
  overflow-wrap:anywhere;
  hyphens:auto;
}
body.tb-inner-page :is(.tb-hero,.page-hero):not(.tool-home-hero) :is(p,.tb-hero-lead){
  max-width:760px;
  margin:.6rem 0 0;
  color:var(--inner-muted);
  opacity:1;
  font-size:clamp(1.02rem,1.6vw,1.2rem);
  line-height:1.65;
}
body.tb-inner-page :is(.tb-hero,.page-hero):not(.tool-home-hero) :is(.tb-hero-eyebrow,.section-label){
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  color:var(--primary);
  background:rgba(255,255,255,.78);
  border:1px solid rgba(15,23,42,.1);
  box-shadow:0 4px 16px rgba(15,23,42,.04);
}
body.tb-inner-page :is(.tb-hero,.page-hero):not(.tool-home-hero) .tb-trust-pills{
  margin-top:1.2rem;
}
body.tb-inner-page :is(.tb-hero,.page-hero):not(.tool-home-hero) .tb-trust-pill{
  color:#34465b;
  background:#fff;
  border-color:rgba(15,23,42,.12);
}
body.tb-inner-page .tb-intro{padding-top:clamp(36px,5vw,58px)}
body.tb-inner-page .tb-lead{
  color:#273b52;
  font-size:clamp(1.08rem,1.7vw,1.22rem);
  line-height:1.75;
}
body.tb-inner-page .tb-narrow{max-width:830px}
body.tb-inner-page .section h2{
  letter-spacing:-.025em;
  text-wrap:balance;
}
body.tb-inner-page .section h3{color:#233951}
body.tb-inner-page .section :is(p,li){line-height:1.75}
body.tb-inner-page .section-label{
  border:1px solid rgba(15,23,42,.07);
  letter-spacing:.09em;
}
body.tb-inner-page .tb-toc{
  position:relative;
  margin-top:26px;
  padding:20px 22px 18px 24px;
  border:1px solid rgba(15,23,42,.1);
  border-left:5px solid var(--primary);
  border-radius:14px;
  background:linear-gradient(135deg,#fff,var(--inner-soft));
  box-shadow:0 12px 34px rgba(15,23,42,.06);
  line-height:2.15;
}
body.tb-inner-page .tb-toc strong{
  margin-bottom:8px;
  color:var(--inner-ink);
}
body.tb-inner-page .tb-toc a{
  display:inline-block;
  padding:2px 3px;
  border-radius:4px;
  font-weight:650;
}
body.tb-inner-page .tb-toc a:hover,
body.tb-inner-page .tb-toc a.is-active{
  color:#fff;
  background:var(--primary);
  text-decoration:none;
}
body.tb-inner-page .tb-callout{
  border-radius:14px;
  border-width:1px 1px 1px 5px;
  box-shadow:0 10px 28px rgba(15,23,42,.055);
}
body.tb-inner-page .tb-callout-info{border-left-color:var(--primary)}
body.tb-inner-page .tb-callout-warn{border-left-color:#d97706}
body.tb-inner-page .tb-fact{
  border-top:4px solid var(--primary);
  box-shadow:0 10px 28px rgba(15,23,42,.055);
  transition:transform .18s ease,box-shadow .18s ease;
}
@media (hover:hover){
  body.tb-inner-page .tb-fact:hover{
    transform:translateY(-3px);
    box-shadow:0 16px 36px rgba(15,23,42,.09);
  }
}
body.tb-inner-page .tb-table-wrap{
  border-radius:14px;
  box-shadow:0 10px 30px rgba(15,23,42,.055);
}
body.tb-inner-page .tb-table thead th{
  position:sticky;
  top:0;
  z-index:1;
}
body.tb-inner-page .tb-article-body{
  font-size:1.03rem;
}
body.tb-inner-page .tb-article-body > p:first-of-type{
  color:#273b52;
  font-size:1.12rem;
  line-height:1.8;
}
.inner-reading-progress{
  position:fixed;
  z-index:9999;
  inset:0 auto auto 0;
  width:0;
  height:4px;
  background:linear-gradient(90deg,var(--primary),var(--accent,var(--primary)));
  box-shadow:0 1px 5px rgba(15,23,42,.18);
  pointer-events:none;
}
.inner-tool-dock{
  position:fixed;
  z-index:80;
  right:20px;
  bottom:20px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:11px 16px;
  border:1px solid rgba(255,255,255,.3);
  border-radius:999px;
  color:#fff;
  background:var(--primary);
  box-shadow:0 12px 34px rgba(15,23,42,.22);
  font-size:.88rem;
  font-weight:800;
  text-decoration:none;
  transform:translateY(90px);
  opacity:0;
  transition:transform .22s ease,opacity .22s ease,box-shadow .18s ease;
}
.inner-tool-dock::before{content:"↗";font-size:1rem}
.inner-tool-dock.is-visible{transform:none;opacity:1}
.inner-tool-dock:hover{
  color:#fff;
  box-shadow:0 16px 40px rgba(15,23,42,.3);
  text-decoration:none;
}
.tb-vector-figure{
  margin:28px 0;
  padding:14px;
  border:1px solid rgba(15,23,42,.1);
  border-radius:20px;
  background:#fff;
  box-shadow:0 14px 38px rgba(15,23,42,.08);
}
.tb-vector-figure img{display:block;width:100%;height:auto;border-radius:12px}
.tb-vector-figure figcaption{margin:12px 6px 2px;color:#526477;font-size:.92rem;line-height:1.55}
.letter-check{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  overflow:hidden;
  margin-top:22px;
  border:1px solid rgba(15,23,42,.12);
  border-radius:18px;
  background:#fff;
  box-shadow:0 16px 42px rgba(15,23,42,.08);
}
.letter-check__form,.letter-check__result{padding:clamp(24px,4vw,38px)}
.letter-check__form{border-right:1px solid rgba(15,23,42,.1)}
.letter-check__form h2,.letter-check__result h2{margin-top:10px}
.letter-check__form > label{display:block;margin:20px 0 7px;font-weight:750}
.letter-check select{width:100%;min-height:48px;padding:10px 12px;border:1px solid rgba(15,23,42,.2);border-radius:9px;color:var(--text);background:#fff;font:inherit}
.letter-check__form>input[type="number"]{width:100%;min-height:48px;padding:10px 12px;border:1px solid rgba(15,23,42,.2);border-radius:9px;color:var(--text);background:#fff;font:inherit}
.letter-check fieldset{display:grid;gap:10px;margin:22px 0;padding:0;border:0}
.letter-check legend{margin-bottom:10px;font-weight:750}
.letter-check__choice{display:flex;gap:9px;align-items:flex-start;color:var(--text-muted);line-height:1.45}
.letter-check__choice input{flex:0 0 auto;margin-top:5px}
.letter-check .fk-btn{width:100%;min-height:46px;border:0;border-radius:9px;color:#fff;background:var(--primary);font:inherit;font-weight:800;cursor:pointer}
.letter-check .fk-btn:hover{background:var(--primary-dark)}
.letter-check__result{background:linear-gradient(145deg,#fff8f3,#f5f8fb)}
.letter-check__result ol{padding-left:21px}
.letter-check__result li{margin-bottom:9px}
.letter-check__tag{display:inline-flex;padding:5px 9px;border-radius:999px;color:#fff;background:var(--primary);font-size:.75rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.letter-check__link{display:inline-flex;margin-top:8px;font-weight:800}
.letter-check__note{margin-top:20px;color:var(--text-muted);font-size:.84rem}
.tb-document-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:22px}
.tb-document-grid article{padding:20px;border:1px solid rgba(15,23,42,.1);border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.045)}
.tb-document-grid h3{margin-top:0}
.tb-document-grid p{margin-bottom:0}
.cascade-help{margin:8px 0 22px;color:var(--text-muted);font-size:.87rem;line-height:1.5}
.cascade-help.is-warn{padding:11px;border-left:4px solid #d97706;background:#fff7ed;color:#7c2d12}
.cascade-help.is-danger{padding:11px;border-left:4px solid #b91c1c;background:#fef2f2;color:#7f1d1d}
.cascade-check .letter-check__result strong{color:var(--text)}
.cost-fields{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:12px 14px;margin:22px 0}
.cost-fields label{display:flex;flex-direction:column;justify-content:center;margin:0;font-weight:750}
.cost-fields label small{margin-top:2px;color:var(--text-muted);font-size:.75rem;font-weight:600}
.cost-fields input{width:100%;min-height:44px;padding:9px 12px;border:1px solid var(--border);border-radius:9px;background:#fff;color:var(--text);font:inherit;text-align:right}
.cost-result__total{margin:14px 0 18px;color:var(--primary);font-size:clamp(2rem,5vw,3.2rem);line-height:1;font-variant-numeric:tabular-nums}
.cost-result__total small,.cost-result__total strong{display:block}
.cost-result__total small{margin-bottom:8px;color:var(--text-muted);font-size:.78rem;font-weight:750;text-transform:uppercase}
.cost-result__list{display:grid;gap:8px;margin:0 0 20px}
.cost-result__list div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid rgba(15,23,42,.1)}
.cost-result__list dt,.cost-result__list dd{margin:0}
.cost-result__list dd{white-space:nowrap;font-weight:800;font-variant-numeric:tabular-nums}
.case-jump{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:24px}
.case-jump a{display:grid;gap:5px;padding:17px;border:1px solid var(--border);border-radius:12px;color:var(--text);background:#fff;font-weight:750;text-decoration:none}
.case-jump a span{color:var(--primary);font-size:.74rem;font-weight:850;letter-spacing:.06em;text-transform:uppercase}
.case-jump a:hover,.case-actions a:hover{border-color:var(--primary)}
.case-study{scroll-margin-top:84px}
.case-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:22px 0}
.case-summary div{padding:16px;border:1px solid var(--border);border-radius:12px;background:#fff}
.case-summary small,.case-summary strong{display:block}
.case-summary small{margin-bottom:5px;color:var(--text-muted);font-size:.76rem}
.case-summary strong{font-size:1.12rem;font-variant-numeric:tabular-nums}
.case-timeline{position:relative;display:grid;gap:0;margin:24px 0}
.case-timeline>li{margin-bottom:10px;padding:12px 14px;border-left:4px solid var(--primary);border-radius:0 9px 9px 0;background:#fff}
.case-timeline__item{position:relative;display:grid;grid-template-columns:30px minmax(0,1fr);gap:12px;padding-bottom:22px}
.case-timeline__item::before{content:"";position:absolute;top:28px;bottom:0;left:14px;width:2px;background:var(--border)}
.case-timeline__item:last-child::before{display:none}
.case-timeline__item>span{position:relative;z-index:1;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;color:#fff;background:var(--primary);font-size:.75rem;font-weight:850}
.case-timeline p{margin:5px 0 0;color:var(--text-muted)}
.case-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:4px}
.case-actions a{padding:10px 13px;border:1px solid var(--border);border-radius:9px;color:var(--text);background:#fff;font-size:.86rem;font-weight:750;text-decoration:none}
.fk-next{margin-top:1rem;padding:14px;border:1px solid var(--fk-line);border-radius:10px;background:#f8fafc}
.fk-next>strong{display:block;margin-bottom:9px;font-size:.84rem}
.fk-next ol{display:grid;gap:7px;margin:0;padding:0;list-style:none}
.fk-next a{display:flex;align-items:center;gap:9px;color:var(--fk-ink);font-size:.82rem;font-weight:700;text-decoration:none}
.fk-next a:hover{color:var(--primary)}
.fk-next a span{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:50%;color:#fff;background:var(--primary);font-size:.7rem}
@media (prefers-reduced-motion:reduce){
  .inner-tool-dock,.tb-fact{transition:none!important}
}
@media (max-width:700px){
  .letter-check,.tb-document-grid{grid-template-columns:1fr}
  .letter-check__form{border-right:0;border-bottom:1px solid rgba(15,23,42,.1)}
  .cost-fields{grid-template-columns:1fr;gap:7px}
  .cost-fields input{margin-bottom:9px;text-align:left}
  .cost-result__list div{align-items:flex-end;flex-direction:column;gap:4px}
  .case-jump,.case-summary{grid-template-columns:1fr 1fr}
  body.tb-inner-page :is(.tb-hero,.page-hero):not(.tool-home-hero){
    padding:38px 0 40px;
  }
  body.tb-inner-page :is(.tb-hero,.page-hero):not(.tool-home-hero)::after{display:none}
  body.tb-inner-page :is(.tb-hero,.page-hero):not(.tool-home-hero) h1{
    font-size:clamp(2rem,10.5vw,3.1rem);
  }
  body.tb-inner-page .tb-toc{
    margin-inline:-4px;
    padding:17px 18px;
    line-height:1.8;
  }
  body.tb-inner-page .tb-toc a{
    margin:3px 2px 3px 0;
    padding:5px 8px;
    background:#fff;
    border:1px solid rgba(15,23,42,.09);
  }
  .inner-tool-dock{
    right:12px;
    bottom:12px;
    padding:10px 14px;
    font-size:.82rem;
  }
}
@media (max-width:430px){.case-jump,.case-summary{grid-template-columns:1fr}}
