:root{--ink:#edf4ff;--muted:#9fb1c5;--line:#2a4055;--paper:#07121d;--hypothesis:#67c6b8;--hypothesis-bg:#173a3a;--fact:#78aee8;--fact-bg:#182f4b;--current:#b59ae8;--current-bg:#302747;--risk:#d6ad68;--risk-bg:#3b3120;--test:#98d477;--test-bg:#1b3828;--valuation:#e7c17b;--valuation-bg:#45351f}
    *{box-sizing:border-box} body{margin:0;background:radial-gradient(ellipse at 82% 0%,rgba(51,139,137,.38),transparent 40%),radial-gradient(ellipse at 5% 48%,rgba(48,78,148,.3),transparent 38%),linear-gradient(124deg,transparent 0 61%,rgba(103,198,184,.09) 61% 61.18%,transparent 61.18% 100%),linear-gradient(56deg,transparent 0 23%,rgba(120,174,232,.055) 23% 23.12%,transparent 23.12% 100%),repeating-linear-gradient(90deg,transparent 0 119px,rgba(120,174,232,.045) 120px),linear-gradient(180deg,#07121d 0%,#0a1a29 56%,#06101a 100%);background-attachment:fixed;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Sans","Yu Gothic UI",sans-serif;line-height:1.75}
    a{color:inherit} .wrap{width:min(1080px,calc(100% - 36px));margin:auto}
    header{position:sticky;top:0;z-index:100;background:rgba(7,17,29,.92);color:white;border-bottom:1px solid var(--line);backdrop-filter:blur(14px)}.nav{height:74px;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{display:flex;align-items:center;gap:11px;color:white;text-decoration:none}.brand-mark{display:block;width:34px;height:34px}.brand-copy{display:grid;line-height:1.05}.brand-name{font-size:1.02rem;font-weight:800;letter-spacing:.07em}.brand-en{margin-top:5px;color:#7f96ab;font-size:.51rem;font-weight:800;letter-spacing:.16em}.nav-actions{display:flex;align-items:center;gap:18px}.nav small{color:#9fb1c7}.instagram-link{display:inline-flex;align-items:center;gap:7px;color:#d8e5f2;text-decoration:none;font-size:.76rem;font-weight:800}.instagram-link img{width:22px;height:22px;border-radius:6px}.instagram-link:hover{color:white}.language-switcher{display:inline-flex;align-items:center;gap:4px;padding:3px;border:1px solid var(--line);border-radius:9px;background:rgba(10,25,39,.82)}.language-switcher a{min-width:32px;padding:5px 7px;border-radius:6px;color:#9fb1c5;text-align:center;text-decoration:none;font-size:.7rem;font-weight:800}.language-switcher a:hover{color:white;background:rgba(120,174,232,.12)}.language-switcher a.active{color:white;background:rgba(103,198,184,.18)}
    .intro{padding:64px 0 58px;background:linear-gradient(120deg,rgba(7,17,29,.96),rgba(15,41,61,.86) 67%,rgba(21,78,66,.68));color:white;border-bottom:1px solid var(--line)}.intro p{margin:0 0 12px;color:var(--hypothesis);font-weight:800;letter-spacing:.03em}.intro h1{max-width:800px;margin:0;font-size:clamp(2.2rem,6vw,4.4rem);line-height:1.12;letter-spacing:-.04em}.intro .lead{max-width:720px;margin-top:22px;color:#cad6e4;font-weight:400;font-size:1.05rem}
    main{padding:46px 0 84px}.eyebrow{color:var(--muted);font-size:.82rem;font-weight:800;letter-spacing:.12em}.grid{display:grid;grid-template-columns:1.65fr 1fr;gap:22px;margin-top:16px}.card{display:block;background:linear-gradient(145deg,rgba(19,35,52,.96),rgba(12,27,41,.96));border:1px solid var(--line);border-radius:18px;padding:28px;text-decoration:none;box-shadow:0 16px 44px rgba(0,0,0,.24)}.feature:hover{border-color:var(--hypothesis);transform:translateY(-3px);box-shadow:0 22px 54px rgba(0,0,0,.3);transition:.22s}.feature{overflow:hidden;padding:0}.feature-image{min-height:250px;padding:28px;display:flex;flex-direction:column;justify-content:flex-end;background-image:linear-gradient(0deg,rgba(5,16,29,.98),rgba(5,16,29,.12) 72%),url('/assets/hero_note001_yamatane.webp');background-size:cover;background-position:center}.feature-top{display:flex;align-items:center;justify-content:flex-start;margin-bottom:auto}.tag{display:inline-flex;border-radius:100px;padding:4px 10px;font-size:.76rem;font-weight:800;border:1px solid transparent}.feature h2{font-size:clamp(1.55rem,3vw,2.25rem);line-height:1.32;margin:18px 0 0;text-shadow:0 2px 18px rgba(0,0,0,.45)}.feature-body{padding:22px 28px 24px}.card p{color:var(--muted);margin:0}.meta{margin-top:18px;color:#8499af;font-size:.82rem}.structure-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:18px}.structure-chips span{padding:3px 8px;border-radius:5px;font-size:.7rem;font-weight:800}.structure-chips .h{color:var(--hypothesis);background:var(--hypothesis-bg)}.structure-chips .f{color:var(--fact);background:var(--fact-bg)}.structure-chips .c{color:var(--current);background:var(--current-bg)}.structure-chips .r{color:var(--risk);background:var(--risk-bg)}.structure-chips .t{color:var(--test);background:var(--test-bg)}.structure-chips .v{color:var(--valuation);background:var(--valuation-bg)}.sidebar{display:grid;gap:12px;align-self:start;position:sticky;top:90px}.legend{display:grid;grid-template-columns:1fr;gap:8px;cursor:default}.legend:not([open]){display:block}.legend-title{grid-column:1/-1;margin-bottom:4px;font-size:1rem;cursor:pointer;list-style:none}.legend-title::-webkit-details-marker{display:none}.legend-title:after{content:"−";float:right;color:var(--muted)}.legend:not([open]) .legend-title{margin:0}.legend:not([open]) .legend-title:after{content:"＋"}.legend-item{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:12px;min-width:0;padding:10px 13px;border-radius:9px;border:1px solid;border-left-width:3px}.legend-item b{display:block;font-size:.88rem}.legend-item span{display:block;margin:0;color:#bed0df;font-size:.75rem;line-height:1.45}.legend-item.hypothesis{border-color:#2d615c;background:linear-gradient(90deg,rgba(23,58,58,.96),rgba(13,28,42,.92))}.legend-item.hypothesis b{color:var(--hypothesis)}.legend-item.fact{border-color:#345b86;background:linear-gradient(90deg,rgba(24,47,75,.98),rgba(13,28,42,.92))}.legend-item.fact b{color:var(--fact)}.legend-item.current{border-color:#5b4c82;background:linear-gradient(90deg,rgba(48,39,71,.98),rgba(13,28,42,.92))}.legend-item.current b{color:var(--current)}.legend-item.risk{border-color:#665431;background:linear-gradient(90deg,rgba(59,49,32,.98),rgba(13,28,42,.92))}.legend-item.risk b{color:var(--risk)}.legend-item.test{border-color:#3e6848;background:linear-gradient(90deg,rgba(27,56,40,.98),rgba(13,28,42,.92))}.legend-item.test b{color:var(--test)}.legend-item.valuation{border-color:#715d3a;background:linear-gradient(90deg,rgba(69,53,31,.98),rgba(13,28,42,.92))}.legend-item.valuation b{color:var(--valuation)}.header-search{flex:1;max-width:420px;min-width:180px}.header-search .search-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.search-box{width:100%;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:rgba(11,27,42,.96);color:var(--ink);font:inherit;outline:none}.search-box:focus{border-color:var(--hypothesis);box-shadow:0 0 0 3px rgba(103,198,184,.12)}.search-box::placeholder{color:#72869b}.article-list{display:grid;gap:16px}.article-card[hidden]{display:none!important}.article-card{display:grid;grid-template-columns:minmax(230px,42%) 1fr;min-height:205px;overflow:hidden;background:linear-gradient(145deg,rgba(19,35,52,.96),rgba(12,27,41,.96));border:1px solid var(--line);border-radius:16px;padding:0;text-decoration:none}.article-card:hover{border-color:var(--hypothesis);transform:translateY(-2px);transition:.2s}.article-card .thumb{height:100%;min-height:205px;border-radius:0;background-size:cover;background-position:center}.article-card>div:last-child{min-height:205px;padding:24px;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(145deg,rgba(16,31,46,.99),rgba(8,21,33,.99))}.article-card h2{margin:7px 0 5px;font-size:1.3rem;line-height:1.35}.article-card p{margin:0;color:var(--muted);font-size:.9rem}.article-card .meta{margin-top:10px}.no-results{display:none;color:var(--muted);padding:20px 0}footer{border-top:1px solid var(--line);padding:30px 0 46px;color:var(--muted);font-size:.82rem}.footer-content{display:grid;gap:16px}.footer-promise{display:grid;gap:4px}.footer-promise b{color:var(--ink);font-size:.9rem}.footer-note{color:var(--muted)}
    @media(max-width:760px){.language-switcher a{min-width:27px;padding:5px 4px;font-size:.66rem}.language-switcher a span{display:none}.header-search{max-width:none;min-width:0}.header-search .search-box{padding:10px 12px;font-size:.82rem}.brand-copy{display:none}.nav-actions{gap:8px}.article-card{grid-template-columns:1fr;min-height:0}.article-card .thumb{height:190px;min-height:190px}.article-card>div:last-child{min-height:0;padding:20px}.nav{height:70px}.nav small{display:none}.instagram-link span{display:none}.intro{padding:48px 0}.grid{grid-template-columns:1fr}.card{padding:22px}.feature{padding:0}.feature-image{min-height:225px;padding:22px}.feature-body{padding:20px 22px 22px}}@media(max-width:720px){.sidebar{order:-1;position:static}.legend{grid-template-columns:1fr}.legend-item{grid-template-columns:76px minmax(0,1fr);padding:11px 13px}}








/* Public investment card. Aggregates only; no holdings or private source IDs. */
.portfolio-card{padding:20px 17px 17px;min-width:0}
.portfolio-card h2{font-size:1.06rem;margin:0 0 4px;line-height:1.4;color:var(--ink)}
.portfolio-subtitle{font-size:.76rem;line-height:1.55;color:var(--muted);margin:0 0 14px!important}
.portfolio-chart-title{font-size:.81rem;font-weight:700;color:#d4e7f2;margin-bottom:5px}
.portfolio-chart{display:block;width:100%;height:auto;min-height:130px;max-height:185px;overflow:visible}
.portfolio-grid{stroke:#385066;stroke-width:.8;opacity:.7}
.portfolio-zero{stroke:#a7b5bf;stroke-width:.9;stroke-dasharray:3 3;opacity:.7}
.portfolio-axis{fill:#bfcede;font-size:16px;font-family:inherit;font-weight:650}
.portfolio-trend-line{fill:none;stroke:#72dbcf;stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round}
.portfolio-table{border-collapse:collapse;width:100%;font-size:.79rem;margin:12px 0 5px;font-variant-numeric:tabular-nums}
.portfolio-table tr{border-bottom:1px solid rgba(122,150,174,.15)}
.portfolio-table th{padding:8px 2px;text-align:left;font-weight:500;color:#9eb4c4}
.portfolio-table td{padding:8px 2px;text-align:right;font-weight:700;color:#e6f1f6}
.portfolio-metric-value.negative{color:#ffb4ad}
.portfolio-metric-value.positive{color:#9aead9}
.portfolio-price-date{font-size:.71rem;color:#afbfce;margin:9px 0 8px!important}
.portfolio-footnote{font-size:.7rem!important;line-height:1.65;color:#8faabd!important;margin:0!important}
.sidebar{position:static}
@media(max-width:720px){
 .portfolio-card{max-width:100%;padding:20px}
 .sidebar{order:-1}
 .portfolio-chart{max-height:215px}
}


/* Separate purchase-ledger detail page, linked from the compact sidebar. */
.portfolio-detail-link{display:flex;justify-content:space-between;align-items:center;margin-top:14px;padding:10px 13px;border-radius:10px;background:rgba(100,203,193,.10);border:1px solid rgba(117,208,194,.32);color:#c5efe7;text-decoration:none;font-size:.79rem;font-weight:700}
.portfolio-detail-link:hover{background:rgba(100,203,193,.17)}
.portfolio-history-main{max-width:1040px;margin:0 auto;padding:40px 18px 85px}
.portfolio-history-main h1{font-size:clamp(1.6rem,3vw,2.45rem);line-height:1.25;margin:14px 0 10px}
.portfolio-history-main h2{font-size:1.16rem;margin:34px 0 12px}
.portfolio-history-intro,.portfolio-history-note{color:var(--muted);line-height:1.75}
.portfolio-history-intro{margin:0 0 26px}
.portfolio-back{display:inline-block;color:#b2e4dc;text-decoration:none;font-size:.85rem;margin-bottom:20px}
.portfolio-table-scroller{overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:rgba(13,29,43,.96)}
.portfolio-trades-table{border-collapse:collapse;min-width:660px;width:100%;font-size:.86rem;font-variant-numeric:tabular-nums}
.portfolio-trades-table th{font-weight:700}
.portfolio-trades-table thead{background:#1b394a}
.portfolio-trades-table td,.portfolio-trades-table th{padding:8px 12px;border-bottom:1px solid rgba(160,184,203,.14);text-align:left}
.portfolio-trades-table td:nth-child(2){min-width:175px;white-space:nowrap}
.portfolio-trades-table td .stock-code{display:inline;margin:0 0 0 7px;color:var(--muted);font-size:.8em}
.portfolio-trades-table .portfolio-split-row{background:rgba(109,197,184,.055)}
.portfolio-trades-table .portfolio-split-tag{display:inline-block;margin-left:9px;padding:2px 6px;border:1px solid rgba(124,207,189,.34);border-radius:5px;color:#b8e6dc;font-size:.72em;white-space:nowrap}
.portfolio-trades-table .portfolio-split-row .num:last-child{color:#b8e6dc}
.portfolio-trades-table td a{color:#a3e6dc}
.portfolio-trades-table .num,.portfolio-trades-table th:nth-child(n+3){text-align:right;white-space:nowrap}
.portfolio-trades-table tfoot th,.portfolio-trades-table tfoot td{border-bottom:0;font-weight:750}
.portfolio-history-note{font-size:.81rem}
@media(max-width:720px){.portfolio-history-main{padding:26px 16px 50px}.portfolio-trades-table{font-size:.81rem}.portfolio-trades-table td,.portfolio-trades-table th{padding:8px 9px}}

/* Six-month index comparison: two lines and a centered zero, with no point markers. */
.portfolio-benchmark-line{fill:none;stroke:#afbcdc;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.portfolio-chart-legend{display:flex;flex-wrap:wrap;gap:5px 13px;margin:6px 0 9px;font-size:.68rem;color:#cbd9e3;line-height:1.6}
.portfolio-chart-legend span{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap}
.portfolio-chart-legend b{color:var(--ink);font-weight:700}
.portfolio-legend-line{display:inline-block;width:16px;border-top:2px solid #72dbcf}
.portfolio-legend-topix{border-color:#afbcdc}
.portfolio-benchmark-note,.portfolio-benchmark-overflow{font-size:.68rem!important;line-height:1.55;color:#a9bccb!important;margin:7px 0!important}
.portfolio-benchmark-overflow{color:#ffd9a2!important}


/* Full-width performance report: no sticky follow-along, no clipped contents. */
.portfolio-wide{margin:18px 0 26px;min-width:0}
.portfolio-wide .portfolio-card{padding:24px 28px}
.portfolio-wide .portfolio-card h2{font-size:1.25rem}
.portfolio-wide .portfolio-subtitle{font-size:.84rem}
.sidebar{position:static!important;top:auto!important;align-self:start}
.portfolio-chart-scroller{max-width:100%;overflow-x:auto;overflow-y:hidden}
.portfolio-chart{display:block;width:100%;height:auto;min-height:0;max-height:none}
.portfolio-table-scroll{width:100%;max-width:100%;overflow-x:auto;margin:14px 0 10px}
.portfolio-table{width:100%;min-width:770px;border-collapse:separate;border-spacing:0;font-size:.84rem}
.portfolio-table thead th{font-size:.75rem;font-weight:650;white-space:nowrap;text-align:left;padding:10px 9px;border-bottom:1px solid rgba(147,180,204,.35);color:#aec4d5}
.portfolio-table tbody td{font-size:.94rem;white-space:nowrap;text-align:left;padding:12px 9px;border-bottom:0;color:#e6f1f6}
.portfolio-table th:last-child,.portfolio-table td:last-child{text-align:right}


.portfolio-chart-title{font-size:.9rem}
@media(max-width:720px){
 .portfolio-wide{margin:12px 0 21px}
 .portfolio-wide .portfolio-card{padding:20px 16px}
 .portfolio-chart{min-width:620px}
 .portfolio-table{min-width:770px}
}


/* Wide two-column home layout; report stays in a normal-scrolling right sidebar. */
.homepage-main{width:min(1280px,calc(100% - 36px))}
.homepage-main .grid{grid-template-columns:minmax(0,1.38fr) minmax(0,1fr);gap:20px}
.homepage-main .sidebar{position:static!important;top:auto!important;align-self:start;min-width:0}
.homepage-main .article-list{min-width:0}
.homepage-main .portfolio-card{padding:20px 17px}
.homepage-main .portfolio-chart{min-width:0;max-width:100%;min-height:0}
.homepage-main .portfolio-table{min-width:650px;font-size:.79rem}
.homepage-main .portfolio-table th{padding:9px 5px;font-size:.72rem}
.homepage-main .portfolio-table td{padding:10px 5px;font-size:.84rem}
@media(max-width:760px){
 .homepage-main .grid{grid-template-columns:1fr}
 .homepage-main .sidebar{order:-1}
 .homepage-main .portfolio-table{min-width:650px}
}


/* Metrics are compact label/value cards; only profit and return receive sign colours. */
.homepage-main .portfolio-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0 12px;min-width:0}
.homepage-main .portfolio-metric{min-width:0;border:1px solid rgba(141,169,190,.22);background:rgba(7,23,36,.55);border-radius:9px;padding:9px 7px 10px}
.homepage-main .portfolio-metric-label{font-size:.70rem;font-weight:600;color:#aabfd0;line-height:1.45;margin:0 0 5px}
.homepage-main .portfolio-metric-value{display:block;font-size:clamp(.71rem,1vw,.88rem);font-weight:750;color:#e6f1f6;line-height:1.35;margin:0;white-space:nowrap;font-variant-numeric:tabular-nums}
.homepage-main .portfolio-metric-value.negative{color:#ffb4ad}
.homepage-main .portfolio-metric-value.positive{color:#9aead9}
.homepage-main .portfolio-chart-scroller{max-width:100%;overflow-x:hidden}
.homepage-main .portfolio-chart{width:100%;min-width:0;height:auto;min-height:0;max-height:none}
@media(min-width:761px) and (max-width:1099px){
 .homepage-main .portfolio-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
 .homepage-main .portfolio-metric-value{font-size:.74rem}
}
@media(max-width:760px){
 .homepage-main .portfolio-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
 .homepage-main .portfolio-chart-scroller{overflow-x:auto}
 .homepage-main .portfolio-chart{min-width:0}
 .homepage-main .portfolio-metric-value{font-size:.80rem}
}

.homepage-main .portfolio-chart-legend{font-size:.76rem}

/* Per-company holdings snapshot; stock split adds zero without duplicating valuation. */
.portfolio-trades-table{min-width:1190px}
.portfolio-trades-table .position-negative{color:#ffb4ad}
.portfolio-trades-table .position-positive{color:#9aead9}
.portfolio-snapshot-date{margin:12px 0 15px!important;color:#b9d4e3!important;font-weight:650;font-size:.90rem}
.portfolio-trades-table td:nth-child(n+6){font-variant-numeric:tabular-nums}


/* All purchase and valuation information stays in one responsive 9-column table. */
.portfolio-history-main{max-width:none;width:min(1360px,calc(100% - 36px))}
.portfolio-history-table{overflow-x:auto;overflow-y:hidden;max-width:100%;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#78c6bd #172c3f}
.portfolio-trades-table{min-width:1060px;width:100%;border-collapse:collapse;font-size:.81rem;font-variant-numeric:tabular-nums}
.portfolio-trades-table td,.portfolio-trades-table th{padding:9px 7px}
.portfolio-trades-table td:nth-child(2){min-width:140px}
.portfolio-trades-table thead th{white-space:nowrap}
.portfolio-history-table:focus-visible{outline:2px solid #8bddcf;outline-offset:3px}
@media(max-width:1120px){
 .portfolio-history-table{box-shadow:inset -13px 0 10px -13px rgba(107,221,208,.65)}
 .portfolio-trades-table{min-width:1060px}
}
@media(max-width:720px){
 .portfolio-history-main{width:calc(100% - 26px);padding:26px 0 50px}
 .portfolio-trades-table{font-size:.8rem}
 .portfolio-trades-table td,.portfolio-trades-table th{padding:9px 8px}
}
.homepage-main .portfolio-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}

/* Compact 9-column investment ledger: summary first, yearly purchases below. */
.portfolio-history-main{width:min(1060px,calc(100% - 36px))}
.portfolio-history-table{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.portfolio-trades-table{min-width:850px;width:100%;table-layout:fixed;font-size:.82rem;border-collapse:collapse}
.portfolio-trades-table th,.portfolio-trades-table td{padding:8px 5px}
.portfolio-trades-table th:nth-child(1){width:51px}
.portfolio-trades-table th:nth-child(2){width:115px}
.portfolio-trades-table th:nth-child(3){width:85px}
.portfolio-trades-table th:nth-child(4){width:99px}
.portfolio-trades-table th:nth-child(5){width:96px}
.portfolio-trades-table th:nth-child(6){width:96px}
.portfolio-trades-table th:nth-child(7){width:83px}
.portfolio-trades-table th:nth-child(8){width:97px}
.portfolio-trades-table th:nth-child(9){width:73px}
.portfolio-trades-table td:nth-child(2){min-width:0;max-width:115px;overflow:hidden}
.portfolio-trades-table .portfolio-company-name{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none}
.portfolio-trades-table a.portfolio-company-name:hover{text-decoration:underline}
.portfolio-trades-table .portfolio-year-row th{background:#244454;color:#d4eaf2;padding:7px 13px;text-align:left;font-size:.86rem;font-weight:800;letter-spacing:.035em;border-top:1px solid rgba(140,191,197,.25);border-bottom:1px solid rgba(140,191,197,.25)}
.portfolio-trades-table .portfolio-total-row{background:transparent}
.portfolio-trades-table .portfolio-total-row th,.portfolio-trades-table .portfolio-total-row td{font-weight:800;border-bottom:1px solid rgba(140,191,197,.25)}
.portfolio-trades-table .portfolio-total-row th{text-align:left}
.portfolio-trades-table tbody.portfolio-year-group tr:not(.portfolio-year-row):hover{background:rgba(79,159,163,.09)}
.portfolio-trades-table .portfolio-inline-split{font-size:.65em;color:#9bded2;vertical-align:super;margin-left:2px}
.portfolio-trades-table .portfolio-split-quantity{white-space:nowrap}
@media(max-width:1120px){.portfolio-trades-table{min-width:850px}}
@media(max-width:720px){.portfolio-history-main{width:calc(100% - 26px)}.portfolio-trades-table{min-width:850px;font-size:.81rem}}

/* Keep the count under Company in the top totals row (9 columns unchanged). */
.portfolio-trades-table .portfolio-total-count{text-align:left;font-weight:750;white-space:nowrap;color:var(--ink)}

/* Mobile research-first article order: the portfolio card moves after article 3. */
@media(max-width:760px){
  .homepage-main .sidebar{order:0}
}

/* Homepage-only alignment: header, introduction, research grid and footer
   share one horizontal content boundary; full-bleed backgrounds remain full width. */
body.home-page .wrap{
  width:min(1280px,calc(100% - 36px));
}


/* Category colors live in /assets/category-colors.css (shared with article pages). */
/* Collapsible article categories, between portfolio and the six-section guide. */
.category-browser{min-width:0;padding:20px 17px 19px}
.category-browser h2{font-size:1.05rem;line-height:1.45;margin:0 0 13px;color:var(--ink)}
.category-groups{display:grid;gap:7px}
.category-group{min-width:0;border:1px solid rgba(128,165,190,.3);border-radius:10px;background:rgba(8,25,39,.53);overflow:hidden}
.category-group summary{list-style:none;display:flex;align-items:center;gap:9px;min-height:46px;padding:10px 13px;font-size:.87rem;line-height:1.4;font-weight:720;cursor:pointer;color:#e1eff4}
.category-group summary::-webkit-details-marker{display:none}
.category-group summary::after{content:"＋";font-size:1.02rem;line-height:1;color:#8ecfc9;margin-left:2px}
.category-group[open] summary::after{content:"−"}
.category-group summary:hover,.category-group[open] summary{background:rgba(91,170,171,.10)}
.category-group summary:focus-visible,.category-companies a:focus-visible{outline:2px solid #90e0d6;outline-offset:-2px}
.category-name{flex:1;min-width:0}
.category-count{font-size:.72rem;color:#a7c3d0;white-space:nowrap;font-weight:650}
.category-companies{list-style:none;margin:0;padding:6px 10px 10px;border-top:1px solid rgba(130,160,181,.22)}
.category-companies li+li{border-top:1px solid rgba(130,160,181,.12)}
.category-companies a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:9px 6px;color:#cceae9;font-size:.85rem;line-height:1.4;text-decoration:none;border-radius:5px}
.category-companies a:hover{background:rgba(95,192,179,.1);color:#f2fffc}
.category-companies a span{min-width:0;overflow-wrap:anywhere}
.category-companies small{color:#91aabd;font-size:.7rem;white-space:nowrap;font-weight:650}
@media(max-width:760px){.category-browser{padding:19px 16px}.category-group summary{min-height:45px}}


/* Category navigation uses the article badge palette, with restrained accents. */
.category-group{
  --category-fill:20,62,71;
  --category-accent:#b8eef4;
  border-left:3px solid var(--category-accent);
}








.category-group summary{
  background:linear-gradient(90deg,rgba(var(--category-fill),.64),rgba(8,25,39,.18) 88%);
}
.category-group .category-name{color:var(--category-accent)}
.category-group summary::after{color:var(--category-accent)}
.category-group summary:hover,.category-group[open] summary{
  background:linear-gradient(90deg,rgba(var(--category-fill),.87),rgba(8,25,39,.34) 88%);
}

/* Category browse item with company, short article title and note number.
   Three-column on wider screens; stacked heading/subtitle on narrow sidebars. */
.category-companies a.category-company-link{
  display:grid;
  grid-template-columns:minmax(82px,1fr) minmax(0,1.65fr) auto;
  align-items:start;
  column-gap:10px;
  padding:11px 6px;
}
.category-company-name{font-weight:750;color:#e8f5f7;font-size:.85rem;line-height:1.5}
.category-companies a .category-article-title{
  color:#aac8d6;
  font-size:.77rem;
  font-weight:450;
  line-height:1.5;
  overflow-wrap:break-word;
  word-break:normal;
  white-space:normal;
}
.category-companies a .category-note{font-variant-numeric:tabular-nums;font-size:.72rem;line-height:1.7}
@media(max-width:1100px){
  .category-companies a.category-company-link{
    grid-template-columns:minmax(0,1fr) auto;
    row-gap:2px;
  }
  .category-company-name{grid-column:1;grid-row:1}
  .category-companies a .category-article-title{grid-column:1;grid-row:2}
  .category-companies a .category-note{grid-column:2;grid-row:1/span 2;align-self:center}
}
