/* wp-content/plugins/ceca-widgets/widgets/region-nav/region-nav.css */
/* Region Nav: white bar beneath the global header carrying the region name
   and that region's own menu. Locked to the site grid
   (--ceca-site-width / --ceca-gutter) so it lines up with the header above,
   with hairline dividers top and bottom. */

.ceca-region-nav {
	--ceca-rn-height: 55px;
	--ceca-rn-line: #e8e8e8;
	--ceca-rn-title: #1a1a1a;
	--ceca-rn-link: #1a1a1a;
	--ceca-rn-link-hover: #411024;
	--ceca-rn-underline: #c65a93;
	--ceca-rn-more: #1a1a1a;
	--ceca-rn-panel-bg: #ffffff;
	--ceca-rn-panel-link: #1a1a1a;
	--ceca-rn-gap: 30px;

	background: #ffffff;
	border-top: 1px solid var(--ceca-rn-line);
	border-bottom: 1px solid var(--ceca-rn-line);
}

/* Same break-out formula as the header bars, so the rule spans the viewport
   while the content stays on the 1296px grid. */
.ceca-region-nav--full {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
}

.ceca-region-nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--ceca-rn-height);
	max-width: var(--ceca-site-width, 1440px);
	margin: 0 auto;
	padding: 0 var(--ceca-gutter, 72px);
}

.ceca-region-nav a.ceca-region-nav__title,
.ceca-region-nav .ceca-region-nav__title {
	flex: none;
	font-size: 20px; /* user, 2026-09-29 — was 18px */
	line-height: 26px;
	font-weight: 700;
	color: var(--ceca-rn-title);
	text-decoration: none;
	white-space: nowrap;
}

.ceca-region-nav a.ceca-region-nav__title:hover,
.ceca-region-nav a.ceca-region-nav__title:focus {
	color: var(--ceca-rn-link-hover);
}

/* --- Menu ---------------------------------------------------------------- */

.ceca-region-nav__nav {
	display: flex;
	align-items: center;
	gap: var(--ceca-rn-gap);
	min-width: 0;
	margin-left: auto;
}

