[hidden] { display: none !important; }
:root {
  --green: #2F6B52; --green-dark: #24543F; --teal: #5E9585; --gold: #D4A23A; --charcoal: #3B3A48;
  --cream: #F2ECDA; --bg: #FBFAF5; --ink: #1F1F24; --muted: #5A5A66; --line: #CFCAB8; --err: #A3261B;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
/* Cox mosaic band (Daniel, Oct 30): solid Cox green "backsplash" with the 2-row gold / teal / charcoal tile strip
   from their sign, card and storefront (2 rows, per Daniel's photos). One 144×22 tile period, repeated across. */
:root { --mosaic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='22'%3E%3Crect x='1' y='0' width='10' height='10' fill='%233B3A48'/%3E%3Crect x='13' y='0' width='10' height='10' fill='%23D4A23A'/%3E%3Crect x='25' y='0' width='10' height='10' fill='%233B3A48'/%3E%3Crect x='37' y='0' width='10' height='10' fill='%235E9585'/%3E%3Crect x='49' y='0' width='10' height='10' fill='%233B3A48'/%3E%3Crect x='61' y='0' width='10' height='10' fill='%23D4A23A'/%3E%3Crect x='73' y='0' width='10' height='10' fill='%235E9585'/%3E%3Crect x='85' y='0' width='10' height='10' fill='%233B3A48'/%3E%3Crect x='97' y='0' width='10' height='10' fill='%233B3A48'/%3E%3Crect x='109' y='0' width='10' height='10' fill='%235E9585'/%3E%3Crect x='121' y='0' width='10' height='10' fill='%23D4A23A'/%3E%3Crect x='133' y='0' width='10' height='10' fill='%233B3A48'/%3E%3Crect x='1' y='12' width='10' height='10' fill='%235E9585'/%3E%3Crect x='13' y='12' width='10' height='10' fill='%233B3A48'/%3E%3Crect x='25' y='12' width='10' height='10' fill='%23D4A23A'/%3E%3Crect x='37' y='12' width='10' height='10' fill='%233B3A48'/%3E%3Crect x='49' y='12' width='10' height='10' fill='%235E9585'/%3E%3Crect x='61' y='12' width='10' height='10' fill='%233B3A48'/%3E%3Crect x='73' y='12' width='10' height='10' fill='%233B3A48'/%3E%3Crect x='85' y='12' width='10' height='10' fill='%23D4A23A'/%3E%3Crect x='97' y='12' width='10' height='10' fill='%235E9585'/%3E%3Crect x='109' y='12' width='10' height='10' fill='%233B3A48'/%3E%3Crect x='121' y='12' width='10' height='10' fill='%235E9585'/%3E%3Crect x='133' y='12' width='10' height='10' fill='%23D4A23A'/%3E%3C/svg%3E"); }
.tiles { height: 36px; background: var(--green) var(--mosaic) repeat-x 0 50% / auto 22px; }
.top { display: flex; justify-content: space-between; align-items: center; max-width: 520px; width: 100%; margin: 0 auto; padding: 12px 16px 0; }
.brand { font-family: Georgia, "Times New Roman", serif; color: var(--green); font-weight: 700; }
.lang { min-height: 44px; min-width: 56px; padding: 0 14px; border: 2px solid var(--green); background: #fff; color: var(--green); border-radius: 999px; font-weight: 700; font-size: 15px; }
main { flex: 1; max-width: 520px; width: 100%; margin: 0 auto; padding: 8px 16px 24px; }
main:focus { outline: none; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; color: var(--green); line-height: 1.2; }
h1 { font-size: 2rem; margin: 24px 0 8px; }
h2 { font-size: 1.45rem; margin: 8px 0 16px; }
h3 { font-size: 1.1rem; margin: 20px 0 10px; }
.sub, .muted, .hint, .note { color: var(--muted); }
.hint { display: block; font-size: .95rem; margin-top: -8px; }
.note { font-size: .9rem; margin: 6px 0 0; }
fieldset { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
legend { padding: 0; width: 100%; }
.dots { display: flex; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.dots li { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.dots li.on { background: var(--green); }

/* Real radios/checkboxes underneath; the label is the pill. */
.opt { position: relative; display: block; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt input + span { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; border: 2px solid var(--line);
  border-radius: 14px; background: #fff; cursor: pointer; font-weight: 600; }
.opt input:checked + span { border-color: var(--green); background: #E6F0EA; }
.opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.faces .opts { display: grid; gap: 10px; }
.face { font-size: 1.6rem; line-height: 1; }
.chips .opts { display: flex; flex-wrap: wrap; gap: 10px; }
.chips .opt input + span { min-height: 44px; border-radius: 999px; padding: 8px 16px; }
.row { margin-bottom: 10px; }
.row legend { font-weight: 600; margin-bottom: 8px; }
.row .opts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.row .opt input + span { justify-content: center; flex-direction: column; gap: 2px; min-height: 64px; padding: 6px 2px; font-size: .72rem; text-align: center; border-radius: 12px; }

label { display: block; font-weight: 600; margin: 18px 0 6px; }
textarea, input[type=text] { width: 100%; font: inherit; padding: 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
textarea:focus, input[type=text]:focus { outline: 3px solid var(--gold); border-color: var(--green); }
.nav { margin-top: 20px; }
.primary { width: 100%; min-height: 52px; border: 0; border-radius: 14px; background: var(--green); color: #fff; font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.primary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.primary[disabled] { opacity: .6; }
.link { background: none; border: 0; color: var(--green); text-decoration: underline; font: inherit; min-height: 44px; padding: 0 4px; cursor: pointer; }
.back-wrap { margin-top: 8px; }
.error { color: var(--err); font-weight: 600; }
.gift { margin: 20px 0; padding: 20px; border-radius: 16px; background: #fff; border: 3px dashed var(--gold); }
.gift-label { font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; color: var(--green); margin: 0 0 8px; }
.code-pending { margin: 0 0 8px; color: var(--muted); }
.terms { margin: 0; padding-left: 20px; color: var(--muted); font-size: .9rem; }
.foot { max-width: 520px; width: 100%; margin: 0 auto; padding: 16px; display: flex; justify-content: space-between; font-size: .95rem; }
.foot a { color: var(--green); min-height: 44px; display: inline-flex; align-items: center; }
#staging-tag { align-self: center; background: var(--charcoal); color: #fff; padding: 2px 10px; border-radius: 999px; font-size: .8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) { section:not([hidden]) { animation: in .18s ease-out; } @keyframes in { from { opacity: 0; transform: translateY(6px); } } }

.saved { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; color: var(--green); font-weight: 700; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, p[tabindex="-1"]:focus { outline: none; }

label.as-h2 { display: inline; margin: 0; font: inherit; }

/* D32 (Daniel, Oct 30): short phones only (SE size). Taller phones keep the layout above unchanged.
   Every tap target stays >= 44 px. */
@media (max-height: 600px) {
  .tiles { height: 30px; background-size: auto 18px; }
  .top { padding-top: 6px; }
  main { padding-top: 0; padding-bottom: 12px; }
  .dots { margin-top: 8px; }
  h2 { font-size: 1.3rem; margin: 6px 0 10px; }
  h3 { margin: 12px 0 6px; }
  label { margin: 10px 0 4px; }
  .chips .opts { gap: 6px; }
  .chips .opt input + span { padding: 6px 13px; }
  textarea { height: 84px; padding: 10px; }
  .row { margin-bottom: 6px; }
  .row legend { margin-bottom: 4px; }
  .row .opt input + span { min-height: 52px; padding: 4px 2px; }
  .nav { margin-top: 12px; }
  .back-wrap { margin-top: 2px; }
}

/* Big face row for the single-question rating screens (overall, restroom). */
.row.big .opts { gap: 8px; }
.row.big .opt input + span { min-height: 104px; font-size: .8rem; gap: 8px; border-radius: 16px; }
.row.big .face { font-size: 2.2rem; }
