/* HOS site chrome: announcement bar, header, footer. Rendered by inc/chrome.php.
   Chrome sits outside .fl-ds-page, so element styles are set explicitly here;
   colours, spacing and type use design-system tokens (var(--ds-*)). */

/* Skip link (the parent outputs it before the chrome) */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ds-color-blue-dark); color: var(--ds-color-white); font-weight: var(--ds-weight-semibold); padding: 14px 24px; text-decoration: none; border-radius: 0 0 var(--ds-radius-md) 0; }
.skip-link:focus { left: 0; }

/* Shared focus ring for chrome controls */
.hos-header a:focus-visible, .hos-header button:focus-visible, .hos-footer a:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ds-color-white), 0 0 0 6px var(--ds-color-blue-dark); border-radius: var(--ds-radius-md); }

/* ---- Announcement bar ---- */
.hos-announce { background: var(--ds-color-orange-tint); color: var(--ds-color-heading); }
.hos-announce__inner { max-width: var(--ds-width-container); margin: 0 auto; padding: 10px var(--ds-space-gutter); }
.hos-announce p { margin: 0; font-size: var(--ds-text-xs); line-height: var(--ds-line-snug); text-align: center; }
.hos-announce a { color: var(--ds-color-red-hover); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Header ---- */
.hos-header { background: var(--ds-color-white); border-bottom: 1px solid var(--ds-color-border); position: relative; z-index: 20; }
.hos-header__top { max-width: var(--ds-width-container); margin: 0 auto; padding: 28px var(--ds-space-gutter) 0; display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-md); }
.hos-logo { display: inline-flex; }
.hos-logo a { display: inline-flex; text-decoration: none; color: var(--ds-color-heading); font-weight: var(--ds-weight-bold); font-size: var(--ds-text-h4); }
.hos-logo img, .hos-logo .custom-logo, .hos-logo .custom-logo-link img { width: clamp(200px, 22vw, 250px); height: auto; display: block; }

.hos-header__bar { max-width: var(--ds-width-container); margin: 0 auto; padding: 12px var(--ds-space-gutter) 16px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.hos-nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hos-nav__item { position: relative; }
.hos-nav__toggle, .hos-nav__link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 11px; border-radius: var(--ds-radius-md); font-family: var(--ds-font-heading); font-weight: var(--ds-weight-semibold); font-size: var(--ds-text-xs); line-height: 1; color: var(--ds-color-heading); text-decoration: none; background: none; border: none; cursor: pointer; }
.hos-nav__toggle:hover, .hos-nav__link:hover { background: var(--ds-color-surface); color: var(--ds-color-red-dark); }
.hos-nav__caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; display: inline-block; }

.hos-nav__menu { position: absolute; top: 100%; left: 0; min-width: 280px; background: var(--ds-color-white); border: 1px solid var(--ds-color-border); border-radius: 0 var(--ds-radius-lg) var(--ds-radius-lg) var(--ds-radius-lg); box-shadow: 0 12px 32px rgba(47, 48, 49, 0.16); padding: 12px; display: none; flex-direction: column; gap: 2px; z-index: 25; }
.hos-nav__item--menu:hover > .hos-nav__menu, .hos-nav__item--menu:focus-within > .hos-nav__menu, .hos-nav__item--menu.is-open > .hos-nav__menu { display: flex; }
.hos-nav__menu a { text-decoration: none; color: var(--ds-color-heading); padding: 12px 14px; border-radius: var(--ds-radius-md); display: block; font-size: var(--ds-text-sm); }
.hos-nav__menu a:hover { background: var(--ds-color-surface); color: var(--ds-color-red-hover); }
.hos-nav__menu a.hos-nav__lead { font-weight: var(--ds-weight-semibold); }
.hos-nav__menu a.hos-nav__lead:hover { background: var(--ds-color-red-tint); color: var(--ds-color-red-hover); }
.hos-nav__menu a.hos-nav__sub { padding-left: 30px; }
.hos-nav__divider { display: block; height: 1px; background: var(--ds-color-border); margin: 6px 14px; }

