/* Bio-Type font - self-hosted variable font */
@font-face {
  font-family: Bio-Type;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/styles/fonts/Bio-Type-Regular.woff2") format("woff2");
}

/* Fallback fonts matched to Bio-Type metrics */
@font-face {
  font-family: bio-type-fallback;
  size-adjust: 100%;
  src: local("Helvetica"), local("Arial");
}

:root {
  /* ===== BIO-RAD DESIGN TOKENS ===== */

  /* Brand Colors */
  --color-brand-green: #008943;
  --color-brand-green-dark: #006d35;
  --color-brand-green-light: #00a851;
  --color-text-primary: #222;
  --color-text-secondary: #555;
  --color-text-light: #767676;
  --color-white: #fff;
  --color-black: #000;

  /* Background Colors */
  --color-background: #fff;
  --color-background-light-gray: #f4f4f4;
  --color-background-gray: #e8e8e8;

  /* Semantic Colors */
  --color-border: #dadada;
  --color-border-dark: #222;
  --color-link: #222;
  --color-link-hover: #008943;

  /* Typography - Font Families */
  --font-family: "Bio-Type", bio-type-fallback, "Helvetica Neue", helvetica, arial, sans-serif;
  --heading-font-family: var(--font-family);

  /* Typography - Heading Sizes */
  --heading-font-size-xxl: 61px;
  --heading-font-size-xl: 44px;
  --heading-font-size-l: 32px;
  --heading-font-size-m: 24px;
  --heading-font-size-s: 20px;
  --heading-font-size-xs: 18px;

  /* Typography - Body Sizes */
  --body-font-size-xxl: 24px;
  --body-font-size-xl: 20px;
  --body-font-size-l: 18px;
  --body-font-size-m: 16px;
  --body-font-size-s: 14px;
  --body-font-size-xs: 12px;

  /* Typography - Line Heights */
  --heading-line-height: 1.28;
  --body-line-height: 1.5;

  /* Spacing */
  --spacing-xxl: 48px;
  --spacing-xl: 32px;
  --spacing-l: 24px;
  --spacing-m: 16px;
  --spacing-s: 8px;
  --spacing-xs: 4px;

  /* Layout */
  --grid-container-width: 1200px;
  --section-padding: 48px 24px;

  /* Buttons */
  --button-border-radius: 48px;
  --button-border-radius-sm: 40px;
  --button-padding: 15px 24px;
  --button-padding-sm: 11px 24px;
  --button-font-weight: 400;
  --button-font-size: 18px;
  --button-transition: all 0.2s ease;

  /* Misc — top utility bar + brand row (see blocks/header/header.css) */
  --header-height: 118px;
  --border-radius: 8px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgb(0 0 0 / 10%);
  --shadow-md: 0 4px 12px rgb(0 0 0 / 10%);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;

  /* Focus */
  --focus-outline: 2px solid var(--color-brand-green);
  --focus-outline-offset: 2px;
}

/* ===== BASE STYLES ===== */

html {
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  padding-top: var(--header-height);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: var(--body-font-size-l);
  font-weight: 200;
  line-height: var(--body-line-height);
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font-family);
  font-weight: 200;
  line-height: var(--heading-line-height);
  color: var(--color-text-primary);
  margin-top: 0;
}

h1 {
  font-size: var(--heading-font-size-xxl);
  margin-bottom: 24px;
}

h2 {
  font-size: var(--heading-font-size-xl);
  font-weight: 300;
  margin-bottom: 24px;
}

h3 {
  font-size: var(--heading-font-size-m);
  font-weight: 300;
  margin-bottom: 16px;
}

h4 {
  font-size: var(--heading-font-size-m);
  font-weight: 300;
  margin-bottom: 16px;
}

h5 {
  font-size: var(--heading-font-size-s);
  font-weight: 400;
}

h6 {
  font-size: var(--heading-font-size-xs);
  font-weight: 400;
}

p {
  margin: 0 0 20px;
}

strong {
  font-weight: 400;
}

/* ===== LINKS ===== */

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

a:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-outline-offset);
}

/* ===== BUTTONS ===== */

/* Primary button - Green filled */
a.button,
button {
  display: inline-block;
  font-family: var(--font-family);
  font-size: var(--button-font-size);
  font-weight: var(--button-font-weight);
  line-height: 1;
  text-decoration: none;
  text-align: center;
  padding: var(--button-padding);
  border-radius: var(--button-border-radius);
  border: 1px solid var(--color-brand-green);
  background-color: var(--color-brand-green);
  color: var(--color-white);
  cursor: pointer;
  transition: var(--button-transition);
  box-sizing: border-box;
}

a.button:hover,
button:hover {
  background-color: var(--color-brand-green-dark);
  border-color: var(--color-brand-green-dark);
  color: var(--color-white);
  text-decoration: none;
}

a.button:focus-visible,
button:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-outline-offset);
}

/* Secondary button - Outline dark */
a.button.secondary,
button.secondary {
  background-color: transparent;
  border-color: var(--color-border-dark);
  color: var(--color-text-primary);
}

a.button.secondary:hover,
button.secondary:hover {
  background-color: var(--color-text-primary);
  color: var(--color-white);
}

/* Tertiary/text button */
a.button.tertiary,
button.tertiary {
  background-color: transparent;
  border-color: transparent;
  color: var(--color-text-primary);
  padding: 0;
  border-radius: 0;
  text-decoration: underline;
}

a.button.tertiary:hover,
button.tertiary:hover {
  color: var(--color-brand-green);
}

/* ===== IMAGES ===== */

img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== LISTS ===== */

main ul,
main ol {
  padding-inline-start: 24px;
}

main ul ul,
main ol ol {
  padding-inline-start: 16px;
}

li {
  margin-block: 0.5em;
}

/* ===== FORM ELEMENTS ===== */

input,
textarea,
select,
button {
  font: inherit;
}

input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: var(--body-font-size-m);
  background: var(--color-background);
  color: var(--color-text-primary);
  transition: border-color var(--transition-base);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-brand-green);
  outline: none;
  box-shadow: 0 0 0 3px rgb(0 137 67 / 15%);
}

/* ===== SECTIONS ===== */

.section {

}

.section > .default-content-wrapper {
  max-width: var(--grid-container-width);
  margin: 0 auto;
}

/* Section variant: light-gray background */
main .section.light-gray {
  background-color: var(--color-background-light-gray);
}

/* Section variant: dark background */
main .section.dark {
  background-color: var(--color-text-primary);
  color: var(--color-white);
}

main .section.dark a {
  color: var(--color-white);
}

main .section.dark h1,
main .section.dark h2,
main .section.dark h3 {
  color: var(--color-white);
}

/* ===== HEADER/FOOTER PLACEHOLDER ===== */

header {
  display: block;
  /* Height comes from header fragment (utility bar + brand); body offset uses --header-height */
  background-color: #fff;
}

/* ===== RESPONSIVE ===== */

@media (width >= 900px) {
  :root {
    --section-padding: 64px 32px;
  }

  h1 {
    font-size: var(--heading-font-size-xxl);
  }

  h2 {
    font-size: var(--heading-font-size-xl);
  }
}

@media (width >= 1440px) {
  :root {
    --grid-container-width: 1200px;
  }
}

/* ===== EDS FRAMEWORK ===== */

main > div,
.has-template,
div[data-status] {
  display: none;
}

main > div.section {
  display: block;
}

aem-sidekick {
  opacity: 0;
}

aem-sidekick[open="true"].is-ready {
  opacity: 1;
}
