/* /tutoring/ — the tutoring flyer as a page (src/tutoring/tutoring-index.njk).
   The flyer's own palette, sampled from it; nothing here touches the reading
   pages. Sizes ride the site's design pixel (--s) and the sheet's own width
   (container queries), so the same sheet holds on a phone and beside the rail. */
.tu {
  --tu-mint: #cce9d5; /* the portrait JPEG's background, so its edges vanish */
  --tu-deep: #0c3226;
  --tu-leaf: #0f6b45;
  --tu-cream: #fbf6ea;
  --tu-coral: #ff6b45;
  --tu-line: rgb(251 246 234 / 0.28);
  --tu-sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --tu-serif: "Instrument Serif", "Source Serif 4", Georgia, serif;
  --u: var(--s, 1px);
  --pad: clamp(20px, 6cqw, calc(56 * var(--u)));
  container-type: inline-size;
  max-width: calc(940 * var(--u));
  font-family: var(--tu-sans);
  font-size: calc(17 * var(--u));
  line-height: 1.4;
  color: var(--tu-deep);
  border-radius: calc(10 * var(--u));
  overflow: hidden;
}
:where(.tu) :where(p, h1, h2, ul, dl, dd) {
  margin: 0;
  padding: 0;
}
:where(.tu) ul {
  list-style: none;
}
.tu em {
  font-family: var(--tu-serif);
  font-style: italic;
  font-weight: 400;
}

/* ---- Hero ---------------------------------------------------------------- */
.tu-hero {
  background: var(--tu-mint);
  padding: var(--pad) var(--pad) 0;
}
.tu-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: calc(6 * var(--u)) calc(24 * var(--u));
}
.tu-kicker {
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tu-dot {
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-right: 0.7em;
  border-radius: 50%;
  background: var(--tu-coral);
}
.tu-hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: end;
}
.tu-hero-text {
  /* The headline runs over the photo's empty mint, as on the flyer. */
  position: relative;
  z-index: 1;
  margin-right: -14cqw;
  padding: calc(28 * var(--u)) 0 calc(36 * var(--u));
}
.tu-title {
  font-size: clamp(46px, 10.4cqw, calc(98 * var(--u)));
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 6.2em;
}
.tu-title em {
  display: block;
  font-size: 1.2em;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--tu-leaf);
}
.tu-lede {
  margin-top: calc(26 * var(--u));
  max-width: 21em;
  font-size: calc(19 * var(--u));
}
.tu-with {
  margin-top: calc(22 * var(--u));
  font-family: var(--tu-serif);
  font-size: calc(42 * var(--u));
  line-height: 1.1;
}
.tu-cred {
  margin-top: calc(8 * var(--u));
}
.tu-photo {
  display: block;
  width: calc(100% + var(--pad));
  max-width: none;
  height: auto;
  margin-right: calc(-1 * var(--pad));
  align-self: end;
}

/* ---- Three ways in ------------------------------------------------------- */
.tu-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(20 * var(--u)) calc(28 * var(--u));
  padding: calc(26 * var(--u)) var(--pad) calc(28 * var(--u));
  background: var(--tu-cream);
}
.tu-tiers li {
  display: flex;
  gap: calc(12 * var(--u));
  align-items: flex-start;
}
.tu-bars {
  flex: none;
  width: calc(34 * var(--u));
  height: calc(30 * var(--u));
  margin-top: calc(2 * var(--u));
  fill: #f6d3c3;
}
.tu-bars .on {
  fill: var(--tu-coral);
}
.tu-tiers h2 {
  font-size: calc(20 * var(--u));
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.tu-tiers p {
  margin-top: calc(4 * var(--u));
  color: #2f5245;
}

/* ---- The record, the logistics, the price -------------------------------- */
.tu-dark {
  background: var(--tu-deep);
  color: var(--tu-cream);
  padding: calc(34 * var(--u)) var(--pad) calc(28 * var(--u));
}
/* The rules between cells are the grid's own gaps showing a line colour
   through, so they stay right at any column count. */
.tu-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--tu-line);
}
.tu-stats > li {
  background: var(--tu-deep);
  padding: calc(4 * var(--u)) calc(20 * var(--u)) calc(26 * var(--u));
}
.tu-stats > li:nth-child(n + 4) {
  padding-top: calc(26 * var(--u));
  padding-bottom: calc(4 * var(--u));
}
.tu-stats > li:nth-child(3n + 1) {
  padding-left: 0;
}
.tu-stats > li {
  color: #d5e6dc;
}
.tu-stats strong {
  display: block;
  margin: 0 0 calc(4 * var(--u));
  font-size: clamp(24px, 3.6cqw, calc(32 * var(--u)));
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}
.tu-facts {
  display: flex;
  flex-wrap: wrap;
  gap: calc(8 * var(--u)) calc(16 * var(--u));
  margin-top: calc(30 * var(--u));
}
/* A coral dot between the three, as on the flyer; none once they stack. */
.tu-facts li + li::before {
  content: "•";
  margin-right: calc(16 * var(--u));
  color: var(--tu-coral);
}

