/* Arunthathee — professional Hindu wedding aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
	--at-ink: #2a1810;
	--at-muted: #6e5a4e;
	--at-line: #e4d8cc;
	--at-soft: #f3ebe3;
	--at-surface: #fffdfb;
	--at-accent: #6b2430;          /* deep maroon */
	--at-accent-soft: #8a3a45;
	--at-gold: #b08d57;            /* muted gold */
	--at-gold-soft: #d4b98a;
	--at-head: #3a1f24;
	--at-hero: #241418;
	--at-font: "Source Sans 3", "Segoe UI", sans-serif;
	--at-display: "Cormorant Garamond", Georgia, serif;
	--at-radius: 10px;
	--at-shadow: 0 12px 28px rgba(42, 24, 16, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

body.at-front {
	font-family: var(--at-font);
	color: var(--at-ink);
	background: #f7f1ea;
	overflow-x: hidden;
}

/* Hide unfinished / leftover CloudFW chrome */
#theme-options,
#woocommerce-nav-cart,
#widget--shop-cart,
.ui--fixed-button,
.sr-sharebar,
#side-panel { display: none !important; }

body.at-front #page-content.no-sidebar-layout > .container {
	width: 100%;
	max-width: none;
	padding: 0;
	margin: 0;
}
body.at-front.at-page-home #titlebar,
body.at-front.at-page-about #titlebar,
body.at-front.at-page-contact #titlebar,
body.at-front.at-page-magazines #titlebar,
body.at-front.at-page-book #titlebar,
body.at-front.at-page-profiles #titlebar,
body.at-front.at-page-profile #titlebar { display: none !important; }
body.at-front.at-page-home #page-content,
body.at-front.at-page-about #page-content,
body.at-front.at-page-contact #page-content,
body.at-front.at-page-magazines #page-content,
body.at-front.at-page-book #page-content,
body.at-front.at-page-profiles #page-content,
body.at-front.at-page-profile #page-content { padding: 0 !important; margin: 0 !important; }

/* Top bar — custom layout (skip legacy abs-left/abs-right) */
body.at-front #top-bar { display: none !important; }
body.at-front .at-topbar {
	background: var(--at-head) !important;
	color: rgba(255,248,240,0.85);
	font-size: 0.8rem;
	border-bottom: 1px solid rgba(176,141,87,0.22);
}
body.at-front .at-topbar-inner {
	width: min(1100px, calc(100% - 1.5rem));
	margin: 0 auto;
	min-height: 34px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.35rem 0;
}
body.at-front .at-topbar-left,
body.at-front .at-topbar-right {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.15rem;
}
body.at-front .at-topbar a { color: rgba(255,248,240,0.9) !important; text-decoration: none; }
body.at-front .at-top-sep { margin: 0 0.35rem; opacity: 0.45; }
body.at-front .at-lang-btn { opacity: 0.72; }
body.at-front .at-lang-btn.is-active { opacity: 1; font-weight: 700; color: var(--at-gold-soft) !important; }
@media (max-width: 560px) {
	body.at-front .at-topbar { font-size: 0.72rem; }
	body.at-front .at-topbar-inner { width: calc(100% - 1rem); }
	body.at-front .at-top-sep { margin: 0 0.2rem; }
}

/* Header — maroon bar so white logo matches; kill legacy red skin + centered logo */
body.at-front #header-container,
body.at-front .at-header {
	background: var(--at-head) !important;
	border-bottom: 1px solid rgba(176, 141, 87, 0.35) !important;
	box-shadow: 0 2px 14px rgba(0,0,0,0.18) !important;
	position: relative !important;
	z-index: 50;
	overflow: visible !important;
}
body.at-front #header-container-background {
	display: none !important;
	background: none !important;
	background-image: none !important;
	opacity: 0 !important;
}
body.at-front .at-header-inner,
body.at-front #header-container > .container {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 1rem;
	padding: 0.65rem 15px !important;
	min-height: 76px;
	position: relative !important;
	float: none !important;
	width: min(1100px, 100%) !important;
	max-width: 1100px !important;
	margin: 0 auto !important;
	box-sizing: border-box !important;
}
body.at-front #logo,
body.at-front header #logo,
body.at-front .at-brand-link {
	float: none !important;
	position: relative !important;
	left: auto !important;
	right: auto !important;
	top: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left !important;
	width: auto !important;
	max-width: 240px;
	z-index: 3 !important;
	flex: 0 0 auto;
	display: block;
}
body.at-front .at-logo,
body.at-front #logo img,
body.at-front header #logo img {
	display: block !important;
	max-height: 52px !important;
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	margin: 0 !important;
}
body.at-front #logo img.visible-desktop,
body.at-front #logo img.visible-tablet,
body.at-front #logo img.visible-phone { display: none !important; }

