/* CompoundHarbor production stylesheet — visual rules preserved from approved V2.9 */
:root{
  --bg:#0c0f0d;--bg-soft:#101411;--panel:#161a17;--panel2:#1c211d;--ink:#f2f5f2;
  --muted:#919a93;--line:#2c332e;--accent:#7ac89a;--accent2:#c6e5d1;--accentDim:#1d3928;
  --grid:#252c27;--white:#fff;--shadow:0 22px 70px rgba(0,0,0,.28);--r:24px
}
html[data-theme="light"]{
  --bg:#f4f4ef;--bg-soft:#eeefe9;--panel:#fcfcf9;--panel2:#f3f4ee;--ink:#202420;
  --muted:#6f766f;--line:#dadfd9;--accent:#267c4c;--accent2:#78b990;--accentDim:#e2efe7;
  --grid:#e1e4df;--white:#111511;--shadow:0 18px 55px rgba(24,33,26,.08)
}
*{box-sizing:border-box}
:where(button,a,input,select,summary,[tabindex]):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
html{scroll-behavior:smooth}
body{
  margin:0;background:
  radial-gradient(circle at 15% 0%,color-mix(in srgb,var(--accent) 8%,transparent),transparent 27%),
  var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}
a{color:inherit}
button,input,select{font:inherit}
button{cursor:pointer}
.shell{max-width:1510px;margin:auto;padding:24px}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
.brand{display:flex;align-items:center;gap:11px;font-size:19px;font-weight:800;letter-spacing:-.04em;text-decoration:none}
.logo{width:39px;height:39px;border-radius:13px;background:var(--panel2);border:1px solid var(--line);display:grid;place-items:center}
.logo svg{width:20px;height:20px}
.toptools{display:flex;gap:7px;align-items:center}
.iconbtn,.softbtn,.sharebtn{border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:11px;padding:9px 12px;font-size:11px;font-weight:750}
.iconbtn{width:38px;height:38px;padding:0;display:grid;place-items:center}
.language{position:relative}
.language select{appearance:none;border:1px solid var(--line);background:var(--panel);color:var(--ink);padding:9px 28px 9px 11px;border-radius:11px;font-size:11px;outline:none}
.language:after{content:"⌄";position:absolute;right:9px;top:8px;color:var(--muted);pointer-events:none}
.hero{display:grid;grid-template-columns:1.5fr .65fr;gap:15px;margin-bottom:15px}
.hero-main,.hero-side{border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow)}
.hero-main{padding:34px 36px;min-height:235px;background:linear-gradient(135deg,color-mix(in srgb,var(--ink) 2%,transparent),transparent),var(--panel);display:flex;flex-direction:column;justify-content:space-between}
.hero-side{padding:27px;background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 14%,transparent),transparent),var(--panel);display:flex;flex-direction:column;justify-content:space-between}
.kicker{text-transform:uppercase;letter-spacing:.15em;font-size:10px;font-weight:850;color:var(--muted)}
h1{font-size:clamp(39px,4vw,62px);line-height:.96;letter-spacing:-.06em;margin:10px 0 12px;max-width:890px}
.hero p{margin:0;max-width:820px;line-height:1.58;font-size:13px;color:var(--muted)}
.hero-side .large{font-size:31px;font-weight:790;line-height:1.05;letter-spacing:-.045em}
.hero-side .small{font-size:11px;line-height:1.5;color:var(--muted)}
.mode{display:inline-grid;grid-template-columns:1fr 1fr;padding:4px;background:var(--panel);border:1px solid var(--line);border-radius:14px;margin-bottom:15px}
.mode button{border:0;background:transparent;color:var(--muted);border-radius:10px;padding:10px 17px;font-size:11px;font-weight:780}
.mode button.active{background:var(--panel2);color:var(--ink)}
.layout{display:grid;grid-template-columns:430px 1fr;gap:15px;align-items:start}
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow)}
.controls{padding:21px;position:sticky;top:15px}
.panelhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
.panelhead h2,.panelhead h3{font-size:14px;margin:0;letter-spacing:-.025em}
.pill{font-size:9px;padding:5px 7px;border:1px solid var(--line);border-radius:99px;color:var(--muted);font-weight:800;letter-spacing:.05em}
.param{padding:13px 0;border-top:1px solid color-mix(in srgb,var(--line) 65%,transparent)}
.param:first-of-type{border-top:0;padding-top:0}
.paramhead{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:9px}
.paramtitle{font-size:11px;font-weight:780}
.paramhelp{font-size:9px;color:var(--muted);margin-top:3px;max-width:240px}
.valuebox{display:flex;align-items:center;gap:4px;border:1px solid var(--line);background:var(--bg-soft);border-radius:10px;padding:7px 8px;min-width:114px;justify-content:flex-end}
.valuebox input{width:76px;background:transparent;border:0;color:var(--ink);outline:none;text-align:right;font-size:11px;font-weight:780}
.unit{font-size:9px;color:var(--muted);white-space:nowrap}
.range{display:grid;gap:5px}
input[type=range]{appearance:none;-webkit-appearance:none;width:100%;height:4px;border-radius:99px;outline:0;background:linear-gradient(90deg,var(--accent) 0%,var(--accent) var(--pct,50%),var(--line) var(--pct,50%),var(--line) 100%)}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:17px;height:17px;border-radius:50%;background:var(--bg);border:3px solid var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 10%,transparent)}
input[type=range]::-moz-range-thumb{width:13px;height:13px;border-radius:50%;background:var(--bg);border:3px solid var(--accent)}
.rmeta{display:flex;justify-content:space-between;font-size:8px;color:color-mix(in srgb,var(--muted) 70%,transparent)}
.twoselect{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:5px 0 10px}
.select label{display:block;color:var(--muted);font-size:9px;margin-bottom:5px}
.select select{width:100%;appearance:none;background:var(--bg-soft);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:9px 28px 9px 9px;font-size:10px;outline:0}
.select{position:relative}.select:after{content:"⌄";position:absolute;right:9px;bottom:8px;color:var(--muted);pointer-events:none}
details{border-top:1px solid var(--line);padding-top:14px;margin-top:5px}
summary{list-style:none;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-size:11px;font-weight:780}
summary::-webkit-details-marker{display:none}
summary:after{content:"+";font-size:17px;color:var(--muted)}
details[open] summary:after{content:"−"}
.advanced{padding-top:11px}
.goalbox{padding:13px;border:1px solid color-mix(in srgb,var(--accent) 35%,var(--line));border-radius:16px;background:color-mix(in srgb,var(--accent) 6%,var(--panel));margin-bottom:13px}
.hidden{display:none!important}
.seg{display:grid;grid-template-columns:1fr 1fr;background:var(--bg-soft);border:1px solid var(--line);border-radius:10px;padding:3px;margin:8px 0}
.seg button{border:0;background:transparent;color:var(--muted);font-size:9px;padding:7px;border-radius:8px}
.seg button.active{background:var(--panel2);color:var(--ink)}
.goalresult{border-top:1px solid color-mix(in srgb,var(--accent) 25%,transparent);padding-top:11px;margin-top:10px}
.goalcaption,.goaldetail{font-size:9px;color:var(--muted);line-height:1.45}
.goalanswer{font-size:27px;font-weight:820;letter-spacing:-.05em;margin:3px 0}
.actions{display:grid;grid-template-columns:1fr auto;gap:7px;margin-top:14px}
.primary{background:var(--accent);border:0;color:#0c140f;border-radius:11px;padding:11px;font-size:11px;font-weight:850}
.reset{background:var(--bg-soft);color:var(--muted);border:1px solid var(--line);border-radius:11px;padding:11px 14px}
.results{display:flex;flex-direction:column;gap:15px}
.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.metric{background:var(--panel);border:1px solid var(--line);border-radius:17px;padding:17px;min-height:119px}
.metric.focus{background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 12%,transparent),transparent),var(--panel);border-color:color-mix(in srgb,var(--accent) 34%,var(--line))}
.metriclabel{font-size:9px;color:var(--muted);margin-bottom:10px}
.metricvalue{font-size:clamp(20px,2.25vw,33px);font-weight:820;letter-spacing:-.05em}
.metricnote{font-size:9px;color:var(--muted);margin-top:6px;line-height:1.4}
.rate-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.rate-chip{border:1px solid var(--line);background:var(--panel);border-radius:13px;padding:11px 13px}
.rate-chip span{display:block;font-size:8px;color:var(--muted);margin-bottom:4px}
.rate-chip b{font-size:13px}
.chartcard{padding:21px}
.charttop{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:14px}
.charttop h2{font-size:15px;margin:0 0 4px}.charttop p{font-size:9px;color:var(--muted);margin:0}
.legend{display:flex;gap:13px;flex-wrap:wrap;color:var(--muted);font-size:9px}
.legend i{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px}
.chartwrap{position:relative;background:var(--bg-soft);border:1px solid var(--line);border-radius:16px;overflow:hidden}
#chart{display:block;width:100%;height:370px}
.tooltip{position:absolute;z-index:10;pointer-events:none;min-width:145px;background:color-mix(in srgb,var(--panel2) 95%,transparent);border:1px solid var(--line);border-radius:11px;padding:9px;box-shadow:var(--shadow);font-size:9px;transform:translate(12px,-50%);display:none}
.tooltip b{font-size:11px;display:block;margin-bottom:5px}.tooltip div{display:flex;justify-content:space-between;gap:13px;margin-top:3px;color:var(--muted)}.tooltip strong{color:var(--ink)}
.scenarios{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}
.scenario{border:1px solid var(--line);background:var(--bg-soft);border-radius:12px;padding:10px}
.scenario span{font-size:8px;color:var(--muted)}.scenario b{display:block;font-size:14px;margin-top:4px}
.bottom{display:grid;grid-template-columns:1.2fr .8fr;gap:15px}
.tablecard,.insightcard{padding:19px}
.tablewrap{max-height:340px;overflow:auto;border:1px solid var(--line);border-radius:13px}
table{width:100%;border-collapse:collapse;min-width:630px;font-size:9px}
th{position:sticky;top:0;background:var(--panel2);padding:9px;text-align:right;color:var(--muted);z-index:2}td{padding:9px;border-top:1px solid var(--line);text-align:right;color:color-mix(in srgb,var(--ink) 76%,var(--muted))}
th:first-child,td:first-child{text-align:left}td.strong{color:var(--ink);font-weight:780}
.breakdown{display:flex;align-items:center;gap:17px;margin:15px 0}
.donut{width:122px;height:122px;border-radius:50%;position:relative;flex:0 0 auto}.donut:after{content:"";position:absolute;inset:22px;background:var(--panel);border-radius:50%}
.donutcenter{position:absolute;inset:0;display:grid;place-items:center;z-index:2;text-align:center;padding:39px;font-size:9px;font-weight:800}
.blist{display:grid;gap:8px;width:100%;font-size:9px}.brow{display:flex;justify-content:space-between;gap:9px;border-bottom:1px solid var(--line);padding-bottom:7px}
.callout{font-size:9px;line-height:1.55;color:var(--muted);background:var(--bg-soft);border:1px solid var(--line);border-radius:12px;padding:12px}
.content{margin-top:18px;display:grid;grid-template-columns:1.1fr .9fr;gap:15px}
.article,.faq,.newsletter{padding:25px}
.article h2,.faq h2,.newsletter h2{margin:0 0 13px;font-size:23px;letter-spacing:-.04em}
.article h3{margin:23px 0 8px;font-size:15px}.article p,.article li,.faq p{color:var(--muted);font-size:11px;line-height:1.7}
.formula{background:var(--bg-soft);border:1px solid var(--line);border-radius:13px;padding:14px;margin:13px 0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}
.faqitem{border-top:1px solid var(--line);padding:13px 0}.faqitem:first-of-type{border-top:0}.faqitem h3{font-size:12px;margin:0 0 5px}
.newsletter{margin-top:15px;background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 10%,transparent),transparent),var(--panel)}
.newsrow{display:flex;gap:8px;margin-top:14px;max-width:600px}.newsrow input{flex:1;background:var(--bg-soft);border:1px solid var(--line);color:var(--ink);border-radius:11px;padding:11px;outline:0;font-size:11px}.newsrow button{border:0;border-radius:11px;background:var(--accent);color:#0d150f;padding:11px 16px;font-size:11px;font-weight:820}
.newsnote{font-size:8px;color:var(--muted);margin-top:7px}
footer{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:22px 3px 9px;color:var(--muted);font-size:9px}
footer nav{display:flex;gap:12px;flex-wrap:wrap}footer a{text-decoration:none}
.toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);background:var(--panel2);border:1px solid var(--line);color:var(--ink);padding:10px 14px;border-radius:11px;font-size:10px;box-shadow:var(--shadow);display:none;z-index:99}
@media(max-width:1110px){.layout{grid-template-columns:1fr}.controls{position:static}.hero{grid-template-columns:1fr}.hero-side{min-height:145px}.bottom,.content{grid-template-columns:1fr}}
@media(max-width:730px){.shell{padding:12px}.hero-main,.hero-side{padding:23px}.metrics{grid-template-columns:1fr 1fr}.rate-strip{grid-template-columns:1fr}.controls,.chartcard,.tablecard,.insightcard,.article,.faq,.newsletter{padding:15px}.twoselect{grid-template-columns:1fr}.charttop{display:block}.legend{margin-top:9px}.newsrow{flex-direction:column}}
@media(max-width:460px){.metrics{grid-template-columns:1fr}.toptools .softbtn{display:none}.breakdown{flex-direction:column;align-items:flex-start}.actions{grid-template-columns:1fr}.hero-side{display:none}}


