/*
 * Brand values pulled from the live site's Customizer output (captured in
 * the SiteSucker mirror's inline style block): near-black chrome
 * #101010/#050505, Rubik headings + Open Sans body. The original accent
 * (#23acdd/#1285ae) has been swapped for a light grey per request.
 * Layout, spacing, and component styling are modernized rather than
 * pixel-matched to the legacy Divi/Secondline markup.
 */
:root {
	--sfe-color-text: #1a1a1a;
	--sfe-color-bg: #ffffff;
	--sfe-color-bg-alt: #f7f7f8;
	--sfe-color-accent: #9aa0a8;
	--sfe-color-accent-dark: #70747a;
	--sfe-color-ink: #101010;
	--sfe-color-ink-soft: #282828;
	--sfe-color-muted: #6b6b6b;
	--sfe-color-border: #e2e2e2;
	--sfe-font-heading: 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--sfe-font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--sfe-container-width: 1140px;
	--sfe-radius: 14px;
	--sfe-radius-lg: 24px;
	--sfe-radius-pill: 999px;
	--sfe-glass-bg: rgba(12, 14, 20, 0.6);
	--sfe-glass-border: rgba(255, 255, 255, 0.09);
	--sfe-glass-blur: blur(18px) saturate(160%);
	--sfe-shadow-float: 0 14px 34px rgba(5, 8, 14, 0.35);
	--sfe-shadow-float-lg: 0 20px 48px rgba(5, 8, 14, 0.45);
	--sfe-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Striving for Eternity section: swap the shared accent color to gold.
   Every component that reads var(--sfe-color-accent) — buttons, headings,
   the section-switcher indicator, nav "pop" pills, hover states — picks
   this up automatically, so the whole section reskins from this one rule. */
.sfe-section-sfe {
	--sfe-color-accent: #c9a24d;
	--sfe-color-accent-dark: #a3801f;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	/* Belt-and-suspenders for the viewport meta's user-scalable=no: iOS
	   Safari 10+ deliberately ignores that restriction for accessibility,
	   so pinch/double-tap zoom can still fire despite it. touch-action
	   holds even when the meta tag is overridden — pan-x/pan-y allows
	   normal scrolling while excluding both zoom gestures. */
	touch-action: pan-x pan-y;
}

body {
	margin: 0;
	font-family: var(--sfe-font-body);
	color: var(--sfe-color-text);
	background: var(--sfe-color-bg);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

/* Locks the page behind the open mobile nav menu — position:fixed rather
   than just overflow:hidden, since iOS Safari still allows background
   touch-scrolling with overflow:hidden alone. sfeInitMobileNav() sets
   top to the negative scroll offset so the page doesn't visibly jump. */
body.sfe-nav-open {
	position: fixed;
	left: 0;
	right: 0;
	width: 100%;
	overflow: hidden;
}

::selection {
	background: var(--sfe-color-accent);
	color: #fff;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--sfe-font-heading);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 0.6em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }

p {
	margin: 0 0 1.2em;
}

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

/* iOS Safari auto-zooms the page on focus for any text input under 16px —
   keep every text-entry field at 16px so tapping into a search box or form
   field never triggers that zoom. */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
textarea,
select {
	font-size: 16px;
}

a {
	color: var(--sfe-color-accent);
	text-decoration: none;
}

a:hover {
	color: var(--sfe-color-accent-dark);
}

.sfe-container {
	max-width: var(--sfe-container-width);
	margin: 0 auto;
	padding: 0 24px;
}

/* Global button style — shared everywhere a button/CTA appears, matching
   the pill-shaped, uppercase-bold look established by the header/switcher. */

.sfe-btn,
.sfe-form__submit button,
.sfe-episode-search button,
.sfe-home-cta__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 30px;
	border-radius: var(--sfe-radius-pill);
	border: 1px solid transparent;
	background: var(--sfe-color-ink);
	color: #fff;
	font-family: var(--sfe-font-heading);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.25s var(--sfe-ease), color 0.25s var(--sfe-ease), transform 0.25s var(--sfe-ease), box-shadow 0.25s var(--sfe-ease);
}

.sfe-btn:hover,
.sfe-form__submit button:hover,
.sfe-episode-search button:hover,
.sfe-home-cta__button:hover {
	background: var(--sfe-color-accent);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: var(--sfe-shadow-float);
}

.sfe-btn svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	transition: transform 0.25s var(--sfe-ease);
}

.sfe-btn:hover svg {
	transform: translateX(3px);
}

/* Fixed topbar (section switcher + section header float together, on top of the hero) */

:root {
	--sfe-topbar-h: 172px;
}

.sfe-topbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	padding-top: 10px;
}

.sfe-topbar::before {
	content: "";
	position: fixed;
	inset: 0 0 auto 0;
	height: var(--sfe-topbar-h);
	background: radial-gradient(60% 100% at 50% 0%, rgba(154, 160, 168, 0.16), transparent 70%);
	z-index: -1;
	pointer-events: none;
}


