/* Every response (/responses): one row per classmate. Builds on styles.css. */

.responses-page { background: var(--paper); }

/* Blue header: the hero's top bar, then the title. */
.r-head { background: var(--cobalt); color: var(--cream); border-bottom: 3px double var(--cream); }
.r-head a { color: var(--cream); }
.r-intro { padding-block: 40px 64px; display: flex; flex-direction: column; gap: 10px; max-width: 1280px; }
.r-intro .kicker { color: #dcd8f0; }
.r-intro h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 8vw, 104px); line-height: .95; letter-spacing: -.01em; }
.r-intro p { margin: 10px 0 0; max-width: 56ch; font-family: var(--serif); font-size: 21px; line-height: 1.45; color: #dcd8f0; }
.r-intro .r-fine { margin-top: 0; font-size: 16px; font-style: italic; opacity: .85; }

.r-main { padding-block: 48px 88px; display: flex; flex-direction: column; gap: 20px; }

/* Search, then the filters as small labelled pills. */
.r-tools { display: flex; flex-direction: column; gap: 16px; border-bottom: 3px double var(--cobalt); padding-bottom: 16px; }
.r-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.r-select {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 34px 0 14px;
  border: 1px solid var(--cobalt); border-radius: 999px; color: var(--cobalt); font-size: 16px; cursor: pointer;
}
.r-select::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 1.5px solid var(--cobalt); border-bottom: 1.5px solid var(--cobalt); transform: rotate(45deg); pointer-events: none;
}
.r-select:hover { background: var(--wash); }
.r-select:focus-within { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.r-select.is-set { background: var(--cobalt); color: var(--paper); }
.r-select.is-set::after { border-color: var(--paper); }
.r-select-label { color: inherit; opacity: .8; }
.r-select select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit;
  font-family: var(--serif); font-size: 17px; padding: 0; cursor: pointer; max-width: 15em;
}
.r-select select:focus { outline: none; }
.r-select select option { color: var(--ink); background: var(--paper); }
.r-clear {
  min-height: 40px; padding: 0 14px; border: 0; background: transparent; color: var(--muted);
  font-size: 16px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.r-clear:hover { color: var(--cobalt); }
.r-count { margin: 0; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); }

/* The table: the list's look, one row per response. */
.r-table { min-width: 760px; }
.r-table td { padding-block: 12px; }
.r-table td:first-child { color: var(--muted); }
.r-choice { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.r-choice b { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.r-choice small { font-size: 14px; color: var(--muted); }
.r-choice.is-off b { font-style: italic; color: var(--muted); font-size: 17px; }
.r-gpa { font-family: var(--serif); font-size: 22px; white-space: nowrap; }
.r-gpa small { font-size: 14px; color: var(--muted); }
.r-gpa.is-none { color: var(--muted); }
.r-src, .r-date { font-size: 15px; color: var(--muted); white-space: nowrap; }
.r-empty { margin: 0; padding: 56px 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); }
.r-more { align-self: center; }

/* Phones: one card per response instead of a wide table. */
@media (max-width: 720px) {
  .r-intro { padding-block: 24px 44px; }
  .r-intro p { font-size: 19px; }
  .r-head .topbar { flex-wrap: nowrap; padding-block: 16px; }
  .r-head .brand img { width: 38px; height: 38px; }
  .r-head .brand-desc { font-size: 10px; letter-spacing: .12em; }
  .r-head .section-nav { display: none; }
  .r-head .lang-switch { margin-left: auto; }
  .r-select { max-width: 100%; }
  .r-select select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
  .table-scroll { overflow: visible; }
  .r-table { min-width: 0; }
  .r-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .r-table, .r-table tbody { display: block; }
  .r-table tr {
    display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: start;
    padding: 16px 0; border-bottom: 1px solid var(--line);
  }
  .r-table td { display: block; padding: 0; border: 0; }
  .r-table td:first-child { grid-row: 1; grid-column: 1; font-size: 17px; }
  .r-table td.r-c1 { grid-row: 1; grid-column: 2; }
  .r-table td.r-c2 { grid-row: 2; grid-column: 2; }
  .r-table td.r-c1::before, .r-table td.r-c2::before {
    content: attr(data-label); display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  }
  .r-table td.r-c2 { margin-top: 8px; }
  .r-table td.r-g { grid-row: 1; grid-column: 3; text-align: right; }
  .r-table td.r-s { grid-row: 3; grid-column: 2; margin-top: 8px; text-align: left; }
  .r-table td.r-d { grid-row: 3; grid-column: 3; margin-top: 8px; }
}

/* Footer: the wordmark and the ways back. */
.r-foot { background: var(--cobalt); color: var(--cream); border-top: 3px double var(--cream); padding-block: 48px 56px; text-align: center; }
.r-foot-mark { margin: 0; font-family: var(--serif); font-size: clamp(56px, 10vw, 120px); line-height: .9; letter-spacing: -.02em; }
.r-foot-links { margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-family: var(--serif); font-style: italic; font-size: 19px; }
.r-foot a { color: var(--cream); text-underline-offset: 3px; }
