/* 大阪狭山びこ イベントマネージャー — front end. All rules are scoped to .oem-calendar / .oem-summary.
   Calendar rules start with #oem-calendar (the calendar root; one per page), so the theme's
   generic heading, list, table, image and link styles cannot leak into the calendar, and
   nothing here reaches any other part of the site. */

.oem-calendar,
.oem-summary {
  --oem-text: #1f2937;
  --oem-muted: #4b5563;
  --oem-border: #d1d5db;
  --oem-surface: #ffffff;
  --oem-subtle: #f3f4f6;
  --oem-accent: #1d4ed8;
  --oem-accent-bg: #dbeafe;
  --oem-sun: #b91c1c;
  --oem-sat: #1d4ed8;
  --oem-today: #047857;
  --oem-count-bg: #fef3c7;
  --oem-status: #065f46;
  --oem-status-bg: #d1fae5;
  color: var(--oem-text);
  margin: 0 0 2em;
}

/* Space kept above a date heading after jumping to it. Themes with a taller fixed header
   can override it, e.g. ".oem-calendar { --oem-scroll-margin: 120px; }". */
.oem-calendar {
  --oem-scroll-margin: 5rem;
  scroll-margin-top: var(--oem-scroll-margin); /* month links open at #oem-calendar */
}

/* Calendar palette: white base, soft light-grey lines, a light blue / cyan accent.
   Themes may override these on .oem-calendar. */
.oem-calendar {
  --oem-text: #1f2933;
  --oem-muted: #5f6b76;
  --oem-border: #e3e8ee;
  --oem-btn-border: #d5dce4;
  --oem-grid-line: #e8ecf1;
  --oem-subtle: #f3f6f9;
  --oem-head-bg: #f7f9fb;
  --oem-accent: #1f6fb5; /* focus outline */
  --oem-mark: #1f9be0;
  --oem-mark-soft: #eef6fd;
  --oem-today-line: #3d9ad8;
  --oem-sun: #c62828;
  --oem-sun-bg: #fdeff1;
  --oem-sat: #1e63c4;
  --oem-sat-bg: #eaf3fc;
  --oem-outside: #b4bcc5;
  --oem-badge: #356b53; /* event count badges (calendar, legend, date headings) */
  --oem-past-bg: #e5eaf0;
  --oem-disabled: #9aa3ac;
}

.oem-calendar *,
.oem-summary * {
  box-sizing: border-box;
}

.oem-calendar .oem-sr-only,
.oem-summary .oem-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.oem-summary a:focus-visible {
  outline: 3px solid var(--oem-accent);
  outline-offset: 2px;
}

/* Theme guard ---------------------------------------------------------------
   Element-level resets inside the calendar only. They outrank the theme's content styles
   (".entry-content p" etc.) and are themselves outranked by the class rules below. */

#oem-calendar p,
#oem-calendar ul,
#oem-calendar li {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  list-style: none;
}

#oem-calendar li::before,
#oem-calendar li::after {
  content: none;
  display: none;
}

#oem-calendar table,
#oem-calendar tr {
  margin: 0;
  border: 0;
  background: none;
}

#oem-calendar img {
  margin: 0;
  padding: 0;
  max-width: none;
  box-shadow: none;
}

#oem-calendar a {
  border-bottom: 0;
  box-shadow: none;
  background-image: none;
}

#oem-calendar a:hover,
#oem-calendar a:focus {
  opacity: 1;
}

#oem-calendar abbr {
  border: 0;
  text-decoration: none;
  cursor: inherit;
}

/* Calendar container: one large plain white card. */

#oem-calendar {
  position: relative;
  box-sizing: border-box;
  max-width: 1080px;
  margin: 0 auto 2em;
  padding: 28px 28px 32px;
  border: 1px solid var(--oem-border);
  border-radius: 8px;
  background: var(--oem-surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 28px rgba(15, 23, 42, 0.06);
  color: var(--oem-text);
}

/* Calendar headings (h2 month, h3 list, h4 date) ------------------------------
   Real h2/h3/h4 for the document outline, with the calendar's own design. Each one starts
   from "all: unset" so the theme's heading design (background, borders, bars, icons in
   ::before/::after) does not apply. Only these three classes inside #oem-calendar. */

