.swd-hero__eyebrow { font-weight: 700; color: #c9d0ff; }
@media (max-width: 560px) {
  .swd-hero__eyebrow { font-size: 0.9rem; }
}

.swd-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--swd-radius-sm);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.swd-btn:hover { transform: translateY(-1px); }
.swd-btn--primary { color: #fff; background: var(--swd-colour-blue); }
.swd-btn--primary:hover { background: var(--swd-colour-blue-dark); }
.swd-btn--light { color: var(--swd-colour-ink); background: #fff; }
.swd-btn--outline { color: inherit; border-color: currentColor; background: transparent; }

.swd-button-row { display: flex; flex-wrap: wrap; gap: var(--swd-space-2); }

.swd-card {
  min-width: 0;
  padding: var(--swd-space-5);
  border: 1px solid var(--swd-colour-border);
  border-radius: var(--swd-radius-md);
  background: var(--swd-colour-surface);
  box-shadow: var(--swd-shadow-sm);
}
.swd-card h3 { font-size: 1.35rem; }
.swd-card p { color: var(--swd-colour-muted); }
.swd-card a:not(.swd-btn) { color: var(--swd-colour-blue); font-weight: 700; }

/* Shared brand utility bar */
.swd-utility {
  color: #080808;
  background: var(--swd-colour-grey);
  border-bottom: 1px solid #888;
}
.swd-utility__inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  align-items: center;
  gap: var(--swd-space-4);
}
.swd-brand { display: flex; align-items: center; min-width: 0; }
.swd-logo-track {
  position: relative;
  width: 220px;
  height: 58px;
  flex: 0 0 220px;
  overflow: hidden;
}
.swd-logo-track__image {
  position: absolute;
  top: 0;
  left: 4px;
  width: 54px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  animation: swd-logo-travel 5s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes swd-logo-travel {
  from { transform: translateX(0); }
  to { transform: translateX(154px); }
}
.swd-utility__message { text-align: center; }
.swd-utility__message strong { display: block; font-family: var(--swd-font-heading); }
.swd-utility__message span { font-size: 0.82rem; font-weight: 700; }
.swd-utility__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; font-size: 0.82rem; }
.swd-utility__links a { font-weight: 700; text-decoration: none; }
.swd-utility__links a:hover { text-decoration: underline; }

/* Shared primary navigation */
.swd-site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: var(--swd-colour-black);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}
.swd-site-nav__inner { display: flex; align-items: stretch; min-height: 50px; }
.swd-menu-toggle {
  display: none;
  width: 100%;
  min-height: 50px;
  padding: 0 4px;
  border: 0;
  color: #fff;
  background: transparent;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.swd-menu-toggle__icon { margin-right: 8px; }
.swd-navlinks { display: flex; width: 100%; align-items: stretch; }
.swd-navlinks > a, .swd-nav-disclosure__button {
  display: flex;
  min-height: 50px;
  align-items: center;
  padding: 0 11px;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.swd-navlinks > a:hover, .swd-navlinks > a[aria-current="page"], .swd-nav-disclosure__button:hover { background: var(--swd-colour-blue); }
.swd-navlinks__spacer { flex: 1; }
.swd-nav-disclosure { position: relative; display: flex; }
.swd-nav-disclosure__button::after { content: "▾"; margin-left: 7px; }
.swd-nav-disclosure__panel {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 260px;
  padding: 6px;
  border: 1px solid #323232;
  border-radius: 0 0 var(--swd-radius-sm) var(--swd-radius-sm);
  color: #fff;
  background: var(--swd-colour-black);
  box-shadow: var(--swd-shadow-md);
}
.swd-nav-disclosure[data-open="true"] .swd-nav-disclosure__panel { display: block; }
/* Keep closed disclosures visually closed after Escape, including while the trigger retains focus. */
.swd-js .swd-nav-disclosure[data-open="false"] .swd-nav-disclosure__panel { display: none; }
.swd-nav-disclosure__panel a { display: block; padding: 10px 12px; border-radius: 4px; text-decoration: none; }
.swd-nav-disclosure__panel a:hover { background: var(--swd-colour-blue); }
.swd-language { margin-left: auto; }
.swd-language__button { gap: 7px; }
.swd-language__panel { right: 0; left: auto; min-width: 190px; }
.swd-language__option { display: flex !important; align-items: center; justify-content: space-between; gap: 16px; }
.swd-language__option[aria-current="page"] { background: #20284f; }
.swd-language__option[aria-current="page"]::after { content: "✓"; color: #c7d0ff; font-weight: 700; }
.swd-language__native { color: #bdc3d0; font-size: 0.72rem; }

/* Shared footer */
.swd-footer { padding: var(--swd-space-6) 0 var(--swd-space-4); color: var(--swd-colour-footer-text); background: var(--swd-colour-black); }
.swd-footer__grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: var(--swd-space-5); }
.swd-footer h2, .swd-footer h3 { color: #fff; }
.swd-footer h2 { font-size: 1.25rem; }
.swd-footer h3 { margin-bottom: 0.8rem; font-size: 1rem; }
.swd-footer a { display: block; margin: 0.4rem 0; color: var(--swd-colour-footer-text); text-decoration: none; }
.swd-footer a:hover { color: #fff; text-decoration: underline; }
.swd-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: var(--swd-space-5); padding-top: var(--swd-space-4); border-top: 1px solid #292929; font-size: 0.8rem; }

@media (hover: hover) and (pointer: fine) and (min-width: 1081px) {
  .swd-nav-disclosure:hover .swd-nav-disclosure__panel,
  .swd-nav-disclosure:focus-within .swd-nav-disclosure__panel { display: block; }
}

@media (max-width: 1080px) {
  .swd-utility__inner { grid-template-columns: 190px 1fr auto; }
  .swd-logo-track { width: 176px; flex-basis: 176px; }
  @keyframes swd-logo-travel { from { transform: translateX(0); } to { transform: translateX(112px); } }
  .swd-site-nav__inner { display: block; }
  .swd-menu-toggle { display: block; }
  .swd-navlinks { display: none; flex-direction: column; align-items: stretch; padding: 0 0 10px; border-top: 1px solid #282828; }
  .swd-navlinks[data-open="true"] { display: flex; }
  .swd-navlinks > a, .swd-nav-disclosure__button { width: 100%; min-height: 44px; justify-content: flex-start; padding: 0 14px; text-align: left; }
  .swd-navlinks__spacer { display: none; }
  .swd-nav-disclosure { display: block; }
  .swd-nav-disclosure__panel { position: static; min-width: 0; margin: 0 10px 6px; border-radius: var(--swd-radius-sm); box-shadow: none; }
  .swd-language { margin-left: 0; }
  .swd-language__panel { width: auto; }
}

@media (max-width: 820px) {
  .swd-utility__inner { grid-template-columns: 164px 1fr; gap: 10px; padding-top: 5px; }
  .swd-utility__links { grid-column: 1 / -1; justify-content: center; padding: 7px 0 9px; border-top: 1px solid rgba(0,0,0,.12); }
  .swd-logo-track { width: 150px; height: 54px; flex-basis: 150px; }
  .swd-logo-track__image { width: 50px; height: 46px; }
  @keyframes swd-logo-travel { from { transform: translateX(0); } to { transform: translateX(92px); } }
  .swd-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .swd-utility__inner { grid-template-columns: 108px 1fr; }
  .swd-logo-track { width: 100px; height: 50px; flex-basis: 100px; }
  .swd-logo-track__image { top: 0; width: 46px; height: 42px; }
  @keyframes swd-logo-travel { from { transform: translateX(0); } to { transform: translateX(46px); } }
  .swd-utility__message { text-align: right; }
  .swd-utility__message strong { font-size: 0.8rem; }
  .swd-utility__message span { font-size: 0.7rem; }
  .swd-utility__links { gap: 18px; font-size: 0.74rem; }
  .swd-button-row { flex-direction: column; }
  .swd-button-row .swd-btn { width: 100%; }
  .swd-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 340px) {
  .swd-utility__message strong { font-size: 0.74rem; }
  .swd-utility__message span { font-size: 0.65rem; }
  .swd-utility__links { justify-content: space-between; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .swd-logo-track__image {
    animation-duration: 8s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
  }
  .swd-btn { transition: none; }
}
