/* ==========================================================================
   SUDAIR PHARMA — SITE HEADER
   Bespoke corporate header. 12-column grid, single-line navigation, mega menus,
   sticky with a shadow that appears only once the page has scrolled.
   ========================================================================== */

:root {
	--sud-hd-h: 86px;          /* brief: 80–90px */
	--sud-hd-h-mobile: 68px;
}

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */

.sud-hd {
	position: sticky;
	top: 0;
	z-index: 200;
	background: var(--sud-surface);
	border-bottom: 1px solid var(--sud-line);
	transition: box-shadow .35s var(--sud-ease),
	            border-color .35s var(--sud-ease);
}

/*
 * THE ADMIN BAR.
 *
 * WordPress pins its own bar to the top of the window for a signed-in editor
 * and pushes the document down by its height. The header sticks at top: 0,
 * which is the top of the WINDOW, not the top of the document — so the moment
 * the page scrolls the header slides under the bar and loses its top 32px.
 * Signed-out visitors never see this; an editor sees it on every page.
 *
 * Stopping the header at the bar's height puts it back where it belongs.
 *
 * Only above 782px. That is where WordPress's bar is `position: fixed`; at
 * narrower widths it is absolute and scrolls away with the page, so the header
 * should carry on stopping at 0 there and not leave a gap behind it.
 */
@media screen and (min-width: 783px) {
	body.admin-bar .sud-hd {
		top: 32px;
	}
}

/* Shadow only after scroll — flat at rest, lifted in motion */
.sud-hd.is-stuck {
	box-shadow: 0 1px 2px rgba(11, 31, 23, .04), 0 8px 28px rgba(11, 31, 23, .08);
	border-bottom-color: transparent;
}

/* The 12-column grid the brief asks for.
 *
 * Still twelve tracks, but the first and last carry a minimum so the logo and
 * the CTA are never squeezed — and, more usefully, so the nav gets ten tracks
 * instead of eight. Seven top-level items (Home plus six sections) measured
 * 787px against the 764px an eight-track span allowed; widening the nav is the
 * honest fix, rather than shrinking the type until it fits. */
.sud-hd__grid {
	max-width: var(--sud-maxw);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 3vw, 2.5rem);
	block-size: var(--sud-hd-h);

	display: grid;
	grid-template-columns:
		minmax(112px, 1fr)          /* 1  — logo   */
		repeat(10, 1fr)             /* 2–11 — nav  */
		minmax(136px, 1fr);         /* 12 — actions */
	align-items: center;
	column-gap: clamp(0.75rem, 1.4vw, 1.25rem);
}

.sud-hd__logo    { grid-column: 1 / 2;  display: flex; align-items: center; }
.sud-hd__nav     { grid-column: 2 / 12; display: flex; justify-content: center; min-width: 0; }
.sud-hd__actions { grid-column: 12 / -1; display: flex; align-items: center; justify-content: flex-end; gap: var(--sud-3); }

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */

.sud-hd__logo img {
	block-size: auto;
	inline-size: auto;
	max-block-size: 54px;
	max-inline-size: 100%;
	display: block;
	transition: opacity var(--sud-dur) var(--sud-ease);
}

.sud-hd__logo:hover img { opacity: .82; }

.sud-hd__wordmark {
	font-family: var(--sud-font-display);
	font-weight: 800;
	font-size: 1.15rem;
	color: var(--sud-green-700);
	letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Navigation — one line, never wraps
   -------------------------------------------------------------------------- */

.sud-hd__list {
	display: flex;
	align-items: center;
	gap: clamp(0.1rem, 0.45vw, 0.35rem);
	margin: 0;
	padding: 0;
	list-style: none;
	flex-wrap: nowrap;           /* the brief's hard requirement */
	white-space: nowrap;
	max-inline-size: 100%;
}

.sud-hd__item { position: static; }  /* mega panel positions against the header */

/*
 * A dropdown-only item is an <a> with no href (see template-parts/header.php),
 * so it needs nothing here beyond a pointer — every rule below already applies
 * to it, which is exactly why it is an anchor and not a button.
 */
.sud-hd__link[role="button"] {
	cursor: pointer;
}

.sud-hd__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	/* Sized so six labels fit the 8-column nav track without spilling into the
	   logo or CTA cells. Measured, not guessed. */
	padding: 0.55rem clamp(0.3rem, 0.6vw, 0.6rem);
	font-size: clamp(0.8125rem, 0.62vw + 0.36rem, 0.9375rem);
	font-family: var(--sud-font-body);
	font-weight: 600;
	line-height: 1;
	color: var(--sud-ink);
	text-decoration: none;
	border-radius: var(--sud-radius-sm);
	position: relative;
	transition: color .28s var(--sud-ease);
}

