/* The portal's layout (LA-3001): the home page and the meeting page. Colour and type come from
   design.css, in Black or Paper by the viewer's setting. Square corners, no shadows, and
   sand only on the selected tap. Nothing moves. */

[hidden] { display: none !important; }
body { font-size: 16px; line-height: 1.5; }
h1, h2, h3, p { margin: 0; }
a { color: var(--text); }

/* The header every page shares is drawn by web/header.js and styled in design.css. */
button.quiet { background: transparent; color: var(--text-muted); border: 0; padding: 4px 0; min-height: 44px; font-weight: var(--weight-medium); }
button.quiet:hover { color: var(--text); }

/* The sign-in gate. */
.gate { max-width: 420px; margin: 0 auto; padding: 64px 16px; }
.gate .box { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-l); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.gate h2 { font-size: 20px; font-weight: var(--weight-semibold); }
.gate p { color: var(--text-muted); }
.gate input { width: 100%; padding: 10px; margin: 0 0 var(--space-2); }
.gate button.wide { width: 100%; }

main.page { max-width: 1280px; margin: 0 auto; padding: 56px 40px 96px; display: flex; flex-direction: column; gap: 72px; }
#status { color: var(--text-muted); }
#status:empty { display: none; }
.quiet { color: var(--text-muted); }

/* A section's heading, and the page title (type scale "large" in design-choices.md). */
.column-head { font-size: 20px; line-height: 28px; font-weight: var(--weight-semibold); }
.eyebrow { font-size: 14px; color: var(--text-muted); }
.title { font-size: 34px; letter-spacing: -0.02em; line-height: 40px; font-weight: var(--weight-semibold); }

@media (max-width: 720px) {
  main.page { padding: 32px 16px 64px; gap: 48px; }
  .title { font-size: 28px; line-height: 34px; }
}

@media print {
  .site-top, .no-print { display: none !important; }
  main.page { padding: 0; }
}

/* The home (LA-3725), in the Interlude layout since LA-4052 (design-choices.md "layout"): the
   header and the lobby line on the black ground, then a black card with the newest meeting and
   the Paper sheet that scrolls up over it, then Coming up and Earlier the same way, and the
   disclosure on a black foot. The cards, sheets and bands are in interlude.css; this file holds
   what is the home's alone. Nothing opens over the page. */
.brief-page { min-height: 100vh; display: flex; flex-direction: column; font-family: var(--font-sans); }
.brief-page .site-top { max-width: none; padding: 12px 40px; }
.brief-page .gate { width: 100%; }
.brief-page main.brief { width: 100%; display: flex; flex-direction: column; }
.brief-page #status { font-size: 15px; padding: 0 40px 16px; }
/* The first card fills the screen under the header, whose height index.html measures. */
.brief-page .cover-pair .interlude { min-height: calc(100vh - var(--top-h, 72px)); min-height: calc(100svh - var(--top-h, 72px)); }
.brief-page .brief-meta { color: #bdb7ab; }
.brief-page .brief-empty { color: #ece8df; }
.brief-page .first-step-title { font-weight: var(--weight-semibold); }

/* The lobby line (LA-3673): Ora is in a lobby or joining. Ochre with a word, on the black ground. */
.lobby { margin: 0; padding: 0 40px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; line-height: 20px; color: var(--ochre); }
.lobby::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--ochre); }
.lobby button.link { color: var(--text); font-weight: var(--weight-medium); }
.lobby form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; }
.lobby input { min-width: 0; width: min(420px, 100%); min-height: 40px; padding: 0 12px; font-size: 15px; }
.lobby .join-status { width: 100%; color: var(--text-muted); font-size: 14px; }
.lobby .join-status:empty { display: none; }

button.link { background: transparent; border: 0; padding: 0; min-height: 0; font: inherit; font-weight: var(--weight-medium); color: var(--text); cursor: pointer; }
button.link:hover { color: var(--text-muted); }
button.link.muted { color: var(--text-muted); }

