/*
Theme Name: LearnLoonie
Theme URI: https://learnloonie.ca
Description: Custom theme for LearnLoonie — plain-language Canadian money guides for newcomers.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: learnloonie
*/

:root {
	--ll-ink: #0b2f2c;
	--ll-teal: #0f766e;
	--ll-teal-deep: #0d5c55;
	--ll-mint: #d7f5f0;
	--ll-mint-soft: #eef9f6;
	--ll-gold: #f5b83d;
	--ll-gold-deep: #b45309;
	--ll-paper: #fbfaf6;
	--ll-text: #1e293b;
	--ll-muted: #5b6b7f;
	--ll-line: #e2e8f0;
	--ll-white: #ffffff;

	--ll-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--ll-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--ll-radius: 14px;
	--ll-wrap: 1160px;
	--ll-gutter: clamp(16px, 4vw, 32px);
	--ll-shadow: 0 1px 2px rgba(11, 47, 44, 0.06), 0 6px 20px -8px rgba(11, 47, 44, 0.14);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--ll-paper);
	color: var(--ll-text);
	font-family: var(--ll-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3, h4 {
	font-family: var(--ll-serif);
	font-weight: 650;
	color: var(--ll-ink);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	font-optical-sizing: auto;
}

a { color: var(--ll-teal); text-underline-offset: 3px; }
a:hover { color: var(--ll-teal-deep); }
img, svg { max-width: 100%; }

:focus-visible { outline: 3px solid var(--ll-gold); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.ll-skip {
	position: absolute; left: -999px; top: 8px; z-index: 100;
	background: var(--ll-ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.ll-skip:focus { left: 8px; }

.ll-wrap { width: 100%; max-width: var(--ll-wrap); margin: 0 auto; padding: 0 var(--ll-gutter); }
.ll-wrap--narrow { max-width: 780px; }

.ll-icon { flex: none; vertical-align: middle; }

/* ---------- Buttons ---------- */
.ll-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 13px 22px; border-radius: 999px;
	font-weight: 700; font-size: 1rem; text-decoration: none;
	border: 2px solid transparent; cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.ll-btn:active { transform: translateY(1px); }
.ll-btn--primary { background: var(--ll-ink); color: #fff; }
.ll-btn--primary:hover { background: var(--ll-teal-deep); color: #fff; }
.ll-btn--primary .ll-icon { transition: transform 0.15s ease; }
.ll-btn--primary:hover .ll-icon { transform: translateX(3px); }
.ll-btn--ghost { border-color: var(--ll-ink); color: var(--ll-ink); }
.ll-btn--ghost:hover { background: var(--ll-ink); color: #fff; }

/* ---------- Header ---------- */
.ll-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 250, 246, 0.92);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--ll-line);
}
.admin-bar .ll-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ll-header { top: 46px; } }

.ll-header__inner { display: flex; align-items: center; gap: 24px; min-height: 70px; }

.ll-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.ll-brand__name { font-family: var(--ll-serif); font-weight: 650; font-size: 1.35rem; color: var(--ll-ink); letter-spacing: -0.02em; }
.ll-brand__name span { color: var(--ll-teal); }

.ll-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.ll-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.ll-nav__list a { white-space: nowrap;
	display: block; padding: 8px 12px; border-radius: 8px;
	color: var(--ll-text); font-weight: 600; font-size: 0.95rem; text-decoration: none;
}
.ll-nav__list a:hover { background: var(--ll-mint-soft); color: var(--ll-teal-deep); }

.ll-nav__search {
	display: flex; align-items: center; gap: 6px;
	background: var(--ll-white); border: 1px solid var(--ll-line); border-radius: 999px;
	padding: 0 12px; color: var(--ll-muted);
}
.ll-nav__search input {
	border: 0; outline: 0; background: transparent; font: inherit; font-size: 0.95rem;
	padding: 8px 0; width: 140px; color: var(--ll-text);
}
.ll-nav__search:focus-within { border-color: var(--ll-teal); box-shadow: 0 0 0 3px var(--ll-mint); }

.ll-nav-toggle {
	display: none; margin-left: auto; background: none; border: 0; color: var(--ll-ink);
	padding: 8px; border-radius: 8px; cursor: pointer;
}

@media (max-width: 1080px) {
	.ll-nav-toggle { display: inline-flex; }
	.ll-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 12px;
		background: var(--ll-paper); border-bottom: 1px solid var(--ll-line);
		padding: 12px var(--ll-gutter) 20px; margin: 0;
	}
	.ll-nav.is-open { display: flex; }
	.ll-nav__list { flex-direction: column; }
	.ll-nav__list a { white-space: nowrap; padding: 12px; font-size: 1.05rem; }
	.ll-nav__search input { width: 100%; padding: 12px 0; }
}

/* ---------- Hero ---------- */
.ll-hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(900px 400px at 85% 20%, rgba(245, 184, 61, 0.18), transparent 60%),
		radial-gradient(700px 500px at 10% 100%, rgba(15, 118, 110, 0.10), transparent 60%);
	border-bottom: 1px solid var(--ll-line);
}
.ll-hero__inner {
	display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center;
	padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(48px, 8vw, 104px);
}
.ll-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--ll-mint); color: var(--ll-teal-deep);
	font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase;
	padding: 6px 12px; border-radius: 999px; margin: 0 0 22px;
}
.ll-hero h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 650; letter-spacing: -0.025em; margin-bottom: 20px; }
.ll-hero h1 em { font-style: italic; color: var(--ll-teal); font-weight: 500; }
.ll-hero__lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ll-muted); max-width: 36em; margin: 0 0 32px; }
.ll-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ll-hero__art { position: relative; display: grid; place-items: center; min-height: 320px; }
.ll-coin { filter: drop-shadow(0 24px 40px rgba(180, 83, 9, 0.28)); animation: ll-float 6s ease-in-out infinite; }
.ll-coin .ll-mark { width: clamp(160px, 22vw, 240px); height: auto; }
@keyframes ll-float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-10px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .ll-coin { animation: none; transform: rotate(-6deg); } }

