/* Theme A – base (resets, typography, element defaults) */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--a-font-body);
  font-size: var(--a-text-md);
  line-height: var(--a-leading);
  color: var(--a-ink);
  background: var(--a-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin-block: 0 var(--a-space-3);
  font-family: var(--a-font-heading);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--a-ink);
}
h1 { font-size: var(--a-text-3xl); }
h2 { font-size: var(--a-text-2xl); }
h3 { font-size: var(--a-text-xl); }
h4 { font-size: var(--a-text-lg); }
h5, h6 { font-size: var(--a-text-md); }

p,
ul,
ol,
dl,
blockquote,
figure {
  margin-block: 0 var(--a-space-4);
  margin-inline: 0;
}
ul,
ol {
  padding-inline-start: var(--a-space-5);
}

img,
svg,
video,
canvas,
picture {
  vertical-align: middle;
}
img,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration: underline;
}

hr {
  border: 0;
  border-block-start: 1px solid var(--a-line);
  margin-block: var(--a-space-6);
}

small { font-size: var(--a-text-sm); }
strong, b { font-weight: 600; }

table {
  border-collapse: collapse;
  width: 100%;
}

input,
button,
select,
textarea,
optgroup {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}

:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--a-brand);
  outline-offset: 2px;
}

::selection {
  background: var(--a-brand);
  color: var(--a-on-brand);
}

[hidden] {
  display: none !important;
}

.a-visually-hidden {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Stsg_icon.css draws .px_icon::before as a 50px absolutely positioned tile. Form views copied from
   stsg (contact, login, search…) have no positioned ancestor for it, so the tile landed on the page
   edge over the content. Show the glyph inline instead; the page tasks restyle the forms. */
.px_icon::before {
  position: static;
  display: inline-block;
  inline-size: auto;
  block-size: auto;
  margin-inline-end: var(--a-space-2);
  transform: none;
  background: none;
  color: var(--a-muted);
  font-size: 1rem;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