/* V1.1 refinements */
.info-stack{margin-top:18px;display:grid;gap:10px}
.info-details{
  margin:0;padding:0 22px;background:var(--panel);border:1px solid var(--line);
  border-radius:18px;box-shadow:var(--shadow)
}
.info-details summary{
  padding:18px 0;font-size:14px;font-weight:800;letter-spacing:-.025em
}
.info-details .info-body{padding:0 0 21px}
.info-details .info-body p{
  color:var(--muted);font-size:11px;line-height:1.72;margin:8px 0
}
.info-details .info-body h3{
  margin:20px 0 7px;font-size:14px;letter-spacing:-.02em
}
.info-details .formula{
  background:var(--bg-soft);border:1px solid var(--line);border-radius:13px;
  padding:14px;margin:12px 0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px
}
.info-faq-item{padding:13px 0;border-top:1px solid var(--line)}
.info-faq-item:first-child{border-top:0;padding-top:2px}
.info-faq-item h3{margin:0 0 5px!important;font-size:12px!important}
.title-nowrap{white-space:nowrap;font-size:clamp(32px,3.35vw,53px)}
.keep-pro{white-space:nowrap}
@media(max-width:760px){
  .info-details{padding:0 16px}
  .title-nowrap{white-space:normal;font-size:clamp(36px,10vw,50px)}
}