/*
 * Understated underline that grows from the centre.
 *
 * `left`, not `inset-inline-start`. The underline is centred by putting its
 * start at 50% and pulling it back half its own width with translateX(-50%) —
 * but translate is physical and always pulls LEFT, while the logical inset
 * flips to `right: 50%` in Arabic. There the two added up instead of
 * cancelling, and every Arabic underline sat one full underline-width left of
 * its label (39-93px). Centring has no reading direction: `left: 50%` is the
 * same value in English and correct in both.
 */
.sud-hd__link::after {
	content: '';
	position: absolute;
	inset-block-end: 0.15rem;
	left: 50%;
	inline-size: 0;
	block-size: 2px;
	border-radius: 2px;
	background: var(--sud-green-500);
	transform: translateX(-50%);
	transition: inline-size .32s var(--sud-ease);
}

.sud-hd__link:hover,
.sud-hd__link:focus-visible { color: var(--sud-green-700); }

.sud-hd__link:hover::after,
.sud-hd__item:focus-within > .sud-hd__link::after { inline-size: calc(100% - 1.2rem); }

.sud-hd__item.is-current > .sud-hd__link { color: var(--sud-green-700); }
.sud-hd__item.is-current > .sud-hd__link::after { inline-size: calc(100% - 1.2rem); }

.sud-hd__caret {
	inline-size: 9px;
	block-size: 6px;
	flex: none;
	opacity: .55;
	transition: transform .32s var(--sud-ease), opacity .32s var(--sud-ease);
}

.sud-hd__item.is-open .sud-hd__caret { transform: rotate(180deg); opacity: 1; }
.sud-hd__item.is-open > .sud-hd__link { color: var(--sud-green-700); }

/* --------------------------------------------------------------------------
   Mega menu
   -------------------------------------------------------------------------- */

/*
 * One panel spanning the header, sitting on a tint rather than the header's
 * white. The tint is what makes it read as a separate surface dropped below the
 * bar; on white it looked like the header had simply grown taller. The hairline
 * above it is the seam between the two.
 *
 * No rounded corners: the panel runs edge to edge, and rounding a full-bleed
 * band leaves odd gaps at the viewport sides. Radius is for contained elements
 * in this design system.
 */
.sud-mega {
	position: absolute;
	inset-inline: 0;
	inset-block-start: 100%;
	background: var(--sud-surface-2);
	border-top: 1px solid var(--sud-line);
	border-bottom: 1px solid var(--sud-line);
	box-shadow: 0 28px 56px -16px rgba(11, 31, 23, .18);
	opacity: 0;
	transform: translateY(-10px);
	pointer-events: none;
	transition:
		opacity .3s var(--sud-ease),
		transform .34s var(--sud-ease),
		visibility .34s;
	z-index: 5;
}

.sud-mega[hidden] { display: block; }  /* animate instead of snapping */

