@charset "UTF-8";
/* ---------------------------------------------------------------------------
   Sainpleat — the card and its basket

   Colours and type are the brand's own, not sampled from a PNG: the four
   values below are printed in presentation-marque-sainpleat.pdf and the live
   site's own CSS uses the same ones (#f3d127 on the body, #e2eed1 in the
   footer), so this page sits beside sainpleat.ma rather than near it.

   Cabinet Grotesk is already self-hosted on the domain in eight weights, so
   it is referenced from where WordPress put it. Nothing is fetched from a CDN.

   Written mobile-first. The card is 81 dishes and 113 salad options long and
   almost everyone ordering lunch is holding a phone.
--------------------------------------------------------------------------- */

@font-face {
  font-family: 'Cabinet';
  src: url('https://www.sainpleat.ma/wp-content/uploads/2024/08/CabinetGrotesk-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cabinet';
  src: url('https://www.sainpleat.ma/wp-content/uploads/2024/08/CabinetGrotesk-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cabinet';
  src: url('https://www.sainpleat.ma/wp-content/uploads/2024/08/CabinetGrotesk-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cabinet';
  src: url('https://www.sainpleat.ma/wp-content/uploads/2024/08/CabinetGrotesk-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  /* ---- the brand book's four colours ---- */
  --green:        #006842;   /* primary */
  --olive:        #5a5d50;   /* body text, quieter headings */
  --pale:         #e2eed1;   /* tints, the footer */
  --yellow:       #f3d127;   /* accent, the call to action */

  /* ---- derived, same hues ---- */
  --green-dark:   #00502f;
  --green-tint:   #f2f8ec;
  --yellow-dark:  #d9b800;
  --ink:          #141617;   /* the live site's body colour */
  --ink-soft:     #5a5d50;
  --ink-faint:    #8a8d82;
  --paper:        #ffffff;
  --page:         #fbfcf8;
  --line:         #e3e7dc;
  --line-strong:  #cdd4c2;
  --warn-bg:      #fff6d6;
  --warn-ink:     #7a5c00;

  --font: 'Cabinet', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1080px;
  --gut: 16px;
  --r: 14px;
  --r-sm: 9px;
  --dock-h: 72px;

  --shadow-sm: 0 1px 2px rgba(20, 22, 23, .06), 0 1px 3px rgba(20, 22, 23, .04);
  --shadow-md: 0 4px 16px rgba(20, 22, 23, .09);
  --shadow-lg: 0 18px 50px rgba(20, 22, 23, .22);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-dark); }
h1, h2, h3 { font-weight: 900; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
ul.bare, .dishes { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green); color: #fff; padding: .7rem 1rem;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ------------------------------------------------------------------- header */

.site-head {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
/* Phone: logo and language on one row, the nav scrolling underneath. The
   card is long and the header must not eat the screen before it starts. */
.site-head__in {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .4rem .8rem;
  padding-block: .55rem;
}
.site-head__logo { display: block; }
.site-head__logo img { width: 112px; height: auto; }

.site-nav {
  grid-column: 1 / -1;
  display: flex; gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: calc(var(--gut) * -1);
  padding-inline: var(--gut);
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
  padding-block: .25rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--green); }
.site-nav a[aria-current] { color: var(--green); border-bottom-color: var(--yellow); }

@media (min-width: 760px) {
  .site-head__in {
    grid-template-columns: auto 1fr auto;
    padding-block: .7rem;
    gap: 1.2rem;
  }
  .site-head__logo img { width: 150px; }
  .site-nav {
    grid-column: auto;
    justify-content: flex-end;
    overflow: visible;
    margin-inline: 0; padding-inline: 0;
    gap: clamp(.7rem, 2vw, 1.4rem);
  }
  .site-nav a { font-size: .85rem; }
}

.lang { display: flex; gap: 2px; justify-self: end; }
.lang a {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  padding: .32rem .55rem; border-radius: var(--r-sm);
  text-decoration: none; color: var(--ink-faint);
  border: 1px solid var(--line);
}
.lang a.is-on { background: var(--green); border-color: var(--green); color: #fff; }

/* --------------------------------------------------------------------- hero */

.hero {
  background: linear-gradient(170deg, var(--pale), var(--green-tint) 72%);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(1.6rem, 5vw, 2.8rem);
}
.hero h1 {
  font-size: clamp(2rem, 7vw, 3.1rem);
  text-transform: uppercase;
  color: var(--green);
}
.hero__lead {
  margin: .5rem 0 0;
  font-size: clamp(1rem, 2.4vw, 1.14rem);
  font-weight: 500;
  color: var(--ink);
  max-width: 46ch;
}
.hero__house, .hero__key {
  margin: .75rem 0 0;
  font-size: .86rem;
  color: var(--ink-soft);
  max-width: 62ch;
}
.hero__key { color: var(--ink-faint); font-size: .8rem; }

.notice {
  margin: 1rem 0 0;
  background: var(--warn-bg);
  color: var(--warn-ink);
  border: 1px solid #e8d48a;
  border-radius: var(--r-sm);
  padding: .7rem .9rem;
  font-size: .9rem;
  font-weight: 500;
}

/* ---------------------------------------------------- category bar & search */

.chipbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.chipbar__in { padding-block: .6rem; display: grid; gap: .55rem; }

.find { display: block; }
.find input {
  width: 100%;
  font: inherit; font-size: .95rem;
  padding: .6rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--page);
  color: var(--ink);
}
.find input::placeholder { color: var(--ink-faint); }

.chips {
  display: flex; gap: .4rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: calc(var(--gut) * -1);
  padding-inline: var(--gut);
  scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  font-size: .82rem; font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: .36rem .8rem;
  white-space: nowrap;
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.is-on { background: var(--green); border-color: var(--green); color: #fff; }

/* ------------------------------------------------------------------ the card */

.cat { padding-block: clamp(1.5rem, 4vw, 2.4rem) 0; scroll-margin-top: 112px; }
.cat__head { border-bottom: 2px solid var(--yellow); padding-bottom: .5rem; }
.cat__head h2 {
  font-size: clamp(1.2rem, 3.6vw, 1.6rem);
  text-transform: uppercase;
  color: var(--green);
}
.cat__note {
  margin: .45rem 0 0; font-size: .86rem; color: var(--ink-soft); max-width: 70ch;
}

.dishes { display: grid; gap: 0; }

.dish {
  display: grid;
  grid-template-columns: 76px 1fr;
  grid-template-areas: 'img body' 'buy buy';
  gap: .35rem .9rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.dish:last-child { border-bottom: 0; }

.dish__img {
  grid-area: img;
  width: 76px; height: 76px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--green-tint);
}
.dish__img--none {
  display: block;
  background: var(--green-tint) center/36px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' fill='none' stroke='%23a9b49c' stroke-width='1.6'%3E%3Ccircle cx='18' cy='18' r='12'/%3E%3Cpath d='M12 20c2-3 4-3 6 0s4 3 6 0'/%3E%3C/svg%3E");
}

.dish__body { grid-area: body; min-width: 0; }
.dish__name { font-size: 1rem; font-weight: 700; }
.dish__desc {
  margin: .25rem 0 0; font-size: .87rem; color: var(--ink-soft); max-width: 62ch;
}
.dish__unit {
  margin: .25rem 0 0; font-size: .8rem; color: var(--ink-faint); font-weight: 500;
}
.dish__min {
  margin: .4rem 0 0; font-size: .78rem; font-weight: 500; color: var(--warn-ink);
}

/* nutrition chips */
.nut {
  list-style: none; margin: .45rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .3rem .45rem;
  font-size: .74rem; color: var(--ink-soft);
}
.nut li {
  background: var(--green-tint);
  border: 1px solid #dfe8d4;
  border-radius: 999px;
  padding: .12rem .45rem;
  white-space: nowrap;
}
.nut li span { color: var(--ink-faint); font-weight: 500; }
.nut__kcal { background: var(--pale) !important; border-color: #cfe0b8 !important; }
.nut__kcal b { color: var(--green); }
.nut__per { background: none !important; border-color: transparent !important; color: var(--ink-faint); }
.nut--pending {
  margin: .45rem 0 0; font-size: .76rem; color: var(--warn-ink);
  background: var(--warn-bg); border: 1px solid #e8d48a;
  border-radius: var(--r-sm); padding: .25rem .5rem; display: inline-block;
}

.dish__buy {
  grid-area: buy;
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem;
  padding-top: .2rem;
}
.dish__price {
  margin: 0; font-weight: 900; font-size: 1.02rem; color: var(--green);
  white-space: nowrap;
}
.dish__from {
  font-weight: 500; font-size: .72rem; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: .04em;
}

@media (min-width: 620px) {
  .dish {
    grid-template-columns: 96px 1fr auto;
    grid-template-areas: 'img body buy';
    align-items: center;
    gap: 1rem;
  }
  .dish__img { width: 96px; height: 96px; }
  .dish__buy { flex-direction: column; align-items: flex-end; gap: .5rem; padding-top: 0; }
}

/* ------------------------------------------------------------------ buttons */

.btn {
  font-size: .9rem; font-weight: 700;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .52rem 1.1rem;
  cursor: pointer;
  background: var(--green); color: #fff;
  transition: background .15s, transform .08s;
  white-space: nowrap;
}
.btn:hover { background: var(--green-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] {
  background: var(--line); color: var(--ink-faint); cursor: not-allowed;
}
.btn--add { min-width: 104px; }
.btn--ghost {
  background: var(--paper); color: var(--green); border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--green-tint); color: var(--green-dark); }
.btn--go {
  background: var(--yellow); color: var(--ink);
  font-weight: 900; letter-spacing: .01em;
}
.btn--go:hover { background: var(--yellow-dark); }
.btn--go[disabled] { background: var(--line); color: var(--ink-faint); }
.btn--wide { width: 100%; justify-content: center; padding-block: .78rem; font-size: 1rem; }

.footnote {
  margin: 2.2rem 0 1rem;
  font-size: .76rem; color: var(--ink-faint);
  border-top: 1px solid var(--line); padding-top: .9rem;
  max-width: 76ch;
}
.nomatch {
  margin: 2rem 0; font-weight: 500; color: var(--ink-soft);
}

/* -------------------------------------------------------------------- footer */

.site-foot {
  margin-top: 2.5rem;
  background: var(--pale);
  color: var(--ink);
  padding-top: clamp(1.8rem, 5vw, 2.6rem);
  padding-bottom: calc(var(--dock-h) + 1rem);
  border-top: 1px solid var(--line-strong);
}
.site-foot__in {
  display: grid; gap: 1.6rem;
  grid-template-columns: 1fr;
}
.site-foot h2 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--green); margin-bottom: .55rem;
}
.site-foot ul { display: grid; gap: .3rem; font-size: .9rem; }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { color: var(--green); text-decoration: underline; }
.site-foot__brand img { width: 150px; }
.site-foot__tag {
  margin: .7rem 0 0; font-weight: 700; font-size: .95rem;
  color: var(--green); max-width: 24ch;
}
.site-foot__ramadan {
  margin: .7rem 0 0; font-size: .8rem; font-weight: 500; color: var(--warn-ink);
}
.site-foot__legal {
  margin: 2rem 0 0; padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
  font-size: .76rem; color: var(--ink-soft); text-align: center;
}
@media (min-width: 700px) {
  .site-foot__in { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 2rem; }
}

/* ---------------------------------------------------------------- the basket */

.dock {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  background: var(--paper);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -6px 24px rgba(20, 22, 23, .1);
  padding-bottom: env(safe-area-inset-bottom);
}
.dock__in { padding-block: .6rem; }
.dock__open {
  width: 100%;
  display: flex; align-items: center; gap: .7rem;
  background: var(--green); color: #fff;
  border: 0; border-radius: 999px;
  padding: .72rem 1rem;
  cursor: pointer; font-weight: 700;
}
.dock__open:hover { background: var(--green-dark); }
.dock__count {
  background: var(--yellow); color: var(--ink);
  min-width: 1.65rem; height: 1.65rem;
  border-radius: 999px;
  display: grid; place-items: center;
  font-weight: 900; font-size: .85rem;
}
.dock__label { flex: 1; text-align: left; }
.dock__total { font-weight: 900; }

/* --------------------------------------------------------------------- modal */

.sheet {
  position: fixed; inset: 0; z-index: 60;
  display: none;
}
.sheet.is-open { display: block; }
.sheet__veil {
  position: absolute; inset: 0;
  background: rgba(20, 22, 23, .5);
  animation: fade .18s ease;
}
.sheet__panel {
  position: absolute; inset-inline: 0; bottom: 0;
  max-height: 92vh;
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: var(--r) var(--r) 0 0;
  box-shadow: var(--shadow-lg);
  animation: rise .22s cubic-bezier(.22, .68, .3, 1);
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(14px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) {
  .sheet__veil, .sheet__panel { animation: none; }
}
@media (min-width: 680px) {
  .sheet__panel {
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: min(620px, calc(100vw - 3rem));
    max-height: 86vh;
    border-radius: var(--r);
  }
  @keyframes rise { from { transform: translate(-50%, -48%); opacity: .6; } }
}

.sheet__head {
  display: flex; align-items: flex-start; gap: .8rem;
  padding: 1rem 1rem .8rem;
  border-bottom: 1px solid var(--line);
}
.sheet__title { font-size: 1.1rem; font-weight: 900; }
.sheet__sub { margin: .25rem 0 0; font-size: .84rem; color: var(--ink-soft); }
.sheet__x {
  margin-inline-start: auto; flex: 0 0 auto;
  width: 2.1rem; height: 2.1rem;
  border: 1px solid var(--line-strong); background: var(--paper);
  border-radius: 999px; cursor: pointer;
  font-size: 1.1rem; line-height: 1; color: var(--ink-soft);
}
.sheet__x:hover { background: var(--green-tint); color: var(--green); }

.sheet__body {
  padding: .9rem 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
}
.sheet__foot {
  padding: .85rem 1rem calc(.85rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper);
  display: grid; gap: .6rem;
}

/* running totals, pinned under the options */
.runner {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .8rem; font-size: .9rem;
}
.runner__total { font-weight: 900; font-size: 1.12rem; color: var(--green); }
.runner__kcal { color: var(--ink-soft); font-size: .84rem; }
.runner__why {
  margin: 0; font-size: .8rem; font-weight: 500; color: var(--warn-ink);
}

/* portion choice */
.sizes { display: grid; gap: .45rem; margin: 0; padding: 0; border: 0; }
.sizes legend {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-faint); font-weight: 700; padding: 0 0 .4rem;
}
.pick {
  display: flex; align-items: center; gap: .7rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: .62rem .8rem; cursor: pointer;
  background: var(--paper);
}
.pick:hover { border-color: var(--green); background: var(--green-tint); }
.pick:has(input:checked) {
  border-color: var(--green); background: var(--green-tint);
  box-shadow: inset 0 0 0 1px var(--green);
}
.pick input { accent-color: var(--green); width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }
.pick__label { flex: 1; font-size: .92rem; font-weight: 500; }
.pick__meta { font-size: .76rem; color: var(--ink-faint); display: block; font-weight: 400; }
.pick__price { font-weight: 700; font-size: .9rem; color: var(--green); white-space: nowrap; }
.pick__price--free { color: var(--ink-faint); font-weight: 500; }

/* the salad bar: one group per tap, because 113 checkboxes in one scroll
   is unusable on a phone */
.acc { display: grid; gap: .5rem; }
.acc__g {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--paper);
}
.acc__g[open] { border-color: var(--green); }
.acc__sum {
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem .8rem;
  cursor: pointer; font-weight: 700; font-size: .93rem;
  list-style: none;
}
.acc__sum::-webkit-details-marker { display: none; }
.acc__sum:hover { background: var(--green-tint); }
.acc__name { flex: 1; }
.acc__state {
  font-size: .76rem; font-weight: 500; color: var(--ink-faint);
  white-space: nowrap;
}
.acc__state.is-some { color: var(--green); font-weight: 700; }
.acc__chev { flex: 0 0 auto; transition: transform .16s; color: var(--ink-faint); }
.acc__g[open] .acc__chev { transform: rotate(180deg); }
.acc__list {
  display: grid; gap: .35rem;
  padding: .2rem .55rem .6rem;
  border-top: 1px solid var(--line);
}
.acc__sub {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-faint); font-weight: 700;
  padding: .55rem .25rem .15rem;
}

/* basket lines */
.lines { display: grid; gap: .7rem; }
.line {
  display: grid; grid-template-columns: 1fr auto;
  gap: .3rem .8rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
}
.line:last-child { border-bottom: 0; padding-bottom: 0; }
.line__name { font-weight: 700; font-size: .94rem; }
.line__detail {
  margin: .22rem 0 0; font-size: .79rem; color: var(--ink-soft); line-height: 1.45;
}
.line__kcal { font-size: .75rem; color: var(--ink-faint); margin: .2rem 0 0; }
.line__price { font-weight: 900; color: var(--green); text-align: right; white-space: nowrap; }
.line__tools { display: flex; align-items: center; gap: .3rem; margin-top: .4rem; }
.step {
  width: 1.9rem; height: 1.9rem;
  border: 1px solid var(--line-strong); background: var(--paper);
  border-radius: var(--r-sm); cursor: pointer;
  font-weight: 700; color: var(--ink-soft); line-height: 1;
}
.step:hover { border-color: var(--green); color: var(--green); background: var(--green-tint); }
.line__qty { min-width: 1.6rem; text-align: center; font-weight: 700; font-size: .9rem; }
.line__rm {
  margin-inline-start: .3rem; background: none; border: 0; cursor: pointer;
  font-size: .78rem; color: var(--ink-faint); text-decoration: underline;
}
.line__rm:hover { color: #a4292b; }

.empty { text-align: center; padding: 2rem 1rem; color: var(--ink-soft); }
.empty b { display: block; font-size: 1rem; color: var(--ink); margin-bottom: .3rem; }

/* checkout */
.field { display: grid; gap: .28rem; }
.field label { font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; font-size: .95rem;
  padding: .6rem .75rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--page); color: var(--ink);
  width: 100%;
}
.field textarea { min-height: 72px; resize: vertical; }
.field input:focus, .field textarea:focus {
  border-color: var(--green); background: var(--paper);
}
.form { display: grid; gap: .7rem; }

.done { text-align: center; padding: 1.4rem .5rem; }
.done__ref {
  display: inline-block; margin: .6rem 0 .9rem;
  font-weight: 900; font-size: 1.3rem; color: var(--green);
  background: var(--pale); border-radius: var(--r-sm); padding: .35rem .9rem;
  letter-spacing: .04em;
}
.done p { color: var(--ink-soft); font-size: .92rem; max-width: 42ch; margin-inline: auto; }

.err {
  margin: 0; font-size: .86rem; font-weight: 500;
  color: #8c2326; background: #fdeaea; border: 1px solid #f3c9c9;
  border-radius: var(--r-sm); padding: .6rem .75rem;
}

body.is-locked { overflow: hidden; }

/* ------------------------------------------- takeaway / delivery choice
   Two large buttons, exactly one to pick, none pre-selected (owner, 20 Oct
   2026). Radio inputs underneath, so it works with a keyboard and a screen
   reader, and so it can never be "both". */
.mode { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.mode legend {
  grid-column: 1 / -1; font-size: .8rem; font-weight: 700; color: var(--ink-soft);
  padding: 0 0 .4rem;
}
.mode__opt {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 3.2rem; padding: .6rem; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-strong); background: var(--paper);
  font-weight: 700; font-size: .98rem; cursor: pointer; text-align: center;
}
.mode__opt input { position: absolute; opacity: 0; pointer-events: none; }
.mode__opt:hover { border-color: var(--green); background: var(--green-tint); }
.mode__opt:has(input:checked) {
  border-color: var(--green); background: var(--green); color: #fff;
}
.mode__opt:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 2px; }
.mode__hint {
  grid-column: 1 / -1; margin: .1rem 0 0; font-size: .82rem; color: var(--ink-soft);
}
.mode.is-bad .mode__opt { border-color: #c7464a; }
.field.is-bad input { border-color: #c7464a; background: #fff6f6; }
.req { color: #c7464a; font-weight: 700; }