/* V1.3 balance fix for bottom cards */
.bottom{align-items:stretch}
.tablecard,.insightcard{
  display:flex;
  flex-direction:column;
  height:100%;
}
.tablewrap{
  flex:1 1 auto;
}
.insightcard .callout{
  margin-top:auto;
}


/* V1.4 enlarge lower dashboard blocks */
.bottom{
  grid-template-columns:1.28fr .92fr;
  align-items:stretch;
}
.tablecard,
.insightcard{
  min-height:540px;
}
.tablecard{
  padding:22px;
}
.insightcard{
  padding:22px;
}
.tablewrap{
  max-height:none;
  min-height:440px;
  flex:1 1 auto;
}
.breakdown{
  margin:20px 0 22px;
  align-items:flex-start;
}
.donut{
  width:138px;
  height:138px;
}
.donut:after{
  inset:25px;
}
.donutcenter{
  padding:42px;
  font-size:10px;
}
.blist{
  gap:10px;
  font-size:10px;
}
.brow{
  padding-bottom:9px;
}
.insightcard .callout{
  margin-top:auto;
  font-size:10px;
  line-height:1.62;
}
@media(max-width:730px){
  .tablecard,
  .insightcard{
    min-height:unset;
  }
  .tablewrap{
    min-height:360px;
  }
  .donut{
    width:126px;
    height:126px;
  }
}


