/* REIT detail/research pages render cards flat — no hover lift, shadow, or scale.
   Scoped to the page wrappers (these pages are this file's only consumers) so we
   no longer need the site-wide `*{transition:none}` / `*:hover` kill switches or
   the per-frame JS shadow-suppression loop that used to live in reit_common.js. */
.reit-detail-page .card,
.reit-detail-page .card:hover,
.reit-detail-page .card:focus,
.reit-detail-page .card:focus-within {
    box-shadow: none !important;
    transform: none !important;
}

.reit-detail-page .card:hover .fa-3x {
    transform: none !important;
}

.reit-detail-page .btn:hover {
    transform: none !important;
    box-shadow: none !important;
}

.btn.zoom-btn,
.btn.zoom-btn:hover,
.btn.zoom-btn:focus,
.btn.zoom-btn:active,
.btn.zoom-btn:visited,
.btn-outline-secondary.zoom-btn,
.btn-outline-secondary.zoom-btn:hover,
.btn-outline-secondary.zoom-btn:focus,
.btn-outline-secondary.zoom-btn:active,
.btn-outline-secondary.zoom-btn:visited,
.btn-primary.zoom-btn,
.btn-primary.zoom-btn:hover,
.btn-primary.zoom-btn:focus,
.btn-primary.zoom-btn:active,
.btn-primary.zoom-btn:visited {
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    color: var(--ink-muted) !important;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
}

.btn.zoom-btn.active,
.btn-outline-secondary.zoom-btn.active,
.btn-primary.zoom-btn.active {
    text-decoration: underline !important;
    color: var(--ink-muted) !important;
    background-color: transparent !important;
}

.tab-btn {
    all: unset !important;
    display: inline-block !important;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--ink-strong) !important;
    padding: 8px 16px !important;
    margin: 0 4px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: normal !important;
    text-decoration: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    font-family: inherit !important;
    line-height: 1 !important;
}

.tab-btn:hover,
.tab-btn:focus,
.tab-btn:active,
.tab-btn:visited {
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--ink-strong) !important;
}

.tab-btn.active {
    text-decoration: underline !important;
    text-underline-offset: 7px !important;
}

* {
    box-sizing: border-box !important;
}

footer.text-light {
    width: 100% !important;
    margin-top: 3rem !important;
}

.reit-detail-identity-header {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 18px;
    padding: 28px 32px 24px;
    background: var(--surface-strong);
}

.reit-detail-identity-logo {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    background: var(--surface-strong);
    overflow: hidden;
}

.reit-detail-identity-logo img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Fit/backdrop driven by reit_meta.logo_fit / logo_variant / logo_class,
   same fields + same .reit-logo-fit-*/.reit-logo-wrap-* classes as the
   screener (static/css/style.css) -- reused here via compound selectors
   (".reit-detail-identity-logo.reit-logo-wrap-dark" etc.) so they win over
   this component's own background rule regardless of stylesheet load order.
   Without a logo_fit, the img still needs its own explicit
   .reit-logo-fit-cover class (see reit_detail_header_tabs.html's
   `|default:'cover'`) since object-fit is no longer hardcoded above. */
.reit-detail-identity-logo.reit-logo-wrap-dark {
    background: #111111;
    border-color: rgba(17, 17, 17, 0.16);
}

.reit-detail-identity-logo.reit-logo-wrap-federalrealty {
    background: #262626;
    border-color: rgba(38, 38, 38, 0.18);
}

.reit-detail-identity-logo.reit-logo-wrap-publicstorage {
    background: #ff6e21;
    border-color: rgba(255, 110, 33, 0.18);
}

.reit-detail-identity-copy {
    min-width: 0;
    padding-top: 2px;
}

.reit-detail-identity-copy h1 {
    margin: 0 0 6px;
    color: var(--ink-strong);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
}

.reit-detail-identity-copy p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.reit-detail-identity-actions {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.reit-detail-identity-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.reit-detail-primary-action {
    background: var(--brand);
    color: var(--surface-strong) !important;
}

.reit-detail-primary-action:hover,
.reit-detail-primary-action:focus {
    background: var(--brand-deep);
    color: var(--surface-strong) !important;
}

.reit-detail-map-action {
    border: 1px solid var(--border-soft);
    background: var(--surface-tint);
    color: var(--ink-strong) !important;
}

.reit-detail-map-action:hover,
.reit-detail-map-action:focus {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-deep) !important;
}

.reit-detail-map-action img {
    width: 16px;
    height: 16px;
    display: block;
}

/* 발행사 상태 고지 -- 탭 스트립 바로 위, 어느 탭을 보든 먼저 읽히는 자리.
   경고색(amber) 계열을 쓰되 배경은 tint 한 겹만: 이건 "판단을 보류한다"는 표시이지
   "위험하다"는 표시가 아니라서, 붉은 계열이나 강한 배지는 과한 신호가 된다.
   밀도는 나머지 상세 페이지와 같은 수준으로 유지한다 -- 항목당 한 줄, 링크는 밑줄 없이
   본문색, 날짜는 tabular-nums로 정렬. */
.issuer-status-notice {
    margin: 0;
    padding: 14px 28px 16px;
    background: var(--warning-soft);
    border-bottom: 1px solid var(--border-soft);
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--ink);
}

.issuer-status-line {
    margin: 0 0 6px;
}

.issuer-status-key {
    display: inline-block;
    min-width: 56px;
    font-weight: 600;
    color: var(--ink-muted);
}

