/* Recognized Header: big logo, news banner, sticky menu bar with mega menus. Palette vars come from Settings. */
.rf-hd-scope {
	--rf-ground: #1A1919; --rf-surface: #252424; --rf-field: #2C2B2B; --rf-line: #333232;
	--rf-text: #FFFFFF; --rf-muted: #939393; --rf-accent: #62FA3C;
	--rf-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--rf-mark: "Archivo", "DM Sans", sans-serif;
	--rf-hpad: clamp(16px, 2.8vw, 40px);
	--rf-bar: 60px;
}
.rf-hd-root { display: contents; }
.rf-mast, .rf-ticker, .rf-header, .rf-drawer { font-family: var(--rf-body); -webkit-font-smoothing: antialiased; }
.rf-hd-scope *, .rf-hd-scope *::before, .rf-hd-scope *::after { box-sizing: border-box; }
.rf-hd-scope a { color: var(--rf-text); text-decoration: none; transition: color .15s ease; }
.rf-hd-scope a:hover { color: var(--rf-accent); }
.rf-hd-scope a:focus-visible, .rf-hd-scope button:focus-visible, .rf-hd-scope input:focus-visible, .rf-hd-scope summary:focus-visible {
	outline: 2px solid var(--rf-accent); outline-offset: 3px; border-radius: 3px;
}
.rf-hd-scope h2, .rf-hd-scope h3, .rf-hd-scope p, .rf-hd-scope ul, .rf-hd-scope li, .rf-hd-scope nav, .rf-hd-scope details, .rf-hd-scope summary {
	margin: 0; padding: 0; background: transparent; box-shadow: none; border: 0; text-transform: none;
}
.rf-hd-scope li { list-style: none; }
.rf-hd-scope li::before, .rf-hd-scope li::marker { content: none; }
.rf-hd-scope [hidden] { display: none !important; }
.rf-hd-scope button { font-family: inherit; }

