/* -----------------------------------------------------------------------------
   Pinoy Fitness Events Calendar V9D - Monochrome Modern UI
   Direction: clean grayscale, subtle blue accents, light-yellow PF highlights.
   Scope: visual/layout improvements only; PHP/API/JS logic remains unchanged.
----------------------------------------------------------------------------- */

:root {
  --pf-blue: #024997;
  --pf-blue-soft: #eaf2ff;
  --pf-text: #111111;
  --pf-muted: #667085;
  --pf-muted-2: #8b95a1;
  --pf-line: #e5e7eb;
  --pf-line-dark: #d0d5dd;
  --pf-bg: #f6f7f9;
  --pf-card: #ffffff;
  --pf-card-soft: #fafafa;
  --pf-yellow: #fff8d6;
  --pf-yellow-line: #f3d36b;
  --pf-shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.04);
  --pf-shadow-md: 0 8px 22px rgba(16, 24, 40, 0.07);
}

body.pf-events-calendar-page,
.pf-events-calendar-root {
  font-family: 'Open Sans', 'Open Sans Regular', Arial, sans-serif;
  color: #111111;
}

/* Newspaper reserves vertical space for an empty breadcrumb row on this page.
   Remove it only when the PF Events Calendar shortcode is present. */
body.pf-events-calendar-page .td-crumb-container {
  min-height: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
}

.pf-events-calendar-root {
  width: 100%;
  max-width: 1068px;
  margin: 12px auto 40px;
  padding: 0 12px;
  color: var(--pf-text);
  box-sizing: border-box;
}

/* PF Configs dynamic/fallback calendar banner */
.pf-banner {
  margin: 0 0 20px;
  text-align: center;
}

.pf-banner img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--pf-line);
  box-shadow: var(--pf-shadow-sm);
}

.pf-banner a {
  display: block;
}

/* Header layout: calm monochrome card */
.pf-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 24px 26px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
  border: 1px solid var(--pf-line);
  box-shadow: var(--pf-shadow-md);
  color: var(--pf-text);
  overflow: hidden;
  position: relative;
}

.pf-calendar-header:before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 5px;
  border-radius: 0 999px 999px 0;
  background: var(--pf-blue);
}

.pf-calendar-header:after {
  content: "";
  position: absolute;
  right: -76px;
  bottom: -96px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 36px solid rgba(2, 73, 151, 0.045);
  pointer-events: none;
}

.pf-calendar-header-left {
  flex: 1 1 310px;
  position: relative;
  z-index: 1;
}

.pf-calendar-header-right {
  flex: 0 0 auto;
  text-align: right;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.pf-calendar-title {
  font-size: 30px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 7px;
  color: #111827;
}

.pf-events-calendar-root .pf-calendar-subtitle {
  font-size: 15px;
  margin: 0 !important;
  color: var(--pf-muted);
}

.pf-events-calendar-root .pf-calendar-app-text {
  margin: 0 0 8px !important;
  color: var(--pf-muted);
  font-weight: 600;
}

.pf-calendar-app-buttons {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.pf-calendar-app-buttons a {
  display: inline-block;
}

.pf-app-badge {
  height: 38px;
  width: auto;
  display: block;
}

.pf-calendar-app-buttons img {
  border-radius: 7px;
  transition: transform 0.16s ease-in-out, box-shadow 0.16s ease-in-out, opacity 0.16s ease-in-out;
  box-shadow: 0 3px 10px rgba(16, 24, 40, 0.10);
  opacity: 0.92;
}

.pf-calendar-app-buttons img:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.14);
  opacity: 1;
}

/* Toolbar */
.pf-calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--pf-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--pf-shadow-sm);
}

.pf-search-wrapper {
  position: relative;
  flex: 1 1 260px;
}

