/*
 * Acheron Site Experience: house skin for the pages the plugin does not build itself (full sites only).
 * LearnDash focus mode and course pages, the Study Suite tool pages, WooCommerce account, cart and checkout,
 * and the ordinary theme pages (FAQ, Contact, Terms, 404). Colors and type follow the house standard.
 * Content is never changed here, only how it looks.
 */

body.acx-house {
	--acx-night: #11243e;
	--acx-navy: #152d4b;
	--acx-gold: #d98e04;
	--acx-gold-d: #c57f03;
	--acx-teal-l: #7fd0cc;
	--acx-teal: #1c7c7d;
	--acx-teal-d: #155f60;
	--acx-ink: #11243e;
	--acx-ink2: #33445a;
	--acx-line: #d6dde6;
	--acx-bg: #f4f6f9;
	--acx-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
	--acx-head: Archivo, "Source Sans 3", system-ui, sans-serif;
}

/* ------------------------------------------------------------ ordinary theme pages */
body.acx-house:not(.ld-in-focus-mode) { background: var(--acx-bg); }
body.acx-house .site-content, body.acx-house .entry-content, body.acx-house .ast-container { font-family: var(--acx-body); color: var(--acx-ink); }
body.acx-house .entry-content { font-size: 17px; line-height: 1.6; }
:where(body.acx-house .entry-content) a { color: var(--acx-teal); }
:where(body.acx-house .entry-content) a:hover { color: var(--acx-teal-d); }
body.acx-house .entry-content a:not([class]) { color: var(--acx-teal); }
body.acx-house .entry-content a:not([class]):hover { color: var(--acx-teal-d); }
body.acx-house:not(.acx-own-page) .entry-title, body.acx-house:not(.acx-own-page) .entry-content :where(h1, h2, h3) { font-family: var(--acx-head); color: var(--acx-ink); }
body.acx-house:not(.acx-own-page) .ast-separate-container .ast-article-single,
body.acx-house:not(.acx-own-page) .ast-separate-container .ast-article-post { border-radius: 14px; }
body.acx-house:not(.acx-own-page).page .entry-header { border-left: 6px solid var(--acx-gold); padding-left: 14px; }
body.acx-house :focus-visible { outline: 3px solid var(--acx-night); outline-offset: 2px; box-shadow: 0 0 0 5px var(--acx-gold); }

/* Buttons across theme, WooCommerce, Contact Form 7. Gold carries navy text. */
body.acx-house .entry-content .wp-block-button__link,
body.acx-house .woocommerce a.button, body.acx-house .woocommerce button.button, body.acx-house .woocommerce input.button,
body.acx-house .woocommerce #respond input#submit, body.acx-house .woocommerce a.button.alt, body.acx-house .woocommerce button.button.alt,
body.acx-house .wpcf7 input[type="submit"] {
	background: var(--acx-gold) !important; color: var(--acx-night) !important; border: 0 !important; border-radius: 10px !important;
	font-family: var(--acx-body) !important; font-weight: 700 !important; min-height: 46px; padding: 10px 20px !important;
}
body.acx-house .woocommerce a.button:hover, body.acx-house .woocommerce button.button:hover, body.acx-house .wpcf7 input[type="submit"]:hover { background: var(--acx-gold-d) !important; color: var(--acx-night) !important; }

/* Forms (low specificity, so the Study Suite and WooCommerce keep their own field styles where they set them). */
:where(body.acx-house .entry-content) :where(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], textarea, select),
body.acx-house .woocommerce form .input-text {
	border: 1.5px solid #8796a8; border-radius: 10px; min-height: 46px; font-family: var(--acx-body); font-size: 16px; color: var(--acx-ink); background: #fff;
}
:where(body.acx-house .entry-content) textarea { min-height: 140px; }
body.acx-house .wpcf7 label { font-weight: 600; }

