/* Monthly K-REITs Report (Insights)
   -----------------------------------------------------------------------
   Deliberate departure from the site's CapIQ terminal-density default: this
   report is modeled on S&P Dow Jones Indices' "Understanding REIT Sectors"
   (2020) editorial layout — a publication you read, not a terminal you scan.
   See DESIGN.md and docs/FEATURE_IDEAS.md (리포트 디자인 스타일 가이드) for the
   source style guide. Every color below is a var(--token) from DESIGN.md's
   YAML front-matter; no hardcoded hex.

   Design-token decision: the editorial accent reuses the site's existing
   --brand green (already documented as "links, active states, fills") rather
   than adding a new named-exception token. Token rule #4 (categorical /
   chart-series colors only) does not apply here — nothing in this scaffold
   is a chart series; --brand is used purely as the single accent for the
   eyebrow label, links, hover states, and the "Latest" tag, matching the
   single-institutional-green-accent rule in DESIGN.md → Overview instead of
   introducing an out-of-palette hue (e.g. the style guide's literal red).
   ----------------------------------------------------------------------- */

/* ---------- Shared type + media conventions ---------- */

.mreport-archive,
.mreport-detail {
    color: var(--ink-strong);
}

/* Reports/articles convention (design system → Components → Reports &
   articles): embedded media gets 1rem radius, body copy gets 36px line-height.
   The exhibit placeholder box below stands in for a future embedded chart, so
   it carries the media radius now even though no image exists yet. */
.mreport-exhibit-box,
.mreport-media {
    border-radius: 1rem;
}

.mreport-lead,
.mreport-exhibit-box p {
    /* Inherits body's Noto Sans KR (style.css) -- the site-wide sans, not a
       serif departure. Reports/articles line-height rule (36px) still applies. */
    line-height: 36px;
}

/* Korean breaks between words, not between syllables (2026-11-06). The
   default `word-break: normal` lets a Korean line end mid-word -- the
   종로타워 title broke as 「진행 상 / 황」 on a phone and a lead line as
   「하나이 / 고」 on desktop. keep-all breaks only at spaces, as Korean
   typesetting does; overflow-wrap still breaks a single token wider than its
   box (a URL, a long Latin name) so nothing spills out. Scoped by :lang(ko)
   so English pages keep the browser's own rules. Inherited, so this one rule
   covers title, lead, outline items, captions and table cells. */
.mreport-detail:lang(ko) {
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* ---------- Archive ---------- */

.mreport-archive {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.mreport-hero {
    max-width: 46rem;
    margin-bottom: 2.5rem;
}

.mreport-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-deep);
}

.mreport-title {
    margin: 0 0 0.75rem;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink-strong);
}

.mreport-subtitle {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--ink-muted);
}

.mreport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Deliberately NOT `.card` -- no shared border, background or shell radius
   wrapping image and text together. The image is its own independently
   rounded rectangle; the text below sits directly on the page, unboxed, with
   a plain margin gap. Fusing the two into one bordered card (an earlier
   version of this) is what made it read as a single component instead of a
   picture with a caption underneath it. */
.mreport-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
}

.mreport-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    margin: 0 0 1.5rem;
    /* This is the ONE place the 1rem editorial-image radius from DESIGN.md
       applies here -- unlike the fused-shell version, this image is not
       standing in for a card's own corner, it IS a plain report image, on
       all four sides. */
    border-radius: 1rem;
    overflow: hidden;
}

.mreport-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mreport-card:hover .mreport-card-image {
    transform: scale(1.05);
}

.mreport-card-latest {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: var(--brand-soft);
    color: var(--brand-deep);
}

.mreport-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mreport-card-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink-strong);
    transition: color 0.15s ease;
}

.mreport-card:hover .mreport-card-title {
    color: var(--brand-deep);
}

/* -- /insights/ additions -------------------------------------------------
   The archive grid is shared with the monthly-report archive; only the two
   lines a mixed list needs (which series, and a one-line dek) are new. */

/* Which series this card belongs to. Sits ABOVE the title in the eyebrow role
   the hero already uses -- same size and tracking, so the two read as one
   device rather than two competing labels. */