#event-search {
  width: 100%;
  padding: 11px 36px 11px 14px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid var(--pf-line-dark);
  background: #fbfbfc;
  color: var(--pf-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#province-filter {
  min-height: 42px;
  padding: 10px 36px 10px 12px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid var(--pf-line-dark);
  background: #fbfbfc;
  color: var(--pf-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.pf-calendar-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
}

.pf-saved-filter {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid var(--pf-line-dark);
  border-radius: 10px;
  background: #fbfbfc;
  color: #475467;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pf-saved-filter:hover {
  border-color: #aeb7c4;
  background: #fff;
  color: #111827;
}

.pf-saved-filter:focus-visible {
  outline: none;
  border-color: var(--pf-blue);
  box-shadow: 0 0 0 4px rgba(2, 73, 151, 0.08);
}

.pf-saved-filter.is-active {
  border-color: var(--pf-blue);
  background: var(--pf-blue);
  color: #fff;
}

.pf-saved-filter-icon {
  font-size: 16px;
  line-height: 1;
}

.pf-saved-filter-count {
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #eef2f6;
  color: #475467;
  font-size: 10.5px;
  font-weight: 800;
}

.pf-saved-filter.is-active .pf-saved-filter-count {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.pf-saved-empty {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border: 1px dashed var(--pf-line-dark);
  border-radius: 12px;
  background: #fafbfc;
  color: var(--pf-muted);
  font-size: 13px;
  text-align: center;
}

.pf-saved-empty[hidden] {
  display: none !important;
}

#event-search:focus,
#province-filter:focus {
  outline: none;
  border-color: var(--pf-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(2, 73, 151, 0.08);
}

.pf-search-clear {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  line-height: 1;
  color: #e53935;
}

.pf-search-clear:hover {
  color: #475467;
}

/* Error */
.pf-calendar-error {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 12px;
  font-size: 13px;
  color: #7c2d12;
}

/* Date headers */
.pf-event-date h2 {
  font-size: 14px;
  font-weight: 800;
  margin: 26px 0 10px;
  background: #f2f4f7;
  color: #344054;
  padding: 10px 14px;
  border-left: 4px solid var(--pf-blue);
  border-radius: 10px;
  letter-spacing: 0.01em;
}

/* Desktop table/card rows - Open Sans, cleaner full borders */
.events-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  margin-bottom: 8px;
  font-family: 'Open Sans', 'Open Sans Regular', Arial, sans-serif;
  font-size: 14px;
  color: #111111;
}

.events-table thead {
  background: transparent;
}

.events-table th {
  font-family: 'Open Sans', 'Open Sans Regular', Arial, sans-serif;
  padding: 10px 10px;
  vertical-align: middle;
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #8a94a3;
  letter-spacing: 0.05em;
  font-weight: 800;
  background: #ffffff;
  border-top: 1px solid #e6e8ec;
  border-bottom: 1px solid #e6e8ec;
  border-right: 1px solid #e6e8ec;
}

.events-table th:first-child {
  border-left: 1px solid #e6e8ec;
}

.events-table th.col-event {
  text-align: left;
  width: 40%;
}

.events-table th.col-distance {
  text-align: left;
  width: 20%;
}

.events-table th.col-location {
  text-align: left;
  width: 25%;
}

.events-table th.col-views {
  text-align: right;
  width: 15%;
}

.events-table tbody tr {
  background: #ffffff;
  box-shadow: none;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.events-table tbody tr:hover {
  background: #fafafa;
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.events-table td {
  font-family: 'Open Sans', 'Open Sans Regular', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #111111;
  line-height: 1.35;
  padding: 13px 10px;
  vertical-align: middle;
  background: #ffffff;
  border-top: 1px solid #e1e4e8;
  border-bottom: 1px solid #e1e4e8;
  border-right: 1px solid #e1e4e8;
}

.events-table td:first-child {
  border-left: 1px solid #e1e4e8;
  border-radius: 10px 0 0 10px;
}

.events-table td:last-child {
  border-radius: 0 10px 10px 0;
}

.events-table td.td-views {
  text-align: right;
  white-space: nowrap;
}

.pf-views-content {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  line-height: 1;
}

.pf-views-number-mobile,
.pf-mobile-views-label {
  display: none;
}

/* Event title - Open Sans app-card style */
.events-table a.calendar-link,
.td-event-name .calendar-no-link {
  font-family: 'Open Sans', 'Open Sans Regular', Arial, sans-serif;
  color: #111111;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.events-table a.calendar-link:hover {
  color: var(--pf-blue);
  text-decoration: none;
}

.calendar-no-link {
  cursor: default;
}

/* PF highlight rows + tag: subtle light yellow, no left curve/accent */
.pf-highlighted {
  background: transparent !important;
  border-left: none !important;
  box-shadow: none !important;
}

.pf-highlighted td {
  background: #fffdf3 !important;
  border-top: 1px solid #efe6b2;
  border-bottom: 1px solid #efe6b2;
  border-right: 1px solid #efe6b2;
}

.pf-highlighted td:first-child {
  border-left: 1px solid #efe6b2 !important;
  border-radius: 10px 0 0 10px;
}

.pf-highlighted td:last-child {
  border-right: 1px solid #efe6b2 !important;
  border-radius: 0 10px 10px 0;
}

.pf-highlight-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  font-family: 'Open Sans', 'Open Sans Regular', Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: #5d4b00;
  background: #f7e89a;
  border: 1px solid #eadb86;
  border-radius: 999px;
  vertical-align: middle;
}

.pf-flames {
  margin-right: 3px;
}

.pf-views-number {
  color: #667085;
  font-size: 13px;
  font-weight: 500;
}

/* Organizer line under event title */
.event-organizer {
  font-family: 'Open Sans', 'Open Sans Regular', Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #8a94a3;
  margin-top: 4px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.event-organizer.pf-org {
  color: #6b5a00;
  font-weight: 700;
}

.td-distance,
.td-location,
.td-views {
  font-family: 'Open Sans', 'Open Sans Regular', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #111111;
}

.pf-location-mobile,
.pf-mobile-views-label {
  display: none;
}

.pf-location-desktop {
  display: inline;
}

/* Province indicator pill */
.province-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  background: #f2f4f7;
  border: 1px solid var(--pf-line-dark);
  border-radius: 999px;
  padding: 6px 10px;
  margin-left: 2px;
  color: #475467;
}

.province-indicator-label {
  font-weight: 800;
  color: #111827;
}

.province-indicator-clear {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 0 3px;
  color: #667085;
}

.province-indicator-clear:hover {
  color: #111827;
}

/* Tooltip for saved province */
.province-tooltip {
  margin-top: 6px;
  font-size: 12px;
  background: #fffdf0;
  border: 1px solid #f5df8e;
  color: #5c4300;
  padding: 8px 10px;
  border-radius: 10px;
  max-width: 520px;
}

.province-tooltip-ok {
  margin-left: 8px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #e7c957;
  cursor: pointer;
  background: #ffe98a;
  color: #5c4300;
  font-weight: 700;
}

/* Highlight for province dropdown when restored */
#province-filter.province-highlight {
  box-shadow: 0 0 0 4px rgba(243, 211, 107, 0.45);
  border-color: var(--pf-yellow-line);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Saved-events footer invitation */
.pf-saved-app-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 8px;
  padding: 16px 18px;
  border: 1px solid #dbe6f4;
  border-radius: 14px;
  background: #f7faff;
  color: var(--pf-text);
}

.pf-saved-app-note[hidden],
.pf-submit-bottom-wrapper[hidden] {
  display: none !important;
}

.pf-saved-app-note-copy {
  min-width: 0;
}

.pf-saved-app-note-copy strong {
  display: block;
  margin-bottom: 4px;
  color: #111827;
  font-size: 14px;
  line-height: 1.3;
}

.pf-saved-app-note-copy span {
  display: block;
  color: var(--pf-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.pf-saved-app-note-buttons {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.pf-saved-app-note-buttons a {
  display: block;
  line-height: 0;
}

.pf-saved-app-note-buttons img {
  display: block;
  width: auto;
  height: 32px;
  border-radius: 6px;
}

/* Submit button + note */
.pf-submit-bottom-wrapper {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 24px;
}

.pf-submit-bottom {
  display: inline-block;
  padding: 10px 18px;
  background: #111827;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.04em;
  box-shadow: var(--pf-shadow-sm);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.pf-submit-bottom:hover {
  background: var(--pf-blue);
  transform: translateY(-1px);
  box-shadow: var(--pf-shadow-md);
}

.pf-calendar-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--pf-muted);
  background: #fafafa;
  border: 1px solid var(--pf-line);
  border-radius: 12px;
  padding: 12px 14px;
}

.pf-calendar-note p {
  margin: 0;
}

/* Inline sponsored banners inside event list */
.pf-sponsored-row td {
  padding: 10px 0 14px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.pf-sponsored-row:hover {
  transform: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.pf-sponsored-box {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--pf-line);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--pf-shadow-sm);
  max-width: 820px;
  margin: 0 auto;
}

.pf-sponsored-box a {
  display: block;
  line-height: 0;
}

.pf-sponsored-box img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 9px;
}

.pf-sponsored-label {
  display: inline-block;
  margin-bottom: 7px;
  padding: 3px 8px;
  font-family: 'Open Sans', 'Open Sans Regular', Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #667085;
  background: #f2f4f7;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .pf-sponsored-box {
    max-width: 100%;
    border-radius: 10px;
    padding: 6px;
  }

  .pf-sponsored-box img {
    border-radius: 8px;
  }

  .pf-sponsored-label {
    font-size: 9px;
    margin-bottom: 6px;
  }
}

/* Browser-only favorite/star beside views */
.pf-favorite-btn {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  margin: 0 0 0 1px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #e53935;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  vertical-align: middle;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.pf-favorite-btn:hover {
  color: #c62828;
  background: rgba(229,57,53,0.08);
}

.pf-favorite-btn:focus-visible {
  outline: 2px solid rgba(2,73,151,0.35);
  outline-offset: 1px;
}

.pf-favorite-btn.is-saved {
  color: var(--pf-blue);
}

.pf-favorite-icon {
  display: block;
  font-size: 17px;
  line-height: 1;
  transform: translateY(-0.5px);
}

/* ---------- MOBILE COMPACT EVENT ROWS ---------- */
@media (max-width: 768px) {
  .pf-banner.pf-banner-hide-mobile {
    display: none !important;
  }

  .pf-events-calendar-root {
    margin-top: 12px !important;
    padding-left: 0;
    padding-right: 0;
  }

  .pf-calendar-header {
    padding: 16px 16px 17px;
    border-radius: 14px;
    gap: 8px;
    margin-bottom: 14px;
  }

  .pf-calendar-header:before {
    top: 16px;
    bottom: 16px;
    width: 4px;
  }

  .pf-calendar-header-left,
  .pf-calendar-header-right {
    flex: 1 1 100%;
  }

  .pf-calendar-header-right {
    text-align: left;
    margin-top: 2px;
  }

  .pf-calendar-title {
    font-size: 24px;
    line-height: 1.1;
    margin-bottom: 4px;
  }

  .pf-events-calendar-root .pf-calendar-subtitle {
    font-size: 13px;
    line-height: 1.4;
    margin: 0 !important;
  }

  .pf-events-calendar-root .pf-calendar-app-text {
    margin: 0 0 6px !important;
    font-size: 12.5px;
    line-height: 1.35;
  }

  .pf-calendar-app-buttons {
    justify-content: flex-start;
    gap: 7px;
    flex-wrap: nowrap;
  }

  .pf-app-badge {
    height: 31px;
  }

  .pf-calendar-toolbar {
    padding: 12px;
    border-radius: 13px;
    margin-bottom: 12px;
  }

  .pf-search-wrapper {
    flex: 1 1 100%;
    width: 100%;
  }

  .pf-calendar-filter-row {
    flex: 1 1 100%;
    width: 100%;
    gap: 7px;
  }

  .pf-calendar-filter-row #province-filter {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .pf-saved-filter {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 9px 10px;
  }

  .pf-saved-filter-count {
    min-width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .pf-saved-app-note {
    display: block;
    margin: 14px 0 6px;
    padding: 13px 14px;
    border-radius: 12px;
  }

  .pf-saved-app-note-copy strong {
    font-size: 13.5px;
    margin-bottom: 3px;
  }

  .pf-saved-app-note-copy span {
    font-size: 12px;
    line-height: 1.4;
  }

  .pf-saved-app-note-buttons {
    margin-top: 10px;
    gap: 6px;
  }

  .pf-saved-app-note-buttons img {
    height: 29px;
  }

  .province-indicator {
    margin-left: 0;
  }

  .events-table thead {
    display: none;
  }

  .events-table,
  .events-table tbody {
    display: block;
    width: 100%;
  }

  .events-table {
    border-spacing: 0;
    margin-bottom: 2px;
  }

  /* Two-row mobile layout:
     row 1 = title | compact views
     row 2 = venue + city | distance */
  .events-table tr.event-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas:
      "event views"
      "location distance";
    column-gap: 10px;
    row-gap: 3px;
    align-items: center;
    width: 100%;
    border: 1px solid var(--pf-line);
    margin-bottom: 7px;
    padding: 8px 10px;
    background: #ffffff;
    border-radius: 11px;
    box-shadow: var(--pf-shadow-sm);
    position: relative;
  }

  .events-table tbody tr.event-row:hover {
    transform: none;
    box-shadow: var(--pf-shadow-sm);
  }

  .events-table tr.event-row.pf-mobile-clickable {
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
  }

  .events-table tr.event-row.pf-mobile-clickable:active {
    transform: scale(0.995);
    border-color: #cfd6df;
    background: #f8fafc;
  }

  .events-table tr.event-row.pf-mobile-clickable.pf-highlighted:active {
    background: #fff9dc !important;
    border-color: #e8d98b;
  }

  .events-table tr.event-row > td,
  .events-table tr.event-row > td:first-child,
  .events-table tr.event-row > td:last-child {
    display: block;
    width: auto;
    min-width: 0;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    background: transparent !important;
    font-family: 'Open Sans', 'Open Sans Regular', Arial, sans-serif;
  }

  .events-table tr.event-row.pf-highlighted {
    background: #fffdf3 !important;
    border-color: #efe6b2;
    border-left: 1px solid #efe6b2 !important;
    box-shadow: var(--pf-shadow-sm);
  }

  .events-table tr.event-row.pf-highlighted > td,
  .events-table tr.event-row.pf-highlighted > td:first-child,
  .events-table tr.event-row.pf-highlighted > td:last-child {
    background: transparent !important;
    border: none !important;
  }

  .pf-event-date h2 {
    font-size: 12.5px;
    font-weight: 800;
    margin-top: 13px;
    margin-bottom: 6px;
    padding: 7px 10px;
    border-radius: 8px;
  }

  .td-event-name {
    grid-area: event;
    display: flex !important;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
  }

  .td-event-name a,
  .td-event-name .calendar-no-link {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #111111;
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
    padding: 0;
  }

  .td-event-name a:hover {
    color: var(--pf-blue);
    text-decoration: none;
  }

  .pf-highlight-tag {
    flex: 0 0 auto;
    margin: 0;
    padding: 1px 5px;
    font-size: 8px;
    line-height: 1.35;
  }

  .event-organizer {
    display: none !important;
  }

  .td-distance {
    grid-area: distance;
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    color: #475467 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1.2;
  }

  .td-location {
    grid-area: location;
    min-width: 0;
    overflow: hidden;
    color: #667085 !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    line-height: 1.25;
  }

  .pf-location-desktop {
    display: none !important;
  }

  .pf-location-mobile {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .td-views {
    grid-area: views;
    text-align: right !important;
    white-space: nowrap;
    color: var(--pf-muted-2) !important;
    font-size: 10.5px !important;
    line-height: 1;
  }

  .pf-views-content {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    line-height: 1;
  }

  .pf-flames,
  .pf-views-number {
    display: none;
  }

  .pf-views-number-mobile,
  .pf-mobile-views-label {
    display: inline;
    color: #8b95a1;
    font-size: 10.5px;
    font-weight: 600;
  }

  .pf-mobile-views-label {
    font-weight: 500;
  }

  .pf-favorite-btn {
    width: 17px;
    height: 17px;
    margin-left: 1px;
  }

  .pf-favorite-icon {
    font-size: 15px;
  }

  /* Sponsored rows remain full-width cards between compact event rows. */
  .events-table tr.pf-sponsored-row {
    display: block;
    width: 100%;
    margin: 2px 0 8px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .events-table tr.pf-sponsored-row > td {
    display: block;
    width: 100%;
  }

  .pf-calendar-note {
    border-radius: 12px;
    padding: 12px;
  }

}



/* Shortcode/default-template compatibility. */
body.pf-events-calendar-page .entry-title,
body.pf-events-calendar-page .td-page-title,
body.pf-events-calendar-page .td-post-title {
  display: none;
}

.pf-events-calendar-root * {
  box-sizing: border-box;
}
