/* Built by designs/site-redesign-2026-11/build.mjs from wireframe/assets/site.css plus redesign-extra.css. Edit those, not this file. */
:root {
  /* Red (data-red) */
  --cardinal: #7c2020;
  --cardinal-dark: #641818;
  --typed: #ffd9a8;
  --footer: #252422;
  --ink: #211f1d;
  --muted: #625d57;
  --gray-icon: #8d8882;
  --line: #e2ddd5;
  --paper: #ffffff;
  --warm: #f7f4ee;
  --blush: #f6eceb;
  /* Band backgrounds (data-bg): the non-red sections */
  --band: #f7f2e8;
  --yellow: #f2a900;
  --display: "DM Serif Display", "Iowan Old Style", Georgia, serif;
  --display-weight: 400;
  --display-fvs: normal;
  --text-serif: Newsreader, "Iowan Old Style", Georgia, serif;
  /* Body font (data-body) */
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}
/* Reds. Stanford's own cardinal (#8C1515) is avoided on purpose. */
:root[data-red="bird"] { --cardinal: #a8201a; --cardinal-dark: #8a1914; --typed: #ffe0b8; --blush: #fbebe8; --footer: #2a1f1d; }
:root[data-red="oxblood"] { --cardinal: #5a1922; --cardinal-dark: #46131a; --typed: #f2c9a6; --blush: #f3eaea; --footer: #1e1a1b; }
/* Band backgrounds */
:root[data-bg="stone"] { --band: #f0f0ee; --warm: #f3f3f1; --line: #e1e1de; }
:root[data-bg="blush"] { --band: #f8eeec; --warm: #f9f1ef; --line: #ebdcd9; }
:root[data-bg="white"] { --band: #ffffff; --warm: #f6f5f3; }
/* Body fonts */
:root[data-head="gloock"] { --display: Gloock, Georgia, serif; }
:root[data-head="source"] { --display: "Source Serif 4", Georgia, serif; --display-weight: 600; }
:root[data-body="dm"] { --sans: "DM Sans", -apple-system, Helvetica, Arial, sans-serif; }
:root[data-body="instrument"] { --sans: "Instrument Sans", -apple-system, Helvetica, Arial, sans-serif; }
body.ct-redesign, body.ct-redesign * { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ct-redesign { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); }
body.ct-redesign img { display: block; max-width: 100%; }
body.ct-redesign a { color: inherit; }
body.ct-redesign button { font: inherit; color: inherit; cursor: pointer; }
body.ct-redesign h1, body.ct-redesign h2, body.ct-redesign h3, body.ct-redesign p { margin: 0; }
body.ct-redesign :focus-visible { outline: 3px solid #e3a008; outline-offset: 2px; }
body.ct-redesign .wrap { width: min(100%, 1280px); margin-inline: auto; padding-inline: var(--gutter); }
body.ct-redesign .section { padding-block: clamp(48px, 5.5vw, 76px); }
body.ct-redesign .section-title {
  margin-inline: auto; max-width: 17em; text-align: center; text-wrap: balance;
  font: var(--display-weight) clamp(34px, 5.2vw, 64px)/1.06 var(--display); font-variation-settings: var(--display-fvs); letter-spacing: -0.01em;
}
body.ct-redesign .btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  border-radius: 8px; font-weight: 700; text-decoration: none; transition: transform .15s ease, background .15s ease;
}
body.ct-redesign .btn:hover { transform: translateY(-1px); }
body.ct-redesign .btn-light { background: #fff; color: var(--cardinal); }
body.ct-redesign .btn-light:hover { background: var(--warm); }
body.ct-redesign .btn-dark { background: var(--cardinal); color: #fff; }
body.ct-redesign .btn-dark:hover { background: var(--cardinal-dark); }
body.ct-redesign .btn-arrow { gap: 10px; }
body.ct-redesign .btn-arrow svg { width: 20px; height: 20px; stroke-width: 2.2; transition: transform .15s ease; }
body.ct-redesign .btn-arrow:hover svg { transform: translateX(3px); }
body.ct-redesign .line-icon { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Nav */
body.ct-redesign .topbar { position: sticky; top: 0; z-index: 50; background: var(--cardinal); transition: box-shadow .2s ease; }
body.ct-redesign .topbar.scrolled { box-shadow: 0 6px 24px rgba(40,10,10,.28); }

/* Red band texture: glow, grain and pattern switch independently (data-glow, data-grain, data-pattern). Grain is gray noise centered on 50%, so soft-light adds texture without shifting the red. Glow stays off the nav and fades out before the hero's top edge, so there's no seam. */
:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='.7 0 0 0 .15  .7 0 0 0 .15  .7 0 0 0 .15  0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --glow: radial-gradient(75% 85% at 88% 95%, rgba(255,255,255,.13), transparent 70%), radial-gradient(65% 75% at 0% 100%, rgba(0,0,0,.24), transparent 72%);
  --none: linear-gradient(transparent, transparent);
  --grain-l: var(--none);
  --glow-l: var(--none), var(--none);
}
:root[data-grain="on"] { --grain-l: var(--grain); }
:root[data-glow="on"] { --glow-l: var(--glow); }
:root body.ct-redesign .topbar { background-image: var(--grain-l); background-blend-mode: soft-light; }
:root body.ct-redesign :is(.hero, .bottom-cta) { background-image: var(--grain-l), var(--glow-l); background-blend-mode: soft-light, normal, normal; }

/* Pattern (data-pattern): drawn on ::before, under the content but over glow and grain, so it mixes freely with
   either. --focus is where each band's pattern centers: the tutor card in the hero, the middle of the CTA. */
body.ct-redesign .hero, body.ct-redesign .bottom-cta { position: relative; isolation: isolate; }
body.ct-redesign .hero { --focus: 76% 46%; }
body.ct-redesign .bottom-cta { --focus: 50% 55%; }
body.ct-redesign :is(.hero, .bottom-cta)::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
:root[data-pattern="icons"] body.ct-redesign :is(.hero, .bottom-cta)::before { background: var(--icons, none); }
:root[data-pattern="contours"] body.ct-redesign :is(.hero, .bottom-cta)::before { background: var(--contours, none) center / cover no-repeat; }
:root[data-pattern="graph"] body.ct-redesign :is(.hero, .bottom-cta)::before {
  background: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 28px 28px;
  -webkit-mask: radial-gradient(85% 95% at var(--focus), #000 25%, transparent 85%);
  mask: radial-gradient(85% 95% at var(--focus), #000 25%, transparent 85%);
}
/* Notebook: ruled lines plus a double margin line just left of the text column. */
/* The margin lines also run up through the nav to the top of the page; the ruled lines stay out of the nav. */
:root { --margin-x: max(8px, calc(max(0px, (100vw - 1280px) / 2) + var(--gutter) - 22px)); --margin-line: linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,.16)); }
:root[data-pattern="notebook"] body.ct-redesign .topbar {
  background-image: var(--margin-line), var(--margin-line), var(--grain-l);
  background-size: 1px 100%, 1px 100%, auto;
  background-position: var(--margin-x) 0, calc(var(--margin-x) + 5px) 0, 0 0;
  background-repeat: no-repeat, no-repeat, repeat;
  background-blend-mode: normal, normal, soft-light;
}
:root[data-pattern="notebook"] body.ct-redesign :is(.hero, .bottom-cta)::before {
  background:
    linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,.16)) var(--margin-x) 0 / 1px 100% no-repeat,
    linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,.16)) calc(var(--margin-x) + 5px) 0 / 1px 100% no-repeat,
    repeating-linear-gradient(transparent 0 33px, rgba(255,255,255,.075) 33px 34px);
}
:root[data-pattern="constellation"] body.ct-redesign :is(.hero, .bottom-cta)::before { background: var(--constellation, none) center / cover no-repeat; }
body.ct-redesign .hero { background: var(--cardinal); color: #fff; min-height: calc(88vh - 88px); min-height: calc(88svh - 88px); display: flex; flex-direction: column; }
body.ct-redesign .nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; position: relative; }
body.ct-redesign .wordmark { display: inline-flex; align-items: baseline; gap: .2em; font: var(--display-weight) 26px/1 var(--display); font-variation-settings: var(--display-fvs); letter-spacing: -.005em; color: #fff; text-decoration: none; }
body.ct-redesign .wordmark svg, body.ct-redesign .foot-brand svg { width: .98em; height: .98em; flex: none; fill: currentColor; }
body.ct-redesign .wordmark svg .knock { fill: var(--cardinal); }
body.ct-redesign .foot-brand svg .knock { fill: var(--footer); }
/* Crested C: the crest sits on the C, so the C becomes the bird's head */
body.ct-redesign .wordmark .ov, body.ct-redesign .foot-brand .ov { position: relative; display: inline-block; }
body.ct-redesign .wordmark .ov svg, body.ct-redesign .foot-brand .ov svg { position: absolute; width: .3em; height: .37em; left: var(--crest-x); top: var(--crest-y); }
/* Crest base sits on top of each font's C. Solved per font on a canvas: the position where the whole base
   lands on ink with the least sinking. DM Serif and Source Serif have a hairline at the top of the C, so
   sinking more drops the base into the C's hollow. */
:root { --crest-x: .135em; --crest-y: -.175em; }
:root[data-head="gloock"] { --crest-x: .24em; --crest-y: -.24em; }
:root[data-head="source"] { --crest-x: .135em; --crest-y: -.18em; }
body.ct-redesign .wordmark.crest, body.ct-redesign .foot-brand.crest { padding-top: .2em; }
body.ct-redesign .nav-links { display: flex; align-items: center; gap: 28px; }
body.ct-redesign .nav-links a, body.ct-redesign .nav-trigger { color: #fff; text-decoration: none; font-weight: 500; font-size: 16px; line-height: 1; background: none; border: 0; padding: 0; }
body.ct-redesign .nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
body.ct-redesign .nav-links a.nav-trigger { display: inline-flex; align-items: center; gap: 6px; }
body.ct-redesign .nav-trigger svg { width: 12px; height: 12px; flex: none; }
body.ct-redesign .nav-links a.btn { background: #fff; color: var(--cardinal); min-height: 44px; padding: 0 18px; font-weight: 700; }
body.ct-redesign .nav-links a.btn:hover { background: var(--warm); text-decoration: none; }
body.ct-redesign .has-menu { position: relative; display: flex; align-items: center; }
body.ct-redesign .menu {
  position: absolute; top: 100%; left: -16px; z-index: 20; display: none; width: 290px; margin-top: 8px; padding: 8px;
  background: #fff; border-radius: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
body.ct-redesign .has-menu::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 12px; }
body.ct-redesign .has-menu:hover .menu, body.ct-redesign .has-menu:focus-within .menu { display: block; }
body.ct-redesign .nav-links .menu a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); line-height: 1.3; }
body.ct-redesign .nav-links .menu a:hover { background: var(--warm); text-decoration: none; }
body.ct-redesign .burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; }
body.ct-redesign .burger span { display: block; height: 2px; background: #fff; margin: 5px 0; }

/* Hero */
body.ct-redesign .hero-body {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); align-items: center;
  gap: clamp(24px, 3vw, 48px); padding-block: 8px clamp(36px, 5vw, 64px);
}
body.ct-redesign .hero-title { font: var(--display-weight) clamp(38px, 4.4vw, 62px)/1.08 var(--display); font-variation-settings: var(--display-fvs); letter-spacing: -0.01em; }
body.ct-redesign .hl-line { display: block; white-space: nowrap; }
body.ct-redesign .typed-line { display: block; min-height: 1.06em; color: var(--typed); white-space: nowrap; }
/* Two-line mode: used when "who tutor computer science" fits on one line */
body.ct-redesign .hero-title.two .hl-line + .hl-line, body.ct-redesign .hero-title.two .typed-line { display: inline; }
body.ct-redesign .caret { display: inline-block; width: .055em; height: .85em; margin-left: .05em; vertical-align: -.06em; background: var(--typed); animation: rd-blink 1s steps(2) infinite; }
@keyframes rd-blink { 50% { opacity: 0; } }
body.ct-redesign .hero-place { margin-top: clamp(16px, 2.2vw, 24px); font-size: clamp(17px, 1.6vw, 20px); opacity: .92; }
body.ct-redesign .hero-body .btn { margin-top: clamp(20px, 2.6vw, 30px); }
body.ct-redesign .hero-card { justify-self: center; width: min(100%, 400px); margin-bottom: 56px; transition: opacity .25s ease, transform .25s ease; }
body.ct-redesign .hero-card .tc { --face: 214px; }
body.ct-redesign .hero-card .tc > .face-clip { margin-bottom: -58px; }
body.ct-redesign .hero-card .tc-card { padding-top: 72px; }
body.ct-redesign .hero-card.swapping { opacity: 0; transform: translateY(8px); }

/* Tutor card: round face overlapping a card. Used in the hero and the tutor grid. */
body.ct-redesign .tc { display: flex; flex-direction: column; align-items: center; --face: 190px; }
body.ct-redesign .face-clip { display: block; flex: none; width: var(--face); height: var(--face); overflow: hidden; border-radius: 50%; background: var(--line); }
body.ct-redesign .face-clip img { width: 100%; height: 100%; object-fit: cover; }
body.ct-redesign .tc > .face-clip { position: relative; z-index: 1; margin-bottom: -20px; border: 5px solid #fff; box-shadow: 0 10px 28px rgba(30,15,10,.22); }
body.ct-redesign .tc-card { width: 100%; padding: 34px 18px 20px; background: #fff; color: var(--ink); border-radius: 18px; text-align: center; box-shadow: 0 16px 44px rgba(30,15,10,.2); }
body.ct-redesign .tc-name { font: var(--display-weight) 28px/1.15 var(--display); font-variation-settings: var(--display-fvs); }
body.ct-redesign .tc-major { margin-top: 3px; font-size: 14.5px; line-height: 1.3; color: var(--muted); }
body.ct-redesign .tc-acc { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; }
body.ct-redesign .tc-acc > div { padding-inline: 12px; font-size: 13.5px; line-height: 1.32; }
body.ct-redesign .tc-acc > div + div { border-left: 1px solid #dcdcdc; }
body.ct-redesign .tc-acc svg { display: block; width: 28px; height: 28px; margin: 0 auto 8px; color: var(--gray-icon); }
body.ct-redesign .tc-cta { display: flex; width: 100%; margin-top: 18px; min-height: 44px; padding: 0 12px; font-size: 15px; }

/* How we work */
body.ct-redesign .how-blurb { margin: 22px auto 0; max-width: 40em; text-align: center; font-size: clamp(18px, 1.8vw, 22px); color: var(--muted); }
body.ct-redesign .props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
body.ct-redesign .prop { background: var(--blush); border-radius: 14px; padding: 30px 26px; text-align: center; }
body.ct-redesign .step-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cardinal); }
body.ct-redesign .prop svg { display: block; width: 46px; height: 46px; margin: 0 auto 16px; color: var(--cardinal); }
body.ct-redesign .prop h3 { font: var(--display-weight) 25px/1.2 var(--display); font-variation-settings: var(--display-fvs); }
body.ct-redesign .prop p { margin-top: 10px; color: var(--muted); }

/* Tutors: card grid */
body.ct-redesign .tutors { background: var(--band); }
body.ct-redesign .tutor-grid { --cols: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 48px; }
body.ct-redesign .grid-card { display: flex; width: calc((100% - (var(--cols) - 1) * 24px) / var(--cols)); }
body.ct-redesign .grid-card .tc { --face: 164px; flex: 1; padding: 24px 22px 24px; background: #fff; border-radius: 18px; box-shadow: 0 8px 26px rgba(50,30,20,.1); }
body.ct-redesign .grid-card .tc > .face-clip { margin-bottom: 14px; border: 0; box-shadow: none; }
body.ct-redesign .grid-card .tc-card { flex: 1; padding: 0; border-radius: 0; background: none; box-shadow: none; }
body.ct-redesign .grid-card .tc-name { font-size: 24px; }
body.ct-redesign .tc-subjects { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--cardinal); line-height: 1.3; }
body.ct-redesign .grid-card .tc-acc { margin-top: 22px; }
/* Accolades as a list, with each icon as the bullet */
body.ct-redesign .grid-card .tc-acc { display: flex; flex-direction: column; gap: 10px; text-align: left; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
body.ct-redesign .grid-card .tc-acc > div { display: flex; align-items: flex-start; gap: 10px; padding-inline: 4px; font-size: 14px; line-height: 1.4; }
body.ct-redesign .grid-card .tc-acc > div + div { border-left: 0; }
body.ct-redesign .grid-card .tc-acc svg { flex: none; width: 20px; height: 20px; margin: 0; }
body.ct-redesign .tc .tc-major { color: var(--ink); }
body.ct-redesign .grid-card .tc .tc-major { margin-top: 2px; font-size: 13px; color: var(--muted); }
body.ct-redesign .tc .tc-acc > div { color: var(--muted); }
body.ct-redesign .all-tutors-row { margin-top: 36px; text-align: center; }
body.ct-redesign .all-tutors { font-weight: 700; color: var(--cardinal); text-underline-offset: 4px; }

/* Services */
body.ct-redesign .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; text-align: center; }
body.ct-redesign .stat b { display: block; color: var(--cardinal); font: var(--display-weight) clamp(32px, 3.6vw, 46px)/1.1 var(--display); font-variation-settings: var(--display-fvs); }
body.ct-redesign .stat span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.3; }
body.ct-redesign .stat-yelp { text-decoration: none; }
body.ct-redesign .stat-yelp span { text-decoration: underline; text-underline-offset: 3px; }
body.ct-redesign .stat-yelp:hover span { color: var(--cardinal); }
body.ct-redesign .subjects { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 44px; }
body.ct-redesign .subject {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 14px; min-height: 164px; padding: 22px 14px;
  background: #fff; border: 1px solid var(--cardinal); border-radius: 10px; text-align: center; text-decoration: none; font-weight: 700; line-height: 1.25;
  transition: background .15s ease, transform .15s ease;
}
body.ct-redesign .subject:hover { background: var(--warm); transform: translateY(-2px); }
body.ct-redesign .subject svg { flex: none; width: 52px; height: 52px; color: var(--cardinal); stroke-width: 1.35; }
body.ct-redesign .all-services-row { margin-top: 28px; text-align: center; }
body.ct-redesign .all-services { font-weight: 700; color: var(--cardinal); text-underline-offset: 4px; }
body.ct-redesign .home-services { display: grid; gap: 32px; margin-top: clamp(28px, 4vw, 48px); }
body.ct-redesign .home-service-group h3 { margin-bottom: 14px; text-align: center; font-size: 18px; }
body.ct-redesign .home-services .subjects {
  --tile-columns: 3;
  --tile-gap: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--tile-gap);
  margin-top: 0;
}
body.ct-redesign .home-services .subject {
  box-sizing: border-box;
  flex: 0 0 calc((100% - (var(--tile-columns) - 1) * var(--tile-gap)) / var(--tile-columns));
  min-width: 0;
  min-height: 128px;
  padding: 16px 10px;
  gap: 10px;
  justify-content: center;
  overflow-wrap: anywhere;
}
body.ct-redesign .home-services .subject svg { width: 42px; height: 42px; }
@media (min-width: 1100px) {
  body.ct-redesign .home-services .subjects-courses[data-count="6"] { --tile-columns: 6; }
  body.ct-redesign .home-services .subjects-services { --tile-columns: 4; }
}
@media (max-width: 820px) {
  body.ct-redesign .home-services .subjects { --tile-columns: 2; --tile-gap: 10px; }
  body.ct-redesign .home-services .subject { min-height: 112px; font-size: 15px; }
  body.ct-redesign .home-services .subject svg { width: 36px; height: 36px; }
}

/* Reviews */
body.ct-redesign .reviews { background: var(--band); overflow: hidden; }
body.ct-redesign .wall-box { position: relative; margin-top: 40px; }
body.ct-redesign .wall {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; height: 760px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 80%, transparent);
  mask-image: linear-gradient(transparent, #000 8%, #000 80%, transparent);
}
body.ct-redesign .col { will-change: transform; animation: rd-scroll-up 90s linear infinite; }
body.ct-redesign .col:nth-child(2) { animation-name: rd-scroll-down; animation-duration: 105s; }
body.ct-redesign .col:nth-child(3) { animation-duration: 80s; }
body.ct-redesign .wall:hover .col, body.ct-redesign .wall:focus-within .col, body.ct-redesign .wall.paused .col { animation-play-state: paused; }
@keyframes rd-scroll-up { to { transform: translateY(-50%); } }
@keyframes rd-scroll-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
body.ct-redesign .review { background: #fff; border-radius: 14px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 10px rgba(50,30,20,.06); }
body.ct-redesign .review-top { display: flex; align-items: center; gap: 12px; }
body.ct-redesign .avatar { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; font-size: 19px; font-weight: 600; }
body.ct-redesign .review-who { min-width: 0; font-size: 14px; line-height: 1.25; }
body.ct-redesign .review-who b { display: block; font-size: 16px; }
body.ct-redesign .review-who span { color: var(--muted); font-size: 13px; }
body.ct-redesign .review-who .stars { display: block; color: var(--yellow); letter-spacing: 1px; font-size: 15px; line-height: 1.2; white-space: nowrap; }
body.ct-redesign .review p { margin-top: 12px; font: 18px/1.42 var(--text-serif); }
body.ct-redesign .source { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 700; text-decoration: none; }
body.ct-redesign a.source { color: #d32323; }
body.ct-redesign a.source:hover { text-decoration: underline; text-underline-offset: 3px; }
body.ct-redesign span.source { color: var(--muted); }
body.ct-redesign .source svg { width: 18px; height: 18px; }
body.ct-redesign .source .mail { fill: none; stroke: currentColor; stroke-width: 1.7; }
body.ct-redesign .yelp-logo { fill: #d32323; }
body.ct-redesign .ratings { position: absolute; z-index: 2; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; gap: 14px; }
body.ct-redesign .rating { display: block; width: 214px; background: #fff; border-radius: 16px; box-shadow: 0 14px 40px rgba(50,30,20,.22); text-align: center; text-decoration: none; overflow: hidden; }
body.ct-redesign .rating:hover { background: #fffdf8; }
body.ct-redesign .rating-top { padding: 18px 14px 14px; }
body.ct-redesign .rating-logo { display: block; width: 44px; height: 44px; margin: 0 auto 8px; }
body.ct-redesign .rating-score { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 23px; line-height: 1; font-weight: 800; color: var(--yellow); white-space: nowrap; }
body.ct-redesign .rating-score i { font-style: normal; font-size: 20px; letter-spacing: 1px; }
body.ct-redesign .rating-link { display: block; padding: 12px 10px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 700; }

/* Bottom CTA */
body.ct-redesign .bottom-cta { background: var(--cardinal); color: #fff; text-align: center; padding-block: clamp(72px, 11vw, 140px); }
body.ct-redesign .bottom-cta h2 { font: var(--display-weight) clamp(42px, 7.2vw, 96px)/1.04 var(--display); font-variation-settings: var(--display-fvs); letter-spacing: -.02em; text-wrap: balance; }
body.ct-redesign .bottom-cta p { max-width: 34em; margin: 22px auto 0; font-size: clamp(18px, 1.9vw, 22px); opacity: .92; }
body.ct-redesign .bottom-cta .btn { margin-top: 32px; min-height: 62px; padding: 0 44px; font-size: 20px; }

/* Footer */
body.ct-redesign .site-footer { background: var(--footer); color: #ece9e4; padding-block: 56px 28px; font-size: 15px; }
body.ct-redesign .site-footer a { color: inherit; text-decoration: none; }
body.ct-redesign .site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
body.ct-redesign .foot-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.25fr; gap: 40px; }
body.ct-redesign .foot-brand { display: inline-flex; align-items: baseline; gap: .2em; font: var(--display-weight) 26px/1 var(--display); font-variation-settings: var(--display-fvs); letter-spacing: -.005em; }
body.ct-redesign .foot-region { margin-top: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
body.ct-redesign .foot-tag { max-width: 19em; margin-top: 16px; }
body.ct-redesign .foot-links { display: flex; gap: 20px; margin-top: 14px; }
body.ct-redesign .foot-cta { display: inline-block; margin-top: 18px; font-weight: 700; }
body.ct-redesign .foot-h { font-weight: 700; color: #fff; margin-bottom: 12px; }
body.ct-redesign .foot-list { list-style: none; margin: 0; padding: 0; }
body.ct-redesign .foot-list li { padding-block: 5px; }
body.ct-redesign summary { cursor: pointer; }
body.ct-redesign details .foot-list { padding: 4px 0 4px 14px; }
body.ct-redesign .towns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
body.ct-redesign .regions { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }
body.ct-redesign .foot-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 20px; border-top: 1px solid #47443f; font-size: 13px; opacity: .8; }

/* Phones */
@media (max-width: 820px) {
  body.ct-redesign { font-size: 16px; }
  body.ct-redesign .hero { min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); }
  body.ct-redesign .nav { padding-block: 12px; }
  body.ct-redesign .wordmark { font-size: 23px; }
  body.ct-redesign .burger { display: block; margin-right: -10px; }
  body.ct-redesign .nav-links {
    position: absolute; z-index: 20; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px; background: #fff; border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.28);
  }
  body.ct-redesign .nav-links.open { display: flex; }
  body.ct-redesign .nav-links a, body.ct-redesign .nav-trigger { display: block; width: 100%; padding: 10px; color: var(--ink); text-align: left; }
  body.ct-redesign .nav-links a.nav-trigger { display: flex; }
  body.ct-redesign .nav-links a.btn { display: flex; margin-top: 8px; background: var(--cardinal); color: #fff; }
  body.ct-redesign .has-menu { display: block; }
  body.ct-redesign .has-menu::after { display: none; }
  body.ct-redesign .menu { position: static; display: block; width: auto; margin: 0; padding: 0 0 4px 12px; box-shadow: none; }
  body.ct-redesign .nav-links .menu a { padding: 6px 10px; font-size: 15px; font-weight: 400; }
  body.ct-redesign .hero-body { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 18px; padding-block: 8px 18px; }
  body.ct-redesign .hero-title { font-size: clamp(36px, 10.4vw, 58px); }
  body.ct-redesign .hl-line { display: inline; white-space: normal; }
  body.ct-redesign .hero-place { margin-top: 12px; font-size: 16px; }
  body.ct-redesign .hero-body .btn { display: flex; margin-top: 16px; }
  body.ct-redesign .hero-card { width: 100%; margin-bottom: 0; }
  body.ct-redesign .hero-card .tc { --face: 132px; }
  body.ct-redesign .hero-card .tc > .face-clip { margin-bottom: -36px; }
  body.ct-redesign .hero-card .tc-card { padding-top: 48px; }
  body.ct-redesign .tc-name { font-size: 24px; }

  body.ct-redesign .props { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  body.ct-redesign .prop { padding: 24px 22px; }
  body.ct-redesign .chip { flex: none; }
  body.ct-redesign .tutor-grid {
    display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 32px calc(var(--gutter) * -1) 0;
    padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter);
  }
  body.ct-redesign .tutor-grid::-webkit-scrollbar { display: none; }
  body.ct-redesign .grid-card { flex: 0 0 min(80%, 290px); width: auto; scroll-snap-align: start; }

  body.ct-redesign .stats { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  body.ct-redesign .subjects { grid-template-columns: 1fr 1fr; gap: 10px; }
  body.ct-redesign .subject { min-height: 146px; padding: 18px 12px; font-size: 15px; }

  body.ct-redesign .wall { grid-template-columns: 1fr; height: 700px; }
  body.ct-redesign .col:nth-child(n + 2) { display: none; }
  body.ct-redesign .ratings { width: 100%; bottom: 10px; gap: 8px; }
  body.ct-redesign .rating { flex: 1; width: auto; }
  body.ct-redesign .rating-top { padding: 12px 6px 10px; }
  body.ct-redesign .rating-logo { width: 34px; height: 34px; margin-bottom: 6px; }
  body.ct-redesign .rating-score { gap: 5px; font-size: 18px; }
  body.ct-redesign .rating-score i { font-size: 14px; letter-spacing: 0; }
  body.ct-redesign .rating-link { padding: 9px 4px; font-size: 13px; }

  body.ct-redesign .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  body.ct-redesign .foot-bottom { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.ct-redesign .caret { display: none; }
  body.ct-redesign .col { animation: none; }
  body.ct-redesign .wall { overflow-y: auto; }
  body.ct-redesign .hero-card, body.ct-redesign .btn, body.ct-redesign .subject { transition: none; }
}
/* ============================================================
   Templates beyond the homepage (2026-11-09)
   ============================================================ */

/* Footer: brand, services, towns, featured schools, then every market */
body.ct-redesign .foot-grid { grid-template-columns: 1.15fr .95fr 1.3fr 1fr; }
body.ct-redesign .foot-more { display: inline-block; margin-top: 8px; font-weight: 700; color: #fff; }
body.ct-redesign .foot-markets { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-top: 40px; padding-top: 22px; border-top: 1px solid #47443f; }
body.ct-redesign .foot-markets b { color: #fff; margin-right: 4px; }
body.ct-redesign .foot-markets a[aria-current] { color: #fff; font-weight: 700; }

/* Shorter red hero for every page that isn't a homepage */
body.ct-redesign .hero.lp { min-height: 0; }
body.ct-redesign .lp .hero-body { padding-block: 10px clamp(44px, 5vw, 76px); align-items: center; }
body.ct-redesign .crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; font-size: 14px; opacity: .85; }
body.ct-redesign .crumbs a { text-decoration: none; }
body.ct-redesign .crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
body.ct-redesign .crumbs i { font-style: normal; opacity: .6; }
body.ct-redesign .lp-h1 { display: block; margin-bottom: 14px; font: 700 13px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--typed); }
body.ct-redesign .lp-headline { max-width: 14em; font: var(--display-weight) clamp(36px, 4.3vw, 60px)/1.07 var(--display); font-variation-settings: var(--display-fvs); letter-spacing: -.01em; text-wrap: balance; }
body.ct-redesign .lp-intro { max-width: 34em; margin-top: 20px; font-size: clamp(17px, 1.5vw, 19px); opacity: .93; }
body.ct-redesign .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
body.ct-redesign .hero-body .hero-actions .btn { margin-top: 0; }
body.ct-redesign .trust { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14.5px; opacity: .92; }
body.ct-redesign .trust .stars { color: var(--yellow); letter-spacing: 1px; }
body.ct-redesign .lp .hero-card { margin-bottom: 0; width: min(100%, 360px); }
body.ct-redesign .lp .hero-card .tc { --face: 176px; }
body.ct-redesign .lp .hero-card .tc > .face-clip { margin-bottom: -48px; }
body.ct-redesign .lp .hero-card .tc-card { padding-top: 62px; }

/* Index pages: a red title band with no card */
body.ct-redesign .hero.short .hero-body { grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(40px, 4.5vw, 64px); }
body.ct-redesign .hero.short .lp-headline { max-width: 16em; }
body.ct-redesign .hero.short .lp-intro { max-width: 40em; }
body.ct-redesign .search { display: flex; align-items: center; gap: 12px; width: min(100%, 520px); margin-top: 28px; padding: 0 18px; min-height: 56px; background: #fff; border-radius: 10px; color: var(--ink); }
body.ct-redesign .search svg { width: 22px; height: 22px; flex: none; color: var(--gray-icon); }
body.ct-redesign .search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 17px; color: var(--ink); }

/* Section heads used below the hero */
body.ct-redesign .section-sub { margin: 18px auto 0; max-width: 38em; text-align: center; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
body.ct-redesign .section-title.sm { font-size: clamp(30px, 3.8vw, 46px); }

/* Article: the page's own writing, with a sticky side card */
body.ct-redesign .article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 88px); align-items: start; }
body.ct-redesign .article { max-width: 680px; font-size: 18px; line-height: 1.68; }
body.ct-redesign .article h2 { margin: 52px 0 14px; font: var(--display-weight) clamp(28px, 2.7vw, 36px)/1.15 var(--display); font-variation-settings: var(--display-fvs); letter-spacing: -.005em; }
body.ct-redesign .article > :first-child { margin-top: 0; }
body.ct-redesign .article p + p { margin-top: 16px; }
body.ct-redesign .article a { color: var(--cardinal); text-underline-offset: 3px; }
body.ct-redesign .article .lede { font-size: 20px; line-height: 1.6; color: var(--ink); }
body.ct-redesign .side { position: sticky; top: 108px; }
body.ct-redesign .side-card { padding: 26px 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 34px rgba(50,30,20,.08); }
body.ct-redesign .side-card h3 { font: var(--display-weight) 27px/1.15 var(--display); font-variation-settings: var(--display-fvs); }
body.ct-redesign .mini-steps { list-style: none; margin: 18px 0 22px; padding: 0; counter-reset: s; }
body.ct-redesign .mini-steps li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
body.ct-redesign .mini-steps li::before { counter-increment: s; content: counter(s); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blush); color: var(--cardinal); font-size: 13px; font-weight: 700; }
body.ct-redesign .mini-steps b { display: block; }
body.ct-redesign .mini-steps span { color: var(--muted); }
body.ct-redesign .side-card .btn { display: flex; width: 100%; }
body.ct-redesign .side-note { margin-top: 12px; font-size: 13.5px; color: var(--muted); text-align: center; }
body.ct-redesign .side-rating { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
body.ct-redesign .side-rating .stars { color: var(--yellow); letter-spacing: 1px; }
body.ct-redesign .side-rating svg { width: 18px; height: 18px; }
body.ct-redesign .pull-review { margin: 40px 0; padding: 26px 28px 22px; background: var(--band); border-radius: 16px; }
body.ct-redesign .pull-review .review-top { margin-bottom: 4px; }
body.ct-redesign .pull-review p.q { margin-top: 12px; font: 21px/1.45 var(--text-serif); }

/* Reviews as a static row (pages other than the homepage) */
body.ct-redesign .review-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; align-items: start; }
body.ct-redesign .review-row .review { margin: 0; }
body.ct-redesign .ratings.inline { position: static; transform: none; justify-content: center; margin-top: 32px; }

/* The Reviews page uses the homepage cards in a stationary, browsable grid. */
body.ct-redesign .rd-reviews-page .hero-body { text-align: center; }
body.ct-redesign .rd-reviews-page .lp-intro { margin-inline: auto; }
body.ct-redesign .rd-reviews-page .hero-actions { justify-content: center; }
body.ct-redesign .rd-review-library-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
body.ct-redesign .rd-review-library-head h2 { font: var(--display-weight) clamp(32px, 4vw, 48px)/1.08 var(--display); letter-spacing: -.02em; }
body.ct-redesign .rd-review-yelp { display: inline-flex; align-items: center; gap: 7px; color: var(--cardinal); font-weight: 700; text-underline-offset: 4px; }
body.ct-redesign .rd-review-yelp svg { width: 22px; height: 22px; }
body.ct-redesign .rd-review-filters { margin-top: 24px; }
body.ct-redesign .rd-review-filters button { min-height: 44px; cursor: pointer; text-align: left; }
body.ct-redesign .rd-review-filters .chip-link[aria-pressed="true"] { color: #fff; background: var(--cardinal); border-color: var(--cardinal); }
body.ct-redesign .rd-review-status { min-height: 1.4em; margin-top: 13px; color: var(--muted); font-size: 14px; }
body.ct-redesign .rd-review-grid { display: grid; align-items: start; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 12px 0 0; padding: 0; gap: 20px; }
body.ct-redesign .rd-review-grid .review { margin: 0; overflow-wrap: anywhere; }
body.ct-redesign .rd-review-grid .review p { font-size: 19px; }
body.ct-redesign .rd-review-grid .rd-review-topic { line-height: 1.35; }
body.ct-redesign .rd-review-more { display: flex; justify-content: center; }
body.ct-redesign .rd-review-more button:not([hidden]) { cursor: pointer; margin-top: 26px; }
body.ct-redesign .rd-review-library [hidden] { display: none; }
@media (max-width: 900px) {
  body.ct-redesign .rd-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  body.ct-redesign .rd-review-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* Related links */
body.ct-redesign .related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1040px;
  margin: 32px auto 0;
}
body.ct-redesign .related > div {
  min-width: 0;
  padding: clamp(16px, 2.2vw, 26px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--warm);
}
body.ct-redesign .related > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
body.ct-redesign .related h3 { margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
body.ct-redesign .related .chip-link.more { flex-basis: 100%; padding-bottom: 0; }
@media (max-width: 700px) {
  body.ct-redesign .related { grid-template-columns: minmax(0, 1fr); }
}
html.ct-m body.ct-redesign [data-market-related]:not(.local-ready) { visibility: hidden; }
body.ct-redesign .chips { display: flex; flex-wrap: wrap; gap: 10px; }
body.ct-redesign .chip-link { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; transition: border-color .15s ease, color .15s ease; }
body.ct-redesign .chip-link:hover { border-color: var(--cardinal); color: var(--cardinal); }
body.ct-redesign .chip-link small { font-size: 13px; font-weight: 500; color: var(--muted); }
body.ct-redesign .chip-link.more { border-color: transparent; background: none; color: var(--cardinal); padding-inline: 6px; }

/* Textbook: a plain book drawn in CSS, and the "where do you live?" picker */
body.ct-redesign .book { justify-self: center; position: relative; width: 290px; aspect-ratio: 3 / 4; padding: 30px 22px 24px 36px; border-radius: 4px 12px 12px 4px; background: #f6f1e6; color: var(--ink); box-shadow: 0 24px 50px rgba(20,5,5,.35), inset 14px 0 0 rgba(0,0,0,.08); display: flex; flex-direction: column; transform: rotate(-3deg); }
body.ct-redesign .book::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 2px; background: rgba(0,0,0,.1); }
body.ct-redesign .book-kicker { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cardinal); }
body.ct-redesign .book-title { margin-top: 10px; font: var(--display-weight) 28px/1.08 var(--display); overflow-wrap: break-word; hyphens: auto; }
body.ct-redesign .book-author { margin-top: auto; font-size: 14px; color: var(--muted); }
body.ct-redesign .picker { display: flex; flex-wrap: wrap; gap: 10px; width: min(100%, 560px); }
body.ct-redesign .picker label { width: 100%; font-size: 14px; font-weight: 600; opacity: .92; }
body.ct-redesign .select { position: relative; display: block; flex: 1 1 240px; }
body.ct-redesign .select select { width: 100%; min-height: 52px; padding: 0 44px 0 16px; border: 0; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; appearance: none; -webkit-appearance: none; }
body.ct-redesign .select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
body.ct-redesign .side-card .picker label { opacity: 1; color: var(--muted); }
body.ct-redesign .side-card .select select { border: 1px solid var(--line); }

/* Index pages */
body.ct-redesign .idx-group + .idx-group { margin-top: 52px; }
body.ct-redesign .idx-group h2 { margin-bottom: 18px; font: var(--display-weight) clamp(26px, 2.6vw, 34px)/1.15 var(--display); font-variation-settings: var(--display-fvs); }
body.ct-redesign .idx-count { margin-left: 8px; font: 500 15px/1 var(--sans); color: var(--muted); }
body.ct-redesign .card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
body.ct-redesign .link-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; line-height: 1.3; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
body.ct-redesign .link-card:hover { border-color: var(--cardinal); transform: translateY(-1px); }
body.ct-redesign .link-card svg { flex: none; width: 18px; height: 18px; color: var(--cardinal); }
body.ct-redesign .link-card small { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--muted); }
body.ct-redesign .idx-empty { display: none; padding: 28px; text-align: center; color: var(--muted); }
body.ct-redesign .note-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 56px; padding: 30px 32px; background: var(--blush); border-radius: 16px; }
body.ct-redesign .note-panel h3 { font: var(--display-weight) 28px/1.15 var(--display); font-variation-settings: var(--display-fvs); }
body.ct-redesign .note-panel p { margin-top: 6px; color: var(--muted); max-width: 40em; }
body.ct-redesign .note-panel .btn { flex: none; }
body.ct-redesign .region-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
body.ct-redesign .region-card { display: flex; flex-direction: column; padding: 28px 26px; background: #fff; border-radius: 16px; box-shadow: 0 8px 26px rgba(50,30,20,.08); }
body.ct-redesign .region-card h2 { font: var(--display-weight) 30px/1.15 var(--display); font-variation-settings: var(--display-fvs); }
body.ct-redesign .region-card p { margin-top: 12px; font-size: 16px; color: var(--muted); }
body.ct-redesign .region-card .chips { margin-top: 20px; }
body.ct-redesign .region-card .chip-link { padding: 8px 14px; font-size: 14.5px; }
body.ct-redesign .region-card .chip-link.primary { border-color: var(--cardinal); color: var(--cardinal); }
body.ct-redesign .filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
body.ct-redesign .filter { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 600; }
body.ct-redesign .filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
body.ct-redesign .tutors-index .tutor-grid { margin-top: 32px; }

/* Get started */
body.ct-redesign .gs { background: var(--band); padding-block: clamp(36px, 5vw, 72px) clamp(56px, 6vw, 96px); }
body.ct-redesign .gs-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
body.ct-redesign .gs h1 { font: var(--display-weight) clamp(38px, 4.4vw, 60px)/1.06 var(--display); font-variation-settings: var(--display-fvs); letter-spacing: -.01em; }
body.ct-redesign .gs-intro { margin-top: 14px; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 34em; }
body.ct-redesign .form-card { margin-top: 28px; padding: clamp(22px, 3vw, 36px); background: #fff; border-radius: 18px; box-shadow: 0 12px 34px rgba(50,30,20,.08); }
body.ct-redesign .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
body.ct-redesign .field { display: flex; flex-direction: column; gap: 7px; }
body.ct-redesign .field.full { grid-column: 1 / -1; }
body.ct-redesign .field > span, body.ct-redesign .field legend { font-size: 15px; font-weight: 600; }
body.ct-redesign .field em { font-style: normal; font-weight: 400; color: var(--muted); }
body.ct-redesign .field input[type=text], body.ct-redesign .field input[type=email], body.ct-redesign .field input[type=tel], body.ct-redesign .field textarea, body.ct-redesign .field .select select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #d6d1c9; border-radius: 8px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
body.ct-redesign .field textarea { min-height: 110px; resize: vertical; }
body.ct-redesign .field input:focus, body.ct-redesign .field textarea:focus, body.ct-redesign .field select:focus { outline: 2px solid var(--cardinal); outline-offset: 0; border-color: transparent; }
body.ct-redesign fieldset.field { margin: 0; padding: 0; border: 0; }
body.ct-redesign .field .select { flex: none; }
body.ct-redesign .field > span.select { font-size: inherit; font-weight: inherit; }
body.ct-redesign .opts { display: flex; flex-wrap: wrap; gap: 8px; }
body.ct-redesign .opt { position: relative; }
body.ct-redesign .opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
body.ct-redesign .opt span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border: 1px solid #d6d1c9; border-radius: 999px; font-size: 15px; font-weight: 500; }
body.ct-redesign .opt input:checked + span { background: var(--cardinal); border-color: var(--cardinal); color: #fff; }
body.ct-redesign .opt input:focus-visible + span { outline: 3px solid #e3a008; outline-offset: 2px; }
body.ct-redesign .form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 26px; }
body.ct-redesign .form-foot .btn { min-height: 56px; padding: 0 34px; font-size: 18px; border: 0; }
body.ct-redesign .form-foot p { font-size: 14px; color: var(--muted); }
body.ct-redesign .form-done { display: none; text-align: center; padding: 30px 10px; }
body.ct-redesign .form-done h2 { font: var(--display-weight) 36px/1.1 var(--display); }
body.ct-redesign .form-done p { margin: 12px auto 0; max-width: 28em; color: var(--muted); }
body.ct-redesign .form-card.sent form { display: none; }
body.ct-redesign .form-card.sent .form-done { display: block; }
body.ct-redesign .next { position: sticky; top: 108px; }
body.ct-redesign .next h2 { font: var(--display-weight) 28px/1.15 var(--display); font-variation-settings: var(--display-fvs); }
body.ct-redesign .timeline { list-style: none; margin: 20px 0 0; padding: 0; }
body.ct-redesign .timeline li { position: relative; display: flex; gap: 16px; padding-bottom: 22px; }
body.ct-redesign .timeline li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 2px; background: var(--line); }
body.ct-redesign .timeline .dot { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cardinal); color: #fff; font-size: 14px; font-weight: 700; }
body.ct-redesign .timeline b { display: block; line-height: 1.3; padding-top: 4px; }
body.ct-redesign .timeline span { display: block; margin-top: 3px; font-size: 15px; color: var(--muted); }
body.ct-redesign .faces { display: flex; align-items: center; margin-top: 10px; }
body.ct-redesign .faces .face-clip { width: 52px; height: 52px; border: 3px solid var(--band); margin-left: -12px; }
body.ct-redesign .faces .face-clip:first-child { margin-left: 0; }
body.ct-redesign .faces-label { margin-left: 12px; font-size: 14px; color: var(--muted); line-height: 1.3; }
body.ct-redesign .next .review { margin: 24px 0 0; }

/* Sticky CTA bar on phones (landing pages) */
body.ct-redesign .sticky-cta { display: none; }

@media (max-width: 1080px) {
  body.ct-redesign .card-grid { grid-template-columns: repeat(3, 1fr); }
  body.ct-redesign .region-cards { grid-template-columns: 1fr 1fr; }
  body.ct-redesign .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  body.ct-redesign .lp .hero-body { padding-block: 6px 28px; }
  body.ct-redesign .lp-headline { font-size: clamp(32px, 9vw, 46px); }
  body.ct-redesign .lp-intro { margin-top: 14px; font-size: 16px; }
  body.ct-redesign .hero-actions { margin-top: 20px; gap: 12px; }
  body.ct-redesign .hero-actions .btn { width: 100%; }
  body.ct-redesign .lp .hero-card { width: 100%; }
  body.ct-redesign .lp .hero-card .tc { --face: 110px; }
  body.ct-redesign .lp .hero-card .tc > .face-clip { margin-bottom: -30px; }
  body.ct-redesign .lp .hero-card .tc-card { padding-top: 40px; }
  body.ct-redesign .book { width: 230px; margin-top: 8px; }
  body.ct-redesign .book-title { font-size: 21px; }
  body.ct-redesign .article-wrap { grid-template-columns: 1fr; }
  body.ct-redesign .article { font-size: 17px; }
  body.ct-redesign .side { position: static; }
  body.ct-redesign .review-row { grid-template-columns: 1fr; }
  body.ct-redesign .card-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  body.ct-redesign .link-card { min-height: 56px; padding: 12px 14px; font-size: 15px; }
  body.ct-redesign .region-cards { grid-template-columns: 1fr; }
  body.ct-redesign .note-panel { flex-direction: column; align-items: flex-start; padding: 24px; }
  body.ct-redesign .note-panel .btn { width: 100%; }
  body.ct-redesign .gs-grid { grid-template-columns: 1fr; }
  body.ct-redesign .fields { grid-template-columns: 1fr; }
  body.ct-redesign .next { position: static; }
  body.ct-redesign .foot-grid { grid-template-columns: 1fr; }
  body.ct-redesign .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 22px rgba(0,0,0,.14); transform: translateY(110%); transition: transform .2s ease; }
  body.ct-redesign .sticky-cta.show { transform: none; }
  body.ct-redesign .sticky-cta .btn { flex: 1; min-height: 50px; }
  
  
}
@media (max-width: 820px) {
  body.ct-redesign .tutor-grid.stack { flex-wrap: wrap; overflow: visible; margin: 28px 0 0; padding: 0; }
  body.ct-redesign .tutor-grid.stack .grid-card { flex: 1 1 100%; }
}

/* Round 2 (2026-11-09) */
body.ct-redesign .hero-title.long .hl-line { display: inline; white-space: normal; }
body.ct-redesign .article .article-title { margin: 0 0 18px; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; }
body.ct-redesign .side-ratings { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
body.ct-redesign .side-ratings a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; border-radius: 10px; text-decoration: none; transition: background .15s ease; }
body.ct-redesign .side-ratings a:hover { background: var(--warm); }
body.ct-redesign .side-ratings svg { width: 26px; height: 26px; }
body.ct-redesign .side-ratings b { font-size: 18px; line-height: 1.1; color: var(--yellow); font-weight: 800; }
body.ct-redesign .side-ratings .stars { color: var(--yellow); font-size: 13px; letter-spacing: 1px; }
body.ct-redesign .apply-note { margin-top: 32px; text-align: center; color: var(--muted); }
body.ct-redesign .apply-note a { font-weight: 700; color: var(--cardinal); text-underline-offset: 4px; white-space: nowrap; }
body.ct-redesign .field legend { margin-bottom: 14px; padding: 0; }
body.ct-redesign .course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
body.ct-redesign .course-col { padding: 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
body.ct-redesign .course-col h3 { margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cardinal); }
body.ct-redesign .course-col ul { list-style: none; margin: 0; padding: 0; }
body.ct-redesign .course-col li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 16px; line-height: 1.35; }
body.ct-redesign .course-col li svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--cardinal); stroke-width: 2; }
@media (max-width: 1080px) { body.ct-redesign .course-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) { body.ct-redesign .course-grid { gap: 10px; } body.ct-redesign .course-col { padding: 18px 16px; } body.ct-redesign .course-col li { font-size: 15px; } }
body.ct-redesign .side-ratings .score { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
/* Homepages on phones: the rotating tutor sits above the headline (Mike, 2026-11-10) */
@media (max-width: 820px) {
  body.ct-redesign .hero-body > #hero-card { order: -1; }
  /* Shorter than a full screen, so the next section's title and a line of its blurb peek in (Mike, 2026-11-10) */
  body.ct-redesign .hero:has(#hero-card) { min-height: 0; }
  body.ct-redesign .hero-body:has(> #hero-card) { justify-content: flex-start; gap: 34px; padding-block: 12px 58px; }
  body.ct-redesign .hero-body > #hero-card .tc { --face: 104px; }
  body.ct-redesign .hero-body > #hero-card .tc > .face-clip { margin-bottom: -30px; border-width: 4px; }
  body.ct-redesign .hero-body > #hero-card .tc-card { padding: 38px 14px 14px; }
  body.ct-redesign .hero-body > #hero-card .tc-name { font-size: 22px; }
  body.ct-redesign .hero-body > #hero-card .tc-acc { margin-top: 10px; }
  body.ct-redesign .hero-body > #hero-card .tc-acc svg { width: 22px; height: 22px; margin-bottom: 4px; }
  body.ct-redesign .hero-body > #hero-card .tc-acc > div { font-size: 13px; }
  body.ct-redesign .hero-body:has(> #hero-card) .hero-title { font-size: clamp(32px, 9.4vw, 46px); }
  body.ct-redesign .hero-body:has(> #hero-card) .hero-place { margin-top: 10px; }
  body.ct-redesign .hero-body:has(> #hero-card) .btn { margin-top: 18px; }
  body.ct-redesign .hero:has(#hero-card) + main #how { padding-top: 50px; }
}
/* Landing pages on phones: the eyebrow, then the rotating tutor (or the book), then the headline (Mike, 2026-11-10) */
@media (max-width: 820px) {
  body.ct-redesign .lp:not(.short) .hero-body { gap: 0; align-items: stretch; }
  body.ct-redesign .lp:not(.short) .hero-body > div:first-child { display: contents; }
  body.ct-redesign .lp:not(.short) .lp-h1 { order: -2; margin-bottom: 16px; }
  body.ct-redesign .lp:not(.short) .hero-body > :is(.hero-card, .book) { order: -1; margin-bottom: 30px; }
  body.ct-redesign .lp:not(.short) .hero-body > .book { align-self: center; }
}
/* Homepages on desktop: a shorter hero, so the next section's title, blurb and the tops of the step cards
   show above the fold (Mike, 2026-11-10) */
@media (min-width: 821px) {
  body.ct-redesign .hero:has(#hero-card) { min-height: 0; }
  body.ct-redesign .hero-body:has(> #hero-card) { padding-block: 70px 94px; }
  body.ct-redesign .hero-body > #hero-card { margin-bottom: 12px; }
  body.ct-redesign .hero-body > #hero-card .tc { --face: 172px; }
  body.ct-redesign .hero-body > #hero-card .tc > .face-clip { margin-bottom: -48px; }
  body.ct-redesign .hero-body > #hero-card .tc-card { padding-top: 58px; }
  body.ct-redesign .hero:has(#hero-card) + main #how { padding-top: 48px; }
  body.ct-redesign .hero:has(#hero-card) + main #how .how-blurb { margin-top: 16px; }
  body.ct-redesign .hero:has(#hero-card) + main #how .props { margin-top: 30px; }
}

/* Tutors index: filters sit close under the hero; subjects, then services (Mike, 2026-11-10) */
body.ct-redesign .tutors-index.section { padding-top: 32px; }
body.ct-redesign .tutors-index .filters { margin-top: 0; }
body.ct-redesign .filter-sep { align-self: center; width: 1px; height: 24px; margin: 0 6px; background: var(--line); }
@media (max-width: 820px) { body.ct-redesign .filter-sep { flex-basis: 100%; width: 0; height: 0; margin: 0; } }
body.ct-redesign .tutors-index .filters { gap: 6px; }
body.ct-redesign .tutors-index .filter { padding: 0 14px; font-size: 14.5px; }

/* ---- WordPress build additions (redesign-extra.css) ---- */
/* WordPress additions to the wireframe's CSS. build.mjs appends this to redesign.css and scopes it like the rest. */

/* The icon sprite (Yelp, Google) sits at the top of the header component. */
body.ct-redesign .rd-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* The theme's skip link: hidden until a keyboard user tabs to it. */
body.ct-redesign .skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; }
body.ct-redesign .skip-link:focus { top: 12px; }

/* Hero: every tutor in the rotation is in the page; one shows at a time. */
body.ct-redesign .hero-slide[hidden] { display: none; }

/* Homepages lead with six cards on desktop. The full tutor directory is available at every width. */
@media (min-width: 821px) { body.ct-redesign.ct-rd-home .tutor-grid .grid-card:nth-child(n + 7) { display: none; } }

/* Reviews: the Yelp card only (Google has one review). On phones it keeps the width of one of the wireframe's two cards. */
@media (max-width: 820px) {
  body.ct-redesign .ratings { justify-content: center; }
  body.ct-redesign .ratings .rating { flex: 0 1 200px; }
}

/* ---- Page templates (redesign/pages.php) ---- */

/* The page's own writing, which comes from WordPress as it is (older pages included). */
body.ct-redesign .article h3 { margin: 36px 0 12px; font: var(--display-weight) clamp(22px, 2vw, 26px)/1.2 var(--display); }
body.ct-redesign .article ul, body.ct-redesign .article ol { margin: 16px 0; padding-left: 1.3em; }
body.ct-redesign .article li + li { margin-top: 6px; }
body.ct-redesign .article img { height: auto; border-radius: 12px; }
body.ct-redesign .article figure { margin: 24px 0; }
body.ct-redesign .article table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 16px; }
body.ct-redesign .article th, body.ct-redesign .article td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
body.ct-redesign .article .chips { margin: 18px 0 8px; }
body.ct-redesign .article .chip-link { color: var(--ink); text-decoration: none; }
body.ct-redesign .article-wrap.single { grid-template-columns: minmax(0, 760px); justify-content: center; }
body.ct-redesign .lp-intro a { color: #fff; text-underline-offset: 3px; }
/* A page's own review box (older pages, and the school pages' one quote) looks like the pull quote. */
body.ct-redesign .article .ct-reviews, body.ct-redesign .article .ct-subject-review { margin: 40px 0; padding: 26px 28px 22px; background: var(--band); border-radius: 16px; }
body.ct-redesign .article .ct-reviews blockquote, body.ct-redesign .article .ct-subject-review blockquote { margin: 0; padding: 0; border: 0; }
body.ct-redesign .article .ct-reviews blockquote + blockquote { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
body.ct-redesign .article .ct-reviews blockquote p, body.ct-redesign .article .ct-subject-review blockquote p { margin: 0; font: 20px/1.45 var(--text-serif); }
body.ct-redesign .article .ct-reviews blockquote p + p, body.ct-redesign .article .ct-subject-review blockquote p + p { margin-top: 10px; font: 600 14px/1.4 var(--sans); color: var(--muted); }
body.ct-redesign .article .ct-reviews cite, body.ct-redesign .article .ct-subject-review cite { display: block; margin-top: 10px; font: 600 14px/1.4 var(--sans); font-style: normal; color: var(--muted); }
body.ct-redesign .article .ct-subject-proof__label, body.ct-redesign .article .ct-reviews__label { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cardinal); }
body.ct-redesign .article .ct-subject-review p:not(blockquote p):not(.ct-subject-proof__label) { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* Form pages: the Gravity Forms form as it is, styled like the wireframe's fields. No nav button: the form is the page. */
body.ct-redesign.ct-rd-form .nav-links a.btn { display: none; }
body.ct-redesign .gs h1 { font-size: clamp(36px, 4.4vw, 55px); text-wrap: balance; }
body.ct-redesign .gs .gs-intro { max-width: 36em; }
body.ct-redesign .gs .form-card { margin-top: 28px; }
/* The content parser strips the plugin's inline styles. These elements are never part of the visible form. */
body.ct-redesign .gs iframe[id^="gform_ajax_frame_"],
body.ct-redesign .gs .akismet-fields-container { display: none; }
body.ct-redesign .gs:not(.show-attribution-qa) #ct-attribution-qa { display: none; }
body.ct-redesign .gform_wrapper .gform_heading, body.ct-redesign .gform_wrapper .gform_required_legend { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
body.ct-redesign .gform_wrapper form { margin: 0; }
body.ct-redesign .gform_wrapper .gform_fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin: 0; padding: 0; list-style: none; }
body.ct-redesign .gform_wrapper .gfield { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0; border: 0; }
body.ct-redesign .gform_wrapper .gfield--width-half { grid-column: span 1; }
body.ct-redesign .gform_wrapper .gfield_visibility_hidden, body.ct-redesign .gform_wrapper .gform_validation_container, body.ct-redesign .gform_wrapper .gfield--type-honeypot { display: none !important; }
body.ct-redesign .gform_wrapper .gfield_label, body.ct-redesign .gform_wrapper legend.gfield_label { display: block; margin: 0 0 8px; padding: 0; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); }
body.ct-redesign .gform_wrapper fieldset.gfield legend.gfield_label { margin-bottom: 12px; }
body.ct-redesign .gform_wrapper .gfield_required { margin-left: 2px; color: var(--cardinal); font-weight: 600; }
body.ct-redesign .gform_wrapper .gfield_required_text { font-size: 13px; font-weight: 400; color: var(--muted); }
body.ct-redesign .gform_wrapper .gfield_description, body.ct-redesign .gform_wrapper .ginput_counter { margin-top: 6px; font-size: 14px; color: var(--muted); }
body.ct-redesign .gform_wrapper input[type=text], body.ct-redesign .gform_wrapper input[type=email], body.ct-redesign .gform_wrapper input[type=tel], body.ct-redesign .gform_wrapper input[type=number], body.ct-redesign .gform_wrapper input[type=url], body.ct-redesign .gform_wrapper select, body.ct-redesign .gform_wrapper textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #d6d1c9; border-radius: 8px; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink); box-sizing: border-box;
}
body.ct-redesign .gform_wrapper select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23625d57' stroke-width='2'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E") no-repeat right 16px center; }
body.ct-redesign .gform_wrapper textarea { min-height: 120px; resize: vertical; }
body.ct-redesign .gform_wrapper input:focus, body.ct-redesign .gform_wrapper select:focus, body.ct-redesign .gform_wrapper textarea:focus { outline: 2px solid var(--cardinal); outline-offset: 0; border-color: transparent; }
body.ct-redesign .gform_wrapper .ginput_complex { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body.ct-redesign .gform_wrapper .ginput_complex label { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
/* Checkboxes and radios as the wireframe's pills */
body.ct-redesign .gform_wrapper .gfield_checkbox, body.ct-redesign .gform_wrapper .gfield_radio { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
body.ct-redesign .gform_wrapper .gchoice { position: relative; margin: 0; }
body.ct-redesign .gform_wrapper .gchoice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
body.ct-redesign .gform_wrapper .gchoice label { display: inline-flex; align-items: center; min-height: 42px; margin: 0; padding: 0 16px; border: 1px solid #d6d1c9; border-radius: 999px; font-size: 15px; font-weight: 500; line-height: 1.25; cursor: pointer; }
body.ct-redesign .gform_wrapper .gchoice:has(input:checked) label { background: var(--cardinal); border-color: var(--cardinal); color: #fff; }
body.ct-redesign .gform_wrapper .gchoice:has(input:focus-visible) label { outline: 3px solid #e3a008; outline-offset: 2px; }
body.ct-redesign .gform_wrapper .gchoice input[type=text] { position: static; opacity: 1; width: auto; height: auto; margin-top: 8px; }
body.ct-redesign .gform_wrapper .gform_footer, body.ct-redesign .gform_wrapper .gform_page_footer { margin-top: 26px; padding: 0; }
body.ct-redesign .gform_wrapper .gform_footer input[type=submit], body.ct-redesign .gform_wrapper .gform_footer button, body.ct-redesign .gform_wrapper .gform_page_footer input[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 36px; border: 0; border-radius: 8px;
  background: var(--cardinal); color: #fff; font: 700 18px/1 var(--sans); cursor: pointer; transition: background .15s ease, transform .15s ease;
}
body.ct-redesign .gform_wrapper .gform_footer input[type=submit]:hover, body.ct-redesign .gform_wrapper .gform_footer button:hover { background: var(--cardinal-dark); transform: translateY(-1px); }
body.ct-redesign .gform_wrapper .gfield_error input, body.ct-redesign .gform_wrapper .gfield_error select, body.ct-redesign .gform_wrapper .gfield_error textarea { border-color: #c0392b; }
body.ct-redesign .gform_wrapper .validation_message, body.ct-redesign .gform_wrapper .gform_validation_errors { margin-top: 6px; font-size: 14px; color: #b3261e; }
body.ct-redesign .gform_wrapper .gform_validation_errors { margin: 0 0 18px; padding: 14px 16px; border-radius: 10px; background: #fdecea; }
body.ct-redesign .gform_confirmation_message { font-size: 18px; }
/* Match the wireframe's layout for the shared family form while keeping Gravity Forms' own field order. */
body.ct-redesign .gs #gform_fields_11 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
body.ct-redesign .gs #gform_fields_11 > .gfield { grid-column: 1 / -1; }
body.ct-redesign .gs #gform_fields_11 > :is(#field_11_1, #field_11_50, #field_11_18:has(+ #field_11_19), #field_11_18 + #field_11_19) { grid-column: span 1; }
body.ct-redesign .gs #gform_11 .ginput_container > :is(input, select, textarea):not([type=checkbox], [type=radio]) { width: 100%; }
body.ct-redesign .gs #gform_11 .ginput_container_textarea > textarea { display: block; height: 120px; }
body.ct-redesign .gs .gform_wrapper .gchoice { max-width: 100%; align-items: start; }
body.ct-redesign .gs .gform_wrapper .gchoice input:is([type=checkbox], [type=radio]) { inset: auto; width: 1px; height: 1px; }
/* Keep the Other pill in the radio row. Its text input gets a row of its own. */
body.ct-redesign .gs .gform_wrapper .gchoice:has(> .gchoice_other_control) { display: contents; }
body.ct-redesign .gs .gform_wrapper .gchoice:has(> .gchoice_other_control) > br { display: none; }
body.ct-redesign .gs .gform_wrapper .gchoice input.gchoice_other_control { flex: 1 0 100%; order: 1; margin: 0; width: 100%; min-width: 0; cursor: text; }
body.ct-redesign .gs .gform_wrapper .gchoice input[type=text]:disabled { display: none; }
body.ct-redesign .gs .gform_wrapper .gchoice label { max-width: 100%; padding: 8px 14px; }
body.ct-redesign .gs .gform_wrapper .gform_footer .gform_button {
  min-height: 56px; margin: 0; padding-inline: 34px; border-radius: 999px;
  background: var(--cardinal); font: 700 18px/1 var(--sans);
}
body.ct-redesign .gs .gform_wrapper .gform_footer .gform_button:hover { background: var(--cardinal-dark); }
/* Keep whole parent reviews beside the form and let them scroll with it. */
body.ct-redesign .gs .next { position: static; }
body.ct-redesign .next .faces { margin: 20px 0 0; }
body.ct-redesign .rd-form-reviews h2 { margin-bottom: 16px; }
body.ct-redesign .rd-form-reviews .review { margin: 0 0 16px; }
body.ct-redesign .rd-form-reviews .review:last-child { margin-bottom: 0; }
body.ct-redesign .rd-form-reviews .review p { font-size: 17px; }
body.ct-redesign .rd-form-reviews .rd-review-topic { display: none; }
body.ct-redesign .next .ct-reviews__label { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cardinal); }
body.ct-redesign .next .ct-review { margin: 0 0 14px; padding: 18px 20px; background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(50,30,20,.06); }
body.ct-redesign .next .ct-review p { margin: 0; font: 17px/1.45 var(--text-serif); }
body.ct-redesign .next .ct-review cite { display: block; margin-top: 10px; font: 600 13px/1.3 var(--sans); font-style: normal; color: var(--muted); }
body.ct-redesign .next .ct-reviews__more { font-size: 14px; }
body.ct-redesign .next .ct-reviews__more a { color: var(--cardinal); font-weight: 700; }
@media (max-width: 820px) {
  body.ct-redesign .gform_wrapper .gform_fields { grid-template-columns: 1fr; }
  body.ct-redesign .gform_wrapper .gfield--width-half { grid-column: 1 / -1; }
  body.ct-redesign .gform_wrapper .gform_footer input[type=submit] { width: 100%; }
  body.ct-redesign .gs .gform_wrapper .gform_footer .gform_button { width: 100%; }
  body.ct-redesign .gs #gform_fields_11 { grid-template-columns: minmax(0, 1fr); }
  body.ct-redesign .rd-form-reviews :is(.review, .ct-review):nth-of-type(n + 3) { display: none; }
}
/* A page that is all reviews (Testimonials): each quote is its own card. */
body.ct-redesign.ct-rd-simple .article .ct-reviews { padding: 0; background: none; }
body.ct-redesign.ct-rd-simple .article .ct-reviews blockquote { padding: 22px 24px 18px; background: var(--band); border-radius: 14px; }
body.ct-redesign.ct-rd-simple .article .ct-reviews blockquote + blockquote { margin-top: 14px; padding-top: 22px; border-top: 0; }
/* The side card has one rating (Yelp; Google's card is gone), so it sits centered instead of in the left of two columns. */
body.ct-redesign .side-ratings { grid-template-columns: 1fr; justify-items: center; }

/* ---- Staging fixes (2026-11-13): CSS and scripts the live site and staging add to every page ---- */
body.ct-redesign /* A plugin's plain "h1, body.ct-redesign h2 { color }" rule beat the headings' inherited color (the red hero's white went grey). */
body.ct-redesign :is(h1, h2, h3, h4, h5, h6) { color: inherit; }
body.ct-redesign .section-title, body.ct-redesign .tc-name, body.ct-redesign .prop h3, body.ct-redesign .article h2, body.ct-redesign .article h3, body.ct-redesign .side-card h3, body.ct-redesign .gs h1, body.ct-redesign .idx-group h2, body.ct-redesign .region-card h2, body.ct-redesign .note-panel h3 { color: var(--ink); }
body.ct-redesign .hero :is(h1, h2, p), body.ct-redesign .bottom-cta :is(h1, h2, p) { color: inherit; }
/* Live's inline "Find a Tutor" button (WPCode 1380) inside a page's writing: the side card is the page's button. */
body.ct-redesign .article a.cta-red, body.ct-redesign .ct-inline-cta, body.ct-redesign .ct-home-closing { display: none !important; }
/* Live's floating Find a Tutor button (WPCode): the new pages have their own on phones and none on desktop. */
body.ct-redesign #ct-sticky-cta { display: none !important; }
/* The WordPress admin bar (signed-in editors, everyone on staging) sits above the sticky nav. */
body.ct-redesign.admin-bar .topbar { top: 32px; }
@media (max-width: 782px) { body.ct-redesign.admin-bar .topbar { top: 46px; } }

/* Keep the viewport as the sticky header's scrolling ancestor. */
body.ct-redesign html:has(body.ct-redesign), body.ct-redesign.ct-redesign { overflow-x: clip !important; }
@media (max-width: 600px) { body.ct-redesign.admin-bar .topbar { top: 0; } }

/* Invisible slides and full headlines reserve the largest footprint at each screen width. */
body.ct-redesign .hero-card, body.ct-redesign .hero-title { display: grid; }
body.ct-redesign .hero-slide, body.ct-redesign .hero-title > span { grid-area: 1 / 1; }
body.ct-redesign .hero-card .hero-slide[hidden] { display: block; visibility: hidden; }
body.ct-redesign .hero-title .headline-sizer { visibility: hidden; }
body.ct-redesign .prop .btn { margin-top: 18px; }
body.ct-redesign .prop .btn svg { width: 20px; height: 20px; margin: 0; color: inherit; }
body.ct-redesign .home-local { background: var(--warm); }
body.ct-redesign .home-local .article { max-width: 780px; }
body.ct-redesign .home-local .article .section-title { margin: 0 0 20px; text-align: left; }

/* November 14 staging review */
body.ct-redesign .hero-place { max-width: 40ch; }
body.ct-redesign .rd-guarantee { max-width: 43ch; margin: 14px 0 0; font-size: 15px; line-height: 1.45; }
body.ct-redesign .rd-guarantee strong { font-weight: 700; }
body.ct-redesign .gs .rd-guarantee { color: var(--muted); }
body.ct-redesign .gs .rd-guarantee strong { color: var(--cardinal); }
body.ct-redesign .rd-form-contact { margin-bottom: 28px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
body.ct-redesign .rd-form-contact strong { font-size: 17px; color: var(--ink); }
body.ct-redesign .rd-form-contact p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
body.ct-redesign .rd-form-contact a { color: var(--cardinal); font-weight: 650; text-underline-offset: 2px; }
body.ct-redesign .rd-landing > .section { padding-block: clamp(28px, 4.2vw, 62px); }
body.ct-redesign .rd-landing-reviews .wall-box { margin-top: 28px; }
body.ct-redesign .rd-landing-reviews .wall { height: 580px; }
@media (min-width: 821px) { body.ct-redesign .rd-landing .side { top: 142px; } }
@media (min-width: 821px) {
  body.ct-redesign.ct-rd-town .review-row { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
}
@media (max-width: 820px) {
  body.ct-redesign.has-sticky .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

body.ct-redesign .rd-review-topic { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
body.ct-redesign .rd-more-reviews { margin: 28px auto 0; }
body.ct-redesign .rd-more-reviews > summary { width: fit-content; margin-inline: auto; color: var(--cardinal); cursor: pointer; font-weight: 700; }
body.ct-redesign .tutors-index .grid-card[hidden] { display: none; }
body.ct-redesign .tc-acc > div:only-child { grid-column: 1 / -1; }

/* Keep the expanded Services list reachable on short screens. */
body.ct-redesign .nav-links .menu { max-height: calc(100dvh - 148px); overflow-y: auto; }
@media (max-width: 820px) {
  body.ct-redesign .nav-links.open { max-height: calc(100dvh - 112px); overflow-y: auto; }
  body.ct-redesign .nav-links .menu { max-height: none; overflow: visible; }
}

/* ---- 2026-11-15 ---- */
/* Phones: Find a Tutor in the header from load, between the wordmark and the menu icon (the hero's button is below
   the first screen, and the bottom bar only appears once the hero has scrolled away). Not on the form pages. */
body.ct-redesign .nav-cta { display: none; }
@media (max-width: 820px) {
  body.ct-redesign .nav { gap: 6px; }
  body.ct-redesign .wordmark { white-space: nowrap; }
  body.ct-redesign .nav-cta { display: inline-flex; flex: none; min-height: 38px; margin-left: auto; padding: 0 12px; font-size: 14px; line-height: 1; white-space: nowrap; }
  body.ct-redesign.ct-rd-form .nav-cta { display: none; }
}
@media (max-width: 359px) {
  body.ct-redesign .wordmark { font-size: 21px; }
  body.ct-redesign .nav-cta { padding: 0 10px; font-size: 13.5px; }
}
/* Homes: the headline's invisible sizer copies take their words from CSS, so the sentence is in the HTML once. */
body.ct-redesign .headline-sizer [data-hl="a"]::before { content: var(--hl-a, ""); }
body.ct-redesign .headline-sizer [data-hl="b"]::before { content: var(--hl-b, ""); }
body.ct-redesign .headline-sizer [data-w]::before { content: attr(data-w); }
/* Schools and towns pages: the page's own paragraphs, beside the cards built from its lists. */
body.ct-redesign .idx-text { max-width: 46em; margin: 0 0 18px; }
body.ct-redesign .card-grid + .idx-text { margin-top: 18px; }
body.ct-redesign .idx-text a, body.ct-redesign .region-card p a, body.ct-redesign .note-panel p a { color: var(--cardinal); text-underline-offset: 2px; }
body.ct-redesign .idx-closing { margin-top: 44px; }
body.ct-redesign .idx-closing .idx-text:last-child { margin-bottom: 0; }
body.ct-redesign .region-cards + .idx-closing { margin-top: 32px; }
body.ct-redesign .link-card[hidden], body.ct-redesign .idx-group[hidden] { display: none; }
/* Reviews wall: the columns scroll once redesign.js has added each column's second copy (the HTML holds one). */
body.ct-redesign .wall:not(.is-looped) .col { animation: none; }
body.ct-redesign .rd-more-reviews[hidden] { display: none; }
/* The online section (/tutoring/ and its university pages) and the 404 page, in the new design. */
body.ct-redesign .rd-vision { font-weight: 700; opacity: 1; }
body.ct-redesign .rd-vision + .lp-intro { margin-top: 8px; }
body.ct-redesign .rd-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 20px 0 0; padding: 0; font-size: 14.5px; opacity: .9; }
body.ct-redesign .rd-facts li::before { content: "✓"; margin-right: 7px; opacity: .8; }
body.ct-redesign .rd-center { justify-content: center; }
body.ct-redesign .rd-online .article > :first-child { margin-top: 0; }
body.ct-redesign .rd-online .article section + section, body.ct-redesign .rd-online .article aside + section, body.ct-redesign .rd-online .article div + section { margin-top: 44px; }
body.ct-redesign .rd-online .ct-c-proof-pair { display: grid; gap: 16px; }
body.ct-redesign .rd-online .ct-c-proof { margin: 32px 0; padding: 24px 26px 20px; background: var(--band); border-radius: 16px; }
body.ct-redesign .rd-online .ct-c-proof-pair .ct-c-proof { margin: 0; }
body.ct-redesign .rd-online .ct-c-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cardinal); }
body.ct-redesign .rd-online .ct-c-proof blockquote { margin: 0; padding: 0; border: 0; }
body.ct-redesign .rd-online .ct-c-proof blockquote p { margin: 0; font: 20px/1.45 var(--text-serif); }
body.ct-redesign .rd-online .ct-c-proof cite { display: block; margin-top: 12px; font-size: 14.5px; font-style: normal; color: var(--muted); }
body.ct-redesign .rd-online .ct-c-proof cite a { color: var(--cardinal); text-underline-offset: 2px; }
body.ct-redesign .rd-online .ct-c-undecided { padding: 26px 28px; background: var(--blush); border-radius: 16px; }
body.ct-redesign .rd-online .ct-c-undecided h2 { margin-top: 0; }
body.ct-redesign .rd-online .ct-c-undecided .btn { margin-top: 18px; }
body.ct-redesign .rd-online .article .btn { text-decoration: none; color: #fff; }
body.ct-redesign .rd-online .ct-dream-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
body.ct-redesign .rd-online a.ct-dream-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
body.ct-redesign .rd-online a.ct-dream-card:hover { border-color: var(--cardinal); }
body.ct-redesign .rd-online .ct-dream-card__name { font-size: 17px; font-weight: 700; }
body.ct-redesign .rd-online .ct-dream-card__go { font-size: 14px; color: var(--cardinal); }
body.ct-redesign .rd-online .ct-dream-alt { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; font-size: 15.5px; }
body.ct-redesign .rd-online .ct-dream-alt a, body.ct-redesign .rd-online .ct-dream-another a, body.ct-redesign .rd-online .ct-c-school-links a { color: var(--cardinal); text-underline-offset: 2px; }
body.ct-redesign .rd-online .ct-c-step-list { list-style: none; margin: 20px 0 0; padding: 0; counter-reset: st; display: grid; gap: 14px; }
body.ct-redesign .rd-online .ct-c-step-list li { position: relative; padding: 2px 0 2px 46px; counter-increment: st; }
body.ct-redesign .rd-online .ct-c-step-list li::before { content: counter(st); position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blush); color: var(--cardinal); font-weight: 700; }
body.ct-redesign .rd-online .ct-c-step-list h3 { margin: 0; font-size: 18px; }
body.ct-redesign .rd-online .ct-c-step-list p { margin: 4px 0 0; }
body.ct-redesign .rd-online .ct-dream-another { margin-top: 36px; }
body.ct-redesign .rd-missing-links { margin-top: 22px; justify-content: center; }
@media (max-width: 820px) {
  body.ct-redesign .rd-online .ct-dream-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.ct-redesign .rd-online .ct-c-proof, body.ct-redesign .rd-online .ct-c-undecided { padding: 20px; }
}

/* The online section's footer has three columns. This was an inline style, which also held on phones and pushed
   "Where we tutor" off the right edge at 375px; as a class it applies only above the phone breakpoint (2026-11-15). */
@media (min-width: 821px) {
  body.ct-redesign .foot-grid.foot-3 { grid-template-columns: 1.15fr 1fr 1.4fr; }
}
