@import "tailwindcss";

:root {
  --foundation-accent: #d7ff00;
  --foundation-accent-hover: #c8ef00;
  --foundation-accent-soft: #f4ffd1;
}

@layer components {
  .btn-primary {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: var(--foundation-accent);
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25rem;
    color: #0a0a0a;
    transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
  }

  .btn-primary:hover {
    background-color: var(--foundation-accent-hover);
  }

  .btn-primary:focus-visible {
    outline: 2px solid var(--foundation-accent);
    outline-offset: 2px;
  }

  .btn-secondary {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: #0a0a0a;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25rem;
    color: #ffffff;
    transition: background-color 150ms ease;
  }

  .btn-secondary:hover {
    background-color: #262626;
  }

  .field-input {
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid #d4d4d4;
    padding: 0.75rem 1rem;
  }

  .field-input:focus {
    border-color: #0a0a0a;
    outline: 2px solid var(--foundation-accent);
    outline-offset: 2px;
  }

  .text-action {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0a0a0a;
    text-decoration-line: underline;
    text-decoration-color: var(--foundation-accent);
    text-decoration-thickness: 0.18em;
    text-underline-offset: 0.22em;
  }

  .text-action:hover {
    background-color: var(--foundation-accent-soft);
  }

  .card-link {
    display: block;
    border-radius: 0.5rem;
    border: 1px solid #e5e5e5;
    padding: 1.25rem;
    transition: border-color 150ms ease, box-shadow 150ms ease;
  }

  .card-link:hover {
    border-color: var(--foundation-accent);
    box-shadow: inset 0 0 0 1px var(--foundation-accent);
  }
}

  .foundation-calendar {
    border: 1px solid #e5e5e5;
    background: #ffffff;
    padding: 1rem;
  }

  .foundation-calendar.fc {
    --fc-border-color: #e5e5e5;
    --fc-neutral-bg-color: #fafafa;
    --fc-page-bg-color: #ffffff;
    --fc-today-bg-color: var(--foundation-accent-soft);
    color: #0a0a0a;
    font-family: inherit;
  }

  .foundation-calendar .fc-toolbar {
    align-items: center;
    gap: 0.75rem;
  }

  .foundation-calendar .fc-toolbar-title {
    font-size: 1.25rem;
    font-weight: 900;
  }

  .foundation-calendar .fc-button-primary {
    border-color: #0a0a0a;
    border-radius: 9999px;
    background: #0a0a0a;
    box-shadow: none;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
  }

  .foundation-calendar .fc-button-primary:hover,
  .foundation-calendar .fc-button-primary:focus {
    border-color: #262626;
    background: #262626;
  }

  .foundation-calendar .fc-button-primary:not(:disabled).fc-button-active {
    border-color: var(--foundation-accent);
    background: var(--foundation-accent);
    color: #0a0a0a;
  }

  .foundation-calendar .fc-button-primary:focus-visible {
    outline: 2px solid var(--foundation-accent);
    outline-offset: 2px;
  }

  .foundation-calendar .fc-daygrid-day-number,
  .foundation-calendar .fc-col-header-cell-cushion {
    color: #171717;
    font-size: 0.75rem;
    font-weight: 700;
  }

  .foundation-calendar .fc-event {
    border-radius: 0.25rem;
    cursor: pointer;
    padding: 0.125rem 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
  }

  .foundation-calendar .calendar-event-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .foundation-calendar .fc-event.calendar-event-expanded {
    padding: 0;
    white-space: normal;
  }

  .foundation-calendar .calendar-event-preview {
    display: grid;
    min-height: 7rem;
    gap: 0.3rem;
    overflow-wrap: anywhere;
    padding: 0.55rem;
    white-space: normal;
  }

  .foundation-calendar .calendar-event-preview__group,
  .foundation-calendar .calendar-event-preview__type {
    font-size: 0.625rem;
    font-weight: 800;
    line-height: 1.15;
    opacity: 0.72;
    text-transform: uppercase;
  }

  .foundation-calendar .calendar-event-preview__title {
    font-size: 0.8125rem;
    font-weight: 900;
    line-height: 1.2;
  }

  .foundation-calendar .calendar-event-preview__body {
    padding-top: 0.15rem;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: pre-line;
  }

  .schedule-dialog {
    max-height: 92vh;
    border: 0;
    background: transparent;
    padding: 0;
  }

  .schedule-dialog::backdrop {
    background: rgb(10 10 10 / 65%);
  }

  .schedule-dialog-panel {
    overflow: hidden;
    border-radius: 0.5rem;
    background: #ffffff;
    box-shadow: 0 24px 80px rgb(0 0 0 / 30%);
  }

  .schedule-preset {
    min-height: 2.5rem;
    border: 1px solid #d4d4d4;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #171717;
  }

  .schedule-preset:hover,
  .schedule-preset:focus-visible {
    border-color: #0a0a0a;
    background: var(--foundation-accent-soft);
  }

  .schedule-copy p + p {
    margin-top: 0.75rem;
  }

@media (max-width: 639px) {
  .foundation-calendar {
    margin-inline: -1rem;
    border-right: 0;
    border-left: 0;
    padding: 0.75rem 0.5rem;
  }

  .foundation-calendar .fc-toolbar {
    flex-wrap: wrap;
  }

  .foundation-calendar .fc-toolbar-chunk:nth-child(2) {
    order: -1;
    flex: 0 0 100%;
    width: 100%;
    text-align: center;
  }

  .foundation-calendar .fc-toolbar-title {
    font-size: 1.125rem;
    white-space: nowrap;
  }

  .foundation-calendar .fc-button {
    padding: 0.4rem 0.55rem;
  }

  .foundation-calendar .fc-event {
    font-size: 0.625rem;
  }

  .foundation-calendar .calendar-event-preview {
    display: block;
    min-height: 0;
    overflow: hidden;
    padding: 0.125rem 0.25rem;
  }

  .foundation-calendar .calendar-event-preview__group,
  .foundation-calendar .calendar-event-preview__type,
  .foundation-calendar .calendar-event-preview__body {
    display: none;
  }

  .foundation-calendar .calendar-event-preview__title {
    overflow: hidden;
    font-size: 0.625rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .schedule-dialog {
    width: calc(100% - 1rem);
    max-width: none;
  }
}

@media print {
  .public-schedule-body {
    color: #000000;
  }

  .public-schedule-body a {
    color: #000000;
    text-decoration: none;
  }
}