/* V1.5 compact and rebalance lower dashboard blocks */
.bottom{
  grid-template-columns:1.28fr .92fr;
  align-items:stretch;
}

.tablecard,
.insightcard{
  min-height:410px;
  height:auto;
  display:flex;
  flex-direction:column;
}

.tablecard{
  padding:20px;
}

.insightcard{
  padding:20px;
}

.tablewrap{
  flex:1 1 auto;
  min-height:300px;
  max-height:335px;
}

/* Right card: donut first, labels below */
.insightcard .breakdown{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
  margin:16px 0 14px;
}

.insightcard .donut{
  width:132px;
  height:132px;
  flex:0 0 auto;
}

.insightcard .donut:after{
  inset:24px;
}

.insightcard .donutcenter{
  padding:40px;
  font-size:10px;
}

.insightcard .blist{
  width:100%;
  display:grid;
  gap:0;
  font-size:10px;
}

.insightcard .brow{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:16px;
  padding:9px 0;
  border-bottom:1px solid var(--line);
}

.insightcard .brow:first-child{
  border-top:1px solid var(--line);
}

.insightcard .brow span{
  color:var(--muted);
  line-height:1.35;
}

.insightcard .brow b{
  color:var(--ink);
  text-align:right;
  white-space:nowrap;
}

