/* Small additions on top of the U.S. Web Design System. Keep this file short;
   prefer USWDS utility classes in templates. No inline styles anywhere: the
   Content Security Policy blocks them. */

/* The page, paper column, fonts and colors are in quiet-paper.css, loaded after this file. */

/* usa-prose limits line length for reading; forms and tables use the full column. */
.sympraxi-content.usa-prose > table,
.sympraxi-content.usa-prose > form,
.sympraxi-content.usa-prose > .usa-card-group {
  max-width: none;
}

.sympraxi-form-actions,
.sympraxi-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

.sympraxi-panel {
  margin-bottom: 2rem;
}

/* The sign-out control is a form button styled to sit in the nav like a link:
   the same color, weight and padding as USWDS gives the links, in the phone
   menu and in the desktop header. */
.sympraxi-nav-form {
  margin: 0;
}

.sympraxi-nav-button.usa-button--unstyled {
  padding: 0.5rem 1rem;
  font-weight: 400;
  text-decoration: none;
}

@media (min-width: 64em) {
  .sympraxi-nav-button.usa-button--unstyled {
    padding: 1rem;
    font-weight: 700;
  }
}

/* USWDS gives links, buttons, fields and anything with a tabindex its focus
   ring, but not a disclosure's summary, which got each browser's own. */
summary:focus {
  outline: 0.25rem solid #2491ff;
  outline-offset: 0;
}

.sympraxi-content .usa-table {
  width: 100%;
}

.sympraxi-footer-text {
  margin: 0;
}

/* The center's front page: panels, number tiles and today's table. */
.sympraxi-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.sympraxi-panel {
  border: 1px solid var(--sympraxi-line, #c9c9c9);
  border-radius: 0.25rem;
  padding: 0 1rem 0.5rem;
}

.sympraxi-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0.5rem 0 1rem;
  padding: 0;
}

.sympraxi-tile {
  border: 1px solid var(--sympraxi-line, #c9c9c9);
  border-radius: 0.25rem;
  padding: 0.75rem 1rem;
}

.sympraxi-tile--attention {
  border-color: #b5472b;
  border-width: 2px;
}

.sympraxi-tile__value {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.1;
}

.sympraxi-month {
  margin: 0 0 1rem;
}

.sympraxi-row--now {
  background: #fff8e6;
}

/* The demo's front page. */
.sympraxi-hero {
  padding: 2.5rem 0 1.5rem;
  max-width: 48rem;
}

.sympraxi-hero h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  margin: 0.25rem 0 1rem;
}

.sympraxi-eyebrow {
  font-weight: bold;
  letter-spacing: 0.05em;
  margin: 0;
  text-transform: uppercase;
}

.sympraxi-lead {
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}

.sympraxi-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sympraxi-hero__actions form {
  margin: 0;
}

.sympraxi-section {
  margin: 2.5rem 0;
}

.sympraxi-tiles--wide {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.sympraxi-panels--cards {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.sympraxi-panels--tour {
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.sympraxi-tour-links li {
  margin-bottom: 0.5rem;
}

.sympraxi-cast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0.5rem 0 1.5rem;
  padding: 0;
}

.sympraxi-cast .sympraxi-panel {
  padding-top: 0.75rem;
}

/* The demo's jump menu, video cards, FAQ and transcript. */
.sympraxi-jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
  border-top: 1px solid #d3cdbf;
  border-bottom: 1px solid #d3cdbf;
}

.sympraxi-jump a {
  display: inline-block;
  min-height: 1.5rem;
  padding: 0.25rem 0;
  font-weight: bold;
}

.sympraxi-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0.5rem 0 1.5rem;
  padding: 0;
}

.sympraxi-videos li {
  margin-bottom: 0;
  padding: 0 0 0.5rem;
}

.sympraxi-videos h4 {
  margin: 0.5rem 1rem 0.25rem;
}

.sympraxi-videos p {
  margin: 0 1rem;
}

.sympraxi-videos__poster {
  display: block;
}

.sympraxi-videos__poster img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid #d3cdbf;
}

.sympraxi-video {
  display: block;
  width: 100%;
  height: auto;
  background: #14181f;
}

.sympraxi-faq {
  border-bottom: 1px solid #d3cdbf;
  padding: 0.25rem 0;
}

.sympraxi-faq summary {
  cursor: pointer;
  font-weight: bold;
  padding: 0.5rem 0;
}

.sympraxi-transcript li {
  margin-bottom: 0.5rem;
}

