/* USC: the app's own look over the bold profile (design/DESIGN.md). Cream page, hot pink for the bold
   parts (bar, main buttons, the rumble button), dark blue text, pale and darker blue extras. Screens
   only: the logo and icon keep their own colours. :root:root outranks the theme block in the page head. */
:root:root {
  --text-l: #14205a;           /* dark blue text, 13.3 to 1 on the cream */
  --muted-l: #4a5478;          /* blue-grey hints, 6.5 to 1 */
  --edge-l: #14205a;           /* the bold profile's hard edges and shadows, in dark blue */
  --field-line-l: #14205a;
  --line-l: #c9d6f2;           /* pale blue rules */
  --surface-2-l: #eaf0fc;      /* pale blue panels */
  --support-soft-l: #dbe5fb;
  --usc-pink: #e20e74;         /* bold parts, always with white words (4.6 to 1) */
  --usc-pink-ink: #a8095a;     /* pink as words, 6.5 to 1 on the cream */
  --usc-blue: #0238b2;         /* darker blue extra */
  --usc-pale: #8bb2ff;         /* pale blue extra */
  --usc-pale-soft: #e3ecff;
  --usc-navy: #14205a;
}

/* the rumble button: a pink pill with its words */
.tbl-fab.tbl-fab-words {
  width: auto; height: 54px; border-radius: 999px; padding: 0 20px 0 14px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--usc-pink); color: #fff; border: 2px solid var(--usc-navy);
  box-shadow: 4px 4px 0 var(--usc-navy);
  font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: .02em; text-transform: uppercase;
}
.tbl-fab.tbl-fab-words svg.ico { width: 24px; height: 24px; }
.tbl-fab-label { white-space: nowrap; }

/* the library's own banner: the USC mark */
.usc-hero {
  display: flex; align-items: center; gap: 14px;
  margin: 2px 0 14px; padding: 12px 14px;
  background: var(--usc-navy); color: #fff; border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--usc-pink);
}
.usc-hero img { width: 64px; height: 64px; flex: none; }
.usc-hero-name { font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: .04em; text-transform: uppercase; }
.usc-hero-line { font-size: 14px; color: #dbe5fb; margin-top: 4px; }
.usc-hero-count { font-family: var(--font-head); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--usc-pale); margin-top: 6px; }

/* the "Are you ready to rumble?" chooser */
.usc-ways { display: grid; gap: 10px; }
.usc-way {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  min-height: 64px; padding: 12px 14px; border-radius: var(--radius);
  border: 2px solid var(--usc-navy); background: var(--surface); color: var(--text);
  box-shadow: 3px 3px 0 var(--usc-pale); font: inherit;
}
.usc-way:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--usc-pale); }
.usc-way-ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--usc-pink); color: #fff; }
.usc-way-ico svg.ico { width: 22px; height: 22px; }
.usc-way-name { display: block; font-weight: 700; font-size: 17px; }
.usc-way-line { display: block; font-size: 14px; color: var(--muted); }

/* shared pieces for USC's parts: sections on a recipe, chips, a two-way switch */
.usc-sec { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.usc-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.usc-sec-title { font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--usc-blue); }
.usc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.usc-chip {
  min-width: 44px; min-height: 40px; padding: 0 10px; border-radius: 999px;
  border: 2px solid var(--usc-pale); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 700; font-size: 15px;
}
.usc-chip.on { background: var(--usc-navy); border-color: var(--usc-navy); color: #fff; }
.usc-seg { display: flex; border: 2px solid var(--usc-navy); border-radius: var(--radius); overflow: hidden; }
.usc-seg button { flex: 1; min-height: 40px; border: 0; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; padding: 4px 6px; }
.usc-seg button + button { border-left: 2px solid var(--usc-navy); }
.usc-seg button.on { background: var(--usc-pale-soft); color: var(--usc-navy); box-shadow: inset 0 -4px 0 var(--usc-pink); }
.usc-note { font-size: 14px; color: var(--muted); }
.usc-gentle { background: var(--usc-pale-soft); border-radius: var(--radius); padding: 10px 12px; font-size: 15px; color: var(--text); }
.usc-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.usc-field { display: block; margin: 0 0 12px; }
.usc-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.usc-problem { color: var(--danger); font-size: 14px; margin: 6px 0; }
.usc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.usc-big { min-height: 52px; font-size: 17px; }