.ll-chips { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; pointer-events: none; }
.ll-chips li {
	position: absolute; background: var(--ll-white); border: 1px solid var(--ll-line);
	box-shadow: var(--ll-shadow); border-radius: 999px; padding: 6px 14px;
	font-weight: 700; font-size: 0.9rem; color: var(--ll-ink); white-space: nowrap;
}
.ll-chips li:nth-child(1) { top: 6%;  left: 8%; }
.ll-chips li:nth-child(2) { top: 14%; right: 4%; }
.ll-chips li:nth-child(3) { top: 46%; left: 0; }
.ll-chips li:nth-child(4) { top: 52%; right: 0; color: var(--ll-teal-deep); }
.ll-chips li:nth-child(5) { bottom: 10%; left: 12%; }
.ll-chips li:nth-child(6) { bottom: 4%; right: 18%; }
.ll-chips li:nth-child(7) { top: 0; left: 44%; background: var(--ll-ink); color: #fff; border-color: var(--ll-ink); }

@media (max-width: 860px) {
	.ll-hero__inner { grid-template-columns: 1fr; gap: 24px; }
	.ll-hero__art { min-height: 260px; order: -1; }
	.ll-chips li { font-size: 0.8rem; padding: 4px 10px; }
}

/* ---------- Sections ---------- */
.ll-section { padding: clamp(56px, 8vw, 96px) 0; }
.ll-section--tint { background: var(--ll-mint-soft); border-top: 1px solid var(--ll-line); border-bottom: 1px solid var(--ll-line); }
.ll-section__head { max-width: 640px; margin-bottom: 36px; }
.ll-section__head h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.ll-section__head p { color: var(--ll-muted); font-size: 1.1rem; margin: 0; }
.ll-section__head--icon { display: flex; gap: 18px; align-items: flex-start; max-width: 760px; }

/* ---------- Cards ---------- */
.ll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }

