/*
 * TOP UI Polish Pass v1.
 *
 * A deliberately narrow override layer for the Human-approved PR #54
 * structure. It defines the reusable portal primitives without migrating
 * legacy inner pages.
 */

body.home {
	--portal-white: #fff;
	--portal-foundation: #fff;
	--portal-ink: #17211f;
	--portal-muted: #65706a;
	--portal-red: var(--color-red);
	--portal-red-deep: var(--color-red-deep);
	--portal-rose: #fff2f3;
	--portal-rose-strong: #f9e2e5;
	--portal-blue: #edf7fb;
	--portal-blue-strong: #dfeff6;
	--portal-cream: #fff8e9;
	--portal-cream-strong: #f8ebcf;
	--portal-paper: #faf9f7;
	--portal-line: #e5e2dc;
	--portal-line-strong: #d7d3cc;
	--portal-radius-media: 4px;
	--portal-radius-card: 6px;
	--portal-radius-nav: 8px;
	--portal-section-space: clamp(72px, 7vw, 92px);
	--portal-inner-space: clamp(48px, 5vw, 68px);
}

body.home .top-wrap {
	width: min(1240px, calc(100% - 48px));
}

body.home .section {
	padding: var(--portal-section-space) 0;
}

body.home .section-kicker {
	margin-bottom: 9px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.18em;
}

body.home .section-title {
	font-size: clamp(32px, 3.7vw, 48px);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.26;
}

body.home .section-lead {
	margin-top: 12px;
	font-size: 14px;
	line-height: 1.85;
}

body.home .section-heading-row {
	align-items: flex-end;
	margin-bottom: 32px;
}

