/* Student pages. Mobile first and light only: the route is read outdoors, in the sun
   (spec §10), so the palette stays high-contrast whatever the phone's theme. */

:root {
  color-scheme: light;
  --cr-bg: #f3f5fa;
  --cr-surface: #fff;
  --cr-text: var(--un-ink);
  --cr-muted: var(--un-slate);
  --cr-heading: var(--un-navy);
  --cr-line: #e1e5ef;
  --cr-control: #7b86a0;      /* 3.6:1 on white: visible input borders */
  --cr-gold-text: #7a5400;    /* gold dark enough for small text on light backgrounds */
  --cr-gold-soft: #f8f1e1;
  --cr-blue-soft: #e8eef9;
  --cr-error: #b3122e;
  --cr-ok: #1d6b43;           /* status text: 5.6:1 or more on its soft background */
  --cr-ok-soft: #e7f3ec;
  --cr-error-soft: #fbe9ec;
  --cr-radius: 14px;
  --cr-tabbar: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  /* A column as tall as the window: on short pages the footer stays at the bottom. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--cr-bg);
  color: var(--cr-text);
  font-family: var(--un-font-sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--un-blue);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--un-navy);
}

:focus-visible {
  outline: 3px solid var(--un-blue);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  color: var(--cr-heading);
  line-height: 1.2;
}

.icons {
  position: absolute;
  width: 0;
  height: 0;
}

.icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 8px 12px;
  background: #fff;
  color: var(--un-navy);
  z-index: 20;
}

.skip-link:focus {
  top: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header, navigation, footer */

.site-header {
  background: var(--un-navy);
  border-bottom: 4px solid var(--un-gold);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 16px;
}

.site-header__brand img {
  display: block;
  height: 40px;
  width: auto;
}

.site-header__event {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #dfe3f5;
  font-size: 0.8125rem;
  text-align: right;
}

.site-header__event-name {
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
}

/* Phones and tablets: a bar at the bottom, within reach of the thumb. */
body {
  padding-bottom: calc(var(--cr-tabbar) + env(safe-area-inset-bottom));
}

body.no-tabbar {
  padding-bottom: 0;
}

.tabbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px 8px env(safe-area-inset-bottom);
  border-top: 1px solid var(--cr-line);
  background: rgb(255 255 255 / 0.97);
  box-shadow: 0 -2px 10px rgb(27 32 83 / 6%);
}

.tabbar a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-height: calc(var(--cr-tabbar) - 8px);
  color: var(--cr-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.tabbar .icon {
  width: 24px;
  height: 24px;
}

.tabbar a[aria-current="page"] {
  color: var(--un-navy);
}

.tabbar a[aria-current="page"]::after {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--un-gold);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* As on booking.unisannio.it: navy band, the Ateneo's legal line, then links. */
.site-footer {
  background: var(--un-navy);
  color: rgb(255 255 255 / 0.85);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25rem;
  text-align: center;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 72rem;
  margin: 0 auto;
  padding: 28px 20px;
}

.site-footer p {
  margin: 0;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
}

/* Separators drawn by CSS, so screen readers only hear the links. */
.site-footer__links a + a::before {
  content: "|" / "";
  display: inline-block; /* not underlined with the link */
  margin-right: 16px;
  color: rgb(255 255 255 / 0.65);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer a:focus-visible {
  outline-color: #fff;
}

/* Page intro: titles in serif, as on the Ateneo's site */

.page-head {
  margin-bottom: 18px;
}

.page-title {
  margin: 0;
  font-family: var(--un-font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.page-sub {
  max-width: 46rem;
  margin: 6px 0 0;
  color: var(--cr-muted);
}

.card {
  padding: 20px;
  border: 1px solid var(--cr-line);
  border-radius: var(--cr-radius);
  background: var(--cr-surface);
  box-shadow: 0 1px 2px rgb(27 32 83 / 6%);
}

.notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--un-blue);
  border-radius: var(--cr-radius);
  background: var(--cr-blue-soft);
  color: var(--un-navy-dark);
}

.notice--warning {
  border-left-color: var(--un-gold);
  background: var(--cr-gold-soft);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.1875rem;
}

.section-head__hint {
  color: var(--cr-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1.5px solid var(--un-navy);
  border-radius: 12px;
  background: #fff;
  color: var(--un-navy);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--cr-blue-soft);
}

.button--primary {
  border-color: var(--un-navy);
  background: var(--un-navy);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 800;
}

.button--primary:hover {
  border-color: var(--un-navy-dark);
  background: var(--un-navy-dark);
}

.button--primary .icon {
  color: var(--un-gold);
}

.button[aria-busy="true"] {
  cursor: progress;
  opacity: 0.85;
}

.button--block {
  width: 100%;
  min-height: 54px;
}

.button--small {
  min-height: 40px;
  padding: 6px 14px;
  font-size: 0.875rem;
}

.button--danger {
  border-color: var(--cr-error);
  color: var(--cr-error);
}

.button--danger:hover {
  background: var(--cr-error-soft);
}

/* Profile form: one sentence to complete */

.sentence-form {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--cr-line);
  border-radius: var(--cr-radius);
  background: var(--cr-surface);
  box-shadow: 0 1px 2px rgb(27 32 83 / 6%);
}

.form-alert {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--cr-error-soft);
  color: var(--cr-error);
  font-weight: 700;
}