#oem-calendar .oem-month-title,
#oem-calendar .oem-month-list__heading,
#oem-calendar .oem-day-group__heading {
  all: unset;
  box-sizing: border-box;
  display: block;
  color: var(--oem-text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

#oem-calendar .oem-month-title::before,
#oem-calendar .oem-month-title::after,
#oem-calendar .oem-month-list__heading::before,
#oem-calendar .oem-month-list__heading::after,
#oem-calendar .oem-day-group__heading::before,
#oem-calendar .oem-day-group__heading::after {
  all: unset;
  content: none;
  display: none;
}

/* Month: large, centered, with a short blue line under it. */
#oem-calendar .oem-month-title {
  grid-area: title;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
}

#oem-calendar .oem-month-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 2px;
  background: var(--oem-mark);
}

/* Event list: rounded blue bar on the left. */
#oem-calendar .oem-month-list__heading {
  position: relative;
  padding: 0 0 0 18px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

#oem-calendar .oem-month-list__heading::before {
  content: "";
  display: block;
  position: absolute;
  top: 0.15em;
  bottom: 0.15em;
  left: 0;
  width: 6px;
  border-radius: 3px;
  background: var(--oem-mark);
}

/* Date: a soft grey band with the count as a dark pill (no blue bar). */
#oem-calendar .oem-day-group__heading {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0 0 10px;
  padding: 9px 16px 9px 20px;
  border-radius: 8px;
  background: var(--oem-subtle);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.02em;
  scroll-margin-top: var(--oem-scroll-margin);
}

/* Keyboard focus on links stays visible. */
#oem-calendar a:focus-visible {
  outline: 3px solid var(--oem-accent);
  outline-offset: 2px;
}

/* The date heading receives focus by script after a date is chosen (for screen readers).
   No frame around it with mouse, touch or keyboard: touch browsers treat that script focus
   as :focus-visible, so the frame appeared after a tap. */
#oem-calendar .oem-day-group__heading:focus {
  outline: none;
  box-shadow: none;
}

#oem-calendar .oem-day-group__holiday {
  color: var(--oem-sun);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Month navigation: pill buttons around the month; 今月 (other months only) under it. */

#oem-calendar .oem-month-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
  grid-template-areas:
    ". prev title next ."
    ". . current . .";
  align-items: center;
  gap: 10px 32px;
  margin: 0 0 24px;
}

#oem-calendar .oem-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  margin: 0;
  padding: 0 20px;
  border: 1px solid var(--oem-btn-border);
  border-radius: 8px;
  background: var(--oem-surface);
  color: var(--oem-text);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

#oem-calendar a.oem-btn:hover {
  border-color: #b9dcf3;
  background: var(--oem-mark-soft);
}

#oem-calendar .oem-btn.is-disabled {
  background: var(--oem-subtle);
  color: var(--oem-disabled);
  cursor: default;
}

#oem-calendar .oem-month-nav__prev {
  grid-area: prev;
}

#oem-calendar .oem-month-nav__next {
  grid-area: next;
}

#oem-calendar .oem-month-nav__current {
  grid-area: current;
  justify-self: center;
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.875rem;
}

/* Calendar grid ----------------------------------------------------------------- */

#oem-calendar .oem-grid-wrap {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--oem-border);
  border-radius: 6px;
  background: var(--oem-surface);
}

#oem-calendar .oem-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--oem-surface);
}

#oem-calendar .oem-grid th,
#oem-calendar .oem-grid td {
  padding: 0;
  border: 1px solid var(--oem-grid-line);
  background: var(--oem-surface);
  box-shadow: none;
  text-align: center;
  vertical-align: top;
}

#oem-calendar .oem-grid tr > :first-child {
  border-left: 0;
}

#oem-calendar .oem-grid tr > :last-child {
  border-right: 0;
}

#oem-calendar .oem-grid thead th {
  border-top: 0;
}

#oem-calendar .oem-grid tbody tr:last-child td {
  border-bottom: 0;
}

#oem-calendar .oem-grid th {
  padding: 10px 0;
  background: var(--oem-head-bg);
  color: var(--oem-text);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
}

#oem-calendar .oem-grid th.oem-is-sun {
  background: var(--oem-sun-bg);
  color: var(--oem-sun);
}

#oem-calendar .oem-grid th.oem-is-sat {
  background: var(--oem-sat-bg);
  color: var(--oem-sat);
}