.insight-card-series {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.insight-card-summary {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--ink-muted);
    /* Two lines, then ellipsis: a mixed grid has to keep its cards the same
       height or the "latest" badge stops reading as a row. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insight-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
}

.insight-filter {
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: var(--surface-strong);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink-muted);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.insight-filter:hover {
    border-color: var(--ink-muted);
    color: var(--ink-strong);
}

.insight-filter.is-active {
    background: var(--ink-strong);
    border-color: var(--ink-strong);
    color: var(--surface-strong);
}

/* Arrow only: the card no longer prints a Vol number beside it (2026-11-07),
   so it keeps its place at the right edge on its own. */
.mreport-card-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.mreport-card-arrow {
    color: var(--brand-deep);
    font-size: 1.1rem;
    transition: transform 0.15s ease, color 0.15s ease;
}

.mreport-card:hover .mreport-card-arrow {
    transform: translateX(4px);
    color: var(--brand-deep);
}

.mreport-empty {
    padding: 3.5rem 2rem;
    text-align: center;
}

.mreport-empty-title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink-strong);
}

.mreport-empty-body {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ink-muted);
}

/* ---------- Detail ---------- */

.mreport-detail {
    padding-bottom: 3rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* .page-back-link-wrap is a shared site-wide component (static/css/style.css:
   margin: 0 0 14px, no left/top) -- scoped here rather than changed globally
   so every other page using it (bond-screener, dividend calendars, etc.)
   stays untouched. The left gap comes from .mreport-detail's own padding
   above (this element is its direct child, flush against that edge), so
   only margin-top needs adding here. */
.mreport-detail .page-back-link-wrap {
    margin-top: 1.5rem;
}

.mreport-masthead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-soft);
}

.mreport-masthead-title,
.mreport-masthead-date {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--ink-muted);
}

.mreport-layout {
    display: grid;
    grid-template-columns: 22% 75%;
    column-gap: 3%;
}

/* Sources / disclaimer / footer-nav are NOT children of .mreport-body -- they
   are separate <section>/<p>/<div> siblings of .mreport-layout itself (see
   .mreport-endmatter markup in monthly_report_detail.html), so without an
   inset they'd render flush against .mreport-detail's own 2rem padding, i.e.
   aligned with where .mreport-sidebar/TOC starts rather than where
   .mreport-body actually starts. One wrapper, one inset -- DESIGN.md > Layout
   > Alignment: "add one wrapper around them all and inset that -- don't
   inset each section separately" -- instead of a margin-left on each of the
   three. The offset mirrors THIS grid: sidebar column (22%) + column-gap (3%)
   = the 75% body column's left edge. Written as calc() instead of the bare
   25% sum so a future edit to grid-template-columns/column-gap above doesn't
   silently desync this -- change both together. Reset to 0 at the 991.98px
   breakpoint below, where .mreport-layout collapses to one full-width
   column. */
.mreport-endmatter {
    margin-left: calc(22% + 3%);
}

/* Sidebar: pull quote + table of contents. Sticky so the TOC stays reachable
   while scrolling the (much longer) body column. `top` clears the site's
   fixed navbar (measured 82px) plus a comfortable gap; align-self: start
   keeps the sidebar at its natural (shorter-than-row) height inside the
   grid, which is required for sticky to have room to move. Disabled on the
   stacked mobile layout below (position: static). */
.mreport-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: calc(82px + 1.5rem);
    align-self: start;
    max-height: calc(100vh - 82px - 3rem);
    overflow-y: auto;
}

/* Table of contents (partials/report_toc.html). No box, no fill and no section
   numbers since 2026-11-07 (a coloured, bordered box with numbered sections
   read as dated; the plain lists on GOV.UK and MDN are the model): a 2px grey rule runs down the left of the list, and
   the section being read darkens its own stretch of that rule. */
.mreport-toc-label {
    margin: 0 0 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.mreport-toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-left: 2px solid var(--border-soft);
}

/* Each link carries its own 2px left edge over the list's rule (pulled left
   onto it), transparent until it is the current section. */
.mreport-toc-link {
    display: block;
    margin-left: -2px;
    padding: 0.4rem 0 0.4rem 1rem;
    border-left: 2px solid transparent;
    font-size: 0.83rem;
    line-height: 1.4;
    color: var(--ink-strong);
    text-decoration: none;
}