/* ---------- Big-logo masthead ---------- */
.rf-mast {
	display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px;
	min-height: 168px; padding: 24px var(--rf-hpad);
	background: var(--rf-ground); color: var(--rf-text);
}
.rf-mast__side { display: flex; align-items: center; gap: 16px; min-width: 0; }
.rf-mast__side--end { justify-content: flex-end; }
.rf-mast__center { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.rf-hd-scope .rf-mast__credit, .rf-hd-scope .rf-mast__link { color: var(--rf-muted); font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.rf-hd-scope .rf-mast__link:hover, .rf-hd-scope a.rf-mast__credit:hover { color: var(--rf-accent); }
.rf-mast__tagline { color: var(--rf-muted); font-size: 16px; line-height: 1.4; }

.rf-hd-scope .rf-logo { display: inline-flex; align-items: center; color: var(--rf-accent); line-height: 0; }
.rf-logo img { display: block; width: auto; max-width: 100%; }
.rf-logo__text {
	font-family: var(--rf-mark); font-style: italic; font-stretch: 75%; font-weight: 900;
	line-height: .9; letter-spacing: -0.01em; color: var(--rf-accent); white-space: nowrap;
}
.rf-logo--big .rf-logo__text { font-size: clamp(56px, 6.4vw, 92px); }
.rf-logo--small .rf-logo__text { font-size: 28px; }

/* ---------- News banner ---------- */
.rf-ticker {
	display: flex; align-items: stretch; min-height: 44px;
	background: var(--rf-accent); color: var(--rf-ground); font-size: 14px; font-weight: 500;
}
.rf-ticker__label {
	flex: none; display: flex; align-items: center; gap: 8px; padding: 0 18px 0 var(--rf-hpad);
	background: var(--rf-ground); color: var(--rf-accent);
	font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.rf-ticker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rf-accent); animation: rf-blink 2s ease-in-out infinite; }
@keyframes rf-blink { 50% { opacity: .35; } }
.rf-ticker__viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.rf-ticker__track { display: flex; width: max-content; animation: rf-marquee var(--rf-dur, 60s) linear infinite; }
.rf-ticker__list { display: flex; align-items: center; gap: 40px; padding: 0 20px; white-space: nowrap; }
.rf-ticker__list li { display: flex; }
.rf-hd-scope .rf-ticker a, .rf-ticker__list span { color: var(--rf-ground); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.rf-hd-scope .rf-ticker a:hover { color: var(--rf-ground); text-decoration: underline; text-underline-offset: 3px; }
.rf-hd-scope .rf-ticker a:focus-visible { outline-color: var(--rf-ground); }
.rf-ticker__src { opacity: .6; }
.rf-ticker:hover .rf-ticker__track, .rf-ticker:focus-within .rf-ticker__track, .rf-ticker.is-paused .rf-ticker__track { animation-play-state: paused; }
@keyframes rf-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rf-ticker__pause {
	flex: none; width: 44px; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer;
	background: color-mix(in srgb, var(--rf-accent) 88%, #000); color: var(--rf-ground);
}
.rf-ticker__pause:focus-visible { outline: 2px solid var(--rf-ground) !important; outline-offset: -4px !important; }
.rf-ico-play, .rf-ticker.is-paused .rf-ico-pause { display: none; }
.rf-ticker.is-paused .rf-ico-play { display: block; }

/* ---------- Sticky menu bar ---------- */
.rf-sentinel { display: block; height: 0; }
.rf-header {
	position: sticky; top: 0; z-index: 9990;
	background: var(--rf-ground); color: var(--rf-text);
	border-top: 1px solid var(--rf-line); border-bottom: 1px solid var(--rf-line);
	transition: box-shadow .2s ease;
}
body.admin-bar .rf-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .rf-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .rf-header { top: 0; } }
.rf-header.is-stuck { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); border-top-color: transparent; }

.rf-header__bar {
	display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr); align-items: center; gap: 16px;
	min-height: var(--rf-bar); padding: 0 var(--rf-hpad);
}
.rf-header__bar > .rf-logo--small { justify-self: start; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.rf-header.is-stuck .rf-header__bar > .rf-logo--small { opacity: 1; visibility: visible; transform: none; }

.rf-nav ul { display: flex; align-items: center; justify-content: center; gap: 4px; }
.rf-nav__link {
	display: flex; align-items: center; gap: 6px; height: var(--rf-bar); padding: 0 16px; border: 0; background: transparent;
	color: var(--rf-text); font: inherit; font-size: 16px; font-weight: 500; white-space: nowrap; cursor: pointer;
	transition: color .15s ease, box-shadow .15s ease;
}
.rf-hd-scope .rf-nav__link:hover { color: var(--rf-accent); }
.rf-nav__link[aria-current="page"], .rf-nav__link.is-current { box-shadow: inset 0 -2px 0 var(--rf-accent); }
.rf-nav__link[aria-expanded="true"] { color: var(--rf-accent); box-shadow: inset 0 -2px 0 var(--rf-accent); }
.rf-chev-icon { transition: transform .2s ease; }
[aria-expanded="true"] > .rf-chev-icon, .rf-drawer__group[open] > summary .rf-chev-icon { transform: rotate(180deg); }

.rf-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.rf-icon-btn {
	width: 44px; height: 44px; display: grid; place-items: center; padding: 0; flex: none;
	border: 1px solid var(--rf-line); border-radius: 4px; background: transparent; color: var(--rf-text);
	cursor: pointer; transition: border-color .15s ease, color .15s ease;
}
.rf-icon-btn:hover, .rf-icon-btn[aria-expanded="true"] { border-color: var(--rf-text); }
.rf-icon-btn--plain { border-color: transparent; color: var(--rf-muted); }
.rf-icon-btn--plain:hover { color: var(--rf-text); border-color: transparent; }
.rf-header__cta { height: 44px; padding: 0 22px; font-size: 15px; white-space: nowrap; }
.rf-header__cta[aria-expanded="true"] { outline: 2px solid var(--rf-text); outline-offset: 2px; }
.rf-only-stuck { opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s; }
.rf-header.is-stuck .rf-only-stuck { opacity: 1; visibility: visible; }
.rf-only-mobile, .rf-menu-btn { display: none !important; }

/* ---------- Mega menu panels ---------- */
.rf-mega {
	position: absolute; left: 0; right: 0; top: 100%;
	background: color-mix(in srgb, var(--rf-ground) 92%, #fff 3%); border-bottom: 1px solid var(--rf-line);
	box-shadow: 0 24px 48px rgba(0, 0, 0, .45); animation: rf-pop .18s ease-out;
}
.rf-mega__inner {
	display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 40px;
	max-width: 1440px; margin: 0 auto; padding: 40px var(--rf-hpad) 40px;
}
.rf-mega__inner.has-featured { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)) minmax(0, 1.5fr); }
.rf-mega__col h3 { margin-bottom: 18px; font-family: var(--rf-body); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rf-accent); }
.rf-mega__col ul { display: grid; gap: 4px; }
.rf-mega__col a { display: inline-flex; align-items: center; min-height: 36px; font-size: 17px; }
.rf-hd-scope .rf-mega__all a, .rf-hd-scope a.rf-mega__all { color: var(--rf-accent); font-size: 15px; font-weight: 500; margin-top: 10px; }
.rf-hd-scope .rf-mega__all a:hover, .rf-hd-scope a.rf-mega__all:hover { color: var(--rf-text); }
.rf-hd-scope .rf-mega__card {
	display: flex; flex-direction: column; gap: 12px; align-self: start; padding: 16px;
	background: var(--rf-surface); border: 1px solid var(--rf-line); border-radius: 10px; color: var(--rf-text);
	transition: border-color .15s ease;
}
.rf-hd-scope .rf-mega__card:hover { border-color: var(--rf-accent); color: var(--rf-text); }
.rf-mega__card img { width: 100%; height: 160px; object-fit: cover; border-radius: 6px; }
.rf-mega__kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rf-accent); }
.rf-mega__title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.rf-mega__text { font-size: 15px; line-height: 1.5; color: var(--rf-muted); }

