/* =====================================================
   Adventure Medic — Global: top bar + footer
   ===================================================== */

/* Headings that are also links (ours or GenerateBlocks-built, e.g.
   Elements) should take the heading's own color, not GP's default
   link accent — GP's `a { color: var(--accent); }` otherwise wins
   over inherited color since inheritance loses to any matching rule. */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
	color: inherit;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
	color: var(--accent);
}

/* Article body copy links: no underline normally, underline on hover.
   Scoped to the content wrapper so nav, buttons, cards and "more" links
   (which set their own text-decoration) are unaffected. Single posts use
   the GenerateBlocks content template, whose wrapper is
   .dynamic-entry-content; pages use GP's .entry-content. The share
   buttons and carousel links sit inside the post wrapper, so they are
   excluded from the hover underline. */
:is(.entry-content, .dynamic-entry-content) a {
	text-decoration: none;
}

:is(.entry-content, .dynamic-entry-content) a:not(.tam-share-buttons__btn, .tam-photo-carousel__link):hover {
	text-decoration: underline;
}

/* Single posts only: GP's `main > * { margin-bottom: 20px; }` (from
   GP Premium's Spacing setting, in the parent theme's compiled CSS)
   otherwise leaves a 20px gap below the article and below the
   related-posts block, which sits as a sibling of <article> in <main>. */
.single-post main > * {
	margin-bottom: 0;
}

/* =====================================================
   Top utility bar
   ===================================================== */
.tam-top-bar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: transparent;
	color: #bbb;
	font-size: 0.75rem;
	z-index: 10;
}

.tam-top-bar__inner {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding-top: 1rem;
	padding-right: 1rem;
	padding-bottom: 0.45rem;
	gap: 1rem;
}

/* "Show Social Media Icons" set to "Never" — the icons never render
   (see tam_top_bar() in functions.php), so this bar's own top/bottom
   padding no longer has anything to clear space for. .inside-header's
   own 30px top padding (further down) still spaces the logo/nav below
   it, so collapsing this doesn't lose that separation, just the
   now-pointless extra padding on top of it. */
.tam-social-hidden .tam-top-bar__inner {
	padding-top: 0;
	padding-bottom: 0;
}

/* Social icons */
.tam-top-bar__social {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-left: auto;
}

.tam-top-bar__social-link svg {
	width: 1.5rem;
	height: 1.5rem;
}

.tam-top-bar__social-link {
	display: flex;
	align-items: center;
	color: #bbb;
	line-height: 1;
	transition: color 0.15s;
}

.tam-top-bar__social-link:hover {
	color: #fff;
}

/* Secondary nav */
.tam-top-bar__nav {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
}

.tam-top-bar__nav li {
	margin: 0;
}

.tam-top-bar__nav li + li::before {
	content: '|';
	color: #555;
	padding: 0 0.4rem;
}

.tam-top-bar__nav a {
	color: #bbb;
	text-decoration: none;
}

.tam-top-bar__nav a:hover {
	color: var( --tam-link-hover-color );
}

/* =====================================================
   Site header — blue mountain banner
   ===================================================== */

/*
 * body prefix beats GP's equal-specificity inline style (.site-header).
 * Approximate blue: #2a5080 — adjust once you can eyedrop the live site.
 * The live site has a mountain silhouette background image; add it here
 * via background-image once you have the file.
 */
body .site-header {
	background-color: transparent;
}

/* Resting header background — solid colour, matching the scrolled state
   override further down (.site-header.tam-header--scrolled .inside-
   header.grid-container). */
.inside-header.grid-container {
	background-image: none;
	background-color: #253859;
}

/* Resting state: logo stacked above the nav, which wraps to its own
   full-width row below (see .inside-header > .main-navigation further
   down). The scrolled sticky-header section switches this to a single
   row with the logo on the left — see the .tam-header--scrolled
   overrides there; nothing here should change that resting layout.
   body prefix needed: GP's main.min.css declares .inside-header twice
   (align-items: center, and padding: 20px 40px), both single-class and
   both loading after this file (see the .site-header comment above for
   why) — without the extra specificity those GP values win the tie and
   silently override ours. */
body .inside-header {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	padding: 30px 0px 0px 1rem;
}

/* logo row: natural size, bottom gap before the nav row */
.inside-header .site-logo,
.inside-header .site-branding-container {
	flex: 0 0 auto;
	padding-top: 1.1rem;
	padding-bottom: 1rem;
}

/* Logo image — GP outputs <img class="header-image is-logo-image">.
   body prefix needed: GP's Customizer "Logo Width" setting outputs an
   inline .site-header .header-image { width: 605px } rule at the same
   specificity, loaded after this file for the same reason as above —
   left unbeaten, it pins the image to its original width and distorts
   it once the sticky state shrinks the height and swaps the logo. */
body .site-logo .header-image {
	max-height: 110px;
	max-width: 100%;
	width: auto;
	height: auto;
	/* Pre-promotes this element to its own compositor layer so the fade
	   in sticky-header.js (assets/js/sticky-header.js) has nothing left
	   to set up when it starts — without this hint the promotion happens
	   on the transition's first frame instead, which shows up as a hitch
	   right at the scroll threshold. */
	will-change: opacity;
}

/* Text fallback if no logo image is uploaded yet */
.main-title a,
.main-title a:visited {
	color: #fff;
}

.site-description {
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.875rem;
}

/* =====================================================
   Primary navigation — white category bar
   =====================================================
   GP's <nav> element has class "main-navigation" only;
   there is no "nav-primary" class.
   Menu list lives in: .main-navigation .main-nav ul li a
   (where .main-nav is a <div> wrapper around the <ul>)
   ===================================================== */

/* Outer nav bar — white background, full-width row in the header flex */
body .main-navigation {
	background: transparent;
	border: none;
}

.inside-header > .main-navigation {
	flex: 0 0 100%;
	width: 100%;
	/* Same reasoning as .site-logo .header-image above: pre-promote so
	   the fade in sticky-header.js starts on an already-composited layer
	   instead of paying that cost on the transition's first frame. */
	will-change: opacity;
}

/* Inner nav strip — all colours controlled via .tam-inner-nav */
.tam-inner-nav {
	background-color: transparent;
}