.mreport-toc-link:hover {
    color: var(--brand-deep);
}

/* Current-position mark. static/js/report_toc.js sets aria-current on the
   sidebar link of the section being read; that stretch of the rule turns
   ink-strong and the text bold. Replaced the white band of 2026-11-06, which
   needed the beige box under it, when the box went (2026-11-07). */
.mreport-toc-link[aria-current="true"] {
    border-left-color: var(--ink-strong);
    color: var(--ink-strong);
    font-weight: 700;
}

/* The copy under the title is the phone's; the sidebar copy is the desktop's. */
.mreport-toc--inline {
    display: none;
}

/* Document panel (partials/report_docpanel.html): 발행일, 수정일, 조회수, share button.
   White panel under the TOC with a 12px radius and the hairline; it rides the
   sidebar's sticky position. The inline variant is the same content under the
   lead for the stacked (<992px) layout. */
.mreport-docpanel {
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: var(--surface-strong);
}

.mreport-docpanel--inline {
    display: none;
}

.mreport-docpanel-meta {
    margin: 0 0 0.9rem;
}

.mreport-docpanel-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.2rem 0;
}

.mreport-docpanel-row dt {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--ink-muted);
}

.mreport-docpanel-row dd {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink-strong);
    font-variant-numeric: tabular-nums;
}

.mreport-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    height: 34px;
    padding: 0 0.9rem;
    border: 0;
    border-radius: 6px;
    background: var(--brand);
    color: var(--surface-strong);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.mreport-share-btn:hover,
.mreport-share-btn:focus-visible {
    background: var(--brand-deep);
}

.mreport-share-btn.is-done {
    background: var(--brand-deep);
}

/* icon-link.png (DESIGN.md: the only link icon) is a dark glyph; render it
   white on the brand fill. A background rather than an <img> so the relative
   url resolves on both the site (/static/) and the console (/site-static/). */
.mreport-share-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex: none;
    background: url("../img/icon-link.e74147e47dc7.png") center / contain no-repeat;
    filter: brightness(0) invert(1);
}

/* Body column */
.mreport-body-header {
    margin-bottom: 2rem;
}

.mreport-doctitle {
    margin: 0 0 0.75rem;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink-strong);
}

.mreport-lead {
    margin: 0;
    font-size: 1rem;
    color: var(--ink-strong);
}

/* A lead written as lines (Series.lead_lines, 2026-10-08): conclusion, the
   figure behind it, what it means. A filled square in the brand colour, not the
   body's □/○ glyphs, so the summary does not read as the first outline block;
   the conclusion line carries the one weight step. */
.mreport-lead-lines {
    padding: 0;
    list-style: none;
}

.mreport-lead-lines li {
    position: relative;
    padding-left: 1.25rem;
}

.mreport-lead-lines li::before {
    content: "";
    position: absolute;
    left: 0.25rem;
    top: 15px;  /* centres the 6px mark on the 36px line */
    width: 6px;
    height: 6px;
    background: var(--brand);
}

.mreport-lead-lines li:first-child {
    font-weight: 600;
}

.mreport-section {
    padding-top: 1.75rem;
    margin-top: 1.75rem;
    border-top: 1px solid var(--border-soft);
    /* Clears the fixed navbar (82px) plus a gap when a TOC link jumps here,
       so the section title doesn't land underneath it. */
    scroll-margin-top: calc(82px + 1.5rem);
}

.mreport-section:first-of-type {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

/* Section entry. Carries the Exhibit number inline -- the number used to sit
   on a second line repeating the same title at 13.6px, so the page named every
   section twice at two sizes and neither read as the entry point.
   22px against a 16px body: the four levels here (section / subhead / body /
   figure caption) were previously packed into two sizes 0.8px apart, which is
   what made them indistinguishable. */
.mreport-section-title {
    margin: 0 0 0.85rem;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--ink-strong);
}

/* Caption naming the chart or table under it. A caption, NOT a heading: it
   labels a figure rather than introducing prose, so it sits BELOW body size
   and in muted ink. It used to share a class with the section identifier and
   rendered at the same 13.6px/dark as a prose subhead, which is what made the
   two impossible to tell apart. */