/* Kill CloudFW absolute full-width nav that overlaps logo */
body.at-front nav#navigation,
body.at-front .at-nav {
	position: relative !important;
	left: auto !important;
	right: auto !important;
	top: auto !important;
	bottom: auto !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	transform: none !important;
	-webkit-transform: none !important;
	flex: 1 1 auto;
	display: flex !important;
	align-items: center;
	justify-content: flex-end;
	z-index: 4;
}
body.at-front .at-nav-toggle {
	display: none;
	border: 1px solid rgba(255,248,240,0.35);
	background: transparent;
	color: #fff8f0;
	border-radius: 8px;
	padding: 0.55rem 0.9rem;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
body.at-front #header-navigation,
body.at-front .at-nav-list {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.1rem;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	float: none !important;
	width: auto !important;
	position: relative !important;
	left: auto !important;
	top: auto !important;
}
body.at-front #header-navigation > li,
body.at-front .at-nav-list > li {
	float: none !important;
	display: block !important;
	margin: 0 !important;
	position: relative !important;
}
body.at-front #header-navigation > li > a,
body.at-front .at-nav-list > li > a {
	font-family: var(--at-font) !important;
	font-weight: 600 !important;
	font-size: 0.86rem !important;
	color: rgba(255,248,240,0.9) !important;
	padding: 0.45rem 0.65rem !important;
	border-radius: 8px;
	display: block;
	white-space: nowrap;
	background: transparent !important;
	text-shadow: none !important;
}
body.at-front #header-navigation > li > a:hover,
body.at-front .at-nav-list > li > a:hover {
	background: rgba(255,248,240,0.1) !important;
	color: #fff !important;
}
body.at-front #header-navigation > li > a.at-nav-cta,
body.at-front .at-nav-list > li > a.at-nav-cta {
	background: var(--at-gold) !important;
	color: #2a1810 !important;
	margin-left: 0.25rem;
}
body.at-front #header-navigation > li > a.at-nav-cta:hover {
	background: var(--at-gold-soft) !important;
	color: #2a1810 !important;
}

@media (max-width: 980px) {
	body.at-front .at-nav-toggle { display: inline-flex; align-items: center; }
	body.at-front #header-navigation,
	body.at-front .at-nav-list {
		display: none !important;
		position: absolute !important;
		right: 0 !important;
		top: calc(100% + 0.45rem) !important;
		width: min(300px, calc(100vw - 2rem)) !important;
		background: #2a1810 !important;
		border: 1px solid rgba(176,141,87,0.4);
		border-radius: 12px;
		box-shadow: var(--at-shadow);
		padding: 0.5rem !important;
		flex-direction: column;
		align-items: stretch;
		z-index: 80;
	}
	body.at-front.at-nav-open #header-navigation,
	body.at-front.at-nav-open .at-nav-list {
		display: flex !important;
	}
	body.at-front #header-navigation > li > a,
	body.at-front .at-nav-list > li > a {
		padding: 0.75rem 0.9rem !important;
	}
	body.at-front #header-navigation > li > a.at-nav-cta {
		margin: 0.35rem 0 0;
		text-align: center;
	}
	body.at-front .at-logo,
	body.at-front #logo img { max-height: 44px !important; }
	body.at-front .at-brand-link,
	body.at-front #logo { max-width: 190px; }
}

/* Landing */
.at-land { background: #f7f1ea; color: var(--at-ink); }
.at-hero {
	position: relative;
	min-height: 0 !important;
	height: auto !important;
	display: block;
	color: #fff8f0;
	overflow: hidden;
	margin: 0 !important;
	padding: 0 !important;
	background: var(--at-hero) center 28%/cover no-repeat;
}
.at-hero::before {
	content: "";
	position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(36,20,24,0.32) 0%, rgba(36,20,24,0.58) 55%, rgba(36,20,24,0.9) 100%),
		linear-gradient(105deg, rgba(107,36,48,0.5) 0%, rgba(36,20,24,0.12) 58%, rgba(176,141,87,0.16) 100%);
}
.at-hero-inner {
	position: relative;
	z-index: 1;
	width: min(1100px, calc(100% - 2rem));
	margin: 0 auto;
	padding: 1.15rem 0 1rem;
}
body.at-front .at-hero h1.at-brand,
body.at-front h1.at-brand,
.at-brand {
	font-family: var(--at-display) !important;
	font-size: clamp(1.85rem, 4.2vw, 2.75rem) !important;
	font-weight: 600 !important;
	line-height: 0.95 !important;
	letter-spacing: -0.02em;
	margin: 0 0 0.3rem !important;
	padding: 0 !important;
	color: #fff8f0 !important; /* match white logo wordmark — not legacy skin red */
	text-shadow: 0 2px 18px rgba(0,0,0,0.35) !important;
	background: none !important;
}
body.at-front .at-hero .at-hero-lead,
.at-hero-lead {
	max-width: 26rem;
	font-size: 0.95rem !important;
	line-height: 1.4 !important;
	color: rgba(255,248,240,0.9) !important;
	margin: 0 0 0.7rem !important;
	padding: 0 !important;
	text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}
.at-cta-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0; padding: 0; }
body.at-front .at-hero .at-btn {
	padding: 0.55rem 1.05rem;
	font-size: 0.88rem;
}
.at-search-wrap {
	background: #efe4d8;
	border-bottom: 1px solid var(--at-line);
	padding: 1rem 0 1.15rem;
}
.at-search-wrap .at-search {
	width: min(1100px, calc(100% - 2rem));
	margin: 0 auto;
	max-width: none;
	box-shadow: none;
}
.at-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0.8rem 1.3rem; border-radius: 8px; font-weight: 650; font-size: 0.93rem;
	text-decoration: none !important; border: 1px solid transparent;
	transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.at-btn:active { transform: translateY(1px); }
