/* The Resume Ready theme: header, footer and plain-page layout. Brand tokens come from the plugin's base.css. */

html { scroll-padding-top: 90px; }

/* Plain pages (legal etc.): a readable column with the brand's type. */
body:not(.elementor-page) .site-main { max-width: 820px; padding-block: 48px 80px; }
.page-header .entry-title { font-family: var(--rr-serif); font-weight: 400; font-size: clamp(32px, 4vw, 46px); color: var(--rr-navy); }
body:not(.elementor-page) .page-content { font-size: 17px; line-height: 1.65; color: var(--rr-ink); }
body:not(.elementor-page) .page-content h2 { margin: 36px 0 10px; font-size: 22px; font-weight: 700; color: var(--rr-navy); }
body:not(.elementor-page) .page-content h3 { margin: 24px 0 8px; font-size: 18px; font-weight: 700; color: var(--rr-navy); }
body:not(.elementor-page) .page-content p { margin: 0 0 14px; }
body:not(.elementor-page) .page-content ul, body:not(.elementor-page) .page-content ol { margin: 0 0 14px; padding-left: 24px; }
body:not(.elementor-page) .page-content li { margin: 4px 0; }
body:not(.elementor-page) .page-content a { color: var(--rr-blue); }
.rr-legal-lead { font-size: 20px !important; color: var(--rr-muted) !important; margin-top: -8px !important; }
.rr-legal-meta { font-size: 14px !important; color: var(--rr-muted) !important; padding-bottom: 18px; border-bottom: 1px solid var(--rr-line); margin-bottom: 22px !important; }

/* Header */
.rr-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid var(--rr-line);
	backdrop-filter: saturate(1.4) blur(8px);
}
.admin-bar .rr-header { top: 32px; }
/* Desktop: logo | menu | buttons on a 1fr-auto-1fr grid, so the menu sits in the true centre of the header.
   The panel only exists to group the menu and buttons for the mobile drop-down. */
.rr-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 32px;
	min-height: 76px;
}
.rr-header__panel { display: contents; }
.rr-header .rr-logo { justify-self: start; }
.rr-nav { grid-column: 2; }
.rr-header__actions { grid-column: 3; justify-self: end; }

.rr-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--rr-navy);
	text-decoration: none;
	flex: none;
}
body .rr-logo:hover, body .rr-logo:focus { color: var(--rr-navy); }
.rr-logo__mark { color: var(--rr-navy); }
.rr-logo__text { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--rr-navy); white-space: nowrap; }
.rr-logo__text span { color: var(--rr-blue); }
.rr-logo img { display: block; max-height: 44px; width: auto; }
.rr-logo .custom-logo-link { display: block; line-height: 0; }
/* Main logo on a dark background: a white tile keeps a dark logo readable. */
.rr-logo--tile { display: inline-block; padding: 8px 12px; border-radius: 10px; background: var(--rr-white); }
.rr-logo--tile img { max-height: 36px; }
.rr-logo--dark img.rr-logo__img { max-height: 44px; width: auto; }
.rr-logo--dark .rr-logo__mark { color: var(--rr-blue); }
.rr-logo--dark .rr-logo__text { color: var(--rr-white); }
.rr-logo--dark .rr-logo__text span { color: var(--rr-hl-on-dark); }

.rr-nav__list { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.rr-nav__list a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--rr-ink);
	text-decoration: none;
	white-space: nowrap;
}
/* Only real pages get the "current" color; custom #anchor links would otherwise all light up on the homepage. */
body .rr-nav__list a:hover, body .rr-nav__list a:focus, .rr-nav__list .current_page_item > a { color: var(--rr-blue); }

/* Menu items with the CSS class "rr-soon" (Appearance → Menus → CSS Classes) get a "Soon" pill. */
.rr-soon > a::after {
	content: "Soon";
	padding: 1px 7px;
	border-radius: 99px;
	background: var(--rr-blue-50);
	color: var(--rr-blue);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
}
.rr-soon > a { pointer-events: none; color: var(--rr-muted); }

.rr-header__actions { display: flex; align-items: center; gap: 12px; flex: none; }

/* Signed in: "My Dashboard" with a submenu (Log Out) that opens on hover, keyboard focus or tap. */
.rr-account-menu { position: relative; }
.rr-account-menu__caret { margin: 0 -4px 0 -4px; transition: transform .15s; }
.rr-account-menu__dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 10;
	min-width: 180px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--rr-white);
	border: 1px solid var(--rr-line);
	border-radius: 10px;
	box-shadow: 0 12px 28px rgba(16, 24, 40, .12);
	visibility: hidden;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