.mreport-figure-label {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.mreport-exhibit-box {
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: var(--surface-tint);
    border: 1px dashed var(--border-soft);
}

.mreport-exhibit-box p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ink-muted);
}

.mreport-disclaimer {
    margin: 1.5rem 0 0;
    font-size: 0.78rem;
    color: var(--ink-muted);
}

.mreport-footer-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-soft);
}

.mreport-footer-brand {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-strong);
}

.mreport-footer-links {
    display: flex;
    gap: 1.25rem;
}

.mreport-footer-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-deep);
    text-decoration: none;
}

.mreport-footer-link:hover {
    color: var(--brand-deep);
    text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
    /* minmax(0, 1fr), not 1fr (2026-11-06): a bare 1fr track has an `auto`
       minimum, so it grows to its items' min-content -- here a chart canvas or
       a wide table -- and on a 375px phone the column came out 381px against a
       287px box, cutting off the TOC and the share button and leaving a 5px
       right gutter. A 0 minimum keeps the track at the box width; a wide table
       scrolls inside its own .mreport-table-wrap instead. */
    .mreport-layout {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 2rem;
    }

    /* Stacked single-column layout. The sidebar used to sit above the title
       here, and its seven-line TOC filled a phone's first screen before any
       body text (2026-11-07). Both of its parts have a copy in the body header
       instead -- the inline document panel and the inline TOC under it, where
       NN/g, GOV.UK and MDN all put theirs -- so the sidebar goes. */
    .mreport-sidebar {
        display: none;
    }

    .mreport-toc--inline {
        display: block;
        margin-top: 1.5rem;
    }

    /* .mreport-endmatter's desktop inset (see .mreport-layout above) must not
       persist here -- .mreport-body has gone full-width, so keeping the 25%
       margin would misalign sources/disclaimer/footer-nav the other way,
       leaving them indented under a full-width body. */
    .mreport-endmatter {
        margin-left: 0;
    }

    /* The document panel's phone copy: under the lead, as one row. */
    .mreport-docpanel--inline {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin-top: 1rem;
        padding: 0.6rem 0.9rem;
    }

    /* Wraps so a corrected issue's third row (수정) fits a phone width
       beside the share button instead of pushing it off the panel. */
    .mreport-docpanel--inline .mreport-docpanel-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem 1.25rem;
        min-width: 0;
        margin: 0;
    }

    .mreport-docpanel--inline .mreport-docpanel-row {
        gap: 0.4rem;
        padding: 0;
    }

    .mreport-docpanel--inline .mreport-share-btn {
        width: auto;
        flex: none;
    }
}

