/*
 * Linden Prep guide pages (license, CE, hubs, books, finder).
 * Every rule is scoped under .lp-tpl; the colors live in the tokens below so the
 * final Linden Prep branding is a one-place change.
 */
.lp-tpl {
	--lp-ink: #1A2620;
	--lp-body: #33433A;
	--lp-muted: #5E6B63;
	--lp-forest: #1F3A2B;
	--lp-forest-2: #2B5039;
	--lp-leaf: #3D7A4B;
	--lp-leaf-soft: #E5EFE3;
	--lp-cream: #FAF7F0;
	--lp-sand: #F1EBDD;
	--lp-honey: #C8901E;
	--lp-honey-soft: #FBF1DC;
	--lp-line: #DED6C5;
	--lp-white: #FFFFFF;
	--lp-radius: 14px;
	--lp-font: var(--wp--preset--font-family--open-sans, "Open Sans", system-ui, sans-serif);
	--lp-mono: var(--wp--preset--font-family--fira-code, ui-monospace, monospace);

	margin-top: 0 !important;
	margin-bottom: 0 !important;
	background: var(--lp-cream);
	color: var(--lp-body);
	font-family: var(--lp-font);
	font-size: 17px;
	line-height: 1.65;
}
.lp-tpl * { box-sizing: border-box; }
.lp-tpl p, .lp-tpl ul, .lp-tpl ol, .lp-tpl figure { margin-top: 0; margin-bottom: 0; }
.lp-tpl > * + *, .lp-tpl .wp-block-group > * + * { margin-block-start: 0; }
.lp-tpl a { color: var(--lp-leaf); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lp-tpl a:hover { color: var(--lp-forest); }
/* Headings take the theme's heading font (a serif, set in lp-guides.php). */
.lp-tpl h1, .lp-tpl h2, .lp-tpl h3 { color: var(--lp-ink); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; margin: 0; }
.lp-tpl h2 { font-size: clamp(24px, 2.6vw, 30px); }
.lp-tpl h3 { font-size: 19px; }
.lp-tpl strong { color: var(--lp-ink); }

.lp-tpl .lp-wrap { max-width: 1240px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Hero ---------- */
.lp-tpl .lp-hero { background: var(--lp-forest); background-image: radial-gradient(circle at 85% 0%, var(--lp-forest-2) 0, transparent 55%); color: #E9EFE8; padding: 40px 0 56px; }
.lp-tpl .lp-hero .lp-wrap { display: flex; flex-direction: column; gap: 32px; }
.lp-tpl .lp-hero-copy { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.lp-tpl .lp-hero a { color: #FFFFFF; }
.lp-tpl .lp-crumbs { font-size: 14px; color: #B9C8BC; }
.lp-tpl .lp-crumbs a { color: #D7E2D8; text-decoration: none; }
.lp-tpl .lp-crumbs a:hover { text-decoration: underline; }
/* Subtitle line above the H1: plain text, no pill (Matt, 2026-10-30). */
.lp-tpl .lp-kicker { margin: 0; color: #F3D497; font-size: 16px; font-weight: 600; line-height: 1.4; }
.lp-tpl .lp-h1 { color: #FFFFFF; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; }
.lp-tpl .lp-lead { font-size: 19px; color: #DCE5DC; max-width: 760px; }
.lp-tpl .lp-updated { font-size: 14px; color: #A9BAAD; }
.lp-tpl .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.lp-tpl .wp-block-button__link { display: inline-block; padding: 13px 22px; border-radius: 10px; font-family: var(--lp-font); font-size: 16px; font-weight: 700; text-decoration: none; line-height: 1.2; }
.lp-tpl .lp-btn-primary .wp-block-button__link { background: var(--lp-honey); color: #1A1406; }
.lp-tpl .lp-btn-primary .wp-block-button__link:hover { background: #B37E12; color: #1A1406; }
.lp-tpl .lp-btn-ghost .wp-block-button__link { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45); }
.lp-tpl .lp-btn-ghost .wp-block-button__link:hover { box-shadow: inset 0 0 0 1.5px #FFFFFF; }
.lp-tpl .lp-main .lp-btn-ghost .wp-block-button__link { color: var(--lp-forest); box-shadow: inset 0 0 0 1.5px var(--lp-line); }

/* Key facts */
.lp-tpl .lp-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lp-tpl .lp-fact { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--lp-radius); background: var(--lp-cream); color: var(--lp-body); border-top: 4px solid var(--lp-honey); }
.lp-tpl .lp-fact-label { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--lp-muted); }
.lp-tpl .lp-fact-value { font-size: 26px; font-weight: 800; color: var(--lp-ink); line-height: 1.15; overflow-wrap: anywhere; }
.lp-tpl .lp-fact-note { font-size: 14px; color: var(--lp-muted); line-height: 1.45; }

/* ---------- Body layout: sticky contents beside the guide ---------- */
.lp-tpl .lp-body { padding-top: 40px; padding-bottom: 56px; }
.lp-tpl .lp-layout { gap: 40px; margin: 0; }
/* --lp-sticky-top = sticky site header height, kept current by lp-toc.js. */
.lp-tpl .lp-side { align-self: flex-start; position: sticky; top: calc(var(--lp-sticky-top, 90px) + 24px); }
.lp-tpl .lp-toc { padding: 18px 18px 14px; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); background: var(--lp-white); }
.lp-tpl .lp-toc-label { margin-bottom: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lp-muted); }
.lp-tpl .lp-toc-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.lp-tpl .lp-toc-list a { display: block; padding: 7px 10px; border-left: 3px solid transparent; border-radius: 0 8px 8px 0; color: var(--lp-body); font-size: 15px; font-weight: 600; text-decoration: none; }
.lp-tpl .lp-toc-list a:hover { border-left-color: var(--lp-honey); background: var(--lp-sand); color: var(--lp-ink); }
/* Scroll spy + collapse (lp-toc.js) */
.lp-tpl .lp-toc-js .lp-toc-list { position: relative; max-height: calc(100vh - var(--lp-sticky-top, 90px) - 130px); overflow-y: auto; overscroll-behavior: contain; }
.lp-tpl .lp-toc-list a.is-active { border-left-color: var(--lp-forest); background: var(--lp-sand); color: var(--lp-ink); }
.lp-tpl .lp-toc-js .lp-toc-label { margin-bottom: 0; }
.lp-tpl .lp-toc-js:not(.is-collapsed) .lp-toc-label { margin-bottom: 8px; }
.lp-tpl .lp-toc-toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; cursor: pointer; }
.lp-tpl .lp-toc-toggle:focus-visible { outline: 2px solid var(--lp-honey); outline-offset: 4px; border-radius: 4px; }
.lp-tpl .lp-toc-title { flex: none; }
.lp-tpl .lp-toc-current { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--lp-ink); font-size: 14px; letter-spacing: 0; text-transform: none; }
.lp-tpl .lp-toc-js:not(.is-collapsed) .lp-toc-current { visibility: hidden; }
/* Chevron points left (fold the column away); on phones it points down/up instead. */
.lp-tpl .lp-toc-chev { flex: none; width: 8px; height: 8px; margin: 0 4px 0 auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(135deg); transition: transform 0.2s; }
.lp-tpl .lp-toc-js.is-collapsed .lp-toc-list { display: none; }
/* Desktop collapsed: the column folds into a vertical rail and the guide slides over into its space. */
@media (min-width: 782px) {
	.lp-tpl .lp-layout > .lp-side, .lp-tpl .lp-layout > .lp-main { transition: flex-basis 0.35s ease; }
	.lp-tpl .lp-layout.lp-toc-rail > .lp-side { flex: 0 0 46px !important; }
	.lp-tpl .lp-layout.lp-toc-rail > .lp-main { flex-basis: calc(100% - 46px) !important; }
	.lp-tpl .lp-toc-rail .lp-toc { padding: 16px 0; }
	.lp-tpl .lp-toc-rail .lp-toc-toggle { writing-mode: vertical-rl; gap: 10px; }
	.lp-tpl .lp-toc-rail .lp-toc-current { max-height: 40vh; }
	.lp-tpl .lp-toc-rail .lp-toc-chev { margin: 6px 0 0; transform: rotate(-45deg); }
}
.lp-tpl .lp-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

/* Sections are white panels on the cream page. */
.lp-tpl .lp-sec { display: flex; flex-direction: column; gap: 16px; padding: 30px 32px; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); background: var(--lp-white); scroll-margin-top: calc(var(--lp-sticky-top, 90px) + 24px); }
.lp-tpl .lp-sec-quiet { background: transparent; }
.lp-tpl .lp-body-plain { display: flex; flex-direction: column; gap: 22px; }

.lp-tpl .lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.lp-tpl .wp-block-columns { gap: 14px; margin: 0; }
.lp-tpl .lp-card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 20px; border: 1px solid var(--lp-line); border-radius: 12px; background: var(--lp-cream); }
.lp-tpl .lp-card-label { font-size: 13px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--lp-muted); }
.lp-tpl .lp-card h3 a { color: var(--lp-ink); text-decoration: none; }
.lp-tpl .lp-card h3 a:hover { color: var(--lp-leaf); text-decoration: underline; }
.lp-tpl .lp-yes { background: var(--lp-leaf-soft); border-color: #C7DCC4; }
.lp-tpl .lp-no { background: var(--lp-sand); }
.lp-tpl .lp-code { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 6px; background: var(--lp-forest); color: #FFFFFF; font-family: var(--lp-mono); font-size: 12px; letter-spacing: 0; }
.lp-tpl .lp-callout { padding: 16px 18px; border-left: 4px solid var(--lp-honey); border-radius: 0 10px 10px 0; background: var(--lp-honey-soft); display: flex; flex-direction: column; gap: 4px; }
.lp-tpl .lp-note { font-size: 15px; color: var(--lp-muted); }
.lp-tpl .lp-cta { background: var(--lp-leaf-soft); border-color: #C7DCC4; }

.lp-tpl .wp-block-list:not(.lp-toc-list):not(.lp-steps):not(.lp-check) { padding-left: 22px; }
.lp-tpl .wp-block-list { display: flex; flex-direction: column; gap: 6px; }

/* Steps: a vertical timeline. */
.lp-tpl .lp-steps { list-style: none; padding: 0; counter-reset: lp-step; gap: 0; }
.lp-tpl .lp-steps > li { position: relative; padding: 0 0 22px 52px; counter-increment: lp-step; }
.lp-tpl .lp-steps > li::before { content: counter(lp-step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--lp-forest); color: #FFFFFF; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.lp-tpl .lp-steps > li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--lp-line); }
.lp-tpl .lp-steps > li:last-child { padding-bottom: 0; }
.lp-tpl .lp-steps > li:last-child::after { display: none; }
.lp-tpl .lp-when { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px; background: var(--lp-sand); color: var(--lp-muted); font-size: 13px; font-weight: 700; }

/* Checklist */
.lp-tpl .lp-check { list-style: none; padding: 0; }
.lp-tpl .lp-check > li { position: relative; padding-left: 32px; }
.lp-tpl .lp-check > li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--lp-leaf); background: var(--lp-white); }

/* Stats */
.lp-tpl .lp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.lp-tpl .lp-stat { padding: 14px 16px; border-radius: 12px; background: var(--lp-sand); }
.lp-tpl .lp-stat-label { font-size: 13px; font-weight: 700; color: var(--lp-muted); }
.lp-tpl .lp-stat-value { font-size: 17px; font-weight: 800; color: var(--lp-ink); line-height: 1.35; overflow-wrap: anywhere; }

/* Tables */
.lp-tpl .wp-block-table { margin: 0; overflow-x: auto; border: 1px solid var(--lp-line); border-radius: 12px; }
.lp-tpl .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lp-tpl .wp-block-table th { padding: 11px 14px; background: var(--lp-forest); color: #FFFFFF; font-weight: 700; text-align: left; border: 0; }
.lp-tpl .wp-block-table td { padding: 11px 14px; border: 0; border-top: 1px solid var(--lp-line); vertical-align: top; }
.lp-tpl .wp-block-table tbody tr:nth-child(even) td { background: #FCFAF5; }
.lp-tpl .wp-block-table tbody tr:first-child td { border-top: 0; }
.lp-tpl .lp-kv td:first-child { width: 38%; }
.lp-tpl .lp-mini { border: 0; }
.lp-tpl .lp-mini td { padding: 6px 0; background: transparent !important; }
.lp-tpl .lp-costs tbody tr:last-child td { background: var(--lp-honey-soft); }

/* Accordions (FAQ, reciprocity, late renewal) */
.lp-tpl .lp-accordion { display: flex; flex-direction: column; gap: 10px; }
.lp-tpl .wp-block-details { padding: 0; border: 1px solid var(--lp-line); border-radius: 12px; background: var(--lp-white); }
.lp-tpl .wp-block-details summary { padding: 15px 44px 15px 18px; font-weight: 700; color: var(--lp-ink); cursor: pointer; list-style: none; position: relative; }
.lp-tpl .wp-block-details summary::-webkit-details-marker { display: none; }
.lp-tpl .wp-block-details summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--lp-leaf); font-size: 22px; font-weight: 600; }
.lp-tpl .wp-block-details[open] summary::after { content: "–"; }
.lp-tpl .wp-block-details > :not(summary) { padding: 0 18px 16px; }

.lp-tpl .lp-sources { font-size: 15px; }
.lp-tpl .lp-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.lp-tpl .lp-related-item { padding: 12px 14px; border: 1px solid var(--lp-line); border-radius: 10px; background: var(--lp-white); font-size: 15px; font-weight: 600; }
.lp-tpl .lp-tag { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--lp-honey); }
.lp-tpl .lp-disclaimer { padding-bottom: 40px; font-size: 14px; color: var(--lp-muted); }

/* ---------- Finder ---------- */
.lp-tpl .lp-finder { display: flex; flex-direction: column; gap: 18px; }
.lp-tpl .lp-finder-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; padding: 20px; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); background: var(--lp-white); }
.lp-tpl .lp-finder-fields { flex: 1 1 560px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.lp-tpl .lp-finder-field { display: flex; flex-direction: column; gap: 6px; }
.lp-tpl .lp-finder-label { font-size: 13px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--lp-muted); }
.lp-tpl .lp-finder select, .lp-tpl .lp-finder input[type="search"] { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--lp-line); border-radius: 10px; background: var(--lp-cream); color: var(--lp-ink); font: 600 16px var(--lp-font); }
.lp-tpl .lp-finder select:focus, .lp-tpl .lp-finder input:focus { outline: 2px solid var(--lp-leaf); outline-offset: 1px; background: var(--lp-white); }
.lp-tpl .lp-finder-actions { display: flex; align-items: center; gap: 14px; }
.lp-tpl .lp-finder-go { min-height: 50px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--lp-honey); color: #1A1406; font: 700 16px var(--lp-font); cursor: pointer; }
.lp-tpl .lp-finder-go:hover { background: #B37E12; }
.lp-tpl .lp-finder-full.is-live .lp-finder-go { display: none; }
.lp-tpl .lp-finder-reset { font-size: 15px; font-weight: 700; }
.lp-tpl .lp-finder-count { font-size: 15px; font-weight: 700; color: var(--lp-muted); }
.lp-tpl .lp-finder-results { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.lp-tpl .lp-finder-item[hidden], .lp-tpl .lp-finder-empty[hidden] { display: none; }
.lp-tpl .lp-finder-item a { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); background: var(--lp-white); color: var(--lp-body); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.lp-tpl .lp-finder-item a:hover, .lp-tpl .lp-finder-item a:focus-visible { border-color: var(--lp-leaf); transform: translateY(-2px); }
.lp-tpl .lp-finder-kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--lp-honey); }
.lp-tpl .lp-finder-title { font-size: 19px; font-weight: 800; color: var(--lp-ink); line-height: 1.25; }
.lp-tpl .lp-finder-classes { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-tpl .lp-finder-classes span { padding: 2px 10px; border-radius: 999px; background: var(--lp-leaf-soft); font-size: 13px; font-weight: 600; }
.lp-tpl .lp-finder-classes .lp-finder-more { background: transparent; color: var(--lp-muted); }
.lp-tpl .lp-finder-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--lp-line); }
.lp-tpl .lp-finder-fact { display: flex; flex-direction: column; min-width: 0; }
.lp-tpl .lp-finder-fact span { font-size: 12px; color: var(--lp-muted); }
.lp-tpl .lp-finder-fact strong { font-size: 15px; overflow-wrap: anywhere; }
.lp-tpl .lp-finder-open { font-weight: 800; color: var(--lp-leaf); }
.lp-tpl .lp-finder.is-single .lp-finder-item:not([hidden]) a { border: 2px solid var(--lp-honey); }
.lp-tpl .lp-finder-empty { padding: 26px; border: 1px dashed var(--lp-line); border-radius: var(--lp-radius); background: var(--lp-white); text-align: center; }

/* ---------- Homepage: the finder is the hero ---------- */
.lp-tpl .lp-home-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: min(86vh, 760px); padding: 72px 0; background-color: var(--lp-forest); color: #FFFFFF; }
.lp-tpl .lp-home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17, 33, 24, 0.72) 0%, rgba(17, 33, 24, 0.5) 45%, rgba(17, 33, 24, 0.8) 100%); }
.lp-tpl .lp-home-hero-inner { width: 100%; max-width: 980px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.lp-tpl .lp-home-hero .lp-h1 { max-width: 820px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.lp-tpl .lp-home-hero .lp-lead { max-width: 640px; color: #E8EFE7; }
.lp-tpl .lp-home-hero .lp-finder { width: 100%; margin-top: 10px; text-align: left; }
.lp-tpl .lp-home-hero .lp-finder-form { border: 0; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3); }
.lp-tpl .lp-home-hero .lp-finder-reset { display: none; }
.lp-tpl .lp-home-browse { font-size: 16px; color: #D7E2D8; }
.lp-tpl .lp-home-browse a { color: #FFFFFF; font-weight: 700; }
.lp-tpl .lp-home-band { padding: 64px 0; }
.lp-tpl .lp-home-white { background: var(--lp-white); }
.lp-tpl .lp-home-sand { background: var(--lp-sand); }
.lp-tpl .lp-home-sand .lp-card { background: var(--lp-white); }
.lp-tpl .lp-home-sec { display: flex; flex-direction: column; gap: 14px; }
.lp-tpl .lp-home-kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lp-honey); }
.lp-tpl .lp-home-lead { max-width: 720px; font-size: 18px; }
.lp-tpl .lp-home-sec .lp-grid { margin-top: 10px; }
.lp-tpl .lp-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-tpl .lp-home-disclaimer { padding-top: 28px; }

/* ---------- Trade photo row (/licenses) ----------
 * Staggered photo cards that each link to a trade hub, bottoms aligned, with a stat card in
 * the middle. The heading link is stretched over the whole card, so the card is the target.
 */
.lp-tpl .lp-trades-band { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 1600px; margin: 0 auto; padding: 48px 24px 8px; text-align: center; }
.lp-tpl .lp-trades-band .lp-note { font-size: 17px; }
.lp-tpl .lp-trades { display: flex; align-items: flex-end; gap: 14px; width: 100%; margin-top: 18px; text-align: left; }
.lp-tpl .lp-trades > .lp-trade { margin: 0; }
.lp-tpl .lp-trade { position: relative; isolation: isolate; flex: 1 1 0; min-width: 0; aspect-ratio: 3 / 4; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 16px; border-radius: var(--lp-radius); overflow: hidden; background-color: var(--lp-forest); background-size: cover; color: #FFFFFF; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.lp-tpl .lp-trade::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17, 33, 24, 0) 40%, rgba(17, 33, 24, 0.88) 100%); }
.lp-tpl .lp-trade-tall { aspect-ratio: 5 / 8; }
.lp-tpl .lp-trade h3 { color: #FFFFFF; font-size: 18px; line-height: 1.2; }
.lp-tpl .lp-trade h3 a { color: #FFFFFF; text-decoration: none; }
.lp-tpl .lp-trade h3 a::after { content: ""; position: absolute; inset: 0; }
.lp-tpl .lp-trade-count { font-size: 14px; font-weight: 700; color: #F3D497; }
.lp-tpl .lp-trade:not(.lp-trade-stat):hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(17, 33, 24, 0.25); }
.lp-tpl .lp-trade:focus-within { outline: 3px solid var(--lp-honey); outline-offset: 3px; }
.lp-tpl .lp-trade-stat { flex-grow: 1.35; aspect-ratio: 1 / 1; justify-content: center; gap: 8px; padding: 22px; background-image: radial-gradient(circle at 100% 0%, var(--lp-forest-2) 0, transparent 60%); }
.lp-tpl .lp-trade-stat::before { display: none; }
.lp-tpl .lp-trade-stat-num { font-size: clamp(40px, 4.2vw, 58px); font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: #FFFFFF; }
.lp-tpl .lp-trade-stat-label { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #F3D497; }
.lp-tpl .lp-trade-stat-text { font-size: 14px; line-height: 1.5; color: #DCE5DC; }
.lp-tpl .lp-trade-stat-text a { color: #FFFFFF; font-weight: 700; }

/* ---------- Small screens ---------- */
/* Seven cards need about 1200px; below that the row becomes a swipeable strip. */
@media (max-width: 1199px) {
	.lp-tpl .lp-trades { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
	.lp-tpl .lp-trades-band { padding-top: 36px; }
	.lp-tpl .lp-trade { flex: 0 0 190px; scroll-snap-align: start; }
	.lp-tpl .lp-trade-stat { flex-basis: 230px; }
}
@media (max-width: 960px) {
	.lp-tpl .lp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lp-tpl .lp-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
	.lp-tpl .lp-side { position: static; }
	.lp-tpl .lp-toc-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
	.lp-tpl .lp-toc-list a { padding: 5px 12px; border: 1px solid var(--lp-line); border-radius: 999px; font-size: 14px; }
	/* With lp-toc.js: a sticky bar under the header showing the current section; tap to open the list. */
	.lp-tpl .lp-side-js { position: sticky; top: var(--lp-sticky-top, 0px); z-index: 50; }
	.lp-tpl .lp-side-js .lp-toc { padding: 12px 16px; box-shadow: 0 6px 18px rgba(20, 30, 20, 0.12); }
	.lp-tpl .lp-side-js .lp-toc-list { flex-direction: column; flex-wrap: nowrap; gap: 0; max-height: 60vh; }
	.lp-tpl .lp-side-js .lp-toc-list a { padding: 9px 10px; border: 0; border-left: 3px solid transparent; border-radius: 0 8px 8px 0; font-size: 15px; }
	.lp-tpl .lp-side-js .lp-toc-list a.is-active { border-left-color: var(--lp-forest); }
	.lp-tpl .lp-side-js .lp-toc-chev { margin: 0 4px 3px auto; transform: rotate(45deg); }
	.lp-tpl .lp-side-js .lp-toc-js:not(.is-collapsed) .lp-toc-chev { margin-bottom: -3px; transform: rotate(-135deg); }
	.lp-tpl .lp-side-js ~ .lp-main .lp-sec { scroll-margin-top: calc(var(--lp-sticky-top, 0px) + 72px); }
	.lp-tpl .lp-sec { padding: 22px 18px; }
}
@media (max-width: 600px) {
	.lp-tpl .lp-wrap { padding-left: 16px; padding-right: 16px; }
	.lp-tpl .lp-facts { gap: 10px; }
	.lp-tpl .lp-fact { padding: 14px; }
	.lp-tpl .lp-fact-value { font-size: 21px; }
	.lp-tpl .lp-fact-note { font-size: 13px; }
	.lp-tpl .lp-finder-results { grid-template-columns: 1fr; }
	.lp-tpl .lp-finder-actions { width: 100%; }
	.lp-tpl .lp-finder-go { flex: 1; }
	.lp-tpl .lp-home-hero { min-height: 0; padding: 56px 0 48px; }
	.lp-tpl .lp-home-band { padding: 44px 0; }
	.lp-tpl .lp-grid-4 { grid-template-columns: 1fr; }
}

/* Exam prep section: WooCommerce [products] lists as guide cards. No product photos yet, so the placeholder image is hidden here. */
.lp-tpl .lp-shop .woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.lp-tpl .lp-shop ul.products::before, .lp-tpl .lp-shop ul.products::after { content: none; }
.lp-tpl .lp-shop .woocommerce ul.products li.product { display: flex; clear: none; flex-direction: column; gap: 8px; width: auto; float: none; margin: 0; padding: 18px; border: 1px solid var(--lp-line); border-radius: 12px; background: var(--lp-cream); text-align: left; }
.lp-tpl .lp-shop ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; gap: 6px; flex: 1; color: var(--lp-ink); text-decoration: none; }
.lp-tpl .lp-shop ul.products li.product a.woocommerce-LoopProduct-link:hover .woocommerce-loop-product__title { color: var(--lp-leaf); text-decoration: underline; }
.lp-tpl .lp-shop .woocommerce ul.products li.product img.woocommerce-placeholder { display: none; }
.lp-tpl .lp-shop .woocommerce-loop-product__title { margin: 0; padding: 0; font-size: 16px; line-height: 1.35; }
.lp-tpl .lp-shop .price { margin: 0; font-size: 14px; color: var(--lp-muted); }
.lp-tpl .lp-shop .lp-coming-soon { align-self: flex-start; margin: 4px 0 0; padding: 8px 14px; font-size: 14px; }

/* ---------- Homepage: Shop popular courses (linked slides + tiles, see lp-popular.js) ---------- */
.lp-tpl .lp-home-pop { background: #F4F2EC; padding-bottom: 56px; }
.lp-tpl .lp-pop-head { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 26px; text-align: center; }
.lp-tpl .lp-pop-head h2 { font-size: clamp(30px, 4vw, 46px); }
.lp-tpl .lp-pop { --lp-pop-w: min(1180px, 88vw); --lp-pop-pad: calc((100% - var(--lp-pop-w)) / 2); display: flex; flex-direction: column; gap: 14px; position: relative; }
.lp-tpl .lp-pop-stage, .lp-tpl .lp-pop-rail { display: flex; gap: 14px; overflow-x: auto; padding-inline: var(--lp-pop-pad); scroll-padding-inline: var(--lp-pop-pad); overscroll-behavior-x: contain; }
.lp-tpl .lp-pop-stage { scroll-snap-type: x mandatory; }
.lp-tpl .lp-pop-stage > *, .lp-tpl .lp-pop-rail > * { margin: 0; }
.lp-tpl .lp-pop-slide { position: relative; isolation: isolate; flex: 0 0 var(--lp-pop-w); scroll-snap-align: center; display: flex; flex-direction: column; justify-content: flex-end; gap: 26px; min-height: 520px; padding: 44px 48px; border-radius: 22px; overflow: hidden; background-size: cover; color: #FFFFFF; transition: opacity 0.18s ease-out; }
.lp-tpl .lp-pop-slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 18, 14, 0.78) 0%, rgba(10, 18, 14, 0.45) 45%, rgba(10, 18, 14, 0) 75%), linear-gradient(0deg, rgba(10, 18, 14, 0.7) 0%, rgba(10, 18, 14, 0) 55%); }
.lp-tpl .lp-pop-copy { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.lp-tpl .lp-pop-kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #F3D497; }
.lp-tpl .lp-pop-title { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35); }
.lp-tpl .lp-pop-title a { color: #FFFFFF; text-decoration: none; }
.lp-tpl .lp-pop-title a:hover { text-decoration: underline; }
.lp-tpl .lp-pop-lead { max-width: 560px; font-size: 17px; color: rgba(255, 255, 255, 0.86); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lp-tpl .lp-pop-copy .wp-block-buttons { margin-top: 8px; gap: 10px; }
.lp-tpl .lp-pop-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 820px; gap: 1px; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, 0.18); }
.lp-tpl .lp-pop-fact { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: rgba(10, 18, 14, 0.38); backdrop-filter: blur(6px); }
.lp-tpl .lp-pop-fact-label { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.66); }
.lp-tpl .lp-pop-fact-value { font-size: 19px; font-weight: 700; line-height: 1.3; color: #FFFFFF; }
/* Room inside the scroll box for the hover lift and active shadow, which overflow-x would otherwise clip. */
.lp-tpl .lp-pop-rail { margin-top: -10px; padding-top: 10px; padding-bottom: 22px; margin-bottom: -18px; }
.lp-tpl .lp-pop-tile { position: relative; isolation: isolate; overflow: hidden; background-size: cover; flex: 0 0 clamp(200px, 23%, 290px); display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 130px; padding: 18px 20px; border-radius: 16px; color: #FFFFFF; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.lp-tpl .lp-pop-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 18, 14, 0.1) 0%, rgba(10, 18, 14, 0.82) 100%); }
.lp-tpl .lp-pop-tile-state { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #F3D497; }
.lp-tpl .lp-pop-tile-name { font-size: 18px; font-weight: 700; line-height: 1.25; }
.lp-tpl .lp-pop-tile-name a { color: #FFFFFF; text-decoration: none; }
.lp-tpl .lp-pop-tile-name a::after { content: ""; position: absolute; inset: 0; }
.lp-tpl .lp-pop-tile:hover { transform: translateY(-3px); }
.lp-tpl .lp-pop-tile.is-active { box-shadow: inset 0 0 0 3px var(--lp-honey), 0 10px 24px rgba(17, 33, 24, 0.22); }
.lp-tpl .lp-pop-tile:focus-within { outline: 3px solid var(--lp-honey); outline-offset: 3px; }
.lp-tpl .lp-pop-tone-1 { background-color: #1F3A2B; }
.lp-tpl .lp-pop-tone-2 { background-color: #5A3F12; }
.lp-tpl .lp-pop-tone-3 { background-color: #1E3A4A; }
.lp-tpl .lp-pop-tone-4 { background-color: #4E2E24; }
/* Linked mode (script running): dim the neighbours, hide scrollbars, show arrows. */
.lp-tpl .lp-pop.is-linked .lp-pop-stage, .lp-tpl .lp-pop.is-linked .lp-pop-rail { scrollbar-width: none; }
.lp-tpl .lp-pop.is-linked .lp-pop-stage::-webkit-scrollbar, .lp-tpl .lp-pop.is-linked .lp-pop-rail::-webkit-scrollbar { display: none; }
.lp-tpl .lp-pop.is-linked .lp-pop-slide:not(.is-active) { opacity: 0.55; cursor: pointer; }
.lp-tpl .lp-pop-arrow { position: absolute; top: 260px; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--lp-ink); font-size: 22px; line-height: 1; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); cursor: pointer; }
.lp-tpl .lp-pop-arrow:hover { background: #FFFFFF; }
.lp-tpl .lp-pop-arrow:focus-visible { outline: 3px solid var(--lp-honey); outline-offset: 2px; }
.lp-tpl .lp-pop-arrow[disabled] { opacity: 0; pointer-events: none; }
.lp-tpl .lp-pop-prev { left: max(12px, calc(var(--lp-pop-pad) - 23px)); }
.lp-tpl .lp-pop-next { right: max(12px, calc(var(--lp-pop-pad) - 23px)); }
.lp-tpl .lp-pop-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
	.lp-tpl .lp-pop-slide, .lp-tpl .lp-pop-tile { transition: none; }
}
@media (max-width: 781px) {
	.lp-tpl .lp-pop { --lp-pop-w: calc(100vw - 40px); }
	/* Phones: the whole section is 80% of the screen. The slide fills what the heading and tiles leave,
	   the photo shows on its top part and the copy sits on the dark lower part. The intro paragraph is
	   hidden here (the title carries it) so everything fits. */
	.lp-tpl .lp-home-pop { display: flex; flex-direction: column; height: 80vh; height: 80svh; min-height: 540px; padding: 26px 0 14px; }
	.lp-tpl .lp-home-pop > * { margin-block: 0; }
	.lp-tpl .lp-pop-head { gap: 2px; margin-bottom: 14px; }
	.lp-tpl .lp-pop-head h2 { font-size: 28px; }
	.lp-tpl .lp-pop { flex: 1 1 auto; min-height: 0; gap: 10px; }
	.lp-tpl .lp-pop-stage { flex: 1 1 auto; min-height: 0; }
	.lp-tpl .lp-pop-slide { gap: 14px; min-height: 0; padding: 20px; border-radius: 18px; background-position: 70% 0 !important; }
	.lp-tpl .lp-pop-slide::before { background: linear-gradient(180deg, rgba(10, 18, 14, 0) 0%, rgba(10, 18, 14, 0.2) 22%, rgba(10, 18, 14, 0.9) 50%, rgba(10, 18, 14, 0.95) 100%); }
	.lp-tpl .lp-pop-copy { gap: 8px; }
	.lp-tpl .lp-pop-kicker { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.lp-tpl .lp-pop-title { font-size: 26px; }
	.lp-tpl .lp-pop-lead { display: none; }
	.lp-tpl .lp-pop-copy .wp-block-buttons { flex-wrap: nowrap; gap: 8px; margin-top: 4px; }
	.lp-tpl .lp-pop-copy .wp-block-button { flex: 1 1 0; }
	.lp-tpl .lp-pop-copy .wp-block-button__link { width: 100%; padding: 10px 8px; font-size: 14px; text-align: center; white-space: nowrap; }
	.lp-tpl .lp-pop-facts { grid-template-columns: 1fr 1fr; }
	.lp-tpl .lp-pop-fact { padding: 9px 12px; }
	.lp-tpl .lp-pop-fact-label { font-size: 11px; }
	.lp-tpl .lp-pop-fact-value { font-size: 16px; }
	.lp-tpl .lp-pop-tile { flex-basis: 56vw; min-height: 70px; padding: 10px 14px; }
	.lp-tpl .lp-pop-tile-name { font-size: 16px; }
	.lp-tpl .lp-pop-arrow { display: none; }
}
/* Block editor: lay the strips out flat so every slide and tile can be edited in place. */
.editor-styles-wrapper .lp-tpl .lp-pop-stage, .editor-styles-wrapper .lp-tpl .lp-pop-rail { flex-wrap: wrap; overflow: visible; padding-inline: 24px; }
.editor-styles-wrapper .lp-tpl .lp-pop-slide { flex-basis: 100%; }

/* Pillar links under a guide lead: trade hub and state hub (SEO structure, 2026-10-29). */
.lp-tpl .lp-pillars { margin-top: 10px; font-size: 15px; color: var(--lp-muted, inherit); }
.lp-tpl .lp-pillars a { font-weight: 600; }

/* [lp_state_map]: US map on /states/, each state links to its hub. SVG units are 2x the 975-wide atlas. */
.lp-tpl .lp-map { margin: 0 0 32px; }
.lp-tpl .lp-map-svg { display: block; width: 100%; height: auto; max-width: 1100px; margin: 0 auto; }
.lp-tpl .lp-map-st { fill: var(--lp-leaf-soft); stroke: var(--lp-white); stroke-width: 1.5; stroke-linejoin: round; transition: fill .15s; }
.lp-tpl .lp-map a { outline: none; }
.lp-tpl .lp-map a:hover .lp-map-st, .lp-tpl .lp-map a:focus-visible .lp-map-st { fill: var(--lp-leaf); }
.lp-tpl .lp-map a:focus-visible .lp-map-st { stroke: var(--lp-honey); stroke-width: 5; paint-order: stroke; }
.lp-tpl .lp-map-off, .lp-tpl .lp-map-off .lp-map-st, .lp-tpl .lp-map-off rect { fill: var(--lp-sand); }
.lp-tpl .lp-map-off text { fill: var(--lp-muted); }
.lp-tpl .lp-map-labels { pointer-events: none; }
.lp-tpl .lp-map text { font-family: var(--lp-font); font-size: 22px; font-weight: 700; fill: var(--lp-forest); text-anchor: middle; dominant-baseline: central; }
.lp-tpl .lp-map-tag rect { fill: var(--lp-leaf-soft); stroke: var(--lp-line); stroke-width: 1.5; transition: fill .15s; }
.lp-tpl .lp-map-tag:hover rect, .lp-tpl .lp-map-tag:focus-visible rect { fill: var(--lp-leaf); stroke: var(--lp-leaf); }
.lp-tpl .lp-map-tag:hover text, .lp-tpl .lp-map-tag:focus-visible text { fill: var(--lp-white); }
.lp-tpl .lp-map-tag:focus-visible rect { stroke: var(--lp-honey); stroke-width: 4; }
.lp-tpl .lp-map-lead { stroke: var(--lp-muted); stroke-width: 1.5; fill: none; opacity: .6; }
/* Labels drop under ~6px tall on phones, so hide them there; the state cards below stay the easy list. */
@media (max-width: 600px) {
	.lp-tpl .lp-map-labels, .lp-tpl .lp-map-tags { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.lp-tpl .lp-map-st, .lp-tpl .lp-map-tag rect { transition: none; }
}
.lp-tpl .lp-map-dot { fill: var(--lp-forest); }

/* Line icons (icons.py): core Image blocks, one media copy per placement. Card icons sit at the top of a
   card; background icons are faint, absolutely placed in the hero or a homepage band, behind the content. */
.lp-tpl .lp-icon { margin: 0; line-height: 0; }
.lp-tpl .lp-icon img { display: block; width: 100%; height: auto; }
.lp-tpl .lp-icon-card { width: 52px; margin-bottom: 2px; }
.lp-tpl .lp-hero, .lp-tpl .lp-home-white, .lp-tpl .lp-home-sand { position: relative; overflow: hidden; }
.lp-tpl .lp-hero > .lp-wrap, .lp-tpl .lp-home-white > .lp-wrap, .lp-tpl .lp-home-sand > .lp-wrap { position: relative; z-index: 1; }
.lp-tpl .lp-icon-bg { position: absolute; z-index: 0; pointer-events: none; opacity: .13; margin: 0 !important; }
.lp-tpl .lp-home-band .lp-icon-bg { opacity: .07; }
.lp-tpl .lp-icon-bg-1 { width: 270px; right: 5%; top: 50%; transform: translateY(-50%) rotate(-8deg); }
.lp-tpl .lp-icon-bg-2 { width: 150px; right: 24%; top: 8%; transform: rotate(10deg); }
.lp-tpl .lp-icon-bg-3 { width: 120px; right: 21%; bottom: 4%; transform: rotate(-14deg); }
.lp-tpl .lp-home-band .lp-icon-bg-1 { right: -40px; top: 40px; transform: rotate(-10deg); }
.lp-tpl .lp-home-band .lp-icon-bg-2 { width: 200px; left: -50px; right: auto; top: auto; bottom: 30px; transform: rotate(12deg); }
/* Guide heroes carry a facts strip under the copy, so their icon sits top-right, above it. */
.lp-tpl.lp-license .lp-hero .lp-icon-bg-1, .lp-tpl.lp-ce .lp-hero .lp-icon-bg-1 { width: 230px; top: 28px; transform: rotate(-8deg); }
@media (max-width: 1100px) {
	.lp-tpl .lp-hero .lp-icon-bg-2, .lp-tpl .lp-hero .lp-icon-bg-3 { display: none; }
	.lp-tpl .lp-hero .lp-icon-bg-1 { width: 200px; right: -30px; opacity: .09; }
}
@media (max-width: 781px) {
	.lp-tpl .lp-home-band .lp-icon-bg-2 { display: none; }
	.lp-tpl .lp-home-band .lp-icon-bg-1 { width: 180px; }
	.lp-tpl .lp-icon-card { width: 44px; }
}
