/* ==========================================================================
   corp-bond.css — tata letak halaman profil penerbit (Corporate Bonds)
   --------------------------------------------------------------------------
   Dipakai oleh setiap berkas chapters/convert/<KODE>.html yang dibuat dari
   chapters/convert/template_corp_bond.html. Dimuat SESUDAH assets/css/site.css
   karena memakai variabel dari sana (--ch, --line, --ink-soft, --radius, ...).

   Sebelumnya aturan ini disalin ke dalam setiap halaman hasil konversi; kini
   satu berkas dipakai bersama, jadi ~150 baris CSS tidak lagi digandakan
   ratusan kali dan pembaruan gaya cukup dilakukan di satu tempat.
   ========================================================================== */

/* -------------------------------------- kerangka halaman & navigasi lompat */
.bnd-inner { max-width: 100%; }
.bnd-jump { position: sticky; top: var(--header-h); z-index: 20; background: #fff;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 12px var(--gutter); margin: 0 calc(var(--gutter) * -1) 24px;
  border-bottom: 1px solid var(--line); box-shadow: 0 6px 14px -8px rgba(21,40,70,.25); }
.bnd-jump > span { font-size: 12.5px; color: var(--ink-muted); margin-right: 4px; }
.bnd-jump a { display: inline-flex; align-items: center; height: 28px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 13px; font-weight: 600; color: var(--brand); transition: all .15s ease; }
.bnd-jump a:hover { background: var(--blue-light); border-color: var(--blue-border);
  color: var(--blue-dark); text-decoration: none; transform: translateY(-1px); }

