/* RisetLokal Data: layout and components. Inherits colours and type from the theme. */
.rld-root { --rld-ink: var(--ink, #0f3440); --rld-accent: var(--tarum, #1f5a63); --rld-coral: var(--coral, #f07a4f); --rld-line: var(--line, #d3dfde); --rld-mist: var(--mist, #e4eceb); --rld-muted: var(--muted, #4e6a70); --rld-r: var(--r, 14px); }
.rld-root .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rld-muted { color: var(--rld-muted); }

/* Hero */
.rld-eyebrow { font-family: var(--narrow, inherit); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--soga, #b04e2c); margin: 0 0 .7em; }
.rld-hero .hero__title { max-width: 30ch; }
.rld-hero .hero__lede { max-width: 68ch; margin-bottom: .9em; }
.rld-hero__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: .86rem; color: var(--rld-muted); }
.rld-hero__meta span + span::before { content: "·"; margin-right: 18px; opacity: .6; }
.rld-sec { padding-top: clamp(24px, 3vw, 36px) !important; }

/* Headings */
.rld-h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 0; }
.rld-h2 a { color: inherit; }
.rld-h3 { font-size: 1.18rem; margin: 0 0 .7em; }
.rld-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 14px; flex-wrap: wrap; }
.rld-sechead .rld-h3 { margin: 0; }

/* Tiles */
.rld-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); }
.rld-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 14px; border: 1px solid var(--rld-line); border-radius: var(--rld-r); background: #fff; color: var(--rld-ink); transition: border-color .15s ease, transform .15s ease; }
.rld-tile:hover { border-color: var(--rld-accent); color: var(--rld-ink); transform: translateY(-1px); }
.rld-tile__name { font-size: .88rem; color: var(--rld-muted); font-weight: 500; }
.rld-tile__val { font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.rld-tile__meta { font-size: .8rem; color: var(--rld-muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rld-tile .rld-spark { width: 100%; height: 40px; color: var(--rld-accent); margin-top: 6px; }

.rld-chg { font-size: .8rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rld-chg span { font-size: .62rem; vertical-align: 1px; }
.rld-chg--up { color: var(--rld-accent); }
.rld-chg--down { color: var(--soga, #b04e2c); }
.rld-chg--flat { color: var(--rld-muted); }

/* Tables */
.rld-catblock { margin-bottom: clamp(32px, 4.5vw, 52px); }
.rld-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rld-line); border-radius: var(--rld-r); background: #fff; }
.rld-table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 0; }
.rld-table th, .rld-table td { padding: 11px 16px; border-bottom: 1px solid var(--rld-line); text-align: left; vertical-align: middle; }
.rld-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--rld-muted); font-weight: 600; background: var(--rld-mist); border-bottom-color: var(--rld-line); white-space: nowrap; }
.rld-table thead th.num { text-align: right; }
.rld-table tbody tr:last-child th, .rld-table tbody tr:last-child td { border-bottom: 0; }
.rld-table tbody tr:hover { background: rgba(31, 90, 99, .04); }
.rld-table tbody th { font-weight: 600; }
.rld-table tbody th a { color: var(--rld-ink); }
.rld-table tbody th a:hover { color: var(--rld-accent); text-decoration: underline; text-underline-offset: 3px; }
.rld-table__unit { display: block; font-size: .76rem; font-weight: 400; color: var(--rld-muted); margin-top: 1px; }
.rld-table__spark { width: 110px; color: var(--rld-accent); }
.rld-tablecap { caption-side: top; text-align: left; padding: 12px 16px 0; font-weight: 700; color: var(--rld-ink); font-size: 1rem; }
.rld-table--summary thead { display: none; }
.rld-table--summary tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.rld-table--summary tbody tr:hover { background: transparent; }
.rld-table--summary td { display: flex; flex-direction: column; gap: 2px; border-bottom: 0 !important; padding: 12px 16px; font-variant-numeric: tabular-nums; }
.rld-table--summary td::before { content: attr(data-l); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--rld-muted); font-weight: 600; }
.rld-table--hist td:first-child { white-space: nowrap; }

.rld-note { margin: 8px 0 18px; padding: 14px 18px; border-left: 3px solid var(--rld-coral); background: var(--rld-mist); border-radius: 0 var(--rld-r) var(--rld-r) 0; font-size: .92rem; }
.rld-fine { font-size: .84rem; color: var(--rld-muted); margin: 18px 0 0; }
.rld-catnav { margin-top: 36px; }
.rld-catnav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rld-catnav a { display: inline-block; padding: 7px 14px; border: 1px solid var(--rld-line); border-radius: 999px; font-size: .88rem; color: var(--rld-ink); background: #fff; }
.rld-catnav a:hover { border-color: var(--rld-accent); color: var(--rld-accent); }

/* Indicator layout */
.rld-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 3.5vw, 44px); align-items: start; }
.rld-main { min-width: 0; }
.rld-main > * + * { margin-top: 26px; }
.rld-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }

