/* ─────────────────────────────────────────────────────────────────────────
   WETRIPER — Shared inner-page styles
   Archive pages, guides directory, author profiles, auth pages.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Page hero ─────────────────────────────────────────────────────────── */
.page-hero,
.public-page-hero,
.c-page-hero {
	padding: var(--sp-9) 0 var(--sp-7);
	border-bottom: 1px solid var(--c-line);
	margin-bottom: var(--sp-7);
}

.page-hero .eyebrow { margin-bottom: var(--sp-3); }

.page-hero h1 {
	font-size: var(--text-4xl);
	font-weight: 700;
	letter-spacing: -0.05em;
	line-height: 0.95;
	max-width: 22ch;
	margin-bottom: var(--sp-4);
}

.page-hero p {
	font-size: var(--text-lg);
	color: var(--c-muted);
	max-width: 52ch;
}

/* ── Guides directory ───────────────────────────────────────────────────── */
.guides-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--sp-5);
}

/* ── Author / guide profile page ────────────────────────────────────────── */
.guide-profile {
	padding-bottom: var(--sp-10);
}

.guide-profile__header {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-7);
	padding: var(--sp-8) 0 var(--sp-7);
	border-bottom: 1px solid var(--c-line);
	margin-bottom: var(--sp-7);
}

.guide-profile__avatar {
	width: 120px;
	height: 120px;
	border-radius: var(--r-pill);
	overflow: hidden;
	flex-shrink: 0;
}

.guide-profile__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.guide-profile__info {
	display: grid;
	gap: var(--sp-4);
	align-content: start;
}

.guide-profile__name {
	font-size: var(--text-4xl);
	font-weight: 700;
	letter-spacing: -0.05em;
	line-height: 0.95;
}

.guide-profile__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
}

.guide-profile__bio {
	font-size: var(--text-base);
	color: var(--c-muted);
	max-width: 56ch;
	line-height: 1.7;
}

.guide-profile__tours {
	display: grid;
	gap: var(--sp-6);
}

.guide-profile__tours-heading {
	font-size: var(--text-2xl);
	font-weight: 700;
	letter-spacing: -0.04em;
}

/* ── Auth pages ─────────────────────────────────────────────────────────── */
.auth-wrap {
	display: grid;
	place-items: center;
	min-height: calc(100dvh - var(--header-h));
	padding: 10px;
}


.auth-card {
	width: min(480px, 100%);
	padding: var(--sp-7);
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-xl);
	display: grid;
	gap: var(--sp-5);
}

.auth-card h1 {
	font-size: var(--text-3xl);
	font-weight: 700;
	letter-spacing: -0.05em;
}

.auth-card .catm-form { gap: var(--sp-5); }

.auth-error {
	color: #991B1B;
	font-size: var(--text-sm);
	font-weight: 500;
	padding: var(--sp-3) var(--sp-4);
	background: #FEF2F2;
	border: 1px solid #FECACA;
	border-radius: var(--r-md);
}
[data-theme="dark"] .auth-error {
	background: #2d0c0c;
	color: #fca5a5;
	border-color: #991b1b;
}

.auth-card__footer {
	text-align: center;
	font-size: var(--text-sm);
	color: var(--c-muted);
	padding-top: var(--sp-2);
}

.auth-card__footer a {
	color: var(--c-accent);
	font-weight: 600;
}

.auth-card__subtitle {
	color: var(--c-muted);
	font-size: var(--text-base);
	margin-top: var(--sp-3);
}

/* Role selector (register page) */
.role-selector {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sp-3);
}

.role-option {
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
	padding: var(--sp-4);
	border: 2px solid var(--c-line);
	border-radius: var(--r-md);
	cursor: pointer;
	transition: border-color 150ms, background 150ms;
}

.role-option:has(input:checked) {
	border-color: var(--c-accent);
	background: var(--c-accent-bg);
}

.role-option input { display: none; }

.role-option__title {
	font-weight: 600;
	font-size: var(--text-sm);
	color: var(--c-ink);
}

.role-option__desc {
	font-size: var(--text-xs);
	color: var(--c-muted);
	line-height: 1.5;
}

/* Verify email page */
.verify-wrap {
	display: grid;
	place-items: center;
	min-height: calc(100dvh - var(--header-h));
	text-align: center;
	padding-block: var(--sp-8);
}