@media (max-width: 575.98px) {
    .mreport-title {
        font-size: 1.65rem;
    }

    .mreport-doctitle {
        font-size: 1.5rem;
    }

    .mreport-masthead {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .mreport-footer-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* ---------- Content blocks (text / stat_row / table / chart) ---------- */
/* Real vs. mock/partial content shares the same rendering -- data_status
   only changes whether a badge appears (chip restraint: no badge on real
   content, one small pill on anything else). No dashed "pending" styling
   here; that treatment was for the old placeholder box only. */

.mreport-section-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

.mreport-section-head .mreport-section-title {
    margin-bottom: 0;
}

.mreport-data-badge {
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.mreport-data-badge--mock {
    background: var(--warning-soft);
    color: var(--warning);
}

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

.mreport-block-text p {
    margin: 0 0 0.75rem;
    line-height: 36px;
    color: var(--ink-strong);
}

.mreport-block-text p:last-child {
    margin-bottom: 0;
}

/* 개조식 outline items (2026-09-12). The monthly report's
   body is a four-level outline: □ carries a point, ○ the evidence under it,
   - a detail of that, · what is secondary to the detail.
   `inline_markup.split_item_marker` strips the glyph from the stored text and
   the template emits the level as a class, so the marker below is the only
   place it exists visually.

   Hanging indent rather than a list: the glyph sits in the gutter and wrapped
   lines align to the text, not under the marker. `padding-left` opens the
   gutter and the negative `text-indent` pulls the first line back into it,
   which is the one technique that survives a wrap at any width without a
   fixed-width marker column.

   Tighter than a prose paragraph on purpose. Outline items are read as a
   scannable column, and the 36px prose line-height that the reports/articles
   rule sets makes adjacent items look unrelated. The ink stays on the same
   scale as body prose -- this is a depth cue, not an emphasis one, so the
   marker takes --ink-muted while the text keeps --ink-strong. */
.mreport-block-text .mreport-item {
    position: relative;
    line-height: 30px;
    margin: 0 0 0.5rem;
}

/* Fixed-width marker box so both levels get the SAME gap between glyph and
   text. Positioning the two glyphs alone does not achieve that: ○ is visibly
   narrower than □, so equal left offsets left the ○ items looking detached
   from their own text. */
.mreport-block-text .mreport-item::before {
    position: absolute;
    width: 1rem;
    color: var(--ink-muted);
}

.mreport-item-1 {
    padding-left: 1.4rem;
    font-weight: 500;
}

/* The four markers step down with the level, as in a ministry 보도자료 (국토부
   리츠 보도자료 두 건을 픽셀로 쟀을 때 □ 15 : ○ 10 : - 8 : * 5, 본문 글자는 같은
   크기; 2026-10-29: the marker sizes had read as identical). At the 16px body the
   same ratio is □ 12 : ○ 10 : - 6 : · 4. Until then the glyphs were all left at
   the inherited 16px, which made □ 14px and ○ 16px -- the ○ larger than the □
   above it. - and · are already in proportion and are left alone. */
.mreport-item-1::before {
    content: "\25A1";  /* □ */
    font-size: 0.86em;
    left: 0;
}

/* Indented under its □, and set at the body weight so the level reads from
   position and marker rather than from a second weight step. */
.mreport-item-2 {
    padding-left: 2.8rem;
}

/* The ○ is a ring drawn in CSS, not the glyph, for the reason the plan table's
   achieved mark gives (.mreport-verdict-achieved): at the size the level needs
   (about 10px, a step under the □) the glyph is a hairline and, with the
   smaller font-size, sits above the line. The stroke carries --ink-muted like
   the other markers. The ring is narrower than the 1rem the glyph filled, so
   `left` is pushed in to keep the gap to its text what it was; `top` centres it
   on the 30px line. The glyph was CSS-generated content too, so the stored
   text and what a copy picks up are unchanged. The selector repeats
   .mreport-block-text so it outranks the shared 1rem width. */
.mreport-block-text .mreport-item-2::before {
    content: "";
    box-sizing: border-box;
    width: 0.6rem;
    height: 0.6rem;
    border: 1.5px solid var(--ink-muted);
    border-radius: 50%;
    top: 11px;
    left: calc(1.4rem + 0.35rem);
}

/* The detail of the ○ above it (2026-09-13). One more step of the same 1.4rem
   indent, body weight, muted dash -- the third level reads from position like
   the second, not from a smaller type size. */
.mreport-item-3 {
    padding-left: 4.2rem;
}

.mreport-item-3::before {
    content: "-";
    left: 2.8rem;
}

/* What is secondary to the - above it: an exception, a supplement (2026-10-26).
   The fourth step of the same 1.4rem indent, body weight, muted middle dot. */
.mreport-item-4 {
    padding-left: 5.6rem;
}

.mreport-item-4::before {
    content: "\00B7";  /* · */
    left: 4.2rem;
}

/* A ○, - or · closing a group, and the □ that opens the next one, need the gap
   that the tightened item margin took away -- otherwise the two groups run
   together into one column of marks. */
.mreport-item-2 + .mreport-item-1,
.mreport-item-3 + .mreport-item-1,
.mreport-item-4 + .mreport-item-1 {
    margin-top: 1rem;
}

/* Inline formatting inside body paragraphs (services/inline_markup.py).
   Until 2026-08-27 a paragraph rendered as escaped text with no way to carry a
   link or an emphasis, which is also why DESIGN.md's --article-highlight-*
   tokens had no user anywhere in the codebase. These are that user -- the four
   colours are the four tokens, and no other value is reachable: the renderer's
   regex only matches those names.

   `color: inherit` is not decoration: the UA stylesheet sets BOTH background
   and color on <mark>, so without it a highlight repaints the text near-black
   on its own, off the ink scale. */
.mreport-hl {
    background: var(--article-highlight-yellow);
    color: inherit;
    padding: 0 0.15em;
    border-radius: 0.15rem;
}

/* A plan table's achieved mark (O) among the -s, so the one or two rows that
   were delivered read at a glance (2026-10-10). Set
   by insight_render, not typed.

   The mark is a ring drawn in CSS, not the ○ glyph: the glyph is a hairline in
   every face of the font stack and font-weight 700 does not thicken it, so at
   table size it barely showed beside the -s (2026-10-28, 「동그라미가 두께가
   얇아서 잘 안보여」). The stroke carries the colour. A highlighter background
   boxed the glyph into a green square (2026-10-11, 「동그라미 있는 기호에 네모
   초록 바탕색이 보이는데, 고쳐」), so the ring has no fill. The ○ stays in the
   markup and is hidden by font-size 0, so copy and screen readers still get the
   mark -- which is also why the ring is sized in rem, not em. */
.mreport-verdict-achieved {
    display: inline-block;
    box-sizing: border-box;
    width: 0.9rem;
    height: 0.9rem;
    border: 2px solid var(--brand-deep);
    border-radius: 50%;
    font-size: 0;
    line-height: 0;
    vertical-align: middle;
}

.mreport-hl--purple { background: var(--article-highlight-purple); }
.mreport-hl--yellow { background: var(--article-highlight-yellow); }
.mreport-hl--green  { background: var(--article-highlight-green); }
.mreport-hl--blue   { background: var(--article-highlight-blue); }

/* Underline rather than colour: body copy runs at --ink-strong and a coloured
   inline link inside a dense paragraph reads as an error state at this size.
   The underline offset keeps it clear of Korean glyph descenders. */
.mreport-inline-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--ink-muted);
}

.mreport-inline-link:hover {
    text-decoration-color: currentColor;
}

.mreport-section > * + * {
    margin-top: 1.25rem;
}

/* Subhead over prose, inside a text block. NOT the figure-caption style above:
   a caption names the table or chart under it and can sit quieter than body
   copy, but a subhead has to outrank the paragraphs it introduces. Reusing the
   caption here shipped a 13.6px heading over 16px body text, which read as a
   stray bold line rather than a heading.
   17.6px over a 16px body, under a 22px section title: enough to rank above
   the prose it opens without competing with the section it sits inside. */
.mreport-block-subhead {
    margin: 1.5rem 0 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--ink-strong);
}

