/* ChuoLink's website: CEMS's tokens and typeface (WEB-2). Two colours carry it, the ground and the
   ink; the brand yellow marks the one action that matters and the home page's opening band. Flat:
   a card is set apart by its 1px line alone (CEMS UI-5). Photographs are the only pictures. */

@font-face {
  font-family: 'Google Sans Flex';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/google-sans-flex-latin.c28f7eaefb89.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Google Sans Flex';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/google-sans-flex-latin-ext.bf8dcbb5c65e.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ground: 255 255 255;
  --ink: 13 13 13;
  --brand: 255 198 0;
  --on-brand: 13 13 13;
  --alert-ink: 179 38 30;
  --ok: 23 105 60;
  --line: rgb(var(--ink) / 0.12);
  --frame: 1080px;
  --measure: 720px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: 13 13 13;
    --ink: 249 246 224;
    --alert-ink: 240 113 104;
    --ok: 120 200 150;
    --line: rgb(var(--ink) / 0.16);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: rgb(var(--ground));
  color: rgb(var(--ink));
  font: 400 17px/1.6 'Google Sans Flex', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.wrap {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: inherit;
  text-decoration-color: rgb(var(--ink) / 0.35);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: rgb(var(--ink));
}

:focus-visible {
  outline: 2px solid rgb(var(--brand));
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgb(var(--ink));
  color: rgb(var(--ground));
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ── head and foot ── */

.head {
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.logo {
  width: 32px;
  height: 32px;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
}

.menu a {
  padding: 6px 0;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: rgb(var(--ink) / 0.72);
}

.menu a:hover,
.menu a[aria-current='page'] {
  color: rgb(var(--ink));
}

.menu a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgb(var(--brand));
  text-underline-offset: 8px;
}

@media (max-width: 759px) {
  .menu {
    width: 100%;
    gap: 0 16px;
  }

  .menu a {
    font-size: 14px;
  }
}

.foot {
  margin-top: 88px;
  padding-top: 36px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: rgb(var(--ink) / 0.68);
}

.foot p {
  margin: 4px 0 0;
}

.columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.columns div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.columns .label {
  margin: 0 0 4px;
  font-weight: 700;
  color: rgb(var(--ink));
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  color: rgb(var(--ink));
}

@media (max-width: 759px) {
  .columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── words ── */

.page {
  padding-top: 56px;
}

/* a reading page keeps its lines to a readable measure; tables, grids and photographs take the frame */
.page > :not(.scroll):not(.grid):not(.banner) {
  max-width: var(--measure);
}

h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  margin: 20px 0 0;
  font-size: 20px;
  line-height: 1.5;
  color: rgb(var(--ink) / 0.74);
}

.lead.small {
  margin-top: 12px;
  font-size: 18px;
}

.context {
  margin: 10px 0 0;
  font-size: 15px;
  color: rgb(var(--ink) / 0.66);
}

.plain {
  margin: 16px 0 0;
  color: rgb(var(--ink) / 0.78);
}

h2 {
  margin: 56px 0 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgb(var(--ink) / 0.66);
}

h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}

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

.rows li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.rows p {
  margin: 4px 0 0;
  color: rgb(var(--ink) / 0.74);
}

.numbered {
  counter-reset: step;
}

.numbered li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  counter-increment: step;
}

.numbered li::before {
  content: counter(step);
  flex: none;
  width: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgb(var(--ink) / 0.55);
}

.more {
  margin: 24px 0 0;
  font-weight: 600;
}

.facts {
  font-size: 15px;
}