/* The language links are separate tap targets: at least 24 by 24 CSS pixels with room around. */
.sympraxi-language {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
}

.sympraxi-language a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0 0.75rem;
}

.sympraxi-language a[aria-current="true"] {
  font-weight: bold;
  text-decoration: none;
}

/* Single sign-on buttons: one form per provider, stacked, full width on phones. */
.sympraxi-sso {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0 2rem;
  max-width: 24rem;
}

.sympraxi-sso__item,
.sympraxi-sso__form {
  margin: 0;
}

.sympraxi-sso__button.usa-button {
  width: 100%;
  margin: 0;
}

/* allauth renders the TOTP QR code as an image; keep it a scannable size. */
.usa-form img[src^="data:image/svg"] {
  width: 12rem;
  height: 12rem;
  display: block;
  margin-bottom: 1rem;
}

/* A checkbox's hint sits under its label text, clear of the box USWDS draws. */
.sympraxi-checkbox-hint {
  margin-top: 0.25rem;
  padding-left: 2rem;
}

/* --- Scheduling ----------------------------------------------------------- */

/* Booking filters sit in a row on wide screens and stack on narrow ones. */
.sympraxi-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.sympraxi-filters .usa-form-group {
  margin-top: 1rem;
}

.sympraxi-filters .usa-button {
  margin-top: 1rem;
}

/* Open times: one row per time, readable as a plain list. */
.sympraxi-times {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}

.sympraxi-time {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #dfe1e2;
  max-width: none;
}

.sympraxi-time__when {
  font-weight: 700;
  min-width: 12rem;
}

.sympraxi-time__action {
  margin-left: auto;
}

.sympraxi-time__action .usa-button {
  margin: 0;
}

.sympraxi-day-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin: 1rem 0;
}

.sympraxi-summary dt {
  font-weight: 700;
  margin-top: 0.75rem;
}

.sympraxi-summary dd {
  margin-left: 0;
}

.sympraxi-hours-row {
  border: 1px solid #dfe1e2;
  padding: 0 1rem 1rem;
  margin: 1rem 0;
  max-width: 40rem;
}

/* --- Session records ------------------------------------------------------ */

/* The record and resource forms hold long checkbox lists; let them use the
   column. Inputs and text areas keep their own USWDS widths. */
.sympraxi-wide-form.usa-form {
  max-width: none;
}

.sympraxi-wide-form .usa-input,
.sympraxi-wide-form .usa-select {
  max-width: 30rem;
}

.sympraxi-wide-form .usa-textarea {
  max-width: 40rem;
}

.sympraxi-topics {
  margin-top: 1.5rem;
}

.sympraxi-topic-group {
  border-top: 1px solid #dfe1e2;
  padding: 0.5rem 0;
}

.sympraxi-topic-group > summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.5rem 0;
}

/* Two columns of checkboxes on wide screens, one on phones. */
.sympraxi-topic-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 2rem;
}

@media (min-width: 40em) {
  .sympraxi-topic-list {
    grid-template-columns: 1fr 1fr;
  }
}

.sympraxi-resource-list {
  max-width: none;
}

.sympraxi-resource {
  border-bottom: 1px solid #dfe1e2;
  padding: 0.75rem 0;
  max-width: none;
}

.sympraxi-resource p {
  margin: 0.25rem 0;
}

.sympraxi-resource__title {
  font-weight: 700;
}

.sympraxi-resource__meta {
  color: #565c65;
  font-size: 0.93rem;
}

.sympraxi-resource .usa-button {
  margin-top: 0.5rem;
}

.sympraxi-textarea-short.usa-textarea {
  height: 4rem;
}

.sympraxi-status {
  font-weight: 700;
  min-height: 1.5rem;
}

.sympraxi-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
}

.sympraxi-search-row .usa-input,
.sympraxi-search-row .usa-button {
  margin-top: 0.5rem;
}

.sympraxi-subfields {
  margin-top: 1.5rem;
}

.sympraxi-record,
.sympraxi-brief,
.sympraxi-amendment {
  border-left: 4px solid #dfe1e2;
  padding-left: 1rem;
  margin: 1.5rem 0;
}

.sympraxi-project {
  margin-bottom: 2.5rem;
}

/* The FERPA export prints cleanly: no site header, footer or page links. */
@media print {
  .usa-header,
  .usa-footer,
  .usa-skipnav,
  .usa-overlay,
  .sympraxi-no-print {
    display: none;
  }

  .sympraxi-main {
    padding: 0;
  }

  .sympraxi-record {
    break-inside: avoid;
  }
}