/* Bridges the 8px gap so the menu stays open while the pointer moves down to it. */
.rr-account-menu__dropdown::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 10px; }
.rr-account-menu:hover .rr-account-menu__dropdown,
.rr-account-menu:focus-within .rr-account-menu__dropdown,
.rr-account-menu.is-open .rr-account-menu__dropdown { visibility: visible; opacity: 1; transform: none; }
.rr-account-menu:hover .rr-account-menu__caret,
.rr-account-menu:focus-within .rr-account-menu__caret,
.rr-account-menu.is-open .rr-account-menu__caret { transform: rotate(180deg); }
.rr-account-menu__dropdown a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 500;
	color: var(--rr-ink);
	text-decoration: none;
	white-space: nowrap;
}
body .rr-account-menu__dropdown a:hover, body .rr-account-menu__dropdown a:focus { background: var(--rr-soft); color: var(--rr-blue); }

.rr-nav-toggle,
.rr-nav-toggle:hover,
.rr-nav-toggle:focus {
	display: none;
	margin-left: auto;
	padding: 6px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--rr-navy);
	cursor: pointer;
}
.rr-nav-toggle__close { display: none; }

@media (max-width: 1180px) {
	.rr-nav-toggle, .rr-nav-toggle:hover, .rr-nav-toggle:focus { display: inline-grid; place-items: center; }
	.rr-header__inner { display: flex; min-height: 64px; gap: 16px; }
	.rr-header__panel {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 12px var(--rr-gutter) 24px;
		background: var(--rr-white);
		border-bottom: 1px solid var(--rr-line);
		box-shadow: 0 16px 24px rgba(16, 24, 40, .08);
		max-height: calc(100vh - 64px);
		overflow-y: auto;
	}
	.rr-header.is-open .rr-header__panel { display: flex; }
	.rr-header.is-open .rr-nav-toggle__open { display: none; }
	.rr-header.is-open .rr-nav-toggle__close { display: inline; }
	.rr-nav__list { flex-direction: column; gap: 0; }
	.rr-nav__list a { padding: 12px 0; font-size: 17px; }
	.rr-nav__list li + li { border-top: 1px solid var(--rr-line); }
	.rr-header__actions { flex-direction: column; align-items: stretch; }
	.rr-header__actions .rr-btn { width: 100%; }
	/* The mobile panel lists everything, so the submenu is simply shown below the button. */
	.rr-account-menu__caret { display: none; }
	.rr-account-menu__dropdown { position: static; min-width: 0; padding: 4px 0 0; visibility: visible; opacity: 1; transform: none; background: none; border: 0; box-shadow: none; }
	.rr-account-menu__dropdown a { justify-content: center; }
	.rr-logo__text { font-size: 19px; }
	html { scroll-padding-top: 76px; }
}
@media (max-width: 782px) {
	.admin-bar .rr-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .rr-header { top: 0; }
}

/* Footer */
.rr-footer { background: var(--rr-navy); color: rgba(255, 255, 255, .72); padding: 56px 0 28px; font-size: 15px; }
.rr-footer__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 32px;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.rr-footer__brand { max-width: 360px; }
.rr-footer__brand p { margin: 14px 0 0; }
.rr-footer__list { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.rr-footer a { color: rgba(255, 255, 255, .86); text-decoration: none; }
body .rr-footer a:hover, body .rr-footer a:focus { color: var(--rr-white); text-decoration: underline; }
.rr-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	padding-top: 22px;
	font-size: 14px;
}
.rr-footer__bottom p { margin: 0; }
.rr-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }

/* 404 */
.rr-404 { display: grid; place-items: center; min-height: 60vh; padding: 64px var(--rr-gutter, 16px); background: var(--rr-soft); }
.rr-404__box { max-width: 560px; text-align: center; }
.rr-404 .rr-eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rr-blue); } /* widgets.css isn't loaded on a 404 */
.rr-404__title { margin: 6px 0 12px; font-family: var(--rr-serif); font-weight: 400; font-size: clamp(34px, 5vw, 52px); line-height: 1.1; color: var(--rr-navy); }
.rr-404__text { margin: 0 0 26px; font-size: 17px; color: var(--rr-muted); }
.rr-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.rr-404__help { margin: 26px 0 0; font-size: 15px; color: var(--rr-muted); }
.rr-404__help a { font-weight: 600; color: var(--rr-blue); }
