/* Students home (/students/), minimal (owner, 2026-11-19): the tutors page's design language.
   The page reuses css/tutors.css (.tu, tu-*) and css/aichat.css (.aic); this file holds only the
   students page's own parts, scoped under .st and prefixed st-. Logical properties only.
   No tinted pills: labels are plain text; the gold corner ribbon is the one beta marker.
   Text inside the mock screens is 14px or more. */

/* Hero: the words centred, then the study view, wide */
.st-hero { padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.st-hero-text { max-width: 780px; margin-inline: auto; text-align: center; }
.st .st-hero-text .tu-lead { margin-inline: auto; max-width: 600px; }
.st-hero-text .tu-cta { justify-content: center; }
.st .st-btn-quiet { background: #fff; color: var(--ink); border: 1px solid var(--tu-line2); }
.st .st-btn-quiet:hover { border-color: var(--tu-p); color: var(--tu-p); }
.st-sv-frame { max-width: 1152px; margin: clamp(36px, 5vw, 56px) auto 0; }

/* The study view: Book, Lecture and Questions panes. One grid with three shared rows, so the
   linked item of each pane (row 2) lines up and the gold joins meet. */
.st-sv { --gap: 40px; position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--gap); padding: 20px; background: #f3f3f1; color: var(--ink); font-size: 15px; line-height: 1.5; }
.st-sv-bg { grid-row: 1 / 4; background: #fff; border: 1px solid var(--tu-line); border-radius: 16px; }
.st-sv-bgb { grid-column: 1; } .st-sv-bgl { grid-column: 2; } .st-sv-bgq { grid-column: 3; }
.st-c { position: relative; z-index: 1; padding-inline: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.st-b1, .st-l1, .st-q1 { grid-row: 1; padding-block: 16px 14px; }
.st-b2, .st-l2, .st-q2 { grid-row: 2; }
.st-b3, .st-l3, .st-q3 { grid-row: 3; padding-block: 14px 18px; }
.st-b1, .st-b2, .st-b3 { grid-column: 1; }
.st-l1, .st-l2, .st-l3 { grid-column: 2; }
.st-q1, .st-q2, .st-q3 { grid-column: 3; }
.st-linked { align-self: center; margin-inline: 12px; padding: 12px 14px; background: #fffbea; border: 2px solid var(--tu-gold); border-radius: 14px; }
.st-join { grid-row: 2; align-self: center; z-index: 2; justify-self: start; width: calc(var(--gap) + 24px); margin-inline-start: calc(-1 * var(--gap) - 12px); height: 3px; background: var(--tu-gold); position: relative; }
.st-join::before, .st-join::after { content: ""; position: absolute; inset-block-start: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--tu-gold); box-shadow: 0 0 0 3px #fff; }
.st-join::before { inset-inline-start: -5px; } .st-join::after { inset-inline-end: -5px; }
.st-join1 { grid-column: 2; } .st-join2 { grid-column: 3; }

.st .st-pane-k { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--ink); padding-block-end: 10px; border-block-end: 1px solid var(--tu-line); }
.st-pane-k svg, .st-tiles svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--tu-p); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.st-pane-k span { margin-inline-start: auto; font-size: 14px; font-weight: 600; color: var(--tu-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.st .st-book-h { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.st .st-book-p { font-family: ui-serif, Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.55; color: #2b2a27; }
.st-book-p mark { background: #f6dd7d; color: inherit; padding: 1px 2px; border-radius: 3px; }
.st-linked .st-book-p { margin: 0; }
.st-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.st-tiles span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--tu-line-p); border-radius: 9px; background: #fff; font-size: 14px; font-weight: 700; color: var(--tu-p); }
.st-cell { direction: ltr; display: block; width: 100%; max-width: 320px; height: auto; margin-block-start: 6px; }
.st-cell text { font: 600 14px/1 Manrope, system-ui, sans-serif; fill: #45443f; }
.st-cell .st-cell-hl { fill: #8a6500; font-weight: 800; }
.st-cell-wall { fill: #eef5e4; stroke: #5d8f4a; stroke-width: 4; }
.st-cell-mem { fill: #f7fbf2; stroke: #d9a400; stroke-width: 3; }
.st-cell-vac { fill: #dcebf7; stroke: #9bbfdc; stroke-width: 1.5; }
.st-cell-nuc { fill: #cdbbe6; stroke: #8e74b8; stroke-width: 1.5; }
.st-cell-chl { fill: #78b05f; }
.st-cell-ln { stroke: #9a9a94; stroke-width: 1.5; fill: none; }
.st-cell-ln-hl { stroke: #d9a400; stroke-width: 2; }

.st-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; background: #1d1b22; overflow: hidden; }
.st-video-art { position: absolute; inset: 8% 10% 22%; width: 80%; height: 70%; fill: none; stroke: rgb(255 255 255 / .5); stroke-width: 2.5; stroke-linecap: round; }
.st-play { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; translate: -50% -50%; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgb(255 255 255 / .2); backdrop-filter: blur(4px); }
[dir="rtl"] .st-play { translate: 50% -50%; }
.st-play svg { width: 24px; height: 24px; fill: #fff; margin-inline-start: 3px; }
.st-scrub { position: absolute; inset-inline: 12px; inset-block-end: 34px; height: 4px; border-radius: 2px; background: rgb(255 255 255 / .3); }
.st-scrub i { display: block; width: 13%; height: 100%; border-radius: 2px; background: var(--tu-gold); }
.st-time { position: absolute; inset-inline-start: 12px; inset-block-end: 8px; font-size: 14px; font-weight: 700; color: #fff; }
.st-clip b { display: block; font-size: 15px; font-weight: 700; }
.st-clip small { display: block; font-size: 14px; color: var(--tu-text); }
.st-l3 .st-clip { padding-block: 10px; border-block-start: 1px solid var(--tu-line); }
.st-l3 .st-clip b { font-weight: 600; color: var(--tu-text); }
.st .st-small-k { font-size: 14px; font-weight: 700; color: var(--tu-muted); }
.st .tu-q-src { font-size: 14px; }
.st .st-right { font-size: 15px; font-weight: 700; color: #23563a; }
.st-opts { margin-block-start: 4px; }

.st-legend { list-style: none; margin: 32px auto 0; padding: 0; max-width: 1152px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; }
.st-legend li { font-size: 17px; line-height: 1.5; color: var(--tu-text); padding-block-start: 14px; border-block-start: 3px solid var(--tu-gold); }
.st-legend b { color: var(--ink); }
.st .st-legend-more { text-align: center; }

@media (max-width: 900px) {
  .st-sv { --gap: 0px; grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .st-sv-bgb, .st-sv-bgl, .st-sv-bgq { grid-column: 1; }
  .st-sv-bgb { grid-row: 1 / 4; } .st-sv-bgl { grid-row: 5 / 8; } .st-sv-bgq { grid-row: 9 / 12; }
  .st-b1, .st-b2, .st-b3, .st-l1, .st-l2, .st-l3, .st-q1, .st-q2, .st-q3 { grid-column: 1; }
  .st-b1 { grid-row: 1; } .st-b2 { grid-row: 2; } .st-b3 { grid-row: 3; }
  .st-l1 { grid-row: 5; } .st-l2 { grid-row: 6; } .st-l3 { grid-row: 7; }
  .st-q1 { grid-row: 9; } .st-q2 { grid-row: 10; } .st-q3 { grid-row: 11; }
  .st-b3 > .st-tiles, .st-l3 { display: none; }
  .st-b3, .st-l3 { padding-block: 8px 14px; }
  .st-l2 { margin-block-end: 14px; }
  .st-join { grid-column: 1; justify-self: center; width: 3px; height: 32px; margin: 0; }
  .st-join::before { inset-block-start: -5px; inset-inline-start: -4px; } .st-join::after { inset-block-start: auto; inset-block-end: -5px; inset-inline-start: -4px; inset-inline-end: auto; }
  .st-join1 { grid-row: 4; } .st-join2 { grid-row: 8; }
  .st-legend { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
}
@media (max-width: 480px) { .st-c { padding-inline: 14px; } .st-linked { margin-inline: 8px; } .st-hero-text { text-align: start; } .st-hero-text .tu-cta { justify-content: flex-start; } }

/* Study assistant: the Claude chat card fills the stage */
.st-as-demo { justify-self: auto; margin-inline: auto; }
.st-as-demo > .aic { width: 100%; }

/* Practise, catch up, see where you stand: three phones in a row */
.st-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-block-start: clamp(32px, 4vw, 48px); }
.st-tri { display: flex; flex-direction: column; align-items: center; text-align: center; }
.st-tri h3 { margin: 26px 0 6px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.st .st-tri > p { font-size: 16px; line-height: 1.45; max-width: 300px; }
.st .st-tri .tu-more { margin-block-start: 10px; }
.st-phone { height: 560px; max-width: 300px; }
.st .st-app-over { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 700; color: var(--tu-muted); }
.st-bar { display: block; height: 6px; border-radius: 3px; background: #e4e0ec; overflow: hidden; }
.st-bar > i { display: block; height: 100%; border-radius: 3px; background: var(--tu-p); }
.st .st-phone .tu-opts li { font-size: 14px; }
.st .st-phone .tu-verdict { margin-block-start: auto; }

.st-mini { gap: 12px; }
.st .st-mini-top { font-size: 14px; font-weight: 700; color: var(--tu-p); }
.st-mini-clip { position: relative; flex: 1; min-height: 260px; border-radius: 18px; background: linear-gradient(180deg, #2a2733, #1d1b22); overflow: hidden; }
.st-mini-clip .st-video-art { inset: 10% 8% 34%; width: 84%; height: 56%; }
.st .st-mini-cap { position: absolute; inset-inline: 14px; inset-block-end: 14px; display: flex; flex-direction: column; gap: 2px; }
.st-mini-cap b { font-size: 17px; font-weight: 700; color: #fff; }
.st-mini-cap span { font-size: 14px; font-weight: 600; color: rgb(255 255 255 / .82); }
.st .st-mini-next { text-align: center; padding: 12px; border-radius: 12px; background: var(--tu-p); color: #fff; font-size: 15px; font-weight: 700; }

.st-stats { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tu-line); border-radius: 16px; padding: 4px 14px; }
.st .st-stats > p { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; padding-block: 12px; font-size: 14px; }
.st-stats > p + p { border-block-start: 1px solid var(--tu-line); }
.st-stats span { color: var(--tu-text); font-weight: 600; }
.st-stats b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.st-stats small { font-size: 14px; font-weight: 600; color: var(--tu-muted); letter-spacing: 0; }
.st-stats .st-bar { flex: 1 1 100%; }
.st-next { margin-block-start: auto; display: flex; flex-direction: column; gap: 4px; padding: 14px; background: #fff; border: 1px solid var(--tu-line-p); border-radius: 16px; }
.st-next span { font-size: 14px; font-weight: 700; color: var(--tu-muted); }
.st-next b { font-size: 15px; font-weight: 700; }
.st-next em { margin-block-start: 8px; font-style: normal; text-align: center; padding: 10px; border-radius: 10px; background: var(--tu-p); color: #fff; font-size: 14px; font-weight: 700; }

@media (max-width: 900px) {
  .st-trio { grid-template-columns: minmax(0, 1fr); max-width: 360px; margin-inline: auto; gap: 56px; }
  .st-phone { height: auto; min-height: 520px; }
}

/* Closing: the ribbon sits on the deep field's corner, clear of the picture */
.st .tu-closing img { mix-blend-mode: normal; }
@media (min-width: 761px) { .st .tu-closing { padding-inline-end: clamp(56px, 7vw, 96px); } }

/* Questions pane: the question before, already answered */
.st-done { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--tu-line); border-radius: 12px; background: #fafaf8; }
.st-done svg { flex: none; width: 20px; height: 20px; fill: none; stroke: #32724f; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.st-done b { display: block; font-size: 14px; font-weight: 700; }
.st-done small { display: block; font-size: 14px; color: var(--tu-text); }
@media (max-width: 900px) { .st-done { display: none; } }

/* The lecture frame: the tutor's chalk drawing of a plant cell, the membrane in gold */
.st-video-art .st-chalk-gold { stroke: var(--tu-gold); }
.st-video .st-video-art { inset: 6% 8% 26%; width: 84%; height: 68%; }
.st-mini-clip .st-play { inset-block-start: auto; inset-block-end: 16px; inset-inline-start: auto; inset-inline-end: 14px; translate: none; width: 44px; height: 44px; }
[dir="rtl"] .st-mini-clip .st-play { translate: none; }
.st .st-mini-cap:lang(ar) { padding-inline-end: 56px; }   /* Arabic: the longer time line clears the play button */
