/* Surabhi Industries Portfolio: light corporate-portfolio layout (original code). */
:root{
  --ink:#212c2f; --ink2:#242a2d; --muted:#5d6669; --purple:#21004f; --purple2:#3d1a6e;
  --teal:#C9A24B; --teal-b:#C9A24B; --gold:#C9A24B; --gold-h:#B08A3A; --blue:#0069aa; --grey:#efefef; --line:#b9b9b9;
  --th:#aec3e7; --hl:#e6eff7; --up:#12893a; --down:#c8102e;
  --green:rgba(18,166,57,.1); --pink:rgba(214,0,110,.08); --sky:rgba(0,105,170,.09);
  --font:Roboto, Helvetica, Arial, sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:var(--font);color:var(--ink);background:#fff;font-size:16px;line-height:1.4;-webkit-font-smoothing:antialiased}
a{color:inherit}
button{font-family:inherit}

/* purple band + floating white header */
.band{background:var(--purple) center 40%/cover no-repeat;background-image:linear-gradient(180deg,rgba(10,10,14,.55),rgba(33,0,79,.72)),url("media/band-marina.jpg");height:152px;padding:0 40px}
.site-header{max-width:1200px;margin:0 auto;height:94px;background:#fff;border-radius:0 0 50px 50px;
  display:flex;align-items:center;padding:0 24px 0 24px;gap:24px}
.wordmark{font-family:Cinzel, "Times New Roman", serif;font-weight:600;font-size:15px;letter-spacing:.08em;color:#3c1361;text-decoration:none;white-space:nowrap;display:inline-flex;align-items:center;gap:8px}
.wordmark .emblem{width:26px;height:26px;flex:0 0 auto}
.nav{display:flex;gap:20px;margin-left:auto;margin-right:auto}
.nav a{font-size:14px;text-decoration:none;padding:10px 0;color:var(--ink);border-bottom:2px solid transparent}
.nav a:hover{border-bottom-color:var(--teal)}
.tools{display:flex;align-items:center;gap:14px}
.icon-btn{background:none;border:0;color:var(--ink);cursor:pointer;display:grid;place-items:center;padding:4px}
.icon-btn.on{color:var(--teal)}
.ccy-switch{display:flex;align-items:center;gap:7px}
.ccy-switch button[data-ccy]{background:none;border:0;font-size:14px;color:#8a6aa6;cursor:pointer;padding:2px 0}
.ccy-switch button[data-ccy].on{color:var(--ink);font-weight:700}
.knob{width:32px;height:18px;border-radius:10px;border:2px solid var(--teal);background:#fff;position:relative;cursor:pointer}
.knob span{position:absolute;top:2px;left:2px;width:10px;height:10px;border-radius:50%;background:var(--teal);transition:left .2s}
.knob.sgd span{left:16px}

/* breadcrumbs */
.crumbs{padding:15px 40px;font-size:14px;line-height:20px;display:flex;gap:14px;flex-wrap:wrap}
.crumbs a{text-decoration:none}.crumbs a:hover{text-decoration:underline}

/* content column */
.content{max-width:1160px;margin:0 auto;padding:0 20px 60px}
.content>section{max-width:920px;margin:0 auto}
.title-row{position:relative;padding-top:4px}
.share{position:absolute;left:-100px;top:4px;width:36px;height:36px;border-radius:50%;border:2px solid var(--teal);background:#fff;color:#8a8f91;
  display:grid;place-items:center;cursor:pointer}
.share:hover{background:var(--teal);color:#fff}
h1{font-size:40px;line-height:40px;font-weight:700;margin:6px 0 14px}
.lede{font-size:16px;line-height:22px;margin-bottom:22px}
.notebox{background:var(--grey);border-bottom:1px solid #d9d9d9;padding:16px 16px;font-style:italic;font-size:14px;line-height:22px;color:var(--ink2);margin-bottom:34px}
.notebox b{font-weight:400}
h2{font-size:24px;line-height:32px;font-weight:700}
.h2-lg{margin-top:48px}
.sub-lede{font-size:16px;margin-top:2px}
.dotted{color:var(--teal);text-decoration:none;border-bottom:1px dotted var(--teal)}

/* key figures */
.figures{display:grid;grid-template-columns:repeat(4,1fr);margin:22px 0 26px;border-top:1px solid #c9d6e0;border-bottom:1px solid #c9d6e0}
.fig{padding:14px 14px 14px 0}
.fig+.fig{padding-left:16px;border-left:1px dotted #9fb3c2}
.fig-l{font-size:12.5px;font-weight:700;text-transform:uppercase;letter-spacing:.02em;color:var(--ink)}
.fig-v{font-size:26px;font-weight:500;color:var(--blue);margin-top:4px;white-space:nowrap}
.fig-v small{font-size:14px;font-weight:400}
.up{color:var(--up)} .down{color:var(--down)} .flat{color:var(--muted)}

/* filter tabs */
.tabs{display:flex;flex-wrap:wrap;gap:7px}
.tabs button{font-size:14px;font-weight:700;line-height:18px;padding:8px 10px;border-radius:20px;border:1px solid var(--teal-b);
  background:#fff;color:var(--ink);text-transform:uppercase;cursor:pointer;transition:background .15s,color .15s}
.tabs button:hover{background:rgba(21,175,155,.1)}
.tabs button.selected{background:var(--teal);color:#fff}
.as-at{font-size:12px;font-weight:700;margin:22px 0 10px}

/* donut + legend */
.chart{display:flex;flex-direction:column;align-items:center}
.donut-wrap{position:relative;width:240px;height:240px;margin:10px 0 18px}
#donut{width:100%;height:100%}
#donut path{transition:opacity .2s;cursor:pointer}
#donut.hovering path{opacity:.35}#donut.hovering path.hl{opacity:1}
.donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--blue);font-size:19px;line-height:26px;text-align:center;pointer-events:none}
.legend{width:100%;max-width:600px;border-collapse:collapse;font-size:18px}
.legend th{font-size:18px;font-weight:400;color:var(--ink);padding:4px 6px;text-align:left;border-bottom:1px solid #8fa9bd}
.legend th.hl{color:var(--blue);font-weight:700}
.legend td{padding:4px 6px;border-bottom:1px dotted #8fa9bd;line-height:26px}
.legend .num{text-align:right}
.legend td.hl,.legend th.hl{background:var(--hl);width:80px}
.legend td.hl{color:var(--blue);font-weight:700}
.legend td.v{color:var(--ink);width:150px;font-size:16px}
.legend .dot{display:inline-block;width:14px;height:14px;border-radius:50%;margin-right:14px;vertical-align:-1px}
.legend tr{cursor:pointer}.legend tbody tr:hover td{background:#f5f8fb}.legend tbody tr:hover td.hl{background:#dce8f3}

/* sources / glossary */
.sources{display:grid;grid-template-columns:1fr 1fr;gap:40px;font-size:12.5px;line-height:22px;margin:22px 0 28px}
.sources .b{font-weight:700;margin-bottom:6px}
.sources ol{padding-left:0;list-style:none;counter-reset:n}
.sources li{counter-increment:n}.sources li::before{content:counter(n) ". "}

/* holdings table */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line)}
table.holdings{width:100%;border-collapse:collapse;font-size:12.5px}
@media (max-width:900px){table.holdings{min-width:820px}}
.holdings th{background:var(--th);font-weight:700;text-align:left;vertical-align:bottom;padding:10px;border:1px solid var(--line);border-top:0;line-height:1.25}
.holdings th:first-child{border-left:0}.holdings th:last-child{border-right:0}
.holdings th.num,.holdings td.num{text-align:right}
.th-sub{font-weight:700}
.holdings th.sort{cursor:pointer;padding-right:26px;position:relative}
.holdings th.sort::after{content:"";position:absolute;right:9px;bottom:13px;border:4px solid transparent;border-top:5px solid #3b4a63;
  filter:drop-shadow(0 -9px 0 #3b4a63)} /* ▲▼ pair */
.holdings th.sort.asc::after{filter:none;border-top-color:transparent;border-bottom:5px solid #3b4a63;bottom:18px}
.holdings th.sort.desc::after{filter:none}
.holdings td{padding:8px 10px;border:1px solid var(--line);vertical-align:middle;height:56px;line-height:1.3}
.holdings td:first-child{border-left:0}.holdings td:last-child{border-right:0}
.holdings tr.r td{background:var(--rowbg)}
.holdings tr.r td.c-logo{background:#fff}
.holdings tr.r{cursor:pointer}
.holdings tr.r:hover td:not(.c-logo){filter:brightness(.97)}
.holdings tr.r.open td{border-bottom-color:transparent}
.c-logo{width:128px}
.logo{height:38px;width:106px;display:flex;align-items:center}
.logo img{max-height:32px;max-width:96px;object-fit:contain}
.logo .mono{font-weight:700;font-size:15px;letter-spacing:.04em}
.c-name{width:190px;min-width:170px}
.nm{font-size:12.5px}
.tk{font-size:11px;color:var(--muted);margin-top:2px;display:flex;gap:6px;align-items:center}
.tag{font-size:9.5px;font-weight:700;letter-spacing:.04em;color:#8a5a00;background:#fbe7b8;padding:1px 5px;border-radius:3px}
.caret{display:inline-block;transition:transform .2s;color:var(--teal);font-size:10px}
tr.open .caret{transform:rotate(180deg)}
.sub{display:block;color:var(--muted);font-size:11px;margin-top:2px}
tr.d td{background:var(--rowbg);padding:0 14px;height:auto;border-top:0}
tr.d .din{display:grid;grid-template-columns:1fr 240px;gap:24px;padding:4px 0 16px}
tr.d .desc{font-size:13.5px;line-height:21px;max-width:62ch}
tr.d dl{display:grid;grid-template-columns:auto 1fr;gap:3px 12px;font-size:12px}
tr.d dt{font-weight:700}
tr.d a{color:var(--teal)}
tr.d[hidden]{display:none}
.hint{font-size:12px;color:var(--muted);margin-top:10px}
.footnote{font-size:14px;color:var(--ink2);margin-top:26px;line-height:22px}

/* footer */
.site-footer{padding:40px 40px 45px;border-top:1px solid #e3e3e3}
.foot-top{display:flex;justify-content:space-between;align-items:center;max-width:1200px;margin:0 auto 36px}
.site-footer .wordmark{font-size:16px}
.sitemap{font-size:14px;font-weight:700;color:var(--teal);text-decoration:none;display:flex;align-items:center;gap:10px}
.circ{width:36px;height:36px;border:2px solid var(--teal);border-radius:50%;display:grid;place-items:center;color:#8a8f91}
.foot-cols{display:grid;grid-template-columns:repeat(4,1fr);max-width:1200px;margin:0 auto}
.foot-cols>div{padding:0 20px;border-left:1px solid #d6d6d6;display:flex;flex-direction:column;gap:8px;font-size:14px}
.foot-cols>div:first-child{padding-left:0;border-left:0}
.foot-cols h3{font-size:14px;font-weight:700;text-transform:uppercase;line-height:18px;margin-bottom:8px}
.foot-cols a{text-decoration:none}.foot-cols a:hover{color:var(--teal)}
.foot-cols p{font-size:14px}.foot-cols p.t{font-weight:500;margin-top:-6px}
.foot-bar{max-width:1200px;margin:34px auto 0;background:var(--grey);padding:12px 16px;font-size:11px;display:flex;gap:16px;flex-wrap:wrap}

/* private mode */
body.private .money,body.private td.mval{filter:blur(7px);user-select:none}

/* responsive */
@media (max-width:1180px){.share{position:static;margin-bottom:8px}}
@media (max-width:900px){
  .band{height:210px;padding:0 18px}
  .site-header{height:58px;border-radius:0 0 22px 22px;padding:0 16px;gap:10px}
  .wordmark{font-size:12px;letter-spacing:.05em}
  .ccy-switch button[data-ccy]{font-size:13px}
  .nav{display:none}
  .tools{margin-left:auto}
  .crumbs{padding:14px 16px;gap:10px}
  .content{padding:0 16px 40px}
  h1{font-size:25px;line-height:30px;margin:10px 0 12px}
  h2{font-size:20px;line-height:28px}
  .donut-wrap{width:190px;height:190px}
  .figures{grid-template-columns:1fr 1fr}
  .fig:nth-child(3){padding-left:0;border-left:0;border-top:1px dotted #9fb3c2}
  .fig:nth-child(4){border-top:1px dotted #9fb3c2}
  .fig-v{font-size:22px}
  .legend,.legend th{font-size:15px}
  .legend td.v{width:auto;font-size:13px}
  .legend td.hl,.legend th.hl{width:64px}
  .legend .dot{margin-right:10px;width:12px;height:12px}
  .sources{grid-template-columns:1fr;gap:12px}
  .holdings .sticky{position:sticky;left:0;z-index:2}
  .holdings .sticky2{position:sticky;left:96px;z-index:2;box-shadow:3px 0 4px -2px rgba(0,0,0,.15)}
  .holdings th.sticky,.holdings th.sticky2{z-index:3;position:sticky}
  table.holdings{border-collapse:separate;border-spacing:0}
  .holdings td{border-left-width:0}.holdings th{border-left-width:0}.holdings th:first-child,.holdings td:first-child{border-left-width:0}
  .holdings tr.r td.sticky2{background:linear-gradient(var(--rowbg),var(--rowbg)),#fff}
  .c-logo{width:96px}.logo{width:76px}.logo img{max-width:72px}
  .c-name{width:130px;min-width:130px}
  tr.d .din{grid-template-columns:1fr;gap:10px;position:sticky;left:0;width:calc(100vw - 64px)}
  .site-footer{padding:32px 16px}
  .foot-cols{grid-template-columns:1fr 1fr;gap:24px 0}
  .foot-cols>div:nth-child(3){padding-left:0;border-left:0}
}


/* founder note + principles */
.founder-note{margin:8px 0 28px;padding:18px 20px;border-left:3px solid var(--gold);background:#faf7f0}
.founder-note p{font-size:15px;line-height:1.55;color:var(--ink2);font-style:italic;max-width:62ch}
.founder-note .by{margin-top:10px;font-style:normal;font-size:13px;font-weight:700;letter-spacing:.04em;color:var(--purple);text-transform:none}
.principles{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:0 0 34px}
.principle{border:1px solid #e6dfd0;background:#fff;padding:18px 16px}
.principle h3{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gold);margin-bottom:6px}
.principle p{font-size:14px;line-height:1.45;color:var(--ink2)}
@media (max-width:900px){
  .band{background-position:center 35%}
  .principles{grid-template-columns:1fr}
}


/* Legal disclosure — clear, small, readable */
.legal-disclosure{
  font-size:12.5px;line-height:1.5;color:var(--muted,#5d6669);
  max-width:72ch;margin:18px 0 28px;padding:14px 16px;
  background:#f7f5f1;border:1px solid #e8e2d6;border-radius:2px;
}
.foot-disclosure{margin:0 0 18px;max-width:none}
.home-footer .legal-disclosure,.home-footer .foot-disclosure{
  color:rgba(255,255,255,.7);background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.12);margin-top:8px;
}

/* philosophy block (founder note + principles) placed after Highlights */
.philosophy{padding-top:40px}
.philosophy .founder-note{margin-top:0}
.philosophy .principles{margin-bottom:8px}
@media (max-width:600px){.philosophy{padding-top:28px}.philosophy .principles{gap:12px}}

/* values switch (holdings.json display.show_values) */
body.no-values .vals-only{display:none!important}
body:not(.no-values) .novals-only{display:none!important}

/* performance block */
.perf{margin:6px 0 30px}
.perf-head{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;margin-top:22px}
.perf-head h3{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gold)}
.perf-head span{font-size:12px;color:var(--muted);letter-spacing:.02em}
.perf .figures{margin:10px 0 0}
.perf-figs.n3{grid-template-columns:repeat(3,1fr)}
.fig-b{font-size:12.5px;color:var(--muted);margin-top:3px;white-space:nowrap}
.fig-b b{font-weight:500}
.perf-chart{margin:14px 0 0}
.perf-chart svg{display:block;width:100%;height:120px;overflow:visible}
.perf-chart figcaption{font-size:12px;color:var(--muted);margin-top:8px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.perf-chart .k{display:inline-block;width:16px;height:0;border-top:2px solid var(--purple);margin-left:8px}
.perf-chart .k:first-child{margin-left:0}
.perf-chart .k-s{border-top:1.5px dashed #9aa3a6}
.perf-range{margin-left:auto}
@media (max-width:900px){
  .perf-figs.n3{grid-template-columns:1fr 1fr}
  .perf-chart svg{height:96px}
  .fig-b{font-size:12px}
}

/* Portfolio performance chart */
.pchart{margin:26px 0 0;padding:22px 22px 16px;background:#FCFAF5;border:1px solid #EEE7D8;border-radius:4px}
.pc-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.pc-title{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gold)}
.pc-label{font-size:12.5px;color:var(--muted);margin-top:10px;letter-spacing:.02em}
.pc-big{font-family:Cinzel,"Times New Roman",serif;font-weight:600;font-size:40px;line-height:1.1;margin-top:4px;letter-spacing:.01em}
.pc-big.pos{color:#8C6A24}.pc-big.neg{color:#8A5A52}
.pc-bench{font-size:12.5px;color:var(--muted);margin-top:4px}
.pc-bench b{font-weight:500;color:var(--ink)}
.pc-legend{display:flex;gap:14px;align-items:center;font-size:12px;color:var(--muted);padding-top:2px}
.pc-key{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.pc-toggle{background:none;border:0;padding:4px 0;cursor:pointer}
.pc-toggle[aria-pressed="false"]{opacity:.45;text-decoration:line-through}
.sw{display:inline-block;width:16px;height:0;border-top:2px solid #B08A3A}
.sw-s{border-top:1.5px solid #A3A8AA}
.pc-plot{position:relative;margin-top:14px;touch-action:pan-y;-webkit-tap-highlight-color:transparent}
.pc-plot svg{display:block;width:100%;height:auto;overflow:visible;user-select:none}
.pc-ax{font-size:11px;fill:#7d8588;font-family:var(--font);font-variant-numeric:tabular-nums}
.pc-start{fill:#9a7f45}
.pc-tip{position:absolute;top:-6px;pointer-events:none;background:#fff;border:1px solid #E6DECB;border-radius:3px;padding:7px 10px;
  font-size:12px;color:var(--ink);box-shadow:0 2px 10px rgba(60,45,20,.08);white-space:nowrap;display:flex;flex-direction:column;gap:3px}
.pc-tip[hidden]{display:none}
.pc-tip b{font-weight:500;color:var(--muted);font-size:11.5px}
.pc-tip span{display:flex;align-items:center;gap:6px}
.pc-tip em{font-style:normal;font-weight:500;margin-left:auto;padding-left:10px;font-variant-numeric:tabular-nums}
.pc-note{font-size:12.5px;color:#8a7a55;margin-top:6px;font-style:italic}
.pc-pills{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px}
.pc-pills button{font-size:12.5px;font-weight:500;line-height:16px;padding:6px 12px;border-radius:16px;border:1px solid #E3DAC6;background:#fff;color:var(--ink);cursor:pointer}
.pc-pills button:hover:not(:disabled){border-color:var(--gold)}
.pc-pills button.on{background:var(--gold);border-color:var(--gold);color:#fff}
.pc-pills button:disabled{color:#c2c0ba;border-color:#efebe2;background:transparent;cursor:default}
.pc-cap{font-size:11.5px;color:#8a9194;margin-top:12px;line-height:1.45}
@media (max-width:600px){
  .pchart{padding:16px 14px 12px;margin-top:20px}
  .pc-big{font-size:32px}
  .pc-pills{gap:5px}
  .pc-pills button{padding:6px 9px;font-size:12px}
}
