/* ======== COMPACT ======== */
/*
  Square edges, flat/no shadows, tighter spacing, heavier type hierarchy.
  Feels like a focused desktop tool.
  Font: IBM Plex Sans — technical character, excellent small-size legibility.
*/
[data-pg-style="compact"] {

  /* Font: IBM Plex Sans — set on html so Bootstrap's body var inherits it */
  --bs-body-font-family: "IBM Plex Sans", system-ui, sans-serif;

  & .poppins,
  & .poppins-500,
  & .poppins-600,
  & .poppins-700 {
    font-family: "IBM Plex Sans", system-ui, sans-serif;
  }

  /* Cards — very sharp, flat */
  & .card {
    border-radius: 2px;
    box-shadow: none;
  }

  & .card-header {
    border-radius: 0 !important;
    padding: 0.4rem 0.65rem;
  }

  & .card-footer {
    border-radius: 0 !important;
    padding: 0.3rem 0.5rem;
  }

  & .card-body {
    padding: 0.6rem;
  }

  /* Item grid tiles — square, borderless, denser */
  & .item-grid-single-item-container {
    border-radius: 2px;
    box-shadow: none;
  }

  & .item-grid-item-header {
    border-radius: 0;
    padding: 0.15rem 0.3rem;
    font-size: 0.8rem;
  }

  & .item-grid {
    column-gap: 0.75rem;
    row-gap: 0.6rem;
  }

  /* Buttons — square */
  & .btn {
    border-radius: 2px;
  }

  & .btn-sm {
    border-radius: 2px;
    padding: 0.15rem 0.4rem;
    font-size: 0.8rem;
  }

  /* Page content — tighter */
  & .page-content-container {
    padding: 1.25rem 2rem;

    @media (width <=1199.98px) {
      padding: 0.4rem;
    }

    @media (1200px <=width <=1400px) {
      padding: 1rem 1.5rem;
    }
  }

  /* Navbar — flat, no radius */
  & .primary-navigation-bar-container {
    padding: 0.3rem 0.75rem;
    box-shadow: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
  }

  /* Continuation bars */
  & .continuation-bar {
    border-radius: 2px;
    box-shadow: none;
  }

  /* Event card header — tighter */
  & .eventcard__header {
    padding: 0.35rem 0.5rem;
  }

  & .eventcard__body {
    padding: 0.6rem;

    @media (width <=768px) {
      padding: 0.35rem;
    }
  }

  /* Inputs and selects */
  & .form-control,
  & .form-select {
    border-radius: 2px;
  }

  /* Dropdowns */
  & .pg-menu {
    border-radius: 2px;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.15);
  }

  /* Badges */
  & .badge {
    border-radius: 2px;
  }

  /* Typography — stronger hierarchy */
  & .eventcard__title h3 {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
  }

  & .eventcard__time h5 {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--bs-secondary-color);
  }

  /* Notes container */
  & .item-grid-notes-container,
  & .eventcard__notes {
    border-radius: 2px;
  }
}

/* --- Compact style --- */
/* Tight chip: coloured pill with day+month, smaller date text beside it */
[data-pg-style="compact"] {

  & .event-date-header {
    gap: 0.6rem;
  }

  & .event-date-header__icon {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 2px;
    border: none;
    overflow: visible;
  }

  & .event-date-header__icon-day {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.2em 0.4em;
    background-color: var(--pg-accent, #f5a623);
    color: var(--pg-accent-contrast, #1a1a1a);
    line-height: 1;
  }

  & .event-date-header__icon-month {
    display: flex;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2em 0.4em;
    justify-content: center;
    align-items: center;
    background-color: color-mix(in srgb, var(--pg-accent, #f5a623) 70%, #000);
    color: var(--pg-accent-contrast, #fff);
    line-height: 1;
  }

  & .event-date-header__title {
    display: none;

    margin-inline-start: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
  }
}