.insightcard .callout{
  margin-top:0;
  font-size:10px;
  line-height:1.6;
  padding:12px 13px;
}

@media(max-width:900px){
  .tablecard,
  .insightcard{
    min-height:unset;
  }
  .tablewrap{
    max-height:360px;
    min-height:320px;
  }
}

@media(max-width:730px){
  .insightcard .donut{
    width:122px;
    height:122px;
  }
}


/* V1.6 larger donut + wider right card */
.bottom{
  grid-template-columns:1.12fr .88fr;
  align-items:stretch;
}

/* Give the right card more visual presence */
.insightcard{
  padding:22px 24px;
}

/* Larger percentage donut */
.insightcard .breakdown{
  gap:18px;
  margin:18px 0 16px;
}

.insightcard .donut{
  width:178px;
  height:178px;
}

.insightcard .donut:after{
  inset:32px;
}

.insightcard .donutcenter{
  padding:52px;
  font-size:12px;
  line-height:1.15;
}

/* Keep labels spacious below the larger donut */
.insightcard .blist{
  margin-top:2px;
}

.insightcard .brow{
  padding:10px 1px;
  font-size:10.5px;
}

.insightcard .callout{
  margin-top:10px;
}

/* Slightly reduce the table width pressure so both cards feel balanced */
.tablecard{
  padding:20px 21px;
}

@media(max-width:1100px){
  .bottom{
    grid-template-columns:1.08fr .92fr;
  }
}

@media(max-width:900px){
  .bottom{
    grid-template-columns:1fr;
  }
  .insightcard .donut{
    width:166px;
    height:166px;
  }
}

@media(max-width:730px){
  .insightcard .donut{
    width:150px;
    height:150px;
  }
  .insightcard .donut:after{
    inset:28px;
  }
  .insightcard .donutcenter{
    padding:46px;
    font-size:11px;
  }
}


/* V1.7 compact projection card + clearer wealth breakdown */
.bottom{
  grid-template-columns:1.10fr .90fr;
  align-items:start;
}