.issuer-status-events {
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.issuer-status-events li {
    display: flex;
    gap: 8px;
    align-items: baseline;
    flex-wrap: wrap;
}

.issuer-status-date {
    font-variant-numeric: tabular-nums;
    color: var(--ink-muted);
    min-width: 78px;
}

.issuer-status-events a,
.issuer-status-src {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--border-soft);
}

.issuer-status-events a:hover,
.issuer-status-src:hover {
    color: var(--brand-deep);
    border-bottom-color: currentColor;
}

.issuer-status-src {
    margin-left: 6px;
    color: var(--ink-muted);
}

.issuer-status-repeat {
    font-size: 11px;
    color: var(--ink-muted);
}

.issuer-status-notice > :last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .issuer-status-notice {
        padding: 12px 16px 14px;
    }
    .issuer-status-events li {
        gap: 4px;
    }
}

.reit-detail-page .tab-container {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 28px !important;
    display: flex !important;
    gap: 2px !important;
    overflow-x: auto !important;
    border-bottom: 1px solid var(--border-soft) !important;
    background: var(--surface-strong) !important;
}

.reit-detail-page .tab-container .tab-btn {
    margin: 0 !important;
    padding: 16px 12px 14px !important;
    color: var(--ink-muted) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    border-bottom: 2px solid transparent !important;
}

.reit-detail-page .tab-container .tab-btn.active {
    color: var(--brand-deep) !important;
    border-bottom-color: var(--brand) !important;
    text-decoration: none !important;
}

.reit-detail-page .reit-detail-content-section,
.reit-detail-page #governanceSection,
.reit-detail-page #executivesSection {
    max-width: none !important;
    margin: 0 !important;
    padding: 28px 32px !important;
}

.reit-detail-section-title {
    color: var(--ink-strong) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    margin: 0 0 1rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid var(--border-soft) !important;
}

.reit-detail-section-copy {
    margin: 0 0 14px !important;
    color: var(--ink-muted) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.reit-detail-page .reit-detail-content-section .col-12 {
    padding: 0 !important;
}

.reit-detail-page #assetSection .reit-detail-section-title:not(:first-child) {
    margin-top: 24px !important;
}

/* 재무정보 tab: the 미수이자 block sits under the 재무지표 panel as its own flat
   section -- same 24px section rhythm as the asset tab's stacked titles. */
.reit-detail-page .accrued-interest-block .reit-detail-section-title {
    margin-top: 24px !important;
}

.reit-detail-page #assetSection .reit-detail-section-copy {
    margin-bottom: 7px !important;
}

.reit-detail-page #valuationSection {
    padding: 28px 32px !important;
}

.reit-detail-page #chartSection {
    max-width: none !important;
    padding: 28px 32px !important;
}

/* CapIQ-style left sidebar nav for every REIT detail page (replaces the old
   horizontal top tab bar). Applies to every `.reit-detail-page` wrapper —
   see `templates/partials/reit_detail_header_tabs.html`, included by all
   REIT detail templates. */
/* `main.container` is `flex: 1 0 auto` (sticky-footer pattern, site-wide) and
   grows past our short content on the 개요 tab, leaving a beige gap between
   the page and the footer. Make main a flex container just for this pilot
   page so the white page itself can stretch to fill that leftover space. */
main.container:has(> .reit-detail-page) {
    display: flex !important;
    margin-top: 0 !important;
    padding-top: 82px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* footer.text-light carries a 48px margin-top (mt-5) that lets body's beige
   background show through in the gap above it. Zero it for this pilot page
   only so the white page runs straight into the footer with no seam. */
body:has(.reit-detail-page) footer.text-light {
    margin-top: 0 !important;
}

.reit-detail-page {
    display: grid !important;
    grid-template-columns: 220px 1fr !important;
    /* Row 3 (content) absorbs any leftover height from the outer flex-stretch
       below — without this, the sidebar (which spans all 3 rows) only
       stretches to the grid's own natural content height, stopping short of
       the page's actual (flex-grown) height and leaving its border-right
       divider ending partway down a taller page. */
    grid-template-rows: auto auto auto minmax(0, 1fr) !important;
    align-items: start !important;
    align-content: start !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    background: var(--surface-strong) !important;
    max-width: none !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.reit-detail-page .reit-detail-backlink {
    grid-column: 2 !important;
    grid-row: 1 !important;
    max-width: none !important;
    margin: 24px 0 14px 0 !important;
    padding-left: 32px !important;
    background: var(--surface-strong) !important;
}

.reit-detail-page .reit-detail-identity-header {
    grid-column: 2 !important;
    grid-row: 2 !important;
}

/* Row 3, above every tab's content and below the identity header, so the notice is
   read before any tab is chosen and does not move when tabs are switched. Renders
   nothing at all for a REIT with no flag, and the row collapses to zero height. */
.reit-detail-page .issuer-status-notice {
    grid-column: 2 !important;
    grid-row: 3 !important;
}

.reit-detail-page .tab-container {
    grid-column: 1 !important;
    grid-row: 1 / -1 !important;
    align-self: stretch !important;
    flex-direction: column !important;
    align-items: stretch !important;
    overflow: visible !important;
    border-bottom: none !important;
    border-right: 1px solid var(--border-soft) !important;
    padding: 16px 12px !important;
}

.reit-detail-page .tab-container .tab-btn {
    padding: 10px 12px !important;
    border-bottom: none !important;
    border-left: 3px solid transparent !important;
    border-radius: 0 !important;
    text-align: left !important;
    white-space: normal !important;
}

.reit-detail-page .tab-container .tab-btn.active {
    background: var(--brand-soft) !important;
    border-bottom-color: transparent !important;
    border-left-color: var(--brand) !important;
    color: var(--brand-deep) !important;
}

.reit-detail-page .tab-container #governanceTabBtn,
.reit-detail-page .tab-container #ownershipTabBtn {
    display: none !important;
}

.reit-detail-page #chartSection {
    /* stock_chart.js sets an inline `margin: 0 auto` (leftover from the old
       720px-capped centered layout) — on a grid item, auto margins force
       shrink-to-fit + centering instead of stretching to the column width,
       even with max-width already overridden to none. Zero it so the chart
       fills the available content width like every other section. */
    margin: 0 !important;
}

