/* My Ideal — The Ideal's brand (Brand Guide 2025; MEMBER_PORTAL_SPEC.md section 7).
   Ink black and #404040 on white. The accent #BD2035 is used sparingly: the one call to
   action on a screen, the active nav item, the rule under the header. Headings Oswald
   Medium, body Lato Light. */
:root {
  --ink: #000000;
  --ink-2: #404040;
  --ground: #FFFFFF;
  --line: #E4E4E4;
  --wash: #F6F6F6;
  --accent: #BD2035;
  --accent-ink: #FFFFFF;
  --ok: #1F6B3A;
  --gutter: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 300 17px/1.55 "Lato", system-ui, sans-serif;
}
a { color: var(--ink); text-underline-offset: 3px; }
h1, h2 { font-family: "Oswald", Impact, sans-serif; font-weight: 500;
         text-transform: uppercase; letter-spacing: .02em; line-height: 1.15; }
h1 { font-size: 30px; margin: 8px 0 18px; }
h2 { font-size: 18px; margin: 0 0 10px; color: var(--ink); }

.top { border-bottom: 3px solid var(--accent); padding-top: env(safe-area-inset-top); }
.top-in { max-width: 960px; margin: 0 auto; padding: 14px var(--gutter);
          display: flex; align-items: center; justify-content: space-between;
          gap: 16px; flex-wrap: wrap; }
.brand img { display: block; height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 18px; font-weight: 400; }
.nav a, .linkish { color: var(--ink-2); text-decoration: none; font: inherit;
                   background: none; border: 0; padding: 6px 0; cursor: pointer; }
.nav a[aria-current="page"] { color: var(--accent); border-bottom: 2px solid var(--accent); }
.nav form { margin: 0; }

.wrap { max-width: 960px; margin: 0 auto; padding: 24px var(--gutter) 48px; }
.narrow { max-width: 440px; margin: 0 auto; }
.lede { color: var(--ink-2); margin: 0 0 18px; }
.aside { color: var(--ink-2); font-size: 15px; margin-top: 18px; }
.small { font-size: 14px; color: var(--ink-2); margin: 4px 0 0; }
.crumb { margin: 0; font-size: 14px; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: 6px; padding: 20px; background: var(--ground); }
.card p { margin: 0 0 12px; }

.event .ev-title { font-family: "Oswald", Impact, sans-serif; font-weight: 500;
                   font-size: 24px; line-height: 1.2; margin-bottom: 2px; }
.ev-date { color: var(--ink-2); margin: 0 0 8px; }
.status { font-weight: 700; }
.event.past { background: var(--wash); }
.event.past .status { color: var(--ink-2); font-weight: 400; }

.form { display: flex; flex-direction: column; }
.form label { font-weight: 400; font-size: 15px; margin: 12px 0 6px; }
.form label:first-of-type { margin-top: 0; }
.form h2 + label { margin-top: 0; }
input[type=email], input[type=password], input[type=text], input[type=tel], input:not([type]) {
  font: 400 17px/1.3 "Lato", system-ui, sans-serif; color: var(--ink);
  padding: 12px; border: 1px solid #BDBDBD; border-radius: 4px; width: 100%;
  background: var(--ground);
}
input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 300 !important; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.fixed { font-weight: 400; margin: 0; padding: 4px 0; }

.btn { display: inline-block; margin-top: 18px; padding: 13px 22px; border: 0;
       border-radius: 4px; background: var(--accent); color: var(--accent-ink);
       font: 500 16px/1 "Oswald", Impact, sans-serif; letter-spacing: .06em;
       text-transform: uppercase; text-decoration: none; cursor: pointer; text-align: center; }
.card .btn { margin-top: 6px; }
.form .btn { margin-top: 18px; }
.btn.ghost { background: var(--ground); color: var(--ink); border: 1px solid var(--ink); }
.quiet { color: var(--ink-2); font-size: 15px; }

