/* Shared visual language from Project Robin's DESIGN.md, brand.css and admin shell. */
:root {
  --ink-50: #f6f3e0;
  --ink-200: #dfded2;
  --ink-300: #c3c5c1;
  --ink-600: #4e5979;
  --ink-700: #3c486d;
  --on-muted: #c9cbc4;
  --control-radius: .625rem;
  --card-radius: 1rem;
}

body { background: var(--cream); }

/* The login follows the common Robin postcard layout. */
.robin-login {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.5rem;
  padding: 2.5rem 1.5rem;
  background: var(--cream);
}
.robin-login-wordmark {
  justify-self: center;
  width: min(62rem, 100%);
  max-width: 62rem;
  height: 44px;
  object-fit: contain;
  object-position: left center;
}
.robin-postcard {
  width: min(62rem, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--paper);
  overflow: hidden;
}
.robin-postcard-message {
  position: relative;
  padding: 3rem 3rem 2.75rem;
}
.robin-postcard-message::after {
  content: "";
  position: absolute;
  top: 2.5rem;
  bottom: 2.5rem;
  right: 0;
  border-right: 1px solid var(--line);
}
.robin-postcard-label {
  margin: 0 0 1.2rem;
  color: var(--ink-600);
  font: 400 1rem var(--subtitle);
}
.robin-postcard-message h1 {
  margin: 0 0 1rem;
  color: var(--navy);
  font: 600 clamp(3rem, 5vw, 4rem)/.95 var(--display);
  letter-spacing: .005em;
}
.robin-postcard-lead {
  max-width: 26ch;
  margin: 0;
  color: var(--ink-600);
  font: 400 1.25rem/1.35 var(--subtitle);
}
.robin-postcard-feature {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: 2.25rem;
  color: var(--ink-600);
  font-size: .875rem;
  line-height: 1.4;
}
.robin-postcard-feature img { flex: 0 0 3.5rem; width: 3.5rem; height: 3.5rem; }
.robin-postcard-feature strong {
  display: block;
  color: var(--navy);
  font: 500 1.15rem/1.1 var(--display);
}
.robin-postcard-address {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 9.5rem 3rem 2.75rem;
}
.robin-postcard-address h2 { margin: 0; font: 600 1.4rem var(--display); }
.robin-postcard-stamp {
  position: absolute;
  top: 2.25rem;
  right: 2.5rem;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .3rem;
  width: 6.75rem;
  height: 8rem;
  transform: rotate(3deg);
  background: radial-gradient(circle,var(--paper) 3px,transparent 3.5px) 0 -5px/10px 10px repeat-x,
              radial-gradient(circle,var(--paper) 3px,transparent 3.5px) 0 calc(100% + 5px)/10px 10px repeat-x,
              radial-gradient(circle,var(--paper) 3px,transparent 3.5px) -5px 0/10px 10px repeat-y,
              radial-gradient(circle,var(--paper) 3px,transparent 3.5px) calc(100% + 5px) 0/10px 10px repeat-y,
              var(--orange);
}
.robin-postcard-stamp::after { content: ""; position: absolute; inset: 9px; border: 1px solid var(--navy); opacity: .35; pointer-events: none; }
.robin-postcard-stamp img { width: 4.6rem; height: 4.6rem; }
.robin-postcard-stamp span { color: var(--navy); font-size: .6875rem; font-weight: 600; }
.robin-postcard-address .login-language { top: 2.25rem; left: 3rem; right: auto; }
.robin-postcard-address .form { gap: 1.25rem; }
.robin-postcard-address .field { gap: .15rem; }
.robin-postcard-address .field span { color: var(--ink-600); font: 400 .95rem var(--subtitle); }
.robin-postcard-address .field input {
  height: 2.7rem;
  padding: .55rem 0;
  border: 0;
  border-bottom: 1.5px solid var(--ink-300);
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  font: 400 1.0625rem var(--text);
}
.robin-postcard-address .field input:focus { outline: 0; border-bottom-color: var(--navy); box-shadow: 0 1.5px 0 var(--navy); }
.robin-postcard-address .form .btn { min-height: 3rem; margin-top: .35rem; border-radius: var(--control-radius); font-size: 1rem; }

