/* reminder.css — Path of Breathing. The controls of the Sit page's
   Reminder and Invite sheets (js/reminder.js, js/invite.js).
   Requires shared.css first.
   The pills are the Sit page's duration pills, copied rather than shared:
   timer.js claims every .dur-pill on a page. */

/* Three labelled rows: when, how long, which calendar. On a phone the
   controls reach the text's right edge; wider, they stop at 340px
   rather than stretch pills across a desktop column. */
.reminder-body {
  display: grid;
  grid-template-columns: auto minmax(0, 340px);
  justify-content: start;
  align-items: center;
  gap: 16px 20px;
}
.reminder-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.reminder-label[hidden],
.reminder-time[hidden] { display: none; }
/* A pill like its neighbours. 16px: iPhone zooms the page into any
   smaller field it focuses. */
.reminder-time {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  background: none;
  border: 1px solid var(--outline);
  border-radius: 50px;
  padding: 6px 18px;
  text-align: center;
  color-scheme: dark;
  transition: border-color var(--ease);
}
/* The native picker follows the site's theme, not the phone's. */
[data-theme="light"] .reminder-time { color-scheme: light; }
.reminder-time:focus { outline: none; border-color: var(--accent); }
.reminder-time::-webkit-date-and-time-value { text-align: center; }

/* Lengths in four equal columns, calendars in two: each calendar
   spans two lengths, so the rows keep one grid. */
.reminder-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.reminder-row:has(.reminder-go),
.reminder-row-two { grid-template-columns: repeat(2, 1fr); }
/* Words, not numbers: capitals, like the calendars beside them. */
.reminder-row-two .reminder-pill { text-transform: uppercase; }
.reminder-pill {
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  background: none;
  border: 1px solid var(--outline);
  border-radius: 50px;
  padding: 0;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color var(--ease), color var(--ease);
}
.reminder-pill.active { color: var(--accent); border-color: var(--accent); }
/* The last length pill takes any other, typed. Empty, it shows a
   pencil; at rest it speaks the pills' size; while typing it's 16px,
   below which iPhone zooms the page to a focused field. */
.reminder-custom-wrap {
  position: relative;
  display: flex;
}
.reminder-custom {
  -webkit-appearance: none;
  appearance: none;
  text-align: center;
  cursor: text;
}
.reminder-custom::placeholder { color: transparent; }
.reminder-custom:focus {
  outline: none;
  font-size: 16px;
  letter-spacing: 0.02em;
  border-color: var(--accent-tint-strong);
}
.reminder-custom.active:focus { border-color: var(--accent); }
.reminder-pencil {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -7px 0 0 -7px;
  color: var(--muted);
  pointer-events: none;
}
.reminder-custom:focus + .reminder-pencil,
.reminder-custom:not(:placeholder-shown) + .reminder-pencil { display: none; }
@media (hover: hover) {
  .reminder-pill:not(.active):hover { color: var(--text); border-color: var(--accent-tint-strong); }
}

/* The two calendars, equal and side by side. Gold like the timer's
   Begin: these are the act. */
.reminder-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  border-color: var(--accent-tint-strong);
}
.reminder-body .reminder-go,
.reminder-body .reminder-go:visited { color: var(--accent); }
.reminder-go[hidden] { display: none; }
.reminder-go[hidden] + .reminder-go { grid-column: 1 / -1; }
@media (hover: hover) {
  .reminder-body .reminder-go:hover { color: var(--text); border-color: var(--accent); }
}
