/* CurbOver registration portal: same design tokens as www.curbover.com (theme.json of the curbover theme). */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/DMSans-latin-ext.49935c4b6235.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/DMSans-latin.7c87a648293f.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --brand: #95c93d; --brand-deep: #7cab30; --brand-hover: #a9dc4f;
  --ink: #0d0c0f; --ink-soft: #2e2d31; --mist: #232225; --line: #363537; --muted: #9a9aa0; --chalk: #d6d6d8; --white: #ffffff;
  --bad: #ff8f8f; --bad-bg: rgba(255, 90, 90, .14); --ok-bg: rgba(149, 201, 61, .16);
  --font: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--ink); color: var(--chalk); font: 400 16px/1.7 var(--font); -webkit-text-size-adjust: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; }
h1, h2, h3 { font-family: var(--font); color: var(--white); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); text-transform: uppercase; font-weight: 700; margin-top: .6em; }
h2 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); }
h3 { font-size: 1.25rem; }
small, .muted { color: var(--muted); }

/* header: same as the site (sticky, translucent ink, 1px line underneath) */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(13, 12, 15, .85); box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.site-header .bar { max-width: 1280px; margin: 0 auto; padding: .6rem 16px; display: flex; align-items: center; gap: 1rem; }
.site-header .logo img { display: block; width: 72px; height: 72px; }
.site-header .title { flex: 1; font-weight: 600; letter-spacing: .02em; color: var(--chalk); font-size: 1rem; line-height: 1.25; }
.site-header .title a { color: inherit; }
.site-header form { margin: 0; }
.site-footer { max-width: 1280px; margin: 3rem auto 0; padding: 1.5rem 16px 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

main { max-width: 840px; margin: 0 auto; padding: 1rem 16px 2rem; }

/* buttons: pill, brand-deep, uppercase, wide tracking (the site's button style) */
button, .button, input[type=submit] { font: 600 .875rem/1 var(--font); text-transform: uppercase; letter-spacing: .12em; cursor: pointer;
  background: var(--brand-deep); color: var(--ink); border: 0; border-radius: 999px; padding: .9rem 2rem; }
button:hover, .button:hover, input[type=submit]:hover { background: var(--brand-hover); }
a.button:hover, a.button:focus-visible { color: var(--ink); }  /* without this the plain link hover colour (the same green as the button hover) hides the text */
/* every button, link-button and ghost button is underlined while hovered or keyboard-focused */
button:hover, .button:hover, input[type=submit]:hover, a.button:hover, a.ghost:hover,
button:focus-visible, .button:focus-visible, input[type=submit]:focus-visible { text-decoration: underline; text-underline-offset: .25em; }
button.ghost, .ghost { background: transparent; color: var(--chalk); border: 1px solid var(--line); padding: .55rem 1.1rem; }
button.ghost:hover, .button.ghost:hover, a.ghost:hover, button.ghost:focus-visible, a.ghost:focus-visible { border-color: var(--brand); color: var(--white); background: transparent; }  /* links styled as ghost buttons too: the plain .button hover would make the text unreadable */
button.small, .button.small, .small-btn { padding: .5rem 1rem; font-size: .75rem; }

/* inputs: ink-soft fill, line border, 8px radius, brand focus ring (the site's form style) */
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=file],
textarea, select { width: 100%; background: var(--ink-soft); color: var(--chalk); border: 1px solid var(--line); border-radius: 8px;
  padding: .7em .9em; font: inherit; }
