:root {
  --md-primary-fg-color: #2196F3;      /* Blue */
  --md-accent-fg-color: #00BCD4;       /* Cyan accent */
}

/* Dark mode */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #64B5F6;
  --md-accent-fg-color: #4DD0E1;
}

.grid.cards ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}
.grid.cards li {
  border: 1px solid var(--md-primary-fg-color--light);
  border-radius: 8px;
  padding: 1rem;
}

/* Improve table readability */
.md-typeset table:not([class]) th,
.md-typeset table:not([class]) td {
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0.5rem 0.75rem;
  vertical-align: top;
}

/* Make wrapped text in cells easier to read */
.md-typeset table:not([class]) td {
  line-height: 1.5;
}

/* Optional: bolder category rows */
.md-typeset table:not([class]) th {
  font-weight: 600;
  background-color: var(--md-primary-fg-color--light);
}

/* Change "Last Updated" label */
.md-source-file__fact::before {
  content: "Last Updated: ";
  font-weight: 600;
}

/* Hide clock icon before "Last Updated" date */
.md-source-file__fact svg {
  display: none !important;
}

/* Add PKT timezone after the date*/
.md-source-file__fact::after {
  content: " PKT";
  font-weight: 600;
  color: var(--md-default-fg-color);
}

/* Style the entire date line */
.md-source-file__fact {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--md-default-fg-color--light);
}

/* Force word wrapping / breaking in code blocks */
.md-typeset pre,
.md-typeset code {
  white-space: pre-wrap !important;       /* allow wrapping */
  word-break: break-word !important;      /* break long words */
  overflow-wrap: break-word !important;   /* modern equivalent / fallback */
}

/* Better look – prevent breaking in middle of words when possible */
.md-typeset pre code {
  word-break: normal;                     /* try to break at hyphens/spaces first */
  overflow-wrap: anywhere;                /* break anywhere if needed */
}
