/* ==========================================================================
   Sue Shanly Header & Footer
   Colour tokens (--ssh-primary, --ssh-primary-dk, --ssh-accent, --ssh-ink)
   are injected inline from the Customizer settings.
   ========================================================================== */

:root {
	--ssh-primary: #761724;
	--ssh-primary-dk: #4a0d17;
	--ssh-accent: #f5bf3d;
	--ssh-accent-dk: #d49b27;
	--ssh-ribbon-bg: #f5e3bc;
	--ssh-ink: #222222;
	--ssh-font: "Montserrat", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ssh-wrap: 1200px;
	--ssh-gutter: clamp(16px, 4vw, 32px);
	--ssh-radius: 999px;
	--ssh-shadow: 0 10px 30px -18px rgba(20, 0, 5, 0.45);
	--ssh-line: rgba(118, 23, 36, 0.12);
	--ssh-on-dark: #f6ecdf;
	--ssh-on-dark-muted: rgba(246, 236, 223, 0.72);
}

html.ssh-no-scroll { overflow: hidden; }

.ssh-masthead *, .ssh-header *, .ssh-footer * { box-sizing: border-box; }
.ssh-masthead, .ssh-header, .ssh-footer { font-family: var(--ssh-font); -webkit-font-smoothing: antialiased; }
.ssh-masthead ul, .ssh-header ul, .ssh-footer ul { list-style: none; margin: 0; padding: 0; }
.ssh-masthead li::before, .ssh-header li::before, .ssh-footer li::before { content: none !important; }
.ssh-masthead a, .ssh-header a, .ssh-footer a { text-decoration: none; transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .12s ease; }
.ssh-masthead svg, .ssh-header svg, .ssh-footer svg { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; }

.ssh-wrap { max-width: var(--ssh-wrap); margin: 0 auto; padding-left: var(--ssh-gutter); padding-right: var(--ssh-gutter); }

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.ssh-header { position: relative; z-index: 1000; width: 100%; background: #fff; }
.ssh-header--sticky { position: sticky; top: 0; }
.admin-bar .ssh-header--sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .ssh-header--sticky { top: 46px; } }

/* Masthead – maroon band above the navigation ribbon (scrolls away) */
.ssh-masthead { position: relative; z-index: 999; background: var(--ssh-primary); color: #fff; text-align: center; }
.ssh-masthead__inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; padding-top: clamp(1.4rem, 3.2vw, 2.5rem); padding-bottom: clamp(1.4rem, 3.2vw, 2.5rem); }
.ssh-masthead__eyebrow { color: var(--ssh-accent); font-size: .78rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; line-height: 1; }
.ssh-masthead__title { display: inline-block; color: #fff; font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.08; letter-spacing: -.01em; }
.ssh-masthead__title:hover, .ssh-masthead__title:focus-visible { color: var(--ssh-accent); }
.ssh-masthead__tagline { color: #ffe9c2; font-weight: 400; font-size: clamp(1rem, 1.7vw, 1.375rem); line-height: 1.3; letter-spacing: -.02em; }
.ssh-masthead__social { margin-top: .35rem; }

/* Social lists */
.ssh-social { display: flex; align-items: center; gap: .25rem; }
.ssh-social a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: inherit; font-size: 1.05rem; }
.ssh-social a:hover, .ssh-social a:focus-visible { color: var(--ssh-primary); background: var(--ssh-accent); transform: translateY(-1px); }
.ssh-masthead__social { gap: .15rem; }
.ssh-masthead__social a { color: #fff; width: 30px; height: 30px; font-size: 1rem; }
.ssh-masthead__social a:hover, .ssh-masthead__social a:focus-visible { color: var(--ssh-primary); background: var(--ssh-accent); }

/* Navigation ribbon – gold background with gold lines above and below */
.ssh-header { background: var(--ssh-ribbon-bg); }
.ssh-bar { background: var(--ssh-ribbon-bg); border-top: 3px solid var(--ssh-accent); border-bottom: 3px solid var(--ssh-accent); transition: box-shadow .2s ease; }
.ssh-header--scrolled .ssh-bar { box-shadow: var(--ssh-shadow); }
.ssh-bar__inner { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 2rem); min-height: 66px; }
.ssh-header--no-brand .ssh-nav { flex: 1 1 auto; justify-content: center; }
.ssh-header--no-brand .ssh-menu { justify-content: center; gap: 0 .35rem; }
.ssh-header--no-brand .ssh-menu > li > a { font-size: .9rem; padding: .55rem .7rem; }
.ssh-header--no-brand .ssh-menu > li > a::after { left: .7rem; right: .7rem; }

/* Brand */
.ssh-brand { display: inline-flex; flex: 0 0 auto; flex-direction: column; align-items: flex-start; line-height: 1; white-space: nowrap; color: var(--ssh-primary); margin-right: auto; padding: .35rem 0; }
.ssh-brand:hover, .ssh-brand:focus-visible { color: var(--ssh-primary-dk); }
.ssh-brand__name { font-weight: 800; font-size: clamp(1.3rem, 2vw, 1.55rem); letter-spacing: -.015em; }
.ssh-brand__sub { font-size: .62rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ssh-ink); opacity: .7; margin-top: .4rem; padding-left: .1em; }
.ssh-brand__logo { display: block; height: auto; max-height: 60px; width: auto; max-width: min(280px, 45vw); }