.photo {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.banner {
  margin-top: 36px;
}

.action {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 32px;
  padding: 0 22px;
  border-radius: 8px;
  background: rgb(var(--brand));
  color: rgb(var(--on-brand));
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.action:hover {
  background: rgb(var(--brand) / 0.85);
}

/* ── the home page (WEB-8): one brand-yellow band, then sections ── */

.hero {
  background: rgb(var(--brand));
  color: rgb(13 13 13);
}

.hero .wrap {
  padding-top: 56px;
  padding-bottom: 56px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.section.split {
  align-items: start;
}

@media (max-width: 899px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

.kicker {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero .lead {
  color: rgb(13 13 13 / 0.82);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.actions .action {
  margin-top: 0;
}

.action.dark {
  background: rgb(13 13 13);
  color: rgb(255 198 0);
}

.action.dark:hover {
  background: rgb(13 13 13 / 0.85);
}

.action.line {
  background: transparent;
  color: rgb(13 13 13);
  border: 2px solid rgb(13 13 13);
}

.action.line:hover {
  background: rgb(13 13 13 / 0.08);
}

.section {
  margin-top: 80px;
}

.section h2,
.home .section h2 {
  margin: 0 0 24px;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgb(var(--ink));
}

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

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 899px) {
  .grid.three,
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: minmax(0, 1fr);
  }
}

.page > .grid {
  margin-top: 36px;
}

.card {
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.card p {
  margin: 8px 0 0;
  color: rgb(var(--ink) / 0.74);
}

.card .facts {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.card-title,
.home .section .card-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
  color: rgb(var(--ink));
}

.card h3 a,
.card-title a {
  text-decoration: none;
}

.card h3 a:hover,
.card-title a:hover {
  text-decoration: underline;
}

.steps {
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 46px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgb(var(--brand));
  color: rgb(var(--on-brand));
  font-size: 15px;
  font-weight: 700;
}

.steps.rows li {
  padding-top: 18px;
}

.steps.rows li::before {
  top: 18px;
}

.steps p {
  margin: 6px 0 0;
  color: rgb(var(--ink) / 0.74);
}

.quotes blockquote {
  margin: 0;
}

.quotes blockquote p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

.quotes.grid li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.who img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.who p {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: rgb(var(--ink) / 0.74);
}

.who strong {
  color: rgb(var(--ink));
}

.team {
  margin-top: 20px;
}

.team li {
  margin: 0;
}

.team img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
}

.team h3 {
  margin-top: 12px;
  font-size: 17px;
}

.team p {
  margin: 2px 0 0;
  font-size: 15px;
  color: rgb(var(--ink) / 0.7);
}

@media (max-width: 599px) {
  .page > .team.grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

.answers section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.answers h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
  color: rgb(var(--ink));
}

.answers p {
  margin: 6px 0 0;
  color: rgb(var(--ink) / 0.78);
}

.wide-card p a {
  font-weight: 600;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 160px;
  min-height: 56px;
  padding: 6px 20px;
  border-radius: 10px;
  background: rgb(var(--ink));
  color: rgb(var(--ground));
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.store span {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
}

.store:hover {
  background: rgb(var(--ink) / 0.85);
}

/* ── the legal texts ── */

.document h3 {
  margin-top: 36px;
}

.document p {
  margin: 10px 0 0;
  color: rgb(var(--ink) / 0.8);
}

/* ── the form: one field per row, top-down (CEMS UI-27) ── */

form {
  margin-top: 8px;
}

.field {
  margin-top: 20px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgb(var(--ink) / 0.66);
}

input,
select,
textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgb(var(--ink) / 0.18);
  border-radius: 8px;
  background: rgb(var(--ground));
  color: rgb(var(--ink));
  font: inherit;
  font-size: 16px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgb(var(--brand));
  outline: none;
}

.error {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgb(var(--alert-ink));
}

.sent {
  margin: 24px 0 0;
  font-weight: 600;
  color: rgb(var(--ok));
}

/* ── NECTA results (WEB-7): find a school, read its candidates ── */

.crumbs {
  margin: 0 0 14px;
  font-size: 14px;
  color: rgb(var(--ink) / 0.66);
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: rgb(var(--ink));
}

.search {
  display: flex;
  gap: 8px;
}

.search input {
  flex: 1;
  min-width: 0;
}

.search .action {
  flex: none;
  margin-top: 0;
}

.letters {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 20px;
}

.letters a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: rgb(var(--ink) / 0.66);
}

.letters a:hover,
.letters a[aria-current='page'] {
  background: rgb(var(--ink) / 0.08);
  color: rgb(var(--ink));
}

.scroll {
  overflow-x: auto;
}

.scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.scroll th,
.scroll td {
  padding: 9px 14px 9px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.scroll thead th {
  font-size: 13px;
  font-weight: 600;
  color: rgb(var(--ink) / 0.66);
}

.scroll tbody th {
  font-weight: 600;
}

.candidates td:first-child {
  white-space: nowrap;
}

.candidates td:last-child {
  color: rgb(var(--ink) / 0.74);
}

.candidates tr:target {
  background: rgb(var(--brand) / 0.2);
}

.pairs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* Never seen by people; a robot that fills it is thanked and ignored. */
.hold {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