.reit-detail-page .reit-detail-content-section,
.reit-detail-page #valuationSection,
.reit-detail-page #governanceSection,
.reit-detail-page #executivesSection,
.reit-detail-page #chartSection {
    grid-column: 2 !important;
    grid-row: 4 !important;
}

/* ── 임원 현황 (executives section) ──────────────────────────── */

.exec-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink-strong);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-soft);
}

.exec-summary-bar {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    padding: 0.625rem 0.875rem;
    background: var(--surface-muted);
    border-radius: 6px;
}

.exec-summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.exec-summary-label {
    font-size: 0.6875rem;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.exec-summary-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink-strong);
}

.exec-subsection {
    margin-bottom: 1.5rem;
}

.exec-subsection-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.exec-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.4rem;
    border-radius: 3px;
    line-height: 1.4;
    white-space: nowrap;
}

.exec-badge--corporate {
    background: var(--surface-muted);
    color: var(--ink-muted);
    border: 1px solid var(--border-soft);
}

.exec-badge--representative {
    background: var(--brand-deep);
    color: #fff;
}

.exec-badge--supervisory {
    background: var(--brand-soft);
    color: var(--brand-deep);
}

.exec-badge--audit {
    background: var(--warning-soft);
    color: var(--warning);
}

.exec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.exec-table thead th {
    background: var(--table-header-bg);
    color: var(--ink-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 0.75rem;
    height: var(--table-header-height);
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
    white-space: nowrap;
}

.exec-table > tbody > tr > td {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--border-soft);
    color: var(--ink-strong);
    vertical-align: middle;
}

.exec-row--expandable {
    cursor: pointer;
}

.exec-row--expandable:hover td {
    background: var(--surface-muted);
}

.exec-name-cell-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.exec-name-cell .chevron-icon {
    color: var(--ink-muted);
}

.exec-name-cell .chevron-icon svg {
    transform: rotate(-90deg);
}

.exec-row--expanded .exec-name-cell .chevron-icon svg {
    transform: rotate(0deg);
}

.exec-role-cell {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    align-items: center;
}

.exec-term-cell,
.exec-tenure-cell {
    color: var(--ink-muted);
    font-size: 0.8125rem;
    white-space: nowrap;
}

.exec-comp-cell {
    color: var(--ink-strong);
    font-size: 0.8125rem;
    white-space: nowrap;
}

.exec-career-row > td {
    padding: 0 !important;
    border-bottom: 1px solid var(--border-soft);
}

.exec-career-panel {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: var(--surface-tint);
}

.exec-career-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.exec-career-table {
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.exec-career-table td {
    padding: 0.4rem 0;
    border: none;
    vertical-align: top;
}

.exec-career-period {
    color: var(--ink-muted);
    min-width: 140px;
    padding-right: 1rem !important;
    white-space: nowrap;
}

.exec-career-company {
    color: var(--ink-strong);
    font-weight: 500;
}

.exec-career-company-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.exec-career-current .exec-career-company {
    color: var(--brand-deep);
}

.exec-career-now {
    font-size: 0.625rem;
    font-weight: 700;
    background: var(--brand-soft);
    color: var(--brand-deep);
    border-radius: 3px;
    padding: 0.1rem 0.35rem;
}

/* SEC-sourced rows only (Realty Income / Prologis, is_independent/is_neo/committees) —
   always empty markup on a DART REIT, since has_committees/is_neo/is_independent all
   gate false there. */
.exec-committees-cell {
    /* !important: .exec-table > tbody > tr > td (higher specificity) already
       sets color/vertical-align, same reason .exec-career-period below needs it. */
    color: var(--ink-muted) !important;
    font-size: 0.8125rem;
    vertical-align: top !important;
}

.exec-role-note {
    font-size: 0.6875rem;
    color: var(--ink-muted);
    white-space: nowrap;
}

/* 보수 내역 (compensation_breakdown) — second compact block inside the existing
   .exec-career-panel, beside 주요 경력. Only present when compensation_breakdown is a
   non-empty dict, which DART rows never populate (always {}). */
.exec-comp-breakdown--divided {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-soft);
}

