/* Quilter Labs brand: see the Quilter Labs Brand Guide. Cream and dark brown carry the page;
   orange, rust and brown are accents. Arial throughout, sentence-case headlines. */
:root {
  color-scheme: light;
  /* core palette */
  --cream: #F1E6CC;
  --ink: #2E1D10;        /* dark brown */
  --orange: #E3892F;     /* stripe 1; never text on cream */
  --rust: #C4532B;       /* stripe 2; labels and key numbers on cream */
  --brown: #6B3A20;      /* stripe 3 */
  /* supporting */
  --muted: #6E5C48;      /* warm gray-brown: secondary text on cream */
  --panel: #E8DABA;      /* cards and panels on cream */
  --line: #D3C29C;       /* hairlines and borders on cream */
  --alert: #E06A50;      /* warnings only */
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.5 Arial, Helvetica, sans-serif; }
a { color: var(--ink); text-decoration-color: var(--rust); text-underline-offset: 2px; }
a:hover { color: var(--rust); }
h1 { font-size: 1.75rem; font-weight: 700; margin: 0 0 .5rem; line-height: 1.2; }
h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 1rem; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 28px; padding-bottom: 48px; }

/* labels: Arial bold, all caps, letter-spaced, rust on cream */
.label, .list th, .namm dt, fieldset legend.label {
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--rust);
}

/* header: logo, then the page name */
.top { border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { width: 150px; height: auto; display: block; }
.brand span { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--rust); padding-left: 16px; border-left: 1px solid var(--line); }
nav { display: flex; align-items: center; gap: 20px; font-size: .95rem; }
nav a { text-decoration: none; font-weight: 700; }
nav a:hover { text-decoration: underline; color: var(--ink); }
nav form { margin: 0; }

/* footer: the small three-stripe mark */
.foot { border-top: 1px solid var(--line); }
.foot-inner { display: flex; align-items: center; gap: 14px; padding-top: 20px; padding-bottom: 28px; color: var(--muted); font-size: .85rem; }
.stripe-mark { display: inline-grid; gap: 3px; width: 44px; flex: none; }
.stripe-mark i { display: block; height: 7px; }
.stripe-mark i:nth-child(1) { background: var(--orange); }
.stripe-mark i:nth-child(2) { background: var(--rust); }
.stripe-mark i:nth-child(3) { background: var(--brown); }

.urgent { background: var(--alert); color: var(--ink); font-weight: 700; padding: 12px 0; }

.card { background: var(--panel); border-radius: 10px; padding: 24px; margin-bottom: 20px; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.head { margin-bottom: 24px; }
.lead { font-size: 1.05rem; }
.muted, .sub { color: var(--muted); }
.sub { font-size: .875rem; margin: .35rem 0 0; }
.sub.ask { color: var(--rust); font-weight: 700; }
.empty { color: var(--muted); text-align: center; padding: 20px; }
.count { display: inline-block; min-width: 1.6em; padding: 0 .45em; border-radius: 99px; background: var(--cream); font-size: .85rem; text-align: center; color: var(--rust); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

.flash { border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-weight: 700; }
.flash.ok { background: var(--panel); border-left: 4px solid var(--brown); }
.flash.error { background: var(--panel); border-left: 4px solid var(--alert); }

.warning { background: var(--cream); border-left: 4px solid var(--rust); border-radius: 8px; padding: 12px 16px; margin: 16px 0 24px; }
.warning p { margin: .2rem 0; }
.id-notice { background: var(--cream); border-left: 4px solid var(--orange); border-radius: 8px; padding: 12px 16px; margin: 0 0 24px; }
.id-notice p { margin: .25rem 0; }
.id-notice ol { margin: .4rem 0 0; padding-left: 1.3rem; }
.id-notice li { margin-bottom: .35rem; }
.disclaimer { font-size: .85rem; color: var(--muted); margin-top: 20px; }

button, .button {
  display: inline-block; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--ink); color: var(--cream); border: 1px solid var(--ink); border-radius: 6px; padding: 10px 18px;
}
button:hover, .button:hover { background: var(--brown); border-color: var(--brown); color: var(--cream); }
button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
button.secondary:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
button.danger { background: transparent; color: var(--rust); border-color: var(--line); }
button.danger:hover { border-color: var(--rust); background: transparent; color: var(--rust); }
button.small { padding: 4px 10px; font-size: .85rem; }
button.link { background: none; border: 0; padding: 0; color: inherit; font-weight: 700; text-decoration: none; }
button.link:hover { text-decoration: underline; background: none; color: inherit; }
.wide { width: 100%; }
.small-link { font-size: .85rem; margin-right: 6px; }

input, select {
  font: inherit; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--cream); color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
input.locked { background: transparent; border-style: dashed; color: var(--muted); }
form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
form.inline select { width: auto; padding: 4px 8px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row input { flex: 1 1 260px; }
.stack label { display: block; margin-bottom: 16px; }
.stack label > span { display: block; font-weight: 700; font-size: .925rem; margin-bottom: 4px; }
.stack label em, fieldset legend em { color: var(--rust); font-style: normal; }
.stack small { display: block; color: var(--rust); font-weight: 700; font-size: .85rem; margin-top: 4px; }
.stack small.hint { color: var(--muted); font-weight: 400; }
.has-error input, .has-error select { border-color: var(--alert); border-width: 2px; }
.dev { margin-top: 24px; display: grid; gap: 8px; text-align: left; }

fieldset.choices { border: 0; padding: 0; margin: 0 0 16px; }
fieldset.choices legend { font-weight: 700; font-size: .925rem; margin-bottom: 6px; padding: 0; }
fieldset.choices small { display: block; color: var(--rust); font-weight: 700; font-size: .85rem; }
fieldset.minor { border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 0 0 16px; }
fieldset.minor legend { float: left; width: 100%; font-weight: 700; font-size: .925rem; padding: 0; margin-bottom: 10px; }
fieldset.minor legend + * { clear: both; }
fieldset.minor.has-error { border-color: var(--alert); }
fieldset.minor ul { margin: .4rem 0 0; padding-left: 1.2rem; }
fieldset.minor li { margin-bottom: .3rem; }
.stack label.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-bottom: 10px; }
.stack label.choice input { width: auto; margin-top: 4px; accent-color: var(--ink); }
.minor-details { display: none; margin-top: 12px; }
fieldset.minor:has(input[value="yes"]:checked) .minor-details { display: block; }

/* the badge meter: a key number in rust, bar in the stripe colors */
.meter { margin-top: 10px; max-width: 420px; }
.meter-text { font-size: .95rem; margin-bottom: 6px; }
.meter-text strong { color: var(--rust); font-size: 1.4rem; }
.bar { height: 8px; background: var(--panel); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--rust); }

