/* rasa — a cooking lesson with optional molecular detail. */
/* RDKit geometry, styled once (the build strips every inline style) */
.mm .b { fill: none; stroke: var(--mm-bone); stroke-width: 1.5px; stroke-linecap: round; stroke-linejoin: round; }
.mm .w { fill: var(--mm-bone); stroke: var(--mm-bone); stroke-width: 0.8px; stroke-linejoin: round; }
.mm .t { fill: var(--mm-bone); font: 400 18px/1 'Syne', 'Inter', system-ui, sans-serif; }
.mm .t.s { font-size: 12px; }
.mm__layer .hot { stroke: var(--mm-saffron); }
.mm__layer .t.hot { fill: var(--mm-saffron); stroke: none; font-weight: 600; }
.mm__layer .w.hot { fill: var(--mm-saffron); }
.mm__layer .b.hot { stroke-width: 2.1px; }

/* the changing bonds arrive with one breath — opacity only */
.mm__layer.is-on .hot { animation: mm-arrive 900ms cubic-bezier(0.22, 1, 0.36, 1) 1 both; }
@keyframes mm-arrive { 0% { opacity: 0.15; } 60% { opacity: 1; } 80% { opacity: 0.55; } 100% { opacity: 1; } }

/* melanoidin lattice — verified fragments, deliberately dim: the point is that the whole is unknown */
.mm__lattice {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0;
  padding: 4% 6%;
}
.mm__lattice svg { width: 100%; height: 100%; opacity: 0.85; }
.mm__lattice .frag:nth-child(2n) svg { opacity: 0.58; }
.mm__lattice .frag:nth-child(3n) svg { transform: rotate(180deg); }
.mm__lattice .frag:nth-child(5) svg { transform: rotate(90deg); }
.mm__lattice::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 60%, transparent 30%, rgba(12, 11, 8, 0.85) 90%);
  pointer-events: none;
}

