/* Styles for the platform pages (/tutors, /t/…, login, dashboard).
   Same tokens as the landing page in index.html. */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-regular.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-italic.woff2) format("woff2"); }

:root {
  --night: #0b1226; --ink: #171a2b; --ink-soft: #5b6176; --bg: #f8f5ef; --surface: #fff;
  --line: #e7e2d9; --line-strong: #d5cfc3; --coral: #ff6a45; --coral-deep: #e4532f; --coral-soft: #ffece4;
  --blue: #4868e6; --blue-soft: #e9edfd; --mint: #1aa97b; --mint-soft: #ddf5ea;
  --serif: "Instrument Serif", Georgia, serif;
  --shadow: 0 1px 2px rgba(23,26,43,.05), 0 10px 30px rgba(23,26,43,.07);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #eceef5; --ink-soft: #a7acbf; --bg: #0d1020; --surface: #161a2e; --line: #272c45; --line-strong: #353b58;
    --coral-soft: #3a2019; --blue-soft: #1b2246; --mint-soft: #11312a; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.3); }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.08; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 12px; }
h1 em { font-style: italic; color: var(--coral-deep); }
h2 { font-size: 1.7rem; margin: 0 0 10px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--coral-deep); margin-bottom: 10px; }
.sub { color: var(--ink-soft); max-width: 40em; margin: 0 0 24px; font-size: 1.05rem; }
.lead { font-size: 1.2rem; }

/* Header / footer */
.bar { background: var(--night); color: #fff; padding: 14px 0; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.bar nav a { color: rgba(255,255,255,.8); text-decoration: none; margin-inline-start: 18px; font-size: .95rem; }
.bar nav a:hover { color: #fff; }
main.wrap { padding-block: 44px 72px; min-height: 60vh; }
.foot { background: var(--night); color: rgba(255,255,255,.6); padding: 36px 0; font-size: .88rem; }
.foot a { color: rgba(255,255,255,.85); }
.foot p { margin: 0 0 8px; max-width: 46em; }

/* Buttons, forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; border: 0; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s; }
.btn.primary { background: var(--coral); color: #fff; box-shadow: 0 8px 22px rgba(255,106,69,.32); }
.btn.primary:hover { background: var(--coral-deep); transform: translateY(-1px); }
.btn.primary:disabled { background: var(--line-strong); color: var(--ink-soft); box-shadow: none; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
@media (max-width: 480px) { .card { padding: 20px 16px; } }
.field { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
label small { font-weight: 400; color: var(--ink-soft); }
input[type=text], input[type=email], input[type=number], input[type=url], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--coral); background: var(--surface); box-shadow: 0 0 0 4px rgba(255,106,69,.18); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--ink-soft); }
.check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--coral); flex: none; }
.msg { border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; font-size: .95rem; }
.msg.ok { background: var(--mint-soft); color: #0f7a58; }
.msg.err { background: var(--coral-soft); color: #b2381c; }
.hidden { display: none; }

/* Tutor list */
.head { margin-bottom: 28px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: .86rem; font-weight: 600; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; }
.pill small { color: var(--ink-soft); font-weight: 600; margin-inline-start: 3px; }
.pill.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill.on small { color: inherit; opacity: .7; }
.tlist { display: grid; gap: 14px; }
.tcard { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; transition: transform .15s, box-shadow .15s; }
.tcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
@media (max-width: 560px) { .tcard { grid-template-columns: auto 1fr; } .tcard .trate { grid-column: 2; } }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; color: #fff; background: linear-gradient(135deg, var(--coral), #ff9f68); flex: none; }
.avatar.big { width: 84px; height: 84px; font-size: 1.6rem; }
.tmain { display: grid; gap: 4px; min-width: 0; }
.tmain b { font-size: 1.1rem; }
.tline { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.thead { color: var(--ink); font-size: .96rem; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .8rem; font-weight: 600; background: var(--coral-soft); color: var(--coral-deep); padding: 3px 10px; border-radius: 999px; }
.chip.soft { background: var(--blue-soft); color: var(--blue); }
.trate { font-family: var(--serif); font-size: 1.6rem; white-space: nowrap; }
.trate small, .pbook small { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .8rem; color: var(--ink-soft); }
.empty { text-align: center; padding: 48px 16px; color: var(--ink-soft); }

/* Profile */
.profile { max-width: 820px; }
.phead { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; margin-bottom: 28px; }
.phead h1 { font-size: 2.4rem; margin-bottom: 4px; }
.pbook { grid-column: 1 / -1; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 10px; }
.pbook b { font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1; }
@media (min-width: 760px) { .phead { grid-template-columns: auto 1fr 260px; } .pbook { grid-column: auto; } }
.pbio, .pverify { margin: 28px 0; }
.pverify { background: var(--mint-soft); border-radius: 20px; padding: 20px 24px; }
.pverify h2 { font-size: 1.3rem; }
.pverify ul { margin: 0; padding-inline-start: 20px; }
.pverify li { margin-bottom: 6px; }

/* Session request */
.preq { margin: 36px 0; }
.preq h2 { font-size: 1.7rem; }
.preq .card { margin-top: 16px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