.mreport-block-text > .mreport-block-subhead:first-child {
    margin-top: 0;
}

/* Stat row: compact KPI strip (금리 동향's current-level readout, etc.) */
/* White panel with the hairline, like the document panel beside the TOC
   (2026-11-07). It was filled with the table-header beige, a colour DESIGN.md
   keeps for table headers alone. */
.mreport-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.25rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: var(--surface-strong);
}

.mreport-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mreport-stat-label {
    font-size: 0.75rem;
    color: var(--ink-muted);
}

/* Legacy: issues built before 2026-10-05 store one `value` string per cell. */
.mreport-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink-strong);
}

/* Only the figure is large. What it is measured against (전년 대비, 동결) and
   the change line under it step down in size and ink, so the eye lands on the
   number first. Spec: DESIGN.md > Reports & articles > Stat row. */
.mreport-stat-main {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    line-height: 1.1;
}

.mreport-stat-figure {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink-strong);
    font-variant-numeric: tabular-nums;
}

.mreport-stat-basis {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--ink-muted);
}

.mreport-stat-sub {
    font-size: 0.8125rem;
    line-height: 1.3;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
}

.mreport-stat-delta {
    font-weight: 600;
    color: var(--text-secondary-strong);
}

/* Table: the editorial register -- bold uppercase header framed by heavy
   rules, thin internal rules only, no vertical rules, no thead fill, no row
   backgrounds. Spec lives in DESIGN.md > Tables > "Two registers"; edit there
   first. The closing rule is normal weight on purpose: only the header keeps
   the heavy pair, so the eye reads "here is the header" not "here is a box". */
.mreport-table-wrap {
    overflow-x: auto;
}

.mreport-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

