/* 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}
@media (prefers-reduced-motion:reduce){
  .inner-tool-dock,.tb-fact{transition:none!important}
}
@media (max-width:700px){
  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;
  }
}