body .tam-inner-nav .main-nav ul li a {
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	text-transform: none;
	padding-left: 15px;
	padding-right: 15px;
}

.tam-inner-nav .main-nav ul li a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.15);
	text-decoration: none;
}

.tam-inner-nav .main-nav ul li[class*="current-menu-"] > a {
	color: #fff;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.1);
}

/* Social links appended after the dropdown's <ul> (see
   tam_add_social_to_mobile_menu_args() in functions.php) — hidden by
   default everywhere, including the desktop nav bar, since .main-nav
   is the same markup at both widths. Only switched on below, at
   mobile, once the header is scrolled and the dropdown is open. */
.tam-mobile-menu-social {
	display: none;
}

.tam-inner-nav .menu-toggle {
	color: #fff;
}

/* "Menu" / "Close" label swap — both spans are always in the markup
   (see tam_mobile_menu_toggle_label() in functions.php), CSS just
   toggles which is visible off the .toggled class GP's menu.js applies
   to <nav class="main-navigation">. Mirrors how GP itself swaps the
   hamburger/cross icon (nth-child display toggling in GP's main.css). */
.tam-inner-nav .menu-toggle .tam-toggle-label-close {
	display: none;
}

.main-navigation.toggled .tam-inner-nav .menu-toggle .tam-toggle-label-open {
	display: none;
}

.main-navigation.toggled .tam-inner-nav .menu-toggle .tam-toggle-label-close {
	display: inline;
}

/* Hamburger icon + "Menu" label sizing, and a small downward nudge on
   the button itself. GP renders the icon as an SVG sized "width="1em"
   height="1em"" (see .gp-icon svg in GP's main.css) — em is relative to
   the SVG's own computed font-size, which it only has by inheriting one,
   so setting font-size on the wrapping .gp-icon span is what actually
   controls the rendered pixel size here, not a direct width/height. */
@media ( max-width: 1072px ) {
	.tam-inner-nav .menu-toggle .gp-icon {
		font-size: 20px;
	}

	/* Overrides GP's own .gp-icon svg { top: .125em; }. */
	.tam-inner-nav .menu-toggle .gp-icon svg {
		top: 1em;
	}

	.tam-inner-nav .menu-toggle .mobile-menu {
		font-size: 1.2em;
		position: relative;
		top: -3px;
	}

	.tam-inner-nav .menu-toggle {
		position: relative;
		top: 12px;
		/* GP's own .menu-toggle { padding: 0 20px; } — left as-is, only
		   the right side is zeroed. */
		padding-right: 0;
	}
}

/* Further shrink once actually scrolled — desktop's own resting→scrolled
   collapse mostly comes from its stacked (logo-above-nav) layout folding
   into a single row, which mobile has no equivalent of (it's already a
   single row at every scroll position, resting or not — see the "one and
   only mobile look" comment further down). The height mobile CAN still
   give up here is GP's own line-height: 60px on button.menu-toggle
   itself, which is unconditional and untouched above — that's what pins
   the button, and so the whole header row, to ~61px regardless of the
   icon/label's own size. Shrinking that directly is mobile's equivalent
   lever: different property, different numbers, same shrink-on-scroll
   effect desktop gets from its layout collapse. The icon (.gp-icon,
   20px) and label (.mobile-menu, 1.2em) themselves are deliberately
   NOT shrunk to match — both stay the same rendered size whether
   scrolled or not (set unconditionally above), only the button's own
   box gets shorter around them.

   Shrinking the button below the logo's own height (see .site-logo
   .header-image below — at mobile the logo isn't shrunk further here,
   since 70% max-width already keeps it well under the *resting* button
   height) flips which of the two is now .inside-header's tallest flex
   item, from the button to the logo. That matters because both still
   carry the same position: relative; top: 12px nudge (set above,
   unconditional, and needed to keep their centres aligned — see the
   comment on .site-logo further down): 12px of downward nudge was safe
   on the button when it was the tallest item with room to spare, but
   applied to whichever item is now tallest it pushes that item's bottom
   edge past .inside-header's own bottom edge — there's no slack left
   above the header's own padding-bottom for a tall item to nudge into.
   That's what was making the logo overflow past the header's bottom
   once scrolled. Reducing the nudge to 6px here, for both elements
   equally so their centres stay aligned, keeps the taller one (the
   logo) safely inside .inside-header's bottom edge again. */
@media ( max-width: 1072px ) {
	.site-header.tam-header--scrolled .tam-inner-nav .menu-toggle {
		line-height: 40px;
		top: 6px;
	}

	.site-header.tam-header--scrolled .inside-header .site-logo,
	.site-header.tam-header--scrolled .inside-header .site-branding-container {
		top: 6px;
	}
}

/* Right-align the hamburger + "Menu" label, and keep it there once the
   menu is opened. GP's .inside-navigation defaults to justify-content:
   space-between (0,2,0 via .main-navigation .inside-navigation) — with
   the menu <ul> hidden, .main-nav (its sibling) is an empty, ~0-width
   box, so space-between pins .menu-toggle to the start (left). An
   earlier version of this fix used margin-left: auto on .menu-toggle
   itself, which depends on how much free space is left in the row —
   fine while closed, but once toggled open .main-nav gains real width
   (the menu list), which changes how much free space there is and
   visibly shifted the icon/"Menu" text away from where they sat closed.
   Overriding justify-content on the container instead pins .menu-toggle
   to the end consistently in both states, since flex-end doesn't care
   how much space a sibling occupies. 3 classes (0,3,0) to clear GP's
   (0,2,0) regardless of load order. */
@media ( max-width: 1072px ) {
	.inside-header .tam-inner-nav.inside-navigation {
		justify-content: flex-end;
	}
}

/* =====================================================
   Sticky header — pins on scroll, shrinks, swaps the logo.
   Logo swap is driven by assets/js/sticky-header.js, which toggles
   this class and points the <img> at its data-scroll-logo attribute.
   ===================================================== */