.exec-comp-breakdown-table {
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.exec-comp-breakdown-table td {
    padding: 0.3rem 0;
    border: none;
}

.exec-comp-breakdown-label {
    color: var(--ink-muted);
    padding-right: 1.25rem !important;
    white-space: nowrap;
}

.exec-comp-breakdown-value {
    color: var(--ink-strong);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.exec-comp-breakdown-total td {
    border-top: 1px solid var(--border-soft);
    font-weight: 700;
    padding-top: 0.5rem;
}

/* 부채 만기 테이블 — 회사채 "자세히 보기" 행 확장 (Row disclosure chevron 재사용). */
.debt-detail-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.debt-detail-toggle .chevron-icon {
    color: var(--ink-muted);
}

.debt-detail-toggle .chevron-icon svg {
    transform: rotate(-90deg);
}

.debt-detail-toggle[aria-expanded="true"] .chevron-icon svg {
    transform: rotate(0deg);
}

.debt-detail-row td {
    padding: 0 !important;
    border-bottom: 1px solid var(--border-soft);
}

.debt-detail-panel {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: var(--surface-tint);
}

.debt-detail-line {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8125rem;
    margin: 0;
}

.debt-detail-line + .debt-detail-line {
    margin-top: 0.3rem;
}

.debt-detail-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-width: 64px;
}

.debt-detail-value {
    color: var(--ink-strong);
    font-weight: 500;
}

.exec-disclaimer {
    font-size: 0.75rem;
    color: var(--ink-muted);
    margin-top: 1rem;
}

.exec-empty {
    color: var(--ink-muted);
    font-size: 0.9rem;
}

.reit-detail-legacy-card {
    border: 1px solid var(--border-soft) !important;
    box-shadow: none !important;
}

.reit-detail-legacy-export {
    margin-bottom: 12px !important;
}

.reit-detail-legacy-card-title {
    margin-bottom: 15px !important;
    font-size: 16px !important;
}

.reit-detail-legacy-indent {
    padding-left: 20px !important;
}

.reit-detail-comparison-title {
    margin-bottom: 15px !important;
    font-size: 18px !important;
}

.reit-detail-total-row {
    border-top: 2px solid var(--ink-strong) !important;
    font-weight: 700 !important;
}

.reit-detail-section-title-compact {
    margin: 0 !important;
}

.reit-detail-valuation-toolbar {
    padding: 15px 0 !important;
}

.reit-detail-unavailable-value {
    margin-bottom: 10px !important;
    color: var(--ink-muted) !important;
    font-size: 28px !important;
    font-weight: 700 !important;
}

.reit-detail-unavailable-copy {
    margin-bottom: 0 !important;
    font-size: 14px !important;
}

.reit-detail-sensitivity-delta {
    font-size: 11px !important;
}

.reit-detail-sensitivity-current {
    background-color: var(--surface-tint) !important;
    font-weight: 600 !important;
}

.reit-detail-metric-label {
    font-size: 13px !important;
}

.reit-detail-metric-value {
    margin-bottom: 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

.reit-detail-market-status {
    margin-bottom: 5px !important;
    color: var(--warning) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

.reit-detail-return-value {
    margin-bottom: 5px !important;
    color: var(--market-down) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
}

.reit-detail-valuation-divider {
    border-top: 1px solid var(--border-soft) !important;
    padding-top: 15px !important;
}

.reit-detail-valuation-highlight-row {
    margin: 0 -15px !important;
    padding: 15px !important;
    border-top: 1px solid var(--border-soft) !important;
    border-radius: 4px !important;
    background-color: var(--surface-tint) !important;
}

@media (max-width: 575.98px) {
    .reit-detail-identity-header {
        gap: 12px;
        padding: 22px 16px 20px;
    }

    .reit-detail-identity-logo {
        width: 46px;
        height: 46px;
    }

    .reit-detail-identity-copy h1 {
        font-size: 26px;
    }

    .reit-detail-identity-actions {
        margin-left: 0;
        width: 100%;
    }

    .reit-detail-identity-actions a {
        width: 100%;
        justify-content: center;
    }

    .reit-detail-page .tab-container {
        padding: 0 14px !important;
    }

    .reit-detail-page .reit-detail-content-section,
    .reit-detail-page #valuationSection,
    .reit-detail-page #governanceSection,
    .reit-detail-page #executivesSection,
    .reit-detail-page #chartSection {
        padding: 22px 16px !important;
    }
}

/* ---------------------------------------------------------------------------
   공시자료 tab. Korean REITs: embedded DART filing list (SearchCompanyIR3_M
   iframe). US REITs: SEC EDGAR blocks iframe-embedding (X-Frame-Options:
   SAMEORIGIN on every EDGAR HTML surface), so reit_common.js instead fetches
   a filing list from our own API and renders it as a .reit-disclosure-table
   inside the same .reit-disclosure-wrap shell.
   Terminal-density rules: hairline border, no green card frame / 24px radius.
   --------------------------------------------------------------------------- */
.reit-detail-page .reit-disclosure-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 1rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid var(--border-soft) !important;
}

.reit-detail-page .reit-disclosure-head .reit-detail-section-title {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 0 !important;
}

.reit-detail-page .reit-disclosure-open {
    flex: none;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    white-space: nowrap;
}

.reit-detail-page .reit-disclosure-open:hover {
    color: var(--brand-deep);
    text-decoration: underline;
}

.reit-detail-page .reit-disclosure-wrap {
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-strong);
}

/* Tables are not rounded (see .asset-table-wrap, asset-portfolio.css, and
   DESIGN.md "Corner radius" -- 24px/12px rounding is for card/panel/iframe
   containers, not tables). The base 12px above is right for the DART iframe
   wrap; the US-REIT filings table reuses the same wrap shell but opts back
   out of the radius. */
.reit-detail-page .reit-disclosure-wrap.reit-disclosure-wrap--flat {
    border-radius: 0;
}