.rld-headline { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: flex-end; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--rld-line); }
.rld-headline__main { display: flex; flex-direction: column; gap: 2px; }
.rld-headline__label { white-space: nowrap; font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--rld-muted); font-weight: 600; }
.rld-headline__val { font-size: clamp(2.3rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; color: var(--rld-ink); font-variant-numeric: tabular-nums; }
.rld-headline__vs { font-size: .8rem; color: var(--rld-muted); }
.rld-headline .rld-chg { font-size: .9rem; }
.rld-kv { display: grid; grid-template-columns: repeat(4, auto); gap: 10px 28px; margin: 0; }
.rld-kv div { display: flex; flex-direction: column; }
.rld-kv dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--rld-muted); font-weight: 600; }
.rld-kv dd { margin: 0; font-weight: 600; color: var(--rld-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rld-kv small { font-weight: 400; color: var(--rld-muted); font-size: .78rem; }

/* Chart */
.rld-chartcard { margin: 26px 0 0; padding: 16px 16px 12px; border: 1px solid var(--rld-line); border-radius: var(--rld-r); background: #fff; }
.rld-chartbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.rld-chartbar__title { font-weight: 600; color: var(--rld-ink); font-size: .95rem; }
.rld-chartbar__title small { font-weight: 400; color: var(--rld-muted); }
.rld-ranges { display: inline-flex; border: 1px solid var(--rld-line); border-radius: 999px; padding: 2px; background: var(--rld-mist); }
.rld-ranges button { font: 600 .78rem/1 var(--font, inherit); border: 0; background: transparent; color: var(--rld-muted); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.rld-ranges button[aria-pressed="true"] { background: #fff; color: var(--rld-ink); box-shadow: 0 1px 2px rgba(15, 52, 64, .12); }
.rld-chart { position: relative; min-height: 260px; color: var(--rld-accent); touch-action: pan-y; }
.rld-chart svg { display: block; overflow: visible; }
.rld-c-grid line { stroke: var(--rld-line); stroke-width: 1; }
.rld-c-grid line.zero { stroke: var(--rld-muted); stroke-opacity: .55; }
.rld-c-grid text, .rld-c-x text { fill: var(--rld-muted); font-size: 11.5px; font-family: var(--font, inherit); font-variant-numeric: tabular-nums; }
.rld-c-x line { stroke: var(--rld-line); }
.rld-c-line { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.rld-c-last { fill: var(--rld-coral); stroke: #fff; stroke-width: 2; }
.rld-c-series rect.pos { fill: currentColor; }
.rld-c-series rect.neg { fill: var(--rld-coral); }
.rld-c-band { fill: var(--rld-coral); fill-opacity: .1; }
.rld-c-break { stroke: var(--rld-muted); stroke-dasharray: 3 4; stroke-opacity: .7; }
.rld-c-hover line { stroke: var(--rld-ink); stroke-opacity: .35; stroke-dasharray: 2 3; }
.rld-c-hover circle { fill: #fff; stroke: var(--rld-ink); stroke-width: 2; }
.rld-tip { position: absolute; pointer-events: none; background: var(--rld-ink); color: #fff; padding: 7px 10px; border-radius: 8px; font-size: .78rem; line-height: 1.35; white-space: nowrap; box-shadow: 0 4px 14px rgba(15, 52, 64, .2); }
.rld-tip span { display: block; opacity: .75; }
.rld-tip strong { font-size: .95rem; font-variant-numeric: tabular-nums; }
.rld-chartcap { font-size: .78rem; color: var(--rld-muted); margin-top: 8px; }

/* Insight */
.rld-insight { padding: 20px 22px; border-radius: var(--rld-r); background: var(--rld-mist); border-left: 4px solid var(--rld-coral); }
.rld-insight .rld-h3 { margin-bottom: .45em; }
.rld-insight__body p { margin: 0 0 .7em; line-height: 1.75; color: var(--text, #23434a); }
.rld-insight__meta { margin: 0; font-size: .78rem; color: var(--rld-muted); }

/* Definition, meta */
.rld-block .prose { font-size: .98rem; }
.rld-block .prose p:last-child { margin-bottom: 0; }
.rld-why { margin-top: 10px; }
.rld-meta { display: grid; grid-template-columns: 200px 1fr; margin: 0 0 14px; border-top: 1px solid var(--rld-line); }
.rld-meta div { display: contents; }
.rld-meta dt, .rld-meta dd { padding: 9px 0; border-bottom: 1px solid var(--rld-line); margin: 0; font-size: .92rem; }
.rld-meta dt { color: var(--rld-muted); font-weight: 500; padding-right: 16px; }
.rld-meta dd { color: var(--rld-ink); }
.rld-meta a { text-decoration: underline; text-underline-offset: 3px; }
.rld-method { font-size: .92rem !important; color: var(--rld-muted); }
.rld-breaks { margin: 10px 0 0; padding-left: 1.2em; font-size: .9rem; }
.rld-showall { margin-top: 12px; }

/* Aside cards */
.rld-card { padding: 18px; border: 1px solid var(--rld-line); border-radius: var(--rld-r); background: #fff; }
.rld-card__title { font-size: .98rem; margin: 0 0 10px; }
.rld-card p { font-size: .88rem; margin: 0 0 14px; color: var(--text, #23434a); line-height: 1.6; }
.rld-card--accent { background: var(--rld-ink); border-color: var(--rld-ink); }
.rld-card--accent .rld-card__title, .rld-card--accent p { color: #fff; }
.rld-card--accent p { opacity: .85; }
.rld-card--accent .btn { background: var(--rld-coral); border-color: var(--rld-coral); color: var(--rld-ink); }
.rld-card--accent .btn:hover { background: #fff; border-color: #fff; color: var(--rld-ink); }
.rld-list { list-style: none; margin: 0 0 12px; padding: 0; }
.rld-list a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rld-line); font-size: .86rem; color: var(--rld-ink); }
.rld-list li:last-child a { border-bottom: 0; }
.rld-list a strong { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.rld-list a:hover span { color: var(--rld-accent); text-decoration: underline; text-underline-offset: 3px; }
.rld-list a[aria-current="page"] { color: var(--rld-accent); }
.rld-list a[aria-current="page"] span { font-weight: 700; }

@media (max-width: 1020px) {
	.rld-layout { grid-template-columns: minmax(0, 1fr); }
	.rld-aside { position: static; }
	.rld-kv { grid-template-columns: repeat(2, auto); justify-content: start; }
}
@media (max-width: 640px) {
	.hide-sm { display: none; }
	.rld-table th, .rld-table td { padding: 10px 12px; }
	.rld-table--summary tr { grid-template-columns: 1fr 1fr; }
	.rld-meta { grid-template-columns: 1fr; }
	.rld-meta dt { padding-bottom: 0; border-bottom: 0; font-size: .78rem; }
	.rld-chartcard { padding: 12px 8px 10px; }
	.rld-chartbar { padding: 0 6px; }
	.rld-kv dd { white-space: normal; }
	.rld-headline__val { font-size: 2.1rem; }
}