body.at-front .at-btn-primary,
.at-btn-primary { background: #fff8f0 !important; color: var(--at-ink) !important; }
body.at-front .at-btn-primary:hover { background: #f3ebe3 !important; }
body.at-front .at-btn-ghost,
.at-btn-ghost {
	background: rgba(255,248,240,0.08) !important;
	color: #fff8f0 !important;
	border-color: rgba(255,248,240,0.55) !important;
}
body.at-front .at-btn-ghost:hover { background: rgba(255,248,240,0.16) !important; }
body.at-front .at-btn-accent,
.at-btn-accent { background: var(--at-accent) !important; color: #fff8f0 !important; border-color: var(--at-accent) !important; }
body.at-front .at-btn-accent:hover { background: var(--at-accent-soft) !important; }
body.at-front .at-btn-ghost-dark,
.at-btn-ghost-dark {
	background: transparent !important;
	color: var(--at-accent) !important;
	border-color: rgba(107,36,48,0.35) !important;
}
body.at-front .at-btn-ghost-dark:hover {
	background: rgba(107,36,48,0.06) !important;
	border-color: var(--at-accent) !important;
}

.at-search {
	background: rgba(255,253,251,0.97);
	color: var(--at-ink);
	border-radius: 14px;
	padding: 1.2rem 1.2rem 1.1rem;
	box-shadow: var(--at-shadow);
	border: 1px solid rgba(228,216,204,0.85);
	max-width: 920px;
}
.at-search h3 {
	margin: 0 0 0.8rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
	color: var(--at-accent); font-weight: 700;
}
.at-search-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
	gap: 0.55rem 0.65rem;
	align-items: end;
}
.at-search .at-search-actions {
	grid-column: auto;
	margin-top: 0;
	align-self: end;
}
.at-search .at-search-actions .at-btn {
	min-height: 42px;
	padding-left: 1.1rem;
	padding-right: 1.1rem;
	white-space: nowrap;
}
.at-search label,
.at-filters label {
	display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
	color: var(--at-muted); font-weight: 700; margin-bottom: 0.3rem;
}
.at-search select,
.at-search input[type="number"],
.at-search input[type="text"],
.at-filters select,
.at-filters input {
	width: 100%; border: 1px solid var(--at-line); border-radius: 8px; padding: 0.65rem 0.75rem;
	font: inherit; background: #fff; color: var(--at-ink); min-height: 42px;
	-webkit-appearance: none; appearance: none;
}
.at-search select:focus,
.at-search input:focus,
.at-filters select:focus,
.at-filters input:focus {
	outline: 2px solid rgba(176,141,87,0.45);
	border-color: var(--at-gold);
}
/* search actions placed in grid above */

.at-section {
	width: min(1100px, calc(100% - 2rem));
	margin: 0 auto;
	padding: 3.25rem 0;
}
.at-section-head { margin-bottom: 1.4rem; }
.at-section-head h2 {
	font-family: var(--at-display);
	font-size: clamp(1.7rem, 3vw, 2.3rem);
	font-weight: 600; margin: 0 0 0.35rem; letter-spacing: -0.02em;
	color: var(--at-ink);
}
.at-section-head p { margin: 0; color: var(--at-muted); max-width: 36rem; line-height: 1.5; }

.at-stats {
	display: grid; grid-template-columns: repeat(3, 1fr);
	background: linear-gradient(180deg, #efe4d8 0%, #e8d9c9 100%);
	border-top: 1px solid var(--at-line); border-bottom: 1px solid var(--at-line);
}
.at-stat { padding: 1.6rem 1.1rem; text-align: center; }
.at-stat .n {
	font-family: var(--at-display); font-size: clamp(1.8rem, 4vw, 2.35rem);
	font-weight: 600; line-height: 1; color: var(--at-accent);
}
.at-stat .l { margin-top: 0.35rem; font-size: 0.84rem; color: var(--at-muted); font-weight: 600; }

.at-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.at-step {
	border: 1px solid var(--at-line); border-radius: var(--at-radius);
	padding: 1.25rem 1.15rem; background: var(--at-surface);
}
.at-step .num {
	font-family: var(--at-display); font-size: 1.65rem; color: var(--at-gold); font-weight: 600; margin-bottom: 0.3rem;
}
.at-step h3 { margin: 0 0 0.35rem; font-size: 1.02rem; color: var(--at-ink); }
.at-step p { margin: 0; color: var(--at-muted); font-size: 0.9rem; line-height: 1.5; }

.at-profiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 1rem;
}
.at-card {
	background: var(--at-surface); border: 1px solid var(--at-line); border-radius: 14px; overflow: hidden;
	transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
	text-decoration: none !important; color: inherit !important; display: block;
}
.at-card:hover {
	border-color: var(--at-gold-soft);
	transform: translateY(-3px);
	box-shadow: 0 14px 28px rgba(42,24,16,0.1);
}
.at-card-media {
	aspect-ratio: 3/4; background: var(--at-soft) center/cover no-repeat; position: relative;
	overflow: hidden;
}
.at-card-media--default {
	background-color: #efe4d8;
	background-size: cover;
}
.at-card-media--default::after {
	content: "";
	position: absolute; inset: 0;
	background:
		linear-gradient(180deg, transparent 45%, rgba(36,20,24,0.55) 100%),
		radial-gradient(120% 80% at 50% 0%, rgba(176,141,87,0.18), transparent 55%);
	pointer-events: none;
	animation: at-soft-glow 5.5s ease-in-out infinite alternate;
}
.at-card-media--default {
	animation: at-portrait-drift 12s ease-in-out infinite alternate;
	background-size: 108% auto;
}
@keyframes at-portrait-drift {
	from { background-position: 50% 40%; }
	to { background-position: 50% 58%; }
}
@keyframes at-soft-glow {
	from { opacity: 0.85; }
	to { opacity: 1; }
}
.at-card-id {
	position: absolute; left: 10px; bottom: 10px; z-index: 2;
	background: rgba(58,31,36,0.9); color: #fff8f0; font-size: 0.7rem; font-weight: 700;
	padding: 0.22rem 0.48rem; border-radius: 6px;
}
.at-card-gender {
	position: absolute; right: 10px; top: 10px; z-index: 2;
	background: rgba(255,248,240,0.92); color: var(--at-accent); font-size: 0.68rem; font-weight: 700;
	letter-spacing: 0.04em; text-transform: uppercase;
	padding: 0.22rem 0.45rem; border-radius: 999px;
}
.at-badges {
	display: flex; flex-wrap: wrap; gap: 0.35rem; z-index: 3;
	align-items: flex-start;
}
.at-badges-card {
	position: absolute; left: 8px; top: 8px; right: 8px;
	max-width: calc(100% - 5.5rem); /* leave room for gender pill */
}
.at-badges-view { margin-top: 0.7rem; }
.at-badge {
	display: inline-flex; align-items: center; gap: 0.3rem;
	font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
	padding: 0.24rem 0.52rem; border-radius: 999px;
	line-height: 1; white-space: nowrap;
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	box-shadow: 0 4px 12px rgba(36,20,24,0.12);
}
/* Photo = hero signal */
.at-badge-photo {
	background: #fff8f0;
	color: var(--at-accent);
	border: 1px solid rgba(107,36,48,0.2);
	font-size: 0.72rem;
	padding: 0.34rem 0.65rem;
	box-shadow: 0 6px 16px rgba(36,20,24,0.18);
}
.at-badges-card .at-badge-photo {
	animation: at-photo-pulse 2.8s ease-in-out infinite;
}
@keyframes at-photo-pulse {
	0%, 100% { transform: translateY(0); box-shadow: 0 6px 16px rgba(36,20,24,0.18); }
	50% { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(107,36,48,0.22); }
}
.at-badge-ico { width: 12px; height: 12px; display: block; flex: 0 0 auto; }
.at-badge-photo .at-badge-ico { width: 13px; height: 13px; }

/* Premium tiers — no payment amounts shown */
.at-badge-premium {
	color: #241418;
	border: 1px solid rgba(255,248,240,0.35);
}
.at-badge-premium .at-badge-dot {
	width: 6px; height: 6px; border-radius: 50%;
	background: #fff8f0;
	box-shadow: 0 0 0 2px rgba(36,20,24,0.12);
}
.at-badge-premium.at-badge-premium,
.at-badge-premium:not(.at-badge-gold):not(.at-badge-elite) {
	background: linear-gradient(135deg, #c4a46a 0%, #e0c894 50%, #a6864a 100%);
}
.at-badge-gold {
	background: linear-gradient(135deg, #b08d57 0%, #f0d9a8 42%, #8a6a35 100%) !important;
	border-color: rgba(255,248,240,0.45) !important;
}
.at-badge-elite {
	background: linear-gradient(135deg, #3a1f24 0%, #6b2430 40%, #b08d57 100%) !important;
	color: #fff8f0 !important;
	border-color: rgba(212,185,138,0.55) !important;
}
.at-badge-elite .at-badge-dot {
	background: #d4b98a;
	box-shadow: 0 0 0 2px rgba(255,248,240,0.2);
}

.at-card--has-photo {
	border-color: rgba(107,36,48,0.22);
}
.at-card--premium { border-color: rgba(176,141,87,0.5); }
.at-card--tier-1 { box-shadow: 0 8px 20px rgba(176,141,87,0.1); }
.at-card--tier-2 {
	border-color: rgba(176,141,87,0.7);
	box-shadow: 0 10px 24px rgba(176,141,87,0.16);
}
.at-card--tier-3 {
	border-color: rgba(107,36,48,0.45);
	box-shadow: 0 12px 28px rgba(107,36,48,0.14);
}
.at-card--tier-3 .at-card-media--default::after {
	background:
		linear-gradient(180deg, transparent 40%, rgba(36,20,24,0.62) 100%),
		radial-gradient(120% 80% at 50% 0%, rgba(176,141,87,0.28), transparent 55%);
}
.at-card--premium:hover {
	border-color: var(--at-gold);
	box-shadow: 0 14px 28px rgba(176,141,87,0.2);
}

.at-page-head .at-badges-view .at-badge-photo {
	background: #fff8f0;
	color: var(--at-accent);
	border-color: rgba(255,248,240,0.55);
	font-size: 0.78rem;
	padding: 0.4rem 0.75rem;
}
.at-page-head .at-badges-view .at-badge-premium:not(.at-badge-elite) {
	color: #241418;
}
.at-page-head .at-badges-view .at-badge-elite {
	color: #fff8f0 !important;
}
.at-profile-photo--has-photo {
	outline: 2px solid rgba(107,36,48,0.28);
	outline-offset: 2px;
}
.at-profile-photo--tier-2 {
	box-shadow: 0 12px 28px rgba(176,141,87,0.2), var(--at-shadow);
}
.at-profile-photo--tier-3 {
	box-shadow: 0 14px 32px rgba(107,36,48,0.22), var(--at-shadow);
	outline: 2px solid rgba(176,141,87,0.55);
	outline-offset: 2px;
}
.at-card-match {
	position: absolute; right: 10px; bottom: 10px; z-index: 2;
	background: rgba(176,141,87,0.95); color: #241418; font-size: 0.68rem; font-weight: 700;
	padding: 0.22rem 0.45rem; border-radius: 6px;
}
.at-card-body { padding: 0.9rem 0.95rem 1.05rem; }
.at-card-body .age {
	font-family: var(--at-display); font-weight: 600; font-size: 1.2rem;
	margin-bottom: 0.35rem; color: var(--at-ink); line-height: 1.1;
}
.at-card-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.45rem; }
.at-chip {
	display: inline-block; font-size: 0.68rem; font-weight: 700;
	padding: 0.18rem 0.45rem; border-radius: 999px;
	background: rgba(107,36,48,0.08); color: var(--at-accent);
}
.at-chip-soft { background: rgba(176,141,87,0.16); color: #6a5328; }
.at-card-body .meta { font-size: 0.8rem; color: var(--at-muted); line-height: 1.45; }
.at-card-body .meta span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.at-page-browse .at-browse { margin-top: 0; padding-top: 1.35rem; }
.at-facet-clear { margin: 0.7rem 0 0; }
.at-facet-clear a { color: var(--at-gold-soft) !important; font-weight: 700; font-size: 0.85rem; text-decoration: none !important; }
.at-quick-facets { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--at-line); }
.at-quick-facets h3 {
	margin: 0 0 0.55rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
	color: var(--at-muted); font-weight: 700;
}
.at-facet-links { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.at-facet-links a {
	display: inline-block; font-size: 0.75rem; font-weight: 600;
	padding: 0.28rem 0.55rem; border-radius: 999px; text-decoration: none !important;
	border: 1px solid var(--at-line); color: var(--at-ink) !important; background: #fff;
}
.at-facet-links a:hover,
.at-facet-links a.is-active {
	border-color: var(--at-accent); color: var(--at-accent) !important; background: rgba(107,36,48,0.05);
}

.at-browse {
	width: min(1180px, calc(100% - 1.5rem));
	margin: 1.25rem auto 2.75rem;
	display: grid;
	grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
	gap: 1.25rem;
	align-items: start;
}
.at-filters {
	background: var(--at-surface); border: 1px solid var(--at-line); border-radius: 14px; padding: 1.15rem;
	position: sticky; top: 12px;
	box-shadow: 0 8px 20px rgba(42,24,16,0.04);
}
.at-filters h2 {
	margin: 0 0 0.95rem; font-family: var(--at-display); font-size: 1.25rem; font-weight: 600; color: var(--at-ink);
}
.at-filters .field { margin-bottom: 0.7rem; }
.at-filters .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.at-results-head {
	display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.at-results-head h1,
.at-results-head h2 {
	font-family: var(--at-display) !important; font-size: clamp(1.45rem, 3vw, 1.85rem) !important;
	margin: 0 !important; font-weight: 600 !important; color: var(--at-ink) !important;
}
.at-results-head .count { color: var(--at-muted); font-size: 0.88rem; }

/* Profile view */
.at-profile-layout {
	display: grid;
	grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
	gap: 1.35rem;
	align-items: start;
}
.at-profile-photo {
	aspect-ratio: 3/4; border-radius: 16px; background: var(--at-soft) center/cover no-repeat;
	border: 1px solid var(--at-line); box-shadow: var(--at-shadow);
}
.at-profile-photo--default {
	animation: at-portrait-drift 12s ease-in-out infinite alternate;
	background-size: 108% auto;
	position: relative;
}
.at-profile-photo--default::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
	background: linear-gradient(180deg, transparent 50%, rgba(36,20,24,0.35) 100%);
	animation: at-soft-glow 5.5s ease-in-out infinite alternate;
}
.at-profile-chips {
	list-style: none; margin: 0 0 1rem; padding: 0;
	display: flex; flex-wrap: wrap; gap: 0.55rem;
}
.at-profile-chip {
	display: inline-flex; align-items: baseline; gap: 0.45rem;
	padding: 0.55rem 0.8rem; border-radius: 999px; text-decoration: none !important;
	background: var(--at-surface); border: 1px solid var(--at-line);
	color: var(--at-ink) !important;
	transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.at-profile-chip:hover {
	border-color: var(--at-gold); transform: translateY(-1px); background: #fff;
}
.at-profile-chip strong { font-size: 0.92rem; }
.at-profile-chip span {
	font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--at-muted);
}
.at-profile-chip-caste { border-color: rgba(107,36,48,0.28); }
.at-profile-chip-star { border-color: rgba(176,141,87,0.45); }
.at-profile-about p { margin: 0; color: var(--at-muted); line-height: 1.6; }
.at-fact-grid {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 1rem; margin: 0;
}
.at-fact-grid dt {
	font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
	color: var(--at-muted); font-weight: 700; margin: 0 0 0.15rem;
}
.at-fact-grid dd { margin: 0; color: var(--at-ink); font-weight: 600; line-height: 1.35; }
.at-profile-job { margin: 0 0 0.35rem; color: var(--at-ink); }
.at-profile-tablist {
	display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.75rem;
}
.at-profile-tablist button {
	border: 1px solid var(--at-line); background: var(--at-surface); color: var(--at-muted);
	border-radius: 999px; padding: 0.45rem 0.9rem; font: inherit; font-weight: 700; cursor: pointer;
}
.at-profile-tablist button.is-active {
	background: var(--at-accent); border-color: var(--at-accent); color: #fff8f0;
}
.at-profile-tabpanel { display: none; }
.at-profile-tabpanel.is-active { display: block; }
.at-edu-list { list-style: none; margin: 0; padding: 0; }
.at-edu-list li {
	padding: 0.7rem 0; border-bottom: 1px solid var(--at-line);
	display: flex; flex-direction: column; gap: 0.15rem;
}
.at-edu-list li:last-child { border-bottom: 0; }
.at-edu-list strong { color: var(--at-ink); }
.at-edu-list span { color: var(--at-muted); font-size: 0.92rem; }
.at-chart-wrap { overflow-x: auto; }
.at-charts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.1rem;
}
.at-chart-card h3 {
	font-family: var(--at-display) !important;
	font-size: 1.25rem !important;
	font-weight: 600 !important;
	margin: 0 0 0.65rem !important;
	color: var(--at-head) !important;
}
.at-chart-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	background: #fffdfb;
	border: 1px solid var(--at-line);
	border-radius: 12px;
	overflow: hidden;
}
.at-chart-table td {
	border: 1px solid var(--at-line);
	width: 25%;
	height: 88px;
	vertical-align: top;
	padding: 0;
	background: #fff;
}
.at-chart-center {
	text-align: center !important;
	vertical-align: middle !important;
	background: linear-gradient(180deg, #efe4d8 0%, #e8d9c9 100%) !important;
}
.at-chart-center span {
	font-family: var(--at-display);
	font-weight: 600;
	color: var(--at-accent);
	font-size: 1.05rem;
}
.at-chart-cell {
	position: relative;
	min-height: 88px;
	padding: 1.35rem 0.35rem 0.35rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
}
.at-chart-house {
	position: absolute;
	top: 4px;
	left: 6px;
	font-size: 0.68rem;
	font-weight: 700;
	color: var(--at-gold);
}
.at-chart-planet {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--at-ink);
	line-height: 1.2;
	text-align: center;
}
@media (max-width: 900px) {
	.at-charts { grid-template-columns: 1fr; }
	.at-chart-table td,
	.at-chart-cell { height: auto; min-height: 72px; }
}
.at-empty {
	border: 1px dashed var(--at-line); border-radius: var(--at-radius); padding: 2.25rem 1.1rem;
	text-align: center; color: var(--at-muted); background: var(--at-surface);
}

.at-band {
	background: linear-gradient(135deg, #3a1f24 0%, #5a2a34 55%, #3a1f24 100%);
	color: #fff8f0; text-align: center; padding: 3rem 1.15rem;
	border-top: 3px solid var(--at-gold);
}
.at-band h2 {
	font-family: var(--at-display); font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 0.45rem; font-weight: 600;
}
.at-band p { margin: 0 0 1.2rem; color: rgba(255,248,240,0.78); }

/* Titlebar soften */
body.at-front #titlebar {
	background-color: var(--at-head) !important;
	background-image: none !important;
	min-height: 110px;
}
body.at-front #titlebar-title { color: #fff8f0 !important; font-family: var(--at-display) !important; }

/* Content pages — about / contact / magazines */
.at-page { background: #f7f1ea; color: var(--at-ink); }
.at-page-head {
	background:
		linear-gradient(135deg, rgba(58,31,36,0.96) 0%, rgba(107,36,48,0.92) 55%, rgba(58,31,36,0.96) 100%);
	color: #fff8f0;
	border-bottom: 3px solid var(--at-gold);
}
.at-page-head-inner {
	width: min(1100px, calc(100% - 2rem));
	margin: 0 auto;
	padding: 1.6rem 0 1.45rem;
}
.at-eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--at-gold-soft);
}
.at-eyebrow a { color: inherit !important; text-decoration: none !important; }
.at-eyebrow a:hover { color: #fff8f0 !important; }
.at-page-head h1 {
	font-family: var(--at-display) !important;
	font-size: clamp(1.85rem, 4vw, 2.6rem) !important;
	font-weight: 600 !important;
	margin: 0 0 0.4rem !important;
	color: #fff8f0 !important;
	line-height: 1.05 !important;
}
body.at-front .at-page-head .at-lead,
.at-page-head .at-lead {
	margin: 0 !important;
	max-width: 36rem;
	color: rgba(255,248,240,0.88) !important;
	line-height: 1.45 !important;
	font-size: 0.98rem !important;
	text-shadow: none !important;
	background: none !important;
}

.at-panel {
	background: var(--at-surface);
	border: 1px solid var(--at-line);
	border-radius: var(--at-radius);
	padding: 1.25rem 1.2rem;
}
body.at-front .at-panel h2,
body.at-front .at-panel h3,
.at-panel h2,
.at-panel h3 {
	font-family: var(--at-display) !important;
	font-weight: 600 !important;
	margin: 0 0 0.65rem !important;
	color: var(--at-head) !important;
	background: none !important;
}
body.at-front .at-panel h2,
.at-panel h2 { font-size: 1.45rem !important; }
body.at-front .at-panel h3,
.at-panel h3 { font-size: 1.2rem !important; }
.at-muted { color: var(--at-muted); margin: 0 0 0.85rem; line-height: 1.5; }

.at-about-split {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 2rem;
	align-items: start;
}
.at-about-copy h2,
.at-about-copy h3 {
	font-family: var(--at-display);
	font-weight: 600;
	color: var(--at-ink);
	margin: 1.35rem 0 0.45rem;
}
.at-about-copy h2 { margin-top: 0; font-size: 1.7rem; }
.at-about-copy h3 { font-size: 1.2rem; }
.at-about-copy p { margin: 0 0 0.75rem; color: var(--at-muted); line-height: 1.6; }
.at-list {
	margin: 0 0 0.5rem;
	padding: 0 0 0 1.1rem;
	color: var(--at-muted);
	line-height: 1.55;
}
.at-list li { margin-bottom: 0.35rem; }
.at-about-media {
	margin: 0;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--at-line);
	background: var(--at-soft);
	position: sticky;
	top: 12px;
}
.at-about-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4/5;
	object-fit: cover;
}

.at-contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
	gap: 1.15rem;
	align-items: start;
}
.at-contact-form .field { margin-bottom: 0.75rem; }
.at-contact-form label {
	display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
	color: var(--at-muted); font-weight: 700; margin-bottom: 0.3rem;
}
.at-contact-form input,
.at-contact-form textarea {
	width: 100%; border: 1px solid var(--at-line); border-radius: 8px; padding: 0.65rem 0.75rem;
	font: inherit; background: #fff; color: var(--at-ink); min-height: 42px;
}
.at-contact-form textarea { min-height: 140px; resize: vertical; }
.at-contact-form input:focus,
.at-contact-form textarea:focus {
	outline: 2px solid rgba(176,141,87,0.45);
	border-color: var(--at-gold);
}
.at-contact-aside { display: grid; gap: 1rem; }
.at-contact-lines { list-style: none; margin: 0; padding: 0; }
.at-contact-lines li {
	display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.5rem;
	padding: 0.55rem 0; border-bottom: 1px solid var(--at-line);
	font-size: 0.95rem;
}
.at-contact-lines li:last-child { border-bottom: 0; }
.at-contact-lines span { color: var(--at-muted); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 0.15rem; }
.at-contact-lines a { color: var(--at-accent) !important; text-decoration: none !important; font-weight: 600; }
.at-office p { margin: 0 0 0.25rem; color: var(--at-muted); line-height: 1.45; }
.at-map {
	display: block; width: 100%; height: 180px; border: 0; margin-top: 0.75rem;
	border-radius: 10px; background: var(--at-soft);
}
.at-flash {
	border-radius: 10px; padding: 0.9rem 1rem; margin-bottom: 1rem;
	border: 1px solid var(--at-line); background: var(--at-surface); font-weight: 600;
}
.at-flash-success { border-color: rgba(70,120,70,0.35); background: #f3faf3; color: #234623; }
.at-flash-caution { border-color: rgba(176,141,87,0.45); background: #fbf6ec; color: #5a4520; }
.at-flash-error { border-color: rgba(160,60,60,0.35); background: #fdf2f2; color: #6b2430; }

.at-mag-pdfs { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-bottom: 1.35rem; }
.at-mag-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 1rem;
}
.at-mag-card {
	display: block; text-decoration: none !important; color: inherit !important;
	background: var(--at-surface); border: 1px solid var(--at-line); border-radius: var(--at-radius);
	overflow: hidden; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.at-mag-card:hover {
	transform: translateY(-2px);
	border-color: var(--at-gold-soft);
	box-shadow: 0 10px 22px rgba(42,24,16,0.08);
}
.at-mag-cover {
	aspect-ratio: 3/4;
	background: var(--at-soft) center/cover no-repeat;
}
.at-mag-body {
	padding: 0.75rem 0.85rem 0.9rem;
	display: flex; flex-direction: column; gap: 0.15rem;
}
.at-mag-body strong {
	font-family: var(--at-display); font-size: 1.15rem; font-weight: 600; color: var(--at-ink);
}
.at-mag-body span { font-size: 0.8rem; color: var(--at-muted); }

.at-reader-toolbar {
	display: flex; align-items: center; justify-content: center; gap: 0.75rem;
	margin-bottom: 0.9rem; flex-wrap: wrap;
}
.at-reader-status { font-weight: 700; color: var(--at-muted); min-width: 4.5rem; text-align: center; }
.at-reader-stage {
	margin: 0 auto; max-width: 720px;
	background: #1f1416; border-radius: 12px; overflow: hidden;
	border: 1px solid var(--at-line);
	box-shadow: var(--at-shadow);
}
.at-reader-stage img { display: block; width: 100%; height: auto; }

/* Footer — wider about column, compact height */
body.at-front footer.ui-dark,
body.at-front .at-footer {
	background: #2a1810 !important;
}
body.at-front #footer-widgets,
body.at-front .at-footer-widgets {
	padding: 2.25rem 0 1.75rem !important;
}
body.at-front .at-footer-inner {
	width: min(1100px, calc(100% - 2rem)) !important;
	max-width: 1100px !important;
	margin: 0 auto !important;
	float: none !important;
}
body.at-front .at-footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(140px, 0.7fr) minmax(180px, 0.9fr);
	gap: 1.75rem 2rem;
	align-items: start;
}
body.at-front .at-footer-about {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 0.9rem 1rem;
	align-items: start;
}
body.at-front .at-footer-logo {
	width: 72px;
	height: auto;
	display: block;
	border-radius: 8px;
}
body.at-front .at-footer-copy p,
body.at-front .at-footer-col p {
	margin: 0 0 0.55rem;
	color: rgba(255,248,240,0.78);
	font-size: 0.92rem;
	line-height: 1.55;
}
body.at-front .at-footer-col h4 {
	margin: 0 0 0.7rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff8f0;
	font-family: var(--at-font);
}
body.at-front .at-footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
body.at-front .at-footer-col li { margin: 0 0 0.4rem; }
body.at-front .at-footer a {
	color: rgba(255,248,240,0.86) !important;
	text-decoration: none;
}
body.at-front .at-footer a:hover { color: var(--at-gold-soft) !important; }
body.at-front .at-footer-social {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin-top: 0.75rem;
	font-size: 0.9rem;
}
body.at-front .at-footer-bottom,
body.at-front #footer-bottom {
	border-top: 1px solid rgba(176,141,87,0.22);
	padding: 0.85rem 0 !important;
	background: #241418 !important;
}
body.at-front .at-footer-bottom #footer-texts,
body.at-front #footer-bottom #footer-texts {
	float: none !important;
	color: rgba(255,248,240,0.65);
	font-size: 0.85rem;
}
@media (max-width: 900px) {
	body.at-front .at-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
	body.at-front .at-footer-about {
		grid-column: 1 / -1;
		grid-template-columns: 64px minmax(0, 1fr);
	}
}
@media (max-width: 560px) {
	body.at-front .at-footer-grid { grid-template-columns: 1fr; gap: 1.35rem; }
	body.at-front #footer-widgets,
	body.at-front .at-footer-widgets { padding: 1.75rem 0 1.35rem !important; }
}