input[type=file] { padding: .5em; }
input[type=checkbox] { width: 1.1rem; height: 1.1rem; accent-color: var(--brand-deep); vertical-align: -.15em; margin-right: .4rem; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, textarea:focus, select:focus { border-color: var(--brand); outline: 2px solid rgba(149, 201, 61, .3); outline-offset: 1px; }
label { display: inline-block; margin-bottom: .25rem; color: var(--chalk); font-weight: 500; }
form p { margin: 0 0 1rem; }
.errorlist { list-style: none; margin: .25rem 0 0; padding: 0; color: var(--bad); font-size: .9rem; }
.helptext { display: block; color: var(--muted); font-size: .85rem; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1rem .25rem; margin: 0 0 1rem; background: var(--mist); }
legend { padding: 0 .5rem; color: var(--white); font-weight: 600; }

/* panels: the site's mist panels and card radius */
.card, .panel { background: var(--mist); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; margin: 1rem 0; }
.card > :first-child { margin-top: 0; } .card > :last-child { margin-bottom: 0; }
.card h2, .card h3 { margin-top: 0; }

/* tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
td, th { padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
td form { display: inline; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* status pills */
.pill { display: inline-block; padding: .05rem .7rem; border-radius: 999px; background: var(--ink-soft); border: 1px solid var(--line); font-size: .85rem; color: var(--chalk); }
.pill.ok { background: var(--ok-bg); border-color: rgba(149, 201, 61, .5); color: var(--brand-hover); }
.pill.bad { background: var(--bad-bg); border-color: rgba(255, 90, 90, .4); color: var(--bad); }
.flash { padding: .7rem 1rem; border-radius: 10px; margin: 1rem 0; }
.flash.ok { background: var(--ok-bg); border: 1px solid rgba(149, 201, 61, .5); }
.flash.bad { background: var(--bad-bg); border: 1px solid rgba(255, 90, 90, .4); }
.amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat { display: inline-block; background: var(--brand); color: var(--ink); border-radius: 8px; padding: .4rem .9rem; font-weight: 700; margin: 0 .5rem .5rem 0; }

@media (max-width: 600px) {
  .site-header .logo img { width: 56px; height: 56px; }
  .site-header .title { font-size: .8rem; }
  main { padding-top: .5rem; }
  .card { padding: 1rem; }
}

/* sortable tables (registry/static/registry/sortable.js) */
th.sort-col { cursor: pointer; user-select: none; white-space: nowrap; }
th.sort-col:hover, th.sort-col:focus-visible { color: var(--brand); outline: none; }
th.sort-col::after { content: " \2195"; opacity: .35; font-size: .85em; }
th.sort-col[aria-sort="ascending"]::after { content: " \25B2"; opacity: 1; color: var(--brand); }
th.sort-col[aria-sort="descending"]::after { content: " \25BC"; opacity: 1; color: var(--brand); }

/* participant to-do list */
.progress { height: .6rem; background: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: .4rem 0 1rem; }
.progress > span { display: block; height: 100%; background: var(--brand); }
ul.tasks { list-style: none; margin: 0 0 1rem; padding: 0; }
.task { display: flex; align-items: center; gap: .8rem; padding: .7rem .2rem; border-top: 1px solid var(--line); }
.task:first-child { border-top: 0; }
.task-mark { flex: 0 0 1.6rem; height: 1.6rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); }
.task-done .task-mark { background: var(--ok-bg); border-color: rgba(149, 201, 61, .5); color: var(--brand-hover); }
.task-fix .task-mark { background: var(--bad-bg); border-color: rgba(255, 90, 90, .5); color: var(--bad); font-weight: 700; }
.task-todo .task-mark { border-color: var(--brand); color: var(--brand); }
.task-body { flex: 1 1 auto; min-width: 0; }
.task-done .task-body, .task-optional .task-body, .task-waiting .task-body { opacity: .75; }
.task .button, .task a.button { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 600px) { .task { flex-wrap: wrap; } .task .button { margin-left: 2.4rem; } }

