/**
 * OTA Special Interest Group Menu widget styles.
 *
 * The pill row under the group mast, Frame 736 in the SIG page design
 * (307:23961): About | News | Events | Community | Contact. The current page's
 * pill is filled with the active roles; every other pill is an outline.
 *
 * A SKIN ON ELEMENTOR PRO'S MARKUP, NOT A LAYOUT OF OUR OWN. The widget extends
 * Pro's Nav Menu to keep its dropdown, breakpoint and accessibility machinery,
 * so these rules dress Pro's own classes: `.elementor-item` anchors inside
 * `.elementor-nav-menu--main`. The mobile dropdown variant is left on Pro's
 * defaults deliberately: the design draws no mobile state for this row, and
 * Pro's toggle behaviour is better than a guess. Scoped to the widget's
 * wrapper class so no other Nav Menu on the site is touched.
 *
 * Every colour is a colour theme role, same contract as every other block:
 * active-bg/active-text for the current pill (the roles the mega menu's
 * active state uses), cta-bg for the outline pills, with the frame's own
 * resolved values as fallbacks.
 */

.elementor-widget-ota-sig-menu {
	--osm-active-bg: var(--ota-active-bg, #003038);
	--osm-active-text: var(--ota-active-text, #f0e7d8);
	--osm-pill: var(--ota-cta-bg, #003038);
	--osm-on-pill: var(--ota-cta-text, #ffffff);
}

/*
 * THE THEME PAINTS EVERY PRO NAV MENU AND HAS TO BE UNPAINTED FIRST. The Agend
 * theme's _elementor.scss gives `.elementor-nav-menu--main ul` its card mixin,
 * which is the white box with a shadow, padding and a radius, and gives every
 * anchor `border: 0 !important` and `justify-content: flex-start`. Same
 * situation as the mast and the footer: the theme is not ours to edit, so the
 * plugin outguns it here. The one !important below answers the theme's own on
 * the anchor border; everything else wins on specificity alone because the
 * card mixin carries none.
 */
/*
 * Centring needs both levels. Pro's nav container shrink-wraps and sits on the
 * left of the widget, so a centred ul inside a left-hugging nav still reads
 * left. Measured, not inferred: the ul's justify-content alone left the row
 * off-centre in the rendered page.
 */
.elementor-widget-ota-sig-menu .elementor-nav-menu--main {
	display: flex;
	width: 100%;
	justify-content: center;
}

.elementor-widget-ota-sig-menu .elementor-nav-menu--main .elementor-nav-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	/* Centred in its container, Frame 736's own alignment. */
	justify-content: center;
	gap: 16px;

	/* The theme's card mixin, taken back off. */
	padding: 0;
	border-radius: 0;
	overflow: visible;
	background-color: transparent;
	box-shadow: none;
}

/*
 * THE ROW SAT 8px LEFT OF CENTRE, AND THE CULPRIT WAS A FLOAT CLEARFIX.
 *
 * The theme leaves `::after { content: " "; display: block }` on this ul, which
 * is the pre-flex way of clearing floated children. Under `display: flex` above
 * that pseudo stops being a clearfix and becomes a real flex item of zero
 * width, so the `gap: 16px` in front of it adds 16px of dead space at the right
 * end of a centred row. The visible pills then settle half a gap, 8px, to the
 * left of true centre.
 *
 * Measured at 1440 and 1720 before the fix: the ul centred correctly on 720 and
 * 860, while the pills centred on 712 and 852. Exactly 8px at both widths,
 * which is what ruled out a container or a scrollbar and pointed at the gap.
 *
 * Removed from the flow rather than zeroing the gap, because the 16px between
 * the real pills is wanted and there is nothing else for this pseudo to do once
 * the ul is a flex container. `::before` is already `display: none` from the
 * theme, so only `::after` is named here.
 */
.elementor-widget-ota-sig-menu .elementor-nav-menu--main .elementor-nav-menu::after {
	display: none;
}

/*
 * PRO'S MOBILE TOGGLE IS REDUNDANT HERE, AT EVERY WIDTH.
 *
 * Below its tablet breakpoint Pro swaps a nav menu for a hamburger plus a
 * dropdown, and hides `--main` when it does. This file gives `--main` an
 * unconditional `display: flex` above, so the pill row survives that swap and
 * wraps instead, which is right for four short pills and is what the design
 * shows. The side effect was both appearing at once: from 1023px down, a
 * wrapped pill row with a stray hamburger underneath it.
 *
 * Measured across widths: the toggle is `display: none` at 1024 and up, and
 * `display: flex` at 900 and below, while the row stays visible at every width
 * and wraps to two lines at 600.
 *
 * The toggle goes rather than the row, because the row is the design and the
 * dropdown behind the toggle is Pro's unstyled default. The dropdown nav is
 * named too: with no toggle it can never be opened, so leaving it addressable
 * would just be a trap for the next person.
 */
.elementor-widget-ota-sig-menu .elementor-menu-toggle,
.elementor-widget-ota-sig-menu .elementor-nav-menu--dropdown {
	display: none;
}

/*
 * FOUR CLASSES DEEP ON PURPOSE. Pro's own widget stylesheet pads these anchors
 * in every state it can name: `...a { 13px 20px }` at rest, and the same
 * padding again on `a:hover`, `a:focus` and `a.highlighted` (SmartMenus adds
 * that class at mouseenter), each of which weighs (0,3,1). A three-class rule
 * here won the rest state and lost the hover one, which read as the pill
 * shrinking 19px under the pointer. Naming `.elementor-nav-menu` lifts every
 * rule in this file to (0,4,0), above all of Pro's states at once. Found with
 * CDP's getMatchedStylesForNode after two wrong guesses; the padding swap was
 * invisible in every stylesheet this plugin owns.
 */
.elementor-widget-ota-sig-menu .elementor-nav-menu--main .elementor-nav-menu .elementor-item,
.elementor-widget-ota-sig-menu .elementor-nav-menu--main .elementor-nav-menu .elementor-item.highlighted {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 15.5px 29.5px;
	/* !important answers the theme's `border: 0 !important`, nothing else does. */
	border: 1.5px solid var(--osm-pill) !important;
	border-radius: 999px;
	color: var(--osm-pill);
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	transition:
		background-color 150ms ease,
		border-color 150ms ease,
		color 150ms ease;
}

/*
 * The theme spaces list items with a top margin and exempts the first one,
 * which read as the About pill sitting 4px above its neighbours. Measured on
 * the page, not inferred. All of them zeroed: the row's gap does the spacing.
 *
 * The theme's compiled rule is
 * `main#agendtheme-content .agendtheme-content-inner:not(...) ul:not(x,y) li+li`,
 * which weighs (1,3,3), so the counter has to name the same ID and then some:
 * `ul.elementor-nav-menu` and `li.menu-item` lift this to (1,4,2). Read out of
 * the built stylesheet, not the scss, because the source hides half the chain
 * in its nesting. The plain variant stays for anywhere the widget renders
 * outside that landmark, the editor preview included.
 */
main#agendtheme-content .elementor-widget-ota-sig-menu .elementor-nav-menu--main ul.elementor-nav-menu li.menu-item,
.elementor-widget-ota-sig-menu .elementor-nav-menu--main li {
	margin: 0;
}

/*
 * Pro paints its own hover/active affordances (pointer underlines, background
 * fades) from the widget's style controls. The pill is the whole affordance
 * here, so those are neutralised rather than fought.
 */
.elementor-widget-ota-sig-menu .elementor-nav-menu--main .elementor-nav-menu .elementor-item::after,
.elementor-widget-ota-sig-menu .elementor-nav-menu--main .elementor-nav-menu .elementor-item::before {
	display: none;
}

/*
 * Hover swaps the paint mode, hollow to solid, which is what every Outline
 * button on this site does (see the type table in ota-buttons.css). Asked for
 * by Bryce on 19 Aug 2026 in place of the underline this started with.
 */
.elementor-widget-ota-sig-menu .elementor-nav-menu--main .elementor-nav-menu .elementor-item:hover,
.elementor-widget-ota-sig-menu .elementor-nav-menu--main .elementor-nav-menu .elementor-item:focus {
	background-color: var(--osm-pill);
	color: var(--osm-on-pill);
	text-decoration: none;
}

/*
 * The current page's pill, filled. Pro marks it `elementor-item-active` and
 * WordPress adds aria-current, so both are honoured.
 */
.elementor-widget-ota-sig-menu .elementor-nav-menu--main .elementor-nav-menu .elementor-item-active,
.elementor-widget-ota-sig-menu .elementor-nav-menu--main .elementor-nav-menu .elementor-item[aria-current='page'],
.elementor-widget-ota-sig-menu .elementor-nav-menu--main .elementor-nav-menu .elementor-item-active:hover,
.elementor-widget-ota-sig-menu .elementor-nav-menu--main .elementor-nav-menu .elementor-item[aria-current='page']:hover {
	background-color: var(--osm-active-bg);
	/* !important because the base border above needs its own, and a shorthand
	   with !important beats a longhand without one. */
	border-color: var(--osm-active-bg) !important;
	color: var(--osm-active-text);
	text-decoration: none;
}

/*
 * The theme's nav walker slips an empty icon span into every item; collapsed
 * so it does not open a gap inside the pill.
 */
.elementor-widget-ota-sig-menu .elementor-item .icon:empty {
	display: none;
}

/*
 * THE BAND THE PILLS SIT IN, from Frame 735 (343:6957), the parent of Frame 736.
 * 1440.5 x 93 with a 1px top border on the divider role and the pill row inset
 * 22px from the top, which leaves 23px under it. The border is drawn inside the
 * 93, so the padding above it is 21: 1 + 21 + 48 + 23 = 93, pill top at 22.
 *
 * It goes on the TOP section rather than the widget because the line spans the
 * full viewport while the widget is inside the boxed container. `:has()` on
 * `.elementor-top-section` deliberately does not match the inner section that
 * template 2351 wraps the widget in, so the border and padding land once, not
 * twice. Elementor's own 10px column padding is zeroed on the way through: this
 * lifts to (0,3,0) against its (0,2,0), and the nav section holds nothing but
 * the menu on all four SIG templates.
 *
 * The divider fallback is the ash/white resolved value; on the navy band the
 * role resolves to #F0E7D833, which is Figma's bar/Divider.
 */
.elementor-top-section:has(.elementor-widget-ota-sig-menu) {
	padding-top: 21px;
	padding-bottom: 23px;
	border-top: 1px solid var(--ota-divider, rgba(0, 48, 56, 0.2));
}

.elementor-top-section:has(.elementor-widget-ota-sig-menu) .elementor-widget-wrap {
	padding-top: 0;
	padding-bottom: 0;
}
