/*
Theme Name: Learn the COLREGs
Theme URI: https://learnthecolregs.com
Author: JP Maritime Ltd
Description: A light, fast theme made for the LTC LMS plugin. Header like the old BuddyBoss one: logo, icon menu with a blue underline on the current page, search and sign in. Elementor pages stay full width.
Version: 1.8.1
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ltc-theme
*/

/* ------------------------------------------------------------------ Tokens */
:root {
	--ltc-theme-accent: #405cf6;
	--ltc-theme-logo-h: 52px;
	--lt-ink: #1f2131;
	--lt-muted: #5f6475;
	--lt-line: #e7e8ee;
	--lt-soft: #f6f7fa;
	--lt-bg: #fff;
	--lt-header-h: 76px;
	--lt-pad: clamp(16px, 4vw, 60px);
	--lt-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	/* Tell the LMS plugin how tall the sticky header is, so its sidebar sits below it. */
}
html:root { --ltc-top: var(--lt-header-h); --ltc-accent: var(--ltc-theme-accent); }

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--lt-bg); color: var(--lt-ink); font-family: var(--lt-font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--ltc-theme-accent); }
a:hover { color: color-mix(in srgb, var(--ltc-theme-accent) 80%, #000); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--lt-ink); }
:focus-visible { outline: 2px solid var(--ltc-theme-accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.lt-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #fff; padding: 8px 14px; border-radius: 6px; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.lt-skip:focus { left: 8px; }

.lt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--ltc-theme-accent); color: #fff; font: 600 15px/1 var(--lt-font); text-decoration: none; cursor: pointer; }
.lt-btn:hover { color: #fff; background: color-mix(in srgb, var(--ltc-theme-accent) 85%, #000); }

/* ------------------------------------------------------------------ Header */
.lt-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--lt-line); }
.admin-bar .lt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .lt-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .lt-header { top: 0; } }

.lt-header-inner { display: flex; align-items: stretch; height: var(--lt-header-h); padding: 0 var(--lt-pad); gap: clamp(20px, 5vw, 76px); }
.lt-brand { display: flex; align-items: center; flex: none; }
.lt-brand .custom-logo-link { display: block; line-height: 0; }
.lt-brand .custom-logo { height: var(--ltc-theme-logo-h); width: auto; max-width: min(240px, 46vw); object-fit: contain; }
.lt-site-name { font-weight: 700; font-size: 22px; color: var(--lt-ink); text-decoration: none; letter-spacing: -.01em; }

/* Menu: icon + label, blue bar under the current item */
.lt-nav { display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; }
.lt-menu { display: flex; align-items: stretch; gap: 0; margin: 0; padding: 0; list-style: none; }
.lt-menu > li { position: relative; display: flex; }
.lt-nav-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 0 17px; color: var(--lt-ink); font-size: 15.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.lt-nav-link:hover, .lt-nav-link:focus-visible { color: var(--ltc-theme-accent); }
.lt-nav-link .lt-ico { width: 23px; height: 23px; flex: none; }
.lt-nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--ltc-theme-accent); transform: scaleX(0); transition: transform .18s ease; }
.lt-menu > .current-menu-item > .lt-nav-link, .lt-menu > .current-menu-ancestor > .lt-nav-link, .lt-menu > .current_page_item > .lt-nav-link { color: var(--lt-ink); font-weight: 600; }
.lt-menu > .current-menu-item > .lt-nav-link::after, .lt-menu > .current-menu-ancestor > .lt-nav-link::after, .lt-menu > .current_page_item > .lt-nav-link::after { transform: scaleX(1); }
.lt-menu > .current-menu-item > .lt-nav-link .fillable, .lt-menu > .current_page_item > .lt-nav-link .fillable { fill: currentColor; }

/* Drop-down for second-level items */
.lt-menu .sub-menu { position: absolute; top: 100%; left: 8px; min-width: 220px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--lt-line); border-radius: 10px; box-shadow: 0 12px 32px rgba(20, 25, 50, .12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.lt-menu > li:hover > .sub-menu, .lt-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.lt-menu .sub-menu a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--lt-ink); text-decoration: none; font-size: 15px; }
.lt-menu .sub-menu a:hover { background: var(--lt-soft); color: var(--ltc-theme-accent); }