.ll-card {
	position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%;
	background: var(--ll-white); border: 1px solid var(--ll-line); border-radius: var(--ll-radius);
	padding: 22px; text-decoration: none; color: var(--ll-text);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.ll-card:hover { transform: translateY(-3px); box-shadow: var(--ll-shadow); border-color: #c7e7e1; color: var(--ll-text); }
.ll-card__num { font-family: var(--ll-serif); font-weight: 650; color: var(--ll-gold-deep); font-size: 0.95rem; }
.ll-card__title { font-family: var(--ll-serif); font-weight: 650; font-size: 1.3rem; color: var(--ll-ink); line-height: 1.2; }
.ll-card__desc { color: var(--ll-muted); font-size: 0.97rem; line-height: 1.5; flex: 1; }
.ll-card__meta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--ll-teal); font-weight: 600; }

.ll-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: none; }
@media (max-width: 1000px) { .ll-path { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .ll-path { grid-template-columns: 1fr; } }

/* ---------- Topics ---------- */
.ll-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
@media (max-width: 380px) { .ll-topics { grid-template-columns: 1fr; } }
.ll-topic {
	background: var(--ll-white); border: 1px solid var(--ll-line); border-radius: var(--ll-radius);
	padding: 28px; display: flex; flex-direction: column;
}
.ll-topic__icon {
	display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px;
	background: var(--ll-mint); color: var(--ll-teal-deep); margin-bottom: 18px;
}
.ll-section__head--icon .ll-topic__icon { margin: 4px 0 0; }
.ll-topic h3 { font-size: 1.45rem; margin-bottom: 8px; }
.ll-topic h3 a { color: inherit; text-decoration: none; }
.ll-topic h3 a:hover { color: var(--ll-teal); }
.ll-topic > p { color: var(--ll-muted); margin: 0 0 16px; }
.ll-topic ul { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--ll-line); }
.ll-topic li { border-bottom: 1px solid var(--ll-line); }
.ll-topic li a {
	display: flex; justify-content: space-between; padding: 10px 2px;
	color: var(--ll-text); font-weight: 600; text-decoration: none;
}
.ll-topic li a::after { content: "→"; color: var(--ll-line); transition: color 0.15s, transform 0.15s; }
.ll-topic li a:hover { color: var(--ll-teal-deep); }
.ll-topic li a:hover::after { color: var(--ll-teal); transform: translateX(3px); }
.ll-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 700; text-decoration: none; }

/* ---------- Promise band ---------- */
.ll-promise { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.ll-promise h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.ll-promise p { color: var(--ll-muted); font-size: 1.1rem; }
.ll-promise__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ll-promise__list li {
	display: flex; align-items: center; gap: 18px;
	background: var(--ll-ink); color: #cfe7e3; border-radius: var(--ll-radius); padding: 18px 22px;
}
.ll-promise__list strong { font-family: var(--ll-serif); font-size: 2.4rem; color: var(--ll-gold); min-width: 2ch; line-height: 1; }
@media (max-width: 860px) { .ll-promise { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Guide page ---------- */
.ll-guide__head {
	background:
		radial-gradient(700px 300px at 90% 0%, rgba(245, 184, 61, 0.16), transparent 60%),
		var(--ll-mint-soft);
	border-bottom: 1px solid var(--ll-line);
	padding: clamp(36px, 6vw, 64px) 0 clamp(32px, 5vw, 48px);
}
.ll-guide__head h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); max-width: 22ch; letter-spacing: -0.02em; }
.ll-guide__lede { font-size: 1.2rem; color: var(--ll-muted); max-width: 44em; margin: 0 0 18px; }
.ll-guide__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; color: var(--ll-muted); font-size: 0.95rem; }
.ll-guide__meta span { display: inline-flex; align-items: center; gap: 6px; }

.ll-crumbs { display: flex; gap: 8px; font-size: 0.92rem; font-weight: 600; margin-bottom: 14px; color: var(--ll-muted); }
.ll-crumbs a { text-decoration: none; }

.ll-guide__layout {
	display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px;
	padding-top: 48px; padding-bottom: 72px;
}
.ll-guide__body { max-width: 740px; min-width: 0; }