/* A data table is as wide as its content, never narrower than half the column
   (2026-11-06). At a forced 100% the 2-column 선행 배당수익률 table (25 rows)
   put ~900px between a REIT's name and its yield, and with no row hover in
   this register the eye lost the row; six of the seven October tables needed
   270-580px of the 1008px column. width: auto lets a table that needs the
   whole column (many columns, long text) still take it, and the 50% floor
   gives the short ones one shared width instead of one width per table.
   The long (구분 | 내용) table is excluded: its 내용 column is prose and
   reads as a facts panel at full width. */
.mreport-table:not(.mreport-table--long) {
    width: auto;
    min-width: 50%;
}

/* A location table (지역·광역 입지, under its drawn route map) is a long table for
   its shaded first column only. Its rows are a place and its minutes, not prose, so
   it keeps the content width of the rule above (2026-11-23): at 100% it put the
   whole column between a station and its walking time. */
.mreport-table--long.mreport-table--location {
    width: auto;
    min-width: 50%;
}

.mreport-table thead th {
    padding: 0.55rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: left;
    color: var(--ink-strong);
    border-top: 2px solid var(--ink-strong);
    border-bottom: 2px solid var(--ink-strong);
}

.mreport-table tbody td {
    padding: 0.55rem 0.75rem;
    color: var(--ink-strong);
    border-bottom: 1px solid var(--border-soft);
}

.mreport-table tbody tr:last-child td {
    border-bottom: 1px solid var(--ink-strong);
}

/* Grouped table: one column (the group label, first) merges its runs of equal
   values into a single cell, so the rows of a group read as a group. Top-aligned
   and 600 weight like any row header, no fill -- this register's only fills are
   on the long table. A merged cell that runs to the last row draws the closing
   rule itself, since the rule is set on the last row's own cells. DESIGN.md >
   Tables > "Two registers". */
.mreport-table--grouped tbody td.mreport-cell-group {
    vertical-align: top;
    font-weight: 600;
}

.mreport-table--grouped tbody td.mreport-cell-group--last {
    border-bottom-color: var(--ink-strong);
}

/* Long (구분 | 내용) table: the first column is the row header and carries the
   header band's warm beige, and the header row is filled with brand-deep (white
   text). The only fills in this register -- see DESIGN.md > Tables > "Two
   registers". The fill stands in for the heavy rule pair, so the rules go. */
.mreport-table--long thead th {
    background: var(--brand-deep);
    color: var(--surface-strong);
    font-weight: 600;
    border-top: 0;
    border-bottom: 0;
}

.mreport-table--long:not(.mreport-table--grouped) tbody td:first-child {
    background: var(--table-label-bg);
    font-weight: 600;
}

/* A long table that also merges its 구분 cells (feature SWOT / TOWS, 2026-11-04):
   the merged cell carries the row-header band; the rows under it have no 구분 cell,
   so their first <td> is a 내용 cell and must stay unfilled. */
.mreport-table--long.mreport-table--grouped tbody td.mreport-cell-group {
    background: var(--table-label-bg);
}

/* Nil report, rendered in place of the table (no column header) when a block
   has no rows. Left-aligned and upright, not centred italics: this states a
   fact about the period, and the old styling made it read as an apology for
   missing data. Keeps the top rule so it still reads as the table's body. */
.mreport-table-empty {
    margin: 0;
    padding: 0.55rem 0;
    border-top: 2px solid var(--ink-strong);
    font-size: 0.88rem;
    color: var(--ink-muted);
}

/* Methodology note under a chart/table -- e.g. "월별 값 기준" or "가정 금리충격
   시나리오는 포함하지 않음". Not a source line: the report names every source
   once, in the Sources list at the foot of the issue (see below); repeating
   "출처: A, B." under nine different tables was the same three sources
   printed nine times. */
.mreport-block-note {
    margin: 0.5rem 0 0;
    font-size: 0.78rem;
    color: var(--ink-muted);
}

/* Image exhibit (2026-10-09): a quoted IR slide or similar, served from the
   insight media bucket. border-radius 1rem is the reports-and-articles rule for
   embedded visuals (design system); the hairline keeps a white slide from
   dissolving into the page. width/height attributes reserve the box before load. */
.mreport-image-wrap {
    margin: 1.5rem 0;
}