/* --- Forms ---------------------------------------------------------------- */

/* Questions being answered: a little room between them. */
.sympraxi-question {
  margin-top: 1.5rem;
}

.sympraxi-form-intro {
  margin-top: 1rem;
}

/* Answers shown back: the question, then the answer under it. */
.sympraxi-answers-list dt {
  font-weight: 700;
  margin-top: 0.75rem;
}

.sympraxi-answers-list dd {
  margin-left: 0;
}

/* The builder's list of questions, one block each with its buttons. */
.sympraxi-question-list {
  max-width: none;
  padding-left: 1.5rem;
}

.sympraxi-question-item {
  max-width: none;
  padding: 0.75rem 0 1rem;
  border-bottom: 1px solid #dfe1e2;
}

.sympraxi-question-item p {
  margin: 0.25rem 0;
}

.sympraxi-question-item .sympraxi-button-group {
  margin-top: 0.5rem;
}

.sympraxi-button-group form {
  margin: 0;
}

.sympraxi-button-group .usa-button {
  margin: 0;
}

.sympraxi-option-row {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #dfe1e2;
}

.sympraxi-details {
  margin-top: 1.5rem;
}

.sympraxi-details summary {
  cursor: pointer;
  color: #005ea2;
  text-decoration: underline;
}

/* --- Reports -------------------------------------------------------------- */

.sympraxi-report-section {
  margin-top: 2rem;
}

.sympraxi-content.usa-prose .sympraxi-report-section,
.sympraxi-content.usa-prose .sympraxi-print-day,
.sympraxi-content.usa-prose .sympraxi-report-table {
  max-width: none;
}

.sympraxi-report-table .sympraxi-number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sympraxi-downloads .usa-link {
  white-space: nowrap;
}

/* The master lists print on paper: no menus or filters, column headings on every
   page, rows kept whole, and each day of a week on its own page. */
@media print {
  .sympraxi-report-table {
    font-size: 10pt;
  }

  .sympraxi-report-table thead {
    display: table-header-group;
  }

  .sympraxi-report-table tr {
    break-inside: avoid;
  }

  .sympraxi-print-day + .sympraxi-print-day {
    break-before: page;
  }

  .sympraxi-report-table a {
    color: inherit;
    text-decoration: none;
  }

  .sympraxi-content.usa-prose {
    max-width: none;
  }
}

/* A sample file on the CSV import page. */
.sympraxi-example {
  background: #f0f0f0;
  border-left: 0.25rem solid #71767a;
  font-size: 0.93rem;
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
  padding: 0.5rem 1rem;
  white-space: pre-wrap;
}

/* The links above the list of people, for directors. */
.sympraxi-people-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}

/* At 320 CSS pixels (a 1280-pixel window at 400%), a long one-word heading such as
   "Announcements" is wider than the page; let it break, with a hyphen. */
.sympraxi-content h1,
.sympraxi-content h2 {
  hyphens: auto;
  overflow-wrap: break-word;
}

/* Announcements at the top of the center and schedules pages. */
.sympraxi-announcements {
  margin-bottom: 2rem;
}

/* A mass email's message, on the review and sent pages. */
.sympraxi-email-preview {
  border-left: 0.25rem solid #71767a;
  margin-bottom: 1.5rem;
  max-width: 40rem;
  padding: 0 1rem;
}

/* The comment viewer (written-feedback drafts). The pages are drawn by PDF.js on
   canvases, with a transparent layer of the page's text on top to select from. */
.sympraxi-viewer {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 64em) {
  .sympraxi-viewer {
    align-items: start;
    grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
  }

  .sympraxi-viewer__comments {
    max-height: calc(100vh - 2rem);
    overflow: auto;
    position: sticky;
    top: 1rem;
  }
}

.sympraxi-viewer__pages {
  min-width: 0;
}

.viewer-page {
  background: #fff;
  box-shadow: 0 0 0 1px #71767a;
  margin: 0 auto 1rem;
  position: relative;
}

.viewer-page canvas {
  display: block;
}