.task-actions { display: flex; gap: .5rem; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.task-actions form { margin: 0; }
@media (max-width: 600px) { .task-actions { margin-left: 2.4rem; justify-content: flex-start; } .task .task-actions .button { margin-left: 0; } }

/* add-person form: address and emergency contact options */
fieldset.details-fs { border: 1px solid var(--line); border-radius: 10px; padding: .6rem 1rem 1rem; margin: 1rem 0; }
fieldset.details-fs legend { padding: 0 .4rem; color: var(--white); font-weight: 600; }
fieldset.details-fs ul { list-style: none; margin: 0 0 .6rem; padding: 0; }
fieldset.details-fs li label { display: flex; gap: .5rem; align-items: flex-start; }
[hidden] { display: none !important; }

/* to-do list: each section is its own labelled block */
.todo-section { margin: 1.1rem 0; border: 1px solid var(--line); border-left: 5px solid var(--accent, var(--brand)); border-radius: 12px; background: var(--ink-soft); padding: .2rem 1rem .4rem; }
.todo-section ul.tasks { margin-bottom: .4rem; }
.todo-head { display: flex; align-items: center; gap: .8rem; padding: .8rem 0 .5rem; border-bottom: 1px solid var(--line); }
.todo-head h3 { margin: 0; font-size: 1.15rem; line-height: 1.25; text-transform: none; letter-spacing: 0; }
.todo-title { flex: 1 1 auto; min-width: 0; }
.todo-title small { display: block; line-height: 1.35; }
.todo-num { flex: 0 0 2rem; height: 2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background: var(--accent, var(--brand)); color: var(--ink); }
.todo-status { flex: 0 0 auto; }
.todo-personal { --accent: #95c93d; }
.todo-party { --accent: #4aa3df; }
.todo-payment { --accent: #e0a526; }
.todo-member { --accent: #b07fe0; }
.todo-jimny { --accent: #36b5a0; }
.todo-waiting { --accent: #7f8c8d; }
.todo-complete { opacity: .85; }
@media (max-width: 600px) { .todo-head { flex-wrap: wrap; } .todo-status { margin-left: 2.8rem; } }

/* the phone-only sort control is hidden elsewhere: headings are clickable there */
.sort-by { display: none; }

/* ============================ phones (up to 640px) ============================
   Tables become stacked cards (label above each value), every control is a comfortable touch target,
   text inputs are 16px so phones do not zoom in on focus, and nothing is wider than the screen. */
@media (max-width: 640px) {
  main { padding: .75rem 12px 2rem; }
  .card, .panel { padding: .9rem; border-radius: 12px; margin: .8rem 0; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }

  /* header: smaller logo and title, compact sign-out */
  .site-header .bar { padding: .45rem 12px; gap: .7rem; }
  .site-header .logo img { width: 48px; height: 48px; }
  .site-header .title { font-size: .78rem; line-height: 1.3; }
  .site-header form button { min-height: 38px; padding: .45rem .9rem; }

  /* buttons and controls */
  button, .button, input[type=submit] { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; text-align: center;
    line-height: 1.25; white-space: normal; padding: .7rem 1.4rem; }
  button.small, .button.small { min-height: 42px; padding: .55rem 1rem; }
  button.ghost, .button.ghost { padding: .6rem 1.1rem; }
  main > p > a.button, .card > p > a.button, .card form > button, .card form > p > button, form > button:last-child { width: 100%; }
  main > p > a.button + a.button, .card > p > a.button + a.button { margin-top: .5rem; }
  input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=file], textarea, select { font-size: 16px; min-height: 46px; }
  input[type=checkbox], input[type=radio] { width: 1.4rem; height: 1.4rem; }
  .pill { white-space: nowrap; }

  /* tables -> cards */
  .table-wrap { overflow: visible; }
  .table-wrap table, .table-wrap thead, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
  .table-wrap tr { border: 1px solid var(--line); border-radius: 10px; background: var(--ink-soft); padding: .55rem .8rem; margin: .6rem 0; }
  .table-wrap td { display: flex; align-items: center; justify-content: space-between; gap: .8rem; border: 0; padding: .3rem 0; text-align: right; line-height: 1.4;
    overflow-wrap: anywhere; min-width: 0; }
  .table-wrap td::before { content: attr(data-label); flex: 0 0 34%; max-width: 34%; text-align: left; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
  .table-wrap td:first-child { display: block; text-align: left; font-weight: 600; font-size: 1.02rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); margin-bottom: .2rem; }
  .table-wrap td:first-child::before { display: none; }
  .table-wrap td:not([data-label])::before, .table-wrap td[data-label=""]::before { display: none; }
  .table-wrap td:empty { display: none; }
  .table-wrap td .actions, .table-wrap td form { width: 100%; }
  .table-wrap td .actions { justify-content: flex-end; }
  .table-wrap td > a.button, .table-wrap td > form button, .table-wrap td .actions .button { width: auto; }
  .table-wrap td[colspan] { display: block; text-align: left; }

  /* the sort control that replaces clickable column headings on a phone (see sortable.js) */
  .sort-by { display: flex; align-items: center; gap: .6rem; margin: .2rem 0 .4rem; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
  .sort-by select { flex: 1; width: auto; }

  /* to-do list */
  .task { display: grid; grid-template-columns: 1.7rem 1fr; column-gap: .7rem; row-gap: .5rem; align-items: start; padding: .8rem 0; }
  .task-mark { grid-column: 1; width: 1.7rem; height: 1.7rem; flex: none; }
  .task-body { grid-column: 2; }
  .task-actions { grid-column: 1 / -1; margin-left: 0; display: flex; flex-direction: column; gap: .5rem; width: 100%; }
  .task-actions .button, .task-actions form, .task-actions button { width: 100%; }
  .task .button { margin-left: 0; }
  .task-body small { display: block; line-height: 1.45; margin-top: .2rem; }
  .todo-section { padding: .1rem .8rem .3rem; border-radius: 10px; }
  .todo-head { gap: .6rem; padding: .7rem 0 .5rem; }
  .todo-num { flex-basis: 1.8rem; height: 1.8rem; font-size: .9rem; }
  .todo-head h3 { font-size: 1.05rem; }
  .todo-status { margin-left: 0; flex-basis: 100%; }
  .todo-status .pill { margin-left: 2.4rem; }
  fieldset.details-fs { padding: .5rem .8rem .8rem; }
}
fieldset.details-fs legend { float: left; width: 100%; padding: 0 0 .6rem; }
fieldset.details-fs legend + * { clear: both; }
fieldset.details-fs input[type=radio] { flex: none; margin: .2rem 0 0; }
input[type=file]::file-selector-button { font: 600 .8rem/1 var(--font); text-transform: uppercase; letter-spacing: .1em; background: var(--brand-deep); color: var(--ink);
  border: 0; border-radius: 999px; padding: .6rem 1rem; margin-right: .8rem; cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--brand-hover); text-decoration: underline; }

/* ways to pay */
.pay-box { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-left: 5px solid #e0a526; border-radius: 12px; background: var(--ink-soft); }
.pay-box h4 { margin: 0 0 .4rem; font-size: 1.2rem; color: var(--white); }
.pay-option { border: 1px solid var(--line); border-radius: 10px; margin: .6rem 0; background: var(--mist); }
.pay-option > summary { cursor: pointer; padding: .8rem 1rem; font-weight: 600; color: var(--white); list-style: none; display: flex; align-items: center; gap: .7rem; }
.pay-option > summary::-webkit-details-marker { display: none; }
.pay-option > summary::after { content: "+"; margin-left: auto; color: var(--brand); font-size: 1.3rem; }
.pay-option[open] > summary::after { content: "\2212"; }
.pay-num { flex: 0 0 1.7rem; height: 1.7rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: var(--ink); font-size: .9rem; font-weight: 700; }
.pay-body { padding: 0 1rem 1rem; }
dl.bank, dl.profile-rows { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: .6rem 0; }
dl.bank dt, dl.profile-rows dt { color: var(--muted); } dl.bank dd, dl.profile-rows dd { margin: 0; font-weight: 600; color: var(--white); overflow-wrap: anywhere; }
img.upi-qr { display: block; max-width: 100%; height: auto; border-radius: 10px; background: #fff; margin: .6rem 0; }
table.fee { width: auto; margin: .4rem 0 .8rem; } table.fee td { padding: .25rem 1.2rem .25rem 0; border: 0; }
@media (max-width: 640px) { dl.bank, dl.profile-rows { grid-template-columns: 1fr; } dl.bank dt, dl.profile-rows dt { margin-top: .4rem; } table.fee td { display: table-cell; width: auto; border: 0; } }
