/* An event's bring list (bring.js, bringsheet.js, bringpart.js): progress, each line with its two ticks, the add
   row. Lays itself out by the card's own width, so it reads the same on a phone, beside a list or full width. */
.bring { display: grid; gap: 16px; container-type: inline-size; }
.bring-top { display: grid; gap: 8px; }
.bring-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.bring-count b { font-size: 22px; font-weight: 900; }
.bring-count span { color: var(--slate); font-weight: 700; }
.meter.bring-meter { display: block; width: 100%; flex: none; }

.bring-list { list-style: none; padding: 0; display: grid; }
.bring-line { display: grid; gap: 10px; padding: 14px 0; }
.bring-line + .bring-line { border-top: 1px solid var(--hair); }
.bring-what { display: grid; gap: 2px; min-width: 0; }
.bring-what small { color: var(--slate); font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.bring-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 44px; margin: 0; padding: 0;
  border: 0; background: none; color: var(--navy); text-align: left;
}
button.bring-item { cursor: pointer; }
.bring-item b { font-weight: 800; overflow-wrap: anywhere; min-width: 0; }
.bring-item .ic { width: 18px; height: 18px; color: var(--slate); }
button.bring-item:hover b { text-decoration: underline; }
.bring-n { color: var(--slate); font-weight: 800; white-space: nowrap; }

.bring-ticks { display: flex; flex-wrap: wrap; gap: 8px; }
.bring-tick {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 16px 6px 8px; white-space: nowrap;
  border: 1.5px solid var(--hair); border-radius: var(--pill-btn); background: var(--white); color: var(--navy);
  font-weight: 800; text-align: left; cursor: pointer; transition: background .15s var(--ease), border-color .15s var(--ease);
}
.bring-tick .box {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--navy); border-radius: 50%;
  background: var(--white); color: var(--white);
}
.bring-tick .box .ic { width: 18px; height: 18px; stroke-width: 2.8; }
.bring-tick[aria-pressed="true"] { border-color: var(--navy); background: var(--ice); }
.bring-tick[aria-pressed="true"] .box { border-color: var(--fill); background: var(--fill); color: var(--on-fill); }
.bring-tick:hover:not(:disabled) { border-color: var(--navy); }
.bring-tick:disabled { cursor: default; }
.bring-tick:disabled:not([aria-pressed="true"]) .box { border-color: var(--hair); }

.bring-start { display: grid; gap: 8px; }
.bring-add { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding-top: 16px; border-top: 1px solid var(--hair); }
.bring-add-item, .bring-add-go, .bring-add-note { grid-column: 1 / -1; }
.bring > .bring-save { justify-self: start; }

/* Room for a line's words and both ticks side by side, and the add row in one line. */
@container (min-width: 560px) {
  .bring-line { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
  .bring-ticks { flex-wrap: nowrap; }
  .bring-add { grid-template-columns: minmax(0, 2fr) 112px minmax(0, 1.4fr) auto; align-items: end; }
  .bring-add-item, .bring-add-go { grid-column: auto; }
  .bring-add-go { min-height: 52px; }
}

.bring-n-input { max-width: 160px; }
.bring-part .row-main .bring-meter { margin-top: 6px; max-width: 320px; }
.bring-hint { display: flex; align-items: flex-start; gap: 10px; }
.bring-hint .ic { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--blue); }

/* Event templates (bringsheet.js, usual.js, templates.js, templateform.js): what "Save as template" keeps, an event's
   usual requests to add, and Settings, Event templates. */
.tpl-keeps { display: grid; gap: 10px; }
.tpl-keep-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.tpl-keep-list li { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.tpl-keep-list .ic { flex: none; width: 20px; height: 20px; color: var(--blue); }
.tpl-asks { list-style: none; padding: 12px 14px; margin: 0; display: grid; gap: 10px; border-radius: 14px; background: var(--ice); }
.tpl-asks li { display: grid; gap: 0; min-width: 0; }
.tpl-asks b { font-weight: 800; overflow-wrap: anywhere; }
.tpl-asks small { color: var(--slate); font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }

.usual { display: grid; gap: 14px; }
.usual-title { margin: 0; font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.usual-list { gap: 8px; }
.usual-opt { min-height: 64px; }
.usual-opt .opt-name small { margin-top: 2px; }
.usual-box {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--navy); border-radius: 8px;
  background: var(--white); color: var(--white);
}
.usual-box .ic { width: 18px; height: 18px; stroke-width: 2.8; }
.usual-opt[aria-pressed="true"] .usual-box { border-color: var(--fill); background: var(--fill); color: var(--on-fill); }
.usual-opt[aria-pressed="false"] .opt-name { color: var(--slate); }
.usual-rush { flex: none; }
.usual-go { justify-self: start; }

.tpl-empty { display: flex; align-items: flex-start; gap: 12px; }
.tpl-empty .ic { flex: none; width: 24px; height: 24px; margin-top: 2px; color: var(--blue); }
.tpl-empty p { margin: 0; }
.tpl-row { width: 100%; padding: 12px; border: 0; border-radius: 14px; background: none; color: var(--navy); text-align: left; cursor: pointer; }
.tpl-row:hover b { text-decoration: underline; }
.tpl-row + .tpl-row { border-top: 1px solid var(--hair); border-radius: 0; }
.tpl-row .row-main small span { white-space: nowrap; }
.tpl-row[aria-current="true"] { background: var(--ice); border-radius: 14px; }
.tpl-form { container-type: inline-size; }
.tpl-part { display: grid; gap: 12px; min-width: 0; padding-top: 20px; border-top: 1px solid var(--hair); }
.tpl-part > .btn { justify-self: start; }
.tpl-line, .tpl-ask {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) 44px; gap: 8px 10px; align-items: end;
  padding-bottom: 12px; border-bottom: 1px solid var(--hair);
}
.tpl-item, .tpl-kind, .tpl-title { grid-column: 1 / -1; }
.tpl-ask .tpl-title { grid-column: 1 / 3; }
.tpl-line .tpl-drop, .tpl-ask .tpl-drop { align-self: end; }
.tpl-ask .tpl-days { grid-column: 1 / 3; max-width: 220px; }
.tpl-ask .tpl-drop { grid-column: 3; grid-row: 2; }
.tpl-kind { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0; }
.tpl-kind b { font-weight: 800; }
.tpl-kind small { color: var(--slate); font-size: 17px; font-weight: 600; }
.tpl-delete { padding-top: 20px; }

@container (min-width: 440px) {
  .tpl-line { grid-template-columns: minmax(0, 2fr) 96px minmax(0, 1.4fr) 44px; }
  .tpl-item { grid-column: auto; }
  .tpl-ask { grid-template-columns: minmax(0, 1fr) 160px 44px; }
  .tpl-ask .tpl-title { grid-column: 1; }
  .tpl-ask .tpl-days { grid-column: 2; grid-row: 2; max-width: none; }
  .tpl-ask .tpl-drop { grid-column: 3; grid-row: 2; }
}