.ll-toc { position: relative; }
.ll-toc details { position: sticky; top: 100px; }
.admin-bar .ll-toc details { top: 132px; }
.ll-toc summary {
	font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
	color: var(--ll-muted); cursor: pointer; list-style: none; margin-bottom: 12px;
}
.ll-toc summary::-webkit-details-marker { display: none; }
.ll-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ll-line); }
.ll-toc a {
	display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent;
	color: var(--ll-muted); font-weight: 600; font-size: 0.95rem; text-decoration: none; line-height: 1.35;
}
.ll-toc a:hover { color: var(--ll-ink); }
.ll-toc a.is-active { color: var(--ll-teal-deep); border-left-color: var(--ll-teal); }

@media (max-width: 960px) {
	.ll-guide__layout { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
	.ll-toc details { position: static; background: var(--ll-white); border: 1px solid var(--ll-line); border-radius: var(--ll-radius); padding: 14px 18px; }
	.ll-toc summary { margin: 0; display: flex; justify-content: space-between; }
	.ll-toc summary::after { content: "+"; font-size: 1.1rem; }
	.ll-toc details[open] summary { margin-bottom: 12px; }
	.ll-toc details[open] summary::after { content: "–"; }
}

/* ---------- Prose (imported guide content) ---------- */
.ll-prose { font-size: 1.1rem; }
.ll-prose > * + * { margin-top: 1.1em; }
.ll-prose p, .ll-prose ul, .ll-prose ol { margin-bottom: 0; }
.ll-prose h2 {
	font-size: clamp(1.5rem, 2.8vw, 1.95rem);
	margin-top: 2.2em; padding-top: 0.9em; border-top: 1px solid var(--ll-line);
}
.ll-prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.ll-prose h3 { font-size: 1.3rem; margin-top: 1.8em; }
.ll-prose strong { color: var(--ll-ink); }
.ll-prose ul, .ll-prose ol { padding-left: 1.3em; }
.ll-prose li + li { margin-top: 0.5em; }
.ll-prose ul li::marker { color: var(--ll-teal); }
.ll-prose table { width: 100%; border-collapse: collapse; font-size: 0.97rem; display: block; overflow-x: auto; }
.ll-prose th, .ll-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ll-line); }
.ll-prose th { background: var(--ll-mint-soft); color: var(--ll-ink); }
.ll-prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--ll-gold); color: var(--ll-muted); }

.ll-prose .ll-visual {
	background: var(--ll-white); border: 1px solid var(--ll-line); border-radius: var(--ll-radius);
	padding: 24px 20px 18px; margin: 2.2rem 0 !important; max-width: none !important;
	overflow-x: auto;
}
.ll-prose .ll-visual svg { min-width: 480px; }
@media (max-width: 560px) { .ll-prose .ll-visual { margin-left: calc(-1 * var(--ll-gutter)) !important; margin-right: calc(-1 * var(--ll-gutter)) !important; border-radius: 0; border-left: 0; border-right: 0; } }

/* FAQ section: question paragraphs become cards */
.ll-prose #faq ~ p {
	background: var(--ll-white); border: 1px solid var(--ll-line); border-radius: 12px;
	padding: 16px 20px; margin-top: 12px;
}
.ll-prose #faq ~ p > strong:first-child { display: block; font-family: var(--ll-serif); font-size: 1.12rem; margin-bottom: 4px; }