.note { padding: 12px 14px; border-radius: 4px; margin: 0 0 16px; border-left: 4px solid; }
.note.ok { background: #EEF6F0; border-color: var(--ok); }
.note.stop { background: #FBEDEF; border-color: var(--accent); }

.foot { max-width: 960px; margin: 0 auto; padding: 18px var(--gutter) calc(24px + env(safe-area-inset-bottom));
        color: var(--ink-2); font-size: 13px; border-top: 1px solid var(--line); }
.foot a { color: var(--ink-2); }

@media (max-width: 520px) {
  .brand img { height: 40px; }
  h1 { font-size: 26px; }
  .form .btn, .card .btn { width: 100%; }
}

/* ---------------------------------------------------------------- the planner
   MEMBER_PORTAL_SPEC.md sections 5 and 7. A left rail on desktop, a tab bar along the top on
   phones; the content column fills the space beside the rail up to about 1080px, so a
   desktop has no dead band, and at phone width nothing scrolls sideways. */
body.planner { --rail: #F7F7F7; --panel: #F7F7F7; --notice: #F2F2F2; --rail-on: #000000;
  --ok-tick: #2F6B4A; --title-font: "Oswald", Impact, sans-serif; }
.pbar { background: #000; color: #fff; padding-top: env(safe-area-inset-top); }
.pbar-in { max-width: 1320px; margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
/* The white-lettered logo, made for a dark ground (Kenyon, 2026-10-08): no filter. */
.pbar .brand img { height: 36px; width: auto; display: block; }
.pbar .back { color: #fff; text-decoration: none; font-weight: 400; min-height: 44px;
  display: inline-flex; align-items: center; }
.pbar-ev { margin-left: auto; font-family: "Oswald", Impact, sans-serif; letter-spacing: .03em;
  text-transform: uppercase; font-size: 14px; }
.planner-main { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter) 64px; }
.pgrid { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 32px; }
.railcol { position: sticky; top: 0; align-self: start; padding: 24px 0; }
.rail { display: flex; flex-direction: column; gap: 2px; }
.railnote { font-size: 13px; line-height: 1.45; color: var(--ink-2); margin: 16px 14px 0;
  padding-top: 14px; border-top: 1px solid var(--line); }
.railnote.locked { color: var(--ink); border-top: 2px solid var(--accent); }
.rail a { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: 6px; text-decoration: none;
  color: var(--ink); font-weight: 400; }
.rail a[aria-current="page"] { background: var(--rail-on); color: #fff; font-weight: 700; }
.rail .short { display: none; }
.rail .tick { color: var(--ok-tick); font-weight: 700; }
.rail a[aria-current="page"] .tick { color: #fff; }
.pcontent { max-width: 1080px; padding: 24px 0; min-width: 0; }
/* Phones only: the rail is the top tab bar there, so the note sits at the foot of the section. */
.lock { display: none; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--ink-2); margin: 0; }
.evtitle { font-family: var(--title-font); font-size: 40px; margin: 4px 0 18px; }
.sechead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.sechead h1 { margin: 0; }
.sechead .btn { margin: 0 0 0 auto; }
.sechead.sub { margin-top: 18px; }
.saved { font-size: 14px; color: var(--ink-2); }
.saved.bad { color: var(--accent); font-weight: 700; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.facts > div, .coord, .due { background: var(--panel); border-radius: 6px; padding: 14px; border: 0; }
.k { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 700; }
.v { font-size: 18px; font-weight: 400; margin-top: 2px; }
.coord, .due { margin-bottom: 14px; }
.due { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.due .btn { margin: 0; }
.milestones ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.milestones li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 8px; border-bottom: 1px solid var(--line); }
.milestones li.next { background: var(--notice); font-weight: 700; }
.milestones .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #BFBFBF;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.milestones li.next .dot { border-color: var(--accent); }
.milestones li.done .dot { background: var(--ok-tick); border-color: var(--ok-tick); color: #fff; }
.milestones .what { display: flex; flex-direction: column; }
.milestones .how { font-size: 14px; color: var(--ink-2); font-weight: 300; }
.milestones .when { font-size: 14px; color: var(--ink-2); }
.milestones li.next .when { color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fld { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.fld .lbl, fieldset.fld legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; display: block; }
.help { font-size: 14px; color: var(--ink-2); margin: 0 0 6px; }
.ro { font-size: 17px; }
textarea.inp { min-height: 96px; resize: vertical; font: 400 16px/1.4 "Lato", system-ui, sans-serif;
  padding: 12px; border: 1px solid #BDBDBD; border-radius: 4px; width: 100%; color: var(--ink); }
select.inp { font: 400 16px/1.3 "Lato", system-ui, sans-serif; padding: 11px; border: 1px solid #BDBDBD;
  border-radius: 4px; width: 100%; background: var(--ground); color: var(--ink); min-height: 46px; }
.inp:disabled, .inp[readonly] { background: var(--panel); color: var(--ink-2); }
.checks { display: grid; gap: 8px; }
.checks label { display: flex; gap: 10px; align-items: center; min-height: 32px; font-weight: 300; }
.checks input { width: 20px; height: 20px; accent-color: var(--ink); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.card.floorplan .fpslot { min-height: 160px; display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--ink-2); border: 1px dashed #BFBFBF; border-radius: 6px; padding: 16px; }
.card.rules, .card.soon { background: var(--panel); border: 0; }
/* A long question wraps in its own column; the Yes / No buttons stay lined up on the right. */
.av .yn { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 0; }
.av .yn > span:first-child { flex: 1 1 auto; min-width: 0; }
.av .yn > [role="group"] { flex: 0 0 auto; white-space: nowrap; }
/* The phone rule that stretches buttons in a card to full width must not reach these. */
.card.av .btn.tog { width: auto; padding: 0 16px; }
.btn.tog { margin: 0 0 0 6px; min-height: 44px; padding: 0 18px; background: var(--ground);
  color: var(--ink); border: 1px solid #BFBFBF; }
.btn.tog[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.avnote { background: var(--notice); padding: 10px 12px; border-radius: 6px; margin: 8px 0 0; }
.contractor { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }
.copylink { text-align: center; margin: 12px 0 20px; }
.copylink .help { margin: 6px 0 0; }
.addmore { margin: 4px 0 8px; }
h3 { font-family: "Oswald", Impact, sans-serif; font-weight: 500; text-transform: uppercase;
  letter-spacing: .02em; font-size: 16px; margin: 12px 0 8px; }
.cardhead { display: flex; justify-content: space-between; align-items: baseline; }
.cardhead h3 { margin: 0 0 8px; }
.contact .show { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.timeline { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 120px minmax(150px, 220px) minmax(0, 1fr) auto;
  gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline.ro li { grid-template-columns: 110px minmax(0, 1fr); }
.timeline .t { font-weight: 700; }
.timeline .n { color: var(--ink-2); font-size: 14px; }
.timeline.ro .n { display: block; }
.link { background: none; border: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer;
  font: inherit; min-height: 44px; padding: 0 4px; }
.vendors { display: grid; gap: 12px; }
.vendor { position: relative; }
.vendor .show { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-right: 48px; }
.edit { position: absolute; top: 14px; right: 16px; font-size: 14px; color: var(--ink-2); }
.contact .edit { position: static; }
.req { font-size: 14px; color: var(--ink-2); margin: 6px 0 0; }
.req.bad { color: var(--accent); }
.rc { margin-top: 6px; }
.rc summary { cursor: pointer; color: var(--accent); font-size: 14px; min-height: 32px; }
.rc .btn { margin-top: 8px; }
.btn.ghost { background: var(--ground); color: var(--ink); border: 1px solid var(--ink); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

@media (max-width: 820px) {
  .pgrid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* THE RAIL BECOMES A TAB BAR ALONG THE TOP (Kenyon, 2026-10-08), held under the header
     as the page scrolls. It may scroll sideways itself; the page never does. */
  .railcol { position: sticky; top: 0; z-index: 10; padding: 0; background: var(--ground);
    margin: 0 calc(-1 * var(--gutter)); border-bottom: 1px solid var(--line); }
  .rail { flex-direction: row; padding: 4px; overflow-x: auto; gap: 2px; }
  .rail a { flex: 0 0 auto; flex-direction: column; justify-content: center; gap: 0;
    padding: 4px 10px; font-size: 13px; min-height: 52px; }
  .rail .long { display: none; }
  .rail .short { display: inline; }
  .railnote { display: none; }
  .lock { display: block; font-size: 13px; color: var(--ink-2); margin: 28px 0 0;
    padding-top: 12px; border-top: 1px solid var(--line); }
  .lock.locked { color: var(--ink); border-left: 3px solid var(--accent); padding-left: 8px; }
  .pbar-ev { margin-left: 0; width: 100%; }
  .grid2, .contact .show, .vendor .show { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: 96px minmax(0, 1fr); }
  .timeline li > input.n { grid-column: 1 / -1; }
  .timeline li > [data-remove], .timeline li > span:empty { grid-column: 2; justify-self: start; }
  .evtitle { font-size: 30px; }
}

/* ---------------------------------------------------------------- the wedding skin
   Spec section 7: cream and rose, the brand steps back, NO brand red anywhere, a small
   black logo and no heavy black band. Jost for everything; a script face for the couple's
   names only. --script is the one-line swap: AnnabelleJF if its license covers the web,
   Pinyon Script until then. */
body.wedding { --script: "Pinyon Script", cursive;
  --ground: #F8F4EC; --panel: #F1EADD; --notice: #F1EADD; --rail: #F1EADD; --line: #E6DCCB;
  --ink: #262626; --ink-2: #5F5650; --accent: #8C3A48; --accent-ink: #FFFFFF; --rail-on: #8C3A48;
  --blush: #D7A68D; --title-font: var(--script);
  font-family: "Jost", system-ui, sans-serif; font-weight: 300; }
body.wedding h1, body.wedding h2, body.wedding h3, body.wedding .btn, body.wedding .pbar-ev {
  font-family: "Jost", system-ui, sans-serif; text-transform: none; letter-spacing: .04em; font-weight: 500; }
body.wedding .evtitle { font-family: var(--script); font-weight: 400; font-size: 56px; letter-spacing: 0; }
body.wedding .pbar { background: var(--ground); color: var(--ink); border-bottom: 1px solid var(--line); }
body.wedding .pbar .brand img { filter: none; height: 40px; }
body.wedding .pbar .back { color: var(--ink); }
body.wedding .inp, body.wedding textarea.inp, body.wedding select.inp { background: #FFFDF8;
  font-family: "Jost", system-ui, sans-serif; border-color: #C9B9A2; }
body.wedding .card { background: #FFFDF8; border-color: var(--line); }
body.wedding .foot { border-color: var(--line); }
body.wedding a { color: var(--accent); }
@media (max-width: 820px) { body.wedding .evtitle { font-size: 40px; } }

/* My Ideal's event card: the plan's progress, the red bar the brand guide allows. */
.progress { margin: 4px 0 10px; }
.progress .pl { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ink-2); }
.progress .bar { height: 6px; background: var(--line); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.progress .bar > div { height: 100%; background: var(--accent); }

/* "hidden" means hidden, whatever display a class gives the element (.form is a flex
   column, which would otherwise win and show a closed edit form). */
[hidden] { display: none !important; }
/* The wedding link colour must not reach buttons or the menu: rose text on a rose button
   disappears, and a menu of rose links reads as eight calls to action. */
body.wedding a.btn { color: var(--accent-ink); }
body.wedding a.btn.ghost { color: var(--ink); }
body.wedding .rail a { color: var(--ink); }
body.wedding .rail a[aria-current="page"] { color: #fff; }

/* Phase 3: the signed proposal, attachments, and the contractor's page. */
.card.doc { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.docbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.docbtns .btn { margin: 0; }
.attach { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; margin: 0; cursor: pointer; }
.attach .bad, .help.bad { color: var(--accent); font-weight: 700; }
.pcontent.solo { max-width: 760px; margin: 0 auto; }

/* Phase 4: Payments. */
.invoices { display: flex; flex-direction: column; gap: 10px; }
.card.invoice > div:first-child { flex: 1 1 220px; }
.invoice .amt { font-family: "Oswald", Impact, sans-serif; font-size: 20px; min-width: 96px; text-align: right; }
.paystatus { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 4px 10px; border-radius: 999px; background: var(--panel); color: var(--ink); }
.paystatus.paid { background: #EEF6F0; color: var(--ok); }
.paystatus.due, .paystatus.overdue { background: #FBEDEF; color: var(--accent); }
.duebadge { font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent);
  border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.achnote { margin-top: 16px; }
@media (max-width: 640px) { .invoice .amt { text-align: left; min-width: 0; } }


/* Required fields (2026-10-08): a red asterisk after the question, one key line per section. */
.rq { color: var(--accent); font-weight: 700; margin-left: 3px; }
.reqkey { font-size: 13px; color: var(--ink-2); margin: -6px 0 14px; }
.paidtag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--ok); background: #EEF6F0; border-radius: 999px; padding: 2px 8px; }

/* The itinerary, one line per moment: time, the moment, its note. A starred (required)
   moment is plain text, not a box, with the note to its right. */
.timeline .mname { font-weight: 700; }
.timeline li > input.n { color: inherit; font-size: 15px; }

/* The production schedule's placeholder rows, before the venue writes it (2026-10-08):
   greyed boxes, nothing to click. Doors carries the itinerary's time. */
.prodph .phbox { display: inline-block; min-width: 84px; min-height: 34px; line-height: 34px;
  padding: 0 10px; border: 1px dashed var(--line); border-radius: 6px; background: var(--panel);
  color: var(--ink); font-weight: 700; }
.prodph li { align-items: center; }

/* One block per entertainer's set-up & files (2026-10-08). */
.actblock + .actblock { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.actname { margin: 0 0 8px; font-size: 16px; }

/* Payment due within two weeks (or past due): a red banner atop every section. */
.paybanner { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap; background: var(--accent); color: var(--accent-ink); text-decoration: none;
  border-radius: 6px; padding: 12px 16px; margin: 0 0 16px; font-size: 15px; }
.paybanner .cta { font-family: "Oswald", Impact, sans-serif; text-transform: uppercase;
  letter-spacing: .06em; white-space: nowrap; }
.paybanner:hover .cta { text-decoration: underline; }

/* The contractor page's deadline, and each entertainer's own link (2026-10-08). */
.dueline { font-size: 15px; letter-spacing: .04em; margin: 0 0 14px; }
.dueline.locked { border-left: 3px solid var(--accent); padding-left: 8px; letter-spacing: 0; }
.copylink.cardlink { text-align: left; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }

/* The contractor page's event date, big, under the title (2026-10-08). */
.evdate { font-family: "Oswald", Impact, sans-serif; font-size: 28px; line-height: 1.15;
  text-transform: uppercase; letter-spacing: .03em; margin: 2px 0 14px; }
.evdate + .dueline { margin-bottom: 2px; }

/* A planning section's review (2026-10-11): submit, in review, reviewed. */
.reviewbar { margin: 28px 0 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel, #F7F7F7); }
.reviewbar p { margin: 0 0 10px; }
.reviewbar .btn { margin: 0 0 8px; }
.reviewbar.reviewed { border-color: #BFD9C7; background: #EEF6F0; }
.reviewbar.submitted { border-color: var(--line); }
.inreview { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; }
.rail a[aria-current="page"] .inreview { color: #ddd; }

/* Food & Beverage: the caterer and food-truck directories (2026-10-11). */
.card.dirlinks { margin: 0 0 28px; padding: 14px 18px; background: var(--panel, #F7F7F7); border: 0;
  display: grid; gap: 8px; }
.card.dirlinks p { margin: 0; font-size: 15px; }
.dirlinks a { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }

/* An itinerary time that isn't a time (2026-10-11). */
.inp.t.bad { border-color: var(--accent); outline-color: var(--accent); }