.reit-detail-page .reit-disclosure-frame {
    display: block;
    width: 100%;
    height: 820px;
    border: 0;
}

@media (max-width: 768px) {
    .reit-detail-page .reit-disclosure-frame {
        height: 680px;
    }
}

.reit-detail-page .reit-disclosure-wrap .reit-detail-section-copy {
    margin: 0 !important;
    padding: 2rem !important;
    border-bottom: 0 !important;
    text-align: center;
}

.reit-detail-page .reit-disclosure-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.reit-detail-page .reit-disclosure-table thead th {
    background: var(--table-header-bg);
    color: var(--ink-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 0.75rem;
    height: var(--table-header-height);
    text-align: left;
    vertical-align: middle;
}

.reit-detail-page .reit-disclosure-table > tbody > tr > td {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--border-soft);
    color: var(--ink-strong);
    vertical-align: middle;
}

.reit-detail-page .reit-disclosure-table > tbody > tr:last-child > td {
    border-bottom: 0;
}

.reit-detail-page .reit-disclosure-table > tbody > tr:hover > td {
    background: var(--highlight-soft);
}

/* Loading placeholder rows (shared .skeleton-bar, style.css): not hoverable. */
.reit-detail-page .reit-disclosure-table.is-skeleton > tbody > tr:hover > td {
    background: transparent;
}

.reit-detail-page .reit-disclosure-date-cell,
.reit-detail-page .reit-disclosure-form-cell {
    color: var(--ink-muted);
    font-size: 0.8125rem;
    white-space: nowrap;
}

.reit-detail-page .reit-disclosure-desc-cell a {
    color: var(--ink-strong);
    text-decoration: none;
}

.reit-detail-page .reit-disclosure-desc-cell a:hover {
    color: var(--brand-deep);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .reit-detail-page .reit-disclosure-table {
        display: block;
        overflow-x: auto;
    }
}

/* Sidenav pilot: below tablet width, fall back to the same horizontal
   scrollable tab bar every other REIT page already uses on mobile. */
@media (max-width: 767.98px) {
    .reit-detail-page {
        display: block !important;
    }

    .reit-detail-page .tab-container {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-soft) !important;
        padding: 0 14px !important;
    }

    .reit-detail-page .tab-container .tab-btn {
        padding: 16px 12px 14px !important;
        border-left: none !important;
        border-bottom: 2px solid transparent !important;
        border-radius: 0 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    .reit-detail-page .tab-container .tab-btn.active {
        background: transparent !important;
        border-bottom-color: var(--brand) !important;
        border-left-color: transparent !important;
    }
}

body {
    margin: 0 !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

main {
    flex: 1 0 auto !important;
}

.container {
    margin-bottom: 0 !important;
}

html {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.container-fluid {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.card {
    box-shadow: none !important;
    transition: none !important;
}

.card:hover {
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
}

.card:focus {
    box-shadow: none !important;
    outline: none !important;
}

.card:hover,
.card:focus,
.card:active,
.card:focus-within {
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
    border-color: var(--border-soft) !important;
}

.card * {
    transition: none !important;
}

.card *:hover {
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
}

/* More aggressive overrides for Bootstrap card hover effects */
.card,
.card:hover,
.card:focus,
.card:active,
.card:focus-within,
.card:focus-visible {
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
    border-color: var(--border-soft) !important;
    background-color: white !important;
    color: inherit !important;
}

/* Override any Bootstrap card hover states */
.card.h-100:hover,
.card.h-100:focus,
.card.h-100:active {
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
    border-color: var(--border-soft) !important;
}

/* Disable all transitions globally for cards */
* {
    transition: none !important;
}

.card,
.card *,
.card:hover,
.card *:hover {
    transition: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Target specific card elements with highest specificity */
div.card.h-100,
div.card.h-100:hover,
div.card.h-100:focus,
div.card.h-100:active {
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
    border-color: var(--border-soft) !important;
    background-color: white !important;
}

/* Override any remaining Bootstrap card styles */
.card[style*="box-shadow: none"]:hover,
.card[style*="border: 1px solid var(--border-soft)"]:hover {
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
    border-color: var(--border-soft) !important;
}

.financial-panel {
    display: grid;
    gap: 16px;
}

.financial-panel > * {
    width: 100%;
    min-width: 0;
}

/* Single dense strip divided by hairlines, not individual cards (matches
   .kpi-grid in valuation.css — see DESIGN.md "Tool Pages:
   Terminal-Density Exception"). The 1px `gap` + `background: var(--border-soft)`
   combo lets the container color show through as thin dividers between
   cards, both horizontally and if cards wrap to a second row. */
.financial-summary-grid {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    width: 100%;
    min-width: 0;
    background: var(--border-soft);
    border: 1px solid var(--border-soft);
}

/* Sharp corners, not the 24px card radius — this is the terminal-density
   exception (DESIGN.md), same rationale as the hairline-divided
   .financial-summary-grid above rather than individually rounded cards. */
.financial-surface {
    border: 1px solid var(--border-soft);
    border-radius: 0;
    background: var(--surface-strong);
}

.financial-summary-card {
    padding: 11px 12px;
    min-width: 0;
    background: var(--surface-strong);
    border: none;
    border-radius: 0;
}

.financial-summary-card[data-tone="positive"],
.financial-summary-card[data-tone="negative"] {
    background: var(--surface-strong);
}

.financial-summary-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.financial-summary-label,
.financial-kicker {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.financial-summary-card .financial-summary-head {
    align-items: center;
    gap: 8px;
}

.financial-summary-label {
    font-size: 11px;
    letter-spacing: 0.04em;
}

.financial-summary-period {
    display: inline-flex;
    align-items: center;
    border-radius: 3px;
    padding: 2px 6px;
    background: var(--surface-tint);
    color: var(--text-secondary-strong);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.financial-summary-value {
    margin: 8px 0 4px;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    color: var(--ink-strong);
}

.financial-summary-delta {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary-strong);
}

.financial-summary-copy {
    display: none;
}

.financial-summary-delta[data-direction="up"] {
    color: var(--brand-deep);
}

.financial-summary-delta[data-direction="down"] {
    color: var(--market-up);
}

.financial-summary-copy,
.financial-meta {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-muted);
}

.financial-surface {
    padding: 18px;
    min-width: 0;
}

.financial-title {
    margin: 2px 0 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink-strong);
}

/* 재무정보 chart: one line chart under the table (DESIGN.md -> Charts -> Line
   charts). financial_panel.js draws it at the container's pixel width. */
.financial-chart {
    position: relative;
    min-height: 220px;
}

.financial-line-chart svg {
    display: block;
    overflow: visible;
}

.financial-chart-tooltip {
    position: absolute;
    z-index: 3;
    min-width: 168px;
    padding: 8px 10px;
    border: 1px solid var(--border-soft);
    background: var(--surface-strong);
    color: var(--ink-strong);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.financial-chart-tooltip[hidden] {
    display: none;
}

.financial-chart-tooltip-period {
    margin-bottom: 4px;
    font-weight: 700;
}

.financial-chart-tooltip-row {
    display: grid;
    grid-template-columns: 16px 1fr auto;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary-strong);
}

.financial-chart-tooltip-row strong {
    color: var(--ink-strong);
}

.financial-chart-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--border-soft);
    border-radius: 0;
    color: var(--text-secondary);
    font-size: 13px;
    background: var(--surface-tint);
}

.financial-chart-empty[hidden] {
    display: none !important;
}

/* ── 부채 만기 (debt maturity section) ──────────────────────── */

.debt-maturity-chart-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink-muted);
    margin: 18px 0 2px;
}