.sentence {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.sentence__words {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  color: var(--cr-text);
  font-size: 1.3125rem;
  font-weight: 600;
}

/* The parts to fill in: gold underline, as a highlighted word. */
.sentence select {
  width: 100%;
  min-height: 52px;
  padding: 8px 32px 8px 10px;
  border: 0;
  border-bottom: 3px solid var(--un-gold);
  border-radius: 10px 10px 0 0;
  background: var(--cr-gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a5400' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
  color: var(--un-navy);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  appearance: none;
}

.sentence--invalid select {
  border-bottom-color: var(--cr-error);
  background-color: var(--cr-error-soft);
}

.picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pick {
  position: relative;
  cursor: pointer;
}

/* The inputs stay for keyboards and screen readers; the label shows the state. */
.pick input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 8px 16px;
  border: 2px solid var(--cr-control);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
}

.pick:has(input:checked) {
  border-color: var(--un-navy);
  background: var(--un-navy);
  color: #fff;
}

.pick:has(input:checked)::before {
  content: "✓" / "";
}

.pick:has(input:focus-visible) {
  outline: 3px solid var(--un-blue);
  outline-offset: 2px;
}

.sentence--invalid .pick {
  border-color: var(--cr-error);
}

.field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field > label {
  display: block;
  margin-bottom: 8px;
  color: var(--un-navy);
  font-weight: 800;
}

.field__optional {
  color: var(--cr-muted);
  font-weight: 600;
}

.field textarea {
  width: 100%;
  min-height: 84px;
  padding: 10px 12px;
  border: 1.5px solid var(--cr-control);
  border-radius: 12px;
  background: #fff;
  color: var(--cr-text);
  font: inherit;
  resize: vertical;
}

.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 1.5px solid var(--cr-control);
  border-radius: 12px;
  background: #fff;
  color: var(--cr-text);
  font: inherit;
}

.field input[type="file"] {
  max-width: 100%;
  font: inherit;
  font-size: 0.9375rem;
}

.field input[type="file"]::file-selector-button {
  min-height: 40px;
  margin-right: 12px;
  padding: 6px 14px;
  border: 1.5px solid var(--un-navy);
  border-radius: 12px;
  background: #fff;
  color: var(--un-navy);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.field__legend {
  margin: 0 0 8px;
  padding: 0;
  color: var(--un-navy);
  font-weight: 800;
}

.field--invalid textarea,
.field--invalid input {
  border-color: var(--cr-error);
}

/* A checkbox that stays a checkbox: consent is given by ticking it. */
.field > .check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--cr-text);
  font-size: 0.9375rem;
  font-weight: 400;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--un-navy);
}

.field__help {
  margin: 6px 0 0;
  color: var(--cr-muted);
  font-size: 0.875rem;
}