.ll-note {
	margin: 40px 0 0; padding: 16px 20px; border-radius: 12px;
	background: #fff8e8; border: 1px solid #f6dfa6; color: #6b4a12; font-size: 0.97rem;
}
.ll-note strong { color: #5a3d0b; }

.ll-next {
	display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px;
	margin-top: 28px; padding: 22px 26px; border-radius: var(--ll-radius);
	background: var(--ll-ink); color: #fff; text-decoration: none;
	transition: background-color 0.15s ease;
}
.ll-next span { grid-column: 1; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ll-gold); font-weight: 700; }
.ll-next strong { grid-column: 1; font-family: var(--ll-serif); font-size: 1.3rem; font-weight: 650; line-height: 1.25; }
.ll-next .ll-icon { grid-column: 2; grid-row: 1 / span 2; transition: transform 0.15s ease; }
.ll-next:hover { background: var(--ll-teal-deep); color: #fff; }
.ll-next:hover .ll-icon { transform: translateX(4px); }

/* ---------- Generic pages ---------- */
.ll-page__head { padding-top: clamp(40px, 7vw, 80px); padding-bottom: 24px; }
.ll-page__head h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
.ll-page__lede, .ll-page__lede p { font-size: 1.2rem; color: var(--ll-muted); max-width: 44em; margin: 0; }
.ll-page .ll-prose { padding-bottom: 80px; }

.ll-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ll-jump a {
	display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
	background: var(--ll-white); border: 1px solid var(--ll-line); font-weight: 600; text-decoration: none; color: var(--ll-ink);
}
.ll-jump a:hover { border-color: var(--ll-teal); color: var(--ll-teal-deep); }
.ll-topic-block + .ll-topic-block { padding-top: 0; }

.ll-search-big { display: flex; gap: 10px; margin-top: 18px; max-width: 560px; }
.ll-search-big input {
	flex: 1; min-width: 0; font: inherit; padding: 12px 18px; border-radius: 999px;
	border: 1px solid var(--ll-line); background: var(--ll-white);
}
.ll-empty { font-size: 1.15rem; color: var(--ll-muted); }

.ll-404 { text-align: center; padding-bottom: 96px; }
.ll-404 .ll-mark { margin-bottom: 16px; }
.ll-404 .ll-page__lede { margin: 0 auto 28px; }
.ll-404 .ll-hero__actions { justify-content: center; }

/* ---------- Footer ---------- */
.ll-footer { background: var(--ll-ink); color: #a9c6c1; padding: 64px 0 28px; font-size: 0.97rem; }
.ll-footer a { color: #e6f2f0; text-decoration: none; }
.ll-footer a:hover { color: var(--ll-gold); }
.ll-footer .ll-brand__name { color: #fff; }
.ll-footer .ll-brand__name span { color: var(--ll-gold); }
.ll-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.ll-footer__about p { max-width: 32em; margin: 14px 0 0; }
.ll-footer__col { display: flex; flex-direction: column; gap: 10px; }
.ll-footer__head { font-weight: 600; }
.ll-footer__legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.88rem; color: #7fa39d; }
.ll-footer__legal p { margin: 0; }
@media (max-width: 860px) { .ll-footer__grid { grid-template-columns: 1fr 1fr; } .ll-footer__about { grid-column: 1 / -1; } }

/* ---------- Calculators (assets/calculators/*.html) ---------- */
/* The widgets ship their own styles; these rules stop theme classes they share
   (.ll-card, .ll-note, .ll-grid) from leaking in. */
.ll-calc-embed { margin: 40px 0 0; }
.ll-calc-embed .ll-calc { margin: 0 auto; }
.ll-calc .ll-note { background: none; border: 0; border-radius: 0; padding: 0; }
.ll-calc .ll-card { display: block; height: auto; gap: 0; transition: none; }
.ll-calc .ll-card:hover { transform: none; box-shadow: none; border-color: #e2e8f0; }
.ll-calc .ll-card.fhsa:hover { border-top-color: #0f766e; }
.ll-calc .ll-card.hbp:hover { border-top-color: #f59e0b; }
.ll-calc h3, .ll-calc h4 { line-height: 1.25; }
.ll-calc details summary { cursor: pointer; }

/* ---------- Lead capture band ---------- */
.ll-page__after > :last-child { margin-bottom: 72px; }

.ll-lead {
	margin: 40px 0 0;
	padding: 24px;
	background: #fafaf9;
	color: #1e293b;
	border: 1px solid #e2e8f0;
	border-top: 4px solid #0f766e;
	border-radius: var(--ll-radius);
	display: grid;
	gap: 16px;
}
.ll-lead__heading {
	font-size: clamp(1.3rem, 2.4vw, 1.6rem);
	color: #1e293b;
	margin: 0 0 6px;
	padding: 0;
	border: 0;
}
.ll-lead__heading::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #f59e0b;
	margin-right: 10px;
	vertical-align: middle;
}
.ll-lead__sub { margin: 0; color: #475569; font-size: 1rem; }

/* Form-plugin markup: keep it on-brand without depending on one plugin. */
.ll-lead__form form { margin: 0; }
.ll-lead__form label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 4px; }
.ll-lead__form input[type="email"],
.ll-lead__form input[type="text"] {
	width: 100%;
	max-width: none;
	font: inherit;
	padding: 12px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #fff;
	color: #1e293b;
}
.ll-lead__form input[type="email"]:focus,
.ll-lead__form input[type="text"]:focus { border-color: #0f766e; outline: 3px solid rgba(15, 118, 110, 0.18); outline-offset: 0; }
.ll-lead__form input[type="checkbox"] { width: 18px; height: 18px; accent-color: #0f766e; vertical-align: middle; }
.ll-lead__form button,
.ll-lead__form input[type="submit"] {
	font: inherit;
	font-weight: 700;
	padding: 12px 22px;
	border: 0;
	border-radius: 999px;
	background: #0f766e;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.ll-lead__form button:hover,
.ll-lead__form input[type="submit"]:hover { background: #0d5c55; }

@media (min-width: 760px) {
	.ll-lead { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 28px; padding: 28px 32px; }
}

/* ---------- New to Canada: nav item + homepage planner callout ---------- */
.ll-nav__list a.ll-nav__new { background: var(--ll-gold); color: var(--ll-ink); }
.ll-nav__list a.ll-nav__new:hover,
.ll-nav__list a.ll-nav__new.is-current { background: #eaa521; color: var(--ll-ink); }
@media (min-width: 1081px) and (max-width: 1240px) {
	.ll-nav { gap: 12px; }
	.ll-nav__list a { padding: 8px 9px; font-size: 0.92rem; }
	.ll-nav__search input { width: 110px; }
}
@media (max-width: 1080px) {
	.ll-nav__list a.ll-nav__new { display: inline-block; }
}

.ll-planner-cta {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 18px;
	margin-top: 24px;
	padding: 20px 24px;
	border-radius: var(--ll-radius);
	background: #fff8e8;
	border: 1px solid #f6dfa6;
	color: var(--ll-text);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ll-planner-cta:hover { border-color: var(--ll-gold); box-shadow: var(--ll-shadow); color: var(--ll-text); }
.ll-planner-cta__icon {
	display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
	background: var(--ll-gold); color: var(--ll-ink);
}
.ll-planner-cta__text { display: flex; flex-direction: column; gap: 2px; }
.ll-planner-cta__text strong { font-family: var(--ll-serif); font-weight: 650; font-size: 1.2rem; color: var(--ll-ink); }
.ll-planner-cta__text span { color: var(--ll-muted); }
.ll-planner-cta__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ll-teal-deep); white-space: nowrap; }
.ll-planner-cta__go .ll-icon { transition: transform 0.15s ease; }
.ll-planner-cta:hover .ll-planner-cta__go .ll-icon { transform: translateX(3px); }
@media (max-width: 640px) {
	.ll-planner-cta { grid-template-columns: auto 1fr; padding: 18px; }
	.ll-planner-cta__go { grid-column: 1 / -1; }
}

/* ---------- Breadcrumbs (theme or RankMath) ---------- */
.ll-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; list-style: none; margin: 0; padding: 0; }
.ll-crumbs li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.ll-crumbs li + li::before { content: "›"; color: #94a3b8; font-weight: 400; }
.ll-crumbs a { color: var(--ll-teal); }
.ll-crumbs a:hover { color: var(--ll-teal-deep); text-decoration: underline; }
.ll-crumbs [aria-current="page"] { color: var(--ll-muted); font-weight: 400; max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ll-crumbs--rm p { margin: 0; }
.ll-crumbs--rm a { text-decoration: none; }
.ll-crumbs--rm .separator { color: #94a3b8; }
.ll-page__head .ll-crumbs { margin-bottom: 18px; }
@media (max-width: 560px) { .ll-crumbs [aria-current="page"] { max-width: 18ch; } }

/* ---------- Media: prevent layout shift ---------- */
/* WordPress adds width/height to content images; height:auto keeps the ratio. */
.ll-prose img,
.wp-post-image { max-width: 100%; height: auto; }
.ll-prose figure { margin-left: 0; margin-right: 0; }
.ll-prose iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; }
