* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--strim-black);
  background: var(--strim-grey-050);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}
a { color: var(--strim-blue); text-underline-offset: .18em; }
a:hover { color: var(--strim-navy); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 4px solid var(--strim-focus); outline-offset: 3px; }
h1, h2, h3 { color: var(--strim-navy); line-height: 1.13; margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.65rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.35rem, 2.5vw, 2rem); }
p { max-width: 78ch; }
code { color: var(--strim-navy); font-weight: 700; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: .5rem;
  left: .5rem;
  transform: translateY(-180%);
  background: var(--strim-focus);
  color: var(--strim-black);
  padding: .75rem 1rem;
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 104px;
  padding: 1rem max(1.25rem, calc((100vw - var(--content)) / 2));
  overflow: hidden;
  background: var(--strim-white);
}
.site-header::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -100px;
  right: -30px;
  width: 340px;
  height: 260px;
  transform: rotate(-22deg);
  background: linear-gradient(135deg, var(--strim-green) 0 32%, var(--strim-red) 32% 43%, var(--strim-navy) 43% 78%, var(--strim-blue) 78%);
}
.brand-wrap, .header-actions { position: relative; z-index: 1; }
.brand-wrap { display: flex; align-items: center; gap: 1rem; }
.brand-link img { display: block; width: 270px; max-height: 78px; object-fit: contain; object-position: left center; }
.brand-copy { display: grid; }
.brand-copy strong { color: var(--strim-navy); font-size: 1.15rem; }
.brand-copy span { color: var(--strim-grey-600); font-size: .78rem; }
.header-actions { display: flex; align-items: center; gap: .8rem; margin-right: 260px; }
.header-actions form { margin: 0; }
.user-label { font-size: .88rem; font-weight: 700; }
.primary-nav { background: var(--strim-navy); color: white; }
.nav-scroll {
  display: flex;
  gap: .25rem;
  max-width: var(--content);
  margin: auto;
  overflow-x: auto;
  padding: .35rem 1.25rem;
}
.primary-nav a {
  flex: 0 0 auto;
  color: white;
  text-decoration: none;
  padding: .7rem .85rem;
  border-radius: 8px;
  font-weight: 650;
  font-size: .9rem;
}
.primary-nav a:hover { background: rgb(255 255 255 / 14%); }
.page-shell { min-height: 65vh; max-width: var(--content); margin: auto; padding: 2.2rem 1.25rem 4rem; }
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2.2rem max(1.25rem, calc((100vw - var(--content)) / 2));
  color: white;
  background: var(--strim-navy);
}
.site-footer p { margin: .2rem 0 0; color: rgb(255 255 255 / 72%); }
.site-footer img {
  width: min(330px, 100%);
  max-height: 90px;
  padding: .55rem .7rem;
  border-radius: 6px;
  background: var(--strim-white);
  object-fit: contain;
}
.muted { color: var(--strim-grey-600); font-size: .9em; }
.narrow { max-width: 680px; margin: 2rem auto; }
.eyebrow {
  display: inline-block;
  margin-bottom: .7rem;
  color: var(--strim-navy);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.section-heading, .detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin: 1.5rem 0 2rem;
}
.section-heading p, .detail-header p { color: var(--strim-grey-600); }
.section-heading h1, .detail-header h1 { margin-bottom: .6rem; }
.breadcrumb { display: flex; gap: .55rem; color: var(--strim-grey-600); font-size: .85rem; }
@media (max-width: 900px) {
  .site-header::after { opacity: .12; }
  .header-actions { margin-right: 0; }
  .brand-copy { display: none; }
  .section-heading, .detail-header { flex-direction: column; }
}
@media (max-width: 620px) {
  .site-header { align-items: stretch; flex-direction: column; min-height: auto; gap: .8rem; }
  .brand-link img { width: min(260px, 80vw); max-height: 72px; }
  .header-actions { align-items: flex-start; flex-direction: column; width: 100%; gap: .35rem; }
  .user-label { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.release-status {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.2rem;
  padding: .55rem max(1.25rem, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid var(--strim-grey-200);
  color: var(--strim-grey-600);
  background: var(--strim-white);
  font-size: .82rem;
}
.language-switcher { display: flex; align-items: center; gap: .4rem; }
.language-switcher label { color: var(--strim-navy); font-size: .8rem; font-weight: 750; }
.language-switcher select { width: auto; min-height: 36px; padding: .35rem 1.8rem .35rem .5rem; }
@media (max-width: 720px) {
  .language-switcher label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
}

/* Phase 4 accessibility hardening */
.error-summary {
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border: 3px solid var(--strim-red);
  border-radius: 8px;
  background: #fff1f1;
}
.error-summary h2 { font-size: 1.25rem; }
.error-summary a { color: #6f0008; font-weight: 750; }
[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--strim-focus); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  :focus-visible { outline: 3px solid CanvasText; }
  .badge, .alert, .workflow-stepper li, .chain-chip { border: 1px solid CanvasText; }
}