.debt-maturity-chart-wrap {
    position: relative;
    height: 420px;
    margin-top: 8px;
    margin-bottom: 18px;
}

/* ---------------------------------------------------------------------------
   FFO waterfall (배당 tab) -- 당기순이익 -> FFO bridge under the DPS/FFO chart.
   Flat section, not a card: REIT detail pages are terminal-density surfaces
   where the 24px radius and the 2px brand border are waived, so this matches
   .dividend-panel-title's title + hairline treatment rather than boxing itself.
   --------------------------------------------------------------------------- */
.ffo-bridge {
    margin-top: 28px;
    outline: none;
}

/* The section is focusable (tabindex="0") so arrow keys can step through
   periods -- a canvas can't take focus itself. Show a ring only for keyboard
   focus, so a mouse click on the chart doesn't leave one behind. */
.ffo-bridge:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 4px;
    border-radius: 4px;
}

.ffo-bridge__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-soft);
}

.ffo-bridge__title-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ffo-bridge__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink-strong);
    margin: 0;
}

/* Names the period currently drawn. aria-live, so keyboard/screen-reader users
   hear the selection change that the chart shows visually. */
.ffo-bridge__caption {
    font-size: 0.75rem;
    color: var(--ink-muted);
    line-height: 1.5;
    margin: 0;
}

.ffo-bridge__shell {
    position: relative;
    height: 260px;
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    padding: 8px 4px 4px;
}

/* Under-the-bubbles caption disclosing the floating-rate benchmark basis
   (index value + as-of date). Muted small caption, tucked up under the chart. */
.debt-maturity-benchmark-note {
    font-size: 0.75rem;
    color: var(--ink-muted);
    line-height: 1.5;
    margin: -8px 0 18px;
}

.debt-maturity-date-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

/* 금액 cell for an overseas tranche: primary KRW figure with the foreign-currency
   principal (e.g. "EUR 323.7M") as a small muted sub-line beneath it. Right-
   aligned to sit inside the text-end column. */
.debt-maturity-amount-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

.debt-maturity-fx-orig {
    font-size: 0.6875rem;
    color: var(--ink-muted);
    line-height: 1.3;
    white-space: nowrap;
}

/* Countdown chip (DESIGN.md "Chips" section): same anatomy as a rating chip
   (pill radius, no border) but the warm amber tint reserved for time-to-
   maturity/D-day, sitting under the primary date and smaller than it. */
.countdown-chip {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--warning-soft);
    color: var(--warning);
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

/* 비연결 JV badge (대주 cell) -- an informational/reference marker, not a
   status or quality signal, so it follows the neutral .exec-badge--corporate
   treatment (surface-muted fill + ink-muted text + border-soft hairline, 3px
   radius) rather than a pill "state" chip -- amber/warning is reserved for
   unconfirmed/caution states (매각 상태 칩) and green for the quality axis,
   neither of which applies to a real, disclosed, merely non-consolidated
   figure. */
.debt-lender-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.debt-jv-badge {
    display: inline-block;
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.4rem;
    border-radius: 3px;
    line-height: 1.4;
    white-space: nowrap;
    background: var(--surface-muted);
    color: var(--ink-muted);
    border: 1px solid var(--border-soft);
    cursor: help;
}