/* WooCommerce account navigation and tables. */
body.acx-house .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
body.acx-house .woocommerce-MyAccount-navigation li a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 14px; border-radius: 22px; border: 1.5px solid var(--acx-night); color: var(--acx-night); text-decoration: none; font-weight: 600; }
body.acx-house .woocommerce-MyAccount-navigation li.is-active a { background: var(--acx-night); color: #fff; }
@media (min-width: 922px) { body.acx-house .woocommerce-MyAccount-navigation { width: 100%; float: none; margin-bottom: 18px; } body.acx-house .woocommerce-MyAccount-content { width: 100%; float: none; } }
body.acx-house .woocommerce table.shop_table { border-radius: 12px; overflow: hidden; border-color: var(--acx-line); }
body.acx-house .woocommerce-info, body.acx-house .woocommerce-message { border-top-color: var(--acx-teal); }
body.acx-house .woocommerce-info::before, body.acx-house .woocommerce-message::before { color: var(--acx-teal); }

/* FAQ accordion (Easy Accordion). */
body.acx-house .sp-easy-accordion .sp-ea-single { border-radius: 12px !important; border-color: var(--acx-line) !important; margin-bottom: 10px !important; overflow: hidden; background: #fff; }
body.acx-house .sp-easy-accordion .ea-header a { font-family: var(--acx-body) !important; font-weight: 700 !important; color: var(--acx-ink) !important; background: #fff !important; min-height: 52px; }
body.acx-house .sp-easy-accordion .ea-header a .ea-expand-icon { color: var(--acx-teal) !important; }
body.acx-house .sp-easy-accordion .ea-body { font-family: var(--acx-body) !important; color: var(--acx-ink2) !important; font-size: 16px !important; }

/* ------------------------------------------------------------ LearnDash (course pages and focus mode) */
body.acx-house .learndash-wrapper, body.acx-house .learndash-wrapper .ld-item-title, body.acx-house .learndash-wrapper .ld-table-list { font-family: var(--acx-body); }
body.acx-house .learndash-wrapper h1, body.acx-house .learndash-wrapper h2, body.acx-house .learndash-wrapper h3 { font-family: var(--acx-head); }
body.acx-house .learndash-wrapper .ld-button:not(.ld-button-reverse):not(.ld-button-transparent),
body.acx-house .learndash-wrapper .learndash_mark_complete_button, body.acx-house .learndash-wrapper #learndash_mark_complete_button,
body.acx-house .learndash-wrapper .wpProQuiz_button, body.acx-house .learndash-wrapper .wpProQuiz_button2 {
	border-radius: 10px !important; font-family: var(--acx-body) !important; font-weight: 700 !important; min-height: 44px;
}
body.acx-house .learndash-wrapper .learndash_mark_complete_button, body.acx-house .learndash-wrapper #learndash_mark_complete_button {
	background-color: var(--acx-gold) !important; color: var(--acx-night) !important;
}

/* Focus mode header: navy band, house wordmark, white text. */
body.acx-house .ld-focus .ld-focus-header { background: var(--acx-night) !important; color: #fff; border-bottom: 0 !important; }
body.acx-house .ld-focus .ld-focus-header .ld-brand-logo { background: var(--acx-night) !important; border-color: rgba(255,255,255,.12) !important; }
body.acx-house .ld-focus .ld-focus-header .ld-brand-logo img { display: none !important; }
body.acx-house .ld-focus .ld-focus-header .ld-brand-logo a { display: flex; flex-direction: column; justify-content: center; text-decoration: none; height: 100%; padding: 0 6px; }
body.acx-house .ld-focus .ld-focus-header .ld-brand-logo a::before { content: "MyTest"; font-family: var(--acx-head); font-weight: 800; font-size: 21px; color: #fff; line-height: 1; }
body.acx-house .ld-focus .ld-focus-header .ld-brand-logo a::after { content: "BY ACHERON REVIEW"; font-family: var(--acx-body); font-size: 10px; letter-spacing: .12em; color: var(--acx-gold); margin-top: 4px; }
body.acx-house .ld-focus .ld-focus-header .ld-content-action, body.acx-house .ld-focus .ld-focus-header .ld-user-menu, body.acx-house .ld-focus .ld-focus-header .ld-progress { border-color: rgba(255,255,255,.12) !important; }
body.acx-house .ld-focus .ld-focus-header a, body.acx-house .ld-focus .ld-focus-header .ld-text, body.acx-house .ld-focus .ld-focus-header .ld-user-welcome-text,
body.acx-house .ld-focus .ld-focus-header .ld-progress-percentage, body.acx-house .ld-focus .ld-focus-header .ld-progress-steps, body.acx-house .ld-focus .ld-focus-header .ld-icon { color: #fff !important; }
body.acx-house .ld-focus .ld-focus-header .ld-progress-bar { background: #2b4566 !important; }
body.acx-house .ld-focus .ld-focus-header .ld-progress-bar-percentage { background: var(--acx-teal-l) !important; }
body.acx-house .ld-focus .ld-focus-header .ld-progress-percentage { color: var(--acx-teal-l) !important; }
body.acx-house .ld-focus .ld-focus-header .ld-user-menu .ld-user-menu-items a { color: var(--acx-ink) !important; }
body.acx-house .ld-focus .ld-focus-header .ld-mobile-nav span { background: #fff !important; }
body.acx-house .ld-focus .ld-focus-header .ld-mobile-nav { background: var(--acx-night) !important; border-color: rgba(255,255,255,.12) !important; }

/* Focus mode sidebar and content. */
body.acx-house .ld-focus .ld-focus-sidebar .ld-course-navigation-heading { background: var(--acx-navy) !important; border-left: 6px solid var(--acx-gold); }
body.acx-house .ld-focus .ld-focus-sidebar .ld-course-navigation-heading h3 a { font-family: var(--acx-head); color: #fff !important; }
body.acx-house .ld-focus .ld-focus-sidebar .ld-lesson-item.ld-is-current-lesson, body.acx-house .ld-focus .ld-focus-sidebar .ld-table-list-item-preview.ld-is-current-item { background: #e8f4f4 !important; }
body.acx-house .ld-focus .ld-focus-sidebar a { color: var(--acx-ink); }
body.acx-house .ld-focus .ld-focus-content { font-family: var(--acx-body); color: var(--acx-ink); font-size: 17px; line-height: 1.6; }
body.acx-house .ld-focus .ld-focus-content h1 { font-family: var(--acx-head); color: var(--acx-ink); font-weight: 800; }
body.acx-house .ld-focus .ld-focus-content a { color: var(--acx-teal); }

/* ------------------------------------------------------------ Study Suite tools: house tokens, always light */
body.acx-house .acss-root,
body.acx-house .acss-root:not([data-theme="light"]) {
	--acss-blue: #2b63b0; --acss-blue-strong: #1f4f91; --acss-blue-ink: #245aa3; --acss-blue-tint: #e9f0fa; --acss-blue-tint-2: #cfdff4;
	--acss-gold: #d98e04; --acss-gold-ink: #8a5a02; --acss-gold-tint: #fdf3e1;
	--acss-green: #1c7c7d; --acss-green-ink: #155f60; --acss-green-tint: #e3f2f2;
	--acss-red: #b34a30; --acss-red-ink: #9a3d27; --acss-red-tint: #f8e7e2;
	--acss-surface: #ffffff; --acss-surface-2: #f4f6f9; --acss-surface-3: #e9eef4;
	--acss-text: #11243e; --acss-text-2: #33445a; --acss-text-3: #4a5a70;
	--acss-border: #d6dde6; --acss-border-soft: #e3e8ee; --acss-border-strong: #8796a8;
	--acss-accent: #1c7c7d; --acss-accent-hover: #155f60; --acss-on-accent: #ffffff;
	--acss-focus: #d98e04; --acss-focus-halo: rgba(217, 142, 4, 0.28);
	--acss-bg: #f4f6f9; --acss-blue-strong: #1f4f91;
	--acss-slate-900: #11243e; --acss-slate-700: #33445a; --acss-slate-600: #4a5a70; --acss-slate-500: #5f6c78;
	--acss-slate-400: #8796a8; --acss-slate-300: #b8c2cc; --acss-slate-200: #d6dde6; --acss-slate-100: #e9edf1; --acss-slate-50: #f4f6f9;
	--acss-highlight: #fbe7a1; --acss-highlight-text: #11243e; --acss-overlay: rgba(17, 36, 62, 0.55);
	--acss-chart-1: #1c7c7d; --acss-chart-2: #d98e04; --acss-chart-ref: #8796a8; --acss-chart-band: rgba(28, 124, 125, 0.12); --acss-chart-grid: #e3e8ee;
	--acss-zone-1: #f8e7e2; --acss-zone-2: #fdf3e1; --acss-zone-3: #e3f2f2;
	--acss-exam-bar: #11243e; --acss-exam-bar-2: #152d4b;
	--acss-shadow-1: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.06);
	--acss-shadow-2: 0 4px 12px rgba(16, 24, 40, 0.08), 0 2px 4px rgba(16, 24, 40, 0.05);
	--acss-shadow-3: 0 18px 48px rgba(16, 24, 40, 0.18), 0 4px 12px rgba(16, 24, 40, 0.08);
	--acss-font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
	color-scheme: light;
}
body.acx-house .acss-root h1, body.acx-house .acss-root h2, body.acx-house .acss-root .acss-h2, body.acx-house .acss-root .acss-h3 { font-family: var(--acx-head); }

/* Page titles at the house size, and the footer held to the bottom of short pages. */
body.acx-house:not(.acx-own-page) .entry-title { font-size: clamp(26px, 4vw, 36px); font-weight: 800; line-height: 1.15; }
body.acx-house #page { min-height: 100vh; display: flex; flex-direction: column; }
body.acx-house #page > #content, body.acx-house #page > .site-content { flex: 1 0 auto; }

/* Contact Form 7 fields: clear borders and tap-sized. */
body.acx-house .wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.acx-house .wpcf7 textarea, body.acx-house .wpcf7 select {
	border: 1.5px solid #8796a8; border-radius: 10px; min-height: 48px; padding: 10px 12px; width: 100%;
	font-family: var(--acx-body); font-size: 16px; color: var(--acx-ink); background: #fff;
}
body.acx-house .wpcf7 textarea { min-height: 160px; }