/* Match the platform's header, navigation and account stamp. */
.sidebar-brand { gap: .75rem; padding: 0 1.25rem; }
.sidebar-brand img { width: 78px; height: 40px; object-fit: contain; }
.sidebar-brand span { padding-left: .75rem; border-left: 1px solid var(--line); color: var(--navy); font: 400 .95rem/1.1 var(--subtitle); }
.identity { min-height: 4.75rem; margin: 1.25rem 1rem 1rem; padding: .9rem 1.1rem; }
.identity strong { font-size: 1.15rem; }
.identity small { color: var(--ink-600); font-size: .85rem; }
.nav { gap: .15rem; padding: 0 .75rem; }
.nav button { height: 2.6rem; padding: 0 .9rem; color: var(--on-muted); font-size: .9375rem; font-weight: 500; }
.nav button.active { background: rgba(254,251,229,.1); box-shadow: none; font-weight: 600; }
.sidebar-foot {
  display: grid;
  justify-items: center;
  gap: .35rem;
  margin: auto 1rem 1rem;
  padding: .75rem 1rem 1rem;
  border-radius: var(--card-radius);
  background: var(--paper);
  color: var(--navy);
  text-align: center;
}
.sidebar-foot img { width: 5.25rem; height: 5.25rem; object-fit: contain; }
.sidebar-foot strong { font: 600 1.2rem/1.1 var(--display); }
.sidebar-foot span { color: var(--ink-600); font-size: .8125rem; }
.sidebar-foot button { margin-top: .35rem; color: var(--navy); font-size: .8125rem; font-weight: 600; }
.topbar { padding: 0 1.75rem; }
.topbar-title { position: relative; display: flex; align-items: center; align-self: stretch; font-size: 1rem; }
.topbar-title::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 4px; border-radius: 4px 4px 0 0; background: var(--orange); }
.topbar-user { font-size: .875rem; }
.robin-language { position: relative; display: inline-flex; align-items: center; }
.robin-language select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 5.25rem;
  height: 2.5rem;
  padding: 0 2rem 0 .9rem;
  border: 1px solid var(--navy);
  border-radius: var(--control-radius);
  background: var(--paper);
  box-shadow: inset 3px 0 0 var(--orange);
  color: var(--navy);
  font: 600 .875rem var(--display);
  letter-spacing: .06em;
  cursor: pointer;
}
.robin-language::after {
  content: "";
  position: absolute;
  right: .85rem;
  top: 50%;
  width: .4rem;
  height: .4rem;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.robin-language select:hover { background: var(--soft); }
.robin-language select:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.role-chip { background: #fae9c0; color: var(--navy); font-weight: 600; }
.logout-mobile { display: none; border: 0; background: none; color: var(--navy); font: 600 .875rem var(--text); text-decoration: underline; cursor: pointer; }

/* Flat paper surfaces and the same type scale as the other portals. */
.main { padding: 2.25rem 2.5rem 5rem; padding-top: calc(76px + 2.25rem); }
.page-head,.content { max-width: 90rem; }
.page-head { margin-bottom: 1.75rem; }
.page-head p { color: var(--ink-600); font-size: 1rem; }
.page-head h1 { font: 600 2.5rem/1.05 var(--display); letter-spacing: .005em; }
.search,.share-row input { border-radius: var(--control-radius); background: var(--paper); }
.search:focus,.share-row input:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(45,58,100,.12); }
.manifest { gap: 1rem; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.passengers,.dossier,.applications,.share { min-width: 0; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--paper); box-shadow: none; }
.passengers,.dossier { overflow: hidden; }
.passengers { border-right: 1px solid var(--line); }
.manifest-head { color: var(--ink-600); }
.passenger.active { background: #fae9c0; }
.passenger.demo { border-left: 3px solid var(--orange); }
.passenger.demo small { color: var(--ink-600); font-size: .68rem; font-weight: 700; letter-spacing: .06em; }
.demo-banner { margin: 1.25rem 1.25rem 0; padding: .75rem 1rem; border: 1px solid var(--orange); border-radius: var(--control-radius); background: #fff6de; color: var(--navy); font: 600 .82rem/1.4 var(--text); }
.score-stamp { border-color: var(--ink-300); }
.fact { min-width: 0; }
.fact strong { font-weight: 600; }
.rec { background: var(--paper); border-radius: var(--control-radius); }
.rec-rank { background: var(--orange); color: var(--navy); }
.rec.locked { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; text-align: left; cursor: pointer; }
.rec.locked .rec-lock { position: static; display: inline-block; padding: 6px 10px; border-radius: 999px; background: var(--navy); color: var(--on); white-space: nowrap; }
.share { background: var(--paper); border-style: solid; }
.share h3 { font-size: 1.15rem; }
.applications th { background: var(--ink-50); }
.btn { border-radius: var(--control-radius); }
.btn:focus-visible,.nav button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

@media (max-height: 820px) and (min-width: 761px) {
  .sidebar-foot { display: none; }
}
@media (max-width: 1100px) {
  .manifest { grid-template-columns: minmax(260px,.7fr) minmax(0,1.3fr); }
}
@media (max-width: 820px) {
  .robin-login { align-content: start; padding: 1.5rem 1rem; }
  .robin-postcard { grid-template-columns: 1fr; }
  .robin-postcard-message { padding: 2rem 1.5rem 1.75rem; }
  .robin-postcard-message::after { top: auto; right: 1.5rem; bottom: 0; left: 1.5rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .robin-postcard-message h1 { font-size: 3rem; }
  .robin-postcard-feature { margin-top: 1.5rem; }
  .robin-postcard-address { padding: 7.5rem 1.5rem 2rem; }
  .robin-postcard-stamp { top: 1.5rem; right: 1.5rem; width: 5.25rem; height: 6.25rem; }
  .robin-postcard-stamp img { width: 3.4rem; height: 3.4rem; }
  .robin-postcard-address .login-language { top: 1.5rem; left: 1.5rem; }
}
@media (max-width: 760px) {
  .sidebar-brand { display: flex; min-height: 56px; padding: .5rem 1rem 0; }
  .sidebar-brand img { width: 64px; height: 34px; }
  .identity { min-height: 0; margin: .5rem 1rem; padding: .5rem .75rem; }
  .sidebar-foot { display: none; }
  .topbar { padding: 0 1rem; }
  .topbar-title { display: none; }
  .logout-mobile { display: inline-block; margin-left: auto; }
  .main { padding: 1.5rem 1rem 4rem; }
  .page-head h1 { font-size: 2rem; }
  .manifest { grid-template-columns: 1fr; }
  .passengers { max-height: 340px; border-bottom: 1px solid var(--line); }
}

/* First visit guide for school administrators. */
.tour-backdrop { position: fixed; z-index: 50; inset: 0; background: rgba(20, 29, 55, .68); }
.tour-focus { position: relative; z-index: 51; pointer-events: none; scroll-margin-top: 6.25rem; outline: 4px solid var(--orange); outline-offset: -4px; box-shadow: 0 18px 45px rgba(16, 24, 48, .22); }
.tour-panel {
  position: fixed; z-index: 52; right: 1.5rem; bottom: 1.5rem;
  width: min(26rem, calc(100vw - 3rem)); max-height: calc(100dvh - 3rem); overflow-y: auto;
  padding: 1.5rem; border: 1px solid var(--navy); border-radius: var(--card-radius);
  background: var(--paper); color: var(--navy);
  box-shadow: 0 24px 70px rgba(13, 25, 55, .3);
}
.tour-panel[data-step="2"] { right: auto; left: calc(264px + 1.5rem); }
.tour-route { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .75rem; border-bottom: 2px solid var(--orange); color: var(--ink-600); font: 700 .75rem var(--text); letter-spacing: .1em; }
.tour-route span:first-child { color: var(--navy); }
.tour-panel h2 { margin: 1.25rem 0 .65rem; font: 600 2rem/1.05 var(--display); }
.tour-panel p { margin: 0; color: var(--ink-600); font: 400 .95rem/1.55 var(--text); }
.tour-examples { margin-top: 1.2rem; }
.tour-examples > span { display: block; margin-bottom: .5rem; color: var(--ink-600); font: 700 .72rem var(--text); letter-spacing: .07em; text-transform: uppercase; }
.tour-examples > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.tour-examples button { min-height: 2.5rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--paper); color: var(--navy); font: 600 .86rem var(--text); cursor: pointer; }
.tour-examples button[aria-pressed="true"] { border-color: var(--navy); background: #fae9c0; }
.tour-examples button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.tour-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: 1.5rem 0; }
.tour-progress span { height: .3rem; border-radius: 999px; background: var(--line); }
.tour-progress span.done { background: var(--orange); }
.tour-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.tour-buttons button { min-height: 2.5rem; padding: 0 .7rem; border: 0; border-radius: var(--control-radius); background: transparent; color: var(--navy); font: 600 .85rem var(--text); cursor: pointer; }
.tour-buttons .tour-skip { margin-right: auto; color: var(--ink-600); text-decoration: underline; text-underline-offset: .15rem; }
.tour-buttons .tour-next { min-height: 2.5rem; padding: 0 1rem; background: var(--navy); color: var(--on); }
.tour-buttons button:disabled { opacity: .55; cursor: wait; }
.tour-buttons button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (max-width: 760px) {
  .tour-focus { scroll-margin-top: 19rem; }
  .tour-panel,.tour-panel[data-step="2"] { top: .75rem; right: .75rem; bottom: auto; left: .75rem; width: auto; max-height: min(50dvh, 23rem); padding: 1.1rem; }
  .tour-panel h2 { font-size: 1.65rem; }
  .tour-progress { margin: 1rem 0; }
}