.field__below {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.field__counter {
  margin: 6px 0 0;
  color: var(--cr-muted);
  font-size: 0.875rem;
  white-space: nowrap;
}

.field__error {
  margin: 8px 0 0;
  color: var(--cr-error);
  font-size: 0.9375rem;
  font-weight: 700;
}

/* Catalog */

.catalog-search {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 -16px;
  padding: 10px 16px 10px;
  border-bottom: 1px solid var(--cr-line);
  background: var(--cr-bg);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 4px 0 14px;
  border: 1.5px solid var(--cr-control);
  border-radius: 12px;
  background: #fff;
  color: var(--cr-muted);
}

.search-box input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--cr-text);
  font: inherit;
}

.search-box input:focus {
  outline: none;
}

.search-box:focus-within {
  outline: 3px solid var(--un-blue);
  outline-offset: 2px;
}

.search-box__go {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: var(--un-navy);
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
}

.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.catalog-count {
  margin: 0;
  color: var(--cr-muted);
  font-size: 0.875rem;
  font-weight: 700;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: #e3e7f1;
}

.segmented a {
  padding: 4px 12px;
  border-radius: 8px;
  color: var(--cr-muted);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.segmented a[aria-current="true"] {
  background: #fff;
  color: var(--un-navy);
  box-shadow: 0 1px 2px rgb(27 32 83 / 15%);
}

.catalog-reset {
  margin: 8px 0 0;
  font-weight: 700;
}

.company-list {
  margin: 0 -16px 20px;
  padding: 0;
  list-style: none;
  background: #fff;
}

.company-list > li {
  border-bottom: 1px solid var(--cr-line);
}

.company__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

.company__head::-webkit-details-marker {
  display: none;
}

/* Landscape: most logos are wide, up to 9:1, and a square would shrink them to a line. */
.logo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
}

img.logo {
  padding: 4px;
  border: 1px solid var(--cr-line);
  background: #fff;
}

.logo--initials {
  font-size: 0.9375rem;
  font-weight: 800;
}

.logo--tint-1 { background: var(--cr-blue-soft); color: var(--un-navy); }
.logo--tint-2 { background: var(--cr-gold-soft); color: var(--cr-gold-text); }
.logo--tint-3 { background: var(--cr-ok-soft); color: var(--cr-ok); }

.company__name {
  display: block;
  color: var(--un-navy);
  font-weight: 800;
  line-height: 1.25;
}

.company__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  margin-top: 2px;
  color: var(--cr-muted);
  font-size: 0.8125rem;
}

.company__stand {
  color: var(--cr-gold-text);
  font-weight: 800;
}