.ceca-region-nav .ceca-region-nav__list {
	display: flex;
	align-items: center;
	gap: var(--ceca-rn-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 0;
}

.ceca-region-nav .ceca-region-nav__list > li {
	margin: 0;
	padding: 0;
	list-style: none;
	flex: none;
}

/* Items measured out of the bar are hidden rather than removed, so the
   measurement stays stable and nothing reflows as the viewport changes. */
.ceca-region-nav .ceca-region-nav__list > li[data-overflow="1"] {
	display: none;
}

/* Double specificity + explicit states: Elementor kit link globals would
   otherwise repaint these on hover. */
.ceca-region-nav .ceca-region-nav__list a,
.ceca-region-nav a.ceca-region-nav__link {
	display: block;
	padding: 4px 0;
	font-size: 18px;
	line-height: 24px;
	font-weight: 400;
	color: var(--ceca-rn-link);
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.ceca-region-nav .ceca-region-nav__list a:hover,
.ceca-region-nav .ceca-region-nav__list a:focus,
.ceca-region-nav a.ceca-region-nav__link:hover,
.ceca-region-nav a.ceca-region-nav__link:focus {
	color: var(--ceca-rn-link-hover);
	border-bottom-color: var(--ceca-rn-underline);
}

.ceca-region-nav .ceca-region-nav__list > li.current-menu-item > a,
.ceca-region-nav .ceca-region-nav__list > li.current_page_item > a {
	color: var(--ceca-rn-link-hover);
	border-bottom-color: var(--ceca-rn-underline);
}

.ceca-region-nav__notice {
	margin: 0;
	font-size: 14px;
	color: #7e7e7e;
}

/* --- Overflow ("…") ------------------------------------------------------ */

.ceca-region-nav__more {
	position: relative;
	flex: none;
}

/* [hidden] must outrank the display rules below, or the button shows even
   when nothing has overflowed. */
.ceca-region-nav .ceca-region-nav__more[hidden],
.ceca-region-nav .ceca-region-nav__panel[hidden] {
	display: none;
}

.ceca-region-nav .ceca-region-nav__more-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: var(--ceca-rn-more);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ceca-region-nav .ceca-region-nav__more-btn:hover,
.ceca-region-nav .ceca-region-nav__more-btn:focus {
	background: rgba(65, 16, 36, 0.08);
	color: var(--ceca-rn-link-hover);
}

.ceca-region-nav__more-btn svg {
	width: 22px;
	height: 4px;
}

.ceca-region-nav__panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 60;
	min-width: 240px;
	max-width: min(360px, calc(100vw - 40px));
	max-height: min(70vh, 520px);
	overflow-y: auto;
	background: var(--ceca-rn-panel-bg);
	border-radius: 10px;
	box-shadow: 0 16px 40px rgba(65, 16, 36, 0.18);
	/* Grows out of the "…" button — see region-nav.js. */
	transform-origin: top right;
}

.ceca-region-nav .ceca-region-nav__panel-list {
	margin: 0;
	padding: 8px 0;
	list-style: none;
}

.ceca-region-nav .ceca-region-nav__panel-list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ceca-region-nav .ceca-region-nav__panel-list a {
	display: block;
	padding: 10px 20px;
	font-size: 17px;
	line-height: 24px;
	color: var(--ceca-rn-panel-link);
	text-decoration: none;
	white-space: normal;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ceca-region-nav .ceca-region-nav__panel-list a:hover,
.ceca-region-nav .ceca-region-nav__panel-list a:focus {
	background: rgba(227, 227, 227, 0.5);
	color: var(--ceca-rn-link-hover);
}

/* --- Small screens -------------------------------------------------------- */
/* The measure-and-collapse logic handles narrow viewports on its own: almost
   everything ends up behind "…", which is the mobile behaviour. The region
   name stays put so you always know where you are. */

/* --- Mobile: links move into the burger drawer --------------------------- */
/* Below 1024 (the header's own burger breakpoint) the bar keeps only the
   region name as a "you are here" marker; the links are cloned into the
   global drawer by region-nav.js so there is ONE menu, not a burger and a
   "…" competing with each other. */

@media (max-width: 1024px) {
	.ceca-region-nav__inner {
		gap: 16px;
		justify-content: flex-start;
	}

	.ceca-region-nav .ceca-region-nav__nav {
		display: none;
	}
}

/* Region section pinned to the top of the drawer, above the global menu. */
.ceca-region-nav__drawer {
	border-bottom: 1px solid rgba(65, 16, 36, 0.12);
	padding-bottom: 8px;
	margin-bottom: 8px;
}

.ceca-region-nav__drawer-title {
	margin: 0;
	padding: 16px var(--ceca-gutter, 32px) 6px;
	font-size: 14px;
	line-height: 20px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--ceca-h-mob-color, #411024);
	opacity: 0.6;
}

.ceca-region-nav__drawer-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ceca-region-nav__drawer-list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Matches the drawer's own rows (14px / gutter padding, 20px bold) so the
   region section reads as part of the same menu, just a level up. */
.ceca-header .ceca-region-nav__drawer-list a {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 12px var(--ceca-gutter, 32px);
	font-size: 18px;
	line-height: 24px;
	font-weight: 400;
	color: var(--ceca-h-mob-color, var(--ceca-h-main-color));
	text-decoration: none;
}

.ceca-header .ceca-region-nav__drawer-list a:hover,
.ceca-header .ceca-region-nav__drawer-list a:focus,
.ceca-header .ceca-region-nav__drawer-list .is-current a {
	color: var(--ceca-h-mob-color, var(--ceca-h-main-color));
	background: rgba(65, 16, 36, 0.06);
}

@media (max-width: 767px) {
	.ceca-region-nav a.ceca-region-nav__title,
	.ceca-region-nav .ceca-region-nav__title {
		font-size: 16px;
		line-height: 22px;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.ceca-region-nav .ceca-region-nav__list a,
	.ceca-region-nav a.ceca-region-nav__link {
		font-size: 16px;
	}
}