.mreport-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1rem;
    border: 1px solid var(--border-soft);
}

/* Size cap (2026-11-06). At full column width a near-square slide (종로타워
   Exhibit 4, 1005x976) rendered 1008x979 -- taller than a laptop screen, its
   slide text ~40px, louder than the argument quoting it. The image keeps
   width: 100% (so the width/height attributes still reserve its box before it
   loads) and is capped by max-width instead, from its own aspect ratio, which
   the template passes as --img-w / --img-h:
     - height at most min(70vh, 40rem), so a quoted image fits on screen with
       its caption and source line;
     - width at most its own pixel width, so a small source is never upscaled.
   A wide image (a table strip, a 16:9 slide) is untouched by the height term
   and still fills the column. Left-aligned like every other exhibit. If the
   variables are missing the declaration is invalid and the image falls back
   to full width, as before. */
.mreport-image[style*="--img-w"] {
    max-width: min(
        100%,
        calc(var(--img-w) * 1px),
        calc(min(70vh, 40rem) * var(--img-w) / var(--img-h))
    );
}

/* Chart: Chart.js canvas with maintainAspectRatio:false needs an explicit
   parent height to size correctly. */
.mreport-chart-canvas-wrap {
    position: relative;
    height: 260px;
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    padding: 1rem 1.25rem 0.5rem;
    background: var(--surface-tint);
}

@media (max-width: 575.98px) {
    .mreport-chart-canvas-wrap {
        height: 220px;
        padding: 0.75rem 0.75rem 0.5rem;
    }
}

/* A table's companion chart (_table_block's companion_chart): one bar per row,
   so its height follows the row count the renderer passes in, at every width. */
.mreport-chart-canvas-wrap.mreport-companion-chart {
    height: var(--companion-height);
    margin-bottom: 1.25rem;
}

/* A phone gives a named bar chart every pixel it can: the REIT names alone
   take ~120px of the canvas. */
@media (max-width: 575.98px) {
    .mreport-chart-canvas-wrap.mreport-companion-chart {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* A long table set in side-by-side runs (split_rows, 2026-11-07). Each run is a
   whole table with its own header, so a reader can scan either half alone. On
   a phone the runs stack and read as one table: the second header is kept for
   screen readers only, and the rule between the runs is a row separator. */
.mreport-table-split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0 2.5rem;
}

.mreport-table-split > .mreport-table:not(.mreport-table--long) {
    flex: 1 1 16rem;
    width: auto;
    min-width: 0;
    max-width: 24rem;
}

@media (max-width: 575.98px) {
    .mreport-table-split {
        flex-direction: column;
        align-items: stretch;
    }

    .mreport-table-split > .mreport-table:not(.mreport-table--long) {
        flex: none;
        width: 100%;
        max-width: none;
    }

    .mreport-table-split > .mreport-table + .mreport-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .mreport-table-split > .mreport-table:not(:last-child) tbody tr:last-child td {
        border-bottom-color: var(--border-soft);
    }
}

/* Sources. A plain list at the foot of the issue naming everything the report
   drew on, linked where the source has a page. No numbering and no reference
   marks in the body -- see DESIGN.md > Reports & articles > Sources. */
.mreport-sources {
    margin: 2rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-soft);
}

.mreport-sources-label {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ink-strong);
}

.mreport-sources-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    font-size: 0.78rem;
    line-height: 1.7;
    color: var(--ink-muted);
}

/* No browser disc (2026-11-04: the default black disc read as dated): a pale
   dot in the hairline colour, hung outside the text so every name starts on one
   edge. */
.mreport-sources-list li {
    position: relative;
    padding-left: 1rem;
}

.mreport-sources-list li::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: calc(0.85em - 3px);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-soft);
}

.mreport-sources-list a {
    color: var(--ink-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mreport-sources-list a:hover {
    color: var(--brand-deep);
}

/* REIT names in report tables link to that REIT's page. Underlined on hover
   only: 78 permanently underlined cells would read as a wall of links and
   fight the table's own rules for attention. */
.mreport-reit-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.mreport-reit-link:hover,
.mreport-reit-link:focus-visible {
    color: var(--brand-deep);
    border-bottom-color: var(--brand-deep);
}
