/* BTO in 3D -- samtastic-core 1.21.349. Builds on hdb-3d / guide-3d / blog-3d CSS. */
.bt3d .h3d__hero .b3d-crumbs { text-align: center; }
.bt3d-badge { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin: 8px auto 18px; padding: 9px 14px; border-radius: 14px; font: 500 13.5px/1.35 Inter, sans-serif; background: rgba(255,255,255,.08); color: #e7eef8; border-left: 4px solid var(--bc, #6fb3d8); }
.h3d__card .bt3d-badge, .h3d__panel .bt3d-badge { display: flex; margin: 10px 0; background: #f3f6fa; color: var(--h3d-ink); }
.bt3d-badge b { font-weight: 800; }
.bt3d-badge--planned { --bc: #b388ff; }
.bt3d-badge--building { --bc: #6fb3d8; }
.bt3d-badge--completed_mop_pending { --bc: #f28e4c; }
.bt3d-badge--mop_this_year { --bc: #ffd166; }
.bt3d-badge--mop_met { --bc: #5ad19a; }
.bt3d-pill { display: inline-block; padding: 4px 9px; border-radius: 999px; font: 700 11px/1.1 Inter, sans-serif; white-space: nowrap; color: #0b1220; background: #6fb3d8; }
.bt3d-pill--planned { background: #d9c7ff; }
.bt3d-pill--building { background: #cfe5f4; }
.bt3d-pill--completed_mop_pending { background: #fbd5bd; }
.bt3d-pill--mop_this_year { background: #ffe7a3; }
.bt3d-pill--mop_met { background: #c4efda; color: #0a4a2c; }
.bt3d-mopd { display: block; margin-top: 2px; font: 600 10.5px/1.2 Inter, sans-serif; color: var(--h3d-muted); }

/* Tables */
.bt3d-mini { width: 100%; margin: 10px 0; font-size: 12.5px; }
.bt3d-mini th small, .bt3d-mini td small { display: block; font-weight: 500; color: var(--h3d-muted); font-size: 11px; }
.bt3d-mini tr[data-action] { cursor: pointer; }
.bt3d-mini tr.is-hit th, .bt3d-mini tr.is-hit td { background: #fff3d6; }
.bt3d-mini a { color: var(--h3d-ink) !important; text-decoration: none; font-weight: 700; }
.bt3d-mini a:hover { color: var(--h3d-accent) !important; }
.bt3d-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--h3d-line); background: #fff; }
.bt3d-table { width: 100%; border-collapse: collapse; font: 500 13.5px/1.35 Inter, sans-serif; min-width: 760px; }
.bt3d-table th, .bt3d-table td { padding: 10px 12px; border-bottom: 1px solid #eef2f7; text-align: left; vertical-align: top; }
.bt3d-table thead th { position: sticky; top: 0; background: #f6f8fb; font: 800 12px/1.2 Inter, sans-serif; color: var(--h3d-muted); text-transform: uppercase; letter-spacing: .04em; }
.bt3d-table tbody th a { color: var(--h3d-ink) !important; text-decoration: none; font-weight: 700; }
.bt3d-table tbody th a:hover { color: var(--h3d-accent) !important; text-decoration: underline; }
.bt3d-table tbody tr:hover { background: #f8fafc; }
.bt3d-controls { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
.bt3d-facts { width: 100%; max-width: 900px; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--h3d-line); font: 500 14px/1.45 Inter, sans-serif; }
.bt3d-facts th { width: 240px; text-align: left; padding: 11px 14px; background: #f6f8fb; color: var(--h3d-muted); font-weight: 700; vertical-align: top; }
.bt3d-facts td { padding: 11px 14px; border-bottom: 1px solid #eef2f7; }
.bt3d-facts a { color: var(--h3d-accent); }
.bt3d-src { margin-top: 16px !important; max-width: 1000px; }

/* MOP year control */
.bt3d-year { display: grid; grid-template-columns: auto auto auto 1fr; gap: 8px; align-items: center; margin: 14px 0 6px; }
.bt3d-year button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--h3d-line); background: #fff; font: 800 15px/1 Inter, sans-serif; cursor: pointer; }
.bt3d-year output { min-width: 58px; text-align: center; font: 800 24px/1 "Plus Jakarta Sans", sans-serif; color: var(--h3d-ink); }
.bt3d-tl { height: 110px; }

/* Timeline on a project */
.bt3d-timeline { list-style: none; margin: 14px 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.bt3d-timeline::before { content: ""; position: absolute; left: 16%; right: 16%; top: 9px; height: 3px; background: #e2e8f0; }
.bt3d-timeline li { position: relative; text-align: center; font: 600 12px/1.3 Inter, sans-serif; }
.bt3d-timeline i { display: block; width: 20px; height: 20px; margin: 0 auto 6px; border-radius: 50%; background: #e2e8f0; border: 3px solid #fff; box-shadow: 0 0 0 1px #cbd5e1; position: relative; }
.bt3d-timeline li.is-done i { background: #5ad19a; box-shadow: 0 0 0 1px #5ad19a; }
.bt3d-timeline b { display: block; color: var(--h3d-ink); }
.bt3d-timeline span { color: var(--h3d-muted); }

/* Matchmaker ranking */
.bt3d-rank { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.bt3d-rank li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 12px; background: #f3f6fa; cursor: pointer; }
.bt3d-rank li > b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #0b1220; color: var(--h3d-sun); font: 800 13px/1 Inter, sans-serif; }
.bt3d-rank a { color: var(--h3d-ink) !important; text-decoration: none; font: 800 14px/1.25 "Plus Jakarta Sans", sans-serif; }
.bt3d-rank small { display: block; font: 500 11.5px/1.35 Inter, sans-serif; color: var(--h3d-muted); }
.bt3d-rank em { font: 700 11px/1 Inter, sans-serif; font-style: normal; color: #116b34; white-space: nowrap; }

/* Journey steps */
.bt3d-steps { display: grid; gap: 6px; margin: 12px 0; }
.bt3d-step { display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px; padding: 10px 12px; border-radius: 12px; background: #f3f6fa; text-decoration: none; color: var(--h3d-ink) !important; }
.bt3d-step:hover { background: #e8effa; }
.bt3d-step i { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--h3d-accent); color: #fff; font: 800 13px/1 Inter, sans-serif; font-style: normal; }
.bt3d-step b { font: 800 14px/1.25 "Plus Jakarta Sans", sans-serif; }
.bt3d-step span { font: 500 12px/1.35 Inter, sans-serif; color: var(--h3d-muted); }
.bt3d .pb3d__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bt3d-tool .bto-page__title { display: none; }

@media (max-width: 900px) {
	.bt3d-controls { grid-template-columns: 1fr 1fr; }
	.bt3d-facts th { width: 40%; }
}
.bt3d-odds--good { color: #116b34 !important; }
.bt3d-odds--fair { color: #8a5a00 !important; }
.bt3d-odds--tough { color: #a1201a !important; }
