/* ChemLab — shared styles.
   Direction: warm and friendly, like the best course/product sites. Cream paper, warm brown ink,
   one persimmon accent, and a pastel color for each class so the offer reads at a glance.
   Type: Bricolage Grotesque for headlines, DM Sans for text. */
:root {
  --bg: #fff8f1;
  --paper: #ffffff;
  --ink: #2b211c;
  --muted: #6b5d55;
  --line: #efe3d8;
  --accent: #d4502c;
  --accent-hover: #b9431f;
  --accent-soft: #ffe6da;
  --peach: #ffe3d3;
  --butter: #fff0c4;
  --sage: #dcefd8;
  --lilac: #e9e2fb;
  --star: #f4a21e;
  --danger: #b3261e;
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --font: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1160px;
  --r: 24px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6vw, 4.9rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 46ch; }
.kicker { font-weight: 600; color: var(--accent); font-size: .95rem; }
section { padding: 104px 0; }
.head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 640px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
@media (max-width: 760px) { section { padding: 76px 0; } .head { margin-bottom: 32px; } }

/* Buttons */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 1rem/1 var(--font); padding: 16px 26px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px rgba(212,80,44,.7); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.link { color: var(--accent); font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link .arr { transition: transform .2s; }
.link:hover .arr { transform: translateX(4px); }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%) scale(0); background: rgba(212,80,44,.18); animation: ripple .6s ease-out forwards; }
.btn-primary .ripple { background: rgba(255,255,255,.35); }
@keyframes ripple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* Announcement + nav */
.announce { display: block; text-align: center; padding: 10px 20px; font-size: .9rem; font-weight: 500; background: var(--ink); color: #fff3ea; text-decoration: none; }
.announce span { color: #ffb38f; margin-left: 6px; }
.announce:hover span { text-decoration: underline; }
.nav { position: sticky; top: 0; z-index: 30; background: rgba(255,248,241,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.nav.scrolled { border-color: var(--line); }
.nav-in { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.03em; text-decoration: none; color: var(--ink); }
.logo .l { display: inline-flex; align-items: center; color: var(--accent); }
.logo svg { width: 14px; height: 19px; margin: 0 1px; transform: translateY(1px); }
.links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: .96rem; font-weight: 500; }
.links a { color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.links a:hover { color: var(--ink); background: rgba(43,33,28,.05); }
.links a[aria-current="page"] { color: var(--ink); background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line); }
.nav-right { display: flex; gap: 10px; align-items: center; }
.nav .btn { padding: 12px 20px; font-size: .95rem; }
.menu-btn { display: none; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.mobile-menu { display: none; }
@media (max-width: 920px) {
  .links { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .mobile-menu.open { display: grid; gap: 2px; padding: 6px 24px 18px; border-bottom: 1px solid var(--line); background: var(--bg); }
  .mobile-menu a { padding: 13px 0; text-decoration: none; font-size: 1.1rem; font-weight: 500; border-bottom: 1px solid var(--line); }
  .mobile-menu a:last-child { border: 0; color: var(--accent); font-weight: 700; }
}
@media (max-width: 460px) { .nav-right .btn { display: none; } }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 26px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.facts li { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: .92rem; font-weight: 500; }
.facts li svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
@media (max-width: 920px) { .hero { padding: 48px 0 72px; } .hero-grid { grid-template-columns: 1fr; gap: 44px; } }

/* Reaction card */
.rx-card { background: var(--paper); border-radius: 28px; padding: 26px 26px 22px; box-shadow: 0 30px 60px -30px rgba(90,50,30,.35), 0 0 0 1px var(--line); position: relative; }
.rx-card::before { content: ""; position: absolute; inset: -14px -14px auto auto; width: 90px; height: 90px; border-radius: 26px; background: var(--butter); z-index: -1; transform: rotate(10deg); }
.rx-card::after { content: ""; position: absolute; inset: auto auto -16px -16px; width: 120px; height: 120px; border-radius: 50%; background: var(--sage); z-index: -1; }
.rx-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rx-top b { font-family: var(--display); font-size: 1.1rem; letter-spacing: -0.01em; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hover); }
.rx { display: grid; gap: 0; justify-items: center; }
.rx svg { width: 100%; max-width: 420px; height: auto; display: block; overflow: visible; }
.rx-arrow { color: var(--accent); display: grid; place-items: center; height: 34px; }
.rx-arrow svg { width: 22px; height: 34px; }
.rx text { font-family: var(--font); font-weight: 700; fill: var(--ink); }
.rx .bond { stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }
.rx .lp { fill: var(--ink); }
.rx .curve { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 8s ease-in-out infinite; }
.rx .curve.c2 { animation-name: draw2; }
.rx .head1 { fill: var(--accent); opacity: 0; animation: head1 8s ease-in-out infinite; }
.rx .head2 { fill: var(--accent); opacity: 0; animation: head2 8s ease-in-out infinite; }
.rx .product { opacity: .2; animation: prod 8s ease-in-out infinite; }
.rx .newbond { stroke: var(--accent); }
@keyframes draw { 0%, 6% { stroke-dashoffset: 320; } 22%, 86% { stroke-dashoffset: 0; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes draw2 { 0%, 22% { stroke-dashoffset: 320; } 38%, 86% { stroke-dashoffset: 0; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes head1 { 0%, 20% { opacity: 0; } 23%, 86% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes head2 { 0%, 36% { opacity: 0; } 39%, 86% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes prod { 0%, 42% { opacity: .2; } 54%, 88% { opacity: 1; } 98%, 100% { opacity: .2; } }
.rx-card:hover .curve, .rx-card:hover .head1, .rx-card:hover .head2, .rx-card:hover .product { animation-play-state: paused; }
.rx-foot { margin-top: 6px; font-size: .92rem; color: var(--muted); text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .rx .curve, .rx .curve.c2 { animation: none; stroke-dashoffset: 0; }
  .rx .head1, .rx .head2, .rx .product { animation: none; opacity: 1; }
}

/* Class cards (pastel, one color per class) */
.classes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.class-card { --mx: 50%; --my: 50%; position: relative; overflow: hidden; border-radius: var(--r); padding: 26px; min-height: 250px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.class-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx) var(--my), rgba(255,255,255,.55), transparent 50%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.class-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 26px 40px -24px rgba(90,50,30,.45); }
.class-card:hover::before { opacity: 1; }
.class-card > * { position: relative; }
.class-card.peach { background: var(--peach); }
.class-card.butter { background: var(--butter); }
.class-card.sage { background: var(--sage); }
.class-card.lilac { background: var(--lilac); }
.class-card .badge { width: fit-content; font-size: .78rem; font-weight: 700; background: rgba(255,255,255,.7); padding: 5px 10px; border-radius: 999px; }
.class-card h3 { font-size: 1.55rem; margin-top: 6px; }
.class-card p { color: #4d4039; font-size: .98rem; }
.class-card .go { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .95rem; padding-top: 14px; }
.class-card .go .circle { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform .3s; }
.class-card:hover .go .circle { transform: rotate(-45deg); }
@media (max-width: 1000px) { .classes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .classes { grid-template-columns: 1fr; } .class-card { min-height: 0; } }
.under { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: .95rem; }

/* Included tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { --mx: 50%; --my: 50%; position: relative; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; display: grid; gap: 10px; align-content: start; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .3s; }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--mx) var(--my), rgba(212,80,44,.09), transparent 50%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tile:hover { transform: translateY(-6px); border-color: #f1c9b6; box-shadow: 0 24px 40px -26px rgba(90,50,30,.4); }
.tile:hover::before { opacity: 1; }
.tile > * { position: relative; }
.tile .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 6px; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.tile .ic svg { width: 24px; height: 24px; }
.tile:nth-child(1) .ic { background: var(--peach); color: var(--accent-hover); }
.tile:nth-child(2) .ic { background: var(--butter); color: #8a5a00; }
.tile:nth-child(3) .ic { background: var(--sage); color: #2f6b3a; }
.tile:nth-child(4) .ic { background: var(--lilac); color: #5b3fb0; }
.tile:hover .ic { transform: rotate(-10deg) scale(1.1); }
.tile p { color: var(--muted); font-size: .98rem; }
@media (max-width: 1000px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: grid; gap: 10px; align-content: start; transition: transform .3s; }
.steps li:hover { transform: translateY(-4px); }
.steps li::before { counter-increment: s; content: counter(s); font-family: var(--display); font-weight: 700; font-size: 1.1rem; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; margin-bottom: 6px; }
.steps p { color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Instructor */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.portrait { position: relative; aspect-ratio: 4/5; border-radius: 28px; overflow: hidden; background: var(--peach); }
.portrait canvas, .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait img { object-fit: cover; }
.portrait .cap { position: absolute; left: 16px; bottom: 16px; background: var(--paper); border-radius: 999px; padding: 8px 14px; font-size: .88rem; font-weight: 600; box-shadow: 0 8px 20px -12px rgba(90,50,30,.4); }
.split-copy { display: grid; gap: 20px; }
.split-copy p { font-size: 1.1rem; color: var(--muted); max-width: 50ch; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stats div { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; }
.stats b { display: block; font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.02em; }
.stats span { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .portrait { max-width: 420px; } }

/* Reviews */
.rev-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.rev-side { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.avg { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 12px 18px; }
.avg b { font-family: var(--display); font-size: 2.2rem; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.avg .of { color: var(--muted); font-size: .88rem; }
.stars { display: inline-flex; gap: 2px; color: var(--star); vertical-align: middle; }
.stars svg { width: 16px; height: 16px; }
.stars .off { color: #ecdccf; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filters button { font: 600 .9rem var(--font); background: var(--paper); border: 1px solid var(--line); color: var(--ink); padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: background .2s; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.quotes { columns: 3 300px; column-gap: 16px; }
.quote { break-inside: avoid; margin: 0 0 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: grid; gap: 16px; transition: transform .3s, box-shadow .3s; }
.quote:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -24px rgba(90,50,30,.4); }
.quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-line; }
.quote.lead { background: var(--butter); border-color: transparent; }
.quote.lead blockquote { font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.35; letter-spacing: -0.015em; }
.quote .by { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .9rem; }
.quote .by b { display: block; }
.quote .by .muted { font-size: .86rem; }
.quote .mono { font-size: .82rem; color: var(--muted); }
.empty { background: var(--paper); border: 1.5px dashed #e6cdbd; border-radius: var(--r); padding: 48px 28px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.empty p { color: var(--muted); max-width: 44ch; }
.status-note { color: var(--muted); font-size: .9rem; margin-top: 14px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 0 24px; transition: border-color .2s; }
.faq details[open] { border-color: #f1c9b6; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 20px; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* CTA */
.cta { background: var(--accent); color: #fff; border-radius: 32px; padding: 64px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.12); }
.cta h2 { color: #fff; max-width: 18ch; }
.cta p { color: #ffe6da; margin-top: 10px; }
.cta .btn { background: #fff; color: var(--accent-hover); position: relative; z-index: 1; }
.cta .btn:hover { background: #fff3ec; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; padding: 40px 26px; border-radius: 26px; } }

/* Sub-page header */
.page-hero { padding: 72px 0 48px; }
.page-hero .inner { display: grid; gap: 18px; }
.page-hero .inner > * { max-width: 760px; }
.page-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); }
@media (max-width: 760px) { .page-hero { padding: 44px 0 28px; } }

/* Classes page detail cards */
.class-rows { display: grid; gap: 16px; }
.class-row { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 28px; align-items: center; border-radius: var(--r); padding: 30px 32px; }
.class-row.peach { background: var(--peach); } .class-row.butter { background: var(--butter); } .class-row.sage { background: var(--sage); } .class-row.lilac { background: var(--lilac); }
.class-row h3 { font-size: 1.7rem; }
.class-row p { color: #4d4039; }
.class-row ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-weight: 500; font-size: .96rem; }
.class-row li::before { content: "✓"; color: var(--accent-hover); font-weight: 700; margin-right: 8px; }
.class-row .btn { background: var(--ink); color: #fff; }
@media (max-width: 860px) { .class-row { grid-template-columns: 1fr; gap: 16px; padding: 26px; } }

/* About page */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.about-aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.factlist { list-style: none; margin: 0; padding: 6px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; }
.factlist li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.factlist li:last-child { border: 0; }
.factlist li span:first-child { color: var(--muted); }
.factlist li span:last-child { font-weight: 600; text-align: right; }
.prose { display: grid; gap: 48px; }
.prose .block { display: grid; gap: 14px; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.prose p { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.prose p.big { color: var(--ink); font-size: 1.4rem; line-height: 1.45; }
.pull { background: var(--butter); border-radius: 20px; padding: 24px 28px; font-family: var(--display); font-weight: 600; font-size: 1.4rem; line-height: 1.35; letter-spacing: -0.015em; margin: 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks li { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.checks b { display: block; margin-bottom: 2px; }
.checks span { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } .about-aside { position: static; } .about-aside .portrait { max-width: 400px; } .checks { grid-template-columns: 1fr; } }

/* Reserve */
.reserve { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.reserve-info { display: grid; gap: 18px; }
.details { list-style: none; margin: 0; padding: 6px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; }
.details li { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.details li:last-child { border: 0; }
.details li span:first-child { color: var(--muted); }
.details li > :last-child { font-weight: 600; text-align: right; }
form.f { display: grid; gap: 16px; align-content: start; }
.form-card { background: var(--paper); border-radius: 28px; padding: 34px; box-shadow: 0 30px 60px -36px rgba(90,50,30,.35), 0 0 0 1px var(--line); }
.field { display: grid; gap: 7px; }
.field label, .field legend { font-size: .9rem; font-weight: 600; }
.hint { color: var(--muted); font-weight: 400; }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: #fffcf9; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 15px; width: 100%; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(212,80,44,.14); background: #fff; }
textarea { min-height: 104px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: .95rem; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: #2f7a3e; }
.form-msg.err { color: var(--danger); }
@media (max-width: 900px) { .reserve { grid-template-columns: 1fr; } .form-card { padding: 26px 20px; } }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }

/* Star input */
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: #ecdccf; transition: transform .15s; }
.star-input label:hover { transform: scale(1.12); }
.star-input label svg { width: 34px; height: 34px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--star); }
.star-input input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Dialog */
dialog { border: 0; padding: 0; border-radius: 28px; width: min(520px, calc(100% - 28px)); background: var(--paper); color: var(--ink); box-shadow: 0 40px 90px rgba(60,30,15,.3); }
dialog::backdrop { background: rgba(43,33,28,.35); backdrop-filter: blur(3px); }
dialog form.f { padding: 32px; max-height: calc(100vh - 48px); overflow-y: auto; }
.dhead { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink); cursor: pointer; font-size: 1rem; flex: none; }

/* Footer */
body > footer { padding: 64px 0 40px; font-size: .93rem; color: var(--muted); border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.foot h4 { margin: 0 0 12px; font-weight: 700; color: var(--ink); font-size: .95rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot ul a { color: var(--muted); text-decoration: none; }
.foot ul a:hover { color: var(--accent); }
.fine { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; }
@media (max-width: 720px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tile, .class-card, .quote, .btn, .steps li { transition: none !important; } .ripple { display: none; } }
.rx { margin-top: 14px; }
.tag { white-space: nowrap; }
@media (max-width: 520px) { .rx-card { padding: 20px 16px 18px; } .rx-top b { font-size: 1rem; } .hero .row .btn { flex: 1 1 auto; } }
.portrait img { object-position: 50% 28%; }

/* Direct access to student reviews and contact */
.reviews-jump { display: inline-flex; gap: 10px; align-items: center; color: var(--accent-hover); font-size: .95rem; font-weight: 700; text-decoration: none; padding: 4px 0; }
.reviews-jump:hover { text-decoration: underline; text-underline-offset: 4px; }
.reviews-jump span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); font-size: 1.2rem; }
#student-reviews { scroll-margin-top: 16px; }
.contact-info p { max-width: 36ch; }
.contact-email { color: var(--accent-hover); font-weight: 700; font-size: 1.15rem; overflow-wrap: anywhere; }
.contact-info { padding: 10px 0; }
#contactForm h2 { font-size: 1.8rem; margin-bottom: 8px; }
#contactHelp { font-size: .9rem; }

/* Diana's credentials, following the supplied card layout. */
.credentials-panel { background: #fbf6f0; border-radius: 28px; padding: 24px; display: grid; gap: 22px; }
.credential-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.credential-grid > div { background: var(--paper); border: 1px solid #e8d9cb; border-radius: 20px; padding: 22px 18px; display: grid; gap: 8px; align-content: start; }
.credential-grid b { font-family: var(--font); font-size: clamp(1.55rem, 2.7vw, 2.05rem); line-height: 1.15; letter-spacing: -.025em; }
.credential-grid span { color: var(--muted); font-size: .98rem; line-height: 1.45; }
.split-copy .credential-degrees { color: var(--ink); font-size: 1.1rem; line-height: 1.5; }
.split-copy .credential-class { font-size: 1rem; }
.credentials-panel .link { color: var(--accent); }
/* Centered review shortcut below the original two-column hero. */
.hero-grid { row-gap: 28px; }
.hero-review-action { grid-column: 1 / -1; display: flex; justify-content: center; }
.reviews-jump.btn { padding: 11px 20px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent-hover); font-size: 1rem; font-weight: 700; min-height: 48px; box-shadow: none; }
.reviews-jump.btn span { width: 27px; height: 27px; background: var(--accent); color: var(--paper); font-size: 1.25rem; flex: none; }
.reviews-jump.btn:hover { background: #ffdac7; text-decoration: none; }
@media (max-width: 520px) {
  .credentials-panel { padding: 18px; gap: 20px; }
  .credential-grid { gap: 10px; }
  .credential-grid > div { padding: 18px 12px; border-radius: 18px; }
  .credential-grid b { font-size: 1.45rem; }
  .credential-grid span { font-size: .9rem; }
  .reviews-jump.btn { width: auto; justify-content: center; font-size: 1rem; padding: 11px 18px; }
}

/* Private review management */
.admin-toolbar, .admin-review-head { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.admin-toolbar .filters { margin: 0; }
.admin-toolbar { margin-bottom: 20px; }
.admin-list { display: grid; gap: 18px; margin-top: 20px; }
.admin-review { display: grid; gap: 14px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; }
.admin-review-text { white-space: pre-wrap; overflow-wrap: anywhere; }