.company__seeks {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  font-size: 0.875rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.company__chevron {
  color: var(--cr-control);
  transition: transform 0.2s;
}

.company[open] .company__chevron {
  transform: rotate(90deg);
}

.company[open] .company__seeks {
  display: none; /* written in full below */
}

.company__more {
  padding: 0 16px 16px 100px;
  font-size: 0.9375rem;
}

.company__about {
  margin: 0 0 10px;
}

.company__line {
  margin: 10px 0 0;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.fact {
  padding: 2px 10px;
  border: 1.5px solid var(--cr-control);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 12px 0 0;
  font-weight: 700;
}

.links__video,
.company__video {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.links__video .icon,
.company__video .icon {
  fill: currentcolor;  /* a solid play sign */
}

.company__video {
  color: var(--un-navy);
  font-weight: 700;
}

.banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 0;
  padding: 14px 16px;
  border-radius: var(--cr-radius);
  background: var(--un-navy);
  color: #fff;
  text-decoration: none;
}

.banner:hover {
  background: var(--un-navy-dark);
  color: #fff;
}

.banner .icon {
  width: 28px;
  height: 28px;
  color: var(--un-gold);
}

.banner strong {
  display: block;
}

/* Route */

.visits {
  display: flex;
  max-width: 560px;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--cr-blue-soft);
  color: var(--un-navy-dark);
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
}

.visits[hidden] {
  display: none;
}

.visits__bar {
  display: flex;
  flex: 1;
  gap: 4px;
}

.visits__bar i {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgb(32 40 109 / 0.15);
}

.visits__bar i.on {
  background: var(--un-navy);
}

/* The stops, side by side: swipe to the next one. */
.stop-cards {
  position: relative;
  display: grid;
  grid-auto-columns: 86%;
  grid-auto-flow: column;
  gap: 12px;
  margin: 0 -16px;
  padding: 2px 16px 8px;
  list-style: none;
  overflow-x: auto;
  scroll-padding: 0 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.stop-cards::-webkit-scrollbar {
  display: none;
}

.stop-cards > li {
  display: flex;
  scroll-snap-align: start;
}

.stop-card {
  flex: 1;
  padding: 16px;
  border: 1px solid var(--cr-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 16px rgb(27 32 83 / 8%);
}

.stop-card.is-visited {
  background: #f7f9fc;
  box-shadow: none;
}

.stop-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stop-card__step {
  color: var(--cr-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stop-card.is-visited .stop-card__step::after {
  content: " · visitato";
  color: var(--cr-ok);
}

.stop-card__stand {
  margin: 8px 0 0;
  color: var(--cr-gold-text);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}

.stop-card__name {
  margin: 6px 0 0;
  font-size: 1.25rem;
}

.stop-card__match {
  margin: 10px 0 0;
  padding: 4px 10px;
  border-radius: 10px;
  background: var(--cr-blue-soft);
  color: var(--un-navy-dark);
  font-size: 0.875rem;
}

.stop-card__about {
  margin-top: 12px;
  font-size: 0.9375rem;
}

.stop-card__about summary {
  color: var(--un-blue);
  font-weight: 700;
  cursor: pointer;
}

.stop-card__about p {
  margin: 8px 0 0;
}

.stop-card__gone {
  margin: 10px 0 0;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 0;
}

.dots[hidden] {
  display: none;
}

.dots i {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: var(--cr-line);
  transition: width 0.2s;
}

.dots i.on {
  width: 20px;
  background: var(--un-navy);
}

.visit-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.visit {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--cr-line);
}

.visit__toggle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid var(--cr-control);
  border-radius: 8px;
  background: #fff;
  color: #fff;
  cursor: pointer;
}

.visit__toggle[hidden] {
  display: none;
}

.visit__toggle[aria-pressed="true"] {
  border-color: var(--cr-ok);
  background: var(--cr-ok);
}

.visit__toggle[aria-pressed="false"] .icon {
  visibility: hidden;
}

.visit__number {
  color: var(--cr-muted);
  font-weight: 800;
}

.visit__name {
  color: var(--un-navy);
  font-weight: 700;
  line-height: 1.25;
}

.visit__name small {
  display: block;
  color: var(--cr-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.visit.is-visited .visit__name {
  color: var(--cr-muted);
  text-decoration: line-through;
}

.reserves > p {
  margin: 0 0 10px;
  color: var(--cr-muted);
  font-size: 0.9375rem;
}

.reserve-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reserve {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px;
  border: 1.5px solid var(--un-gold);
  border-radius: 12px;
  background: #fff;
  font-size: 0.9375rem;
}

.reserve a {
  color: var(--cr-text);
  text-decoration: none;
}

.reserve a:hover {
  text-decoration: underline;
}

.reserve b {
  color: var(--cr-gold-text);
}

.save {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--cr-line);
  border-radius: var(--cr-radius);
  background: #fff;
}

.save__body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.save h2 {
  margin: 0 0 4px;
  font-size: 1.0625rem;
}

.save__body p {
  margin: 0 0 10px;
  color: var(--cr-muted);
  font-size: 0.875rem;
}

.save__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cr-qr {
  flex: none;
  width: 104px;
  height: 104px;
}

.save__url {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1.5px solid var(--cr-control);
  border-radius: 10px;
  background: var(--cr-bg);
  color: var(--cr-text);
  font: inherit;
  font-size: 0.875rem;
}

.save__url[hidden] {
  display: none;
}

.save__status {
  min-height: 1.4em;
  margin: 8px 0 0;
  color: var(--un-navy-dark);
  font-size: 0.875rem;
  font-weight: 700;
}

.save__more {
  margin: 4px 0 0;
  font-size: 0.9375rem;
}

/* Interviews: booked from the route, seen by the company through its link */

.booking {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--cr-line);
}

.booking form {
  margin: 0;
}

.booking__note {
  margin: 0;
  color: var(--cr-muted);
  font-size: 0.8125rem;
}

.booking__done {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--cr-ok-soft);
  color: var(--cr-ok);
  font-size: 0.9375rem;
  font-weight: 800;
}

.booking__done .icon {
  width: 18px;
  height: 18px;
}

/* Secondary: a link-looking button, the form still posts. */
.booking__cancel {
  min-height: 40px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--un-blue);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.reserve form {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.reserve__book {
  min-height: 36px;
  padding: 4px 12px;
  border: 1.5px solid var(--un-navy);
  border-radius: 10px;
  background: #fff;
  color: var(--un-navy);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}

.reserve__book:hover {
  background: var(--cr-blue-soft);
}

.reserve__booked {
  color: var(--cr-ok);
  font-size: 0.8125rem;
  font-weight: 800;
}

.reserve__booked::before {
  content: "✓ " / "";
}

.interviews > p {
  margin: 0 0 10px;
  font-size: 0.9375rem;
}

.interviews__note {
  color: var(--cr-muted);
}

.interview-list {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.interview-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--cr-line);
}

.interview-list a {
  color: var(--un-navy);
  font-weight: 700;
  text-decoration: none;
}

.interview-list b {
  color: var(--cr-gold-text);
}

/* Student's details */

.details-layout {
  max-width: 720px;
}

.details-form__pair {
  display: grid;
  gap: 18px;
}

.details-form__course {
  margin: 0;
  font-weight: 700;
}

.details-back {
  margin: 16px 0 0;
  font-weight: 700;
}

.forget {
  margin-top: 24px;
  font-size: 0.9375rem;
}

.forget summary {
  color: var(--cr-error);
  font-weight: 700;
  cursor: pointer;
}

.forget p {
  margin: 8px 0;
}

/* Company page */

.company-bookings__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 12px;
}

.company-bookings__head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.booking-list {
  margin: 0;
  padding: 0;
  border: 1px solid var(--cr-line);
  border-radius: var(--cr-radius);
  background: #fff;
  list-style: none;
}

.booking-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 14px 16px;
}