/* Faint row tint so a 비연결 JV tranche reads as a distinct group at a glance,
   without fading the numbers themselves -- unlike an estimated rate, the
   amount/rate here are real disclosed figures, only excluded from the page's
   aggregate totals, so only the tint + badge carry the signal. */
.debt-row--jv td {
    background: var(--surface-tint);
}

.financial-table-wrap {
    border: 1px solid var(--border-soft);
    border-radius: 0;
    overflow: auto;
    background: var(--surface-strong);
}

.financial-detail-table {
    min-width: 640px;
    margin-bottom: 0;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    color: var(--ink-strong);
}

.financial-detail-table thead th {
    height: var(--table-header-height);
    padding: 0 10px;
    border-bottom: 1px solid var(--border-soft);
    background: var(--table-header-bg);
    color: var(--ink-strong);
    font-size: 12px;
    font-weight: 600;
    text-align: right;
    vertical-align: middle;
    white-space: nowrap;
}

.financial-detail-table thead th.financial-metric-head {
    text-align: left;
}

.financial-detail-table tbody th,
.financial-detail-table tbody td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--border-soft);
    background: var(--surface-strong);
    color: var(--ink-strong);
    vertical-align: middle;
    white-space: nowrap;
}

.financial-detail-table tbody tr:last-child th,
.financial-detail-table tbody tr:last-child td {
    border-bottom: none;
}

/* A row on the chart is marked like a selected list row: brand-soft fill, brand-deep
   label. Hover keeps highlight-soft and wins the background, so the pointer still
   tracks across a selected row. */
.financial-detail-table tbody tr[data-series-row] {
    cursor: pointer;
}

.financial-detail-table tbody tr.is-selected th,
.financial-detail-table tbody tr.is-selected td {
    background: var(--brand-soft);
}

.financial-detail-table tbody tr.is-selected .financial-metric-label {
    color: var(--brand-deep);
    font-weight: 700;
}

.financial-detail-table tbody tr.is-selected .financial-delta-cell[data-tone="positive"] {
    color: var(--brand-deep);
}

.financial-detail-table tbody tr:hover th,
.financial-detail-table tbody tr:hover td {
    background: var(--highlight-soft);
}

.financial-detail-table .is-latest {
    font-weight: 700;
}

.financial-detail-table td.is-missing,
.financial-detail-table td.is-na {
    color: var(--text-tertiary);
}

.financial-period-tag {
    margin-left: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.financial-metric-label {
    min-width: 200px;
    font-size: 13px;
    font-weight: 600;
}

/* The row label is the keyboard control for the row; once the metric is drawn it
   shows the line's own colour and point shape, so the table doubles as the legend. */
.financial-series-toggle {
    all: unset;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.financial-series-toggle:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.financial-series-glyph:empty {
    display: none;
}

.financial-series-glyph svg {
    display: block;
}

.financial-detail-table .financial-delta-head,
.financial-detail-table .financial-delta-cell {
    border-left: 1px solid var(--border-soft);
}

.financial-delta-cell[data-tone="positive"] {
    color: var(--brand);
}

.financial-delta-cell[data-tone="negative"] {
    color: var(--market-up);
}

/* '9.6억원' must not break between the number and its unit in a narrow column. */
.financial-cell-value {
    white-space: nowrap;
}

.financial-empty-state {
    text-align: left;
}

/* Label + (?) info-icon pairing shared by the KPI strips (배당, 가치평가) and the
   재무정보 table's row header: one term-help tooltip convention. */
.financial-summary-label-group,
.financial-metric-label-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Row-header tooltips inside the scrollable table would clip against
   .financial-table-wrap's overflow:auto if they opened upward (term-help's
   default direction) — drop them below the icon instead. */
.financial-detail-table .term-help__tooltip {
    bottom: auto;
    top: calc(100% + 6px);
}

.financial-alert-banner {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--warning);
    border-radius: 0;
    background: var(--warning-soft);
}

.financial-alert-icon {
    font-size: 14px;
    line-height: 1.4;
    flex-shrink: 0;
}

.financial-alert-copy {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-strong);
}

@media (max-width: 768px) {
    .financial-summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .financial-title {
        font-size: 20px;
    }

    .financial-metric-label {
        min-width: 168px;
    }
}

/* =========================================================================
   개요 tab layout — 회사 기본정보 (Corporate Data) beside 시장 지표 (Market
   Data), CapIQ-style side-by-side panels instead of stacked. 기본정보 stays a
   compact fixed-ish column; 시장 지표 takes the remaining width for its
   grouped metric grid. Collapses to stacked below the tablet breakpoint.
   ========================================================================= */
.intro-columns {
    display: grid;
    grid-template-columns: minmax(280px, 400px) 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .intro-columns {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* =========================================================================
   회사 기본정보 (Company Data) — 개요 tab
   CapIQ-style label/value table, re-themed to the light institutional
   palette. Plain table, no card shell -- radius/border-shell is a
   card/panel-container concept (see "Corner radius" in
   DESIGN.md), not something a bare table gets.
   ========================================================================= */
.corp-info-panel-head {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: var(--table-header-height);
    padding: 0 12px;
    background: var(--table-header-bg);
}

.corp-info-panel-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary-strong);
}

.corp-info-table {
    width: 100%;
    border-collapse: collapse;
}

.corp-info-table tr {
    border-top: 1px solid var(--border-soft);
}

.corp-info-table th,
.corp-info-table td {
    padding: 10px 12px;
    font-size: 13px;
    text-align: left;
    vertical-align: top;
}