/* Date, holiday name and event count stacked in that order, centered. */
#oem-calendar .oem-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 72px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--oem-text);
  text-align: center;
  text-decoration: none;
}

/* Only days with events are links and look operable. */
#oem-calendar a.oem-day {
  cursor: pointer;
}

#oem-calendar a.oem-day:hover {
  background: var(--oem-mark-soft);
}

#oem-calendar .oem-day--empty,
#oem-calendar .oem-day--outside {
  cursor: default;
}

#oem-calendar .oem-day__num {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

#oem-calendar .oem-is-sun .oem-day__num,
#oem-calendar .oem-is-holiday .oem-day__num {
  color: var(--oem-sun);
}

#oem-calendar .oem-is-sat:not(.oem-is-holiday) .oem-day__num {
  color: var(--oem-sat);
}

/* Days of the previous / next month: light grey, display only. */
#oem-calendar .oem-day--outside .oem-day__num {
  color: var(--oem-outside);
  font-weight: 500;
}

/* Today: a soft blue frame and background (shape, not only color). */
#oem-calendar .oem-grid td.oem-is-today {
  padding: 3px;
}

#oem-calendar .oem-is-today .oem-day {
  min-height: 66px;
  padding: 5px 7px;
  background: var(--oem-mark-soft);
  box-shadow: inset 0 0 0 2px var(--oem-today-line);
}

#oem-calendar .oem-day__holiday {
  display: block;
  max-width: 100%;
  color: var(--oem-sun);
  font-size: 0.75rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

#oem-calendar .oem-day__holiday-mark {
  display: none;
}

/* Event count: a dark pill with white text. */
#oem-calendar .oem-day__count,
#oem-calendar .oem-legend__count {
  display: inline-flex;
  align-items: center;
  padding: 1px 10px;
  border-radius: 6px;
  background: var(--oem-badge);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

#oem-calendar .oem-day__count {
  align-self: center;
  margin-top: auto;
}

/* Key below the grid. */
#oem-calendar .oem-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  padding: 10px 16px;
  border-top: 1px solid var(--oem-grid-line);
  color: var(--oem-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

#oem-calendar .oem-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#oem-calendar .oem-legend__today {
  flex: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--oem-today-line);
  border-radius: 4px;
  background: var(--oem-mark-soft);
}

/* Month list ---------------------------------------------------------------------- */

#oem-calendar .oem-month-list {
  margin: 44px 0 0;
}

#oem-calendar .oem-day-group {
  margin: 26px 0 0;
}

#oem-calendar .oem-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 4px;
}

/* Event card: white, soft line, rounded, faint shadow; with a link, the whole card is it. */
#oem-calendar .oem-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--oem-border);
  border-radius: 10px;
  background: var(--oem-surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.04);
}

#oem-calendar .oem-row--link {
  padding: 0;
}

#oem-calendar .oem-row__link {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 14px 52px 14px 18px;
  border-radius: 9px; /* card radius minus its 1px border */
  color: inherit;
  text-decoration: none;
}

#oem-calendar .oem-row__link:hover {
  background: #fafcfe;
}

#oem-calendar .oem-row--link:hover {
  border-color: #c9e2f5;
}

/* Thin "›" at the right edge marks the card as a link. */
#oem-calendar .oem-row__link::before {
  all: unset;
  content: none;
  display: none;
}

#oem-calendar .oem-row__link::after {
  all: unset;
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-top: 2px solid #6b7785;
  border-right: 2px solid #6b7785;
  transform: rotate(45deg);
}

/* Square thumbnail: 100px on PC (1025px and wider), smaller steps below. */
#oem-calendar .oem-row__thumb {
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
}

#oem-calendar .oem-row__image {
  display: block;
  width: 100px;
  height: 100px;
  border: 1px solid var(--oem-grid-line);
  border-radius: 10px;
  background: var(--oem-subtle);
  object-fit: cover;
  object-position: center;
}

/* Tablet (768–1024px): 88px. .98 keeps fractional widths (e.g. 1024.5px at 125% zoom) inside a range. */
@media (max-width: 1024.98px) {
  #oem-calendar .oem-row__thumb {
    flex-basis: 88px;
    width: 88px;
    height: 88px;
  }

  #oem-calendar .oem-row__image {
    width: 88px;
    height: 88px;
  }
}