/* Scroll anchoring lives here, at the actual scrolling box (html/body),
   not on .site-header below. overflow-anchor: none on the header itself
   only excludes the header from being CHOSEN as the anchor node — the
   browser can still anchor to a different element (typically whatever
   sits just after the header) and adjust scrollY to keep it visually
   steady when the header's own height changes. That adjustment is what
   was pushing scrollY back across the JS threshold in sticky-header.js
   and re-triggering the shrink toggle in the opposite direction: a
   feedback loop of the header growing and shrinking indefinitely, worse
   in some browsers (reported: persists indefinitely in Edge) than
   others. Disabling it at the scroll container turns the feature off
   entirely rather than just steering it elsewhere — the trade-off is
   losing scroll-anchoring's usual benefit sitewide (e.g. late-loading
   images no longer get automatically compensated for), which is an
   acceptable cost against a header that doesn't stop moving. */
html,
body {
	overflow-anchor: none;
}

/* body prefix needed: GP's own main.min.css sets .site-header {
   position: relative } and — because the child theme's enqueue runs
   before GP's own — that rule prints after ours in <head>, so at equal
   specificity it would otherwise win the cascade and cancel sticky. */
body .site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	overflow-anchor: none;
	/* Isolates this element's layout/style recalculation from the rest
	   of the page — a resize inside it (the shrink) doesn't need to
	   ripple a recalculation through content outside it, and vice versa.
	   `size` is deliberately omitted: that would require a fixed
	   intrinsic size, which contradicts the header actually changing
	   height on scroll. */
	contain: layout style;
}

/* "Show Social Media Icons" set to "On full header" — hide just the
   icons (not the secondary nav beside them) once scrolled, at any
   width. This is a separate, deliberately-configured feature from the
   layout differences below, so it's left universal rather than folded
   into the desktop-only block. The .tam-social-hide-on-scroll body
   class only exists in that mode (see tam_social_visibility_body_class()
   in functions.php); "Always" and "Never" need no CSS here at all. */
.tam-social-hide-on-scroll .site-header.tam-header--scrolled .tam-top-bar__social {
	display: none;
}

/* Minimised (scrolled) header background — solid colour instead of the
   resting mountain-banner image, which lives on .inside-header.grid-
   container further up. Universal (not folded into the desktop-only
   block below) so it applies at every width, same as the social-icons
   rule above. */
.site-header.tam-header--scrolled .inside-header.grid-container {
	background-image: none;
	background-color: #253859;
}

/* Everything below is desktop-only (min-width: 1073px — one pixel above
   GP's own 1072px mobile breakpoint). At mobile the header should look
   the same whether scrolled or not; the only thing that's allowed to
   differ is which logo image is showing, and that's handled entirely by
   assets/js/sticky-header.js swapping the <img> src — none of these
   layout/sizing overrides should be part of that difference at that
   width, only above it. */