/* The projection card keeps its own natural compact height */
.tablecard{
  min-height:0;
  height:auto;
  align-self:start;
}
.tablewrap{
  min-height:0;
  max-height:335px;
  flex:0 1 auto;
}

/* The wealth-composition card is wider, but never stretches the left card */
.insightcard{
  min-height:0;
  height:auto;
  align-self:start;
  --initialSegment:#7b857d;
}
html[data-theme="light"] .insightcard{
  --initialSegment:#667068;
}

/* Keep the large donut from V1.6 */
.insightcard .donut{
  width:178px;
  height:178px;
}
.insightcard .donut:after{
  inset:32px;
}
.insightcard .donutcenter{
  padding:52px;
  font-size:12px;
  line-height:1.15;
}

/* Match each text label to its exact donut segment */
.insightcard .brow:nth-child(1) span{
  color:var(--initialSegment);
  font-weight:800;
}
.insightcard .brow:nth-child(2) span{
  color:var(--accent);
  font-weight:800;
}
.insightcard .brow:nth-child(3) span{
  color:var(--accent2);
  font-weight:800;
}

/* Small matching marker improves immediate recognition */
.insightcard .brow span{
  display:flex;
  align-items:center;
  gap:8px;
}
.insightcard .brow span::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  flex:0 0 8px;
  background:currentColor;
}

@media(max-width:900px){
  .bottom{
    grid-template-columns:1fr;
  }
  .tablecard,
  .insightcard{
    width:100%;
  }
}


/* V1.8 align bottom edges of both lower cards */
.bottom{
  align-items:stretch;
}

/* Both cards share the same grid-row height */
.tablecard,
.insightcard{
  align-self:stretch;
  height:100%;
}

/* Let the projection table use the available vertical space,
   instead of leaving an empty area below it */
.tablecard{
  display:flex;
  flex-direction:column;
}

.tablecard .tablewrap{
  flex:1 1 auto;
  max-height:none;
  min-height:0;
  display:flex;
  flex-direction:column;
}

.tablecard .tablewrap table{
  flex:1 1 auto;
}

/* Keep the right card content compact while matching the same bottom edge */
.insightcard{
  display:flex;
  flex-direction:column;
}

.insightcard .callout{
  margin-top:auto;
}


/* V1.9 — keep the wealth-composition card exactly as in V1.7.
   Only stretch the projection card to the same bottom edge. */

/* Restore the right card behaviour from V1.7 (undo V1.8 only on this card) */
.bottom{
  align-items:stretch;
}

.insightcard{
  align-self:start;
  height:auto;
  min-height:0;
}

.insightcard .callout{
  margin-top:10px;
}

/* Only the LEFT card stretches to the grid-row height */
.tablecard{
  align-self:stretch;
  height:100%;
  min-height:0;
  display:flex;
  flex-direction:column;
}

/* Let the table area absorb the extra height naturally */
.tablecard .tablewrap{
  flex:1 1 auto;
  min-height:0;
  max-height:none;
}

/* Keep table content at the top; no artificial stretching of rows */
.tablecard .tablewrap table{
  flex:none;
}


/* V2.0 — ONLY crop the projection card to the exact height of the wealth card */
@media(min-width:901px){
  .bottom{
    align-items:start;
  }
  .tablecard{
    align-self:start !important;
    min-height:0 !important;
    overflow:hidden;
  }
  .tablecard .tablewrap{
    overflow:auto;
    min-height:0 !important;
    max-height:none !important;
  }
}