.verify-card {
	max-width: 440px;
	width: 100%;
	padding: var(--sp-8);
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-xl);
	display: grid;
	gap: var(--sp-5);
}

.verify-card h1 { font-size: var(--text-2xl); }

.verify-code-input {
	font-size: var(--text-3xl);
	font-weight: 700;
	letter-spacing: 0.3em;
	text-align: center;
}

/* ── Tax archive (tour_country) ─────────────────────────────────────────── */
.taxonomy-hero {
	padding: var(--sp-8) 0 var(--sp-6);
	border-bottom: 1px solid var(--c-line);
	margin-bottom: var(--sp-7);
}

.taxonomy-hero h1 { font-size: var(--text-4xl); }
.taxonomy-hero p  { color: var(--c-muted); max-width: 52ch; margin-top: var(--sp-4); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.guides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.guide-profile__header {
		flex-direction: column;
		gap: var(--sp-5);
	}
}

@media (max-width: 600px) {
	.guides-grid { grid-template-columns: 1fr; }

	.auth-card { padding: var(--sp-5); }

	.role-selector { grid-template-columns: 1fr; }
}

/* ── Archive hero (full-width tinted banner, replaces .page-hero on archives) */
.archive-hero {
	background: var(--c-surface-2);
	border-bottom: 1px solid var(--c-line);
	margin-bottom: var(--sp-7);
}

/* Two-column layout: badge+heading left, description right */
.archive-hero .shell {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: end;
	gap: var(--sp-10);
	padding-block: var(--sp-8) var(--sp-8);
}

/* Left column wrapper: eyebrow + h1 stacked */
.archive-hero__left {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sp-4);
}

.archive-hero h1 {
	font-size: var(--text-3xl);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

/* Right column: description aligned to the bottom of the h1 */
.archive-hero__desc {
	font-size: var(--text-base);
	color: var(--c-muted);
	line-height: 1.65;
	max-width: 44ch;
}

.archive-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	margin-top: var(--sp-2);
}

/* Archive shell — wrapper for filters + results grid */
.archive-shell {
	display: grid;
	gap: var(--sp-7);
	padding-block: var(--sp-2) var(--sp-10);
}

/* ── Country taxonomy — stats bar ─────────────────────────────────────────── */
.country-stats-bar {
	display: flex;
	gap: var(--sp-8);
	padding-block: var(--sp-6);
	border-bottom: 1px solid var(--c-line);
	margin-bottom: var(--sp-2);
}

.country-stat {
	display: grid;
	gap: var(--sp-1);
}

.country-stat strong {
	font-size: var(--text-4xl);
	font-weight: 700;
	letter-spacing: -0.05em;
	line-height: 1;
	color: var(--c-ink);
}

.country-stat span {
	font-size: var(--text-sm);
	color: var(--c-muted);
}

/* ── Guide profile enhancements ──────────────────────────────────────────── */
.guide-profile__cover {
	width: 100%;
	height: 260px;
	overflow: hidden;
}

.guide-profile__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Meta pill badges (location, languages, experience) */
.guide-profile__meta span {
	display: inline-flex;
	align-items: center;
	padding: 0.3rem 0.75rem;
	background: var(--c-surface-2);
	border-radius: var(--r-pill);
	font-size: var(--text-sm);
	font-weight: 500;
	color: var(--c-ink-2);
}

/* Guides directory — inner-page slider spacing */
.guides-directory .editorial-section {
	padding-block: var(--sp-8) var(--sp-10);
}

/* ── Inner-page editorial section vertical rhythm ─────────────────────────── */
.inner-sections .editorial-section + .editorial-section,
.country-page .editorial-section + .editorial-section {
	padding-top: 0;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	/* Stack two-column hero to single column */
	.archive-hero .shell { grid-template-columns: 1fr; gap: var(--sp-5); padding-block: var(--sp-8) var(--sp-6); }
	.country-stats-bar { gap: var(--sp-5); flex-wrap: wrap; }
	.country-stat { width: calc(50% - var(--sp-3)); }
	.guide-profile__cover { height: 180px; }
}

@media (max-width: 640px) {
	.archive-hero .shell { padding-block: var(--sp-7) var(--sp-5); }
	.archive-hero { margin-bottom: var(--sp-4); }
	.country-stats-bar { gap: var(--sp-4); }
	.country-stat { width: calc(50% - var(--sp-2)); }
}

