/* Toque community site: recipes for kitchen robots.
   Fonts are served from this site; nothing is loaded from another domain. */

@font-face {
  font-family: "Bricolage";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url(../fonts/bricolage-latin.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url(../fonts/bricolage-latin-ext.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Digits of the robot's screen only (subset: digits, ":", "°", "min", "g"…). */
@font-face {
  font-family: "Saira Screen";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  src: url(../fonts/saira-digits.woff2) format("woff2-variations");
}

:root {
  color-scheme: dark;
  --bg: #0a1322;          /* night blue of the app */
  --surface: #121c2d;
  --surface-2: #1a2639;
  --line: #2a3a55;
  --text: #f3f5f9;
  --text-2: #a9b4c6;
  --text-3: #7d8aa0;
  --orange: #ff8a3d;
  --orange-light: #ffa66b;
  --on-orange: #1a0e05;
  --green: #3ddc97;
  --warn: #ffc14d;
  --danger: #ff6b6b;
  --screen: #050b15;      /* the robot's screen, darker than the page */
  --screen-2: #0e1829;
  --casing: #e9edf2;      /* the robot's white casing */

  --font: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --digits: "Saira Screen", "Bricolage", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Roboto Mono", monospace;

  --page: min(1180px, 100% - 2.5rem);
  --r-screen: 22px;
  --r-cover: 14px;
  --r-btn: 12px;
  --r-field: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: "opsz" 14;
}
img, svg { display: block; max-width: 100%; }
svg[aria-hidden="true"] { flex: none; }
.sprite { display: none; }
a { color: var(--orange); text-underline-offset: 0.18em; }
a:hover { color: var(--orange-light); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2.35rem, 4.4vw, 3.75rem); font-stretch: 80%; letter-spacing: -0.022em; font-variation-settings: "opsz" 96; }
h2, .h2 { font-size: clamp(1.55rem, 2.5vw, 2.1rem); font-stretch: 86%; letter-spacing: -0.012em; font-variation-settings: "opsz" 48; }
h3, .h3 { font-size: 1.2rem; font-weight: 650; font-variation-settings: "opsz" 24; }
p { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--orange); color: var(--on-orange); padding: 0.6rem 1rem; border-radius: var(--r-btn);
}
.skip-link:focus { top: 1rem; }
.page { width: var(--page); margin-inline: auto; }
.narrow { width: min(560px, 100% - 2.5rem); margin-inline: auto; padding-block: 2rem 3rem; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .page { display: flex; align-items: center; gap: 2rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; }
.brand svg { width: 38px; height: 38px; color: var(--orange); }
.brand span { font-size: 1.55rem; font-weight: 750; font-stretch: 78%; letter-spacing: -0.02em; font-variation-settings: "opsz" 48; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 550; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
.site-header .menu-toggle { display: none; }
.nav .nav-account { border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.9rem; white-space: nowrap; }
.nav .nav-account:hover { border-color: var(--orange); }
.nav .nav-account[aria-current="page"] { text-decoration: none; border-color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  border-radius: var(--r-btn); padding: 0.75rem 1.25rem; border: 2px solid transparent; line-height: 1.2;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: var(--orange-light); color: var(--on-orange); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { background: #ffffff; color: var(--bg); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { border-color: var(--text); color: var(--text); }
.btn-quiet { background: none; color: var(--text-2); padding-inline: 0.4rem; font-weight: 550; }
.btn-quiet:hover { color: var(--text); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(255, 107, 107, 0.45); }
.btn-danger:hover { border-color: var(--danger); color: var(--danger); }
.btn-small { padding: 0.4rem 0.75rem; font-size: 0.92rem; border-width: 1px; }
.btn.is-on { border-color: var(--orange); color: var(--orange); }
.btn.is-on svg { color: var(--orange); }
.inline-form { display: inline; margin: 0; }

/* ---------- The robot's screen (signature element) ---------- */
.robot-figure { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.4rem; align-items: center; margin: 0; }
.screen {
  background: var(--screen); color: var(--text); border-radius: var(--r-screen);
  padding: 1rem 1.2rem 1.25rem; box-shadow: 0 0 0 10px var(--casing), 0 0 0 11px #c9d0d8, 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.screen-bar { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #9ca8bc; }
.screen-bar strong { color: var(--text); font-weight: 600; }
.screen-clock { font-family: var(--digits); font-size: 0.95rem; letter-spacing: 0.02em; }
.screen-step { margin: 0.9rem 0 1rem; font-size: 1.15rem; line-height: 1.35; max-width: 30ch; }
.screen-step small { display: block; color: #9ca8bc; font-size: 0.85rem; margin-bottom: 0.25rem; }
.dials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.dial { background: var(--screen-2); border: 1px solid var(--line); border-radius: 14px; padding: 0.7rem 0.8rem 0.6rem; }
.dial b {
  display: block; font-family: var(--digits); font-weight: 300; font-stretch: 88%;
  font-size: clamp(1.8rem, 2.9vw, 2.9rem); line-height: 1; color: var(--orange); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.dial b sub { font-size: 0.42em; font-weight: 400; vertical-align: baseline; margin-left: 0.15em; color: var(--text); }
.dial span { display: flex; align-items: center; gap: 0.3rem; margin-top: 0.35rem; font-size: 0.85rem; color: #9ca8bc; }
.dial span svg { width: 15px; height: 15px; color: var(--orange); }
.screen-actions { display: flex; gap: 0.6rem; margin-top: 1rem; }
.screen-actions .btn { flex: 1; padding-block: 0.7rem; white-space: nowrap; }
.screen-actions .btn-screen { background: var(--screen-2); color: var(--text); border-color: var(--line); }
.knob {
  width: 92px; aspect-ratio: 1; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 38% 32%, #ffffff 0 20%, #dfe4ea 62%, #c9d0d8 100%);
  box-shadow: 0 0 0 6px var(--casing), 0 0 0 7px #c9d0d8, 0 0 0 9px var(--orange), 0 0 28px 8px rgba(255, 138, 61, 0.4);
}
.knob::after {
  content: ""; position: absolute; left: 50%; top: 12%; width: 4px; height: 18%; margin-left: -2px;
  border-radius: 2px; background: #566275;
}
@media (prefers-reduced-motion: no-preference) {
  .knob { animation: knob-ring 2.6s ease-out 0.4s 1 both; }
  @keyframes knob-ring {
    0% { box-shadow: 0 0 0 6px var(--casing), 0 0 0 7px #c9d0d8, 0 0 0 9px #c9d0d8, 0 0 0 0 rgba(255, 138, 61, 0); }
    60% { box-shadow: 0 0 0 6px var(--casing), 0 0 0 7px #c9d0d8, 0 0 0 9px var(--orange), 0 0 40px 12px rgba(255, 138, 61, 0.55); }
    100% { box-shadow: 0 0 0 6px var(--casing), 0 0 0 7px #c9d0d8, 0 0 0 9px var(--orange), 0 0 28px 8px rgba(255, 138, 61, 0.4); }
  }
}

/* Robot setting of a step: a small piece of screen. */
.setting {
  display: inline-flex; align-items: stretch; gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; font-size: 0.85rem; color: #9ca8bc; vertical-align: middle;
}
.setting > span { background: var(--screen); padding: 0.3rem 0.65rem; display: flex; align-items: baseline; gap: 0.25rem; }
.setting svg { width: 14px; height: 14px; align-self: center; color: var(--orange); }
.setting b { font-family: var(--digits); font-weight: 400; font-size: 1.15rem; color: var(--orange); font-variant-numeric: tabular-nums; line-height: 1.1; }
.setting .program-name { color: var(--text); font-weight: 600; }

/* ---------- Home ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero .page { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 15ch; }
.intro { margin-top: 1.2rem; font-size: 1.2rem; color: var(--text-2); max-width: 46ch; }
.search { margin-top: 2rem; display: flex; gap: 0.5rem; max-width: 34rem; }
.search input, .search select {
  flex: 1; min-width: 0; font: inherit; padding: 0.8rem 1rem; border-radius: var(--r-btn);
  border: 2px solid var(--line); background: var(--surface-2); color: var(--text);
}
.search select { flex: 0 1 auto; }
.section-title .search { margin-top: 0; flex: 1 1 36rem; max-width: 58rem; justify-content: flex-end; flex-wrap: wrap; }
.section-title .search select { flex: 0 0 auto; }
.section-title .search input { min-width: 11rem; }
.search input:focus-visible, .search select:focus-visible { border-color: var(--orange); outline: none; }
.hero .or-line { margin-top: 1rem; color: var(--text-2); }
.screen-caption { margin-top: 1.6rem; font-size: 0.95rem; color: var(--text-2); max-width: 40ch; }

.section-block { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-alt { background: var(--surface); }
.section-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1rem; margin-bottom: 1.6rem; }
.section-title p { color: var(--text-2); }

/* Recipe cover: colour of the main ingredient + title (no photos yet). */
.cover {
  border-radius: var(--r-cover); color: #fff; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 1rem 1.1rem; min-height: 120px;
  background: var(--c, #7a5f43);
}
.cover::before {
  content: ""; position: absolute; inset: auto -20% -55% auto; width: 75%; aspect-ratio: 1; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.cover span { position: relative; font-weight: 750; font-stretch: 80%; letter-spacing: -0.015em; line-height: 1.02; font-variation-settings: "opsz" 72; }
.c-mushroom { --c: #7a5f43; } .c-pumpkin { --c: #b85a1a; } .c-tomato { --c: #a8321f; } .c-chickpea { --c: #8a6a2e; }
.c-caramel { --c: #94661b; } .c-lentil { --c: #a8461d; } .c-apple { --c: #4f7a2a; } .c-bread { --c: #8b5e34; } .c-cheese { --c: #7d6a1f; }

.featured-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.2rem; }
.featured { display: grid; gap: 1rem; text-decoration: none; color: inherit; align-content: start; }
.featured .cover { min-height: 300px; }
.featured .cover h3 { position: relative; color: #fff; font-size: clamp(2rem, 3.4vw, 2.8rem); max-width: 12ch; font-weight: 750; font-stretch: 80%; letter-spacing: -0.015em; line-height: 1.02; font-variation-settings: "opsz" 72; }
.featured:hover .cover h3 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
.meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; color: var(--text-2); font-size: 0.95rem; }
.meta > span { display: inline-flex; align-items: center; gap: 0.35rem; }
.meta svg { width: 17px; height: 17px; }
.rating { color: var(--text); font-weight: 600; }
.rating svg { color: var(--orange); }
.recipe-list { list-style: none; margin: 0; padding: 0; display: grid; }
.recipe-list li + li { border-top: 1px solid var(--line); }
.recipe-row { display: grid; grid-template-columns: 92px 1fr; gap: 1rem; padding: 0.9rem 0; text-decoration: none; color: inherit; align-items: center; }
.recipe-row .cover { min-height: 74px; padding: 0.5rem; border-radius: 10px; }
.recipe-row .cover span { display: none; }
.recipe-row h3 { font-size: 1.08rem; margin-bottom: 0.2rem; }
.recipe-row:hover h3 { color: var(--orange); }
.byline { color: var(--text-2); }
.byline b { color: var(--text); font-weight: 600; }
.recipe-lang { font-size: 0.75rem; font-weight: 700; border: 1px solid var(--line); border-radius: 6px; padding: 0.05rem 0.35rem; color: var(--text-2); margin-left: 0.3rem; }

.categories { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.categories a {
  display: inline-block; padding: 0.55rem 1rem; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 550;
}
.categories a:hover, .categories a[aria-current="true"] { border-color: var(--orange); }
.categories small { color: var(--text-3); font-weight: 450; margin-left: 0.3rem; }

.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: how; }
.how-steps li { counter-increment: how; border-top: 3px solid var(--line); padding-top: 1rem; }
.how-steps li::before {
  content: counter(how); display: block; font-family: var(--digits); font-weight: 300; font-size: 2.6rem; line-height: 1; color: var(--orange); margin-bottom: 0.6rem;
}
.how-steps h3 { margin-bottom: 0.4rem; }
.how-steps p { color: var(--text-2); }

.robots-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.robots-block ul { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.robots-block li { display: flex; gap: 0.7rem; align-items: baseline; }
.robots-block li svg { width: 18px; height: 18px; flex: none; transform: translateY(3px); }
.supported svg { color: var(--green); }
.upcoming { color: var(--text-2); }
.robots-block .actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }

.donate { margin-block: clamp(2.5rem, 5vw, 4rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-screen); padding: clamp(1.6rem, 4vw, 2.6rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 2rem; align-items: center; }
.donate p { color: var(--text-2); margin-top: 0.7rem; max-width: 56ch; }
.nav .nav-donate, .site-footer a:has(svg) { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav .nav-donate svg, .site-footer a svg { width: 18px; height: 18px; color: var(--orange); }
.section-title .count { font-size: 0.55em; color: var(--text-3); font-weight: 600; margin-left: 0.3rem; letter-spacing: 0; }
.categories + .recipe-list, nav + .recipe-list, nav + .empty-state { margin-top: 1.4rem; }
.robots-block .robot-list { margin-top: 1.2rem; }
.robots-block .robot-card { display: grid; align-items: center; gap: 1.1rem; }
.robots-block .intro { font-size: 1.1rem; }
.upcoming-note { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.upcoming-note svg { width: 18px; height: 18px; }
.empty-state { color: var(--text-2); padding: 1.5rem 0; }
.pager { display: flex; gap: 0.6rem; align-items: center; justify-content: center; margin-top: 1.6rem; color: var(--text-2); }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(2.5rem, 5vw, 4rem); background: var(--surface); border-top: 1px solid var(--line); padding: 2.2rem 0 2.6rem; font-size: 0.95rem; color: var(--text-2); }
.site-footer .page { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 2rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer a { color: var(--text); }
.site-footer .brand { margin-bottom: 0.6rem; }
.site-footer .brand svg { width: 30px; height: 30px; }
.site-footer .brand span { font-size: 1.25rem; }

/* ---------- Recipe page ---------- */
.breadcrumb { padding: 1.4rem 0 0; font-size: 0.95rem; color: var(--text-2); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line); }
.breadcrumb a { color: var(--text-2); }
.recipe-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem); padding: 1.4rem 0 2rem; align-items: end; }
.recipe-head .cover { min-height: 280px; align-items: center; justify-content: center; }
.recipe-head .cover svg { position: relative; width: 38%; color: rgba(255, 255, 255, 0.16); }
.recipe-head h1 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); overflow-wrap: anywhere; }
.recipe-head .byline { margin-top: 0.7rem; font-size: 1.05rem; }
.facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0.4rem 2rem; margin: 1.4rem 0 0; }
.facts div { display: grid; }
.facts dt { font-size: 0.85rem; color: var(--text-3); }
.facts dd { margin: 0; font-weight: 650; font-size: 1.1rem; }
.recipe-head .actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }

.recipe-body { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-cover); padding: 1.4rem 1.5rem; }
.ingredients-panel { position: sticky; top: 1rem; }
.ingredients-panel h3 { font-size: 1rem; color: var(--text-2); margin: 1rem 0 0.2rem; }
.servings { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0 0.6rem; padding: 0.6rem 0.7rem; background: var(--bg); border-radius: var(--r-btn); }
.servings output { font-weight: 700; font-size: 1.1rem; }
.stepper {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
  font: inherit; font-size: 1.3rem; font-weight: 600; color: var(--text); cursor: pointer; display: grid; place-items: center;
}
.stepper:hover { border-color: var(--orange); }
.stepper:disabled { color: var(--text-3); background: transparent; cursor: not-allowed; border-color: var(--line); }
.warning { font-size: 0.9rem; background: rgba(255, 193, 77, 0.1); border: 1px solid rgba(255, 193, 77, 0.35); color: #ffd27a; border-radius: var(--r-field); padding: 0.6rem 0.75rem; margin-bottom: 0.6rem; }
.warning[hidden] { display: none; }
.ingredient-list { list-style: none; margin: 0; padding: 0; }
.ingredient-list li { display: grid; grid-template-columns: 5.2rem 1fr; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px solid var(--surface-2); }
.ingredient-list li:last-child { border-bottom: 0; }
.qty { font-weight: 650; font-variant-numeric: tabular-nums; }

.steps { list-style: none; margin: 1.2rem 0 0; padding: 0; counter-reset: step; display: grid; gap: 1.6rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.4rem 0.9rem; }
.steps li::before {
  content: counter(step); grid-row: span 2; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 1rem;
}
.steps p { max-width: 62ch; white-space: pre-line; }
.steps .step-settings { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.weigh { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; font-weight: 600; color: var(--text); background: var(--surface-2); border-radius: 999px; padding: 0.25rem 0.7rem; }
.weigh svg { width: 16px; height: 16px; }
.recipe-notes { margin-top: 1.6rem; color: var(--text-2); white-space: pre-line; }

.robot-note { margin-top: 2rem; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; background: rgba(61, 220, 151, 0.08); border: 1px solid rgba(61, 220, 151, 0.3); border-radius: var(--r-cover); padding: 1rem 1.2rem; color: #c7f2df; }
.robot-note svg { width: 28px; height: 28px; color: var(--green); }

.reviews { margin-top: 3rem; }
.review-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 1.2rem; }
.review-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-cover); padding: 1rem 1.2rem; }
.review-list header { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.9rem; margin-bottom: 0.4rem; }
.review-list time { color: var(--text-3); font-size: 0.9rem; }
.review-list p { white-space: pre-line; overflow-wrap: anywhere; }
.stars { display: inline-flex; gap: 2px; color: var(--orange); }
.stars svg { width: 16px; height: 16px; }
.stars .empty { color: var(--line); }
.report-link { margin-left: auto; font-size: 0.85rem; }
details.report { margin-top: 0.5rem; }
details.report summary { cursor: pointer; color: var(--text-2); font-size: 0.9rem; width: max-content; }
details.report[open] summary { margin-bottom: 0.6rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field label, .field legend { font-weight: 650; }
.field .hint { font-size: 0.9rem; color: var(--text-2); }
.field .error-text { font-size: 0.9rem; color: var(--danger); font-weight: 600; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--text); background: var(--surface-2); border: 2px solid var(--line);
  border-radius: var(--r-field); padding: 0.65rem 0.8rem; width: 100%;
}
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field input::placeholder, .field textarea::placeholder, .search input::placeholder { color: var(--text-3); }
.field textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; border-color: var(--orange); }
.field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.field-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.check { display: flex; align-items: center; gap: 0.55rem; font-weight: 550; }
.check input { width: 20px; height: 20px; accent-color: var(--orange); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 0.15rem; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: var(--text-3); }
.star-input label svg { width: 30px; height: 30px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--orange); }
.star-input input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

/* Recipe editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-top: 1.6rem; }
.editor .intro { font-size: 1.05rem; margin-top: 0.8rem; max-width: 52ch; }
.step-editor { border: 1px solid var(--line); border-radius: var(--r-cover); padding: 1rem 1.1rem; background: var(--surface); display: grid; gap: 0.9rem; }
.step-editor header { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.step-editor header b { font-size: 1.05rem; }
.step-editor .tools { display: flex; gap: 0.2rem; }
.machine-fields { background: var(--screen); border: 1px solid var(--line); border-radius: var(--r-cover); padding: 0.9rem; display: grid; gap: 0.8rem; }
.machine-fields[hidden] { display: none; }
.machine-fields .field input, .machine-fields .field select { background: var(--screen-2); }
.machine-fields .field-row.four { grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); }
.machine-fields [hidden] { display: none; }
.rule-hint { font-size: 0.9rem; color: var(--text-2); }
.publish-card { position: sticky; top: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-cover); padding: 1.3rem 1.4rem; display: grid; gap: 1rem; }
.publish-card .small-print { font-size: 0.9rem; color: var(--text-2); }
.choice { display: grid; gap: 0.5rem; }
.choice label { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.6rem; align-items: start; border: 1px solid var(--line); border-radius: var(--r-field); padding: 0.7rem 0.8rem; cursor: pointer; }
.choice input { width: 18px; height: 18px; margin-top: 0.2rem; accent-color: var(--orange); }
.choice small { grid-column: 2; color: var(--text-2); }
.choice label:has(input:checked) { border-color: var(--orange); }
.login-needed { color: var(--text-2); }
.published-as { color: var(--text-2); }
.published-as b { color: var(--text); }

/* ---------- Messages ---------- */
.flash { margin-top: 1.2rem; border-radius: var(--r-field); padding: 0.8rem 1rem; font-weight: 550; }
.flash-ok { background: rgba(61, 220, 151, 0.1); border: 1px solid rgba(61, 220, 151, 0.4); color: #c7f2df; }
.flash-error { background: rgba(255, 107, 107, 0.1); border: 1px solid rgba(255, 107, 107, 0.45); color: #ffc9c9; }
.flash ul { margin: 0.3rem 0 0; padding-left: 1.2rem; font-weight: 450; }
.notice { background: rgba(255, 193, 77, 0.1); border: 1px solid rgba(255, 193, 77, 0.35); color: #ffd27a; border-radius: var(--r-field); padding: 0.7rem 0.9rem; }
.badge { display: inline-block; font-size: 0.78rem; font-weight: 700; border-radius: 999px; padding: 0.1rem 0.55rem; border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
.badge-public { color: var(--green); border-color: rgba(61, 220, 151, 0.45); }
.badge-hidden { color: var(--warn); border-color: rgba(255, 193, 77, 0.5); }

/* ---------- Login / sign-up ---------- */
.auth-page {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.2rem);
  grid-template-areas: "login signup" "kept signup"; align-items: start; padding-block: 1.6rem 3rem;
}
.auth-page .login-form { grid-area: login; }
.auth-page .signup-form { grid-area: signup; }
.auth-page .data-kept { grid-area: kept; }
.auth-page h1, .narrow h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.auth-page .intro, .narrow .intro { font-size: 1.05rem; margin-top: 0.5rem; }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; }
.data-kept { padding: 0.4rem 0.2rem; }
.data-kept ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.data-kept li { display: flex; gap: 0.7rem; align-items: baseline; }
.data-kept li svg { width: 18px; height: 18px; flex: none; transform: translateY(3px); color: var(--green); }
.data-kept p { margin-top: 0.9rem; font-weight: 650; }

/* ---------- Profile ---------- */
.profile-banner { background: var(--surface); border-bottom: 1px solid var(--line); padding: 2rem 0 0; }
.profile-banner .page { display: grid; gap: 1.2rem; }
.profile-id { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--orange); color: var(--on-orange); display: grid; place-items: center; font-size: 2rem; font-weight: 750; text-transform: uppercase; }
.profile-id h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); overflow-wrap: anywhere; }
.profile-id .meta { margin-top: 0.3rem; }
.profile-id .actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tabs { display: flex; gap: 0.3rem; overflow-x: auto; }
.tabs a { padding: 0.75rem 1rem; color: var(--text-2); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--orange); }
.tabs a small { color: var(--text-3); font-weight: 500; margin-left: 0.25rem; }
.profile-section { padding-top: 1.8rem; display: grid; gap: 1.2rem; }
.own-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.own-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-cover); padding: 0.8rem 1rem; }
.own-item .cover { min-height: 56px; border-radius: 10px; padding: 0; }
.own-item h3 { font-size: 1.05rem; overflow-wrap: anywhere; }
.own-item h3 a { color: var(--text); text-decoration: none; }
.own-item h3 a:hover { color: var(--orange); }
.own-item .meta { margin-top: 0.25rem; font-size: 0.9rem; }
.own-item .actions { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }
.robot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.robot-card { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 1.1rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-cover); padding: 0.9rem 1.1rem; }
.robot-picture { width: 112px; height: 112px; object-fit: contain; border-radius: 12px; background: radial-gradient(circle at 50% 40%, var(--surface-2), var(--bg)); padding: 6px; }
.robot-card h3 { font-size: 1.15rem; }
.robot-card .byline { margin-top: 0.15rem; }
.robot-name { margin-top: 0.15rem; font-weight: 600; }
.robot-card .meta { margin-top: 0.35rem; font-size: 0.9rem; }
.pair-code { font-family: var(--digits); font-size: clamp(2.4rem, 6vw, 3.4rem); letter-spacing: 0.18em; color: var(--orange); background: var(--screen); border: 1px solid var(--line); border-radius: var(--r-cover); padding: 0.6rem 1rem; width: max-content; max-width: 100%; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }

/* ---------- Admin ---------- */
.admin-item { display: grid; gap: 0.7rem; }
.admin-item header { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: baseline; }
.admin-item ul { margin: 0; padding-left: 1.2rem; color: var(--text-2); font-size: 0.95rem; }
.admin-item .actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.legal { display: grid; gap: 1.2rem; }
.legal h2 { font-size: 1.4rem; margin-top: 0.8rem; }
.legal p, .legal li { color: var(--text-2); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 20;
  background: var(--text); color: var(--bg); font-weight: 550; padding: 0.8rem 1.2rem; border-radius: var(--r-btn);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); max-width: calc(100% - 2rem);
}
.toast[hidden] { display: none; }

/* ---------- Small screens ---------- */
@media (max-width: 1100px) {
  .robot-figure { grid-template-columns: minmax(0, 1fr); }
  .knob { display: none; }
}
@media (max-width: 960px) {
  .hero .page, .featured-grid, .robots-block, .recipe-head, .recipe-body, .editor, .split, .donate { grid-template-columns: minmax(0, 1fr); }
  .ingredients-panel, .publish-card { position: static; }
  .auth-page { grid-template-columns: minmax(0, 1fr); grid-template-areas: "login" "signup" "kept"; }
  .how-steps { grid-template-columns: 1fr; gap: 1.4rem; }
  .site-footer .page { grid-template-columns: 1fr 1fr; }
  .site-footer .page > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .nav.open {
    display: grid; position: absolute; left: 0; right: 0; top: 72px; z-index: 6; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 0.5rem 1.25rem 1rem;
  }
  .nav.open a { padding: 0.7rem 0; border-bottom: 1px solid var(--surface-2); }
  .nav.open .nav-account { border: 0; border-bottom: 1px solid var(--surface-2); border-radius: 0; padding: 0.7rem 0; }
  .site-header .page { position: relative; }
  .site-header .menu-toggle { display: inline-flex; margin-left: auto; }
  .facts { grid-template-columns: repeat(2, auto); }
  .field-row, .field-row.four { grid-template-columns: 1fr 1fr; }
  .machine-fields .field-row.four { grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
  .search { flex-direction: column; }
  .own-item { grid-template-columns: 48px minmax(0, 1fr); }
  .own-item .actions { grid-column: 1 / -1; justify-content: flex-start; }
  .robot-card { grid-template-columns: 80px minmax(0, 1fr); }
  .robot-picture { width: 80px; height: 80px; }
  .robot-card .actions { grid-column: 1 / -1; }
  .profile-id .actions { margin-left: 0; }
}
@media (max-width: 480px) {
  .dial { padding: 0.55rem 0.5rem; }
  .dial b { font-size: 1.9rem; }
  .screen-actions { flex-direction: column; }
  .site-footer .page { grid-template-columns: 1fr; }
}

/* ---------- Anti-robot check (ALTCHA) and two-factor authentication ---------- */
altcha-widget {
  display: block;
  --altcha-color-base: var(--surface-2);
  --altcha-color-base-content: var(--text);
  --altcha-color-neutral: var(--line);
  --altcha-color-neutral-content: var(--text-2);
  --altcha-color-primary: var(--orange);
  --altcha-color-primary-content: var(--on-orange);
  --altcha-color-success: var(--green);
  --altcha-color-success-content: var(--on-orange);
  --altcha-color-error: var(--danger);
  --altcha-border-radius: var(--r-field);
  --altcha-checkbox-outline-color: var(--orange-light);
  --altcha-max-width: 100%;
}
.code-input { font-family: var(--mono); font-size: 1.3rem; letter-spacing: 0.1em; max-width: 16rem; }
.twofa { margin-bottom: 1.6rem; }
.twofa h3 { font-size: 1.1rem; }
.steps-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.7rem; color: var(--text-2); }
.twofa-qr .byline { color: #2a3a55; text-align: center; }
.notice > * { margin: 0; }
.notice > * + * { margin-top: 0.8rem; }
.twofa-setup { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.twofa-qr { background: #fff; border-radius: var(--r-field); padding: 0.6rem; width: 204px; min-height: 204px; display: grid; place-items: center; }
.twofa-qr img { display: block; width: 184px; height: 184px; image-rendering: pixelated; }
.twofa-key { display: block; margin-top: 0.3rem; font-family: var(--mono); font-size: 1.05rem; letter-spacing: 0.06em; word-break: break-all; color: var(--text); }
.recovery-codes { display: grid; grid-template-columns: repeat(2, max-content); gap: 0.4rem 1.6rem; padding: 1rem 1.2rem;
  list-style: none; background: var(--screen); border: 1px solid var(--line); border-radius: var(--r-field);
  font-family: var(--mono); font-size: 1.1rem; letter-spacing: 0.06em; color: var(--text); }
@media (max-width: 600px) {
  .twofa-setup { grid-template-columns: minmax(0, 1fr); }
  .recovery-codes { grid-template-columns: max-content; }
}
.auth-page.signup-page { grid-template-areas: "signup kept"; }
@media (max-width: 960px) { .auth-page.signup-page { grid-template-areas: "signup" "kept"; } }

/* ---------------------------------------------------------------- translations of recipes */
.h4 { font-size: 1.05rem; font-weight: 650; }
.lang-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.9rem; }
.lang-bar .lang-label { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text-2); font-weight: 600; margin-right: 0.2rem; }
.lang-bar svg { width: 17px; height: 17px; }
.lang-bar a { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.75rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.lang-bar a small { color: var(--text-3); font-weight: 500; }
.lang-bar a:hover { border-color: var(--orange); }
.lang-bar a[aria-current="true"] { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.lang-bar a[aria-current="true"] small { color: var(--on-orange); opacity: 0.75; }
.lang-bar .lang-add { border-style: dashed; color: var(--text-2); }
.tr-info { margin-top: 0.9rem; display: grid; gap: 0.6rem; }
.tr-info > p:first-child { color: var(--text-2); }
.tr-langs { margin-top: 0; align-items: center; flex-wrap: wrap; }
.tr-langs label { font-weight: 650; }
.tr-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.6rem 1rem; align-items: start; }
.tr-orig { background: var(--surface-2); border-radius: var(--r-field); padding: 0.65rem 0.8rem; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.tr-tag { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); margin-bottom: 0.2rem; }
.tr-item { display: grid; gap: 0.6rem; }
.tr-item.has-unit { grid-template-columns: 6.5rem minmax(0, 1fr); }
.tr-item .tr-note { grid-column: 1 / -1; }
.tr-step { display: grid; gap: 0.6rem; }
.tr-step + .tr-step { border-top: 1px solid var(--line); padding-top: 1rem; }
@media (max-width: 720px) {
  .tr-pair { grid-template-columns: 1fr; }
}
.tr-form { max-width: 980px; }
@media (min-width: 721px) {
  .tr-pair > .tr-orig { margin-top: 1.85rem; }
}