.viewer-marks {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.viewer-highlight {
  background: rgb(255 213 0 / 35%);
  mix-blend-mode: multiply;
  position: absolute;
}

.viewer-quote {
  border-left: 0.25rem solid #71767a;
  font-style: italic;
  margin: 0.5rem 0;
  padding-left: 0.75rem;
}

.viewer-comment {
  border-top: 1px solid #c9c9c9;
  padding: 0.75rem 0;
}

.viewer-comment .usa-hint {
  margin: 0;
}

/* The core of PDF.js's text layer: each word sits, transparent, over where it is
   drawn, so it can be selected, searched and read by a screen reader. */
.textLayer {
  forced-color-adjust: none;
  inset: 0;
  line-height: 1;
  overflow: clip;
  position: absolute;
  text-align: initial;
  transform-origin: 0 0;
  z-index: 1;
  --min-font-size: 1;
  --text-scale-factor: calc(var(--total-scale-factor) * var(--min-font-size));
  --min-font-size-inv: calc(1 / var(--min-font-size));
}

.textLayer :is(span, br) {
  color: transparent;
  cursor: text;
  position: absolute;
  transform-origin: 0 0;
  white-space: pre;
}

.textLayer > :not(.markedContent),
.textLayer .markedContent span:not(.markedContent) {
  --font-height: 0;
  --rotate: 0deg;
  --scale-x: 1;
  font-size: calc(var(--text-scale-factor) * var(--font-height));
  transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv));
}

.textLayer .markedContent {
  display: contents;
}

.textLayer ::selection {
  background: rgb(0 94 162 / 35%);
}

/* The shared document of a session: the editor beside the chat, one above the other
   on a phone. */
.sympraxi-room {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 64em) {
  .sympraxi-room {
    grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
  }
}

.sympraxi-room__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.sympraxi-room__toolbar .usa-button {
  margin: 0;
}

.sympraxi-room__editor {
  border: 1px solid #71767a;
  min-height: 16rem;
  padding: 0.5rem 1rem;
}

.sympraxi-room__editor:focus-within {
  outline: 0.25rem solid #2491ff;
  outline-offset: 0;
}

.sympraxi-room__prose {
  min-height: 15rem;
  outline: none;
}

.sympraxi-room__prose p:first-child {
  margin-top: 0;
}

.sympraxi-room__saved {
  border-left: 0.25rem solid #71767a;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

#room-chat {
  max-height: 20rem;
  overflow: auto;
  overflow-wrap: anywhere;
}

#room-chat li {
  padding: 0.25rem 0;
}

/* Other people's cursors: a caret, with their name above it. */
.collaboration-carets__caret {
  border-left: 2px solid;
  margin-left: -1px;
  margin-right: -1px;
  pointer-events: none;
  position: relative;
  word-break: normal;
}

.collaboration-carets__label {
  border-radius: 0.25rem 0.25rem 0.25rem 0;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  left: -1px;
  line-height: normal;
  padding: 0 0.25rem;
  position: absolute;
  top: -1.4em;
  user-select: none;
  white-space: nowrap;
}

.collaboration-carets__selection {
  background: rgb(0 94 162 / 20%);
}

/* What the editor needs of its own: ProseMirror's base rules, which Tiptap would
   otherwise inject in a <style> element (the CSP allows none). */
.ProseMirror {
  font-feature-settings: "liga" 0;
  font-variant-ligatures: none;
  position: relative;
  white-space: pre-wrap;
  white-space: break-spaces;
  word-wrap: break-word;
}

.ProseMirror pre {
  white-space: pre-wrap;
}

img.ProseMirror-separator {
  border: none !important;
  display: inline !important;
  height: 0 !important;
  margin: 0 !important;
  width: 0 !important;
}

.ProseMirror-gapcursor {
  display: none;
  margin: 0;
  pointer-events: none;
  position: absolute;
}

.ProseMirror-gapcursor::after {
  border-top: 1px solid #1b1b1b;
  content: "";
  display: block;
  position: absolute;
  top: -2px;
  width: 20px;
}

.ProseMirror-focused .ProseMirror-gapcursor {
  display: block;
}

.ProseMirror-hideselection *::selection {
  background: transparent;
}

.ProseMirror-hideselection * {
  caret-color: transparent;
}

.sympraxi-room__video {
  border: 0;
  height: 22rem;
  width: 100%;
}


/* The check-in kiosk: large, centered, readable from a few feet away. */
.sympraxi-kiosk {
  max-width: 40rem;
  margin: 2rem auto;
  text-align: center;
}
.sympraxi-kiosk-lead {
  font-size: 1.5rem;
}
.sympraxi-kiosk .usa-input {
  font-size: 1.5rem;
  text-align: center;
  max-width: 100%;
}
.sympraxi-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