.corp-info-table th {
    width: 40%;
    font-weight: 700;
    color: var(--ink-strong);
    white-space: nowrap;
}

.corp-info-table td {
    color: var(--ink-muted);
}

/* =========================================================================
   주주 구성 (Ownership) tab
   ========================================================================= */
.ownership-surface {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.ownership-chart-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    flex: 0 0 auto;
}

.ownership-table-wrap {
    flex: 1 1 320px;
    min-width: 0;
}

.ownership-table th,
.ownership-table td {
    padding: 8px 10px;
    font-size: 13px;
}

.ownership-table thead th {
    height: var(--table-header-height);
    vertical-align: middle;
    background: var(--table-header-bg);
    color: var(--text-secondary);
    font-weight: 700;
}

.ownership-table td.text-end,
.ownership-table th.text-end {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
    .ownership-surface {
        flex-direction: column;
        align-items: stretch;
    }

    .ownership-chart-wrap {
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }
}

/* =========================================================================
   Governance & Management Quality (운용 퀄리티) section
   ========================================================================= */
.gov-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink-strong);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-soft);
}

.gov-score-header {
    margin-bottom: 28px;
    padding: 20px;
    background-color: var(--surface-tint);
    border-radius: 24px;
    text-align: center;
}

.gov-score-num {
    font-size: 40px;
    font-weight: 700;
    color: var(--brand);
    line-height: 1.1;
}

.gov-score-denom {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink-muted);
}

.gov-score-meta {
    margin-top: 8px;
    font-size: 13px;
    color: var(--ink-muted);
}

.gov-subgroups {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gov-subgroup-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.gov-subgroup-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-strong);
}

.gov-subgroup-pct {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand);
}

.gov-bar {
    width: 100%;
    height: 10px;
    background-color: var(--border-soft);
    border-radius: 999px;
    overflow: hidden;
}

.gov-bar-fill {
    height: 100%;
    background-color: var(--brand);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.gov-empty {
    color: var(--ink-muted);
    font-size: 15px;
    padding: 30px 0;
    text-align: center;
}

/* ---------------------------------------------------------------------------
   투자구조 tab (templates/partials/reit_structure_section.html,
   static/js/reit_structure.js). Flat section like the other detail tabs: the
   diagram and the table each sit in their own border-soft hairline frame. The
   diagram's node colours are read from these same tokens in JS.
   --------------------------------------------------------------------------- */
.reit-structure-diagram {
    border: 1px solid var(--border-soft);
    background: var(--surface-strong);
    margin-bottom: 20px;
}

.reit-structure-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-soft);
}

.reit-structure-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
    color: var(--ink-muted);
}

.reit-structure-legend li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.reit-structure-swatch {
    display: inline-block;
    width: 14px;
    height: 10px;
    border: 1px solid var(--border-soft);
    border-radius: 2px;
}

.reit-structure-swatch--reit {
    background: var(--surface-navy);
    border-color: var(--surface-navy);
}

.reit-structure-swatch--vehicle {
    background: var(--surface-strong);
    border-color: var(--ink-muted);
}

.reit-structure-swatch--asset {
    background: var(--highlight-soft);
    border-color: var(--chart-blue);
}

.reit-structure-zoom {
    display: inline-flex;
    gap: 4px;
}

.reit-structure-zoom button {
    min-width: 30px;
    height: 28px;
    padding: 0 8px;
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    background: var(--surface-strong);
    color: var(--ink-strong);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.reit-structure-zoom button:hover {
    background: var(--highlight-soft);
}

.reit-structure-zoom button:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 1px;
}

.reit-structure-canvas {
    width: 100%;
    height: 460px;
}

.reit-structure-status {
    margin: 0;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--ink-muted);
    border-top: 1px solid var(--border-soft);
}

/* Loading line: the shared .load-spinner ring (style.css) ahead of the text. */
.reit-structure-status.is-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reit-structure-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-soft);
    background: var(--surface-strong);
}

.reit-structure-table {
    width: 100%;
    border-collapse: collapse;
}

.reit-structure-table th,
.reit-structure-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 13px;
    vertical-align: top;
    color: var(--ink-strong);
}

.reit-structure-table th {
    height: var(--table-header-height);
    vertical-align: middle;
    background: var(--table-header-bg);
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.reit-structure-table td:nth-child(2) {
    white-space: nowrap;
    color: var(--ink-muted);
}

.reit-structure-table th.reit-structure-col-num,
.reit-structure-table td.reit-structure-col-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.reit-structure-row {
    cursor: pointer;
}

.reit-structure-row:hover td,
.reit-structure-row.is-highlighted td {
    background: var(--highlight-soft);
}

.reit-structure-name {
    padding-left: calc((var(--structure-depth, 1) - 1) * 20px);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reit-structure-row--asset .reit-structure-label::before,
.reit-structure-row--property .reit-structure-label::before {
    content: "└ ";
    color: var(--text-tertiary);
}

.reit-structure-row--repeat .reit-structure-label {
    color: var(--ink-muted);
}

.reit-structure-meta {
    font-size: 12px;
    color: var(--ink-muted);
}

.reit-structure-stake {
    display: block;
}

.reit-structure-note {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--ink-muted);
}

@media (max-width: 768px) {
    .reit-structure-canvas {
        height: 360px;
    }

    .reit-structure-name {
        padding-left: calc((var(--structure-depth, 1) - 1) * 12px);
    }
}