/* The rows on the sheet. A row's title links to the transcript line it came from. */
.owe .owe-item { color: var(--text); }
a.owe-item:hover { color: var(--text-muted); }
.owe .owe-who { overflow-wrap: anywhere; }
.owes-none { font-size: 16px; line-height: 24px; color: var(--text-muted); padding: 16px 0; }
.brief-delivery.failed { color: var(--danger-text); }
.brief-delivery .link-button { font: inherit; font-weight: var(--weight-medium); color: var(--text); background: none; border: 0; padding: 0; min-height: 0; cursor: pointer; }
.brief-delivery .link-button:disabled { color: var(--text-muted); cursor: default; }

/* Coming up and Earlier: rows on their sheets. */
.earlier-row { display: flex; align-items: baseline; gap: 0; padding: 14px 0; border-top: 1px solid var(--hairline); color: var(--text); text-decoration: none; }
.earlier-row:first-child { border-top: 0; }
.earlier-when { flex: 0 0 120px; font-size: 14px; line-height: 18px; color: var(--text-muted); }
.earlier-name { flex: 1; min-width: 0; font-size: 17px; line-height: 22px; overflow-wrap: anywhere; }
.earlier-right { padding-left: 16px; font-size: 14px; line-height: 18px; color: var(--text-muted); text-align: right; }
.earlier-right.live { color: var(--moss); font-weight: var(--weight-medium); }
.upcoming-row { display: flex; align-items: center; gap: 0; padding: 12px 0; border-top: 1px solid var(--hairline); color: var(--text); }
.upcoming-row:first-child { border-top: 0; }
.upcoming-row.off .earlier-name { color: var(--text-muted); }
.upcoming-state { padding: 0 16px; font-size: 14px; line-height: 18px; color: var(--text-muted); white-space: nowrap; }
.earlier-tail { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 16px 0 0; border-top: 1px solid var(--hairline); font-size: 14px; line-height: 18px; }
.earlier-tail button.link { color: var(--text-muted); }
.earlier-search { display: flex; flex: 1; justify-content: flex-end; min-width: 220px; }
.earlier-search input { width: min(360px, 100%); min-height: 40px; padding: 0 12px; font-size: 15px; }
.earlier-search input[hidden] { display: none; }
.brief-page .results { display: flex; flex-direction: column; gap: 20px; padding-top: 16px; }
.brief-page .results-count { font-size: 15px; color: var(--text-muted); }
.brief-page .results-empty { color: var(--text-muted); }
.brief-page .result-group { display: flex; flex-direction: column; }
.brief-page .result-head { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--hairline); padding-bottom: 8px; }
.brief-page .result-name { font-size: 17px; }
.brief-page .result-when { font-size: 13px; color: var(--text-muted); }
.brief-page .hit { display: grid; grid-template-columns: 90px 130px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--hairline); color: var(--text); text-decoration: none; font-size: 15px; overflow-wrap: anywhere; }
.brief-page .hit-kind, .brief-page .hit-who { font-size: 13px; color: var(--text-muted); }
.brief-page .hit mark { background: var(--selected); color: var(--on-selected); padding: 0 1px; }

@media (max-width: 720px) {
  .brief-page .site-top { padding: 12px 16px; }
  .brief-page #status, .lobby { padding-left: 16px; padding-right: 16px; }
  .earlier-row { flex-wrap: wrap; }
  .earlier-when { flex-basis: 100%; margin: 0 0 4px; }
  .earlier-name { flex-basis: 100%; }
  .earlier-right { flex-basis: 100%; text-align: left; margin-top: 4px; padding-left: 0; }
  /* Coming up: the time on its own line, then the name with its switch beside it. */
  .upcoming-row { flex-wrap: wrap; }
  .upcoming-row .earlier-name { flex: 1 1 calc(100% - 60px); }
  .upcoming-row .upcoming-state { display: none; }
  .upcoming-row .switch { margin-left: 16px; }
  .brief-page .hit { grid-template-columns: auto minmax(0, 1fr); }
  .brief-page .hit-text { grid-column: 1 / -1; }
}