/* Navigation (desktop) */
.ssh-nav { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; justify-content: flex-end; }
.ssh-menu { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0 .15rem; }
.ssh-menu li { position: relative; margin: 0; padding: 0; }
.ssh-menu > li > a { position: relative; display: inline-block; padding: .5rem .5rem; color: var(--ssh-ink); font-weight: 600; font-size: .84rem; letter-spacing: .01em; white-space: nowrap; border-radius: 8px; }
.ssh-menu > li > a::after { content: ""; position: absolute; left: .5rem; right: .5rem; bottom: .25rem; height: 2px; border-radius: 2px; background: var(--ssh-primary); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.ssh-menu > li > a:hover, .ssh-menu > li > a:focus-visible { color: var(--ssh-primary); }
.ssh-menu > li > a:hover::after, .ssh-menu > li > a:focus-visible::after,
.ssh-menu > li.current-menu-item > a::after, .ssh-menu > li.current-menu-ancestor > a::after, .ssh-menu > li.current_page_parent > a::after { transform: scaleX(1); }
.ssh-menu > li.current-menu-item > a, .ssh-menu > li.current-menu-ancestor > a { color: var(--ssh-primary); }

/* Sub-menus */
.ssh-sub-toggle { appearance: none; border: 0; background: transparent; color: var(--ssh-ink); padding: .25rem; margin-left: -.35rem; cursor: pointer; border-radius: 6px; line-height: 0; }
.ssh-sub-toggle svg { width: 1.1em; height: 1.1em; transition: transform .2s ease; }
.ssh-sub-open > .ssh-sub-toggle svg { transform: rotate(180deg); }
.ssh-menu .sub-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: #fff; border: 1px solid var(--ssh-line); border-top: 3px solid var(--ssh-accent); border-radius: 10px; box-shadow: var(--ssh-shadow); padding: .4rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; z-index: 5; }
.ssh-menu li:hover > .sub-menu, .ssh-menu li:focus-within > .sub-menu, .ssh-menu li.ssh-sub-open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.ssh-menu .sub-menu a { display: block; padding: .55rem .75rem; color: var(--ssh-ink); font-weight: 500; font-size: .9rem; border-radius: 7px; }
.ssh-menu .sub-menu a:hover, .ssh-menu .sub-menu a:focus-visible { background: rgba(118, 23, 36, 0.07); color: var(--ssh-primary); }

/* Call to action */
.ssh-cta { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.15rem; border-radius: var(--ssh-radius); background: var(--ssh-primary); color: #fff !important; font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 8px 18px -10px rgba(118, 23, 36, 0.7); }
.ssh-cta svg { color: var(--ssh-accent); font-size: 1rem; }
.ssh-cta:hover, .ssh-cta:focus-visible { background: var(--ssh-primary-dk); transform: translateY(-1px); }
.ssh-cta--mobile { display: none; }

/* Mobile toggle (hidden on desktop) */
.ssh-toggle { display: none; appearance: none; border: 2px solid var(--ssh-primary); background: transparent; color: var(--ssh-primary); border-radius: 10px; padding: .45rem .7rem; font: inherit; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; align-items: center; gap: .5rem; margin-left: auto; }
.ssh-toggle__bars { display: inline-flex; flex-direction: column; justify-content: space-between; width: 18px; height: 13px; }
.ssh-toggle__bars i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.ssh-nav-open .ssh-toggle { background: var(--ssh-primary); color: #fff; }
.ssh-nav-open .ssh-toggle__bars i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.ssh-nav-open .ssh-toggle__bars i:nth-child(2) { opacity: 0; }
.ssh-nav-open .ssh-toggle__bars i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (min-width: 1100px) and (max-width: 1279px) {
	.ssh-bar__inner { gap: .75rem; }
	.ssh-menu > li > a { padding: .5rem .35rem; font-size: .78rem; }
	.ssh-menu > li > a::after { left: .35rem; right: .35rem; }
	.ssh-cta { padding: .55rem .95rem; font-size: .76rem; }
	.ssh-brand__name { font-size: 1.25rem; }
	.ssh-brand__sub { font-size: .58rem; letter-spacing: .1em; }
}

/* ---- Mobile / tablet ---------------------------------------------------- */
@media (max-width: 1099px) {
	.ssh-masthead__inner { gap: .45rem; }
	.ssh-masthead__eyebrow { font-size: .7rem; letter-spacing: .2em; }

	.ssh-bar__inner { min-height: 60px; }
	.ssh-header--no-brand .ssh-toggle { margin-left: auto; margin-right: auto; }
	.ssh-brand__logo { height: 42px; }
	.ssh-toggle { display: inline-flex; }
	.ssh-cta--desktop { display: none; }
	.ssh-cta--mobile { display: inline-flex; justify-content: center; margin: 1rem var(--ssh-gutter) 1.25rem; }

	.ssh-nav { position: absolute; left: 0; right: 0; top: 100%; display: block; background: var(--ssh-ribbon-bg); border-top: 1px solid var(--ssh-line); box-shadow: var(--ssh-shadow); max-height: calc(100vh - 110px); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
	.ssh-nav-open .ssh-nav { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }

	.ssh-menu { display: block; padding: .5rem 0; }
	.ssh-menu > li { border-bottom: 1px solid var(--ssh-line); }
	.ssh-menu > li:last-child { border-bottom: 0; }
	.ssh-menu > li > a { display: block; padding: .95rem var(--ssh-gutter); font-size: 1rem; border-radius: 0; }
	.ssh-menu > li > a::after { display: none; }
	.ssh-menu > li.current-menu-item > a { box-shadow: inset 4px 0 0 var(--ssh-accent); background: rgba(118, 23, 36, 0.04); }

	.ssh-menu li.menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
	.ssh-menu li.menu-item-has-children > a { flex: 1 1 auto; }
	.ssh-sub-toggle { margin: 0 var(--ssh-gutter) 0 0; padding: .5rem; }
	.ssh-sub-toggle svg { width: 1.4em; height: 1.4em; }
	.ssh-menu .sub-menu { position: static; flex: 1 1 100%; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; background: rgba(118, 23, 36, 0.04); padding: .25rem 0 .5rem; min-width: 0; }
	.ssh-menu li.ssh-sub-open > .sub-menu { display: block; }
	.ssh-menu li:hover > .sub-menu:not(.ssh-sub-open), .ssh-menu li:focus-within > .sub-menu { display: none; }
	.ssh-menu li.ssh-sub-open:hover > .sub-menu, .ssh-menu li.ssh-sub-open:focus-within > .sub-menu { display: block; }
	.ssh-menu .sub-menu a { padding: .7rem calc(var(--ssh-gutter) + 1rem); }
}

/* Anchor links: keep jump targets clear of the sticky header. */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
.admin-bar html, html.admin-bar { scroll-padding-top: 128px; }
[id] { scroll-margin-top: 96px; }
@media (max-width: 1099px) { html { scroll-padding-top: 80px; } [id] { scroll-margin-top: 80px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.ssh-footer { position: relative; margin-top: 0; color: var(--ssh-on-dark); background: radial-gradient(120% 140% at 50% -20%, rgba(245, 191, 61, 0.16), transparent 55%), linear-gradient(160deg, var(--ssh-primary) 0%, var(--ssh-primary-dk) 100%); border-top: 4px solid var(--ssh-accent); padding: clamp(2.6rem, 6vw, 4.5rem) 0 1.75rem; }
.ssh-footer a { color: var(--ssh-on-dark); }
.ssh-footer a:hover, .ssh-footer a:focus-visible { color: var(--ssh-accent); }

.ssh-footer__grid { display: grid; gap: 2.4rem 2.5rem; align-items: start; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
.ssh-footer__grid--3 { grid-template-columns: 1.4fr 1fr 1.4fr; }
.ssh-footer__grid--2 { grid-template-columns: 1.4fr 1fr; }
.ssh-footer__grid--1 { grid-template-columns: 1fr; }
@media (max-width: 959px) { .ssh-footer__grid, .ssh-footer__grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .ssh-footer__grid, .ssh-footer__grid--3, .ssh-footer__grid--2 { grid-template-columns: 1fr; gap: 2rem; } }

.ssh-brand--footer { color: #fff; margin-bottom: 1.5rem; }
.ssh-brand--footer:hover, .ssh-brand--footer:focus-visible { color: var(--ssh-accent); }
.ssh-brand--footer .ssh-brand__sub { color: var(--ssh-accent); opacity: 1; }
.ssh-brand--footer .ssh-brand__logo { max-height: 64px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25)); }
.ssh-footer__text { margin: 0 0 1.1rem; max-width: 36ch; line-height: 1.65; font-size: .97rem; color: var(--ssh-on-dark); }
.ssh-footer__social a { color: #fff; border: 1px solid rgba(255, 255, 255, 0.28); width: 36px; height: 36px; }
.ssh-footer__social { gap: .4rem; }

.ssh-footer__title { display: inline-block; color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 1rem; padding-bottom: .6rem; position: relative; }
.ssh-footer__title::after { content: ""; position: absolute; left: 0; right: .16em; bottom: 0; height: 2px; background: var(--ssh-accent); border-radius: 2px; }

.ssh-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
.ssh-footer__links li { padding: .3rem 0; }
.ssh-footer__links a { font-weight: 500; font-size: .95rem; }
.ssh-footer__links a:hover { padding-left: .25rem; }

.ssh-footer__contact li { display: flex; gap: .65rem; align-items: flex-start; padding: .35rem 0; font-size: .95rem; line-height: 1.55; }
.ssh-footer__contact svg { flex: 0 0 auto; margin-top: .25em; color: var(--ssh-accent); }

/* Newsletter (markup comes from the [ss_newsletter] shortcode) */
.ssh-footer__news .ss-newsletter { display: block; }
.ssh-footer__news .ss-news-head h3 { color: #fff; font-family: var(--ssh-font); font-size: 1.25rem; font-weight: 700; margin: 0 0 .35rem; }
.ssh-footer__news .ss-news-head p { margin: 0 0 1rem; color: var(--ssh-on-dark-muted); font-size: .95rem; line-height: 1.55; }
.ssh-footer__news .ss-news-form { display: flex; gap: .5rem; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--ssh-radius); padding: .3rem .3rem .3rem 1rem; }
.ssh-footer__news .ss-news-form:focus-within { border-color: var(--ssh-accent); }
.ssh-footer__news .ss-news-form input[type="email"] { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: #fff; font: inherit; font-size: .95rem; padding: .55rem 0; box-shadow: none; outline: none; }
.ssh-footer__news .ss-news-form input::placeholder { color: rgba(255, 255, 255, 0.6); }
.ssh-footer__news .ss-news-form button { flex: 0 0 auto; border: 0; border-radius: var(--ssh-radius); background: var(--ssh-accent); color: var(--ssh-primary-dk); font: inherit; font-weight: 700; font-size: .9rem; padding: .6rem 1.3rem; cursor: pointer; transition: background .18s ease, transform .12s ease; }
.ssh-footer__news .ss-news-form button:hover { background: #fff; transform: translateY(-1px); }
.ssh-footer__news .ss-news-msg { margin: .7rem 0 0; padding: .6rem .9rem; border-radius: 10px; font-weight: 600; font-size: .9rem; }
.ssh-footer__news .ss-news-ok { background: rgba(233, 247, 236, 0.95); color: #1c6b2b; }
.ssh-footer__news .ss-news-err { background: rgba(253, 236, 236, 0.95); color: #a12020; }
@media (max-width: 420px) {
	.ssh-footer__news .ss-news-form { flex-wrap: wrap; border-radius: 16px; padding: .5rem; }
	.ssh-footer__news .ss-news-form input[type="email"] { flex-basis: 100%; padding: .5rem .5rem; }
	.ssh-footer__news .ss-news-form button { width: 100%; }
}

/* Bottom strip */
.ssh-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: .83rem; color: var(--ssh-on-dark-muted); }
.ssh-footer__bottom p { margin: 0; }
.ssh-footer__legal { flex-basis: 100%; order: 3; }
@media (min-width: 960px) { .ssh-footer__legal { flex-basis: auto; order: 0; } }

/* Advocacy page: headings inside the "Deputations, Submissions and Media" record widget.
   Astra's global H2 (48px) is larger than the page title (44px), so scale these down. */
.elementor-element-adv2026w h2 { font-family: var(--ssh-font, 'Montserrat', sans-serif); font-size: 1.75rem; font-weight: 800; line-height: 1.25; color: #222222; margin: 0 0 .75rem; }
.elementor-element-adv2026w h3 { font-family: var(--ssh-font, 'Montserrat', sans-serif); font-size: 1.25rem; font-weight: 700; line-height: 1.3; color: #222; margin: 1.6rem 0 .5rem; }
.elementor-element-adv2026w ul { margin: 0 0 .5rem 1.25rem; }
.elementor-element-adv2026w li { margin-bottom: .9rem; line-height: 1.55; }
.elementor-element-adv2026w li a { word-break: break-word; }
@media (max-width: 767px) {
	.elementor-element-adv2026w h2 { font-size: 1.45rem; }
	.elementor-element-adv2026w h3 { font-size: 1.1rem; }
}
