/* Company page */
#subnav-slot { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top)); z-index: 25; }
#subnav-slot:empty { display: none; }
.subnav {
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 0 max(24px, calc((100% - var(--maxw)) / 2 + 24px));
}
.subnav::-webkit-scrollbar { display: none; }
.subnav button {
  flex: none; height: var(--subnav-h); padding: 0 16px; border: 0; background: none; font-size: 15px;
  color: var(--ink-2); border-bottom: 3px solid transparent; white-space: nowrap;
}
.subnav button:hover { color: var(--brand); }
.subnav button.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 500; }
.section { scroll-margin-top: calc(var(--header-h) + var(--subnav-h) + 16px); }

/* Top card */
.co-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.co-title { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.co-avatar { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 22px; color: #fff; flex: none; }
.co-title h1 { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; }
.co-quote { display: flex; flex-direction: column; }
.co-quote .p { font-size: 26px; font-weight: 600; }
.co-quote .chg { font-size: 15px; font-weight: 600; margin-left: 8px; }
.co-quote .when { font-size: 13px; color: var(--ink-3); }
.co-links { display: flex; gap: 28px; flex-wrap: wrap; margin: 14px 0 26px 70px; font-size: 17px; }
.co-links a, .co-links span { color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.co-links a.web { color: var(--brand); }
.co-links svg { width: 16px; height: 16px; color: var(--brand); }
.co-body { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 32px; }

/* Ratio box */
.ratio-box { border: 1px solid var(--line-strong); border-radius: var(--r); padding: 18px 20px 20px; align-self: start; }
.ratio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 14px; }
.ratio-grid .r { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 12px; border-radius: var(--r-sm); font-size: 15px; }
.ratio-grid .r.shade { background: var(--surface-2); }
.ratio-grid .k { color: var(--ink-2); line-height: 1.3; }
.ratio-grid .v { font-weight: 600; white-space: nowrap; }
.ratio-grid .v small { font-weight: 400; color: var(--ink-3); margin-left: 2px; }
.ratio-add { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.ratio-add label { display: block; font-weight: 500; margin-bottom: 8px; }
.ratio-add .search-input { width: min(420px, 100%); position: relative; }

/* About / key points */
.about h3 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: var(--caps); margin-bottom: 10px; }
.about p { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.about .kp { margin-top: 22px; }
.about .kp h4 { font-size: 15px; margin-bottom: 6px; }
.band { position: relative; height: 8px; border-radius: 999px; margin: 30px 0 30px;
  background: linear-gradient(90deg, var(--band-cheap) 0%, var(--band-fair) 50%, var(--band-rich) 100%); }
.band .mark { position: absolute; top: -7px; width: 3px; height: 22px; background: var(--ink); border-radius: 2px; transform: translateX(-50%); }
.band .mark-label { position: absolute; top: -26px; transform: translateX(-50%); font-size: 12px; font-weight: 600; white-space: nowrap; }
.band .tick { position: absolute; top: 14px; transform: translateX(-50%); font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.band .tick.l { transform: none; left: 0 !important; }
.band .tick.r { transform: none; right: 0; left: auto !important; }
.val-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.val-box { background: var(--surface-2); border-radius: var(--r-sm); padding: 9px 11px; }
.val-box .k { font-size: 12px; color: var(--ink-3); }
.val-box .v { font-size: 17px; font-weight: 700; }

/* Analysis (pros / cons) */
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pc .box { border-radius: var(--r); padding: 18px 20px; }
.pc .box.pros { background: #EAF6EF; background: color-mix(in srgb, var(--up) 9%, var(--surface)); }
.pc .box.cons { background: #FBEDED; background: color-mix(in srgb, var(--down) 8%, var(--surface)); }
.pc h3 { text-transform: uppercase; letter-spacing: var(--caps); font-size: 14px; margin-bottom: 10px; }
.pc .pros h3 { color: var(--up); }
.pc .cons h3 { color: var(--down); }
.pc ul { margin: 0; padding-left: 18px; }
.pc li { margin-bottom: 8px; font-size: 15px; }

/* Growth boxes under P&L */
.growth { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.growth .g { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.growth h4 { font-size: 14px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.growth .row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 6px 14px; }

.filings li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
.filings ul { list-style: none; margin: 0; padding: 0; }
.filings .d { color: var(--ink-3); font-size: 13.5px; min-width: 96px; }
.warn { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--r); padding: 12px 14px; font-size: 13.5px; margin-top: 20px; }
.warn ul { margin: 4px 0 0; padding-left: 18px; }

@media (max-width: 1000px) {
  .co-body { grid-template-columns: 1fr; }
  .growth { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .subnav { padding: 0 8px; }
  .subnav button { padding: 0 11px; font-size: 14px; }
  .co-title h1 { font-size: 26px; }
  .co-avatar { width: 40px; height: 40px; font-size: 18px; }
  .co-links { margin: 10px 0 18px; gap: 16px; font-size: 15px; }
  .co-top .btn-row { width: 100%; flex-wrap: nowrap; }
  .co-top .btn-row .btn { flex: 1; padding: 0 10px; font-size: 12px; }
  .ratio-grid { grid-template-columns: 1fr 1fr; column-gap: 8px; }
  .ratio-grid .r { padding: 9px 10px; font-size: 14px; flex-direction: column; gap: 0; }
  .ratio-grid .r.shade { background: none; }
  .ratio-grid .r:nth-child(4n+1), .ratio-grid .r:nth-child(4n+2) { background: var(--surface-2); }
  .pc { grid-template-columns: 1fr; }
  .val-grid { gap: 6px; }
}