.tu-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: calc(18 * var(--u)) calc(28 * var(--u));
  margin-top: calc(40 * var(--u));
  padding: calc(18 * var(--u)) calc(28 * var(--u)) calc(20 * var(--u));
  border-radius: calc(14 * var(--u));
  background: var(--tu-coral);
  color: var(--tu-deep);
}
.tu-prices {
  display: flex;
}
.tu-prices li {
  font-weight: 700;
  line-height: 1.2;
  padding-right: calc(24 * var(--u));
}
.tu-prices li + li {
  padding-left: calc(24 * var(--u));
  border-left: 1px solid rgb(12 50 38 / 0.45);
}
.tu-price {
  display: block;
  font-family: var(--tu-serif);
  font-weight: 400;
  font-size: calc(50 * var(--u));
  line-height: 1;
  margin-bottom: calc(6 * var(--u));
}
.tu-price small {
  font-size: 0.42em;
  font-style: italic;
  margin-left: 0.15em;
}
.tu-text {
  display: block;
  margin-left: auto;
  text-align: right;
  color: inherit;
  text-decoration: none;
}
.tu-text-note {
  display: block;
  font-weight: 700;
}
.tu-text-num {
  display: block;
  font-size: clamp(27px, 4.4cqw, calc(36 * var(--u)));
  letter-spacing: -0.03em;
  line-height: 1.15;
  white-space: nowrap;
}
.tu-text-num strong {
  font-weight: 700;
}
.tu-text:hover .tu-text-num,
.tu-text:focus-visible .tu-text-num {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.12em;
}
.tu .tu-text:focus-visible {
  outline: 2px solid var(--tu-deep);
  outline-offset: 4px;
}
.tu-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(4 * var(--u)) calc(12 * var(--u));
  margin-top: calc(24 * var(--u));
  color: #d5e6dc;
}
.tu-foot a {
  color: inherit;
  text-decoration: none;
}
.tu-foot a:hover {
  text-decoration: underline;
}
.tu .tu-foot a:focus-visible {
  outline-color: var(--tu-cream);
}