/* the leaving group — a real small molecule, drifting away from the hot bond */
.mm__leave {
  position: absolute;
  width: 18%;
  aspect-ratio: 90 / 60;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.mm__leave svg { width: 100%; height: 100%; overflow: visible; }
.mm__leave .b { stroke-width: 1.2px; }
.mm__leave .t { font-size: 15px; }
.mm__leave .t.s { font-size: 10px; }
.mm__leave-label {
  position: absolute; left: 50%; top: 100%;
  transform: translateX(-50%);
  font: 500 0.55rem/1 var(--mm-mono);
  letter-spacing: 0.14em;
  color: var(--mm-saffron);
  white-space: nowrap;
}
.mm__leave.is-going { animation: mm-drift 2400ms cubic-bezier(0.22, 1, 0.36, 1) 1 both; }
@keyframes mm-drift {
  0%   { opacity: 0;   transform: translate(0, 0) scale(0.7); }
  14%  { opacity: 1;   transform: translate(6%, -10%) scale(1); }
  60%  { opacity: 1;   transform: translate(30%, -50%) scale(0.95); }
  100% { opacity: 0;   transform: translate(48%, -78%) scale(0.85); }
}


/* The lesson shell: opaque paper-dark surface, anchored close control, one scroll area. */
.sc-drawer-overlay.open { background: #030509d9; backdrop-filter: none; -webkit-backdrop-filter: none; }
.sc-drawer-overlay .sc-drawer { display: flex; flex-direction: column; padding: 0; overflow: hidden; max-height: 92dvh; border: 1px solid #333941; background: #10131a; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.sc-drawer::before { display: none; }
.sc-drawer .sc-drawer__header { flex: 0 0 auto; align-items: center; margin: 0; padding: 18px 28px; border-bottom: 1px solid #2a3038; background: #10131a; }
.sc-drawer .sc-drawer__title { margin: 0; font-size: clamp(32px, 3.5vw, 42px); font-weight: 400; line-height: 1.08; color: #f3ece3; }
.sc-drawer .sc-drawer__hindi { margin-top: 8px; font-size: 12px; color: #b0adb0; }
.sc-drawer .sc-drawer__cat { margin-bottom: 10px; font-size: 9px; color: color-mix(in srgb, var(--rx-color) 75%, white); }
.sc-drawer .sc-drawer__close { width: 44px; height: 44px; margin: 0; border-radius: 50%; background: #191e27; color: #e0d8d0; border: 1px solid #414853; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background-color 180ms ease; }
.sc-drawer .sc-drawer__close:hover { transform: none; background: #2a3039; }
.sc-drawer .sc-drawer__close:focus-visible { outline: 2px solid #f5a623; outline-offset: 4px; }
.sc-drawer__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 28px; scrollbar-width: thin; scrollbar-color: #685f51 transparent; }
.sc-drawer .sc-drawer__handle { display: none; }
.sc-drawer .sc-drawer__hero-wrap::after, .sc-drawer .sc-drawer__hero-gradient { display: none; }
.sc-drawer .sc-drawer__image { max-height: 360px; }
.sc-drawer.sc-drawer--machine { width: min(1180px, 94vw); max-width: 1180px; height: min(860px, 92dvh); }
.sc-drawer--machine .sc-drawer__body { padding: 24px; }
.sc-drawer--machine .sc-drawer__hero-wrap { overflow: visible; border: 0; border-radius: 0; margin: 0; }
.sc-drawer--machine .sc-drawer__data-strip,
.sc-drawer--machine .sc-drawer__desc,
.sc-drawer--machine #drawerCompoundsWrap,
.sc-drawer--machine .sc-drawer__callout { display: none !important; }

.mm { --mm-bone: #e9dfd5; --mm-saffron: #f5a623; --mm-ground: #10131a; --mm-mono: var(--font-mono, 'JetBrains Mono', monospace); --mm-serif: var(--font-editorial, 'Cormorant Garamond', serif); color: var(--mm-bone); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.mm__kitchen, .mm__reading { min-width: 0; }
.mm__pan { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 300px; overflow: hidden; border-radius: 8px; background: #151717; }
.mm__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 220ms ease; }
.mm__frame.is-on { opacity: 1; }
.mm__photo-status { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: #d8cec1; font-size: 13px; line-height: 1.7; }
.mm__photo-status:empty { display: none; }
.mm__pan-copy { padding: 16px 0; min-height: 122px; }
.mm__label { display: block; color: #bfb5a7; font: 400 9px/1.5 var(--mm-mono); letter-spacing: .15em; text-transform: uppercase; }
.mm__pan-text { color: #eee4d8; font: 400 22px/1.28 var(--mm-serif); margin: 8px 0 0; }
.mm__scrub { border-top: 1px solid #343942; padding-top: 12px; }
.mm__scrub-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mm__scrub-heading > span:last-child { color: #a9a8ac; font-size: 10px; }
.mm__track { position: relative; margin: 4px 15px; height: 44px; cursor: ew-resize; touch-action: none; outline: none; }
.mm__rail, .mm__fill { position: absolute; left: 0; top: 50%; height: 2px; transform: translateY(-50%); }
.mm__rail { right: 0; background: #4c4d50; }
.mm__fill { background: var(--mm-saffron); width: 0; }
.mm__tick { position: absolute; top: 50%; width: 1px; height: 8px; transform: translate(-50%, -50%); background: #7d7c79; }
.mm__tick.is-past { background: var(--mm-saffron); }
.mm__thumb { position: absolute; top: 50%; left: 0; width: 44px; height: 44px; transform: translate(-50%, -50%); pointer-events: none; }
.mm__thumb::before { content: ''; position: absolute; inset: 13px; background: var(--mm-tone, #c8c5b0); border: 2px solid var(--mm-saffron); border-radius: 50%; box-shadow: 0 0 0 4px #10131a; }
.mm__track:focus-visible { outline: 2px solid var(--mm-saffron); outline-offset: 2px; border-radius: 4px; }
.mm__chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.mm__chip { appearance: none; -webkit-appearance: none; min-height: 58px; padding: 9px 3px; border: 1px solid #363c45; border-radius: 5px; background: transparent; color: #c9c5c1; cursor: pointer; font: 400 10px/1.4 var(--mm-mono); transition: background-color 160ms ease, border-color 160ms ease; }
.mm__chip small { display: block; color: #ada9a3; font-size: 10px; margin-top: 3px; }
.mm__chip:hover { background: #1c222b; border-color: #737275; }
.mm__chip[aria-pressed='true'] { border-color: #d89e43; background: #30261a; color: #ffd08b; }
.mm__chip[aria-pressed='true'] small { color: #edc48b; }
.mm__chip:focus-visible { outline: 2px solid var(--mm-saffron); outline-offset: 3px; }
.mm__note { margin: 14px 0 0; font: 400 10px/1.7 var(--mm-mono); color: #b0ada7; }
.mm__minute { display: block; color: #e9b665; font: 400 10px/1.5 var(--mm-mono); letter-spacing: .09em; text-transform: uppercase; }
.mm__title { margin: 14px 0 16px; color: #f3ece3; font: 400 42px/1.06 var(--mm-serif); }
.mm__science { margin: 0; color: #cac7c4; font-size: 15px; line-height: 1.85; min-height: 140px; }
.mm__facts { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 18px 0; margin: 8px 0 22px; border-bottom: 1px solid #343942; }
.mm__facts span { color: #c6c2ba; font: 400 10px/1.6 var(--mm-mono); }
.mm__facts span:first-child { color: #f0bf77; }
.mm__insight { border-left: 2px solid #c89b57; padding: 4px 0 4px 18px; margin: 0 0 26px; }
.mm__insight .mm__label { color: #e9b665; }
.mm__insight p { margin: 9px 0 0; color: #e2d7c8; font-size: 14px; line-height: 1.75; }
.mm__details { border-top: 1px solid #343942; }
.mm__details:last-child { border-bottom: 1px solid #343942; }
.mm__details summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 0; min-height: 56px; font-size: 13px; color: #e5ded4; cursor: pointer; }
.mm__details summary::-webkit-details-marker { display: none; }
.mm__details summary:hover { color: #f4bd6d; }
.mm__details summary:focus-visible { outline: 2px solid var(--mm-saffron); outline-offset: 2px; }
.mm__expand { position: relative; flex: 0 0 12px; width: 12px; height: 12px; color: #d8b680; }
.mm__expand::before, .mm__expand::after { content: ''; position: absolute; background: currentColor; left: 0; top: 5px; width: 12px; height: 1px; }
.mm__expand::after { transform: rotate(90deg); }
.mm__details[open] .mm__expand::after { display: none; }
.mm__detail-body { padding-bottom: 24px; color: #c4c1bc; font-size: 13px; line-height: 1.8; }
.mm__detail-body > p { margin: 0 0 18px; }
.mm__mol { position: relative; width: 100%; aspect-ratio: 520 / 300; margin: 12px 0 22px; background: #0c1017; border-radius: 6px; }
.mm__layer { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.mm__layer.is-on { opacity: 1; }
.mm__layer svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mm__compounds p { margin: 0 0 18px; }
.mm__compounds strong { display: block; color: #e9dfd5; font-weight: 500; margin-bottom: 3px; }
.mm__verify, .mm__credit { color: #b6b0a8; font: 400 10px/1.8 var(--mm-mono); overflow-wrap: anywhere; }
.mm__verify { border-top: 1px solid #343942; padding-top: 14px; }
.mm__verify a { color: #e6c38f; text-decoration: underline; text-underline-offset: 3px; }
.mm__verify a:focus-visible { outline: 2px solid var(--mm-saffron); outline-offset: 3px; }
.mm__verify .k { color: #edb66b; }
@media (min-width: 768px) {
 .sc-drawer-overlay .sc-drawer { transform: translate(-50%, -48%); opacity: 0; transition: opacity 200ms ease, transform 200ms ease; }
 .sc-drawer-overlay.open .sc-drawer { transform: translate(-50%, -50%); opacity: 1; }
}
@media (max-width: 1023px) {
 .mm { grid-template-columns: 1fr; gap: 32px; }
 .sc-drawer.sc-drawer--machine { max-width: 740px; }
 .mm__science { min-height: 0; }
 .mm__reading { border-top: 1px solid #343942; padding-top: 24px; }
 .mm__pan-copy { min-height: 0; }
}
@media (max-width: 767px) {
 .sc-drawer-overlay .sc-drawer { width: 100%; max-width: none; max-height: 94dvh; }
 .sc-drawer .sc-drawer__header { padding: 20px; gap: 14px; }
 .sc-drawer .sc-drawer__title { font-size: 32px; }
 .sc-drawer .sc-drawer__hindi { font-size: 11px; }
 .sc-drawer__body, .sc-drawer--machine .sc-drawer__body { padding: 20px; }
 .mm__pan-text { font-size: 21px; }
 .mm__pan-copy { padding-top: 12px; }
 .mm__scrub-heading { flex-direction: column; gap: 3px; }
 .mm__chips { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
 .mm__chip, .mm__chip small { font-size: 11px; }
 .mm__chip { min-height: 56px; }
 .mm__science { font-size: 14px; line-height: 1.8; }
 .mm__title { font-size: 38px; }
 .mm__insight p { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
 .mm *, .mm *::before, .mm *::after, .sc-drawer-overlay .sc-drawer { animation: none !important; transition: none !important; }
 .mm__leave.is-going { opacity: 1; transform: translate(10%, -16%); }
}
html.mx-reduce .mm * { animation: none !important; transition: none !important; }

/* ── The clock: a timeline of PHYSICS, not of chemistry ───────────────────
   The six chemistry steps deliberately carry no minute windows (Hodge's scheme
   is a pathway, not a schedule). What CAN be timed is what you see, and it runs
   at two very different speeds depending on how much water the pan must remove.
   The skillet-vs-kadai contrast IS the lesson — keep both columns.            */
.mm__clock-lede { margin: 0 0 20px; color: #e2d7c8; font-size: 14px; line-height: 1.75; }
.mm__clock-table { width: 100%; border-collapse: collapse; margin: 0 0 22px; }
.mm__clock-table thead th { padding: 0 0 11px; border-bottom: 1px solid #3a4049; color: #e9b665; font: 400 10px/1.4 var(--mm-mono); letter-spacing: .09em; text-transform: uppercase; text-align: right; vertical-align: bottom; }
.mm__clock-table thead th:first-child { text-align: left; }
.mm__clock-table thead th small { display: block; margin-top: 3px; color: #a9a29a; font-size: 9px; letter-spacing: .04em; text-transform: none; }
.mm__clock-table tbody th { padding: 15px 16px 15px 0; border-bottom: 1px solid #2c3138; text-align: left; font-weight: 400; }
.mm__clock-table tbody td { padding: 15px 0 15px 16px; border-bottom: 1px solid #2c3138; color: #f0bf77; font: 400 12px/1.5 var(--mm-mono); text-align: right; white-space: nowrap; vertical-align: top; }
.mm__clock-name { display: block; color: #f3ece3; font-size: 14px; line-height: 1.4; }
.mm__clock-see { display: block; margin-top: 5px; color: #b6b1aa; font-size: 12px; line-height: 1.65; }
.mm__clock-why { display: grid; gap: 13px; margin: 0 0 18px; }
.mm__clock-why span { color: #c1bdb6; font-size: 12.5px; line-height: 1.75; }
.mm__clock-why strong { color: #ddd3c6; font-weight: 400; }

@media (max-width: 640px) {
  .mm__clock-table thead th small { font-size: 8px; }
  .mm__clock-table tbody td { font-size: 11px; padding-left: 10px; }
  .mm__clock-table tbody th { padding-right: 10px; }
  .mm__clock-see { font-size: 11.5px; }
}