.booking-row + .booking-row {
  border-top: 1px solid var(--cr-line);
}

.booking-row__who {
  display: grid;
  min-width: 0;
}

.booking-row__who strong {
  color: var(--un-navy);
}

.booking-row__who span {
  color: var(--cr-muted);
  font-size: 0.875rem;
}

.booking-row__who a {
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.booking-row__cv {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cr-muted);
  font-size: 0.875rem;
}

/* Privacy notice: a page to read, lines kept short */

.legal {
  max-width: 46rem;
}

.legal h2 {
  margin: 28px 0 8px;
  font-size: 1.25rem;
}

.legal h3 {
  margin: 20px 0 6px;
  font-size: 1.0625rem;
}

.legal p,
.legal li {
  overflow-wrap: anywhere;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li + li {
  margin-top: 6px;
}

.legal__summary {
  padding: 4px 20px 8px;
  border-left: 4px solid var(--un-gold);
  border-radius: var(--cr-radius);
  background: var(--cr-surface);
}

.legal__summary h2 {
  margin-top: 14px;
}

/* Piazza map */

.piazza-map {
  margin-bottom: 18px;
}

.piazza {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto;
}

.piazza__walk {
  fill: var(--cr-bg);
  stroke: var(--un-gold);
  stroke-width: 2;
  stroke-dasharray: 6 5;
}

.piazza__name,
.piazza__start {
  fill: var(--cr-muted);
  font-family: var(--un-font-sans);
  font-size: 12px;
  text-anchor: middle;
}

.piazza__name {
  font-size: 15px;
  font-weight: 700;
}

.piazza__stand {
  fill: #fff;
  stroke: var(--cr-control);
  stroke-width: 1.5;
}

.piazza__stand--route {
  fill: var(--un-navy);
  stroke: var(--un-navy);
}

.piazza__stand--reserve {
  stroke: var(--un-gold-dark);
}

.piazza__pin circle {
  stroke: #fff;
  stroke-width: 2;
}

.piazza__pin text {
  font-family: var(--un-font-sans);
  font-size: 15px;
  font-weight: 700;
  text-anchor: middle;
}

.piazza__pin--shared text {
  font-size: 11px;  /* «1·2» in the same circle */
}

.piazza__pin--route circle {
  fill: var(--un-navy);
}

.piazza__pin--route text {
  fill: #fff;
}

.piazza__pin--reserve circle {
  fill: #fff;
  stroke: var(--un-gold-dark);
  stroke-width: 2.5;
}

.piazza__pin--reserve text {
  fill: var(--un-navy-dark);
}

.piazza-map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.piazza-map__legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.piazza-map__key {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 700;
}

.piazza-map__key--route {
  background: var(--un-navy);
  color: #fff;
}

.piazza-map__key--reserve {
  border: 2.5px solid var(--un-gold-dark);
  color: var(--un-navy-dark);
}

.piazza-map__key--stand {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--cr-control);
  border-radius: 3px;
}