/* ---------- Search row ---------- */
.rf-search { border-top: 1px solid var(--rf-line); padding: 16px var(--rf-hpad); }
.rf-search__form { display: flex; gap: 12px; max-width: 760px; margin: 0 auto; }
.rf-search__form input {
	flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 16px; border-radius: 4px;
	border: 1px solid #4E4E4E; background: var(--rf-field); color: var(--rf-text); font: inherit; font-size: 17px;
}
.rf-search__form input::placeholder { color: var(--rf-muted); opacity: 1; }

/* ---------- Subscribe panel ---------- */
.rf-subscribe {
	position: absolute; top: calc(100% + 12px); right: var(--rf-hpad);
	width: min(440px, calc(100vw - 32px)); display: grid; gap: 14px; padding: 28px;
	background: var(--rf-surface); color: var(--rf-text);
	border: 1px solid #414040; border-radius: 10px; box-shadow: 0 24px 48px rgba(0, 0, 0, .5);
	animation: rf-pop .18s ease-out;
}
.rf-subscribe__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.rf-subscribe__head h2 { font-family: var(--rf-body); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--rf-text); }
.rf-subscribe__head .rf-icon-btn { margin: -12px -12px 0 0; }
.rf-subscribe__text { color: var(--rf-muted); font-size: 15px; line-height: 1.5; }
.rf-subscribe__note { color: var(--rf-muted); font-size: 13px; line-height: 1.5; }
.rf-subscribe .rf-nl__form, .rf-drawer__signup .rf-nl__form { flex-direction: column; align-items: stretch; }
.rf-subscribe .rf-nl__field, .rf-drawer__signup .rf-nl__field { flex: none; }
.rf-subscribe .rf-btn, .rf-drawer__signup .rf-btn { width: 100%; }
@keyframes rf-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Phone menu ---------- */
.rf-drawer {
	position: fixed; inset: 0; z-index: 99998; overflow-y: auto; overscroll-behavior: contain;
	display: flex; flex-direction: column; background: var(--rf-ground); color: var(--rf-text);
	padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); animation: rf-pop .18s ease-out;
}
body.admin-bar .rf-drawer { top: 46px; }
.rf-drawer__top {
	flex: none; display: flex; align-items: center; justify-content: space-between;
	height: 72px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--rf-line);
}
.rf-drawer__nav { display: flex; flex-direction: column; padding: 4px 16px 0; }
.rf-drawer__link, .rf-drawer__group > summary {
	display: flex; align-items: center; justify-content: space-between; min-height: 56px;
	font-size: 24px; font-weight: 500; letter-spacing: -0.02em; color: var(--rf-text);
}
.rf-drawer__link { border-bottom: 1px solid var(--rf-line); }
.rf-drawer__group { border-bottom: 1px solid var(--rf-line) !important; }
.rf-drawer__group > summary { list-style: none; cursor: pointer; }
.rf-drawer__group > summary::-webkit-details-marker { display: none; }
.rf-drawer__group > summary .rf-chev-icon { color: var(--rf-accent); width: 18px; height: 18px; }
.rf-hd-scope .rf-drawer__link[aria-current="page"], .rf-drawer__group > summary.is-current { color: var(--rf-accent); }
.rf-drawer__sub { display: flex; flex-direction: column; padding: 0 0 14px 2px; }
.rf-drawer__sub h3 { margin: 12px 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rf-accent); }
.rf-drawer__sub a { display: flex; align-items: center; min-height: 44px; font-size: 17px; }
.rf-drawer__signup {
	margin: auto 16px 16px; margin-top: 32px; display: grid; gap: 12px; padding: 20px;
	background: var(--rf-surface); border: 1px solid var(--rf-line); border-radius: 10px;
}
.rf-drawer__signup h2 { font-family: var(--rf-body); font-size: 19px; font-weight: 700; color: var(--rf-text); }
.rf-drawer__social { display: flex; flex-wrap: wrap; gap: 0 20px; padding: 0 16px; }
.rf-drawer__social a { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; }
body.rf-lock { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
	.rf-nav__link { padding: 0 11px; font-size: 15px; }
	.rf-header__bar { grid-template-columns: auto 1fr auto; }
	.rf-mega__inner.has-featured { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
	.rf-mega__card { display: none !important; }
}
@media (max-width: 1024px) {
	.rf-mast, .rf-nav, .rf-only-stuck, .rf-mega { display: none !important; }
	.rf-only-mobile, .rf-menu-btn { display: grid !important; }
	.rf-header { --rf-bar: 72px; border-top: 0; }
	.rf-header__bar { grid-template-columns: 44px minmax(0, 1fr) 44px; padding: 0 12px; }
	.rf-header__bar > .rf-logo--small { justify-self: center; opacity: 1; visibility: visible; transform: none; }
	.rf-header__bar > .rf-logo--small .rf-logo__text { font-size: 32px; }
	.rf-header__actions { gap: 0; }
	.rf-ticker__label { padding-left: 16px; }
	.rf-ticker__label-text { display: none; }
}
@media (max-width: 640px) {
	.rf-search__form { flex-direction: column; }
	.rf-search__form .rf-btn { width: 100%; }
	.rf-ticker { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
	.rf-hd-scope *, .rf-hd-scope *::before, .rf-hd-scope *::after { transition: none !important; animation: none !important; }
	.rf-ticker__viewport { overflow-x: auto; }
	.rf-ticker__list[aria-hidden="true"], .rf-ticker__pause { display: none; }
}

/* Small dropdown for items with only a few sub-pages (e.g. Articles, Jobs) */
.rf-mega--compact {
	left: var(--rf-x, 0px); right: auto; width: max-content; min-width: 260px; max-width: min(380px, calc(100vw - 32px));
	border: 1px solid var(--rf-line); border-top: 0; border-radius: 0 0 10px 10px;
}
.rf-mega--compact .rf-mega__inner { display: block; padding: 16px 24px 20px; max-width: none; margin: 0; }
.rf-mega--compact .rf-mega__col h3 { margin: 6px 0 8px; }
.rf-mega__col h3 a { color: var(--rf-accent) !important; display: inline-flex; min-height: 0; font-size: inherit; }
.rf-mega__col h3 a:hover { color: var(--rf-text) !important; }
