:root {
  /* --- OFFICIAL THEME TOKENS --- */
  /* We map your Teal (#238390) to the Material system variables */

  --md-sys-color-primary: #238390;
  --md-sys-color-on-primary: #ffffff;

  --md-sys-color-secondary: #4a6367;
  --md-sys-color-on-secondary: #ffffff;

  --md-sys-color-surface: #fbfdfd;
  --md-sys-color-on-surface: #191c1c;

  --md-sys-color-surface-container: #eff5f5; /* Light grey/teal for cards */

  /* Font settings */
  --md-ref-typeface-brand: 'Roboto', sans-serif;
  --md-ref-typeface-plain: 'Roboto', sans-serif;

  font-family: 'Roboto', sans-serif;
}

body {
  margin: 0;
  background-color: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header Layout */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--md-sys-color-surface);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 500;
}

/* Main Content Area */
main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  box-sizing: border-box;
}

/* Card Layout Helper */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* We style a standard div to look like a card,
   but we will put official components inside it */
.material-card {
  background: var(--md-sys-color-surface-container);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- FIX: Strict Icon Sizing --- */
md-icon {
  /* 1. Tell the component to be 24px */
  --md-icon-size: 24px;

  /* 2. Force the font to match */
  font-size: 24px !important;

  /* 3. Force the container dimensions */
  width: 24px !important;
  height: 24px !important;
  min-width: 24px; /* Prevents squishing */

  /* 4. Center the icon glyph perfectly */
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  vertical-align: middle;

  /* 5. Ensure the font is correct */
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;

  /* 6. Prevent text wrapping inside the icon */
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  overflow: hidden; /* Clips anything outside the 24px box */
}

/* --- FIX: Footer Styling --- */
footer {
  background: var(--md-sys-color-surface-container);
  margin-top: 40px;
  padding: 40px 24px;
  border-radius: 24px 24px 0 0;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--md-sys-color-on-surface);
}

.right-align {
  text-align: left; /* Mobile first */
}

@media (min-width: 600px) {
  .right-align { text-align: right; }
}

.copyright {
  text-align: center;
  margin-top: 30px;
  opacity: 0.7;
}