.sud-hd__item.is-open .sud-mega {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.sud-mega__inner {
	max-width: var(--sud-maxw);
	margin-inline: auto;
	padding: clamp(2.25rem, 3.4vw, 3.25rem) clamp(1.25rem, 3vw, 2.5rem);
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	column-gap: clamp(2rem, 3.6vw, 3.5rem);
	row-gap: var(--sud-5);
}

/* A hairline between the introduction and the links, so the panel reads as one
   composition with two parts rather than two blocks that happen to be adjacent. */
.sud-mega__lead {
	grid-column: 1 / span 4;
	border-inline-end: 1px solid var(--sud-line);
	padding-inline-end: clamp(1.5rem, 2.6vw, 2.5rem);
}

.sud-mega__eyebrow {
	display: block;
	font-family: var(--sud-font-body);
	font-size: var(--sud-text-xs);
	font-weight: 700;
	letter-spacing: .14em;
	/* text-transform: uppercase removed — site uses normal capitalization */
	color: var(--sud-green-700);
	margin-bottom: var(--sud-3);
}

.sud-mega__blurb {
	font-size: var(--sud-text-sm);
	line-height: 1.65;
	color: var(--sud-muted);
	margin: 0 0 var(--sud-4);
	max-width: 34ch;
}

.sud-mega__all {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--sud-text-sm);
	font-weight: 600;
	color: var(--sud-green-700);
	text-decoration: none;
}

.sud-mega__all svg { inline-size: 14px; block-size: 10px; transition: transform .3s var(--sud-ease); }
.sud-mega__all:hover svg { transform: translateX(3px); }

.sud-mega__links {
	grid-column: 5 / span 8;
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(1.5rem, 3vw, 2.5rem);
	row-gap: 2px;
	align-content: start;
}