@media ( min-width: 1073px ) {
	/* "Space Below Header (scrolled)" Customizer control. A border rather
	   than padding: .site-header's own background is transparent (see
	   the blue-mountain-banner rule further up), so padding here would
	   let whatever's scrolling underneath show through instead of the
	   solid content background the control promises. Height is 0 by
	   default (border-bottom-width: 0px), so nothing renders until the
	   site owner sets a value. --base-2 is GP's own body background-color
	   variable (GP core: inc/css-output.php sets `body { background-color:
	   var(--base-2) }` by default), used so this keeps matching body's
	   actual background if the site's colour scheme ever changes; #fff is
	   only the fallback. */
	.site-header.tam-header--scrolled {
		border-bottom-style: solid;
		border-bottom-width: var( --tam-header-scroll-space-below, 0px );
		border-bottom-color: var( --base-2, #ffffff );
	}

	/* .tam-top-bar (social icons + secondary nav) is intentionally not
	   touched here — it must stay exactly where it is when the header
	   shrinks, which is also why padding-top above is never overridden
	   below: that's the clearance it's absolutely positioned within.

	   padding and max-height below are NOT transitioned. Animating layout
	   properties (padding, max-height, width...) forces a full page reflow
	   on every frame, which stutters because it competes with the browser's
	   own scroll compositing. These snap instantly instead — a single cheap
	   reflow — and assets/js/sticky-header.js fakes the smooth ease with an
	   opacity fade on the logo and nav, which is GPU-composited and never
	   touches layout. */

	/* Scrolled only: collapse the stacked resting layout into a single row —
	   logo on the left, nav immediately to its right (flex-start + gap,
	   not space-between, so the nav sits next to the logo instead of
	   being pushed off to the far edge). Top padding stays untouched
	   (still 30px, inherited from the resting rule above) since that's
	   the clearance .tam-top-bar sits within; only the bottom padding
	   shrinks. flex-wrap/align-items/justify-content aren't transitionable,
	   so this snaps at the scroll threshold rather than animating — the
	   padding/max-height changes below still ease. */
	.site-header.tam-header--scrolled .inside-header {
		flex-wrap: nowrap;
		align-items: center;
		justify-content: flex-start;
		/* Value comes from the "Sticky Header" Customizer section (Appearance
		   → Customize → Sticky Header → Space Between Logo & Menu) via an
		   inline custom property in functions.php (tam_customize_register /
		   tam_sticky_header_css); the 2rem here is only the fallback if that
		   hasn't printed for some reason. */
		gap: var( --tam-header-scroll-gap, 2rem );
		padding-bottom: 8px;
	}

	/* Whenever the social icons are off while scrolled — "Never" (always
	   off) or "On full header" (off once scrolled, via
	   .tam-social-hide-on-scroll) — the logo↔nav gap becomes a fixed
	   0.5em instead of the configurable --tam-header-scroll-gap above, and
	   the 30px top padding (inherited from the resting rule further up,
	   normally left alone so it keeps clearing space for .tam-top-bar)
	   drops to match the 8px bottom padding. Safe specifically in this
	   combination because with the icons hidden there's nothing left in
	   that top-bar slot to clear space for — .tam-top-bar__nav (the
	   secondary menu next to the icons) isn't currently assigned a menu
	   either, so the slot is fully empty, not just icon-less. If a
	   secondary nav menu is ever added, this will need revisiting since it
	   would then be the shrunk row overlapping actual visible content.
	   Higher specificity than the rule above (4 classes vs 3) so both of
	   these win regardless of source order. */
	.tam-social-hidden .site-header.tam-header--scrolled .inside-header,
	.tam-social-hide-on-scroll .site-header.tam-header--scrolled .inside-header {
		gap: 0.5em;
		padding-top: 8px;
	}

	.site-header.tam-header--scrolled .inside-header .site-logo,
	.site-header.tam-header--scrolled .inside-header .site-branding-container {
		flex: 0 1 auto;
		min-width: 0;
		padding-top: 0;
		padding-bottom: 0;
	}

	.site-header.tam-header--scrolled .inside-header > .main-navigation {
		flex: 0 1 auto;
		width: auto;
	}

	/* "Scrolled Nav Link Height" Customizer control. GP's own main.min.css
	   sets .main-navigation .main-nav ul li a { line-height: 60px } (2
	   classes + 3 types = 0,2,3) in both the resting and scrolled states —
	   removing the social icons doesn't touch this at all, so the shrunk
	   row stayed exactly as tall as a 60px line-height regardless of how
	   small the logo got. This selector (3 classes + 3 types = 0,3,3) beats
	   it on specificity. */
	.site-header.tam-header--scrolled .main-nav ul li a {
		line-height: var( --tam-header-scroll-nav-line-height, 36px );
	}

	/* "Scrolled Logo Height" Customizer control. */
	.tam-header--scrolled .site-logo .header-image {
		max-height: var( --tam-header-scroll-logo-height, 50px );
	}
}

/* At mobile, the header should look the same regardless of scroll
   position — the scrolled layout/sizing (logo left, hamburger + "Menu"
   right, compact spacing) is the one and only mobile look, not just
   what it becomes once scrolled. So everything the @media (min-width:
   1073px) block above only applies to .tam-header--scrolled is repeated
   here unconditionally (no class requirement) for widths at or below
   GP's own 1072px breakpoint — same property values, same Customizer
   variables, just always-on rather than toggled by scrolled state. The
   only thing that still differs between scrolled and resting at mobile
   is the logo <img> src itself, swapped by assets/js/sticky-header.js
   regardless of any of this CSS. justify-content is space-between here
   rather than desktop's flex-start + gap, matching the earlier decision
   that a fixed gap looks stranded next to a small hamburger on a narrow
   row — everything else mirrors the desktop-scrolled values exactly. */
@media ( max-width: 1072px ) {
	.site-header {
		border-bottom-style: solid;
		border-bottom-width: var( --tam-header-scroll-space-below, 0px );
		border-bottom-color: var( --base-2, #ffffff );
	}

	/* body prefix needed to match/beat the resting rule further up
	   (body .inside-header, 0,1,1) and GP's own competing mobile rule
	   (.inside-header { flex-direction: column }, 0,1,0, which loads
	   after this file and would otherwise win a specificity tie by
	   source order alone). */
	body .inside-header {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-between;
		padding-top: 30px;
		padding-bottom: 8px;
	}

	/* "Never" mode: nothing ever renders in the top-bar slot at this
	   width either, so — unlike the rule below — this one stays
	   unconditional rather than gated to .tam-header--scrolled. */
	.tam-social-hidden .inside-header {
		padding-top: 8px;
	}

	/* "On full header" mode: the icons are still visible at rest (only
	   .tam-top-bar__social itself gets display: none, gated to
	   .tam-header--scrolled — see that rule further up), so collapsing
	   this padding unconditionally, as a previous version of this rule
	   did, compacted the header's top clearance out from under still-
	   visible icons before the user had actually scrolled, overlapping
	   them with the logo row below. Gating to .tam-header--scrolled
	   keeps the two in sync — same padding value the desktop version
	   above uses in the equivalent state. */
	.tam-social-hide-on-scroll .site-header.tam-header--scrolled .inside-header {
		padding-top: 8px;
	}

	/* max-width here, not on the <img> below — .site-logo sizes itself
	   from its content (flex: ... auto), so a percentage max-width on
	   the image is circular (the image needs .site-logo's width to
	   resolve the percentage, but .site-logo's width comes from the
	   image) and produced inconsistent results: barely noticeable on
	   the small square scrolled logo, but badly wrong on the wide
	   resting logo, where it could shrink the image far past its
	   height target and, incoherently, still leave .site-logo itself
	   too wide, squeezing .main-navigation until the icon and "Menu"
	   text wrapped onto separate lines. max-width here resolves against
	   .inside-header's real, already-known width instead — no
	   circularity — and the image's own max-width: 100% (set in the
	   base rule further up) just fills whatever that resolves to. */
	.inside-header .site-logo,
	.inside-header .site-branding-container {
		flex: 0 1 auto;
		min-width: 0;
		max-width: 70%;
		padding-top: 0;
		padding-bottom: 0;
		/* align-items: center on .inside-header (set above) already keeps
		   this box's center pinned to .main-navigation's box center at any
		   width — confirmed live, both land on the same cross-axis center
		   regardless of how tall the logo image renders. But
		   button.menu-toggle itself carries its own position: relative;
		   top: 12px nudge (see .tam-inner-nav .menu-toggle further up),
		   shifting its visual center 12px below that shared flex center.
		   Applying the same relative offset here keeps the two visually
		   pinned together instead of just matching the flex centering they
		   both start from. */
		position: relative;
		top: 12px;
	}

	/* flex-shrink: 0 (the middle value) — .main-navigation must never
	   shrink below the hamburger button's natural size; .site-logo above
	   is the only side allowed to give up space. Without this, the
	   default min-width: auto on a flex item technically already stops
	   it shrinking below its content's min-content size, but that
	   still permits the icon and "Menu" text to wrap against each other
	   before that floor is reached — flex-shrink: 0 rules out any
	   shrinking at all, which is what actually keeps them on one line. */
	.inside-header > .main-navigation {
		flex: 0 0 auto;
		width: auto;
	}

	/* Dropdown menu: take it out of the header's flex row entirely so
	   opening it can't move anything else in the row. GP's own
	   .main-navigation.toggled .main-nav gets flex-basis: 100% (a
	   full-width row inside .inside-navigation's flex layout), which
	   grows .inside-header's height to match the whole open menu — and
	   since .inside-header uses align-items: center (set above), that
	   re-centred .site-logo down into the open menu instead of leaving
	   it at the top. It also left .tam-inner-nav.inside-navigation's own
	   width shrink-wrapped to the closed button's content, so the
	   "Menu"/"Close" toggle itself sat inside a narrow, off-centre
	   column once opened instead of staying where it was closed.
	   position: absolute removes .main-nav from that flex flow — the
	   header's height, and everything else in it, stays exactly as it
	   is when closed, regardless of how tall the open menu is. */
	.main-navigation.toggled .tam-inner-nav .main-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #2a5080;
		box-shadow: 0 8px 16px rgba( 0, 0, 0, 0.25 );
	}

	/* Social links at the bottom of the open dropdown, once scrolled —
	   while resting, the same icons are already visible up in
	   .tam-top-bar (see tam_top_bar() in functions.php), so showing them
	   again here would be redundant; once scrolled, "on full header"
	   visibility mode hides that top bar's icons (see
	   .tam-social-hide-on-scroll further up), and this replaces them
	   here instead of just losing them. Markup itself always renders
	   inside .main-nav (unless "Never" is set) — see
	   .tam-mobile-menu-social's default display: none further up for
	   why that's safe. */
	.site-header.tam-header--scrolled .main-navigation.toggled .tam-inner-nav .tam-mobile-menu-social {
		display: flex;
		gap: 1.25rem;
		padding: 0.5rem 1.25rem 1.5rem;
	}

	/* Same rendered size as .tam-top-bar__social-link svg (the icons at
	   the top of the header) — the SVGs themselves carry width="16"
	   height="16" attributes (see tam_social_icon() in functions.php),
	   which this overrides same as the top-bar rule does. */
	.tam-mobile-menu-social-link svg {
		width: 1.5rem;
		height: 1.5rem;
	}

	.tam-mobile-menu-social-link {
		color: #fff;
		display: inline-flex;
	}

	.tam-mobile-menu-social-link:hover {
		color: rgba( 255, 255, 255, 0.75 );
	}

	/* .main-nav's containing block for the position: absolute above
	   needs to be .inside-header (full header width), not
	   .tam-inner-nav.inside-navigation — GP sets position: relative on
	   .inside-navigation itself, and .tam-inner-nav's own box is only as
	   wide as the closed toggle button, which is exactly the narrow
	   column the menu was wrongly confined to. Static here hands the
	   anchor up to .inside-header (position: relative, set at the top of
	   this file) instead. Safe at this breakpoint: nothing else here
	   depends on .inside-navigation being a positioning context — the
	   only other thing that would (.mobile-bar-items, GP's inline search
	   icon) isn't in use since nav search is off. */
	.inside-header .tam-inner-nav.inside-navigation {
		position: static;
	}

	/* Dropdown item height. GP's own .main-navigation .main-nav ul li a
	   { line-height: 60px } is 2 classes + 3 types (0,2,3) — this
	   selector was previously the same (0,2,3), a specificity tie that
	   GP's rule (loaded after this file) silently won by source order,
	   so every dropdown item was still rendering at GP's 60px despite
	   this rule. body prefix (0,3,3) now actually beats it. Fixed rather
	   than reusing --tam-header-scroll-nav-line-height (the "Scrolled Nav
	   Link Height" Customizer control) — that variable also drives the
	   desktop scrolled-header nav bar, and changing it here would shrink
	   that too, which wasn't asked for. 3em is relative to this rule's
	   own font-size: 1rem (16px) set above, so 3em = 48px. No padding-
	   top/bottom on these links, so line-height is the entire row
	   height. */
	body .tam-inner-nav .main-nav ul li a {
		line-height: 3em;
	}

	/* body prefix needed to beat the resting rule further up
	   (body .site-logo .header-image, 0,2,1). */
	body .site-logo .header-image {
		max-height: var( --tam-header-scroll-logo-height, 50px );
	}
}

/* Intermediate breakpoint — 601px to 1072px, i.e. everything the block
   above covers except phone widths (≤600px) — still within the mobile
   hamburger-menu range (see the generate_mobile_menu_media_query filter
   in functions.php, also 1072px), just wide enough to let the logo run
   bigger than the ≤600px phone sizing. Same selectors as the rules
   being overridden, placed after them, so the tie in specificity is
   broken by source order rather than needing extra classes. */
@media ( min-width: 601px ) and ( max-width: 1072px ) {
	/* Same var (and same fallback) as the ≤600px block's own
	   body .site-logo .header-image rule further up — this override no
	   longer diverges from it on height, only .site-logo's top position
	   below still does. Kept as an explicit rule here (rather than
	   deleted as a no-op) since this block is specifically the place to
	   change this breakpoint's logo height without touching the ≤600px
	   phone sizing. */
	body .site-logo .header-image {
		max-height: var( --tam-header-scroll-logo-height, 50px );
	}

	/* Nudges .site-logo 20px above wherever the ≤1072px block above
	   already positions it (position: relative; top: 12px, set there
	   and still in effect — only top is overridden here). */
	.inside-header .site-logo,
	.inside-header .site-branding-container {
		top: -8px;
	}
}

/* =====================================================
   Footer
   ===================================================== */
body .site-footer {
	background: #253859;
	color: #bbb;
	padding-top: 0;
}

.tam-footer-widgets {
	padding-top: 2.5rem;
	padding-bottom: 2rem;
}

.tam-footer-cols {
	display: grid;
	grid-template-columns: repeat(2, 25%);
	gap: 2rem;
}

.tam-footer-col {
	padding-left: 15px;
	padding-right: 15px;
}

.tam-footer-col__heading {
	font-size: 1.1rem;
	font-weight: 700;
	text-transform: none;
	color: #fff;
	margin: 0;
	padding-bottom: 0.5rem;
}

/* Footer nav lists */
.tam-footer-nav {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tam-footer-nav li {
	margin: 0;
}

.tam-footer-nav a {
	display: block;
	color: #aaa;
	text-decoration: none;
	font-size: 0.9rem;
	padding: 0.25rem 0;
	line-height: 1.4;
}

.tam-footer-nav a:hover {
	color: #fff;
}

/* Footer bottom bar — jump-to-top, copyright, legal links */
.tam-footer-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	padding-top: 1rem;
	padding-bottom: 1.25rem;
	padding-left: 15px;
	padding-right: 15px;
	font-size: 0.78rem;
}

.tam-footer-logo {
	display: block;
	width: 50px;
	height: 50px;
	flex-shrink: 0;
}

.tam-footer-top {
	color: #aaa;
	text-decoration: none;
	white-space: nowrap;
}

.tam-footer-top:hover {
	color: #fff;
}

.tam-footer-copy {
	color: #888;
	margin: 0;
	flex: 1 1 auto;
}

.tam-footer-legal {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0;
}

.tam-footer-legal li + li::before {
	content: '|';
	color: #555;
	padding: 0 0.4rem;
}

.tam-footer-legal a {
	color: #888;
	text-decoration: none;
}

.tam-footer-legal a:hover {
	color: #fff;
}

/* =====================================================
   Related posts block (tam/related-posts)
   ===================================================== */
.tam-related {
	padding-top: 3rem;
	background-color: #ffffff;
}

.tam-related__heading {
	font-size: 1.2rem;
	font-weight: 500;
	letter-spacing: 0;
	margin: 0 0 1.25rem;
	padding-bottom: 0.5rem;
	border-bottom: 3px solid #1a1a1a;
	color: #1a1a1a;
}

.tam-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.tam-related__card {
	background-color: #ffffff;
}

.tam-related__link {
	display: block;
	box-sizing: border-box;
	padding: 0.4rem;
	text-decoration: none;
	color: inherit;
}

.tam-related__link:hover {
	background: rgba(30, 115, 190, 0.05);
}

.tam-related__img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.tam-related__img--placeholder {
	background: #ddd;
}

.tam-related__body {
	padding: 0.6rem 0 0;
}

.tam-related__title {
	font-size: 1rem;
	line-height: 1.35;
	margin: 0 0 0.3rem;
	font-weight: 600;
	color: var(--contrast);
}

.tam-related__link:hover .tam-related__title {
	color: var( --tam-link-hover-color );
}

.tam-related__date {
	display: block;
	font-size: 0.73rem;
	color: #888;
	margin-bottom: 0.2rem;
}

.tam-related__cat {
	display: block;
	font-size: 0.73rem;
	color: #888;
}

/* =====================================================
   Category Section block (tam/category-section) — global rather
   than homepage-only, since it can be nested inside the Category
   Section Container's tabs on any page. .tam-ladv__heading and
   .tam-section__footer / .tam-section__more are shared with the
   Latest Adventures block, which is unaffected by living here.
   ===================================================== */
.tam-section {
	margin-top: 3rem;
}

.tam-section__footer {
	margin-top: 1rem;
	text-align: right;
}

.tam-section__more {
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	letter-spacing: 0.03em;
	color: var( --tam-link-color );
}

.tam-section__more:hover {
	text-decoration: none;
}

.tam-ladv__heading {
	font-size: 1.6rem;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
	margin: 0 0 1.25rem;
	padding-bottom: 0.6rem;
}

.tam-ladv__heading a {
	color: inherit;
	text-decoration: none;
}

.tam-cat-wrap {
	display: flex;
	gap: 1.33rem;
	align-items: flex-start;
}

/* Featured post — left column */
.tam-cat-featured {
	position: relative;
	flex: 1;
	min-width: 0;
	padding: 0.4rem;
	margin-top: -0.4rem;
	box-sizing: border-box;
}

.tam-cat-featured:hover {
	background: rgba(30, 115, 190, 0.05);
}

.tam-cat-featured__img {
	width: 100%;
	height: auto;
	display: block;
}

.tam-cat-featured__body {
	padding-top: 0.75rem;
}

.tam-cat-featured__cat {
	display: inline-block;
	font-size: 0.63rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #c0392b;
	margin-bottom: 0.35rem;
}

.tam-cat-featured__title {
	font-size: 1.45rem;
	line-height: 1.3;
	margin: 0 0 0.35rem;
	font-weight: 700;
}

.tam-cat-featured__title a {
	color: inherit;
	text-decoration: none;
}

.tam-cat-featured:hover .tam-cat-featured__title a {
	color: var( --tam-link-hover-color );
}

/* Stretched link: title is the one real, accessible link;
   its ::after covers the whole card so a click anywhere lands
   on the post, without nesting extra anchors inside the card. */
.tam-cat-featured__stretched-link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.tam-cat-featured__date {
	display: block;
	font-size: 0.73rem;
	color: #888;
	margin-bottom: 0.6rem;
}

.tam-cat-featured__excerpt {
	font-size: 0.9rem;
	line-height: 1.6;
	color: #444;
	margin: 0 0 0.75rem;
}

.tam-cat-featured__more {
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
}

.tam-cat-featured__more:hover {
	color: var( --tam-link-hover-color );
}

/* Blog listing cards (GenerateBlocks Looper) — styled to match .tam-cat-featured.
   .gb-loop-item-6e7d6459 is shared by every card in this Looper block, so this
   applies to the whole listing, not just one post. */
.gb-loop-item-6e7d6459 {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 0.4rem;
	margin-top: -0.4rem;
	box-sizing: border-box;
}

.gb-loop-item-6e7d6459:hover {
	background: rgba(30, 115, 190, 0.05);
}

/* Image is the second child in the markup; move it back above the text. */
.gb-loop-item-6e7d6459 > a {
	order: -1;
}

.gb-loop-item-6e7d6459 .gb-media-ad0052b2 {
	width: 100%;
	height: auto;
	display: block;
}

.gb-loop-item-6e7d6459 .gb-element-ff3c3786 {
	padding-top: 0;
}

.gb-loop-item-6e7d6459 .gb-text-37812b8b {
	font-size: 1.45rem;
	line-height: 1.3;
	margin: 0 0 0.35rem;
	font-weight: 700;
}

.gb-loop-item-6e7d6459 .gb-text-37812b8b a {
	color: inherit;
	text-decoration: none;
	position: relative;
}

.gb-loop-item-6e7d6459:hover .gb-text-37812b8b a {
	color: #1e73be;
}

/* Stretched link: makes the whole card clickable via the title link,
   same as .tam-cat-featured__stretched-link. */
.gb-loop-item-6e7d6459 .gb-text-37812b8b a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.gb-loop-item-6e7d6459 .gb-text-a85a96de {
	display: block;
	font-size: 0.73rem;
	color: #888;
	margin-bottom: 0.6rem;
}

.gb-loop-item-6e7d6459 .gb-text-2fa9d449 {
	font-size: 1rem;
	line-height: 1.6;
	color: #444;
	margin: 0 0 0.75rem;
}

.gb-loop-item-6e7d6459 .gb-text-dc377188 {
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
}

/* List + footer wrapper — right column */
.tam-cat-list-col {
	flex: 0 0 35%;
	display: flex;
	flex-direction: column;
}

.tam-cat-section .tam-section__footer {
	text-align: left;
	margin-top: 0.5rem;
}

/* List — right column */
.tam-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tam-cat-list__item {
	margin-left: -1.33rem;
	padding-left: 1.33rem;
}

.tam-cat-list__item:first-child .tam-cat-list__link {
	padding-top: 0;
}

.tam-cat-list__item:hover {
	background: rgba(30, 115, 190, 0.05);
}

.tam-cat-list__link {
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
	padding: 0.65rem 0;
	text-decoration: none;
	color: inherit;
}

.tam-cat-list__link:hover .tam-cat-list__title {
	color: var( --tam-link-hover-color );
}

.tam-cat-list__thumb {
	flex: 0 0 80px;
	width: 80px;
	height: 60px;
	object-fit: cover;
	display: block;
}

.tam-cat-list__thumb--placeholder {
	flex: 0 0 80px;
	width: 80px;
	height: 60px;
	background: #e8e8e8;
}

.tam-cat-list__title {
	font-size: 0.9rem;
	line-height: 1.4;
	margin: 0;
	font-weight: 600;
}

/* Plain-text caption naming the article behind the thumbnail. Not a link
   itself — sits in the title's own column via .tam-cat-spotlight__content,
   so it lines up under the title without a manual offset. Same type style
   as .tam-cat-featured__excerpt for visual consistency with the rest of
   this text scale. */
.tam-cat-list__latest {
	font-size: 1rem;
	line-height: 1.6;
	color: #444;
	margin: 0 0 0.75rem;
}

/* tam/category-spotlight's item layout — thumb + a content column (title,
   then the latest-article caption). A dedicated flex row rather than
   reusing .tam-cat-list__link, since that link wraps only the thumb+title
   in tam/category-section and has no room for a second stacked line.
   The title is the one real link; ::after stretches it over the whole
   item, same "stretched link" pattern as .tam-cat-featured__stretched-link. */
.tam-cat-list__item.tam-cat-spotlight__item {
	margin: 0;
}

.tam-cat-spotlight__item {
	position: relative;
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
	padding: 0.65rem 0;
}

.tam-cat-list__item:first-child.tam-cat-spotlight__item {
	padding-top: 0;
}

.tam-cat-spotlight__content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

/* Bigger than tam/category-section's stub titles (0.9rem) — overridden here
   rather than on the shared .tam-cat-list__title rule so that block's list
   is unaffected. */
.tam-cat-spotlight__content .tam-cat-list__title {
	font-size: 1.2rem;
}

.tam-cat-spotlight__stretched-link {
	color: inherit;
	text-decoration: none;
}

.tam-cat-spotlight__stretched-link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.tam-cat-spotlight__item:hover .tam-cat-list__title {
	color: var( --tam-link-hover-color );
}

@media (max-width: 1072px) {
	.tam-cat-wrap {
		flex-direction: column;
	}

	.tam-cat-list-col {
		flex: none;
		width: 100%;
	}

	.tam-cat-list {
		flex: none;
		width: 100%;
		border-top: 1px solid #e5e5e5;
		padding-top: 0.5rem;
	}
}

/* =====================================================
   Post content tables (migrated from old theme) — global since
   tables/captions can appear in any post, not just ones that also
   have a collapsible-section button.
   ===================================================== */
table {
	background: #fff;
	/* !important: GeneratePress's main.css only borders the table's top
	   and left (border-width: 1px 0 0 1px), relying on the last row/
	   column's td/th (border-width: 0 1px 1px 0) to draw the right and
	   bottom edges. Our td/th rule below zeroes cell borders, which
	   breaks that, so the table needs its own full border guaranteed
	   to win regardless of what else targets `table` in the cascade
	   (GP Premium's dynamic typography CSS loads after this file). */
	border: 1px solid #ddd !important;
	margin: 0 auto 25px;
	/* separate + zero spacing (not collapse): with cell borders set to
	   none below, this looks identical, but avoids collapse-mode's
	   border-conflict resolution silently dropping the table's own
	   right/bottom edge on percentage-width tables in some browsers. */
	border-collapse: separate;
	border-spacing: 0;
}

/* Old shortcode wrapper around resource-list tables — margin-bottom
   is handled by the surrounding section there instead. */
.resource-section table {
	margin-bottom: 0;
}

table caption {
	font-weight: bold;
	color: #f2b532;
	margin: 1em 1em 1em 0;
	text-align: left;
}

table td,
table th {
	text-align: left;
	font-size: 13px;
	line-height: 18px;
	color: #333;
	padding: 9px 10px;
	vertical-align: top;
	border: none;
}

table tbody tr:nth-child(2n) {
	background: #fafafa;
}

/* =====================================================
   Post content — images, embeds, captions, byline, boxes
   (migrated posts; markup produced by scripts/tidy.js).

   Spacing is 1.5em above and below, matching GP's own
   `p { margin-bottom: 1.5em }`, so an image never sits tighter to
   the text than paragraphs sit to each other. Vertical margins
   collapse, so paragraph → image → paragraph is 1.5em each side,
   and a heading's own bottom margin is absorbed rather than added.
   ===================================================== */
:is(.entry-content, .dynamic-entry-content) .wp-block-image,
:is(.entry-content, .dynamic-entry-content) .wp-block-embed,
:is(.entry-content, .dynamic-entry-content) .wp-block-tam-photo-carousel {
	margin-top: 1.5em;
	margin-bottom: 1.5em;
}

/* A heading that follows an image, embed or carousel gets 2.5rem above it
   (twice its 1.25rem bottom margin), so it reads as the start of the next
   section rather than a caption for the picture above. */
:is(.entry-content, .dynamic-entry-content) :is(.wp-block-image, .wp-block-embed, .wp-block-tam-photo-carousel) + :is(h2, h3, h4) {
	margin-top: 2.5rem;
}

:is(.entry-content, .dynamic-entry-content) .wp-block-image img {
	height: auto;
}

/* Captions sit close to their image (0.5em), quieter than body text. */
:is(.entry-content, .dynamic-entry-content) .wp-block-image .wp-element-caption,
:is(.entry-content, .dynamic-entry-content) .wp-block-embed .wp-element-caption {
	margin: 0.5em 0 0;
	font-size: 0.875em;
	line-height: 1.45;
	color: #666;
	text-align: center;
}

/* Small images that keep a float: text wraps with a 1.5em gutter.
   GP has no theme.json, so WordPress renders aligned images as
   <div class="wp-block-image"><figure class="alignleft">, hence the
   descendant selector (the compound one covers block themes). */
:is(.entry-content, .dynamic-entry-content) .wp-block-image .alignleft,
:is(.entry-content, .dynamic-entry-content) .wp-block-image.alignleft {
	float: left;
	margin: 0.25em 1.5em 1.5em 0;
}

:is(.entry-content, .dynamic-entry-content) .wp-block-image .alignright,
:is(.entry-content, .dynamic-entry-content) .wp-block-image.alignright {
	float: right;
	margin: 0.25em 0 1.5em 1.5em;
}

/* Author line under the title ("Name / Role / Place"). */
:is(.entry-content, .dynamic-entry-content) .tam-byline {
	font-size: 0.9375em;
	font-weight: 600;
	color: #555;
}

/* Old [box] panels — related-reading and contact boxes. */
:is(.entry-content, .dynamic-entry-content) .tam-box {
	background: #f6f7f9;
	border-left: 4px solid #253859;
	padding: 1.25em 1.5em;
	margin: 2em 0;
}

:is(.entry-content, .dynamic-entry-content) .tam-box > :last-child {
	margin-bottom: 0;
}

/* Quote block text — overrides GeneratePress's blockquote font-size: 1.2em. */
.wp-block-quote,
.wp-block-quote p {
	font-size: 1rem;
}

/* Quote attributions (moved into the quote's citation). */
:is(.entry-content, .dynamic-entry-content) .wp-block-quote cite {
	display: block;
	margin-top: 0.75em;
	font-size: 0.8em;
	font-style: normal;
	color: #666;
}

:is(.entry-content, .dynamic-entry-content) .wp-block-quote cite::before {
	content: "— ";
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 600px) {
	/* Cancels the downward top: 12px nudge from the shared ≤1072px block
	   (.inside-header .site-logo / .site-branding-container further up) —
	   matches the same override already applied at 601–1072px, so the
	   logo doesn't shift down any more at phone widths than it does just
	   above this breakpoint. */
	.inside-header .site-logo,
	.inside-header .site-branding-container {
		top: -8px;
	}

	.tam-related__grid {
		grid-template-columns: 1fr;
	}

	/* No text wrapping beside images at phone width. */
	:is(.entry-content, .dynamic-entry-content) .wp-block-image .alignleft,
	:is(.entry-content, .dynamic-entry-content) .wp-block-image .alignright,
	:is(.entry-content, .dynamic-entry-content) .wp-block-image.alignleft,
	:is(.entry-content, .dynamic-entry-content) .wp-block-image.alignright {
		float: none;
		margin: 1.5em auto;
	}

	.tam-top-bar__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.tam-footer-cols {
		grid-template-columns: 1fr;
	}

	.tam-footer-bar {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* =====================================================
   Pop-out sub-menus (third level and deeper)
   =====================================================
   Built as ordinary nested menu items in Appearance → Menus, and
   switched on/off per item there (see tam_popout_* in functions.php).
   GP already opens these to the right on desktop and as an accordion
   in the mobile menu; these rules only add the left-flip and the
   mobile indentation.
   ===================================================== */

/* Desktop: open leftwards when there's no room on the right — the
   class is added by assets/js/menu-flyout.js just before it opens.
   One class more than GP's own
   .main-navigation:not(.toggled) ul ul li:hover > ul { left: 100% }. */
.main-navigation:not(.toggled) ul ul li.tam-flyout-left:hover > ul,
.main-navigation:not(.toggled) ul ul li.tam-flyout-left.sfHover > ul {
	left: auto;
	right: 100%;
}

/* Sub-menu row height (every level below the top bar).
   Row height = this 20px line + top and bottom padding. On desktop the
   padding is GP's Customizer → Layout → Primary Navigation → "Sub-Menu
   Item Height" (applied to each of top and bottom), so that setting
   alone controls desktop row height: 20px + 2 × setting.
   Without this rule, two nav-bar line-heights also landed on sub-menu
   links: the desktop scrolled header's
   .site-header.tam-header--scrolled .main-nav ul li a { line-height:
   36px } and the mobile menu's body .tam-inner-nav .main-nav ul li a
   { line-height: 3em }. Both are meant for the top-level bar only.
   .site-header prefix (0,3,4) beats both of them. */
.site-header .main-navigation .main-nav ul ul li a {
	line-height: 20px;
}

/* Mobile: fixed 12px top/bottom (44px rows) rather than the Customizer
   value, so rows stay a comfortable tap target even if desktop is set
   tighter. The sub-menu arrow button is offset by the same amount (GP
   gives it padding-top/bottom = the Customizer value and a matching
   negative margin-top), so it's kept in step or it would sit off-centre. */
@media ( max-width: 1072px ) {
	.site-header .main-navigation.toggled .main-nav ul ul li a {
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.site-header .main-navigation.toggled .menu-item-has-children ul .dropdown-menu-toggle {
		padding-top: 12px;
		padding-bottom: 12px;
		margin-top: -12px;
	}
}

/* Mobile accordion: indent the third level and tint it slightly so
   it reads as belonging to the item above. GP handles the open/close
   (.toggled-on) and the arrow rotation itself. */
@media ( max-width: 1072px ) {
	.main-navigation.toggled .main-nav ul ul ul.toggled-on {
		background: rgba( 0, 0, 0, 0.15 );
	}

	body .main-navigation.toggled .tam-inner-nav .main-nav ul ul ul li a {
		padding-left: 35px;
		font-weight: 400;
	}
}
