.note-main {
  flex: 1;
  display: block;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, #fff 560px), var(--lb-grid-faint);
  background-repeat: no-repeat, repeat;
}
.note-wrap { max-width: 760px; margin: 0 auto; padding: 2.25rem 1.25rem 4rem; }
.note-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; font-size: 0.8rem; font-weight: 700; color: var(--lb-ink-3); margin-bottom: 1.1rem; }
.note-crumb a { color: var(--lb-ink-2); text-decoration: underline; text-decoration-color: var(--lb-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.note-crumb a:hover { background: var(--lb-yellow); color: var(--lb-ink); }
.note-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.65rem; margin-bottom: 0.8rem; font-family: var(--lb-mono); font-size: 0.78rem; color: var(--lb-ink-3); }
.note-wrap h1 {
  font-size: 2.375rem; line-height: 1.4; color: var(--lb-ink); font-weight: 800; letter-spacing: -0.01em;
  margin-bottom: 0.9rem; text-wrap: balance; word-break: auto-phrase; font-feature-settings: "palt";
}
.note-wrap h1 .sub {
  display: block; margin-top: 0.75rem; font-size: 1.06rem; line-height: 1.75; font-weight: 500; letter-spacing: 0;
  color: var(--lb-ink-2); font-feature-settings: normal;
}
.ivy-byline { font-size: 0.82rem; color: var(--lb-ink-3); margin-bottom: 1.75rem; }

.note-wrap h2 {
  word-break: auto-phrase; text-wrap: balance;
  font-size: 1.5rem; line-height: 1.5; font-weight: 800; color: var(--lb-ink);
  margin: 2.6rem 0 1rem; padding-top: 0; border-top: 0;
  scroll-margin-top: 1.25rem; font-feature-settings: "palt";
}
.note-wrap h2 > span { background: linear-gradient(transparent 62%, var(--lb-yellow) 62%, var(--lb-yellow) 94%, transparent 94%); padding: 0 0.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.note-wrap h3 { font-size: 1.1rem; line-height: 1.55; font-weight: 800; color: var(--lb-ink); margin: 1.8rem 0 0.6rem; }
.note-wrap p { line-height: 1.9; color: var(--lb-ink-2); margin-bottom: 1rem; }
.note-wrap ul, .note-wrap ol { margin: 0 0 1.1rem 1.4rem; line-height: 1.85; color: var(--lb-ink-2); }
.note-wrap li { margin-bottom: 0.35rem; }
.note-wrap a { color: var(--lb-ink); text-decoration: underline; text-decoration-color: var(--lb-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.note-wrap a:hover { background: var(--lb-yellow); }
.note-wrap strong { color: var(--lb-ink); }

.note-key {
  background: #fff; border: 1px solid var(--lb-line); border-top: 3px solid var(--lb-ink);
  padding: 1.25rem 1.5rem 0.75rem; margin: 0 0 1.9rem;
}
.note-key .label {
  display: inline-block; margin-bottom: 0.85rem; padding: 3px 10px 2px;
  background: var(--lb-yellow); color: var(--lb-ink); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.6;
}
.note-key ul { list-style: none; margin-left: 0; }
.note-key li { position: relative; padding-left: 1.15rem; }
.note-key li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 6px; height: 6px; background: var(--lb-ink); }

.note-kpi {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--lb-ink); border-bottom: 1px solid var(--lb-line); margin: 0 0 1.5rem;
}
.note-kpi > div { padding: 0.95rem 1.1rem 1rem; border-left: 1px solid var(--lb-line); min-width: 0; }
.note-kpi > div:first-child { border-left: 0; padding-left: 0; }
.note-kpi .fig-num { font-size: 2.35rem; background: none; }
.note-kpi .is-key .fig-num { background: linear-gradient(transparent 58%, var(--lb-yellow) 58%, var(--lb-yellow) 92%, transparent 92%); }
.note-kpi .kpi-lab { display: block; margin-top: 0.45rem; min-width: 0; }
.note-kpi .kpi-lab b { display: block; font-size: 0.8rem; line-height: 1.5; color: var(--lb-ink-2); }
.note-kpi .kpi-sub { display: block; font-size: 0.76rem; line-height: 1.55; color: var(--lb-ink-3); }

.note-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.note-toc li { margin: 0; border-top: 1px solid var(--lb-line); }
.note-toc a { display: block; padding: 0.55rem 0 0.55rem 0.9rem; border-left: 4px solid transparent; font-size: 0.84rem; line-height: 1.55; font-weight: 500; color: var(--lb-ink-2); text-decoration: none; font-feature-settings: "palt"; }
.note-toc a:hover { color: var(--lb-ink); background: var(--lb-wash); }
.note-toc a[aria-current="true"] { border-left-color: var(--lb-yellow); color: var(--lb-ink); font-weight: 800; }
.note-toc__cap { display: flex; align-items: baseline; gap: 0.6rem; margin: 0; padding: 0.7rem 0 0.6rem; font-size: 0.78rem; font-weight: 700; color: var(--lb-ink-3); }
.note-toc__cap b { font-family: var(--lb-cond); font-size: 0.85rem; letter-spacing: 0.16em; color: var(--lb-ink); }
.note-toc--rail { border-top: 2px solid var(--lb-ink); }
details.note-toc--sp { display: none; margin: 0 0 1.5rem; border: 1.5px solid var(--lb-ink); }
details.note-toc--sp summary { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.65rem 0.9rem; cursor: pointer; list-style: none; font-size: 0.82rem; font-weight: 700; color: var(--lb-ink-2); }
details.note-toc--sp summary::-webkit-details-marker { display: none; }
details.note-toc--sp summary b { font-family: var(--lb-cond); font-size: 0.85rem; letter-spacing: 0.16em; color: var(--lb-ink); margin-right: 0.5rem; }
details.note-toc--sp summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--lb-ink); border-bottom: 2px solid var(--lb-ink); transform: rotate(45deg) translate(-2px, -2px); flex: none; }
details.note-toc--sp[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
details.note-toc--sp ol { padding: 0 0.9rem 0.3rem; }

.note-wrap--rail { max-width: 1096px; }
.note-head { max-width: 860px; }
.note-cols { display: grid; grid-template-columns: minmax(0, 720px) 264px; gap: 4rem; align-items: start; }
.note-body { min-width: 0; }
.note-rail { position: sticky; top: 1.25rem; display: flex; flex-direction: column; gap: 1.75rem; }
.note-rail .bench { padding: 0.9rem 1.1rem 0.5rem; }
@media (max-width: 1079px) {
  .note-wrap--rail { max-width: 760px; }
  .note-cols { display: block; }
  .note-rail { display: none; }
  details.note-toc--sp { display: block; }
}

.tbl { overflow-x: auto; margin: 0.4rem 0 1.4rem; border-top: 2px solid var(--lb-ink); border-bottom: 1px solid var(--lb-line); background: #fff; }
.tbl table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.tbl th, .tbl td { padding: 0.6rem 0.85rem; border-bottom: 1px solid var(--lb-line); text-align: right; white-space: nowrap; }
.tbl th { background: var(--lb-wash); color: var(--lb-ink-2); font-weight: 700; font-size: 0.8rem; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl td.txt, .tbl th.txt { text-align: left; white-space: normal; min-width: 12em; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { font-variant-numeric: tabular-nums; }
.tbl td code { white-space: nowrap; }
.tbl tr.hl td { background: #FFF6CC; font-weight: 700; color: var(--lb-ink); }
.tbl-cap { font-size: 0.8rem; color: var(--lb-ink-3); margin: -0.9rem 0 1.4rem; line-height: 1.6; }

.callout { border-left: 4px solid var(--lb-ink); background: var(--lb-wash); padding: 0.85rem 1.1rem; margin: 1.2rem 0; }
.callout p { margin-bottom: 0.4rem; }
.callout.warn { border-left-color: var(--lb-wait); background: #FFF7EE; }
.callout .label { font-weight: 700; font-size: 0.85rem; color: var(--lb-ink); margin-bottom: 0.3rem; }
.callout.warn .label { color: #8A3A07; }

.note-wrap pre {
  background: var(--lb-band); color: #E8EEEF; padding: 0.9rem 1.1rem; overflow-x: auto;
  font-size: 0.82rem; line-height: 1.6; margin: 0.4rem 0 1.3rem;
}
.note-wrap code { font-family: var(--lb-mono); font-size: 0.88em; }
.note-wrap p code, .note-wrap li code, .note-wrap td code { background: var(--lb-wash); padding: 0.08em 0.35em; color: var(--lb-ink); border: 1px solid var(--lb-line); }

.note-fig { margin: 0.6rem 0 1.5rem; }
.note-fig img { width: 100%; height: auto; border: 1px solid var(--lb-line); }
.note-fig figcaption { font-size: 0.8rem; color: var(--lb-ink-3); margin-top: 0.4rem; line-height: 1.6; }

.sources { font-size: 0.85rem; }
.sources li { word-break: break-all; }
.disclaimer { font-size: 0.8rem; color: var(--lb-ink-3); line-height: 1.75; border-top: 1px solid var(--lb-line); padding-top: 1rem; margin-top: 2rem; }
.note-more { margin-top: 2rem; font-size: 0.9rem; }
.note-more a { font-weight: 700; }

@media (max-width: 600px) {
  .note-wrap { padding: 1.6rem 1rem 3rem; }
  .note-wrap h1 { font-size: 1.55rem; line-height: 1.45; }
  .note-wrap h1 .sub { font-size: 0.95rem; }
  .note-wrap h2 { font-size: 1.25rem; }
  .note-key { padding: 1.05rem 1rem 0.5rem; }
  .note-kpi { grid-template-columns: minmax(0, 1fr); }
  .note-kpi > div { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.9rem; padding: 0.75rem 0; border-left: 0; border-top: 1px solid var(--lb-line); }
  .note-kpi > div:first-child { border-top: 0; }
  .note-kpi .fig-num { font-size: 2rem; }
  .note-kpi .kpi-lab { margin-top: 0; }
  .tbl table { font-size: 0.82rem; }
}
