/* An event's own page, quantumdev.io/e/<id>, which the accounts function renders (infra/accounts/function/event-page.mjs)
   in the legal pages' layout. It adds the event's facts as a small table, a row of text actions, the two toggles a member
   saves the event with (the Events page's, redrawn for the site's own themes), and the deadlines as rows of day and name. */
.event-facts { display: grid; gap: var(--space-2); margin: var(--space-6) 0 0; max-width: 40em; }
.event-facts div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: var(--space-4); align-items: baseline; }
.event-facts dt { font: var(--type-caption); color: var(--text-secondary); }
.event-facts dd { margin: 0; font: var(--type-body); color: var(--text-primary); text-wrap: pretty; }
.event-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-6); margin: var(--space-6) 0 0; }
.event-more { display: contents; }
.legal-head .event-actions a { text-decoration: none; }
.event-mine { margin-top: var(--space-5); min-height: 28px; }
.event-caveat { margin: var(--space-5) 0 0; padding-left: var(--space-4); max-width: 40em; border-left: var(--line-thin) solid var(--text-primary); font: var(--type-body-sm); color: var(--text-body); }
.event-caveat strong { font-weight: var(--weight-medium); color: var(--text-primary); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Save and I'm going, and the one sentence a guest has in their place (events-member.js builds both). */
.ro-mine { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: 0; font: var(--type-body-sm); color: var(--text-secondary); }
.ro-mine[hidden] { display: none; }
.ro-mine.ro-guest { display: block; }
.ro-toggle {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--space-4); border: var(--line-thin) solid var(--border-strong);
  border-radius: var(--radius-xs); background: transparent; font: var(--type-label); color: var(--text-primary); cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.ro-toggle:hover { background: var(--surface-accent-subtle); }
.ro-toggle[aria-pressed="true"] { border-color: var(--text-primary); background: var(--text-primary); color: var(--bg-canvas); }
.ro-toggle:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.ro-toggle:disabled { opacity: 0.6; cursor: default; }
.ro-act { color: var(--text-primary); text-decoration: underline; text-decoration-thickness: var(--line-thin); text-underline-offset: 3px; }
.ro-act:hover { color: var(--text-link-hover); }
.ro-note { flex-basis: 100%; color: var(--text-body); }
.ro-note:empty { display: none; }

/* Deadlines: the day in mono, then what closes or is due, its note and the page it was read from. */
.legal-body .event-deadlines { display: grid; gap: var(--space-4); padding: 0; list-style: none; }
.legal-body .event-deadlines li { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: var(--space-1) var(--space-4); align-items: baseline; margin: 0; }
.event-deadline-when { color: var(--text-primary); }
@media (max-width: 719px) {
  .legal-body .event-deadlines li { grid-template-columns: minmax(0, 1fr); }
  .event-facts div { grid-template-columns: 4.5em minmax(0, 1fr); }
}

/* Who's going: members who chose to be listed, each a link to their profile with what they are open to. */
.legal-body .event-going { display: grid; grid-template-columns: repeat(auto-fill, minmax(15em, 1fr)); gap: var(--space-4) var(--space-6); padding: 0; list-style: none; }
.legal-body .event-going li { display: grid; gap: var(--space-1); margin: 0; min-width: 0; }
.event-going a { color: var(--text-primary); font-weight: var(--weight-medium); text-decoration: underline; text-decoration-thickness: var(--line-thin); text-underline-offset: 3px; overflow-wrap: anywhere; }
.event-going-open { font: var(--type-body-sm); color: var(--text-secondary); }
.legal-body .event-going-more, .legal-body .event-going-note { margin-top: var(--space-5); font: var(--type-body-sm); color: var(--text-secondary); }

/* Suggest a correction: one line under what the listing says about itself. */
.legal-body .event-correct { margin-top: var(--space-3); font: var(--type-body-sm); color: var(--text-secondary); }

/* From the event: links members sent and QDev approved, each with what it is and where it leads. */
.legal-body .event-links { display: grid; gap: var(--space-3); padding: 0; list-style: none; }
.legal-body .event-links li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-5); margin: 0; }
.event-links a { color: var(--text-primary); font-weight: var(--weight-medium); text-decoration: underline; text-decoration-thickness: var(--line-thin); text-underline-offset: 3px; overflow-wrap: anywhere; }
.event-links .mono { flex: none; }
