/*
  global.css — ICS Platform Design System Entry Point
  Single source of truth for all base styles.
  Load order is fixed; do not reorder.

  Origin: archive_old_project/frontend/assets/css/global.css
  Adapted for Django staticfiles (each file loaded individually in base.html).
*/

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

/* =========================
   BASE RESET
========================= */

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
  list-style-type: none;
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}


html {
    font-size: 100%;
    font-style: normal;
    font-display: fallback;
    scroll-behavior: smooth;
    height: -webkit-fill-available;
}

body {
    font-family: "Roboto", system-ui, sans-serif;
    font-size: 16px; /* Strict 16px prevents iOS Safari form zoom */
    font-weight: 400;
    line-height: 1.5;
    background: var(--bg);
    color: var(--text);
    transition: background 0.4s ease, color 0.4s ease;
}

main,
section {
  overflow: hidden;
}

main, .ics-main {
    padding-bottom: 90px;
}

/* Mobile-first safe margins for the main content block */
.ics-main {
    padding-inline: 16px;
    max-width: 800px; /* Optional: Constrain width on large screens to read comfortably */
    margin-inline: auto;
}

a,
button {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  border: none;
  outline: none;
  color: inherit;
  background: unset;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: inherit;
  line-height: 1.25;
  text-wrap: balance;
  word-wrap: break-word;
}

p,
li {
  font-family: inherit;
  line-height: 1.5;
  text-wrap: pretty;
  word-wrap: break-word;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  background-size: cover;
  background-repeat: no-repeat;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* =========================
   MATERIAL SYMBOLS (M3) ICONS
========================= */

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* Variation settings: FILL 0 (outlined) by default, 1 for filled */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