/* Right-hand tools: search | Sign in */
.lt-tools { display: flex; align-items: center; gap: 22px; margin-left: auto; flex: none; }
.lt-tool { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--lt-ink); cursor: pointer; }
.lt-tool:hover { background: var(--lt-soft); color: var(--ltc-theme-accent); }
.lt-tool .lt-ico { width: 23px; height: 23px; }
.lt-divider { width: 1px; height: 30px; background: var(--lt-line); }
.lt-signin { color: var(--lt-ink); font-size: 17px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.lt-signin:hover { color: var(--ltc-theme-accent); }

/* Signed-in account menu */
.lt-user { position: relative; }
.lt-user-toggle { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border: 0; border-radius: 999px; background: none; color: var(--lt-ink); font: 500 16px/1 var(--lt-font); cursor: pointer; }
.lt-user-toggle:hover { background: var(--lt-soft); }
.lt-avatar { width: 34px; height: 34px; border-radius: 50%; display: block; }
.lt-chev { width: 16px; height: 16px; transition: transform .15s; }
.lt-user-toggle[aria-expanded="true"] .lt-chev { transform: rotate(180deg); }
.lt-user-menu { position: absolute; right: 0; top: calc(100% + 12px); min-width: 220px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--lt-line); border-radius: 10px; box-shadow: 0 12px 32px rgba(20, 25, 50, .14); z-index: 5; }
.lt-user-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; color: var(--lt-ink); text-decoration: none; font-size: 15px; }
.lt-user-menu a:hover { background: var(--lt-soft); color: var(--ltc-theme-accent); }
.lt-user-menu .lt-ico { width: 19px; height: 19px; }

/* Search bar that drops down under the header */
.lt-search { border-top: 1px solid var(--lt-line); background: #fff; padding: 14px var(--lt-pad); }
.lt-search-form { display: flex; align-items: center; gap: 12px; max-width: 900px; margin: 0 auto; }
.lt-search-form > .lt-ico { width: 22px; height: 22px; color: var(--lt-muted); flex: none; }
.lt-search-form input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--lt-line); border-radius: 8px; font: 16px var(--lt-font); color: var(--lt-ink); background: var(--lt-soft); }
.lt-search-form input:focus { outline: none; border-color: var(--ltc-theme-accent); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ltc-theme-accent) 18%, transparent); }

.lt-burger { display: none; }
.lt-burger .lt-ico-close { display: none; }
.lt-burger[aria-expanded="true"] .lt-ico-open { display: none; }
.lt-burger[aria-expanded="true"] .lt-ico-close { display: block; }

/* Narrower screens: slightly tighter */
@media (max-width: 1280px) {
	.lt-nav-link { padding: 0 14px; gap: 10px; }
	.lt-header-inner { gap: 28px; }
}