/* ---- Sign up ------------------------------------------------------------- */
.tu-signup {
  background: var(--tu-cream);
  padding: calc(36 * var(--u)) var(--pad) calc(44 * var(--u));
}
.tu-signup-title {
  font-size: clamp(34px, 6cqw, calc(48 * var(--u)));
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.tu-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(18 * var(--u)) calc(20 * var(--u));
  margin-top: calc(22 * var(--u));
}
.tu-field {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.tu-field-wide {
  grid-column: 1 / -1;
}
.tu-field > span,
.tu-days legend {
  display: block;
  padding: 0;
  margin-bottom: calc(6 * var(--u));
  font-weight: 700;
}
/* 16px at the least: under it, iOS zooms the page into a focused field. */
.tu-field input[type="text"],
.tu-field input[type="tel"],
.tu-field select {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: calc(48 * var(--u));
  padding: 0 calc(14 * var(--u));
  font: inherit;
  font-size: max(16px, calc(17 * var(--u)));
  color: var(--tu-deep);
  background: #fff;
  border: 1.5px solid rgb(12 50 38 / 0.4);
  border-radius: calc(10 * var(--u));
  appearance: none;
  -webkit-appearance: none;
}
.tu-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230c3226' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right calc(14 * var(--u)) center;
  background-size: calc(12 * var(--u)) auto;
}
.tu .tu-field input:focus-visible,
.tu .tu-field select:focus-visible {
  outline: 2px solid var(--tu-leaf);
  outline-offset: 1px;
  border-color: var(--tu-leaf);
}
.tu-day-row {
  display: flex;
  flex-wrap: wrap;
  gap: calc(8 * var(--u));
}
.tu-day {
  position: relative;
  cursor: pointer;
}
.tu-day input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.tu-day span {
  display: block;
  min-width: calc(58 * var(--u));
  padding: calc(11 * var(--u)) calc(10 * var(--u));
  text-align: center;
  font-weight: 600;
  background: #fff;
  border: 1.5px solid rgb(12 50 38 / 0.4);
  border-radius: calc(10 * var(--u));
}
.tu-day input:checked + span {
  background: var(--tu-deep);
  border-color: var(--tu-deep);
  color: var(--tu-cream);
}
.tu-day input:focus-visible + span {
  outline: 2px solid var(--tu-leaf);
  outline-offset: 2px;
}
.tu-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.tu-form-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(10 * var(--u)) calc(18 * var(--u));
  margin-top: calc(6 * var(--u));
}
.tu-submit {
  font: inherit;
  font-size: calc(19 * var(--u));
  font-weight: 700;
  color: var(--tu-deep);
  background: var(--tu-coral);
  border: 0;
  border-radius: calc(12 * var(--u));
  padding: calc(13 * var(--u)) calc(30 * var(--u));
  cursor: pointer;
}
.tu-submit:hover {
  background: #ff7d5b;
}
.tu-submit:disabled {
  opacity: 0.6;
  cursor: default;
}
.tu .tu-submit:focus-visible {
  outline: 2px solid var(--tu-deep);
  outline-offset: 3px;
}
.tu-form-status.bad {
  color: #a3260a;
  font-weight: 600;
}
.tu-form-done {
  margin-top: calc(18 * var(--u));
  font-size: calc(21 * var(--u));
  font-weight: 600;
}
.tu .tu-form-done:focus {
  outline: none;
}
.tu-form[hidden],
.tu-form-done[hidden] {
  display: none;
}

/* The coral bar holds one row only on a wide sheet; under that the number
   takes its own line beneath the prices. */
@container (max-width: 900px) {
  .tu-text {
    margin-left: 0;
    text-align: left;
    width: 100%;
    padding-top: calc(16 * var(--u));
    border-top: 1px solid rgb(12 50 38 / 0.45);
  }
}

/* ---- Narrow sheet: a phone, or a slim window beside the rail -------------- */
@container (max-width: 700px) {
  .tu-tiers {
    grid-template-columns: 1fr;
  }
  .tu-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tu-stats > li,
  .tu-stats > li:nth-child(n + 4) {
    padding: calc(18 * var(--u)) calc(16 * var(--u));
  }
  .tu-stats > li:nth-child(3n + 1) {
    padding-left: calc(16 * var(--u));
  }
  .tu-stats > li:nth-child(odd) {
    padding-left: 0;
  }
  .tu-stats > li:nth-child(-n + 2) {
    padding-top: 0;
  }
  .tu-stats > li:nth-last-child(-n + 2) {
    padding-bottom: 0;
  }
  .tu-facts {
    flex-direction: column;
  }
  .tu-facts li + li::before {
    content: none;
  }
}
@container (max-width: 560px) {
  .tu-hero-body {
    grid-template-columns: 1fr;
  }
  .tu-hero-text {
    margin-right: 0;
    padding-bottom: 0;
  }
  .tu-title {
    font-size: clamp(46px, 16.5cqw, 92px);
  }
  .tu-photo {
    width: 86%;
    margin: calc(4 * var(--u)) calc(-1 * var(--pad)) 0 auto;
  }
  .tu-cta {
    padding: calc(18 * var(--u)) calc(20 * var(--u)) calc(20 * var(--u));
  }
  .tu-foot {
    flex-direction: column;
    align-items: center;
  }
  .tu-foot span {
    display: none;
  }
  .tu-form {
    grid-template-columns: 1fr;
  }
  .tu-day-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .tu-day span {
    min-width: 0;
  }
  .tu-submit {
    width: 100%;
  }
  .tu-price {
    font-size: calc(44 * var(--u));
  }
}
/* On a phone the sheet runs edge to edge under the bar. */
@media (max-width: 599.98px) {
  .tu {
    margin: calc(-28 * var(--u)) calc(-1 * var(--content-pad)) calc(-48 * var(--u));
    border-radius: 0;
  }
}
@media print {
  .tu {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
