/* WebCrafters Mortgage Calculator. Colours fall back to the plugin palette
   when the theme does not define them. */
.wcm {
	--wcm-green: var(--green, #1B4927);
	--wcm-green-dark: var(--green-dark, #123A1E);
	--wcm-gold: var(--yellow, #F7D04C);
	--wcm-gold-deep: #E8B83A;
	--wcm-ink: var(--ink, #14201A);
	--wcm-body: #4A5650;
	--wcm-muted: #6B7770;
	--wcm-line: #E3E8E4;
	--wcm-tint: #F4F7F5;
	--wcm-radius: 22px;
	display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start;
	color: var(--wcm-ink); font-size: 16px; line-height: 1.5;
}
.wcm *, .wcm *::before, .wcm *::after { box-sizing: border-box; }
.wcm [hidden] { display: none !important; }

/* ---------- Form ---------- */
.wcm-form { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 116px); overflow: auto; padding: 2px 6px 8px 2px; scrollbar-width: thin; }
.wcm-panel { flex-shrink: 0; background: #fff; border: 1px solid var(--wcm-line); border-radius: var(--wcm-radius); padding: 20px; box-shadow: 0 12px 30px rgba(20, 32, 26, .05); }
.wcm-panel:first-child { position: relative; overflow: hidden; }
.wcm-panel:first-child::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--wcm-green), var(--wcm-gold) 50%, var(--wcm-green)); }
.wcm-panel__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; list-style: none; cursor: default; }
.wcm-panel__head::-webkit-details-marker { display: none; }
.wcm-panel__head h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--wcm-ink); }
.wcm-panel__head p { margin: 2px 0 0; font-size: 13px; color: var(--wcm-muted); }
.wcm-step { flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; background: var(--wcm-gold); color: var(--wcm-ink); }
.wcm-panel--more { padding: 0; }
.wcm-panel--more > summary { margin: 0; padding: 18px 20px; cursor: pointer; }
.wcm-panel--more[open] > summary { padding-bottom: 6px; }
.wcm-panel--more .wcm-panel__body { padding: 8px 20px 20px; }
.wcm-chevron { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: var(--wcm-tint); position: relative; transition: transform .25s; flex: none; }
.wcm-chevron::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--wcm-green); border-bottom: 2px solid var(--wcm-green); transform: translate(-50%, -70%) rotate(45deg); }
.wcm-panel--more[open] .wcm-chevron { transform: rotate(180deg); }