/* V2.1 — only width adjustments for the two lower cards */
@media(min-width:901px){
  /* Give more width to the left table card and slightly less to the right card */
  .bottom{
    grid-template-columns:1.22fr .78fr !important;
  }

  /* Make the year-by-year table more compact horizontally */
  .tablecard{
    padding-left:18px !important;
    padding-right:18px !important;
  }

  .tablewrap{
    min-width:0 !important;
    overflow-x:hidden !important;
  }

  .tablewrap table{
    min-width:0 !important;
    width:100% !important;
    table-layout:auto !important;
    font-size:8.5px !important;
  }

  .tablewrap th,
  .tablewrap td{
    padding:7px 6px !important;
  }

  .tablewrap th{
    letter-spacing:-0.01em;
    white-space:nowrap;
  }

  .tablewrap th:first-child,
  .tablewrap td:first-child{
    width:46px;
  }

  /* Narrow the right card only in width, not in height */
  .insightcard{
    padding-left:18px !important;
    padding-right:18px !important;
  }
}


/* V2.2 — homogenize spacing in year-by-year projection table */
@media(min-width:901px){
  .tablewrap table{
    table-layout:fixed !important;
  }
  .tablewrap th,
  .tablewrap td{
    padding:7px 8px !important;
  }
  .tablewrap th:first-child,
  .tablewrap td:first-child{ width:12% !important; }
  .tablewrap th:nth-child(2),
  .tablewrap td:nth-child(2){ width:22% !important; }
  .tablewrap th:nth-child(3),
  .tablewrap td:nth-child(3){ width:22% !important; }
  .tablewrap th:nth-child(4),
  .tablewrap td:nth-child(4){ width:22% !important; }
  .tablewrap th:nth-child(5),
  .tablewrap td:nth-child(5){ width:22% !important; }
}


/* V2.3 fixed — homogeneous projection-table spacing */
@media(min-width:901px){
  .tablewrap table{
    table-layout:fixed !important;
  }
  .tablewrap th,
  .tablewrap td{
    padding:7px 7px !important;
  }
  .tablewrap th{
    text-align:center !important;
    white-space:nowrap;
  }
  .tablewrap th:first-child,
  .tablewrap td:first-child{
    width:10% !important;
    text-align:center !important;
  }
  .tablewrap th:nth-child(2),
  .tablewrap td:nth-child(2),
  .tablewrap th:nth-child(3),
  .tablewrap td:nth-child(3),
  .tablewrap th:nth-child(4),
  .tablewrap td:nth-child(4),
  .tablewrap th:nth-child(5),
  .tablewrap td:nth-child(5){
    width:22.5% !important;
  }
}


/* V2.4 — align header labels and data columns consistently */
@media(min-width:901px){
  .tablewrap table{
    table-layout:fixed !important;
    width:100% !important;
  }

  /* Same width logic for both headers and body cells */
  .tablewrap th:first-child,
  .tablewrap td:first-child{
    width:10% !important;
    text-align:center !important;
  }

  .tablewrap th:nth-child(2),
  .tablewrap td:nth-child(2),
  .tablewrap th:nth-child(3),
  .tablewrap td:nth-child(3),
  .tablewrap th:nth-child(4),
  .tablewrap td:nth-child(4),
  .tablewrap th:nth-child(5),
  .tablewrap td:nth-child(5){
    width:22.5% !important;
    text-align:right !important;
  }

  /* Equal padding so header and figures sit on the same grid */
  .tablewrap th,
  .tablewrap td{
    padding:7px 8px !important;
    box-sizing:border-box !important;
  }

  /* Header alignment must mirror the numeric data below */
  .tablewrap th{
    white-space:nowrap;
    letter-spacing:-0.01em;
  }
  .tablewrap th:first-child{
    text-align:center !important;
  }
  .tablewrap th:nth-child(n+2){
    text-align:right !important;
  }
}


/* V2.5 — +1px to secondary/small typography only; layout unchanged */
.kicker{font-size:11px !important}
.softbtn,.sharebtn{font-size:12px !important}
.language select{font-size:12px !important}
.hero p{font-size:14px !important}
.hero-side .small{font-size:12px !important}
.mode button{font-size:12px !important}

.pill{font-size:10px !important}
.paramtitle{font-size:12px !important}
.paramhelp{font-size:10px !important}
.valuebox input{font-size:12px !important}
.unit{font-size:10px !important}
.rmeta{font-size:9px !important}
.select label{font-size:10px !important}
.select select{font-size:11px !important}
summary{font-size:12px !important}

