/*
Theme Name: APOA Theme
Theme URI: https://apoa.com.au/
Author: APOA
Author URI: https://apoa.com.au/
Description: Clean APOA block theme for the Australian Chinese landlord community website. Built for local optimization without Hostinger AI theme update logic.
Version: 0.1.6
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: apoa-theme
Tags: block-theme, full-site-editing, apoa
*/

/* =========================================================
   APOA theme CSS index
   1. Tokens and base
   2. Header and navigation
   3. Content layout
   4. Forms, login, registration
   5. Header account, VIP, tooltip
   6. Footer and responsive
========================================================= */

/* 1. Tokens and base */
:root {
	--apoa-blue: #00008b;
	--apoa-blue-hover: #000066;
	--apoa-blue-light: #1f4aa8;
	--apoa-red: #e4002b;
	--apoa-red-dark: #b80022;
	--apoa-black: #111111;
	--apoa-ink: #1d2430;
	--apoa-text: #1d2430;
	--apoa-muted: #6b7280;
	--apoa-danger: var(--apoa-red);
	--apoa-card-bg: #f8fafc;
	--apoa-card-border: rgba(0, 0, 0, 0.06);
	--apoa-input-border: rgba(0, 0, 0, 0.14);
	--apoa-focus-ring: rgba(0, 0, 139, 0.12);
	--apoa-button-bg: #343a40;
	--apoa-button-hover: #1f2328;
	--apoa-button-secondary-bg: #f3f4f6;
	--apoa-surface: #ffffff;
	--apoa-surface-alt: #f5f6f8;
	--apoa-content-width: 620px;
	--apoa-readable-width: 680px;
	--apoa-wide-width: 1120px;
	--apoa-font-sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-family: var(--apoa-font-sans);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.72;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

a {
	text-underline-offset: 0.18em;
}

img {
	max-width: 100%;
	height: auto;
}

/* 2. Header and navigation */
.site-header {
	border-bottom: 1px solid rgba(0, 0, 0, 0.18);
	position: relative;
}

.site-header .wp-block-site-title {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
}

.site-header .wp-block-site-tagline {
	font-size: 12px;
	line-height: 1.45;
	margin-top: 4px;
}

.wp-block-navigation {
	font-size: 13px;
	font-weight: 600;
}

.wp-block-navigation a {
	text-decoration: none;
}

.wp-block-navigation a:hover,
.wp-block-navigation a:focus {
	text-decoration: underline;
}

.apoa-main-nav-row {
	align-items: center !important;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	gap: 10px 16px;
	justify-content: center !important;
	margin-top: 6px;
	position: relative;
}

.apoa-main-nav-row .wp-block-navigation {
	display: inline-flex !important;
	flex: 0 1 auto;
	max-width: 100%;
	width: auto !important;
}

.apoa-main-nav-row > p {
	display: inline-flex;
	flex: 0 0 auto;
	margin: 0 !important;
}

.site-header p:has(.apoa-language-menu),
.site-header p:has(.apoa-language-context) {
	margin: 0 !important;
	padding: 0 !important;
}

.site-header .apoa-language-context {
	align-items: center;
	display: inline-flex;
	gap: 8px;
	position: relative;
	z-index: 5;
}

.site-header .apoa-language-context > span {
	border: 1px solid rgba(29, 36, 46, 0.14);
	border-radius: 999px;
	color: var(--apoa-muted);
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	padding: 8px 10px;
	text-transform: uppercase;
}

.site-header .apoa-language-context.is-zh > span {
	background: rgba(228, 0, 43, 0.08);
	border-color: rgba(228, 0, 43, 0.26);
	color: var(--apoa-red-dark);
}

.site-header .apoa-language-menu {
	position: relative;
	z-index: 5;
}

.site-header .has-medium-font-size > p:has(.apoa-language-menu),
.site-header .has-medium-font-size > p:has(.apoa-language-context) {
	align-self: flex-end;
	display: flex;
	justify-content: flex-end;
	margin: 0 !important;
}

.site-header .has-medium-font-size > p:has(.apoa-language-menu) + p,
.site-header .has-medium-font-size > p:has(.apoa-language-context) + p {
	margin-top: 0 !important;
}

.wp-block-navigation__submenu-container {
	border-radius: 0;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.site-header + .wp-block-separator {
	border-top-width: 2px;
	margin-bottom: 0;
	margin-top: 0;
}

.apoa-header-account {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.apoa-header-account .apoa-btn {
	border-radius: 6px;
	font-size: 14px;
	padding: 6px 14px;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.apoa-header-account .apoa-btn-outline {
	background: transparent;
	border: 1px solid var(--apoa-button-bg);
	color: var(--apoa-button-bg);
}

.apoa-header-account .apoa-btn-solid {
	background: var(--apoa-button-bg);
	border: 1px solid var(--apoa-button-bg);
	color: #fff;
}

.apoa-header-account .apoa-btn:hover {
	opacity: 0.85;
	transform: translateY(-1px);
}

.apoa-user-name {
	color: #333;
	font-size: 14px;
	font-weight: 500;
	margin-right: 6px;
}

/* 3. Content layout */
.wp-block-post-content > h1,
.wp-block-post-content > h2,
.wp-block-post-content > h3,
.wp-block-post-content > h4,
.wp-block-post-content > p,
.wp-block-post-content > ul,
.wp-block-post-content > ol,
.wp-block-post-content > hr,
.wp-block-post-content > figure,
.wp-block-post-content > .wp-block-heading {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	max-width: var(--apoa-content-width);
	width: 90%;
}

.wp-block-post-content > .wp-block-uagb-advanced-heading {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	max-width: var(--apoa-content-width);
	width: 90%;
}

.wp-block-post-content > h1,
.wp-block-post-content > h2,
.wp-block-post-content > h3,
.wp-block-post-content > h4,
.wp-block-post-content > .wp-block-heading {
	color: var(--apoa-black);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.35;
	margin-bottom: 16px;
	margin-top: 28px;
}

.wp-block-post-content .uagb-heading-text {
	color: var(--apoa-black);
	font-size: 21px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.35;
	margin-bottom: 16px;
}

.wp-block-post-content > h1 {
	font-size: 24px;
}

.wp-block-post-content > h2,
.wp-block-post-content > .wp-block-heading {
	font-size: 21px;
}

.wp-block-post-content > h3 {
	font-size: 17px;
}

.wp-block-post-content > p,
.wp-block-post-content > li {
	color: var(--apoa-black);
	font-size: 14px;
	line-height: 1.72;
}

.wp-block-post-content > p {
	margin-bottom: 12px;
	margin-top: 0;
}

.wp-block-post-content > ul,
.wp-block-post-content > ol {
	max-width: var(--apoa-content-width);
	padding-left: 24px;
}

.wp-block-post-content > ul li,
.wp-block-post-content > ol li {
	margin-bottom: 4px;
}

.wp-block-post-content > hr {
	border-color: rgba(17, 17, 17, 0.36);
	margin-bottom: 18px;
	margin-top: 18px;
}

.wp-block-post-content > .wpforms-container,
.wp-block-post-content > .tml,
.wp-block-post-content > .theme-my-login,
.wp-block-post-content > .apoa-register-wrapper {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	max-width: var(--apoa-readable-width);
	width: 90%;
}

.wp-block-post-content .wp-block-buttons {
	gap: 10px;
	justify-content: center;
	margin-bottom: 22px;
	margin-top: 18px;
}

.wp-block-post-content .wp-block-button__link {
	background-color: var(--apoa-button-bg) !important;
	border-radius: 999px;
	color: #fff !important;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	min-width: 0;
	padding: 9px 18px;
}

.wp-block-post-content .wp-block-button__link:hover,
.wp-block-post-content .wp-block-button__link:focus {
	background-color: var(--apoa-button-hover) !important;
	color: #fff !important;
}

.apoa-single-main {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	max-width: 920px;
	width: min(90vw, 920px);
}

.apoa-single-main > .wp-block-post-title,
.apoa-single-main > .wp-block-group {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	max-width: var(--apoa-readable-width);
	width: 100%;
}

.apoa-single-main .wp-block-post-title {
	font-size: clamp(30px, 3vw, 42px);
	letter-spacing: 0;
	line-height: 1.18;
}

.apoa-guide-post .apoa-single-main {
	padding-top: 26px !important;
}

.apoa-bilingual-post-title {
	border-bottom: 1px solid rgba(29, 36, 46, 0.16);
	margin-bottom: 18px;
	padding-bottom: 18px;
}

.single-post .wp-block-post-content {
	margin-left: auto;
	margin-right: auto;
	max-width: var(--apoa-readable-width);
	width: 100%;
}

.single-post .wp-block-post-content > h1,
.single-post .wp-block-post-content > h2,
.single-post .wp-block-post-content > h3,
.single-post .wp-block-post-content > h4,
.single-post .wp-block-post-content > p,
.single-post .wp-block-post-content > ul,
.single-post .wp-block-post-content > ol,
.single-post .wp-block-post-content > hr,
.single-post .wp-block-post-content > figure,
.single-post .wp-block-post-content > .wp-block-heading {
	max-width: var(--apoa-readable-width);
	width: 100%;
}

.single-post .wp-block-post-content > h1 {
	border-bottom: 1px solid rgba(29, 36, 46, 0.16);
	font-size: clamp(28px, 2.6vw, 38px);
	margin-bottom: 24px;
	margin-top: 0;
	padding-bottom: 18px;
}

.single-post .wp-block-post-content > h1 .apoa-title-en,
.single-post .wp-block-post-content > h1 .apoa-title-cn,
.apoa-bilingual-post-title .apoa-title-en,
.apoa-bilingual-post-title .apoa-title-cn {
	display: block;
}

.single-post .wp-block-post-content > h1 .apoa-title-cn,
.apoa-bilingual-post-title .apoa-title-cn {
	font-size: 0.82em;
	margin-top: 8px;
}

.home .wp-block-post-content > .hostinger-ai-fade-up.alignfull,
.home .wp-block-post-content > .has-color-2-background-color {
	background: var(--apoa-ink) !important;
	color: #f5f7fa;
	margin-top: 0;
	padding-top: 38px;
	padding-bottom: 52px;
}

.home .wp-block-post-content > .hostinger-ai-fade-up.alignfull > .wp-block-group {
	max-width: 1400px;
}

.home .wp-block-post-content .hostinger-ai-description {
	color: #f5f7fa !important;
	font-size: 24px !important;
	letter-spacing: 0;
	margin-bottom: 30px !important;
}

.home .wp-block-post-content .wp-block-buttons {
	gap: 14px;
	margin-bottom: 42px !important;
}

.home .wp-block-post-content .wp-block-button__link {
	background: #f5f7fa !important;
	border-radius: 999px !important;
	color: var(--apoa-black) !important;
	min-width: 190px;
	padding: 12px 34px !important;
}

.home .wp-block-post-content .wp-block-gallery {
	display: grid !important;
	gap: 12px !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-left: auto;
	margin-right: auto;
	max-width: 1340px;
	width: min(100%, 1340px);
}

.home .wp-block-post-content .wp-block-gallery .wp-block-image {
	margin: 0 !important;
	width: 100% !important;
}

.home .wp-block-post-content .wp-block-gallery img {
	aspect-ratio: 1 / 1.22;
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.apoa-home {
	background: #fff;
	color: var(--apoa-black);
}

.apoa-home-inner {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	max-width: 1180px;
	padding-left: 24px;
	padding-right: 24px;
	width: 100%;
}

.apoa-home-hero {
	background: linear-gradient(180deg, #fff 0%, #f6f7f9 100%);
	border-bottom: 1px solid rgba(29, 36, 46, 0.14);
	padding-bottom: 46px;
	padding-top: 42px;
}

.apoa-home-hero-grid {
	align-items: center;
	display: grid;
	gap: 36px;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.apoa-home-kicker {
	color: var(--apoa-blue);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.apoa-home h1,
.apoa-home h2,
.apoa-home h3,
.apoa-home p {
	letter-spacing: 0;
}

.apoa-home h1 {
	color: var(--apoa-black);
	font-size: clamp(30px, 3.6vw, 48px);
	font-weight: 750;
	line-height: 1.08;
	margin: 0 0 14px;
	max-width: 760px;
}

.apoa-home h2 {
	color: var(--apoa-black);
	font-size: clamp(25px, 2.3vw, 36px);
	font-weight: 740;
	line-height: 1.22;
	margin: 0 0 22px;
	max-width: 780px;
}

.apoa-home h3 {
	color: var(--apoa-black);
	font-size: 18px;
	font-weight: 740;
	line-height: 1.35;
	margin: 0 0 10px;
}

.apoa-home p {
	color: var(--apoa-text);
	font-size: 15px;
	line-height: 1.72;
	margin-bottom: 14px;
	margin-top: 0;
}

.apoa-home-lede {
	font-size: 17px !important;
	line-height: 1.5 !important;
	margin-bottom: 10px !important;
	max-width: 640px;
}

.apoa-home-cn {
	color: #424952 !important;
	font-size: 16px !important;
	font-weight: 650;
	margin-bottom: 18px !important;
}

.apoa-home-actions {
	gap: 12px;
	margin-top: 18px;
}

.apoa-home .wp-block-button__link {
	background: var(--apoa-button-bg) !important;
	border: 1px solid var(--apoa-button-bg) !important;
	border-radius: 999px !important;
	box-sizing: border-box;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	min-width: 165px;
	padding: 12px 22px !important;
	text-align: center;
}

.apoa-home .is-style-outline .wp-block-button__link {
	background: #fff !important;
	color: var(--apoa-button-bg) !important;
}

.apoa-home .wp-block-button__link:hover,
.apoa-home .wp-block-button__link:focus {
	background: var(--apoa-button-hover) !important;
	border-color: var(--apoa-button-hover) !important;
	color: #fff !important;
}

.apoa-home-gallery {
	display: grid !important;
	gap: 10px !important;
	grid-template-columns: 1.05fr 1fr 1fr;
	margin: 0 !important;
	width: 100% !important;
}

.apoa-home-gallery .wp-block-image {
	margin: 0 !important;
	width: 100% !important;
}

.apoa-home-gallery img {
	aspect-ratio: 1 / 1.18;
	background: var(--apoa-surface-alt);
	display: block;
	height: 100% !important;
	object-fit: cover;
	width: 100% !important;
}

.apoa-home-section {
	padding-bottom: 64px;
	padding-top: 64px;
}

.apoa-home-section-alt {
	background: #f6f7f9;
	border-bottom: 1px solid rgba(29, 36, 46, 0.12);
	border-top: 1px solid rgba(29, 36, 46, 0.12);
}

.apoa-home-section-live {
	background: #fff;
	padding-bottom: clamp(54px, 7vw, 86px);
	padding-top: clamp(54px, 7vw, 86px);
}

.apoa-home-community-highlights {
	text-align: center;
}

.apoa-community-pulse {
	align-items: stretch;
	background: #f7f8fa;
	border: 1px solid rgba(29, 36, 46, 0.1);
	border-radius: 8px;
	display: grid;
	gap: 18px;
	grid-template-columns: 1fr;
	margin: 22px auto 0;
	max-width: 1120px;
	padding: clamp(18px, 2.2vw, 24px);
	text-align: left;
}

.apoa-community-pulse-copy {
	max-width: 860px;
}

.apoa-community-pulse-kicker {
	align-items: center;
	color: var(--apoa-blue);
	display: inline-flex;
	font-size: 12px !important;
	font-weight: 900;
	gap: 8px;
	line-height: 1.2 !important;
	margin: 0 0 8px !important;
	text-transform: uppercase;
}

.apoa-community-pulse-kicker span {
	background: #1f9d55;
	border-radius: 999px;
	box-shadow: 0 0 0 4px rgba(31, 157, 85, 0.12);
	height: 9px;
	width: 9px;
}

.apoa-lang-zh .apoa-community-pulse-kicker {
	color: var(--apoa-red-dark);
}

.apoa-community-pulse h3 {
	color: var(--apoa-ink);
	font-size: clamp(17px, 1.8vw, 21px);
	line-height: 1.2;
	margin: 0 0 6px;
}

.apoa-community-pulse-copy p:not(.apoa-community-pulse-kicker) {
	color: var(--apoa-muted);
	font-size: 13px;
	line-height: 1.55;
	margin: 0;
}

.apoa-community-pulse-stats {
	align-content: stretch;
	display: grid;
	gap: 10px;
	grid-template-columns: 140px minmax(0, 1fr) 140px;
}

.apoa-community-pulse-stat {
	background: #fff;
	border: 1px solid rgba(29, 36, 46, 0.1);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 82px;
	padding: 14px 14px;
}

.apoa-community-pulse-stat strong {
	color: var(--apoa-ink);
	font-size: clamp(19px, 2.1vw, 26px);
	line-height: 1;
}

.apoa-community-pulse-stat-topics {
	align-items: flex-start;
}

.apoa-community-pulse-stat-topics strong {
	font-size: 40px;
	font-weight: 900;
	letter-spacing: 0;
}

.apoa-community-pulse-stat-date {
	align-items: flex-start;
}

.apoa-community-pulse-stat-date strong {
	font-size: 40px;
	font-weight: 900;
	line-height: 1;
}

.apoa-community-pulse-date-meta {
	color: var(--apoa-ink);
	display: block;
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
	line-height: 1.15;
	margin-top: 6px;
}

.apoa-community-pulse-stat-contributors {
	justify-content: flex-start;
}

.apoa-contributor-nameplates {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.apoa-contributor-nameplate {
	background: #eef3f8;
	border: 1px solid #d7dee8;
	border-radius: 999px;
	color: #334155;
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	padding: 6px 10px;
}

.apoa-community-pulse-stat span {
	color: var(--apoa-muted);
	font-size: 11px;
	font-weight: 800;
	line-height: 1.3;
	margin-top: 8px;
	text-transform: uppercase;
}

.apoa-live-note-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 32px;
	text-align: left;
}

.apoa-live-note-card {
	background:
		linear-gradient(180deg, rgba(246, 248, 251, 0.88), rgba(255, 255, 255, 0.98)),
		#fff;
	border: 1px solid rgba(29, 36, 46, 0.12);
	border-top: 4px solid var(--apoa-blue);
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(29, 36, 46, 0.055);
	display: flex;
	flex-direction: column;
	min-height: 300px;
	padding: 18px;
	position: relative;
}

.apoa-lang-zh .apoa-live-note-card {
	border-top-color: var(--apoa-red);
}

.apoa-live-note-card::before {
	background: rgba(29, 36, 46, 0.08);
	border-radius: 999px;
	content: "";
	height: 10px;
	position: absolute;
	right: 16px;
	top: 17px;
	width: 10px;
}

.apoa-live-note-topline {
	align-items: flex-start;
	color: var(--apoa-muted);
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	font-size: 12px;
	font-weight: 700;
	gap: 7px;
	line-height: 1.35;
	margin: 0 0 14px;
}

.apoa-community-post-meta span::before {
	color: rgba(107, 114, 128, 0.7);
	content: "·";
	margin-right: 8px;
}

.apoa-live-note-date,
.apoa-live-note-source {
	display: inline-flex;
	max-width: 100%;
}

.apoa-live-note-date {
	color: var(--apoa-ink);
	font-weight: 800;
}

.apoa-live-note-source {
	background: rgba(0, 36, 125, 0.07);
	border: 1px solid rgba(0, 36, 125, 0.1);
	border-radius: 999px;
	color: #394354;
	font-size: 11px;
	padding: 5px 9px;
}

.apoa-lang-zh .apoa-live-note-source {
	background: rgba(228, 0, 43, 0.07);
	border-color: rgba(228, 0, 43, 0.13);
	color: var(--apoa-red-dark);
}

.apoa-live-note-card h3 {
	font-size: 18px;
	line-height: 1.28;
	margin: 0 0 12px;
}

.apoa-live-note-card h3 a {
	color: var(--apoa-ink);
	text-decoration: none;
}

.apoa-live-note-card h3 a:hover,
.apoa-live-note-card h3 a:focus {
	text-decoration: underline;
}

.apoa-live-note-card p:not(.apoa-live-note-meta) {
	color: var(--apoa-muted);
	font-size: 14px;
	line-height: 1.62;
	margin: 0 0 16px;
}

.apoa-live-note-card .apoa-live-note-contributors {
	border-top: 1px solid rgba(29, 36, 46, 0.08);
	color: #4b5563;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.45;
	padding-top: 12px;
}

.apoa-live-note-link {
	color: var(--apoa-blue);
	font-size: 14px;
	font-weight: 800;
	margin-top: auto;
	text-decoration: none;
	text-transform: uppercase;
}

.apoa-lang-zh .apoa-live-note-link {
	color: var(--apoa-red-dark);
}

.apoa-live-note-link:hover,
.apoa-live-note-link:focus {
	text-decoration: underline;
}

.apoa-home-highlights-action {
	margin-top: 28px;
}

.apoa-feature-grid {
	gap: 18px;
	margin-top: 28px;
}

.apoa-resource-grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.apoa-feature-grid .wp-block-column,
.apoa-home-posts .wp-block-post {
	background: #fff;
	border: 1px solid rgba(29, 36, 46, 0.13);
	border-radius: 8px;
	box-sizing: border-box;
	padding: 22px;
}

.apoa-feature-grid a,
.apoa-home-posts a {
	color: var(--apoa-blue);
	font-weight: 700;
	text-decoration: none;
}

.apoa-feature-grid a:hover,
.apoa-feature-grid a:focus,
.apoa-home-posts a:hover,
.apoa-home-posts a:focus {
	text-decoration: underline;
}

.apoa-home-latest-list {
	border-top: 1px solid rgba(29, 36, 46, 0.11);
	list-style: none;
	margin: 18px 0 16px;
	padding: 0;
}

.apoa-home-latest-list li {
	border-bottom: 1px solid rgba(29, 36, 46, 0.11);
	display: grid;
	gap: 4px;
	padding: 12px 0;
}

.apoa-home-latest-list a {
	line-height: 1.35;
}

.apoa-home-latest-list span {
	color: #6f7885;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.apoa-home-split {
	align-items: center;
	display: grid;
	gap: 42px;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
}

.apoa-home-checklist {
	background: #fff;
	border: 1px solid rgba(29, 36, 46, 0.13);
	border-radius: 8px;
	box-sizing: border-box;
	list-style: none;
	margin: 0;
	padding: 24px;
}

.apoa-home-checklist li {
	border-bottom: 1px solid rgba(29, 36, 46, 0.11);
	color: var(--apoa-black);
	font-size: 15px;
	font-weight: 650;
	line-height: 1.45;
	padding: 14px 0 14px 30px;
	position: relative;
}

.apoa-home-checklist li::before {
	color: var(--apoa-blue);
	content: "✓";
	font-weight: 800;
	left: 0;
	position: absolute;
	top: 14px;
}

.apoa-home-checklist li:last-child {
	border-bottom: 0;
}

.apoa-home-posts {
	margin-top: 28px;
}

.apoa-home-posts .wp-block-post-template {
	gap: 18px;
}

.apoa-home-posts .wp-block-post-title {
	font-size: 18px;
	margin-bottom: 10px;
}

.apoa-home-posts .wp-block-post-excerpt {
	font-size: 14px;
}

.apoa-home-cta {
	background: var(--apoa-ink);
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
	color: #fff;
	text-align: center;
}

.apoa-home-cta h2,
.apoa-home-cta p {
	color: #fff;
	margin-left: auto;
	margin-right: auto;
}

.apoa-home-cta p {
	max-width: 720px;
}

.apoa-home-cta .wp-block-button__link {
	background: #fff !important;
	border-color: #fff !important;
	color: var(--apoa-black) !important;
}

.apoa-home-cta .is-style-outline .wp-block-button__link {
	background: transparent !important;
	border-color: rgba(255, 255, 255, 0.86) !important;
	color: #fff !important;
}

.apoa-home-cta .wp-block-button__link:hover,
.apoa-home-cta .wp-block-button__link:focus {
	background: #e7e9ed !important;
	border-color: #e7e9ed !important;
	color: var(--apoa-black) !important;
}

/* APOA now owns the public language switcher in the header. */
.trp-language-switcher.trp-floating-switcher {
	display: none !important;
}

.apoa-language-menu {
	align-items: center;
	display: inline-flex;
	font-size: 12px;
	font-weight: 600;
	gap: 6px;
	line-height: 1;
	white-space: nowrap;
}

.apoa-language-menu a {
	align-items: center;
	background: #fff;
	border: 1px solid var(--apoa-border);
	border-radius: 999px;
	color: var(--apoa-muted);
	display: inline-flex;
	gap: 5px;
	min-height: 30px;
	padding: 7px 11px;
	text-decoration: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.apoa-language-menu a:hover,
.apoa-language-menu a:focus {
	background: #f5f7fa;
	border-color: #cfd5dd;
	color: var(--apoa-black);
	text-decoration: none;
}

.apoa-language-menu a.is-active {
	background: var(--apoa-blue);
	border-color: var(--apoa-blue);
	color: #fff;
}

.apoa-lang-zh .apoa-language-menu a.is-active {
	background: var(--apoa-red);
	border-color: var(--apoa-red);
	color: #fff;
}

.apoa-lang-zh .site-header {
	border-top: 4px solid var(--apoa-red);
}

.apoa-lang-zh .apoa-kicker,
.apoa-lang-zh .apoa-home-kicker {
	color: var(--apoa-red-dark);
}

@media (max-width: 1180px) {
	.apoa-language-menu {
		font-size: 11px;
	}

	.apoa-language-menu a {
		min-height: 28px;
		padding: 6px 9px;
	}
}

.apoa-section-inner {
	margin-left: auto;
	margin-right: auto;
	max-width: var(--apoa-wide-width);
	padding-left: 24px;
	padding-right: 24px;
}

.apoa-kicker {
	color: var(--apoa-blue);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin-bottom: 12px;
	text-transform: uppercase;
}

.apoa-section-intro {
	color: var(--apoa-muted);
	font-size: 15px;
	margin-left: auto;
	margin-right: auto;
	max-width: 720px;
}

.apoa-content-page {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	max-width: 1040px;
	padding: clamp(38px, 6vw, 72px) 24px;
}

.apoa-content-page > h1 {
	font-size: clamp(34px, 5vw, 56px);
	line-height: 1.04;
	margin-bottom: 18px;
	max-width: 820px;
}

.apoa-page-lead {
	color: var(--apoa-muted);
	font-size: clamp(18px, 2.2vw, 22px);
	line-height: 1.65;
	margin-bottom: 34px;
	max-width: 860px;
}

.apoa-content-page h2 {
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.18;
	margin-top: 0;
}

.apoa-content-page p,
.apoa-content-page li {
	line-height: 1.72;
}

.apoa-card-grid {
	gap: 20px;
	margin: 26px 0;
}

.apoa-card-grid .wp-block-column {
	background: #fff;
	border: 1px solid rgba(29, 36, 46, 0.13);
	border-radius: 8px;
	box-shadow: 0 14px 34px rgba(29, 36, 46, 0.06);
	box-sizing: border-box;
	padding: clamp(22px, 3vw, 30px);
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.apoa-card-grid .wp-block-column:hover {
	box-shadow: 0 18px 42px rgba(29, 36, 46, 0.1);
	transform: translateY(-3px);
}

.apoa-card-grid h2,
.apoa-card-grid h3 {
	font-size: 22px;
	margin-bottom: 10px;
}

.apoa-card-grid a,
.apoa-empty-panel a {
	color: var(--apoa-blue);
	font-weight: 750;
	text-decoration: none;
}

.apoa-card-grid a:hover,
.apoa-card-grid a:focus,
.apoa-empty-panel a:hover,
.apoa-empty-panel a:focus {
	text-decoration: underline;
}

.apoa-cn-note,
.apoa-empty-panel,
.apoa-timeline-list {
	background: var(--apoa-soft);
	border: 1px solid rgba(29, 36, 46, 0.11);
	border-radius: 8px;
	box-sizing: border-box;
	margin: 28px 0;
	padding: clamp(22px, 3vw, 32px);
}

.apoa-cn-note h2,
.apoa-empty-panel h2,
.apoa-timeline-list h2 {
	font-size: 24px;
	margin-bottom: 12px;
}

.apoa-timeline-list ul {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
}

.apoa-timeline-list li {
	border-top: 1px solid rgba(29, 36, 46, 0.12);
	padding: 16px 0;
}

.apoa-timeline-list li:first-child {
	border-top: 0;
}

.apoa-button {
	align-items: center;
	background: var(--apoa-button-bg);
	border: 1px solid var(--apoa-button-bg);
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: 14px;
	font-weight: 700;
	justify-content: center;
	line-height: 1.2;
	min-height: 42px;
	padding: 12px 22px;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.apoa-button:hover,
.apoa-button:focus {
	background: var(--apoa-button-hover);
	border-color: var(--apoa-button-hover);
	color: #fff;
	text-decoration: none;
}

.apoa-button-full {
	width: 100%;
}

.apoa-community-hero,
.apoa-community-values,
.apoa-community-wall,
.apoa-community-journey,
.apoa-community-volunteers,
.apoa-community-cta {
	padding: clamp(54px, 7vw, 92px) 0;
}

.apoa-community-hero {
	background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
}

.apoa-community-hero-grid {
	align-items: center;
	display: grid;
	gap: clamp(34px, 5vw, 72px);
	grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
}

.apoa-community-hero-copy h1,
.apoa-community-values h2,
.apoa-community-wall h2,
.apoa-community-journey h2,
.apoa-community-volunteer-intro h2,
.apoa-community-cta-card h2 {
	color: var(--apoa-ink);
	font-size: clamp(30px, 4vw, 54px);
	line-height: 1.08;
	margin: 0 0 22px;
	max-width: 880px;
}

.apoa-community-hero-copy p,
.apoa-community-volunteer-intro p,
.apoa-community-cta-card p {
	color: var(--apoa-muted);
	font-size: 17px;
	line-height: 1.78;
	margin: 0 0 14px;
	max-width: 680px;
}

.apoa-community-hero-line {
	color: var(--apoa-blue) !important;
	font-weight: 800;
}

.apoa-community-hero-photo {
	border: 1px solid var(--apoa-card-border);
	border-radius: 8px;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
	margin: 0;
	overflow: hidden;
}

.apoa-community-hero-photo img {
	aspect-ratio: 4 / 3;
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.apoa-community-values,
.apoa-community-journey {
	background: #fff;
}

.apoa-community-wall,
.apoa-community-volunteers {
	background: var(--apoa-surface-alt);
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.apoa-community-values .apoa-section-inner,
.apoa-community-wall .apoa-section-inner,
.apoa-community-journey .apoa-section-inner {
	text-align: center;
}

.apoa-community-values h2,
.apoa-community-wall h2,
.apoa-community-journey h2 {
	margin-left: auto;
	margin-right: auto;
}

.apoa-community-value-grid,
.apoa-community-post-grid,
.apoa-community-face-wall {
	display: grid;
	gap: 24px;
	margin-top: 38px;
	text-align: left;
}

.apoa-community-value-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.apoa-community-post-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.apoa-community-face-wall {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.apoa-community-value-card,
.apoa-community-post-card,
.apoa-community-face-card,
.apoa-community-timeline-item,
.apoa-community-cta-card {
	background: #fff;
	border: 1px solid var(--apoa-card-border);
	border-radius: 8px;
	box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
	transition: all 0.3s ease;
}

.apoa-community-value-card:hover,
.apoa-community-post-card:hover,
.apoa-community-face-card:hover,
.apoa-community-timeline-item:hover {
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
	transform: translateY(-4px);
}

.apoa-community-value-card {
	min-height: 230px;
	padding: 30px;
}

.apoa-community-icon {
	align-items: center;
	background: #eef3f9;
	border: 1px solid #d5e1ef;
	border-radius: 999px;
	display: inline-flex;
	height: 48px;
	justify-content: center;
	margin-bottom: 24px;
	position: relative;
	width: 48px;
}

.apoa-community-icon::before,
.apoa-community-icon::after {
	background: var(--apoa-blue);
	content: "";
	display: block;
	position: absolute;
}

.apoa-community-icon-heart::before {
	border-radius: 999px 999px 0 999px;
	height: 20px;
	transform: rotate(45deg);
	width: 20px;
}

.apoa-community-icon-book::before {
	background: transparent;
	border: 3px solid var(--apoa-blue);
	border-radius: 3px;
	height: 22px;
	width: 28px;
}

.apoa-community-icon-book::after {
	height: 22px;
	width: 3px;
}

.apoa-community-icon-shield::before {
	clip-path: polygon(50% 0, 82% 12%, 78% 62%, 50% 88%, 22% 62%, 18% 12%);
	height: 30px;
	width: 30px;
}

.apoa-community-icon-network::before {
	border-radius: 999px;
	box-shadow: -14px -8px 0 var(--apoa-blue), 14px -8px 0 var(--apoa-blue), 0 14px 0 var(--apoa-blue);
	height: 8px;
	width: 8px;
}

.apoa-community-value-card h3,
.apoa-community-face-card h3,
.apoa-community-post-content h3 {
	font-size: 20px;
	line-height: 1.32;
	margin: 0 0 12px;
}

.apoa-community-value-card p,
.apoa-community-face-card p,
.apoa-community-post-content p:not(.apoa-community-post-meta) {
	color: var(--apoa-muted);
	font-size: 15px;
	line-height: 1.72;
	margin: 0;
}

.apoa-community-post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.apoa-community-post-thumb {
	aspect-ratio: 16 / 10;
	background: var(--apoa-surface-alt);
	display: block;
	overflow: hidden;
}

.apoa-community-post-thumb img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.apoa-community-post-content {
	flex: 1;
	padding: 22px 22px 10px;
}

.apoa-community-post-meta {
	color: var(--apoa-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 12px;
	font-weight: 600;
	gap: 8px;
	margin: 0 0 10px;
}

.apoa-community-post-content h3 a {
	color: var(--apoa-ink);
	text-decoration: none;
}

.apoa-community-post-content h3 a:hover,
.apoa-community-post-content h3 a:focus {
	text-decoration: underline;
}

.apoa-community-post-footer {
	padding: 0 22px 22px;
}

.apoa-community-post-footer a {
	color: var(--apoa-blue);
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

.apoa-community-post-footer a:hover,
.apoa-community-post-footer a:focus {
	text-decoration: underline;
}

.apoa-community-single-note {
	display: grid;
	gap: 26px;
	margin-left: auto;
	margin-right: auto;
	max-width: 760px;
}

.single-apoa_community_item .apoa-single-main > .wp-block-group.has-small-font-size {
	display: none;
}

.apoa-community-single-header {
	background: #f7f8fa;
	border: 1px solid rgba(29, 36, 46, 0.1);
	border-radius: 8px;
	padding: 18px;
}

.apoa-community-single-note section {
	border-top: 1px solid rgba(29, 36, 46, 0.12);
	padding-top: 22px;
}

.apoa-community-single-note h2 {
	font-size: clamp(22px, 3vw, 30px);
	line-height: 1.18;
	margin: 0 0 12px;
}

.apoa-community-single-note p,
.apoa-community-single-note li {
	color: var(--apoa-text);
	font-size: 16px;
	line-height: 1.76;
}

.apoa-community-thanks {
	color: var(--apoa-muted);
	font-size: 14px !important;
	line-height: 1.55 !important;
	margin: 12px 0 0 !important;
}

.apoa-community-disclaimer {
	background: #fafafa;
	border: 1px solid rgba(29, 36, 46, 0.1);
	border-radius: 8px;
	padding: 20px !important;
}

.apoa-community-disclaimer h2 {
	font-size: 20px;
}

.apoa-community-back-link {
	color: var(--apoa-blue);
	font-weight: 800;
	text-decoration: none;
}

.apoa-community-back-link:hover,
.apoa-community-back-link:focus {
	text-decoration: underline;
}

.apoa-community-timeline {
	display: grid;
	gap: 22px;
	margin-top: 42px;
	position: relative;
	text-align: left;
}

.apoa-community-timeline::before {
	background: #cfd7e3;
	content: "";
	height: calc(100% - 60px);
	left: 28px;
	position: absolute;
	top: 30px;
	width: 2px;
}

.apoa-community-timeline-item {
	align-items: center;
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(0, 1fr) 260px;
	margin-left: 58px;
	padding: 26px;
	position: relative;
}

.apoa-community-timeline-item::before {
	background: var(--apoa-blue);
	border: 5px solid #fff;
	border-radius: 999px;
	box-shadow: 0 0 0 1px #cfd7e3;
	content: "";
	height: 18px;
	left: -39px;
	position: absolute;
	top: 34px;
	width: 18px;
}

.apoa-community-timeline-copy span {
	color: var(--apoa-blue);
	display: block;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.08em;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.apoa-community-timeline-copy h3 {
	font-size: 24px;
	margin: 0 0 10px;
}

.apoa-community-timeline-copy p {
	color: var(--apoa-muted);
	line-height: 1.74;
	margin: 0;
}

.apoa-community-timeline-item figure {
	margin: 0;
	overflow: hidden;
}

.apoa-community-timeline-item img {
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.apoa-community-volunteers .apoa-section-inner {
	display: grid;
	gap: 38px;
	grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
}

.apoa-community-face-card {
	padding: 24px;
}

.apoa-community-avatar {
	align-items: center;
	background: linear-gradient(135deg, var(--apoa-blue), #253a63);
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: 14px;
	font-weight: 900;
	height: 58px;
	justify-content: center;
	margin-bottom: 18px;
	width: 58px;
}

.apoa-community-cta {
	background: #fff;
}

.apoa-community-cta-card {
	align-items: center;
	background: var(--apoa-ink);
	color: #fff;
	display: grid;
	gap: 30px;
	grid-template-columns: minmax(0, 1fr) auto;
	padding: clamp(28px, 5vw, 52px);
}

.apoa-community-cta-card h2,
.apoa-community-cta-card p,
.apoa-community-cta-card .apoa-kicker {
	color: #fff;
}

.apoa-community-cta-card p {
	opacity: 0.84;
}

.apoa-community-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-end;
}

.apoa-community-cta-actions .apoa-button-outline {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.72);
	color: #fff;
}

.apoa-community-wrap {
	margin-left: auto;
	margin-right: auto;
	max-width: 920px;
}

.apoa-community-wrap .apoa-hero-img img,
.apoa-community-wrap figure.apoa-hero-img img {
	border-radius: 10px;
	display: block;
	width: 100%;
}

.apoa-community-main-title {
	font-size: clamp(36px, 5vw, 58px);
	letter-spacing: 0;
	line-height: 1.04;
	margin-top: 42px;
	max-width: 760px;
}

.apoa-community-lead,
.apoa-community-wrap .apoa-prose {
	color: var(--apoa-ink);
	font-size: 17px;
	line-height: 1.78;
	max-width: 760px;
}

.apoa-community-statement {
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.22;
	margin: 34px 0;
}

.apoa-community-wrap .apoa-section {
	margin: 58px 0;
}

.apoa-community-wrap .apoa-section h2 {
	border-bottom: 2px solid var(--apoa-line);
	font-size: clamp(24px, 3vw, 34px);
	letter-spacing: 0;
	margin-bottom: 18px;
	padding-bottom: 10px;
}

.apoa-community-wrap .apoa-values {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 20px;
}

.apoa-community-wrap .apoa-value-card {
	background: #f8f8f6;
	border: 1px solid #e7e8ea;
	border-radius: 8px;
	padding: 18px;
}

.apoa-community-wrap .apoa-value-card h3 {
	font-size: 18px;
	margin: 0 0 6px;
}

.apoa-community-wrap .apoa-value-card p {
	color: var(--apoa-muted);
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
}

.apoa-community-wrap .apoa-stats {
	border: 1px solid var(--apoa-line);
	border-radius: 10px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 26px 0;
	overflow: hidden;
}

.apoa-community-wrap .apoa-stat {
	border-right: 1px solid var(--apoa-line);
	padding: 20px 12px;
	text-align: center;
}

.apoa-community-wrap .apoa-stat:last-child {
	border-right: 0;
}

.apoa-community-wrap .apoa-stat strong {
	display: block;
	font-size: 26px;
	line-height: 1;
	margin-bottom: 6px;
}

.apoa-community-wall-section {
	background: #f8fafc;
	border: 1px solid var(--apoa-line);
	border-radius: 10px;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	max-width: 100vw !important;
	padding: 56px clamp(20px, 6vw, 72px);
}

.apoa-community-wall-section > * {
	margin-left: auto;
	margin-right: auto;
	max-width: 1120px;
}

.apoa-community-wrap .apoa-join {
	background: #f8f8f6;
	border-radius: 10px;
	margin: 64px 0 28px;
	padding: 38px 24px;
	text-align: center;
}

.apoa-community-wrap .apoa-join p {
	font-size: 18px;
	line-height: 1.75;
	margin-left: auto;
	margin-right: auto;
	max-width: 720px;
}

.apoa-empty-state {
	background: var(--apoa-surface-alt);
	border: 1px solid var(--apoa-card-border);
	border-radius: 8px;
	color: var(--apoa-muted);
	margin: 32px auto 0;
	max-width: 680px;
	padding: 22px;
	text-align: center;
}

.apoa-header-account {
	align-items: center;
	display: flex;
	gap: 14px;
}

.apoa-user-profile-link {
	align-items: center;
	color: var(--apoa-ink);
	display: inline-flex;
	gap: 10px;
	text-decoration: none;
}

.apoa-user-profile-link:hover,
.apoa-user-profile-link:focus {
	color: var(--apoa-blue);
	text-decoration: underline;
}

.apoa-header-avatar {
	border-radius: 999px;
	display: block;
	height: 34px;
	width: 34px;
}

.wp-block-post-content iframe[title^="APOA"] {
	box-sizing: border-box;
	display: block;
	margin: 34px auto 0 !important;
	max-width: 1120px;
	min-height: 760px;
	width: min(92vw, 1120px) !important;
}

/* 4. Forms, login, registration */
.wpforms-container,
.tml,
.theme-my-login,
.apoa-register-wrapper {
	box-sizing: border-box !important;
	margin: 40px auto !important;
	max-width: var(--apoa-readable-width);
	padding: 0 !important;
	width: 90% !important;
}

.wpforms-container form,
.tml form,
.theme-my-login form,
.apoa-register-wrapper {
	background: var(--apoa-card-bg) !important;
	border: 1px solid var(--apoa-card-border) !important;
	border-radius: 14px !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	padding: 28px 32px !important;
	width: 100% !important;
}

.apoa-register-wrapper form {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 0 !important;
}

.wpforms-container .wpforms-field,
.tml form p,
.tml .tml-field-wrap,
.theme-my-login form p,
.apoa-register-wrapper .form-row,
.apoa-register-wrapper p {
	margin-bottom: 18px !important;
}

.wpforms-container .wpforms-field-label,
.tml form label,
.theme-my-login form label,
.apoa-register-wrapper label {
	color: var(--apoa-text);
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	margin-bottom: 8px;
}

.wpforms-container .wpforms-required-label,
.tml .required,
.theme-my-login .required {
	color: var(--apoa-danger);
	font-weight: 700;
}

.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="number"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="url"],
.wpforms-container input[type="password"],
.wpforms-container select,
.wpforms-container textarea,
.tml form input[type="text"],
.tml form input[type="email"],
.tml form input[type="password"],
.tml form input[type="tel"],
.tml form select,
.tml form textarea,
.theme-my-login form input[type="text"],
.theme-my-login form input[type="email"],
.theme-my-login form input[type="password"],
.theme-my-login form input[type="tel"],
.theme-my-login form select,
.theme-my-login form textarea,
.apoa-register-wrapper input[type="text"],
.apoa-register-wrapper input[type="email"],
.apoa-register-wrapper input[type="password"],
.apoa-register-wrapper input[type="tel"],
.apoa-register-wrapper input[type="url"],
.apoa-register-wrapper select,
.apoa-register-wrapper textarea {
	background: #fff !important;
	border: 1px solid var(--apoa-input-border) !important;
	border-radius: 8px !important;
	box-sizing: border-box !important;
	color: var(--apoa-black);
	font: inherit;
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 0 !important;
	margin-top: 0 !important;
	max-width: 100% !important;
	min-height: 44px;
	padding: 12px 14px !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	width: 100% !important;
}

.wpforms-container input:focus,
.wpforms-container select:focus,
.wpforms-container textarea:focus,
.tml form input:focus,
.tml form select:focus,
.tml form textarea:focus,
.theme-my-login form input:focus,
.theme-my-login form select:focus,
.theme-my-login form textarea:focus,
.apoa-register-wrapper input:focus,
.apoa-register-wrapper select:focus,
.apoa-register-wrapper textarea:focus {
	border-color: var(--apoa-blue-light) !important;
	box-shadow: 0 0 0 2px var(--apoa-focus-ring) !important;
	outline: none !important;
}

.wpforms-container textarea,
.tml form textarea,
.theme-my-login form textarea,
.apoa-register-wrapper textarea {
	min-height: 140px !important;
	resize: vertical !important;
}

.wpforms-container input[type="checkbox"],
.wpforms-container input[type="radio"],
.tml form input[type="checkbox"],
.tml form input[type="radio"],
.theme-my-login form input[type="checkbox"],
.theme-my-login form input[type="radio"],
.apoa-register-wrapper input[type="checkbox"],
.apoa-register-wrapper input[type="radio"] {
	margin-right: 8px !important;
	max-width: none !important;
	min-height: 0;
	vertical-align: middle;
	width: auto !important;
}

.wpforms-container .wpforms-submit-container,
.tml .tml-submit-wrap,
.theme-my-login .submit,
.apoa-register-wrapper .submit,
.apoa-register-wrapper .wpforms-submit-container {
	margin-bottom: 4px !important;
	margin-top: 12px !important;
	text-align: center;
}

.wpforms-container button[type="submit"],
.wpforms-container input[type="submit"],
.tml form button[type="submit"],
.tml form input[type="submit"],
.theme-my-login form button[type="submit"],
.theme-my-login form input[type="submit"],
.apoa-register-wrapper button,
.apoa-register-wrapper input[type="submit"],
.apoa-register-wrapper input[type="button"] {
	background: var(--apoa-button-bg) !important;
	border: 0 !important;
	border-radius: 10px !important;
	box-shadow: none !important;
	color: #fff !important;
	cursor: pointer;
	display: inline-block !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	min-width: 180px !important;
	padding: 12px 28px !important;
}

.apoa-hp-field {
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	display: none !important;
	height: 1px !important;
	left: -9999px !important;
	overflow: hidden !important;
	position: absolute !important;
	white-space: nowrap !important;
	width: 1px !important;
}

.apoa-mobile-browser-note {
	background: #f6f8fb;
	border: 1px solid var(--apoa-card-border);
	border-left: 4px solid var(--apoa-blue);
	border-radius: 10px;
	margin-bottom: 22px;
	padding: 14px 16px;
}

.apoa-mobile-browser-note p {
	color: var(--apoa-text);
	font-size: 13px;
	line-height: 1.65;
	margin: 0 0 6px !important;
}

.apoa-mobile-browser-note p:last-child {
	margin-bottom: 0 !important;
}

.wpforms-container button[type="submit"]:hover,
.wpforms-container input[type="submit"]:hover,
.tml form button[type="submit"]:hover,
.tml form input[type="submit"]:hover,
.theme-my-login form button[type="submit"]:hover,
.theme-my-login form input[type="submit"]:hover,
.apoa-register-wrapper button:hover,
.apoa-register-wrapper input[type="submit"]:hover,
.apoa-register-wrapper input[type="button"]:hover {
	background: var(--apoa-button-hover) !important;
}

.wpforms-container .wpforms-field-description,
.apoa-register-wrapper .description,
.tml .description,
.theme-my-login .description,
.apoa-register-wrapper small {
	color: var(--apoa-muted);
	display: block !important;
	font-size: 12px;
	line-height: 1.6;
	margin-top: 6px;
}

.wpforms-container .wpforms-confirmation-container-full,
.tml .tml-messages,
.theme-my-login .message {
	background: #eef4ff;
	border: 1px solid rgba(0, 0, 139, 0.18);
	border-radius: 10px;
	color: var(--apoa-text);
	font-size: 14px;
	line-height: 1.7;
	padding: 16px 18px;
}

.wpforms-container .wpforms-error,
.tml .tml-error,
.theme-my-login .error {
	color: var(--apoa-danger) !important;
	font-size: 12px !important;
	margin-top: 6px;
}

.wpforms-container input.wpforms-error,
.wpforms-container select.wpforms-error,
.wpforms-container textarea.wpforms-error,
.tml form input.error,
.tml form select.error,
.tml form textarea.error {
	border-color: var(--apoa-danger) !important;
}

.tml-links,
.tml .tml-action-links,
.theme-my-login .tml-links {
	list-style: none;
	margin: 14px auto 0;
	padding: 0;
	text-align: center;
}

.tml-links li,
.tml .tml-action-links li,
.theme-my-login .tml-links li {
	display: inline-block;
	margin: 0 10px;
}

.tml-links a,
.tml .tml-action-links a,
.theme-my-login .tml-links a {
	color: var(--apoa-blue);
	font-size: 14px;
	text-decoration: none;
}

.tml-links a:hover,
.tml .tml-action-links a:hover,
.theme-my-login .tml-links a:hover {
	text-decoration: underline;
}

.apoa-membership-type-row {
	margin-bottom: 20px;
	margin-top: 20px;
	text-align: center;
}

.apoa-membership-label {
	display: block;
	font-weight: 600;
	margin-bottom: 10px;
}

.apoa-radio-option {
	align-items: center;
	display: inline-flex;
	font-size: 15px;
	margin: 0 12px;
}

.apoa-radio-option input {
	margin-right: 6px;
}

.apoa-membership-type-row:not(.apoa-state-options):not(.apoa-privacy-agreement) .apoa-radio-option {
	margin-left: 10px;
	margin-right: 10px;
}

.apoa-group-application-option {
	align-items: center;
	display: inline-flex;
	font-size: 14px;
	margin: 4px 12px 4px 0;
}

.apoa-group-application-option input {
	margin-right: 6px;
}

.apoa-state-options {
	text-align: left;
}

.apoa-state-options legend {
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 8px;
}

.apoa-state-options .apoa-radio-option {
	display: inline-flex;
	font-size: 13px;
	margin: 4px 10px 4px 0;
	min-width: calc(33.333% - 12px);
}

.apoa-state-options .apoa-radio-option input {
	flex: 0 0 auto;
	height: 15px;
	margin-right: 5px;
	width: 15px;
}

.apoa-privacy-agreement {
	background: #f8f9fb;
	border: 1px solid var(--apoa-border);
	border-radius: 8px;
	padding: 12px 14px;
	text-align: left;
}

.apoa-privacy-agreement legend {
	font-size: 15px;
	font-weight: 700;
	padding: 0 4px;
}

.apoa-privacy-agreement .apoa-checkbox-option {
	align-items: flex-start;
	display: flex;
	font-size: 14px;
	line-height: 1.55;
	margin: 0;
}

.apoa-privacy-agreement .apoa-checkbox-option input {
	flex: 0 0 auto;
	margin: 4px 8px 0 0;
}

.apoa-privacy-agreement p {
	margin: 8px 0 0 !important;
}

.apoa-privacy-agreement a {
	color: var(--apoa-blue);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.apoa-login-links {
	margin-top: 20px;
	text-align: center;
}

.apoa-login-links a {
	font-size: 14px;
	margin: 0 10px;
}

/* 5. Tooltip and VIP */
.apoa-help {
	display: inline-block;
	position: relative;
}

.apoa-help-icon {
	align-items: center;
	background: var(--apoa-blue);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 12px;
	font-weight: 700;
	height: 18px;
	justify-content: center;
	line-height: 1;
	width: 18px;
}

.apoa-tooltip-text {
	background: #fff;
	border-radius: 10px;
	bottom: 140%;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
	color: #000;
	font-size: 13px;
	left: 50%;
	line-height: 1.6;
	opacity: 0;
	padding: 12px;
	position: absolute;
	transform: translateX(-50%);
	transition: opacity 0.25s ease;
	visibility: hidden;
	width: 220px;
	z-index: 999;
}

.apoa-tooltip-text::after {
	border-color: #fff transparent transparent;
	border-style: solid;
	border-width: 6px;
	content: "";
	left: 50%;
	position: absolute;
	top: 100%;
	transform: translateX(-50%);
}

.apoa-help:hover .apoa-tooltip-text,
.apoa-help:focus-within .apoa-tooltip-text {
	opacity: 1;
	visibility: visible;
}

.apoa-vip-modal {
	align-items: center;
	background: rgba(0, 0, 0, 0.45);
	display: none;
	inset: 0;
	justify-content: center;
	padding: 20px;
	position: fixed;
	z-index: 9999;
}

.apoa-vip-modal.active {
	display: flex;
}

.apoa-vip-modal-box {
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
	max-width: 420px;
	padding: 28px 24px;
	text-align: center;
	width: 100%;
}

.apoa-vip-modal-title {
	color: var(--apoa-blue);
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 14px;
}

.apoa-vip-modal-text {
	color: #333;
	font-size: 15px;
	line-height: 1.7;
	margin-bottom: 22px;
}

.apoa-vip-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.apoa-vip-cancel,
.apoa-vip-confirm {
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	font-size: 14px;
	min-width: 120px;
	padding: 12px 18px;
	text-decoration: none;
}

.apoa-vip-cancel {
	background: var(--apoa-button-secondary-bg);
	color: var(--apoa-black);
}

.apoa-vip-confirm {
	background: var(--apoa-button-bg);
	color: #fff;
}

.apoa-vip-lock-box {
	background: var(--apoa-surface);
	border: 1px solid rgba(29, 36, 46, 0.14);
	border-radius: 8px;
	box-shadow: none;
	margin: 24px 0;
	padding: 24px 20px;
	text-align: center;
}

.apoa-vip-lock-icon {
	font-size: 28px;
	margin-bottom: 10px;
}

.apoa-vip-lock-title {
	color: var(--apoa-blue);
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 10px;
}

.apoa-vip-lock-text {
	color: #444;
	font-size: 14px;
	line-height: 1.7;
	margin-bottom: 18px;
}

.apoa-vip-lock-button {
	background: var(--apoa-button-bg);
	border: 1px solid var(--apoa-button-bg);
	border-radius: 8px;
	color: #fff;
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	margin: 4px 6px;
	padding: 10px 20px;
	text-decoration: none;
}

.apoa-vip-lock-button-secondary {
	background: #fff;
	color: var(--apoa-button-bg);
}

.apoa-vip-lock-button:hover {
	opacity: 0.92;
}

.apoa-vip-content {
	margin: 20px 0;
}

.apoa-member-points {
	background: var(--apoa-surface);
	border: 1px solid rgba(29, 36, 46, 0.14);
	border-radius: 8px;
	margin: 24px auto;
	max-width: 720px;
	padding: 18px 20px;
}

.apoa-member-points-row {
	align-items: center;
	border-bottom: 1px solid rgba(29, 36, 46, 0.08);
	display: flex;
	gap: 16px;
	justify-content: space-between;
	padding: 10px 0;
}

.apoa-member-points-row:last-child {
	border-bottom: 0;
}

.apoa-member-points-row span {
	color: #56616f;
}

.apoa-member-points-row strong {
	color: var(--apoa-ink);
	text-align: right;
}

.apoa-member-dashboard {
	box-sizing: border-box;
	margin: 40px auto;
	max-width: 1120px;
	padding: 0 24px;
	width: 100%;
}

.apoa-member-dashboard-header {
	margin: 0 auto 28px;
	max-width: 760px;
	text-align: center;
}

.apoa-member-dashboard-header h2 {
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.16;
	margin: 8px 0 12px;
}

.apoa-member-dashboard-header p {
	color: var(--apoa-muted);
	font-size: 17px;
	line-height: 1.7;
	margin: 0;
}

.apoa-member-dashboard-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 28px 0;
}

.apoa-member-nav {
	align-items: center;
	border-bottom: 1px solid var(--apoa-border);
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin: 0 auto 30px;
	padding-bottom: 16px;
}

.apoa-member-nav a {
	border: 1px solid var(--apoa-border);
	border-radius: 999px;
	color: var(--apoa-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	padding: 10px 18px;
	text-decoration: none;
}

.apoa-member-nav a:hover,
.apoa-member-nav a:focus,
.apoa-member-nav a.is-active {
	background: var(--apoa-button-bg);
	border-color: var(--apoa-button-bg);
	color: #fff;
}

.apoa-member-card {
	background: #fff;
	border: 1px solid var(--apoa-card-border);
	border-radius: 10px;
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
	box-sizing: border-box;
	min-height: 190px;
	padding: 22px;
}

.apoa-member-card-wide {
	grid-column: span 2;
}

.apoa-member-card h3 {
	font-size: 17px;
	line-height: 1.35;
	margin: 0 0 14px;
}

.apoa-member-card p {
	color: var(--apoa-muted);
	font-size: 14px;
	line-height: 1.65;
	margin: 8px 0 0;
}

.apoa-member-card-value {
	color: var(--apoa-ink) !important;
	font-size: 24px !important;
	font-weight: 800;
	line-height: 1.25 !important;
}

.apoa-member-note {
	background: var(--apoa-surface);
	border-left: 3px solid var(--apoa-blue);
	padding: 10px 12px;
}

.apoa-member-progress {
	background: #e8edf3;
	border-radius: 999px;
	height: 10px;
	margin: 14px 0 10px;
	overflow: hidden;
	width: 100%;
}

.apoa-member-progress span {
	background: var(--apoa-blue);
	border-radius: inherit;
	display: block;
	height: 100%;
	min-width: 8px;
}

.apoa-member-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin: 24px auto 0;
}

.apoa-member-button {
	background: var(--apoa-button-bg);
	border: 1px solid var(--apoa-button-bg);
	border-radius: 10px;
	color: #fff;
	display: inline-block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	min-width: 150px;
	padding: 12px 22px;
	text-align: center;
	text-decoration: none;
}

.apoa-member-button:hover {
	background: var(--apoa-button-hover);
	color: #fff;
}

.apoa-member-button-secondary {
	background: #fff;
	color: var(--apoa-button-bg);
}

.apoa-member-button-secondary:hover {
	background: var(--apoa-surface);
	color: var(--apoa-button-hover);
}

.apoa-member-profile-form {
	max-width: 860px !important;
}

.apoa-profile-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.apoa-leaderboard {
	border-collapse: collapse;
	margin: 24px auto;
	max-width: 900px;
	width: 100%;
}

.apoa-leaderboard th,
.apoa-leaderboard td {
	border-bottom: 1px solid rgba(29, 36, 46, 0.14);
	padding: 12px;
	text-align: left;
}

.apoa-leaderboard th {
	background: var(--apoa-surface-alt);
	color: var(--apoa-ink);
	font-weight: 700;
}

.wp-block-table.apoa-benefits-table {
	margin: 28px auto;
	max-width: var(--apoa-readable-width);
	overflow-x: auto;
}

.wp-block-table.apoa-benefits-table table {
	border-collapse: collapse;
	font-size: 13px;
	line-height: 1.55;
	width: 100%;
}

.wp-block-table.apoa-benefits-table th,
.wp-block-table.apoa-benefits-table td {
	border: 1px solid rgba(29, 36, 46, 0.12);
	padding: 10px 14px;
	text-align: center;
	vertical-align: middle;
}

.wp-block-table.apoa-benefits-table th:first-child,
.wp-block-table.apoa-benefits-table td:first-child {
	text-align: left;
	width: 55%;
}

.wp-block-table.apoa-benefits-table thead th {
	background: var(--apoa-button-bg);
	color: #fff !important;
	font-weight: 600;
}

.wp-block-table.apoa-benefits-table thead th * {
	color: #fff !important;
}

.wp-block-table.apoa-benefits-table tbody tr:nth-child(even) {
	background: var(--apoa-surface-alt);
}

.apoa-vip-dashboard {
	margin: 24px auto;
	max-width: 900px;
}

.apoa-vip-dashboard h2,
.apoa-vip-dashboard h3 {
	color: var(--apoa-ink);
}

.apoa-vip-dashboard-intro,
.apoa-vip-benefits,
.apoa-vip-notice {
	background: var(--apoa-surface);
	border: 1px solid rgba(29, 36, 46, 0.12);
	border-radius: 8px;
	margin: 18px 0;
	padding: 18px 20px;
}

.apoa-vip-notice {
	background: var(--apoa-surface-alt);
	color: #56616f;
	font-size: 14px;
}

.apoa-vip-landing {
	margin-left: auto;
	margin-right: auto;
	max-width: var(--apoa-readable-width);
}

.apoa-vip-landing .wp-block-columns {
	gap: 18px;
}

.apoa-vip-resources {
	margin-left: auto;
	margin-right: auto;
	max-width: var(--apoa-readable-width);
}

.apoa-vip-resources > .wp-block-heading:first-of-type {
	margin-bottom: 14px;
}

.apoa-vip-resources .apoa-resource-grid {
	display: grid !important;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-bottom: 18px;
	margin-top: 22px;
}

.apoa-vip-resources .wp-block-column {
	background: #fff;
	border: 1px solid rgba(29, 36, 46, 0.13);
	border-radius: 8px;
	box-shadow: 0 12px 28px rgba(18, 24, 32, 0.05);
	box-sizing: border-box;
	padding: 22px;
}

.apoa-vip-resources .wp-block-column h2 {
	font-size: 21px;
	line-height: 1.25;
	margin-top: 0;
}

.apoa-vip-resources .wp-block-column p {
	color: #56616f;
	font-size: 16px;
	line-height: 1.72;
	margin-bottom: 0;
}

.apoa-vip-card {
	background: var(--apoa-surface);
	border: 1px solid rgba(29, 36, 46, 0.13);
	border-radius: 8px;
	box-sizing: border-box;
	padding: 20px;
}

.apoa-vip-card h3 {
	margin-top: 0;
}

.apoa-vip-steps {
	background: var(--apoa-surface-alt);
	border-left: 4px solid var(--apoa-blue);
	padding: 18px 22px;
}

.apoa-academy-page {
	margin-left: auto;
	margin-right: auto;
	max-width: 1120px;
}

.apoa-academy-page h1 {
	color: var(--apoa-black);
	font-size: clamp(34px, 4vw, 58px);
	letter-spacing: 0;
	line-height: 1.08;
	margin-bottom: 18px;
}

.apoa-academy-page h2 {
	color: var(--apoa-black);
	font-size: clamp(22px, 2.1vw, 30px);
	letter-spacing: 0;
	line-height: 1.25;
}

.apoa-academy-lede {
	color: var(--apoa-black);
	font-size: clamp(18px, 1.5vw, 22px);
	font-weight: 600;
	line-height: 1.65;
	max-width: 860px;
}

.apoa-academy-grid {
	gap: 18px;
	margin: 26px 0;
}

.apoa-academy-card {
	background: var(--apoa-surface);
	border: 1px solid rgba(29, 36, 46, 0.13);
	border-radius: 8px;
	padding: 22px;
}

.apoa-academy-card h2 {
	font-size: 21px;
	margin-top: 0;
}

.apoa-academy-card p {
	color: var(--apoa-muted);
}

.apoa-academy-card a,
.apoa-academy-page > p a {
	color: var(--apoa-blue);
	font-weight: 700;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.apoa-academy-page .wp-block-latest-posts {
	background: var(--apoa-surface-alt);
	border: 1px solid rgba(29, 36, 46, 0.12);
	border-radius: 8px;
	list-style: none;
	padding: 18px 22px;
}

.apoa-academy-page .wp-block-latest-posts li {
	border-bottom: 1px solid rgba(29, 36, 46, 0.1);
	margin: 0;
	padding: 14px 0;
}

.apoa-academy-page .wp-block-latest-posts li:last-child {
	border-bottom: 0;
}

.apoa-academy-page .wp-block-latest-posts a {
	color: var(--apoa-black);
	font-weight: 700;
	text-decoration: none;
}

.apoa-academy-page .wp-block-latest-posts a:hover,
.apoa-academy-page .wp-block-latest-posts a:focus {
	color: var(--apoa-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.apoa-academy-page .wp-block-latest-posts__post-date {
	color: var(--apoa-muted);
	display: block;
	font-size: 13px;
	margin-top: 4px;
}

.apoa-guide-directory {
	display: grid;
	gap: 18px;
	margin: 24px 0 34px;
}

.apoa-guide-section {
	background: var(--apoa-surface-alt);
	border: 1px solid rgba(29, 36, 46, 0.12);
	border-radius: 8px;
	padding: 22px;
}

.apoa-guide-section-heading {
	border-bottom: 1px solid rgba(29, 36, 46, 0.12);
	margin-bottom: 8px;
	padding-bottom: 14px;
}

.apoa-guide-section-heading h3 {
	color: var(--apoa-black);
	font-size: clamp(20px, 1.8vw, 26px);
	letter-spacing: 0;
	line-height: 1.25;
	margin: 0 0 8px;
}

.apoa-guide-section-heading p,
.apoa-guide-empty {
	color: var(--apoa-muted);
	margin: 0;
}

.apoa-guide-list {
	display: grid;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.apoa-guide-list li {
	border-bottom: 1px solid rgba(29, 36, 46, 0.1);
	padding: 14px 0;
}

.apoa-guide-list li:last-child {
	border-bottom: 0;
}

.apoa-guide-list a {
	color: var(--apoa-black);
	display: inline-block;
	font-weight: 750;
	line-height: 1.35;
	text-decoration: none;
}

.apoa-guide-list a:hover,
.apoa-guide-list a:focus {
	color: var(--apoa-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.apoa-guide-list p {
	color: var(--apoa-muted);
	font-size: 15px;
	line-height: 1.6;
	margin: 6px 0 0;
}

.apoa-guide-link-cn {
	color: var(--apoa-muted);
	display: block;
	font-size: 0.95em;
	font-weight: 650;
	margin-top: 2px;
}

.apoa-guide-note,
.apoa-guide-warning {
	border-radius: 8px;
	line-height: 1.65;
	padding: 14px 16px;
}

.apoa-guide-note {
	background: var(--apoa-surface-alt);
	border-left: 4px solid var(--apoa-blue);
	color: var(--apoa-muted);
	font-size: 15px;
}

.apoa-guide-warning {
	background: #fff7e6;
	border-left: 4px solid #b85c00;
	color: var(--apoa-black);
	font-weight: 600;
}

/* 6. Footer and responsive */
.site-footer a {
	color: inherit;
}

.site-footer .apoa-footer-legal-links {
	margin-top: 10px;
}

.site-footer .apoa-footer-legal-links a {
	color: var(--apoa-blue);
	font-weight: 600;
	text-decoration: none;
}

.site-footer .apoa-footer-legal-links a:hover,
.site-footer .apoa-footer-legal-links a:focus {
	text-decoration: underline;
}

.site-footer {
	border-top: 1px solid rgba(0, 0, 0, 0.25);
	padding-top: 24px;
}

.site-footer .wp-block-quote {
	border: 0;
	margin: 0;
}

.site-footer .wp-block-quote::before,
.site-footer .wp-block-quote::after {
	content: none;
}

@media (max-width: 782px) {
	.site-header .wp-block-group {
		gap: 16px;
	}

	.site-header .has-medium-font-size > p:has(.apoa-language-menu),
	.site-header .has-medium-font-size > p:has(.apoa-language-context) {
		align-self: flex-start;
		justify-content: flex-start;
		width: 100%;
	}

	.apoa-header-account {
		justify-content: flex-start;
		width: 100%;
	}

	.wp-block-navigation {
		width: 100%;
	}

	.home .wp-block-post-content .wp-block-gallery {
		grid-template-columns: 1fr;
	}

	.apoa-home-hero {
		padding-bottom: 34px;
		padding-top: 30px;
	}

	.apoa-home-hero-grid,
	.apoa-home-split {
		gap: 24px;
		grid-template-columns: 1fr;
	}

	.apoa-home-gallery {
		grid-template-columns: 1fr;
	}

	.apoa-home-gallery img {
		aspect-ratio: 16 / 11;
	}

	.apoa-home-section {
		padding-bottom: 44px;
		padding-top: 44px;
	}

	.apoa-feature-grid {
		display: block;
	}

	.apoa-resource-grid {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
	}

	.apoa-member-dashboard-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.apoa-member-card-wide {
		grid-column: span 2;
	}

	.apoa-feature-grid .wp-block-column {
		margin-bottom: 14px;
	}

	.apoa-home-posts .wp-block-post-template {
		grid-template-columns: 1fr !important;
	}

	.apoa-community-pulse {
		grid-template-columns: 1fr;
	}

	.apoa-live-note-grid,
	.apoa-community-post-grid,
	.apoa-community-face-wall {
		grid-template-columns: 1fr 1fr;
	}

	.apoa-community-hero-grid,
	.apoa-community-volunteers .apoa-section-inner,
	.apoa-community-cta-card {
		grid-template-columns: 1fr;
	}

	.apoa-community-cta-actions {
		justify-content: flex-start;
	}

	.apoa-community-wrap .apoa-values,
	.apoa-community-wrap .apoa-stats {
		grid-template-columns: 1fr;
	}

	.apoa-community-wrap .apoa-stat {
		border-bottom: 1px solid var(--apoa-line);
		border-right: 0;
	}

	.apoa-community-wrap .apoa-stat:last-child {
		border-bottom: 0;
	}

	.apoa-community-wall-section {
		border-left: 0;
		border-radius: 0;
		border-right: 0;
		padding-bottom: 42px;
		padding-top: 42px;
	}
}

@media (max-width: 620px) {
	.apoa-live-note-grid,
	.apoa-community-post-grid,
	.apoa-community-face-wall,
	.apoa-resource-grid {
		grid-template-columns: 1fr !important;
	}

	.site-header .apoa-language-context {
		align-items: flex-start;
		flex-direction: column;
	}

	.apoa-community-pulse {
		margin-bottom: 30px;
	}

	.apoa-community-pulse-stats {
		grid-template-columns: 1fr;
	}

	.apoa-contributor-nameplates {
		gap: 6px;
	}
}

@media (max-width: 768px) {
	.wp-block-post-content > h1,
	.wp-block-post-content > h2,
	.wp-block-post-content > h3,
	.wp-block-post-content > h4,
	.wp-block-post-content > p,
	.wp-block-post-content > ul,
	.wp-block-post-content > ol,
	.wp-block-post-content > hr,
	.wp-block-post-content > figure,
	.wp-block-post-content > .wp-block-heading,
	.wpforms-container,
	.tml,
	.theme-my-login,
	.apoa-register-wrapper {
		margin-left: auto !important;
		margin-right: auto !important;
		max-width: none !important;
		width: calc(100% - 24px) !important;
	}

	.wpforms-container form,
	.tml form,
	.theme-my-login form,
	.apoa-register-wrapper {
		border-radius: 12px !important;
		padding: 20px 16px !important;
	}

	.wpforms-container button[type="submit"],
	.wpforms-container input[type="submit"],
	.tml form button[type="submit"],
	.tml form input[type="submit"],
	.theme-my-login form button[type="submit"],
	.theme-my-login form input[type="submit"],
	.apoa-register-wrapper button,
	.apoa-register-wrapper input[type="submit"],
	.apoa-register-wrapper input[type="button"] {
		min-width: 0 !important;
		width: 100% !important;
	}

	.tml-links li,
	.tml .tml-action-links li,
	.theme-my-login .tml-links li {
		display: block;
		margin: 8px 0;
	}

	.apoa-radio-option {
		margin: 6px 8px;
	}

	.apoa-state-options .apoa-radio-option {
		min-width: calc(50% - 10px);
	}

	.apoa-group-application-option {
		display: flex;
		margin: 8px 0;
	}

	.apoa-member-dashboard {
		margin-top: 28px;
		padding-left: 16px;
		padding-right: 16px;
	}

	.apoa-member-dashboard-grid,
	.apoa-profile-grid {
		grid-template-columns: 1fr;
	}

	.apoa-member-card-wide {
		grid-column: span 1;
	}

	.apoa-member-card {
		min-height: 0;
		padding: 18px;
	}

	.apoa-member-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.apoa-member-button {
		width: 100%;
	}

	.apoa-home-inner {
		padding-left: 18px;
		padding-right: 18px;
	}

	.apoa-home h1 {
		font-size: 30px;
	}

	.apoa-home h2 {
		font-size: 25px;
	}

	.apoa-home-lede {
		font-size: 15px !important;
	}

	.apoa-home .wp-block-button,
	.apoa-home .wp-block-button__link {
		width: 100%;
	}

	.apoa-home .wp-block-button__link {
		min-width: 0;
	}

	.apoa-resource-grid {
		grid-template-columns: 1fr;
	}

	.apoa-section-inner {
		padding-left: 18px;
		padding-right: 18px;
	}

	.apoa-community-hero,
	.apoa-community-values,
	.apoa-community-wall,
	.apoa-community-journey,
	.apoa-community-volunteers,
	.apoa-community-cta {
		padding: 42px 0;
	}

	.apoa-community-value-grid,
	.apoa-community-post-grid,
	.apoa-community-face-wall,
	.apoa-community-timeline-item {
		grid-template-columns: 1fr;
	}

	.apoa-community-timeline::before,
	.apoa-community-timeline-item::before {
		display: none;
	}

	.apoa-community-timeline-item {
		margin-left: 0;
		padding: 20px;
	}

	.apoa-community-cta-actions,
	.apoa-community-cta-actions .apoa-button {
		width: 100%;
	}

	.apoa-main-nav-row {
		align-items: center !important;
		flex-direction: column !important;
		gap: 12px;
		justify-content: center !important;
	}

	.apoa-main-nav-row > p {
		position: static;
	}

	.site-header p:has(.apoa-language-menu) {
		margin-top: 0 !important;
	}

	.site-header .apoa-language-menu {
		justify-content: center;
		position: static;
		width: 100%;
	}

	.apoa-language-menu a {
		justify-content: center;
		min-width: 86px;
	}

	.wp-block-post-content iframe[title^="APOA"] {
		min-height: 560px;
		width: calc(100vw - 24px) !important;
	}
}

.apoa-article-meta {
	border-bottom: 1px solid #d9dde3;
	color: #626b78;
	font-size: 0.95rem;
	margin: -8px 0 28px;
	padding-bottom: 16px;
}

.apoa-policy-article {
	max-width: 820px;
}

.apoa-policy-article h2 {
	margin-top: 36px;
}

.apoa-policy-article ul {
	margin-bottom: 24px;
}

.apoa-policy-article li + li {
	margin-top: 8px;
}

.apoa-policy-disclaimer {
	margin-top: 36px;
}

.apoa-policy-featured {
	align-items: center;
	background: #f6f8fb;
	border: 1px solid #d7dee8;
	border-left: 6px solid #d11224;
	border-radius: 8px;
	display: grid;
	gap: 22px;
	grid-template-columns: minmax(0, 1fr) auto;
	margin: 34px 0;
	padding: 28px;
}

.apoa-policy-featured h2 {
	font-size: clamp(1.75rem, 2.5vw, 2.35rem);
	line-height: 1.16;
	margin: 0 0 12px;
}

.apoa-policy-featured p {
	margin-bottom: 0;
}

.apoa-policy-featured .apoa-button {
	white-space: nowrap;
}

.apoa-academy-hub {
	display: grid;
	gap: 48px;
}

.apoa-academy-hub section > h2 {
	margin-bottom: 14px;
}

.apoa-academy-library > p {
	color: #586170;
	font-size: 1.05rem;
	max-width: 780px;
}

.apoa-guide-section-heading {
	position: relative;
}

.apoa-guide-count {
	background: #eef2f7;
	border: 1px solid #d7dee8;
	border-radius: 999px;
	color: #303842;
	display: inline-flex;
	font-size: 0.86rem;
	font-weight: 700;
	margin-top: 8px;
	padding: 5px 11px;
}

.apoa-guide-view-all {
	margin-top: 16px;
}

.apoa-guide-view-all a {
	color: #001489;
	font-weight: 800;
	text-decoration: none;
}

.apoa-guide-view-all a:hover,
.apoa-guide-view-all a:focus {
	text-decoration: underline;
}

.apoa-language-version {
	align-items: center;
	background: #f7f9fc;
	border: 1px solid #d7dee8;
	border-radius: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
	padding: 12px 14px;
}

.apoa-language-version span:first-child {
	color: #303842;
	font-size: 0.9rem;
	font-weight: 800;
	margin-right: 4px;
}

.apoa-language-version a {
	color: #001489;
	font-weight: 800;
	text-decoration: none;
}

.apoa-language-version a:hover,
.apoa-language-version a:focus {
	text-decoration: underline;
}

.apoa-language-version .is-active {
	color: #20242a;
	cursor: default;
	pointer-events: none;
}

.apoa-language-version .is-disabled {
	color: #8a94a3;
}

@media (max-width: 720px) {
	.apoa-policy-featured {
		grid-template-columns: 1fr;
		padding: 22px;
	}

	.apoa-policy-featured .apoa-button {
		width: 100%;
	}
}
