/* Cook mode: big type, big targets, nothing important near the screen edges.
   Loads after /styles/site.css. */

.cook-page {
  overscroll-behavior: none;
}

.cook {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  padding-top: env(safe-area-inset-top);
}

/* Timers stay pinned at the top as you move between steps */
.timers {
  display: grid;
  gap: 2px;
  background: var(--mass);
  color: var(--on-mass);
}

.timer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.5rem 1.5rem;
}

.timer-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.timer-clock {
  font: 600 1.35rem / 1 var(--font-body);
}

.timer.ringing {
  background: var(--amber);
  color: var(--cliff);
}

.timer-dismiss {
  min-width: 6rem;
  min-height: 3rem;
  border: 2px solid var(--cliff);
  border-radius: var(--r-control);
  background: var(--cliff);
  color: #fff;
  font: 600 1rem / 1 var(--font-body);
  cursor: pointer;
}

.cook-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem 0;
}

.cook-exit {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.cook-progress {
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
}

.cook-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.5rem 1.5rem;
  outline: none;
}

.cook-title {
  font-size: clamp(2rem, 8vw, 3rem);
  margin-bottom: 0.5rem;
}

.cook-sub {
  margin-bottom: 1.5rem;
  color: var(--ink-2);
  font-size: 1.1rem;
}

.step-title {
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
}

.step-text {
  font-size: clamp(1.7rem, 6.2vw, 2.5rem);
  line-height: 1.35;
  max-width: 34ch;
}

.amt {
  font-weight: 700;
}

.step-timer {
  margin-top: 1.5rem;
}

.step-clock {
  font: 600 3.5rem / 1.1 var(--font-body);
}

.btn-timer {
  min-height: 3.75rem;
  padding-inline: 1.5rem;
  font-size: 1.2rem;
}

/* Gather screen */
.gather-list {
  list-style: none;
  padding: 0;
}

.gather-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.25rem;
  font-weight: 400;
  cursor: pointer;
}

.gather-item input {
  flex: none;
  width: 2rem;
  height: 2rem;
  accent-color: var(--action);
}

.gather-item:has(input:checked) {
  color: var(--ink-2);
  text-decoration: line-through;
}

.gather-item .note {
  color: var(--ink-2);
}

/* Navigation: Next owns the lower quarter of the screen */
.cook-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom));
}

.cook-nav.step {
  height: 23vh;
  height: 23dvh;
}

.cook-nav.gather {
  min-height: 7rem;
}

.cook-nav.done {
  display: none;
}

.cook-back {
  align-self: flex-start;
  min-width: 40%;
  min-height: 3.5rem;
  border: 2px solid var(--action);
  border-radius: var(--r-control);
  background: transparent;
  color: var(--action);
  font: 600 1.15rem / 1 var(--font-body);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cook-next {
  flex: 1;
  min-height: 5.5rem;
  border: 0;
  border-radius: var(--r-control);
  background: var(--action);
  color: var(--on-action);
  font: 600 2rem / 1 var(--font-body);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cook-next:active {
  background: color-mix(in srgb, var(--action) 80%, var(--ink));
}

.cook-note,
.cook-msg {
  padding: 0.75rem 1.5rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