.wcm-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; min-width: 0; }
.wcm-label { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--wcm-ink); }
.wcm-input { position: relative; display: flex; align-items: center; height: 48px; border: 1px solid #CBD4CE; border-radius: 12px; background: var(--wcm-tint); transition: border-color .2s, background .2s, box-shadow .2s; }
.wcm-input:hover { border-color: #9DB3A4; }
.wcm-input:focus-within { border-color: var(--wcm-green); background: #fff; box-shadow: 0 0 0 3px rgba(247, 208, 76, .55); }
.wcm-input input, .wcm-input select { flex: 1; min-width: 0; height: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 14px !important; font: inherit; font-size: 16px; font-weight: 700; color: var(--wcm-ink); outline: none; appearance: none; -webkit-appearance: none; min-height: 0 !important; }
.wcm-affix { padding: 0 0 0 14px; font-weight: 700; color: var(--wcm-muted); }
.wcm-input--money input { padding-left: 6px !important; }
.wcm-input--pct .wcm-affix { padding: 0 14px 0 0; }
.wcm-select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--wcm-green); border-bottom: 2px solid var(--wcm-green); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.wcm-select select { padding-right: 36px !important; cursor: pointer; }
.wcm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wcm-split { display: grid; grid-template-columns: 1fr 104px; gap: 8px; }
.wcm-hint { font-size: 12.5px; font-weight: 600; color: var(--wcm-muted); }
.wcm-hint.is-bad { color: #B42318; }
.wcm-range { width: 100%; margin: -4px 0 16px; accent-color: var(--wcm-green); height: 6px; }
.wcm-help { position: relative; display: inline-flex; width: 16px; height: 16px; border-radius: 50%; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; background: var(--wcm-tint); color: var(--wcm-green); border: 1px solid var(--wcm-line); cursor: help; }
.wcm-help::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 240px; padding: 10px 12px; border-radius: 10px; background: var(--wcm-ink); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.45; text-align: left; opacity: 0; visibility: hidden; transition: opacity .2s; z-index: 5; pointer-events: none; }
.wcm-help:hover::after, .wcm-help:focus::after { opacity: 1; visibility: visible; }
.wcm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 6px; }
.wcm-chip { position: relative; cursor: pointer; }
.wcm-chip input { position: absolute; opacity: 0; pointer-events: none; }
.wcm-chip span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; border: 1px solid #CBD4CE; background: #fff; font-size: 13.5px; font-weight: 700; color: var(--wcm-body); transition: all .2s; }
.wcm-chip span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #B8C4BC; transition: all .2s; background: #fff; }
.wcm-chip input:checked + span { border-color: var(--wcm-green); background: rgba(27, 73, 39, .06); color: var(--wcm-green); }
.wcm-chip input:checked + span::before { border-color: var(--wcm-green); background: var(--wcm-green); box-shadow: inset 0 0 0 3px #fff; }
.wcm-chip input:focus-visible + span { outline: 3px solid rgba(247, 208, 76, .7); outline-offset: 2px; }

/* ---------- Results ---------- */
.wcm-results { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.wcm-hero { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; padding: clamp(24px, 3vw, 34px); border-radius: 26px; color: #fff; overflow: hidden;
	background: radial-gradient(120% 120% at 0% 0%, #2A6A3D 0%, #1B4927 40%, #0F2416 100%); box-shadow: 0 30px 60px rgba(15, 36, 22, .25); }
.wcm-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(247, 208, 76, .25), transparent); pointer-events: none; }
.wcm-hero__main, .wcm-hero__side { display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; }
.wcm-hero__side { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .18); justify-content: center; }
.wcm-hero__label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--wcm-gold); }
.wcm-hero__value { font-size: clamp(40px, 5vw, 60px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.wcm-hero__value--sm { font-size: clamp(28px, 3vw, 38px); }
.wcm-hero__sub { font-size: 14px; color: rgba(255, 255, 255, .78); }
.wcm-print { position: absolute; top: 16px; right: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: background .2s; }
.wcm-print:hover { background: rgba(255, 255, 255, .18); }
.wcm-print svg { width: 15px; height: 15px; }

.wcm-alerts:empty { display: none; }
.wcm-alerts { display: flex; flex-direction: column; gap: 8px; }
.wcm-alert { padding: 12px 16px 12px 42px; border-radius: 14px; font-size: 14px; line-height: 1.5; position: relative; }
.wcm-alert::before { content: "!"; position: absolute; left: 14px; top: 12px; width: 18px; height: 18px; border-radius: 50%; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; color: #fff; }
.wcm-alert.is-warn { background: #FFF6DB; color: #6B4E00; }
.wcm-alert.is-warn::before { background: #C99A06; }
.wcm-alert.is-bad { background: #FDECEA; color: #8A1C12; }
.wcm-alert.is-bad::before { background: #D92D20; }

.wcm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wcm-kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: #fff; border: 1px solid var(--wcm-line); border-radius: 18px; min-width: 0; }
.wcm-kpi span { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--wcm-muted); }
.wcm-kpi b { font-size: clamp(20px, 1.9vw, 26px); font-weight: 800; letter-spacing: -.02em; color: var(--wcm-ink); white-space: nowrap; }
.wcm-kpi small { font-size: 12.5px; color: var(--wcm-muted); line-height: 1.4; }

.wcm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wcm-card { background: #fff; border: 1px solid var(--wcm-line); border-radius: var(--wcm-radius); padding: clamp(18px, 2.2vw, 26px); min-width: 0; box-shadow: 0 12px 30px rgba(20, 32, 26, .04); }
.wcm-card h4 { margin: 0 0 16px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--wcm-ink); }
.wcm-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.wcm-card__head h4 { margin: 0; }
.wcm-tag { padding: 6px 12px; border-radius: 999px; background: rgba(27, 73, 39, .08); color: var(--wcm-green); font-size: 13px; font-weight: 800; }
.wcm-chart { position: relative; height: 300px; }
.wcm-donut { position: relative; height: 220px; margin-bottom: 14px; }
.wcm-donut__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.wcm-donut__center b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.wcm-donut__center span { font-size: 12.5px; color: var(--wcm-muted); }
.wcm-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wcm-legend li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; font-size: 14px; }
.wcm-legend i { width: 12px; height: 12px; border-radius: 4px; }
.wcm-legend b { font-weight: 800; }
.wcm-list { margin: 0; display: flex; flex-direction: column; }
.wcm-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--wcm-line); }
.wcm-list > div:last-child { border-bottom: 0; }
.wcm-list dt { font-size: 14px; color: var(--wcm-body); }
.wcm-list dd { margin: 0; font-size: 14.5px; font-weight: 800; text-align: right; }

.wcm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wcm-table th, .wcm-table td { padding: 10px 0; border-bottom: 1px solid var(--wcm-line); text-align: left; }
.wcm-table td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.wcm-table tbody th { font-weight: 500; color: var(--wcm-body); }
.wcm-table tr.is-strong th, .wcm-table tr.is-strong td { font-weight: 800; color: var(--wcm-ink); }
.wcm-table tr.is-good td, .wcm-table tr.is-good th { color: #18794E; }
.wcm-table tr.is-bad td, .wcm-table tr.is-bad th { color: #B42318; }
.wcm-table tfoot th, .wcm-table tfoot td { padding-top: 14px; border-bottom: 0; font-size: 17px; font-weight: 800; color: var(--wcm-ink); }
.wcm-table-wrap { max-height: 460px; overflow: auto; border: 1px solid var(--wcm-line); border-radius: 14px; }
.wcm-table--schedule th, .wcm-table--schedule td { padding: 10px 14px; text-align: right; white-space: nowrap; }
.wcm-table--schedule th:first-child, .wcm-table--schedule td:first-child { text-align: left; }
.wcm-table--schedule thead th { position: sticky; top: 0; background: var(--wcm-tint); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--wcm-muted); z-index: 1; }
.wcm-table--schedule tbody tr:hover { background: #FBFCFB; }
.wcm-table--schedule tr.is-term td { background: #FFF8E1; }
.wcm-pill { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--wcm-gold); color: var(--wcm-ink); font-size: 11px; font-weight: 800; }
.wcm-note { margin: 12px 0 0; font-size: 13px; line-height: 1.55; color: var(--wcm-muted); }
.wcm-note:empty { display: none; }
.wcm-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--wcm-tint); border: 1px solid var(--wcm-line); }
.wcm-toggle button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 700; color: var(--wcm-body); cursor: pointer; }
.wcm-toggle button.is-on { background: var(--wcm-green); color: #fff; }

.wcm-q-lead { margin: 0 0 8px; font-size: 14.5px; color: var(--wcm-body); }
.wcm-meter { margin-top: 14px; }
.wcm-meter__top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.wcm-meter__bar { position: relative; height: 10px; border-radius: 999px; background: var(--wcm-tint); }
.wcm-meter__bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: #18794E; transition: width .4s; }
.wcm-meter.is-bad .wcm-meter__bar span { background: #D92D20; }
.wcm-meter__bar i { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--wcm-ink); }
.wcm-meter small { font-size: 12px; color: var(--wcm-muted); }
.wcm-q-result { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 700; }
.wcm-q-result.is-good { background: #E7F6EE; color: #18794E; }
.wcm-q-result.is-bad { background: #FDECEA; color: #8A1C12; }

.wcm-programs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wcm-program { padding: 16px 18px; border-radius: 16px; background: var(--wcm-tint); border: 1px solid var(--wcm-line); }
.wcm-program b { display: block; font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.wcm-program p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--wcm-body); }

.wcm-disclaimer { display: flex; gap: 14px; padding: 18px 20px; border-radius: 18px; background: #FBF8F1; border: 1px solid #EFE6CF; }
.wcm-disclaimer svg { flex: none; width: 22px; height: 22px; color: #9A6700; margin-top: 2px; }
.wcm-disclaimer p { margin: 0; font-size: 13px; line-height: 1.6; color: #5B5440; }
.wcm-disclaimer .wcm-reviewed { margin-top: 8px; font-weight: 700; }
.wcm-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 18px 18px 24px; border-radius: 18px; background: var(--wcm-gold); color: var(--wcm-ink); font-weight: 800; font-size: 16px; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.wcm-cta:hover { color: var(--wcm-ink); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(232, 184, 58, .35); }
.wcm-cta__icon { flex: none; width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--wcm-ink); color: var(--wcm-gold); }
.wcm-cta__icon svg { width: 18px; height: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.wcm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.wcm { grid-template-columns: minmax(0, 1fr); }
	.wcm-form { position: static; max-height: none; overflow: visible; padding: 0; }
	.wcm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.wcm-hero { grid-template-columns: 1fr; }
	.wcm-hero__side { padding: 16px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
	.wcm-row { grid-template-columns: 1fr; gap: 0; }
	.wcm-programs { grid-template-columns: 1fr; }
	.wcm-chart { height: 240px; }
	.wcm-help::after { left: auto; right: -10px; transform: none; }
}

/* ---------- Print ---------- */
@media print {
	body * { visibility: hidden; }
	.wcm, .wcm * { visibility: visible; }
	.wcm { position: absolute; left: 0; top: 0; width: 100%; display: block; }
	.wcm-form, .wcm-print, .wcm-cta, .wcm-toggle { display: none !important; }
	.wcm-card, .wcm-kpi, .wcm-hero { break-inside: avoid; box-shadow: none; }
	.wcm-hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.wcm-table-wrap { max-height: none; overflow: visible; }
}


/* ---------- Simple single-flow layout ---------- */
.wcm { display: flex; flex-direction: column; gap: 18px; }
.wcm-form { position: static; max-height: none; overflow: visible; padding: 0; gap: 12px; }
.wcm-panel:first-child { padding: clamp(20px, 2.6vw, 30px); }
.wcm-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 18px; align-items: start; }
.wcm-fieldset { display: flex; flex-direction: column; min-width: 0; }
.wcm-fieldset .wcm-field { margin-bottom: 8px; }
.wcm-fieldset .wcm-range { margin: 2px 0 12px; }
.wcm-panel:first-child .wcm-chips { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--wcm-line); }
.wcm-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.wcm-more .wcm-panel--more { box-shadow: none; }
.wcm-more .wcm-panel--more > summary { padding: 16px 18px; }
.wcm-more .wcm-panel--more .wcm-panel__body { padding: 6px 18px 18px; }
.wcm-more .wcm-row { grid-template-columns: 1fr; gap: 0; }
.wcm-more .wcm-panel__head h3 { font-size: 15.5px; }
.wcm-panel--more:hover { border-color: #CBD4CE; }
.wcm-panel--more[open] { border-color: rgba(27, 73, 39, .35); box-shadow: 0 12px 30px rgba(20, 32, 26, .06); }
@media (max-width: 1024px) {
	.wcm-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wcm-more { grid-template-columns: 1fr; }
	.wcm-more .wcm-row { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 600px) {
	.wcm-fields { grid-template-columns: 1fr; }
	.wcm-more .wcm-row { grid-template-columns: 1fr; gap: 0; }
}
.wcm { align-items: stretch; }
.wcm-form, .wcm-results { width: 100%; }
.wcm-more .wcm-panel:first-child { padding: 0; overflow: visible; }
.wcm-more .wcm-panel:first-child::before { display: none; }
@media (min-width: 1025px) { .wcm-more .wcm-row { grid-template-columns: 1fr 1fr; gap: 10px; } }
.wcm-split { grid-template-columns: minmax(0, 1fr) 92px; } .wcm-split > * { min-width: 0; } .wcm-input--pct input { width: 100%; }

/* ---------- Advanced calculation button + modal ---------- */
.wcm-panel:first-child .wcm-panel__head { margin-bottom: 18px; }
.wcm-adv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--wcm-line); }
.wcm-panel:first-child .wcm-chips { border-top: 0; padding-top: 0; margin-top: 2px; }
.wcm-adv-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--wcm-green); background: #fff; color: var(--wcm-green);
	font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.wcm-adv-btn svg { width: 18px; height: 18px; }
.wcm-adv-btn:hover { background: var(--wcm-green); color: #fff; transform: translateY(-1px); }
.wcm-adv-btn:focus-visible { outline: 3px solid rgba(247, 208, 76, .7); outline-offset: 2px; }
.wcm-adv-count { padding: 2px 9px; border-radius: 999px; background: var(--wcm-gold); color: var(--wcm-ink); font-size: 12px; font-weight: 800; }
.wcm-adv-hint { font-size: 13px; color: var(--wcm-muted); }

.wcm-modal { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--wcm-ink);
	box-shadow: 0 40px 100px rgba(10, 20, 15, .35); opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1); overflow: hidden; }
.wcm-modal.is-open { opacity: 1; transform: none; }
.wcm-modal::backdrop { background: rgba(18, 28, 22, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.wcm-modal__inner { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.wcm-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 26px 16px; border-bottom: 1px solid var(--wcm-line); position: relative; }
.wcm-modal__head::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--wcm-green), var(--wcm-gold) 50%, var(--wcm-green)); }
.wcm-modal__head h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.wcm-modal__head p { margin: 4px 0 0; font-size: 14px; color: var(--wcm-muted); }
.wcm-modal__close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--wcm-line); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--wcm-ink); transition: background .2s, transform .2s; }
.wcm-modal__close:hover { background: var(--wcm-tint); transform: rotate(90deg); }
.wcm-modal__close svg { width: 18px; height: 18px; }
.wcm-modal__body { padding: 8px 26px 8px; overflow: auto; }
.wcm-adv { padding: 18px 0; border-bottom: 1px solid var(--wcm-line); }
.wcm-adv:last-child { border-bottom: 0; }
.wcm-adv h4 { margin: 0 0 14px; font-size: 16px; font-weight: 800; }
.wcm-adv .wcm-row { grid-template-columns: 1fr 1fr; gap: 12px; }
.wcm-adv__more { margin-top: 14px; }
.wcm-modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 26px; border-top: 1px solid var(--wcm-line); background: var(--wcm-tint); }
.wcm-btn { padding: 13px 22px; border-radius: 999px; border: 0; background: var(--wcm-green); color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; transition: background .2s, transform .2s; }
.wcm-btn:hover { background: var(--wcm-green-dark); transform: translateY(-1px); }
.wcm-btn-text { border: 0; background: none; padding: 8px 4px; font: inherit; font-size: 14px; font-weight: 700; color: var(--wcm-muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.wcm-btn-text:hover { color: var(--wcm-ink); }
.wcm-switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14.5px; font-weight: 700; }
.wcm-switch input { position: absolute; opacity: 0; pointer-events: none; }
.wcm-switch__ui { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: #CBD4CE; transition: background .2s; }
.wcm-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.wcm-switch input:checked + .wcm-switch__ui { background: var(--wcm-green); }
.wcm-switch input:checked + .wcm-switch__ui::after { transform: translateX(18px); }
.wcm-switch input:focus-visible + .wcm-switch__ui { outline: 3px solid rgba(247, 208, 76, .7); outline-offset: 2px; }

/* Report adapts to what was entered */
.wcm-hero.is-single { grid-template-columns: 1fr; }
.wcm-grid.is-single { grid-template-columns: 1fr; }
@media (max-width: 600px) {
	.wcm-modal { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
	.wcm-modal__inner { max-height: 92vh; }
	.wcm-modal__head, .wcm-modal__body, .wcm-modal__foot { padding-left: 18px; padding-right: 18px; }
	.wcm-adv .wcm-row { grid-template-columns: 1fr; gap: 0; }
	.wcm-adv-hint { display: none; }
	.wcm-adv-btn { width: 100%; justify-content: center; }
}
.wcm-input input::placeholder { color: #A9B4AD; font-weight: 500; opacity: 1; }

/* Advanced modal: three columns, no scrolling on desktop */
@media (min-width: 901px) {
	.wcm-modal { width: min(1180px, calc(100vw - 48px)); }
	.wcm-modal__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; overflow: visible; }
	.wcm-adv { padding: 20px 22px; border-bottom: 0; border-right: 1px solid var(--wcm-line); }
	.wcm-adv:last-child { border-right: 0; }
	.wcm-adv h4 { margin-bottom: 12px; font-size: 15px; letter-spacing: .01em; }
	.wcm-adv .wcm-row { grid-template-columns: 1fr; gap: 0; }
	.wcm-adv .wcm-adv__more .wcm-row { grid-template-columns: 1fr 1fr; gap: 10px; }
	.wcm-adv .wcm-field { margin-bottom: 10px; gap: 5px; }
	.wcm-adv .wcm-label { font-size: 13px; }
	.wcm-adv .wcm-input { height: 42px; border-radius: 10px; }
	.wcm-adv .wcm-input input { font-size: 15px; }
	.wcm-adv .wcm-chips { margin: 0 0 10px; }
	.wcm-adv .wcm-chip span { padding: 6px 12px 6px 8px; font-size: 13px; }
	.wcm-adv__more { margin-top: 12px; }
	.wcm-adv .wcm-switch { font-size: 13.5px; align-items: flex-start; }
	.wcm-modal__head { padding: 20px 24px 14px; }
	.wcm-modal__foot { padding: 14px 24px; }
}
@media (min-width: 901px) and (max-height: 760px) {
	.wcm-modal__body { overflow: auto; }
}
@media (min-width: 601px) and (max-width: 900px) {
	.wcm-modal { width: min(760px, calc(100vw - 32px)); }
}

/* ---------- Tools grid (hub page) ---------- */
.wcm-tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wcm-tool-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 22px; background: #fff; border: 1px solid #E3E8E4; color: #14201A; text-decoration: none;
	box-shadow: 0 12px 30px rgba(20, 32, 26, .05); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; }
.wcm-tool-card::after { content: ""; position: absolute; top: 0; left: 18%; right: 18%; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, transparent, #E8B83A 20%, #F7D877 50%, #E8B83A 80%, transparent); transform: scaleX(0); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.wcm-tool-card:hover { color: #14201A; transform: translateY(-4px); border-color: rgba(27, 73, 39, .3); box-shadow: 0 24px 50px rgba(20, 32, 26, .1); }
.wcm-tool-card:hover::after { transform: scaleX(1); }
.wcm-tool-card__num { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; background: #F7D04C; }
.wcm-tool-card b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.wcm-tool-card__text { font-size: 15px; line-height: 1.6; color: #4A5650; flex: 1; }
.wcm-tool-card__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; font-weight: 800; color: #1B4927; }
.wcm-tool-card__go svg { width: 15px; height: 15px; transition: transform .25s; }
.wcm-tool-card:hover .wcm-tool-card__go svg { transform: translateX(4px); }
@media (max-width: 960px) { .wcm-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .wcm-tools-grid { grid-template-columns: 1fr; } }
.wcm-rules { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; line-height: 1.6; color: #4A5650; }
.wcm-rules b { color: #14201A; }
.wcm-alert.is-info { background: #EAF3EC; color: #1B4927; }
.wcm-alert.is-info::before { content: "i"; background: #1B4927; }

/* Sources */
.wcm-sources { padding: 26px; border-radius: 22px; background: #fff; border: 1px solid #E4E9E5; }
.wcm-sources__head { margin-bottom: 18px; }
.wcm-sources__head h4 { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: #14201A; }
.wcm-sources__head p { margin: 0; font-size: 14px; color: #5E6B64; }
.wcm-sources__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.wcm-source { padding: 18px; border-radius: 16px; background: #F6F8F6; border: 1px solid #ECF0ED; min-width: 0; }
.wcm-source__org { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid #E4E9E5; }
.wcm-source__org b { display: block; font-size: 15px; font-weight: 800; color: #14201A; }
.wcm-source__org small { display: block; font-size: 12.5px; line-height: 1.4; color: #5E6B64; }
.wcm-source__badge { flex: none; display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 8px; border-radius: 12px; background: var(--org); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.wcm-source__logo { flex: none; display: grid; place-items: center; width: 132px; height: 64px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid #E4E9E5; }
.wcm-source__logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.wcm-source__logo.is-osfi { width: 64px; background: #26374A; border-color: #26374A; }
.wcm-source__logo.is-canada img, .wcm-source__logo.is-bc img { width: 100%; }
.wcm-source ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.wcm-source li a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #0E5A3C; text-decoration: none; }
.wcm-source li a:hover { text-decoration: underline; }
.wcm-source li a svg { flex: none; width: 14px; height: 14px; }
.wcm-source li span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; color: #5E6B64; }
@media (max-width: 600px) { .wcm-sources { padding: 18px; } }

/* Small phones: let the big numbers wrap instead of pushing the page sideways */
@media (max-width: 480px) {
	.wcm-kpi { padding: 14px; }
	.wcm-kpi b { font-size: 20px; white-space: normal; overflow-wrap: anywhere; }
}