.hos-header__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-left: auto; }
.hos-btn { box-sizing: border-box; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; border-radius: var(--ds-radius-pill); font-family: var(--ds-font-heading); font-weight: var(--ds-weight-semibold); font-size: var(--ds-text-xs); text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.hos-btn--outline { padding: 12px 18px; border-color: var(--ds-color-muted); background: var(--ds-color-white); color: var(--ds-color-heading); }
.hos-btn--outline:hover { border-color: var(--ds-color-blue-dark); background: var(--ds-color-surface); }
.hos-btn__dot { width: 14px; height: 14px; border-radius: var(--ds-radius-pill); border: 3px solid var(--ds-color-blue-dark); }
.hos-btn--primary { padding: 12px 26px; background: var(--ds-color-red-dark); color: var(--ds-color-white); }
.hos-btn--primary:hover { background: var(--ds-color-red-hover); color: var(--ds-color-white); }

/* Burger (mobile only) */
.hos-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px; padding: 12px; background: none; border: 2px solid var(--ds-color-muted); border-radius: var(--ds-radius-md); cursor: pointer; }
.hos-burger span { display: block; height: 2px; background: var(--ds-color-heading); border-radius: 2px; }

@media (max-width: 900px) {
	.hos-header__top { padding-bottom: 16px; }
	.hos-burger { display: flex; }
	.hos-header__bar { display: none; flex-direction: column; align-items: stretch; gap: 4px; padding-top: 0; }
	.hos-header.is-nav-open .hos-header__bar { display: flex; }
	.hos-nav { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
	.hos-nav__item { width: 100%; }
	.hos-nav__toggle { width: 100%; justify-content: space-between; }
	.hos-nav__menu { position: static; box-shadow: none; border: none; border-radius: 0; padding: 0 0 8px 12px; min-width: 0; }
	.hos-nav__item--menu:hover > .hos-nav__menu, .hos-nav__item--menu:focus-within > .hos-nav__menu { display: none; }
	.hos-nav__item--menu.is-open > .hos-nav__menu { display: flex; }
	.hos-header__actions { margin-left: 0; width: 100%; padding-top: 8px; }
	.hos-btn { flex: 1 1 auto; justify-content: center; }
}

/* ---- Footer ---- */
.hos-footer { background: var(--ds-color-white); border-top: 1px solid var(--ds-color-border); padding: clamp(40px, 6vw, 72px) 0 32px; font-size: var(--ds-text-xs); color: var(--ds-color-body); }
.hos-footer a { color: var(--ds-color-red-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.hos-footer a:hover { color: var(--ds-color-red-hover); text-decoration-thickness: 3px; }
.hos-footer__inner { max-width: var(--ds-width-container); margin: 0 auto; padding: 0 var(--ds-space-gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.hos-footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 38ch; }
.hos-footer__brand img, .hos-footer__brand .custom-logo, .hos-footer__brand .custom-logo-link img { width: 200px; height: auto; display: block; }
.hos-footer__brand p { margin: 0; line-height: var(--ds-line-snug); }
.hos-footer__brand strong { color: var(--ds-color-heading); font-weight: var(--ds-weight-semibold); }
.hos-footer__col { display: flex; flex-direction: column; gap: 12px; }
.hos-footer__col h2 { margin: 0; font-family: var(--ds-font-heading); font-weight: var(--ds-weight-semibold); font-size: var(--ds-text-sm); line-height: 1.4; color: var(--ds-color-heading); }
.hos-footer__col p { margin: 0; line-height: var(--ds-line-snug); }
.hos-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.hos-footer__bottom { max-width: var(--ds-width-container); margin: 32px auto 0; padding: 24px var(--ds-space-gutter) 0; border-top: 1px solid var(--ds-color-border); display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.hos-footer__legal { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 1rem; }
.hos-footer__social { list-style: none; padding: 0; margin: 0; display: flex; gap: 12px; align-items: center; }
.hos-footer__social a { width: 48px; height: 48px; border-radius: var(--ds-radius-pill); background: var(--ds-color-blue-dark); color: var(--ds-color-white); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.hos-footer__social a:hover { background: var(--ds-color-blue-hover); color: var(--ds-color-white); }