/* Phone (360–767px): 64px. */
@media (max-width: 767.98px) {
  #oem-calendar .oem-row__thumb {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }

  #oem-calendar .oem-row__image {
    width: 64px;
    height: 64px;
  }
}

/* Small phone (359px and narrower): 56px. */
@media (max-width: 359.98px) {
  #oem-calendar .oem-row__thumb {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }

  #oem-calendar .oem-row__image {
    width: 56px;
    height: 56px;
  }
}

#oem-calendar .oem-row__body {
  flex: 1 1 auto;
  min-width: 0;
}

#oem-calendar .oem-row p {
  overflow-wrap: anywhere;
}

#oem-calendar .oem-row__name {
  color: var(--oem-text);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.55;
}

#oem-calendar .oem-row__location,
#oem-calendar .oem-row__period {
  margin-top: 4px;
  color: var(--oem-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

#oem-calendar .oem-row__period {
  position: relative;
  margin-top: 2px;
  padding-left: 20px; /* same icon column as the place */
  color: #5a6570; /* a touch darker than the place text (--oem-muted #5f6b76) */
  font-size: 0.8125rem;
}

/* Period with a small outline calendar, drawn like the place pin (same size, stroke, color). */
#oem-calendar .oem-row__period::before {
  content: "";
  position: absolute;
  top: calc((1.6em - 15px) / 2);
  left: 0;
  width: 15px;
  height: 15px;
  background-color: var(--oem-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='4' y='5.5' width='16' height='15' rx='2.5'/%3E%3Cpath d='M4 10h16M8.5 3.5v4M15.5 3.5v4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='4' y='5.5' width='16' height='15' rx='2.5'/%3E%3Cpath d='M4 10h16M8.5 3.5v4M15.5 3.5v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Place with a small outline pin (an inline SVG mask, drawn in the text color). */
#oem-calendar .oem-row__location {
  position: relative;
  padding-left: 20px;
}

#oem-calendar .oem-row__location::before {
  content: "";
  position: absolute;
  top: 0.28em;
  left: 0;
  width: 15px;
  height: 15px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 21s-6.5-6.2-6.5-11.2a6.5 6.5 0 0 1 13 0C18.5 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.8' r='2.4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 21s-6.5-6.2-6.5-11.2a6.5 6.5 0 0 1 13 0C18.5 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.8' r='2.4'/%3E%3C/svg%3E") center / contain no-repeat;
}

#oem-calendar .oem-row__ended {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--oem-past-bg);
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.7;
  vertical-align: 0.1em;
}

/* External link note on its own line under the name. */
#oem-calendar .oem-row .oem-card__ext {
  display: block;
  margin-top: 2px;
  color: var(--oem-muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

#oem-calendar .oem-empty {
  margin: 16px 0 0;
  padding: 28px 20px;
  border-radius: 14px;
  background: var(--oem-subtle);
  color: var(--oem-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  text-align: center;
  text-wrap: balance;
}

#oem-calendar .oem-note {
  margin: 12px 0 0;
  color: var(--oem-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.oem-calendar .oem-card__label,
.oem-summary .oem-card__label {
  display: inline-block;
  min-width: 4.5em;
  margin-right: 0.5em;
  color: var(--oem-muted);
  font-size: 0.8125rem;
}

.oem-summary .oem-empty {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--oem-subtle);
}

/* Annual summary ------------------------------------------------------------ */

.oem-summary .oem-summary__month {
  margin: 0 0 2em;
}

.oem-summary .oem-summary__heading {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.oem-summary .oem-summary__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--oem-surface);
}

.oem-summary .oem-summary__table th,
.oem-summary .oem-summary__table td {
  padding: 0.6em 0.75em;
  border: 1px solid var(--oem-border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.oem-summary .oem-summary__table th {
  background: var(--oem-subtle);
}

.oem-summary .oem-summary__table th:nth-child(1) {
  width: 30%;
}

.oem-summary .oem-summary__table th:nth-child(2) {
  width: 45%;
}

.oem-summary .oem-card__link {
  color: var(--oem-accent);
}

.oem-summary .oem-card__ext {
  margin-left: 0.25em;
  font-size: 0.8125rem;
  color: var(--oem-muted);
}

/* Navigation below the event list: ‹ 前月 / カレンダーに戻る / 翌月 ›. 前月 and 翌月 use the
   same .oem-btn as the month navigation; the middle button is quieter and may wrap. */

#oem-calendar .oem-list-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 32px 0 0;
}

#oem-calendar .oem-list-nav__prev,
#oem-calendar .oem-list-nav__next {
  flex: 0 0 auto;
}