/* One action language: decision, secondary exploration, editorial link. */
body.home :is(.btn-primary, .btn-secondary, .outline-link) {
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid var(--portal-red);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.01em;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

body.home .btn-primary {
	background: var(--portal-red);
	color: var(--portal-white);
}

body.home :is(.btn-secondary, .outline-link) {
	background: var(--portal-white);
	color: var(--portal-red-deep);
}

body.home :is(.btn-primary, .btn-secondary, .outline-link):hover {
	transform: translateY(-1px);
}

body.home .btn-secondary:hover,
body.home .outline-link:hover {
	background: var(--portal-rose);
	border-color: var(--portal-red-deep);
}

body.home .text-arrow-link {
	gap: 9px;
	padding: 4px 0 5px;
	border-bottom: 1px solid color-mix(in srgb, currentColor 45%, transparent);
	font-size: 12px;
	font-weight: 700;
	transition: color 160ms ease, gap 160ms ease;
}

body.home .text-arrow-link:hover {
	gap: 13px;
	color: var(--portal-red-deep);
}

/* Header stays quiet so the landscape receives the first visual beat. */
body.home .site-header {
	min-height: 72px;
	padding: 8px 22px;
	gap: 14px;
	border-bottom: 1px solid var(--portal-line);
}

body.home .portal-flower-mark {
	width: 40px;
	height: 40px;
}

body.home .portal-logo-text strong {
	font-size: 15px;
	font-weight: 800;
}

body.home .operator-brand {
	gap: 7px;
	padding-left: 14px;
}

body.home .operator-flower-mark {
	width: 28px;
	height: 28px;
}

body.home .site-header .main-nav {
	gap: clamp(12px, 1.45vw, 22px);
}

body.home .site-header .main-nav a {
	padding: 22px 0 19px;
	font-size: 10px;
	font-weight: 600;
}

body.home .header-search {
	position: relative;
	display: grid;
	width: 36px;
	height: 36px;
	flex: 0 0 auto;
	place-items: center;
	border-radius: 50%;
	color: var(--portal-ink);
	text-decoration: none;
}

body.home .header-search span {
	position: relative;
	display: block;
	width: 14px;
	height: 14px;
	border: 1.5px solid currentColor;
	border-radius: 50%;
}

body.home .header-search span::after {
	content: "";
	position: absolute;
	right: -5px;
	bottom: -3px;
	width: 6px;
	height: 1.5px;
	background: currentColor;
	transform: rotate(45deg);
}

body.home .header-search:hover {
	background: var(--portal-paper);
	color: var(--portal-red);
}

body.home .header-contact {
	min-height: 40px;
	padding: 9px 14px;
	border-radius: 999px;
	font-size: 10px;
}

/* Hero media may be nearly sharp; interactive elements remain soft. */
body.home .hero,
body.home .hero-text {
	min-height: 560px;
}

body.home .hero-text {
	padding-block: 58px;
}

body.home .hero-copy-l {
	font-size: clamp(50px, 5.4vw, 74px);
	font-weight: 800;
	line-height: 1.24;
}

body.home .hero-copy-s {
	margin-top: 18px;
	font-size: 15px;
}

body.home .hero-placeholder-note {
	border-radius: 3px;
}

body.home .hero-actions {
	margin-top: 24px;
}

body.home .hero-side-copy {
	top: 76px;
}

/* Navigation cards: shared border, radius, arrow and restrained motion. */
body.home .top-entrances {
	padding: 24px 0 40px;
}

body.home .entrance-grid {
	gap: 18px;
}

body.home .entrance-card {
	height: 150px;
	border: 1px solid var(--portal-line);
	border-radius: var(--portal-radius-nav);
	transition: border-color 160ms ease, transform 160ms ease;
}

body.home .entrance-card:hover {
	border-color: var(--portal-line-strong);
	transform: translateY(-2px);
}

body.home .entrance-panel {
	left: 8px;
	right: 8px;
	bottom: 8px;
	min-height: 64px;
	padding: 9px 10px;
	border-top: 0;
	border-left: 3px solid var(--entrance-accent, var(--portal-red));
	border-radius: var(--portal-radius-card);
}

body.home .entrance-symbol {
	width: 36px;
	height: 36px;
	font-size: 18px;
}

body.home .entrance-arrow {
	width: 24px;
	height: 24px;
	font-size: 12px;
	transition: transform 160ms ease;
}

body.home .entrance-card:hover .entrance-arrow {
	transform: translateX(2px);
}

/* People / Local Voices owns rose; cards read as people-led editorial links. */
body.home .top-voices {
	padding: var(--portal-section-space) 0;
	background: var(--portal-rose);
	border-color: #f1dadd;
}

body.home .top-voices .outline-link {
	min-height: 40px;
	padding: 8px 17px;
}

body.home .voice-grid {
	gap: 20px;
}

body.home .voice-card {
	position: relative;
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	background: var(--portal-white);
	border: 1px solid var(--portal-line);
	border-bottom: 1px solid var(--portal-line);
	border-radius: var(--portal-radius-card);
	color: var(--portal-ink);
	text-decoration: none;
}

body.home .voice-card--linked {
	transition: border-color 160ms ease, transform 160ms ease;
}

body.home .voice-card--linked:hover {
	border-color: #e0aab3;
	transform: translateY(-2px);
}

body.home .voice-photo {
	aspect-ratio: 4 / 3;
}

body.home .voice-card-copy {
	display: flex;
	min-height: 190px;
	flex: 1;
	flex-direction: column;
	padding: 14px 15px 15px;
}

body.home .voice-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

body.home .voice-card-copy time {
	float: none;
}

body.home .voice-tag,
body.home .preparing-badge,
body.home .voice-photo-pending {
	border-radius: 999px;
}

body.home .voice-tag {
	background: #ffe171;
	color: #55420b;
}

body.home .voice-card h3 {
	display: -webkit-box;
	min-height: 3em;
	margin: 10px 0 7px;
	overflow: hidden;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

body.home .voice-card-copy p {
	display: -webkit-box;
	overflow: hidden;
	font-size: 10px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

body.home .voice-byline {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	padding-top: 13px;
	color: var(--portal-muted);
	font-size: 9px;
	font-weight: 600;
}

body.home .voice-avatar {
	position: relative;
	display: block;
	width: 26px;
	height: 26px;
	flex: 0 0 auto;
	border: 1px solid #e4b8c0;
	border-radius: 50%;
	background: var(--portal-rose);
}

body.home .voice-avatar::before,
body.home .voice-avatar::after {
	content: "";
	position: absolute;
	left: 50%;
	border-radius: 50%;
	background: #d8939f;
	transform: translateX(-50%);
}

body.home .voice-avatar::before {
	top: 5px;
	width: 7px;
	height: 7px;
}

body.home .voice-avatar::after {
	bottom: 4px;
	width: 13px;
	height: 7px;
	border-radius: 8px 8px 5px 5px;
}

body.home .voice-card-arrow {
	margin-left: auto;
	color: var(--portal-red);
	font-size: 15px;
}

/* Travel owns blue and uses a compact, scannable related rail. */
body.home .top-travel {
	padding: var(--portal-section-space) 0;
	background: var(--portal-blue);
}

body.home .travel-feature {
	grid-template-columns: minmax(0, 50fr) minmax(280px, 29fr) minmax(220px, 21fr);
	width: min(1240px, calc(100% - 48px));
	min-height: 350px;
}

body.home .travel-hero-media {
	min-height: 350px;
	border-radius: var(--portal-radius-media);
}

body.home .travel-copy {
	padding: 36px clamp(24px, 3vw, 42px);
	border-top: 0;
}

body.home .travel-copy .section-title {
	font-size: clamp(32px, 3.2vw, 40px);
}

body.home .travel-copy > p:not(.section-kicker) {
	margin-bottom: 18px;
}

body.home .travel-link-list {
	gap: 7px;
	padding: 20px 0;
}

body.home .travel-link-list a {
	grid-template-columns: 66px minmax(0, 1fr) auto;
	min-height: 66px;
	padding: 6px 9px 6px 6px;
	border: 1px solid var(--portal-line);
	border-left: 1px solid var(--portal-line);
	border-radius: var(--portal-radius-card);
	transition: border-color 160ms ease, transform 160ms ease;
}

body.home .travel-link-list a:hover {
	border-color: #9fc9db;
	transform: translateX(2px);
}

body.home .travel-link-list .media-frame,
body.home .travel-link-list img {
	width: 66px;
	height: 52px;
	border-radius: 3px;
}

/* Products owns warm cream and distinguishes commerce from editorial context. */
body.home .top-products {
	padding: var(--portal-section-space) 0;
	background: var(--portal-cream);
	border-color: #eee1c5;
}

body.home .product-feature {
	grid-template-columns: minmax(250px, 29fr) minmax(350px, 43fr) minmax(240px, 28fr);
	min-height: 350px;
}

body.home .product-intro {
	padding: 28px 34px 28px 0;
	border-top: 0;
}

body.home .product-intro .btn-secondary {
	margin-top: 0;
}

body.home .product-main-media {
	min-height: 350px;
	border-radius: var(--portal-radius-media);
}

body.home .product-main-caption {
	padding: 16px 18px;
	background: rgb(23 33 31 / 76%);
}

body.home .product-link-list {
	gap: 8px;
	padding: 22px 0 22px 14px;
}

body.home .product-related {
	grid-template-columns: 68px minmax(0, 1fr) auto;
	min-height: 72px;
	padding: 6px 9px 6px 6px;
	border: 1px solid var(--portal-line);
	border-left: 3px solid #dcb45e;
	border-radius: var(--portal-radius-card);
}

body.home .product-related--producer {
	border-left-color: var(--portal-red);
}

body.home .product-related .media-frame,
body.home .product-related img {
	width: 68px;
	height: 56px;
	border-radius: 3px;
}

/* Study owns cream; Hire owns blue. Both keep their own content grammar. */
body.home .top-connections {
	background: var(--portal-white);
}

body.home .connection-feature {
	grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
	width: 100%;
	max-width: none;
	min-height: 360px;
	padding: var(--portal-section-space) max(24px, calc((100% - 1240px) / 2));
	background: var(--portal-cream);
}

body.home .connection-feature--hire {
	grid-template-columns: minmax(0, 53fr) minmax(0, 47fr);
	background: var(--portal-blue);
}

body.home .connection-main-photo,
body.home .connection-main-photo .media-frame,
body.home .connection-main-photo img {
	min-height: 360px;
	border-radius: var(--portal-radius-media);
}

body.home .connection-body {
	padding: 38px clamp(28px, 5vw, 64px);
	border-top: 0;
}

body.home .connection-body > h3 {
	font-size: clamp(32px, 3.6vw, 46px);
}

body.home .connection-mini-grid {
	gap: 12px;
	margin-bottom: 18px;
}

body.home .connection-mini-grid a {
	overflow: hidden;
	border-color: var(--portal-line);
	border-radius: var(--portal-radius-card);
	transition: border-color 160ms ease, transform 160ms ease;
}

body.home .connection-mini-grid a:hover {
	border-color: #d4b76f;
	transform: translateY(-1px);
}

body.home .connection-info-list {
	margin-bottom: 18px;
}

/* Foundation remains a light evidence rail, not another corporate landing page. */
body.home .top-initiatives {
	padding: var(--portal-section-space) 0;
	background: var(--portal-foundation);
}

body.home .trust-layout {
	grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.18fr);
	gap: clamp(42px, 6vw, 76px);
}

body.home .trust-brand {
	padding: 0;
	background: transparent;
	border-top: 0;
}

body.home .foundation-logo {
	width: min(100%, 150px);
	margin: 0 0 16px;
}

body.home .trust-media-slot {
	display: flex;
	min-height: 126px;
	margin-top: 20px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	border: 1px solid var(--portal-line);
	border-radius: var(--portal-radius-media);
	background: var(--portal-paper);
	color: var(--portal-muted);
	font-size: 10px;
}

body.home .trust-media-slot strong {
	color: var(--portal-ink);
	font-size: 12px;
}

body.home .trust-facts {
	margin-top: 24px;
	border-top-color: var(--portal-line-strong);
}

body.home .trust-activities {
	margin: 20px 0;
}

body.home .trust-activities li {
	padding: 12px 0;
}

/* Contact reuses People/relationship rose; Primary is reserved for this decision. */
body.home .final-cta {
	padding: 58px 0;
	background: var(--portal-rose-strong);
}

/* Portal-first footer with a lighter information rail. */
body.home .site-footer {
	padding: 36px 24px 18px;
}

body.home .footer-portal-brand,
body.home .footer-cols,
body.home .footer-bottom {
	width: min(1240px, 100%);
	margin-inline: auto;
}

body.home .footer-portal-brand {
	display: flex;
	align-items: baseline;
	gap: 18px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--portal-line);
}

body.home .footer-portal-brand strong {
	font-size: 17px;
	font-weight: 800;
}

body.home .footer-portal-brand span {
	color: var(--portal-muted);
	font-size: 11px;
}

body.home .footer-cols {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 24px;
	padding-top: 22px;
}

body.home .site-footer .footer-col-title {
	margin-bottom: 8px;
	padding: 0;
	border: 0;
	font-size: 11px;
}

body.home .site-footer .footer-col a {
	margin-bottom: 4px;
	font-size: 10px;
	line-height: 1.5;
}

body.home .site-footer .footer-bottom {
	margin-top: 18px;
	padding-top: 14px;
	text-align: left;
}

body.home :is(.header-search, .voice-card--linked, .product-related):focus-visible {
	outline: 2px solid var(--portal-red);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	body.home :is(.btn-primary, .btn-secondary, .outline-link, .text-arrow-link, .entrance-card, .entrance-arrow, .voice-card--linked, .travel-link-list a, .connection-mini-grid a) {
		transition: none;
	}
}

@media (max-width: 1100px) {
	body.home .operator-brand {
		display: none;
	}

	body.home .travel-feature {
		grid-template-columns: minmax(0, 56fr) minmax(290px, 44fr);
	}

	body.home .travel-link-list {
		grid-column: 1 / -1;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		padding: 16px 0 0;
	}

	body.home .travel-link-list a {
		grid-template-columns: 54px minmax(0, 1fr) auto;
	}

	body.home .travel-link-list .media-frame,
	body.home .travel-link-list img {
		width: 54px;
	}
}

@media (max-width: 900px) {
	body.home {
		--portal-section-space: 60px;
		--portal-inner-space: 48px;
	}

	body.home .top-wrap,
	body.home .travel-feature {
		width: min(680px, calc(100% - 32px));
	}

	body.home .header-search,
	body.home .header-contact {
		display: none;
	}

	body.home .operator-brand {
		display: flex;
		margin-left: auto;
		padding-left: 0;
		border-left: 0;
	}

	body.home .travel-feature,
	body.home .product-feature,
	body.home .connection-feature,
	body.home .connection-feature--hire,
	body.home .trust-layout {
		grid-template-columns: 1fr;
	}

	body.home .travel-link-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.home .product-link-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	body.home .connection-feature--hire .connection-body {
		order: 2;
	}

	body.home .connection-feature--hire .connection-main-photo {
		order: 1;
	}

	body.home .footer-cols {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	body.home {
		--portal-section-space: 52px;
	}

	body.home .top-wrap,
	body.home .travel-feature {
		width: calc(100% - 32px);
	}

	body.home .site-header {
		min-height: 60px;
		padding: 7px 12px;
	}

	body.home .portal-flower-mark {
		width: 34px;
		height: 34px;
	}

	body.home .hero,
	body.home .hero-text {
		min-height: 500px;
	}

	body.home .hero-text {
		padding-block: 30px;
	}

	body.home .hero-copy-l {
		font-size: 40px;
	}

	body.home .hero-copy-s {
		font-size: 13px;
		line-height: 1.75;
	}

	body.home .hero-actions {
		gap: 8px;
	}

	body.home .hero-actions :is(.btn-primary, .btn-secondary) {
		min-height: 42px;
		padding: 9px 13px;
		font-size: 10px;
	}

	body.home .top-entrances {
		padding: 14px 0 24px;
	}

	body.home .entrance-grid {
		gap: 12px;
	}

	body.home .entrance-card {
		height: 150px;
	}

	body.home .entrance-panel {
		left: 5px;
		right: 5px;
		bottom: 5px;
		min-height: 58px;
		padding: 7px 8px;
	}

	body.home .entrance-copy strong {
		font-size: 12px;
	}

	body.home .entrance-copy small {
		font-size: 8px;
	}

	body.home .section-heading-row {
		gap: 16px;
		margin-bottom: 24px;
	}

	body.home .section-title {
		font-size: 28px;
	}

	body.home .voice-grid {
		gap: 12px;
	}

	body.home .voice-grid .voice-card:nth-child(n + 3) {
		display: none;
	}

	body.home .voice-photo {
		aspect-ratio: 4 / 3;
	}

	body.home .voice-card-copy {
		min-height: 172px;
		padding: 10px 10px 11px;
	}

	body.home .voice-card h3 {
		font-size: 13px;
	}

	body.home .voice-card-copy p {
		display: none;
	}

	body.home .voice-byline {
		align-items: flex-start;
		font-size: 8px;
		line-height: 1.4;
	}

	body.home .voice-avatar {
		width: 22px;
		height: 22px;
	}

	body.home .voice-evidence-note {
		margin-top: 14px;
	}

	body.home .travel-hero-media {
		min-height: 270px;
	}

	body.home .travel-copy {
		padding: 34px 12px 28px;
	}

	body.home .travel-link-list {
		grid-template-columns: 1fr;
		gap: 8px;
		padding-top: 12px;
	}

	body.home .travel-link-list a {
		min-height: 58px;
	}

	body.home .travel-link-list .media-frame,
	body.home .travel-link-list img {
		height: 46px;
	}

	body.home .top-products .product-feature {
		width: calc(100% - 32px);
	}

	body.home .product-intro {
		padding: 0 0 26px;
	}

	body.home .product-main-media {
		min-height: 286px;
	}

	body.home .product-link-list {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 12px 0 0;
	}

	body.home .product-related {
		min-height: 64px;
	}

	body.home .connection-feature {
		min-height: 0;
		padding: var(--portal-section-space) 16px;
	}

	body.home .connection-main-photo,
	body.home .connection-main-photo .media-frame,
	body.home .connection-main-photo img {
		min-height: 270px;
	}

	body.home .connection-body {
		padding: 32px 12px 0;
	}

	body.home .connection-feature--hire .connection-body {
		padding-bottom: 0;
	}

	body.home .connection-body > h3 {
		font-size: 29px;
	}

	body.home .connection-body > p:not(.section-kicker, .connection-catch) {
		margin-bottom: 18px;
	}

	body.home .connection-mini-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	body.home .connection-mini-grid a {
		grid-template-columns: 1fr;
		gap: 0;
	}

	body.home .connection-mini-grid :is(.media-frame, img) {
		width: 100%;
		height: 86px;
	}

	body.home .connection-mini-grid strong {
		padding: 8px;
	}

	body.home .trust-layout {
		gap: 30px;
	}

	body.home .trust-media-slot {
		display: none;
	}

	body.home .trust-activities li:nth-child(n + 4) {
		display: none;
	}

	body.home .final-cta {
		padding: 48px 0;
	}

	body.home .footer-portal-brand {
		display: grid;
		gap: 5px;
	}

	body.home .footer-cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 16px;
	}

	body.home .site-footer .footer-col a:not(:first-of-type) {
		display: none;
	}
}
