/* Reset, typography and accessible utilities. */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  color: var(--ink);
  background: white;
  font-family: var(--font-family);
  font-size: var(--font-body);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

button,a,summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

img,svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
  object-fit: contain;
}

a:focus-visible,button:focus-visible,summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 6px;
}

::selection {
  background: #e6ebf1;
  color: var(--text-primary);
}

h1,h2,h3,p {
  margin-top: 0;
}

h1,h2,h3 {
  font-weight: 500;
}

.container {
  width: min(var(--measure),calc(100% - 96px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 10px 20px;
  border-radius: 12px;
}

.skip-link:focus {
  top: 12px;
}

.brand-logo {
  display: block;
  width: 100px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Quiet scrollbars remain visible and draggable in long business views. */
.portal-page { scrollbar-color:#c4cad3 transparent; scrollbar-width:thin; }
.portal-page ::-webkit-scrollbar { width:8px; height:8px; }
.portal-page ::-webkit-scrollbar-thumb { background:#c4cad3; border:2px solid transparent; border-radius:8px; background-clip:padding-box; }
.portal-page ::-webkit-scrollbar-track { background:transparent; }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
