/* ==========================================================================
   Sync4DR Design System -- Base
   Modern reset + document-level typography. Load order on every page:
   fonts.css, tokens.css, base.css, components.css -- so the custom
   properties and @font-face rules referenced below already exist.
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-base);
  color: var(--s4-text);
  background: var(--s4-bg);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--s4-text);
  margin: 0 0 var(--space-4);
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-base); }

p {
  margin: 0 0 var(--space-4);
}

a {
  color: var(--s4-red);
  text-decoration: none;
}

a:hover {
  color: var(--s4-red-dark);
  text-decoration: underline;
}

ul, ol {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-6);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

hr {
  border: none;
  border-top: 1px solid var(--s4-border);
  margin: var(--space-6) 0;
}

/* Visible keyboard focus ring everywhere; mouse/touch interaction does not
   trigger it (native :focus-visible behaviour). */
:focus-visible {
  outline: 2px solid var(--s4-red);
  outline-offset: 2px;
}

/* Overrides the 24px default set in fonts.css for the portal's compact UI
   density. fonts.css is not modified -- this simply cascades after it. */
.material-symbols-outlined {
  font-size: 20px;
  vertical-align: middle;
  line-height: 1;
}