.bond { margin: 0 0 46px; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.bond__head { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 26px; align-items: center; padding: 18px 22px;
  background: linear-gradient(180deg, var(--surface-alt), #fff);
  border-bottom: 1px solid var(--line); border-top: 3px solid var(--ch); }
.bond__head--solo { grid-template-columns: 1fr; }
.bond__code { font-family: var(--font-title); font-size: 24px; line-height: 1.1;
  margin: 0; color: var(--ch); letter-spacing: .01em; border-top: 0; padding-top: 0;
  scroll-margin-top: calc(var(--header-h) + 76px); }
.bond__isin { margin: 3px 0 0; font-size: 13px; color: var(--ink-muted); }
.bond__isin span { font-family: ui-monospace, Consolas, monospace; color: var(--ink-soft); }
.bond__body { padding: 22px; }
.bond__charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin-bottom: 24px; }
.bond__charts .figure-block { margin: 0; }
.bond__charts .figure-block__frame { background: #fff; padding: 6px 4px 2px; }
.sub { font-size: 15px; margin: 26px 0 10px; color: var(--ink);
  border-left: 3px solid var(--ch); padding-left: 9px; }

/* garis waktu pencatatan sampai jatuh tempo */
.tl { font-size: 11px; color: var(--ink-muted); }
.tl__ends { display: flex; justify-content: space-between; font-size: 10.5px; margin-bottom: 4px; }
.tl__bar { position: relative; height: 9px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, #FFC000 0 3px, #fff 3px 4.6px); overflow: hidden; }
.tl__pre { position: absolute; left: 0; top: 0; bottom: 0;
  background: repeating-linear-gradient(90deg, #D9D9D9 0 3px, #fff 3px 4.6px); }
.tl__ticks { position: relative; height: 15px; margin-top: 3px; }
.tl__tick { position: absolute; transform: translateX(-50%); white-space: nowrap; font-size: 10.5px; }

/* grafik SVG */
.ch { display: block; width: 100%; height: auto; font-family: var(--font-sans); }
.ch-plot { fill: #F1F1F1; }
.ch-grid { stroke: #D9D9D9; stroke-width: .3; }
.ch-box { fill: none; stroke: #808080; stroke-width: .4; }
.ch-ax { font-size: 6.2px; fill: var(--ink-soft); }
.ch-ax--name { font-size: 7px; }
.ch-title { font-size: 7.4px; font-weight: 700; fill: var(--ink); }
.ch-unit { font-size: 5.2px; fill: var(--ink-muted); }
.ch-seg { font-size: 5.6px; fill: #fff; }
.ch-pill rect { fill: #FFFFCC; stroke: #B3B300; stroke-width: .3; }
.ch-pill text { font-size: 5.6px; fill: #4a4a2a; }

.ch-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px;
  list-style: none; margin: 8px 0 0; padding: 0; font-size: 12px; color: var(--ink-soft); }
.ch-legend--wide { justify-content: flex-start; gap: 6px 18px; margin-top: 12px; }
.ch-legend li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.ch-legend i { width: 14px; height: 8px; border-radius: 2px; flex: none; }
.ch-legend i.dot { width: 8px; height: 8px; border-radius: 50%; }
.ch-legend i.pill { width: 18px; height: 10px; border-radius: 5px;
  background: #FFFFCC; border: 1px solid #B3B300; }

.tbl-corner { line-height: 1.25; }
.table-block td { font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 900px) {
  .bond__head { grid-template-columns: 1fr; gap: 16px; }
  .bond__body { padding: 16px; }
}
@media print {
  .bnd-jump, .site-header__actions, .sponsors, .layout__nav, .toc-mobile { display: none; }
  .layout { display: block; }
  .bond { break-inside: avoid; box-shadow: none; }
}

.ch--series { max-height: 260px; }
.ch--pie { max-height: 240px; }

/* identitas penerbit */
.ident { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 10px; margin: 0 0 22px; }
.ident__row { background: #fff; padding: 11px 14px; border: 1px solid var(--line);
  border-left: 3px solid var(--ch); border-radius: 8px; }
.ident dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-muted); }
.ident dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); font-size: 14.5px;
  overflow-wrap: anywhere; }
.prose p { margin: 0 0 12px; color: var(--ink-soft); }

/* pemegang saham */
.pie-row { display: grid; grid-template-columns: minmax(170px, 240px) minmax(0, 1fr);
  gap: 26px; align-items: center; margin-bottom: 22px; }
.pie-figure { margin: 0; }
.pie-figure .figure-block__frame { background: #fff; padding: 10px; }
.ch-pie-lab { font-size: 7px; font-weight: 700; fill: #fff; }
.pie-legend { list-style: none; margin: 0; padding: 0; }
.pie-legend li { display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--line-soft); font-size: 14px; margin: 0; }
.pie-legend li:last-child { border-bottom: 0; }
.pie-legend i { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.pie-legend__lab { flex: 1; color: var(--ink-soft); }
.pie-legend__val { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }

/* dewan */
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.board { margin: 0; padding-left: 22px; }
.board li { padding: 4px 0; color: var(--ink-soft); }

/* SWOT */
.swot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.swot__cell { border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px 6px; background: var(--surface-alt); border-top: 3px solid var(--c1); }
.swot__cell--0 { border-top-color: #1F7A4D; }
.swot__cell--1 { border-top-color: #B5541F; }
.swot__cell--2 { border-top-color: #1F4E8C; }
.swot__cell--3 { border-top-color: #90172A; }
.swot__head { margin: 0 0 6px; font-size: 12.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink); border-top: 0; padding-top: 0; }
.swot ul { margin: 0 0 8px; padding-left: 18px; }
.swot li { padding: 3px 0; color: var(--ink-soft); font-size: 14px; }
.swot + .block-note { margin-top: 16px; }

/* pita judul bagian, seperti pada berkas sumber */
.hl-band { margin: 0 0 22px; padding: 9px 18px; border-radius: var(--radius);
  background: linear-gradient(90deg, var(--brand), var(--brand-mid));
  color: #fff; font-family: var(--font-title); font-size: 20px; letter-spacing: .04em;
  border-top: 0; padding-top: 9px;
  scroll-margin-top: calc(var(--header-h) + 76px); }

/* tabel obligasi beredar */
.tbl-bonds { font-size: 12px; min-width: 900px; table-layout: fixed; }
.tbl-bonds col.c-no { width: 26px; }
.tbl-bonds col.c-code { width: 112px; }
.tbl-bonds col.c-name { width: 132px; }
.tbl-bonds col.c-num { width: 92px; }
.tbl-bonds col.c-date { width: 84px; }
.tbl-bonds col.c-term { width: 46px; }
.tbl-bonds col.c-cpn { width: 80px; }
.tbl-bonds col.c-pay { width: 90px; }
.tbl-bonds col.c-trustee { width: 90px; }
.tbl-bonds col.c-rating { width: 72px; }
.tbl-bonds th, .tbl-bonds td { padding: 8px 10px; vertical-align: top; white-space: normal; }
.tbl-bonds thead th { text-align: center; }
.tbl-bonds tbody th[scope="row"] { white-space: nowrap; }

@media (max-width: 900px) {
  .pie-row { grid-template-columns: 1fr; gap: 14px; }
  .swot { grid-template-columns: 1fr; }
}