/* Responsive */
@media (max-width: 900px) {
	.at-search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.at-search .at-search-actions { grid-column: 1 / -1; }
	.at-search .at-search-actions .at-btn { width: 100%; }
	.at-browse { grid-template-columns: 1fr; }
	.at-filters { position: static; }
	.at-steps { grid-template-columns: 1fr; }
	.at-about-split { grid-template-columns: 1fr; }
	.at-about-media { position: static; max-width: 420px; }
	.at-contact-grid { grid-template-columns: 1fr; }
	.at-profile-layout { grid-template-columns: 1fr; }
	.at-profile-aside { max-width: 320px; }
	.at-fact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
	.at-stats { grid-template-columns: 1fr; }
	.at-stat { padding: 1.15rem; border-bottom: 1px solid rgba(107,36,48,0.08); }
	.at-stat:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
	.at-search-grid { grid-template-columns: 1fr; }
	.at-hero-inner { padding: 0.9rem 0 0.85rem; width: calc(100% - 1.25rem); }
	.at-cta-row .at-btn { flex: 1 1 auto; }
	.at-search .at-search-actions { justify-content: stretch; }
	.at-search .at-search-actions .at-btn { width: 100%; }
	.at-profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
	.at-card-body { padding: 0.65rem 0.7rem 0.8rem; }
	.at-card-body .age { font-size: 0.9rem; }
	.at-card-body .meta { font-size: 0.74rem; }
	body.at-front #top-bar .container { padding-left: 0.75rem; padding-right: 0.75rem; }
	body.at-front .at-header-inner { padding-left: 0.25rem; padding-right: 0.25rem; }
}

@media (max-width: 380px) {
	.at-profiles { grid-template-columns: 1fr; }
}
