/* Shared site header: full-width background with content aligned to the site container. */
header.site-header,
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: block;
  height: auto;
  background: #fafafa;
  box-shadow: 0 4px 14px rgba(16, 24, 32, 0.08);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 10px 0;
}

.header-content .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #101820;
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.8px;
  text-decoration: none;
}

.header-content .brand-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.header-content .brand em {
  color: #006994;
  font-style: normal;
}

.header-postcode-form {
  flex: 0 1 230px;
  width: 230px;
  min-width: 180px;
}

.header-postcode-control {
  display: flex;
  align-items: center;
  height: 38px;
  border: 1px solid #b9c8cf;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.header-postcode-control:focus-within {
  border-color: #006994;
  box-shadow: 0 0 0 3px rgba(0, 105, 148, 0.15);
}

.header-postcode-control svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-left: 9px;
  fill: none;
  stroke: #006994;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.header-postcode-control input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 7px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #101820;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.header-postcode-control input[aria-invalid="true"] { color: #a42b2b; }
.header-postcode-control input::placeholder { color: #71808a; font-weight: 500; }

.header-postcode-control button {
  align-self: stretch;
  padding: 0 9px;
  border: 0;
  border-left: 1px solid #d5e0e5;
  background: #edf8fb;
  color: #006994;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.header-postcode-control button:hover { background: #d8eff5; }

.header-content .account-links {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.header-content .account-links .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #006994;
  color: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.header-content .account-links .button:hover { background: #004d6d; }

.header-content .account-links .button-outline {
  border-color: #006994;
  background: #ffffff;
  color: #006994;
}

.header-content .account-links .button-outline:hover { background: #edf8fb; }

.header-content .account-links .icon-only-control {
  width: 38px;
  padding: 0;
}

.header-content .account-links .icon-only-control svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

/* Multi-colour account controls remain clear on both light and blue buttons. */
.header-content .account-links .icon-only-control .icon-accent { stroke: #f4a261; }
.header-content .account-links .icon-only-control .icon-main { stroke: #006994; }
.header-content .account-links .button:not(.button-outline) .icon-main { stroke: #ffffff; }
.header-content .account-links .button:not(.button-outline) .icon-accent { stroke: #ffd166; }

.header-content .account-links .icon-only-control:focus-visible {
  outline: 3px solid rgba(0, 105, 148, 0.28);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .header-content { flex-wrap: wrap; gap: 8px 12px; min-height: 70px; padding: 10px 0; }
  .header-content .brand { gap: 8px; font-size: 1.08rem; }
  .header-content .brand-icon { width: 30px; height: 30px; }
  .header-content .brand span { white-space: nowrap; }
  .header-postcode-form { order: 3; flex: 0 1 230px; width: 230px; min-width: 0; }
  .header-postcode-control { height: 34px; }
  .header-content .account-links { gap: 6px; }
}

@media (max-width: 560px) {
  .header-content .brand { font-size: 0.98rem; }
  .header-content .brand-icon { width: 28px; height: 28px; }
  .header-postcode-form { flex-basis: 205px; width: 205px; }
  .header-content .account-links .button { min-height: 34px; padding: 0 8px; font-size: 0.72rem; }
  .header-content .account-links .icon-only-control { width: 34px; padding: 0; }
}

@media (max-width: 380px) {
  .header-content { gap: 7px; }
  .header-content .brand { font-size: 0.87rem; }
  .header-content .brand-icon { width: 24px; height: 24px; }
  .header-postcode-form { flex-basis: 190px; width: 190px; }
  .header-content .account-links { gap: 4px; }
  .header-content .account-links .button { min-height: 31px; padding: 0 6px; font-size: 0.66rem; }
}