/* Tablets and phones: menu behind the ☰ button */
@media (max-width: 1080px) {
	.lt-burger { display: inline-flex; }
	.lt-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--lt-line); box-shadow: 0 16px 30px rgba(20, 25, 50, .10); max-height: calc(100vh - var(--lt-header-h)); overflow-y: auto; }
	.lt-nav.is-open { display: block; }
	.lt-menu { flex-direction: column; padding: 8px 0; }
	.lt-menu > li { display: block; }
	.lt-nav-link { padding: 14px var(--lt-pad); gap: 14px; font-size: 17px; }
	.lt-nav-link::after { top: 8px; bottom: 8px; left: 0; right: auto; width: 4px; height: auto; transform: scaleY(0); border-radius: 0 3px 3px 0; }
	.lt-menu > .current-menu-item > .lt-nav-link::after, .lt-menu > .current_page_item > .lt-nav-link::after { transform: scaleY(1); }
	.lt-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px calc(var(--lt-pad) + 37px); }
	.lt-tools { gap: 10px; }
}
@media (max-width: 600px) {
	:root { --lt-header-h: 64px; }
	.lt-brand .custom-logo { height: min(var(--ltc-theme-logo-h), 36px); }
	.lt-user-name, .lt-chev { display: none; }
	.lt-divider { display: none; }
	.lt-signin { font-size: 16px; }
	.lt-search-form .lt-btn { display: none; }
	.lt-header-inner { gap: 12px; }
	.lt-brand { flex: 0 1 auto; min-width: 0; }
	.lt-site-name { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.lt-tools { gap: 6px; }
}

/* ------------------------------------------------------------------ Content */
.lt-site-content { min-height: 50vh; }
.lt-wrap { max-width: 860px; margin: 0 auto; padding: 48px 20px 72px; }
.lt-wrap.lt-wide { max-width: 1200px; }
.lt-entry-title { font-size: clamp(28px, 4vw, 40px); margin: 0 0 24px; letter-spacing: -.015em; }
.lt-entry-meta { color: var(--lt-muted); margin: -12px 0 24px; }
.lt-entry-image { margin: 0 0 28px; }
.lt-entry-image img { border-radius: 12px; display: block; }
.lt-entry-content { font-size: 17px; }
.lt-entry-content > * { margin-block: 0 1.1em; }
.lt-entry-content img { border-radius: 8px; }
.lt-entry-content .alignwide { margin-inline: calc(-1 * min(120px, 8vw)); max-width: none; }
.lt-entry-content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.lt-entry-content :is(input[type=text], input[type=email], input[type=password], textarea, select), .lt-searchform input { width: 100%; max-width: 480px; min-height: 44px; padding: 8px 12px; border: 1px solid #cfd2dc; border-radius: 8px; font: 16px var(--lt-font); }
.lt-full { min-height: 40vh; }
.lt-archive-desc { color: var(--lt-muted); margin: -8px 0 28px; }

.lt-searchform { display: flex; gap: 10px; margin: 0 0 32px; max-width: 620px; }
.lt-searchform input { flex: 1; max-width: none; }

.lt-list { display: grid; gap: 18px; }
.lt-list-item { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding: 18px; border: 1px solid var(--lt-line); border-radius: 12px; }
.lt-list-item:not(:has(.lt-list-thumb)) { grid-template-columns: 1fr; }
.lt-list-thumb img { width: 200px; height: 130px; object-fit: cover; border-radius: 8px; display: block; }
.lt-list-type { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ltc-theme-accent); margin-bottom: 4px; }
.lt-list-title { font-size: 20px; margin: 0 0 6px; }
.lt-list-title a { color: var(--lt-ink); text-decoration: none; }
.lt-list-title a:hover { color: var(--ltc-theme-accent); }
.lt-list-excerpt { color: var(--lt-muted); }
.lt-empty { color: var(--lt-muted); }
.navigation.pagination { margin-top: 32px; }
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--lt-line); color: var(--lt-ink); text-decoration: none; padding: 0 10px; }
.page-numbers.current { background: var(--ltc-theme-accent); border-color: var(--ltc-theme-accent); color: #fff; }
@media (max-width: 600px) {
	.lt-list-item { grid-template-columns: 1fr; }
	.lt-list-thumb img { width: 100%; height: 180px; }
	.lt-wrap { padding-top: 32px; }
}

.lt-comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--lt-line); }
.lt-comment-list { padding-left: 0; list-style: none; }