.sud-mega__links--dense { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.sud-mega__links a {
	display: block;
	padding: 0.65rem 0.85rem;
	border-radius: var(--sud-radius-sm);
	font-family: var(--sud-font-body);
	font-size: var(--sud-text-sm);
	font-weight: 500;
	line-height: 1.45;
	color: var(--sud-body);
	text-decoration: none;
	/*
	 * Colour and ground only. The hover previously also shifted
	 * padding-inline-start, which slid the label sideways under the cursor —
	 * the text moving as you point at it reads as a glitch, not as polish.
	 */
	transition: background .24s var(--sud-ease), color .24s var(--sud-ease);
}

.sud-mega__links a:hover,
.sud-mega__links a:focus-visible,
.sud-mega__links a.is-current {
	background: var(--sud-surface);       /* lifts off the tinted panel */
	color: var(--sud-green-700);
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

/* `!important` on colour only: Elementor's global link rule reaches this anchor
   and was rendering the label near-black on brand green (2.08:1). */
.sud-hd__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	padding: 0.7rem 1.35rem;
	border-radius: 100px;
	background: var(--sud-green-700);
	border: 1px solid var(--sud-green-700);
	color: #fff !important;
	font-family: var(--sud-font-body);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background .3s var(--sud-ease),
	            border-color .3s var(--sud-ease),
	            transform .3s var(--sud-ease),
	            box-shadow .3s var(--sud-ease);
}

.sud-hd__cta:hover {
	background: var(--sud-green-800);
	border-color: var(--sud-green-800);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(0, 98, 65, .24);
}

/* --------------------------------------------------------------------------
   Burger
   -------------------------------------------------------------------------- */

/*
 * WRITTEN AT TWO CLASSES ON PURPOSE.
 *
 * Elementor's global kit styles every <button> on the site:
 *
 *   .elementor-kit-5 button { background-color: #006344; border-radius: 20px;
 *                             padding: 16px 20px; color: #fff }
 *
 * That is (0,1,1) and loads after this file, so a single-class `.sud-hd__burger`
 * loses to it. It is what turned this button into a solid green circle with the
 * three rules squeezed to 4px wide, and what put a green pill around every
 * drawer row further down. Two classes settle it without !important.
 */
.sud-hd .sud-hd__burger {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;

	inline-size: 40px;
	block-size: 40px;
	padding: 0;

	/* A green disc with white rules, the same on every page. It used to be a
	   white disc with green rules, and the home hero overrode it because white
	   rules on a white disc showed nothing; the green is now the default, so
	   that override is gone and there is one burger, not two. The button is
	   `display: none` above 1150px, so this cannot reach the desktop header. */
	background: var(--sud-green-700);
	border: 1px solid var(--sud-green-700);
	border-radius: 50%;
	box-shadow: none;
	cursor: pointer;

	transition: background-color .25s var(--sud-ease),
	            border-color .25s var(--sud-ease);
}

.sud-hd .sud-hd__burger span {
	display: block;
	block-size: 1.5px;
	inline-size: 16px;
	border-radius: 2px;
	background: #fff;
	transition: transform .3s var(--sud-ease), opacity .2s var(--sud-ease);
	transform-origin: center;
}

/*
 * Three classes for the same reason as the drawer rows: the kit's
 * `.elementor-kit-5 button:hover` is (0,2,1) and loads later, so a two-class
 * `:hover` here would only tie and lose. `.sud-hd__actions` is the burger's own
 * parent, so the chain is honest rather than padded.
 *
 * The green is `--sud-green-700`, the same token behind the Contact Us button.
 * The rules go white against it, and the border matches the fill so the circle
 * reads as one solid shape rather than a ring around a green disc.
 */
/*
 * THE OPEN → CLOSE RESET.
 *
 * Clicking or tapping the burger leaves :focus on it. The kit's rule is
 *
 *   .elementor-kit-5 button:hover, .elementor-kit-5 button:focus
 *     { background-color: …; color: …; border-radius: 20px }
 *
 * at (0,2,1), and the base `.sud-hd .sud-hd__burger` above is only (0,2,0) — so
 * the moment the button had been clicked once, the kit repainted its background
 * and rounded it to 20px, and the button kept that look until focus moved
 * elsewhere. That is why it was correct on load and wrong after opening and
 * closing the drawer: nothing "restored old CSS", the button simply entered a
 * state this file had no rule for.
 *
 * :hover and :focus-visible were covered; plain :focus was not. It is now, and
 * it restates the default look rather than adding a new one. The :hover and
 * :focus-visible rules follow it at equal specificity, so they still win while
 * the pointer is on the button or a keyboard is driving it.
 */
.sud-hd .sud-hd__actions .sud-hd__burger:focus {
	background: var(--sud-green-700);
	border-color: var(--sud-green-700);
	border-radius: 50%;
}

.sud-hd .sud-hd__actions .sud-hd__burger:focus span { background: #fff; }

@media (hover: hover) {
	.sud-hd .sud-hd__actions .sud-hd__burger:hover,
	.sud-hd .sud-hd__actions .sud-hd__burger:focus:hover {
		background: var(--sud-green-700);
		border-color: var(--sud-green-700);
	}

	.sud-hd .sud-hd__actions .sud-hd__burger:hover span,
	.sud-hd .sud-hd__actions .sud-hd__burger:focus:hover span { background: #fff; }
}

.sud-hd .sud-hd__actions .sud-hd__burger:focus-visible {
	background: var(--sud-green-700);
	border-color: var(--sud-green-700);
	outline: 2px solid var(--sud-green-500);
	outline-offset: 2px;
}

.sud-hd .sud-hd__actions .sud-hd__burger:focus-visible span { background: #fff; }

/* The rules need their own transition — the button animates its background,
   they animate their colour, and the two are separate properties. */
.sud-hd .sud-hd__burger span {
	transition: transform .3s var(--sud-ease),
	            opacity .2s var(--sud-ease),
	            background-color .25s var(--sud-ease);
}

.sud-hd .sud-hd__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sud-hd .sud-hd__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sud-hd .sud-hd__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Mobile drawer
   -------------------------------------------------------------------------- */

.sud-drawer {
	position: fixed;
	inset-block-start: var(--sud-hd-h-mobile);
	inset-inline: 0;
	inset-block-end: 0;
	background: var(--sud-surface);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: var(--sud-5) clamp(1.25rem, 5vw, 2rem) var(--sud-9);
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity .3s var(--sud-ease), transform .3s var(--sud-ease);
	z-index: 190;
}

.sud-drawer[hidden] { display: block; pointer-events: none; }
.sud-drawer.is-open { opacity: 1; transform: none; pointer-events: auto; }

.sud-drawer__list { list-style: none; margin: 0; padding: 0; }

.sud-drawer__item { border-bottom: 1px solid var(--sud-line); }

/*
 * Two classes again, for the same reason as the burger: `.sud-drawer__toggle`
 * is a <button>, so Elementor's `.elementor-kit-5 button` was giving every
 * dropdown row a solid green background, white text, a 20px radius and 16/20
 * padding — the green pills. The plain <a> rows next to them were untouched,
 * which is why only About, Capabilities, Therapeutic Areas and Media looked
 * like buttons and Home, Patient Safety and Careers did not.
 *
 * A row is a row: no background, no border, no radius, one height.
 */
.sud-drawer .sud-drawer__link,
.sud-drawer .sud-drawer__toggle {
	inline-size: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sud-4);

	min-block-size: 56px;
	padding: 0.95rem 0;

	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;

	font-family: var(--sud-font-display);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	color: var(--sud-green-800);
	text-align: start;
	text-decoration: none;
	cursor: pointer;
}

/* Small, clean, hard against the right edge. */
.sud-drawer .sud-drawer__toggle svg {
	inline-size: 12px;
	block-size: 8px;
	flex: none;
	margin-inline-start: auto;
	color: var(--sud-green-700);
	transition: transform .3s var(--sud-ease);
}

.sud-drawer .sud-drawer__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sud-drawer .sud-drawer__toggle[aria-expanded="true"] { color: var(--sud-green-700); }

/* --------------------------------------------------------------------------
   Drawer row hover / focus

   THREE CLASSES, NOT TWO. Elementor's kit carries

     .elementor-kit-5 button:hover, .elementor-kit-5 button:focus
       { background-color: …; color: …; border-radius: 20px }

   at (0,2,1), and it loads after this file. `.sud-drawer .sud-drawer__toggle`
   is (0,2,0) and a `:hover` on it only reaches (0,2,1) — a tie, which the kit
   then wins on source order. Adding `.sud-drawer__item` to the chain makes it
   (0,3,1) and settles it without !important. The kit's 20px radius is what put
   a small rounded box around the label rather than a highlighted row.

   THE BLEED. The row has no horizontal padding, so a background painted on it
   alone would sit flush against the first letter. The hover adds 12px of inline
   padding and takes it straight back as negative margin, so the green gains
   even padding on both sides while the label and the chevron do not move a
   pixel from where they sit at rest. The drawer's own gutter is 20px, so the
   highlight stops 8px short of the drawer edge and cannot overflow it.

   The green is `--sud-green-700` — the same token the Contact Us button uses,
   which computes to rgb(0, 99, 68). It is not a second green picked to match.
   -------------------------------------------------------------------------- */

/*
 * A tap leaves focus behind. Without this the kit's :focus box would stay on
 * the row after it is opened, so plain :focus is reset and only keyboard focus
 * (:focus-visible, below) gets the highlight.
 */
.sud-drawer .sud-drawer__item .sud-drawer__toggle:focus {
	background: none;
	border-radius: 0;
	color: var(--sud-green-800);
}

.sud-drawer .sud-drawer__item .sud-drawer__toggle:focus svg { color: var(--sud-green-700); }

@media (hover: hover) {
	.sud-drawer .sud-drawer__item .sud-drawer__toggle:hover {
		padding-inline: 12px;
		margin-inline: -12px;
		inline-size: calc(100% + 24px);

		background: var(--sud-green-700);
		border-radius: 8px;
		color: #fff;
	}

	.sud-drawer .sud-drawer__item .sud-drawer__toggle:hover svg { color: #fff; }
}

.sud-drawer .sud-drawer__item .sud-drawer__toggle:focus-visible {
	padding-inline: 12px;
	margin-inline: -12px;
	inline-size: calc(100% + 24px);

	background: var(--sud-green-700);
	border-radius: 8px;
	color: #fff;
	outline: 2px solid var(--sud-green-500);
	outline-offset: 2px;
}

.sud-drawer .sud-drawer__item .sud-drawer__toggle:focus-visible svg { color: #fff; }

/* --------------------------------------------------------------------------
   The same row highlight, for touch

   WHY THE HOVER RULE ALONE WAS NOT ENOUGH ON A PHONE.
   The rule above sits inside `@media (hover: hover)`. A phone reports
   `hover: none`, so that block never applies there — which is exactly why the
   highlight worked on a tablet in a desktop browser and did nothing on mobile.
   `:focus-visible` does not fill the gap either: a tap gives a button :focus,
   not :focus-visible, so it stays unstyled.

   Two states carry it on touch instead:

     :active                    while the finger is down
     [aria-expanded="true"]     once the section is open, and for as long as it
                                stays open — so a tap produces a visible, and
                                lasting, result

   These are outside the hover query on purpose: they are the touch path. Both
   are (0,4,0), the same weight as the :focus reset above, and they are placed
   after it so they win the tie.

   Same declarations as the hover rule — the same green token behind Contact Us,
   the same 12px bleed, so the label and chevron do not move.
   -------------------------------------------------------------------------- */

.sud-drawer .sud-drawer__item .sud-drawer__toggle:active,
.sud-drawer .sud-drawer__item .sud-drawer__toggle[aria-expanded="true"] {
	padding-inline: 12px;
	margin-inline: -12px;
	inline-size: calc(100% + 24px);

	background: var(--sud-green-700);
	border-radius: 8px;
	color: #fff;
}

.sud-drawer .sud-drawer__item .sud-drawer__toggle:active svg,
.sud-drawer .sud-drawer__item .sud-drawer__toggle[aria-expanded="true"] svg { color: #fff; }

.sud-drawer__sub {
	list-style: none;
	margin: 0;
	padding: 0 0 var(--sud-4);
}

.sud-drawer__sub a {
	display: block;
	padding: 0.6rem 0 0.6rem 1rem;
	border-inline-start: 2px solid var(--sud-line);
	font-size: var(--sud-text-sm);
	font-weight: 500;
	color: var(--sud-body);
	text-decoration: none;
	transition: border-color .25s var(--sud-ease), color .25s var(--sud-ease);
}

.sud-drawer__sub a:hover {
	border-inline-start-color: var(--sud-green-500);
	color: var(--sud-green-700);
}

.sud-drawer .sud-drawer__cta {
	display: block;
	inline-size: 100%;
	margin-top: var(--sud-6);
	padding: 0.9rem 1.5rem;
	border: 0;
	border-radius: 100px;
	background: var(--sud-green-700);
	color: #fff !important;
	font-family: var(--sud-font-body);
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
}

body.sud-nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Breakpoints
   Nav collapses when six labels can no longer sit comfortably on one line,
   rather than at an arbitrary device width.
   -------------------------------------------------------------------------- */

@media (max-width: 1150px) {
	.sud-hd__grid  { block-size: var(--sud-hd-h-mobile); grid-template-columns: repeat(12, 1fr); }
	.sud-hd__logo  { grid-column: 1 / span 6; }
	.sud-hd__nav   { display: none; }
	.sud-hd__actions { grid-column: 7 / span 6; }
	.sud-hd .sud-hd__burger { display: flex; }
	.sud-hd__logo img { max-block-size: 42px; }
}

/* Between 1151px and ~1320px the seven labels are tight against the track.
   Tighten spacing rather than let them collide with the logo or CTA. */
@media (min-width: 1151px) and (max-width: 1320px) {
	.sud-hd__link { padding-inline: 0.3rem; font-size: 0.8125rem; }
	.sud-hd__list { gap: 0.1rem; }
}

@media (max-width: 560px) {
	.sud-hd__cta { display: none; }   /* the drawer carries it */
}

@media (min-width: 1151px) {
	.sud-drawer { display: none !important; }
}

/* --------------------------------------------------------------------------
   RTL
   -------------------------------------------------------------------------- */

[dir="rtl"] .sud-mega__all svg,
[dir="rtl"] .sud-hd__caret { transform: scaleX(-1); }

[dir="rtl"] .sud-hd__item.is-open .sud-hd__caret { transform: scaleX(-1) rotate(180deg); }
[dir="rtl"] .sud-mega__all:hover svg { transform: scaleX(-1) translateX(3px); }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.sud-hd, .sud-mega, .sud-drawer,
	.sud-hd__link, .sud-hd__link::after,
	.sud-hd__cta, .sud-hd__caret,
	.sud-mega__links a, .sud-hd__burger span {
		transition-duration: .01ms !important;
	}
	.sud-hd__cta:hover { transform: none; }
}
