/* EdSubmit Tutoring (edsubmit.com/tutoring) — the pages built by tools/tutoring-pages.py, in the home's look. */
:root {
  --ink: #14161a; --ink-2: #3b3f47; --ink-3: #6b707a; --ink-4: #9a9ea6;
  --page: #faf9f6; --surface: #ffffff; --soft: #f3f2ef;
  --line: #e4e2dd; --line-2: #efede8; --line-strong: #cfccc5;
  --accent: #e85d2c; --accent-deep: #c2481c; --good: #1f7a4d; --bad: #b4332a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--page); color: var(--ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

.top { max-width: 1200px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; display: block; flex: none; }
.brand span { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand em { font-style: normal; font-weight: 600; color: var(--ink-3); }
.top-nav { display: flex; align-items: center; gap: 18px; }
.top-link { display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.top-link:hover { color: var(--ink); }
.top-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.top-btn:hover { background: #000; }

.hero { max-width: 1200px; margin: 0 auto; padding: 14px 24px 60px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr); gap: 44px; align-items: start; }
.crumbs { font-size: 13.5px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { margin: 0 6px; }
.h1-row { margin-top: 14px; display: flex; align-items: center; gap: 14px; }
.sch-logo { width: 40px; height: 40px; object-fit: contain; flex: none; }
h1 { font-size: 44px; line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; }
.lede { margin-top: 14px; font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 620px; }
.facts { list-style: none; margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { padding: 14px 16px 14px 0; }
.facts li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.facts b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.facts span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-3); }
.box { background: var(--surface); border: 1px solid var(--line); }
.integrity { margin-top: 24px; padding: 20px 22px; }
.integrity h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.integrity p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.integrity .muted { color: var(--ink-3); font-size: 14px; }

/* The request form */
.card { background: var(--surface); border: 1px solid var(--line); padding: 26px; position: sticky; top: 20px; box-shadow: 0 30px 60px -44px rgba(20, 22, 26, 0.5); }
.card h2 { font-size: 23px; font-weight: 800; letter-spacing: -0.015em; }
.card .sub { margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--ink-3); }
.need { border: 0; margin-top: 16px; display: grid; gap: 8px; }
.need legend { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.card .opt { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 11px 12px; border: 1px solid var(--line); cursor: pointer; font-size: inherit; font-weight: 400; color: var(--ink); }
.card .opt:has(input:checked) { border-color: var(--ink); background: var(--page); }
.opt input { margin-top: 3px; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.opt b { display: block; font-size: 14.5px; }
.opt small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--ink-3); }
.card label { display: block; margin: 12px 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.opt-l { font-weight: 400; color: var(--ink-3); }
.inp { width: 100%; border: 1px solid var(--line-strong); padding: 11px 13px; font-size: 15.5px; background: #fff; color: var(--ink); outline: none; border-radius: 0; }
.inp:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 22, 26, 0.08); }
textarea.inp { resize: vertical; min-height: 76px; }
select.inp { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2314161a' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 12px center / 10px 6px; padding-right: 32px; }
.phone { display: grid; grid-template-columns: 76px minmax(0, 1fr); }
.phone .cc { display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-right: 0; background: var(--page); font-weight: 600; font-size: 15px; }
.inp.bad { border-color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.submit { margin-top: 18px; width: 100%; min-height: 48px; background: var(--ink); color: #fff; border: 0; font-weight: 700; font-size: 15px; cursor: pointer; }
.submit:hover { background: #000; }
.submit:disabled { background: #6b707a; cursor: wait; }
.err { margin-top: 10px; font-size: 13.5px; color: var(--bad); }
.fine { margin-top: 12px; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.t-done { padding: 8px 0; }
.done-line { display: flex; align-items: center; gap: 8px; font-size: 18px; color: var(--good); }
.done-line svg { width: 22px; height: 22px; }
.t-done .sub { margin-top: 8px; font-size: 15px; color: var(--ink-2); }

/* Sections */
.band { max-width: 1200px; margin: 0 auto; padding: 56px 24px; border-top: 1px solid var(--line); }
.band h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.intro-p { margin-top: 8px; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); max-width: 760px; }
.two { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.help { padding: 26px 24px; }
.help h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.help p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.ticks { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.ticks li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; }
.ticks svg { width: 16px; height: 16px; color: var(--good); flex: none; }
.subj { margin-top: 20px; display: grid; gap: 10px; max-width: 860px; }
.subj p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.pgs { margin-top: 24px; columns: 3 280px; column-gap: 28px; }
.pg { break-inside: avoid; margin-bottom: 24px; }
.pg h3 { font-size: 15.5px; font-weight: 800; padding-bottom: 8px; border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; }
.pg h3 span { color: var(--ink-3); font-weight: 600; }
.pg ul { list-style: none; }
.pg li { padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.pg details summary { padding: 8px 0; font-size: 13.5px; font-weight: 700; color: var(--accent-deep); cursor: pointer; }
.steps3 { list-style: none; margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.steps3 li { padding: 24px 22px; }
.steps3 li + li { border-left: 1px solid var(--line); }
.steps3 b { font-size: 30px; font-weight: 800; color: var(--accent); line-height: 1; }
.steps3 h3 { margin-top: 12px; font-size: 17px; font-weight: 700; }
.steps3 p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.faqs { margin-top: 20px; border-top: 1px solid var(--line); max-width: 860px; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { padding: 16px 0; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 600; color: var(--ink-3); }
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* The index */
.find { margin-top: 20px; max-width: 460px; }
.schools { list-style: none; margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.schools a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: #fff; text-decoration: none; height: 100%; }
.schools a:hover { background: var(--page); }
.schools img, .schools .noimg { width: 28px; height: 28px; object-fit: contain; flex: none; }
.schools .noimg { display: flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-style: normal; font-size: 14px; font-weight: 800; }
.schools span { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; }
.schools em { font-style: normal; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.none { margin-top: 14px; color: var(--ink-3); }

/* Footer, as the home */
.end { background: var(--ink); color: #fff; margin-top: 30px; }
.end-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.end-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 56px 0 44px; }
.end-mark { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 19px; font-weight: 800; }
.end-mark svg { width: 32px; height: 32px; display: block; }
.end-mark svg > rect:first-child { stroke: #3a3e46; stroke-width: 2; }
.end-brand p { margin-top: 14px; font-size: 14.5px; line-height: 1.6; color: #9ea3ad; max-width: 320px; }
.end nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.end nav b { font-size: 13px; color: #fff; margin-bottom: 4px; }
.end nav a { color: #b8bcc5; text-decoration: none; }
.end nav a:hover { color: #fff; }
.end-base { padding: 18px 0 24px; border-top: 1px solid #2c3038; font-size: 13px; color: #8a8f99; }

@media (max-width: 920px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .card { position: static; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .steps3 { grid-template-columns: minmax(0, 1fr); }
  .steps3 li + li { border-left: 0; border-top: 1px solid var(--line); }
  .end-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .end-brand { grid-column: 1 / -1; }
  .end nav a { display: flex; align-items: center; min-height: 40px; }
  .end nav { gap: 0; }
}
@media (max-width: 560px) {
  .top, .hero, .band, .end-in { padding-left: 16px; padding-right: 16px; }
  .top-link { display: none; }
  .brand em { display: none; }
  h1 { font-size: 31px; }
  .lede { font-size: 16.5px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li, .facts li + li { padding: 10px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--line); }
  .card { padding: 22px 18px; }
  .band { padding-top: 44px; padding-bottom: 44px; }
  .band h2 { font-size: 25px; }
  .fine a { display: inline-block; padding: 6px 0; }
}

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

/* Grades and what you'll write */
.grades { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 16px; align-items: start; }
.gr-card { padding: 26px 24px; }
.gr-card > p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.gr-card h3 { margin-top: 20px; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.gr-card h3:first-child { margin-top: 0; }
.gr-card h3 + p { margin-top: 8px; }
.levels { list-style: none; margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.levels li { display: flex; flex-direction: column; gap: 6px; padding: 12px; font-size: 14px; font-weight: 700; }
.levels li + li { border-left: 1px solid var(--line); }
.levels li span { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.levels li:last-child { background: var(--page); color: var(--good); box-shadow: inset 0 -3px 0 var(--good); }
.assign { list-style: none; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.assign li { padding: 8px 12px; border: 1px solid var(--line); background: var(--page); font-size: 14px; font-weight: 600; }
@media (max-width: 920px) { .grades { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .levels { grid-template-columns: 1fr 1fr; } .levels li:nth-child(3) { border-left: 0; } .levels li:nth-child(n+3) { border-top: 1px solid var(--line); } }