.goalcaption,.goaldetail{font-size:10px !important}

.metriclabel{font-size:10px !important}
.metricnote{font-size:10px !important}
.rate-chip span{font-size:9px !important}
.rate-chip b{font-size:14px !important}

.charttop p{font-size:10px !important}
.legend{font-size:10px !important}
.scenario span{font-size:9px !important}
.scenario b{font-size:15px !important}

.tablewrap table{font-size:9.5px !important}
.tablewrap th,.tablewrap td{font-size:9.5px !important}

.donutcenter{font-size:13px !important}
.blist{font-size:11px !important}
.insightcard .brow{font-size:11px !important}
.callout{font-size:10px !important}
.insightcard .callout{font-size:11px !important}

.article p,.article li,.faq p{font-size:12px !important}
.info-details .info-body p{font-size:12px !important}
.info-faq-item h3{font-size:13px !important}
footer{font-size:10px !important}


/* V2.6 — one more +1px to secondary/small typography only; layout unchanged */
.kicker{font-size:12px !important}
.softbtn,.sharebtn{font-size:13px !important}
.language select{font-size:13px !important}
.hero p{font-size:15px !important}
.hero-side .small{font-size:13px !important}
.mode button{font-size:13px !important}

.pill{font-size:11px !important}
.paramtitle{font-size:13px !important}
.paramhelp{font-size:11px !important}
.valuebox input{font-size:13px !important}
.unit{font-size:11px !important}
.rmeta{font-size:10px !important}
.select label{font-size:11px !important}
.select select{font-size:12px !important}
summary{font-size:13px !important}

.goalcaption,.goaldetail{font-size:11px !important}

.metriclabel{font-size:11px !important}
.metricnote{font-size:11px !important}
.rate-chip span{font-size:10px !important}
.rate-chip b{font-size:15px !important}

.charttop p{font-size:11px !important}
.legend{font-size:11px !important}
.scenario span{font-size:10px !important}
.scenario b{font-size:16px !important}

.tablewrap table{font-size:10.5px !important}
.tablewrap th,.tablewrap td{font-size:10.5px !important}

.donutcenter{font-size:14px !important}
.blist{font-size:12px !important}
.insightcard .brow{font-size:12px !important}
.callout{font-size:11px !important}
.insightcard .callout{font-size:12px !important}

.article p,.article li,.faq p{font-size:13px !important}
.info-details .info-body p{font-size:13px !important}
.info-faq-item h3{font-size:14px !important}
footer{font-size:11px !important}

/* Arabic bidi support: direction only; approved dimensions and layout remain unchanged. */
html[lang="ar"] body{direction:rtl;text-align:right}
html[lang="ar"] .brand,html[lang="ar"] .toptools,html[lang="ar"] .paramhead,html[lang="ar"] .panelhead,html[lang="ar"] .charttop,html[lang="ar"] .legend,html[lang="ar"] .brow,html[lang="ar"] footer,html[lang="ar"] footer nav{flex-direction:row-reverse}
html[lang="ar"] input[type="number"],html[lang="ar"] input[type="range"],html[lang="ar"] .valuebox,html[lang="ar"] .metricvalue,html[lang="ar"] .rate-chip b,html[lang="ar"] .tooltip,html[lang="ar"] .formula,html[lang="ar"] svg,html[lang="ar"] table,html[lang="ar"] [data-currency-symbol]{direction:ltr;text-align:left;unicode-bidi:isolate}
html[lang="ar"] select{direction:rtl;text-align:right}


/* CompoundHarbor crawlable language links */
footer{flex-wrap:wrap}
footer .language-links{flex:0 0 100%;display:flex;flex-wrap:wrap;gap:8px 14px;justify-content:center;margin-top:10px}
footer .language-links a{color:var(--muted);text-decoration:none;font-size:11px}
footer .language-links a:hover{text-decoration:underline}