#oem-calendar .oem-list-nav__back {
  flex: 0 1 auto;
  min-width: 0;
  border-color: var(--oem-border);
  color: var(--oem-muted);
  font-weight: 500;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* Small screens -------------------------------------------------------------- */

@media (max-width: 600px) {
  #oem-calendar {
    padding: 20px 14px 22px;
    border-radius: 8px;
  }

  #oem-calendar .oem-month-nav {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas:
      "prev title next"
      ". current .";
    gap: 8px;
    margin-bottom: 18px;
  }

  #oem-calendar .oem-month-nav__prev {
    justify-self: start;
  }

  #oem-calendar .oem-month-nav__next {
    justify-self: end;
  }

  #oem-calendar .oem-month-title {
    font-size: 1.5rem;
  }

  #oem-calendar .oem-month-title::after {
    width: 44px;
    margin-top: 8px;
  }

  #oem-calendar .oem-btn {
    padding: 0 14px;
    font-size: 0.875rem;
  }

  #oem-calendar .oem-grid-wrap {
    border-radius: 6px;
  }

  #oem-calendar .oem-grid th {
    padding: 8px 0;
    font-size: 0.8125rem;
  }

  #oem-calendar .oem-day {
    align-items: center;
    gap: 3px;
    min-height: 58px;
    padding: 6px 1px;
    border-radius: 6px;
    text-align: center;
  }

  #oem-calendar .oem-grid td.oem-is-today {
    padding: 2px;
  }

  #oem-calendar .oem-is-today .oem-day {
    min-height: 54px;
    padding: 4px 0;
    border-radius: 8px;
  }

  #oem-calendar .oem-day__count {
    align-self: center;
    margin-top: 0;
  }

  #oem-calendar .oem-day__count,
  #oem-calendar .oem-legend__count {
    padding: 0 5px;
  }

  /* Holiday: "祝" instead of the name, centered under the date. */
  #oem-calendar .oem-day__holiday {
    font-size: 0.6875rem;
    line-height: 1;
  }

  #oem-calendar .oem-day__holiday-name {
    display: none;
  }

  #oem-calendar .oem-day__holiday-mark {
    display: inline;
  }

  #oem-calendar .oem-legend {
    padding: 10px 12px;
  }

  #oem-calendar .oem-month-list {
    margin-top: 36px;
  }

  #oem-calendar .oem-list-nav {
    margin-top: 24px;
  }

  #oem-calendar .oem-list-nav__back {
    padding: 0 10px;
    font-size: 0.8125rem;
  }

  #oem-calendar .oem-month-list__heading {
    padding-left: 16px;
    font-size: 1.3125rem;
  }

  #oem-calendar .oem-day-group__heading {
    padding: 8px 12px 8px 18px;
    font-size: 1rem;
  }

  #oem-calendar .oem-rows {
    padding: 0;
  }

  #oem-calendar .oem-row,
  #oem-calendar .oem-row__link {
    gap: 12px;
    padding: 12px 14px;
  }

  #oem-calendar .oem-row--link {
    padding: 0;
  }

  #oem-calendar .oem-row__link {
    padding-right: 38px;
  }

  #oem-calendar .oem-row__link::after {
    right: 16px;
  }

  #oem-calendar .oem-row__name {
    font-size: 1rem;
  }


  .oem-summary .oem-summary__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .oem-summary .oem-summary__table,
  .oem-summary .oem-summary__table tbody,
  .oem-summary .oem-summary__table tr,
  .oem-summary .oem-summary__table td {
    display: block;
    width: 100%;
  }

  .oem-summary .oem-summary__table tr {
    padding: 0.6em 0;
    border-bottom: 1px solid var(--oem-border);
  }

  .oem-summary .oem-summary__table td {
    padding: 0.1em 0;
    border: 0;
  }

  .oem-summary .oem-summary__date {
    font-weight: 700;
  }

  .oem-summary .oem-summary__location[data-label]::before {
    content: attr(data-label);
    color: var(--oem-muted);
  }

  .oem-summary .oem-summary__location:empty {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oem-calendar * {
    scroll-behavior: auto;
  }
}