/* Reserve space for the fixed topbar on ordinary content ... */
.sfe-site-content {
	min-height: 40vh;
	padding-top: var(--sfe-topbar-h);
}

/* ...but let hero banners bleed to the very top and sit *under* the
   transparent topbar. The page/show hero banners size themselves from
   padding, so padding-top both reveals background behind the topbar and
   pushes their title text clear of it. The slider's image fills a
   fixed-height track absolutely, so it only needs pulling up flush —
   adding padding there would just open a gap above the image. */
.sfe-site-content > .sfe-hero-slider,
.sfe-site-content > .sfe-page-hero,
.sfe-site-content > .sfe-show-hero,
.sfe-site-content > .sfe-member-hero {
	margin-top: calc(-1 * var(--sfe-topbar-h));
}

.sfe-site-content > .sfe-page-hero,
.sfe-site-content > .sfe-show-hero,
.sfe-site-content > .sfe-member-hero {
	padding-top: var(--sfe-topbar-h);
}

.sfe-article {
	padding: 56px 0;
}


.sfe-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 20px;
	max-width: 760px;
	margin: 0 auto 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--sfe-color-border);
}

.sfe-article__byline {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sfe-article__byline img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

.sfe-article__byline-text {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
}

.sfe-article__byline-label {
	font-size: 11px;
	color: var(--sfe-color-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.sfe-article__byline-name {
	font-family: var(--sfe-font-heading);
	font-weight: 700;
	color: var(--sfe-color-text);
}

.sfe-article__meta-date {
	color: var(--sfe-color-muted);
	font-size: 14px;
}

.sfe-article__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sfe-article__category {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 6px 14px;
	border-radius: var(--sfe-radius-pill);
	background: var(--sfe-color-bg-alt);
	color: var(--sfe-color-accent-dark);
}

.sfe-article__content {
	max-width: 760px;
	margin: 0 auto;
	font-size: 1.05rem;
	background: var(--sfe-color-bg-alt);
	border: 1px solid var(--sfe-color-border);
	border-radius: var(--sfe-radius-lg);
	padding: 44px 52px;
	box-shadow: var(--sfe-shadow-float);
}

.sfe-article__content > *:last-child {
	margin-bottom: 0;
}

.sfe-article__content ul {
	padding-left: 1.4em;
}

.sfe-article__content a {
	color: var(--sfe-color-accent-dark);
	text-decoration: underline;
	text-decoration-color: var(--sfe-color-accent);
	text-underline-offset: 3px;
}

.sfe-article__content a:hover {
	color: var(--sfe-color-accent-dark);
	text-decoration-color: var(--sfe-color-accent-dark);
}

.sfe-article__content blockquote {
	margin: 1.6em 0;
	padding: 6px 26px;
	border-left: 4px solid var(--sfe-color-accent);
	font-style: italic;
	color: var(--sfe-color-ink-soft);
}

.sfe-article__content blockquote p:last-child {
	margin-bottom: 0;
}

.sfe-article__content img {
	border-radius: var(--sfe-radius);
	box-shadow: var(--sfe-shadow-float);
	margin: 1.6em auto;
}

.sfe-article__content figure {
	margin: 1.6em 0;
}

.sfe-article__content figcaption {
	font-size: 0.85em;
	color: var(--sfe-color-muted);
	text-align: center;
	margin-top: 0.6em;
}

@media (max-width: 600px) {
	.sfe-article__content {
		padding: 30px 24px;
	}

	.sfe-article__meta {
		gap: 14px;
	}
}

@media (max-width: 600px) {
	h1 { font-size: 1.9rem; }
	h2 { font-size: 1.4rem; }
	h3 { font-size: 1.15rem; }

	.sfe-container {
		padding: 0 18px;
	}

	.sfe-article {
		padding: 36px 0;
	}
}

/* Site-wide "back to top" button — fixed bottom-right, fades in once the
   page has scrolled past the fold (see sfeInitBackToTop in main.js). */

.sfe-back-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 500;
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 50%;
	background: var(--sfe-color-ink);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
	transition: opacity 0.25s var(--sfe-ease), transform 0.25s var(--sfe-ease), background-color 0.2s ease;
}

.sfe-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.sfe-back-to-top:hover {
	background: var(--sfe-color-accent);
}

.sfe-back-to-top svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

@media (max-width: 600px) {
	.sfe-back-to-top {
		right: 16px;
		bottom: 16px;
		width: 44px;
		height: 44px;
	}
}

.sfe-archive-title { font-size: 2.5rem; margin: 56px 0 0; }
.sfe-article > h2.sfe-article__title { font-size: 2.5rem; }
@media (max-width: 768px) {
	.sfe-archive-title, .sfe-article > h2.sfe-article__title { font-size: 1.9rem; }
}
