/* 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); }

/* Event Planner's Payments: pick several, void a payment (2026-10-11). */
.bulkbar { display: flex; gap: 14px; align-items: center; margin: 0 0 8px; font-size: 14px; }
.bulkbar .linkish { font-weight: 700; text-decoration: underline; padding: 0; }
.card.doc.pickable { padding-left: 12px; }
.pick { display: flex; align-items: center; padding-right: 4px; }
.pick input { width: 20px; height: 20px; accent-color: var(--ink); }
.voidlink { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); text-decoration: underline; padding: 0; }
.paycol { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.paycol form { margin: 0; }
.bulkbar { min-height: 36px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.bulkacts { display: inline-flex; gap: 14px; align-items: center; }

/* Floorplans uploaded by the coordinator (2026-10-11). */
.card.floorplan .fphead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.card.floorplan .fphead form { margin: 0; }
.fpimg { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; }

/* The wedding skin turns links rose; the pay banner is rose too, so its words vanished
   (2026-10-12). Keep them white. */
body.wedding a.paybanner, body.wedding a.paybanner .cta { color: #FFFFFF; }

/* Food & Beverage: Your caterer, its own card (2026-10-12) -- the caterers, then the
   directories beneath. */
.card.catercard { border: 1px solid var(--line); padding: 18px 20px; margin: 8px 0 28px; }
.card.catercard .sechead { margin-top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card.catercard .vendors:not(:empty) { margin-bottom: 14px; }
.card.catercard .card.vendor { box-shadow: none; }
.card.catercard .card.dirlinks { margin: 0; }

/* ================================================================ POLISH PASS (2026-10-12)
   A design audit across My Ideal, My Olympic and Event Planner, at desktop, tablet and
   phone widths. */

/* The footer sits at the foot of the window, never mid-page, and lines up with the
   column above it. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
body > .foot { width: 100%; margin-top: 0; }
.planner-main ~ .foot { max-width: 1200px; }
.cwide ~ .foot, body:has(main.cwide) .top-in { max-width: 1180px; }

/* THE PLANNER: a rail wide enough that "Floorplans & Set-Up" stays on one line beside its
   tag, and a reading column of about 880px, so the forms aren't stretched across a wide screen. */
.planner-main, .pbar-in { max-width: 1200px; }
@media (min-width: 821px) {
  .pgrid { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
  .pcontent { max-width: 880px; }
}
.rail a { padding: 0 12px 0 14px; }
.rail .long { min-width: 0; }
.inreview { flex: 0 0 auto; background: var(--wash); border-radius: 999px; padding: 2px 8px; font-size: 10px; }
.rail a[aria-current="page"] .inreview { background: rgba(255,255,255,.16); color: #fff; }

/* The facts: the date gets room to sit on one line. */
.facts { display: flex; flex-wrap: wrap; }
.facts > div { flex: 1 1 auto; min-width: 112px; }
.facts .v { white-space: nowrap; }
.facts .v { line-height: 1.3; }

/* PAYMENTS: every invoice on the same grid, so labels, amounts, statuses and buttons line up
   down the list -- [pick] [label] [amount] [status] [buttons] -- all on white. */
.card.doc.invoice { display: grid; grid-template-columns: minmax(0, 1fr) 120px 112px auto;
  align-items: center; gap: 8px 16px; background: var(--ground); margin: 0;
  border: 1px solid var(--line); padding: 14px 18px; }
.card.doc.invoice.pickable { grid-template-columns: 28px minmax(0, 1fr) 120px 112px auto; }
.card.doc.invoice > div:first-child, .card.invoice > .meta { flex: none; min-width: 0; }
.invoice .amt { min-width: 0; }
.invoice .paycol { justify-self: center; }
.invoice .docbtns { justify-content: flex-end; flex-wrap: nowrap; }
.invoice .docbtns form { margin: 0; }
.invoice .docbtns .btn { white-space: nowrap; }
.card.doc.invoice.scheduled { background: var(--wash); border-style: dashed; }

/* The client's home: the event leads, and takes two columns where there is room. */
.ev-block { display: block; }
@media (min-width: 900px) {
  .cards > .card.event:first-of-type:not(.past) { grid-column: span 2; }
}

/* Upload cards fold away (Event Planner): the title alone, until it's wanted. */
details.upload-doc .btn { width: auto; }

@media (max-width: 1080px) and (min-width: 821px) {
  .pgrid { grid-template-columns: 244px minmax(0, 1fr); gap: 28px; }
  .rail a { font-size: 14px; padding: 0 10px 0 12px; }
}
@media (max-width: 820px) {
  .planner-main ~ .foot { max-width: none; }
}
@media (max-width: 640px) {
  /* Invoices: the label and amount on the first line, status and buttons on the second. */
  .card.doc.invoice, .card.doc.invoice.pickable { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; }
  .card.doc.invoice.pickable { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .invoice .pick { grid-row: 1 / span 2; align-self: start; padding-top: 4px; }
  .invoice .amt { text-align: right; font-size: 18px; }
  .invoice .paycol { justify-self: start; align-items: flex-start; grid-column: -3; }
  .invoice .docbtns { justify-content: flex-end; grid-column: -2; }
  .card.doc.invoice:not(.pickable) .paycol { grid-column: 1; }
  .card.doc.invoice:not(.pickable) .docbtns { grid-column: 2; }
  .invoice .docbtns .btn { min-height: 40px; padding: 0 14px; font-size: 14px;
    display: inline-flex; align-items: center; justify-content: center; }
  .facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .facts .v { white-space: normal; }
  .facts > div { padding: 10px 12px; }
  .facts .v { font-size: 16px; }
  .card { padding: 16px; }
}
@media (max-width: 520px) {
  .card .docbtns .btn, details.upload-doc .btn { width: auto; }
}

/* BUTTON WORDS SIT IN THE MIDDLE (Kenyon, 2026-10-12): a button given a set height (the
   small ones, the Attach labels) kept its words at the top. Every button centres them. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35em;
  vertical-align: middle; line-height: 1.1; }
.btn > input[type=file] { display: none; }

/* A floorplan at a glance; a click opens the file. */
.fppic { display: block; border-radius: 4px; overflow: hidden; background: var(--wash); }
.fppic .fpimg { width: 100%; max-height: 720px; object-fit: contain; background: #fff; transition: opacity .15s; }
.fppic:hover .fpimg { opacity: .92; }
.rail .long { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* A floorplan folds to one row (Kenyon, 2026-10-12): tap the row and the picture opens
   beneath it; Open PDF sits at the row's right and opens the file in a new tab. */
.card.floorplan { position: relative; padding: 0; margin-bottom: 24px; }
.fpfold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 10px 220px 10px 20px; }
.fpfold > summary::-webkit-details-marker { display: none; }
.fpname { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.fptoggle { margin-left: auto; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.fptoggle::after { content: "Show preview \25BE"; }
.fpfold[open] .fptoggle::after { content: "Hide preview \25B4"; }
.fpfold > summary:hover .fptoggle { color: var(--ink); text-decoration: underline; }
.fpfold .fppic { margin: 0 20px 20px; }
.fpfold[open] .fppic { animation: fpopen .22s ease-out; transform-origin: top center; }
@keyframes fpopen { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.fpacts { position: absolute; top: 12px; right: 20px; display: flex; align-items: center; gap: 12px; }
.fpacts form { margin: 0; }
.fpacts .btn { margin: 0; }
@media (prefers-reduced-motion: reduce) { .fpfold[open] .fppic { animation: none; } }
@media (max-width: 520px) {
  .fpfold > summary { padding: 12px 16px; min-height: 52px; }
  .fpfold .fppic { margin: 0 16px 16px; }
  .fpacts { position: static; padding: 0 16px 14px; }
  .card .fpacts .btn { width: auto; }
}

/* Floorplans ticked like invoices (2026-10-12): the box sits at the row's left. */
.fppick { position: absolute; top: 0; left: 0; height: 64px; padding: 0 0 0 18px; z-index: 1; }
.card.floorplan:has(.fppick) .fpfold > summary { padding-left: 52px; }
#bulk-fp { margin-top: 4px; }
@media (max-width: 520px) {
  .fppick { height: 52px; padding-left: 14px; }
  .card.floorplan:has(.fppick) .fpfold > summary { padding-left: 46px; }
}