/* ------------------------------------------------------------------ Footer */
.lt-footer { background: var(--lt-footer-bg, #355f96); color: #fff; }
.lt-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; max-width: 1220px; margin: 0 auto; min-height: 112px; padding: 26px 30px; }
.lt-footer-logo-link { display: block; line-height: 0; color: #fff; text-decoration: none; }
.lt-footer-logo { height: var(--lt-footer-logo-h, 58px); width: auto; max-width: min(320px, 70vw); object-fit: contain; }
.lt-footer-name { font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: .02em; }
.lt-footer-nav { flex: 1 1 auto; }
.lt-footer-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 0; padding: 0; list-style: none; }
.lt-footer-menu a { color: #fff; text-decoration: none; font-size: 15px; opacity: .92; }
.lt-footer-menu a:hover { opacity: 1; text-decoration: underline; }
.lt-social { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.lt-social a { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--lt-footer-bg, #355f96); transition: transform .15s, box-shadow .15s; }
.lt-social a:hover, .lt-social a:focus-visible { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.2); color: var(--lt-footer-bg, #355f96); }
.lt-social a:focus-visible { outline-color: #fff; }
.lt-social svg { width: 17px; height: 17px; }
.lt-footer-small { max-width: 1220px; margin: 0 auto; padding: 0 30px 20px; font-size: 13px; color: rgba(255,255,255,.8); }
.lt-footer-small a { color: #fff; }
@media (max-width: 600px) {
	.lt-footer-inner { flex-direction: column; justify-content: center; text-align: center; padding: 30px 20px; }
	.lt-social { justify-content: center; }
	.lt-social a { width: 38px; height: 38px; }
	.lt-social svg { width: 20px; height: 20px; }
	.lt-footer-small { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* Full-width pages: no gap between the last section and the footer. */
.lt-full > :first-child { margin-top: 0; }
.lt-full > :last-child { margin-bottom: 0; }
.lt-full { min-height: 0; }

/* Footer always at the very bottom: on short pages the content stretches to fill the screen. */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.admin-bar { min-height: calc(100vh - 32px); min-height: calc(100dvh - 32px); }
@media (max-width: 782px) { body.admin-bar { min-height: calc(100vh - 46px); min-height: calc(100dvh - 46px); } }
.lt-site-content { flex: 1 0 auto; min-height: 0; }
.lt-header, .lt-footer { flex: none; }

/* ------------------------------------------------------------------ Title banner */
.lt-banner { position: relative; background: var(--lt-banner-bg, #25609a); color: #fff; margin-bottom: clamp(28px, 4vw, 52px); }
.lt-banner-inner { max-width: 1200px; margin: 0 auto; padding: clamp(40px, 6vw, 70px) 20px clamp(26px, 3.5vw, 40px); }
.lt-banner-title { margin: 0; color: #fff; font-family: "Jost", "Futura", "Century Gothic", var(--lt-font); font-weight: 700; font-size: clamp(34px, 5vw, 58px); line-height: 1.08; letter-spacing: -.005em; text-wrap: balance; }
.lt-banner-sub { margin: 10px 0 0; color: rgba(255,255,255,.85); font-size: 17px; }
.lt-banner-wave { position: absolute; left: 0; right: 0; top: 100%; display: block; width: 100%; height: clamp(22px, 3.2vw, 46px); fill: var(--lt-banner-bg, #25609a); margin-top: -1px; }
.lt-wrap.lt-has-banner { padding-top: clamp(20px, 3vw, 36px); }
.lt-wrap-title { padding-bottom: 0; }
@media (max-width: 600px) {
	.lt-banner-inner { padding: 34px 20px 22px; }
}

/* Content starts at the same left edge as the banner title; ordinary text stays a readable width. */
.lt-wrap.lt-has-banner { max-width: 1200px; }
.lt-wrap.lt-has-banner:not(.lt-wide) > .lt-entry, .lt-wrap.lt-has-banner:not(.lt-wide) > .lt-comments, .lt-wrap.lt-has-banner:not(.lt-wide) > .navigation { max-width: 820px; }

/* Screens without the banner: plain title, lined up with the content. */
.lt-wrap.lt-wrap-title { max-width: 1200px; padding-top: 48px; padding-bottom: 0; }
.lt-wrap-title .lt-entry-title { margin-bottom: 0; }
.lt-wrap.lt-has-banner.lt-no-banner { padding-top: 48px; }

/* Picture banner: like the course page header (picture, dark fade from the left, big white title). */
.lt-banner--picture { background-color: var(--lt-banner-bg, #24476b); background-position: center; background-size: cover; background-repeat: no-repeat; margin-bottom: clamp(28px, 4vw, 48px); }
.lt-banner--picture.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 25, 45, .78), rgba(10, 25, 45, .35)); }
.lt-banner--picture .lt-banner-inner { position: relative; padding: clamp(48px, 6vw, 76px) 20px clamp(44px, 5.5vw, 68px); }
.lt-banner--picture .lt-banner-title { font-size: clamp(32px, 4.2vw, 52px); text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.lt-banner--picture .lt-banner-sub { font-size: clamp(16px, 1.6vw, 19px); max-width: 46em; color: rgba(255, 255, 255, .92); }
@media (max-width: 700px) {
	.lt-banner--picture.has-image::before { background: linear-gradient(180deg, rgba(10, 25, 45, .72), rgba(10, 25, 45, .62)); }
}

.lt-user-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------------ Sign-in pop-up */
.lt-login { width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 16px; background: #fff; color: var(--lt-ink); box-shadow: 0 24px 64px rgba(15, 20, 45, .28); overflow: auto; }
.lt-login::backdrop { background: rgba(15, 20, 40, .55); backdrop-filter: blur(2px); }
.lt-login[open] { animation: lt-login-in .18s ease-out; }
@keyframes lt-login-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.lt-login-box { position: relative; padding: 28px 30px 26px; font-family: var(--lt-font); }
.lt-login-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: #6b7280; cursor: pointer; }
.lt-login-close:hover { background: var(--lt-soft, #f3f4f6); color: var(--lt-ink); }
.lt-login-head { display: flex; justify-content: center; margin: 0 0 18px; }
.lt-login-logo { max-height: 52px; width: auto; max-width: 240px; object-fit: contain; }
.lt-login-site { font-weight: 700; font-size: 20px; }
.lt-login-panel h2 { margin: 0 0 4px; font-size: 24px; text-align: center; }
.lt-login-sub { margin: 0 0 20px; color: #6b7280; font-size: 15px; text-align: center; line-height: 1.5; }
.lt-login-panel > label { display: block; margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.lt-login input[type=text], .lt-login input[type=password] { display: block; width: 100%; max-width: none; margin-top: 6px; min-height: 46px; padding: 8px 12px; border: 1px solid #cfd2dc; border-radius: 8px; font: 16px var(--lt-font); color: inherit; background: #fff; }
.lt-login input[type=text]:focus, .lt-login input[type=password]:focus { outline: none; border-color: var(--ltc-theme-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ltc-theme-accent) 22%, transparent); }
.lt-login-pw { position: relative; display: block; }
.lt-login-pw input { padding-right: 64px !important; }
.lt-login-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); margin-top: 3px; padding: 6px 10px; border: 0; border-radius: 6px; background: none; color: var(--ltc-theme-accent); font: 600 13px var(--lt-font); cursor: pointer; }
.lt-login-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin: -2px 0 18px; font-size: 14px; }
.lt-login-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.lt-login-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--ltc-theme-accent); }
.lt-login-link { padding: 0; border: 0; background: none; color: var(--ltc-theme-accent); font: 500 14px var(--lt-font); cursor: pointer; }
.lt-login-link:hover { text-decoration: underline; }
.lt-login-btn { display: block; width: 100%; min-height: 48px; border: 0; border-radius: 10px; background: var(--ltc-theme-accent); color: #fff; font: 600 16px var(--lt-font); cursor: pointer; transition: filter .15s; }
.lt-login-btn:hover { filter: brightness(.93); }
.lt-login-btn[disabled] { opacity: .7; cursor: progress; }
.lt-login-msg { margin: 0 0 16px; padding: 11px 14px; border-radius: 8px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: 14px; line-height: 1.45; }
.lt-login-join { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 20px -30px -26px; padding: 16px 20px; border-top: 1px solid #eceef3; background: #f8f9fc; border-radius: 0 0 16px 16px; font-size: 14px; color: #6b7280; }
.lt-login-join a { color: var(--ltc-theme-accent); font-weight: 600; text-decoration: none; }
.lt-login-join a:hover { text-decoration: underline; }
.lt-login-back { margin: 16px 0 0; text-align: center; }
.lt-login-done { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; background: #dcfce7; color: #15803d; }
@media (max-width: 480px) { .lt-login-box { padding: 24px 20px 22px; } .lt-login-join { margin: 20px -20px -22px; } }

/* ------------------------------------------------------------------ Home page (pattern "Learn the COLREGs home page") */
.lt-home { --lt-navy: #0d2340; --lt-navy-2: #355f96; margin: 0; }
.lt-home .lt-sec { margin: 0; padding: clamp(56px, 8vw, 96px) max(20px, calc((100% - 1160px) / 2)); }
.lt-home .lt-sec > *, .lt-home .lt-sec > .wp-block-group__inner-container > * { margin-block: 0; }
.lt-home .lt-sec > * + *, .lt-home .lt-sec > .wp-block-group__inner-container > * + * { margin-top: 18px; }
.lt-home .wp-block-group__inner-container { display: contents; }
.lt-home h2.wp-block-heading { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.015em; }
.lt-home h3.wp-block-heading { font-size: 20px; margin: 14px 0 6px; }
.lt-home p { line-height: 1.65; }
.lt-home .lt-sec-lead { max-width: 640px; margin-inline: auto; color: var(--lt-muted); font-size: 18px; }
.lt-home .wp-block-button__link { display: inline-flex; align-items: center; min-height: 52px; padding: 12px 26px; border-radius: 10px; font-size: 17px; font-weight: 600; text-decoration: none; transition: transform .15s, filter .15s, background .15s; }
.lt-home .wp-block-button__link:hover { transform: translateY(-1px); filter: brightness(1.05); }
.lt-home .lt-btn-go .wp-block-button__link { background: #00a82d; color: #fff; box-shadow: 0 8px 20px rgba(0, 168, 45, .28); }
.lt-home .lt-btn-light .wp-block-button__link { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.lt-home .lt-btn-ghost .wp-block-button__link { min-height: 44px; padding: 8px 18px; font-size: 15px; background: none; color: var(--ltc-theme-accent); border: 1px solid color-mix(in srgb, var(--ltc-theme-accent) 40%, transparent); }
.lt-home .lt-btn-ghost .wp-block-button__link:hover { background: color-mix(in srgb, var(--ltc-theme-accent) 8%, #fff); }

/* Hero */
.lt-home .lt-hero-home { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% 30%, rgba(64, 92, 246, .35), transparent 60%), linear-gradient(160deg, var(--lt-navy) 0%, #12325a 55%, var(--lt-navy-2) 100%); padding-block: clamp(56px, 8vw, 110px); }
.lt-home .lt-hero-cols { gap: clamp(24px, 5vw, 64px); margin: 0; }
.lt-home .lt-kicker { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.lt-home .lt-hero-title { margin: 0; font-size: clamp(36px, 5.2vw, 62px); line-height: 1.05; letter-spacing: -.025em; color: #fff; }
.lt-home .lt-hero-lead { margin: 22px 0 0; max-width: 560px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.85); }
.lt-home .lt-hero-btns { margin-top: 30px; gap: 12px; }
.lt-home .lt-hero-note { margin-top: 16px; font-size: 14.5px; color: rgba(255,255,255,.7); }
.lt-home .lt-hero-art { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.25)); }

/* Live numbers */
.lt-home .lt-stats-sec { padding-block: 0; background: linear-gradient(var(--lt-navy-2) 50%, #fff 50%); }
.ltc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--lt-line, #e7e8ee); border-radius: 16px; background: var(--lt-line, #e7e8ee); box-shadow: 0 16px 40px rgba(13, 35, 64, .12); }
.ltc-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; background: #fff; text-align: center; }
.ltc-stat-num { font-size: clamp(28px, 3vw, 38px); font-weight: 800; line-height: 1; color: var(--ltc-theme-accent, #405cf6); letter-spacing: -.02em; }
.ltc-stat-label { font-size: 14.5px; color: var(--lt-muted, #5f6475); }

/* Intro */
.lt-home .lt-intro-cols { gap: clamp(24px, 5vw, 64px); margin: 0; }
.lt-home .lt-intro p { font-size: 17.5px; color: #3b4050; }
.lt-home .lt-checks { list-style: none; margin: 0; padding: 26px 28px; border-radius: 16px; background: var(--lt-soft); border: 1px solid var(--lt-line); }
.lt-home .lt-checks li { position: relative; margin: 0 0 14px; padding-left: 34px; font-weight: 600; line-height: 1.45; }
.lt-home .lt-checks li:last-child { margin-bottom: 0; }
.lt-home .lt-checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Card grids */
.lt-home .lt-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px !important; }
.lt-home .lt-feature, .lt-home .lt-teaser, .lt-home .lt-step { margin: 0; padding: 26px 26px 24px; border: 1px solid var(--lt-line); border-radius: 16px; background: #fff; }
.lt-home .lt-feature > *, .lt-home .lt-teaser > *, .lt-home .lt-step > *, .lt-home .lt-feature > .wp-block-group__inner-container > *, .lt-home .lt-teaser > .wp-block-group__inner-container > *, .lt-home .lt-step > .wp-block-group__inner-container > * { margin-block: 0; }
.lt-home .lt-feature p, .lt-home .lt-step p { color: var(--lt-muted); }
.lt-home .lt-feature-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--ltc-theme-accent) 10%, #fff); color: var(--ltc-theme-accent); }
.lt-home .lt-teasers-sec { background: var(--lt-soft); }
.lt-home .lt-teaser { display: flex; flex-direction: column; box-shadow: 0 6px 20px rgba(13, 35, 64, .05); }
.lt-home .lt-teaser-q { margin-top: 4px !important; font-size: 16.5px; color: #3b4050; flex: 1; }
.lt-home .lt-teaser-a { margin: 14px 0 16px !important; padding: 0; border-top: 1px dashed var(--lt-line); }
.lt-home .lt-teaser-a summary { padding-top: 12px; cursor: pointer; color: var(--ltc-theme-accent); font-weight: 600; font-size: 15px; }
.lt-home .lt-teaser-a p { margin: 8px 0 0; padding: 12px 14px; border-radius: 10px; background: #ecfdf3; color: #14532d; font-size: 15px; }
.lt-home .lt-teaser .wp-block-buttons { margin-top: auto !important; }
.lt-home .lt-courses-sec .ltc-courses { margin-top: 36px; grid-template-columns: repeat(auto-fit, minmax(260px, 380px)); justify-content: center; }
.lt-home .lt-why .lt-feature { transition: border-color .15s, box-shadow .15s, transform .15s; }
.lt-home .lt-why .lt-feature:hover { border-color: color-mix(in srgb, var(--ltc-theme-accent) 35%, var(--lt-line)); box-shadow: 0 12px 28px rgba(13, 35, 64, .08); transform: translateY(-2px); }
.lt-home .lt-how { background: var(--lt-soft); }
.lt-home .lt-step .lt-step-num { display: grid; margin: 0; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ltc-theme-accent); color: #fff; font-weight: 800; font-size: 18px; }
.lt-home .lt-pricing-sec .ltc-pricing { margin-top: 36px; }

/* Questions */
.lt-home .lt-faqs .lt-faq { max-width: 820px; margin-inline: auto; margin-top: 12px !important; padding: 0; border: 1px solid var(--lt-line); border-radius: 12px; background: #fff; }
.lt-home .lt-faqs h2 + .lt-faq { margin-top: 32px !important; }
.lt-home .lt-faq summary { position: relative; padding: 18px 52px 18px 22px; font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; }
.lt-home .lt-faq summary::-webkit-details-marker { display: none; }
.lt-home .lt-faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--ltc-theme-accent); }
.lt-home .lt-faq[open] summary::after { content: "–"; }
.lt-home .lt-faq p { margin: 0; padding: 0 22px 20px; color: var(--lt-muted); }

/* Final call to action */
.lt-home .lt-final { color: #fff; background: linear-gradient(135deg, var(--lt-navy) 0%, var(--lt-navy-2) 100%); }
.lt-home .lt-final h2 { color: #fff; }
.lt-home .lt-final p { color: rgba(255,255,255,.85); font-size: 18px; }
.lt-home .lt-final .wp-block-buttons { justify-content: center; margin-top: 26px; gap: 12px; }

@media (max-width: 900px) {
	.lt-home .lt-grid-3 { grid-template-columns: 1fr 1fr; }
	.lt-home .lt-hero-art { max-width: 380px; }
}
@media (max-width: 781px) {
	.lt-home .lt-hero-art { max-width: 300px; }
}
@media (max-width: 600px) {
	.lt-home .lt-grid-3 { grid-template-columns: 1fr; }
	.lt-home .lt-hero-btns .wp-block-button, .lt-home .lt-hero-btns .wp-block-button__link { width: 100%; justify-content: center; }
	.ltc-stats { grid-template-columns: 1fr 1fr; }
}
.lt-home .lt-feature, .lt-home .lt-step, .lt-home .lt-teaser { display: flex; flex-direction: column; gap: 10px; }
.lt-home .lt-feature h3.wp-block-heading, .lt-home .lt-step h3.wp-block-heading, .lt-home .lt-teaser h3.wp-block-heading { margin-top: 6px !important; }