.list { width: 100%; border-collapse: collapse; }
.list th { text-align: left; padding: 0 8px 8px; }
.list td { border-top: 1px solid var(--line); padding: 12px 8px; vertical-align: top; }
.list tr.child td { border-top: 1px dashed var(--line); }
.list tr.child td:first-child { padding-left: 28px; }
.list .actions { text-align: right; white-space: nowrap; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin-right: 4px; }
.tag.minor { color: var(--rust); border-color: var(--rust); }

.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; white-space: nowrap; border: 1px solid transparent; }
.pill.wait { background: var(--cream); color: var(--brown); border-color: var(--line); }
.pill.ok { background: var(--brown); color: var(--cream); }
.pill.done { background: var(--ink); color: var(--cream); }
.pill.bad { background: var(--cream); color: var(--ink); border-color: var(--alert); }
.pill.muted { background: transparent; color: var(--muted); border-color: var(--line); }

.namm { background: var(--cream); border-radius: 8px; padding: 16px; margin-bottom: 12px; }
.namm header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.namm header form { margin: 0; }
.namm dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; margin: 0; }
.namm dd { margin: 0; }
button.copy { background: none; border: 1px dashed transparent; color: var(--ink); font-weight: 400; padding: 2px 4px; margin-left: -5px; text-align: left; border-radius: 4px; word-break: break-word; }
button.copy:hover { border-color: var(--line); background: none; color: var(--ink); }
button.copy.copied { background: var(--panel); border-color: var(--brown); }

.review { margin: 0 0 24px; }
.review div { display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.review dt { color: var(--muted); }
.review dd { margin: 0; font-weight: 700; word-break: break-word; }

.plus-one-form { background: var(--cream); border-radius: 8px; padding: 14px 16px; margin-top: 16px; }
.plus-one-form label { display: block; margin-bottom: 8px; }

@media (max-width: 640px) {
  .card { padding: 18px; }
  .brand img { width: 120px; }
  .review div { grid-template-columns: 1fr; gap: 0; }
  .list thead { display: none; }
  .list, .list tbody, .list tr, .list td { display: block; width: 100%; }
  .list tr { border-top: 1px solid var(--line); padding: 8px 0; }
  .list td { border: 0; padding: 4px 0; }
  .list tr.child td:first-child { padding-left: 16px; }
  .list .actions { text-align: left; }
}

/* NAMM rules: the form stays hidden until the guest agrees */
.rules { background: var(--cream); border-left: 4px solid var(--rust); border-radius: 8px; padding: 16px 18px; margin: 0 0 24px; }
.rules h2 { font-size: 1.05rem; margin-bottom: .5rem; }
.rules ul { margin: .5rem 0; padding-left: 1.2rem; }
.rules li { margin-bottom: .4rem; }
.rules.has-error { border-left-color: var(--alert); }
.stack .rules label.agree { margin: 14px 0 0; font-weight: 700; }
.gated .after-rules { display: none; }
.gated:has(input[name="agree_rules"]:checked) .after-rules { display: block; }