.piazza-map__note {
  margin: 10px 0 0;
  color: var(--cr-muted);
  font-size: 0.875rem;
}

.map-back {
  font-weight: 700;
}

@media (min-width: 640px) {
  .site-footer {
    font-size: 0.875rem;
  }

  .site-footer__inner {
    padding: 32px 24px;
  }

  .site-main {
    padding-top: 32px;
  }

  .page-title {
    font-size: 2.25rem;
  }

  .sentence-form {
    padding: 28px;
  }

  .details-form__pair {
    grid-template-columns: 1fr 1fr;
  }

  .stop-cards {
    grid-auto-columns: 60%;
  }

  .company-list {
    margin-right: 0;
    margin-left: 0;
    border: 1px solid var(--cr-line);
    border-radius: var(--cr-radius);
    overflow: hidden;
  }

  .catalog-search {
    margin: 0;
    padding-right: 0;
    padding-left: 0;
  }
}

/* Desktop: the bar moves under the header, and the page uses the width by laying content
   side by side rather than by stretching lines. */
@media (min-width: 1120px) {
  body {
    padding-bottom: 0;
  }

  .tabbar {
    position: static;
    display: flex;
    justify-content: center;
    gap: 28px;
    padding: 6px 16px;
    border-top: 0;
    border-bottom: 1px solid var(--cr-line);
    background: #fff;
    box-shadow: none;
  }

  .tabbar a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 0;
    padding: 8px 2px;
    border-bottom: 3px solid transparent;
    color: var(--un-navy);
    font-size: 1rem;
  }

  .tabbar .icon {
    width: 20px;
    height: 20px;
  }

  .tabbar a[aria-current="page"] {
    border-bottom-color: var(--un-gold);
  }

  .tabbar a[aria-current="page"]::after {
    content: none;
  }

  .site-header__inner,
  .site-main {
    max-width: 1152px;
    padding-left: 24px;
    padding-right: 24px;
  }

  /* Form: the intro beside the form. */
  .profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 688px;
    gap: 48px;
    align-items: start;
  }

  .profile-layout .page-head {
    padding-top: 28px;
  }

  /* Catalog: two columns of rows. */
  .company-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1px;
    background: var(--cr-line);
  }

  .company-list > li {
    background: #fff;
  }

  /* Route: the stops two by two, and beside them the list, the reserves, the link. */
  .route-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
    align-items: start;
  }

  .route-layout__side .section-head:first-child {
    margin-top: 22px;
  }

  .stop-cards {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 2px 0 8px;
    overflow: visible;
  }

  .section-head__hint[aria-hidden="true"],
  .dots {
    display: none;
  }
}

@media (max-width: 420px) {
  .site-header__brand img {
    height: 34px;
  }

  .site-header__event {
    font-size: 0.75rem;
  }
}
