/* Phone first, device fonts only (SCR-1, SCR-3, LANG-37). Start and end, never left and right, so
   one layout mirrors for right-to-left languages (LANG-34, LANG-36). */
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; color: #1a1a1a; background: #fff; }
header { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; padding: .75rem 1rem; border-bottom: 1px solid #ddd; }
header nav { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
main { padding: 1rem; max-width: 40rem; margin: 0 auto; }
.exchange { font-weight: 600; text-decoration: none; color: inherit; }
label { display: block; margin-top: .75rem; }
input, select, button { font: inherit; padding: .5rem; max-width: 100%; }
input:not([type=checkbox], [type=radio]), select { width: 100%; }
button { margin-top: 1rem; padding: .6rem 1.2rem; }
.error { color: #b00020; margin: .25rem 0 0; }
.help { color: #555; font-size: .9rem; }
.badge { font-size: .8rem; padding: 0 .4rem; border: 1px solid #999; border-radius: .25rem; }
.lang button { margin-top: 0; }
textarea { font: inherit; padding: .5rem; width: 100%; }
/* A long key or address breaks rather than pushing the page wider than a phone (SCR-1.1). */
code { overflow-wrap: anywhere; }
fieldset { border: 1px solid #ddd; margin: .75rem 0; padding: .5rem .75rem; }
.banner { padding: .75rem; background: #fff4d6; border: 1px solid #e0c060; }
.steps { padding-inline-start: 1.25rem; color: #555; }
.steps [aria-current] { color: inherit; font-weight: 600; }
/* Arrows point the way the page reads: flipped on purpose in a right-to-left page (LANG-34). */
.arrow { display: inline-block; }
[dir=rtl] .arrow { transform: scaleX(-1); }
/* The operator's jobs and one job's summary side by side on a wide screen, stacked on a phone (SCR-199.4). */
main:has(.split) { max-inline-size: 75rem; }
.detail { border-block-start: 1px solid #ddd; margin-block-start: 1rem; }
@media (min-width: 60rem) {
  .split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2rem; align-items: start; }
  .detail { border-block-start: 0; border-inline-start: 1px solid #ddd; padding-inline-start: 1.5rem; margin-block-start: 0; }
}
/* The staff console: wider on a laptop, and tables scroll sideways on a phone rather than widen the page (SCR-1). */
.console main { max-width: 60rem; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; }
th, td { padding: .25rem .5rem; text-align: start; border-block-end: 1px solid #ddd; vertical-align: top; }
.inline { display: inline; }
.inline button, .inline select { margin-top: 0; width: auto; }
.items { padding-inline-start: 1.25rem; }
.items li { margin-block-end: .5rem; }

/* dodosu.com (body.site) and every exchange (body.market). Near-white paper, near-black ink, one
   green for everything you can press and marigold as the single accent. A heavy system sans for headings (no web fonts, LANG-37), with
   Arabic on its own system stack, larger and looser. A small stall awning is the brand's one motif:
   on the wordmark and over the example marketplace. Logical properties only, so the page mirrors
   for right-to-left (LANG-34), and numbers and addresses sit in <bdi> so they keep their order. */
:is(.site, .market) {
  --bg: #fbfaf6; --surface: #fff; --ink: #16211c; --muted: #56635b; --line: #e3e1d8;
  --brand: #0d5a39; --brand-deep: #0a3f28; --accent: #f2a33a; --accent-soft: #fff1d9; --ok: #1d7a4b;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  font-family: var(--sans); background: var(--bg); color: var(--ink);
}
.site:lang(ar) { font-family: "Geeza Pro", "Noto Naskh Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; font-size: 1.08em; line-height: 1.7; }
/* An exchange page in Arabic draws its Latin names and numbers in the same fonts as in French, so
   the page is French's exact mirror (LANG-36), and its Arabic in the device's Arabic fonts. */
.market:lang(ar) { font-family: system-ui, -apple-system, "Geeza Pro", "Noto Naskh Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
:is(.site, .market) .icon { inline-size: 1.25em; block-size: 1.25em; vertical-align: -.25em; flex: none; }
:is(.site, .market) a { color: var(--brand); }
:is(.site, .market) h1, :is(.site, .market) h2, :is(.site, .market) h3 { font-weight: 800; line-height: 1.15; }
:is(.site, .market) :is(h1, h2):is(:lang(en), :lang(fr), :lang(fil), :lang(ms), :lang(tr), :lang(vi), :lang(sw), :lang(ln)) { letter-spacing: -.02em; }
:is(.site, .market) :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* One slim row. */
:is(.site, .market) header { flex-wrap: nowrap; gap: 1rem; min-block-size: 3.5rem; padding: .5rem 1rem; background: var(--surface); border-block-end: 1px solid var(--line); }
:is(.site, .market) .exchange { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.2rem; font-weight: 800; color: var(--ink); }
:is(.site, .market) .exchange::before {
  content: ""; inline-size: 1.35rem; block-size: 1.35rem; border-radius: .35rem;
  background: repeating-linear-gradient(90deg, var(--brand) 0 .27rem, var(--accent) .27rem .54rem);
}
:is(.site, .market) header nav { flex-wrap: nowrap; gap: 1rem; }
:is(.site, .market) header nav > a { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
:is(.site, .market) header nav > a:hover { color: var(--brand); }
:is(.site, .market) .lang { position: relative; }
:is(.site, .market) .lang summary {
  display: inline-flex; align-items: center; gap: .35rem; list-style: none; cursor: pointer; white-space: nowrap;
  padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .95rem;
}
:is(.site, .market) .lang summary::-webkit-details-marker { display: none; }
:is(.site, .market) .lang[open] summary { border-color: var(--brand); color: var(--brand); }
:is(.site, .market) .lang form {
  position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + .5rem); z-index: 10;
  display: grid; grid-template-columns: repeat(2, minmax(8.5rem, 1fr)); gap: .15rem; padding: .5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; box-shadow: 0 16px 40px -16px rgba(22, 33, 28, .35);
}
:is(.site, .market) .lang .lang-title { grid-column: 1 / -1; margin: .25rem .6rem .35rem; font-size: .8rem; color: var(--muted); font-weight: 700; }
:is(.site, .market) .lang button {
  margin: 0; min-block-size: 2.75rem; padding: .5rem .7rem; justify-content: start; text-align: start; background: none; color: var(--ink);
  border: 0; border-radius: .55rem; font-weight: 500; box-shadow: none;
}
:is(.site, .market) .lang button:hover { background: var(--bg); }
:is(.site, .market) .lang button[aria-current] { color: var(--brand); font-weight: 800; background: var(--accent-soft); }

/* What you can press: green, flat, at least 44 pixels tall. */
:is(.site, .market) .button, :is(.site, .market) button {
  display: inline-flex; align-items: center; justify-content: center; min-block-size: 2.9rem;
  background: var(--brand); color: #fff; font-weight: 700; text-decoration: none;
  border: 0; border-radius: .65rem; padding: .75rem 1.3rem; cursor: pointer;
}
:is(.site, .market) .button:hover, :is(.site, .market) button:hover { background: var(--brand-deep); }
:is(.site, .market) .button.ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
:is(.site, .market) .more { font-weight: 700; text-underline-offset: .2em; }
:is(.site, .market) input, :is(.site, .market) select, :is(.site, .market) textarea { border: 1px solid #c9c6bb; border-radius: .55rem; background: #fff; min-block-size: 2.75rem; }

/* The home page runs edge to edge in bands; each band keeps its text to a readable width. */
main:has(.home) { max-width: none; padding: 0; }
.home > section { padding: 3rem 1.25rem; }
.home > section > * { max-inline-size: 64rem; margin-inline: auto; }
.home h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); margin-block: 0 1.5rem; }
.home h3 { font-size: 1.05rem; margin-block: 0 .2rem; }
.home p { margin-block: 0 .75rem; }

.home > .hero { display: grid; gap: 2.25rem; padding-block: 2.25rem 3rem; }
.hero > * { inline-size: 100%; }
.hero h1 { font-size: clamp(2.05rem, 8vw, 3.5rem); line-height: 1.06; margin-block: 0 1rem; max-inline-size: 18ch; }
.site:lang(ar) .hero h1, .site:lang(hi) .hero h1, .site:lang(ne) .hero h1, .site:lang(ta) .hero h1 { line-height: 1.35; }
.hero .lead { font-size: 1.1rem; color: var(--muted); max-inline-size: 36rem; }
.hero .address { margin-block: 1.25rem; }
.hero .address bdi {
  display: inline-block; font-family: var(--mono); font-size: 1rem; padding: .5rem .85rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: .65rem; color: var(--muted);
}
.hero .address b { color: var(--brand); background: var(--accent-soft); padding: .05rem .3rem; border-radius: .3rem; }
.home .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.hero .note { margin-block-start: 1rem; font-size: .95rem; color: var(--muted); }

/* The example marketplace, drawn in the page so it's translated and mirrored like the rest. */
.demo { margin: 0; justify-self: center; inline-size: 100%; max-inline-size: 23rem; }
.demo figcaption { font-size: .85rem; font-weight: 700; color: var(--muted); margin-block-end: .6rem; text-align: center; }
.demo .screen {
  background: var(--surface); border: 1px solid var(--line); border-radius: 1.25rem; overflow: hidden;
  box-shadow: 0 1px 2px rgba(22, 33, 28, .05), 0 24px 48px -24px rgba(13, 90, 57, .35);
}
.demo p { margin: 0; }
.demo .bar { padding: .5rem .9rem; background: #f1efe7; font-family: var(--mono); font-size: .8rem; color: var(--muted); text-align: center; }
.demo .shop {
  padding: 1.35rem 1rem .9rem;
  background: repeating-linear-gradient(90deg, var(--brand) 0 1rem, var(--accent) 1rem 2rem) top / 100% .5rem no-repeat, var(--surface);
}
.demo .shop strong { display: block; font-size: 1.15rem; }
.demo .shop span { font-size: .9rem; color: var(--muted); }
.demo .rows { list-style: none; margin: 0; padding: 0; }
.demo .rows li {
  display: grid; grid-template-columns: 2rem 1fr auto; grid-template-areas: "icon what rate" "icon price price";
  column-gap: .6rem; align-items: center; padding: .7rem 1rem; border-block-start: 1px solid var(--line);
}
.demo .rows > li > .icon { grid-area: icon; inline-size: 2rem; block-size: 2rem; padding: .35rem; border-radius: .55rem; background: var(--accent-soft); color: var(--brand); }
.demo .what { grid-area: what; font-weight: 700; }
.demo .rate { grid-area: rate; display: inline-flex; align-items: center; gap: .2rem; font-size: .85rem; font-weight: 700; }
.demo .rate .icon { inline-size: .95rem; block-size: .95rem; color: var(--accent); }
.demo .price { grid-area: price; font-size: .85rem; color: var(--muted); }
.demo .booking { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem .75rem; padding: .85rem 1rem; background: var(--accent-soft); font-size: .9rem; }
.demo .status { display: inline-flex; align-items: center; gap: .25rem; color: var(--ok); font-weight: 800; }

.home > .proof { padding-block: 1rem; background: var(--surface); border-block: 1px solid var(--line); }
.proof ul { list-style: none; padding: 0; margin-block: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem; }
.proof li { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.proof .icon { color: var(--brand); }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.ticks li { display: flex; gap: .8rem; align-items: start; }
.ticks .icon { inline-size: 1.75rem; block-size: 1.75rem; padding: .35rem; border-radius: 50%; background: var(--brand); color: #fff; }
.ticks p { margin: 0; color: var(--muted); font-size: .95rem; }

.focus { background: var(--accent-soft); border-block: 1px solid #f3dcb3; text-align: center; }
.focus h2 { margin-block-end: .5rem; }
.focus p { font-size: 1.1rem; max-inline-size: 38rem; }

.timeline { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; }
.timeline li { counter-increment: step; position: relative; padding-inline-start: 3.25rem; padding-block-end: 1.5rem; }
.timeline li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; inset-block-start: 0;
  inline-size: 2.25rem; block-size: 2.25rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800;
}
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; inset-inline-start: 1.06rem; inset-block: 2.5rem .25rem; inline-size: 2px; background: var(--line);
}
.timeline p { color: var(--muted); margin: 0; }
@media (min-width: 56rem) {
  .home > .hero { grid-template-columns: 1.15fr .85fr; align-items: center; column-gap: 3rem; max-inline-size: 70rem; margin-inline: auto; }
  .home > .hero > * { max-inline-size: none; margin-inline: 0; }
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .timeline li { padding-inline-start: 0; padding-block-start: 3rem; }
  .timeline li:not(:last-child)::after { inset-inline: 2.75rem -1rem; inset-block: 1.1rem auto; inline-size: auto; block-size: 2px; }
}

.tiles { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.tiles a {
  display: grid; grid-template-columns: 2.6rem 1fr; grid-template-rows: auto 1fr; gap: .15rem .8rem; align-items: start; block-size: 100%;
  padding: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; color: var(--ink); text-decoration: none;
}
.tiles a:hover { border-color: var(--brand); }
.tiles .icon { grid-row: span 2; inline-size: 2.6rem; block-size: 2.6rem; padding: .55rem; border-radius: .7rem; background: var(--accent-soft); color: var(--brand); }
.tiles .name { font-weight: 800; }
.tiles .sum { font-size: .9rem; color: var(--muted); }

.closer { background: var(--brand-deep); color: #fff; text-align: center; }
.closer h2 { color: #fff; margin-block-end: .5rem; }
.closer p { color: #dce8e1; }
.closer .actions { justify-content: center; }
.closer .button { background: var(--accent); color: var(--ink); }
.closer .button:hover { background: #f6b85f; }
.closer a { color: #fff; }
.closer .small { margin-block-start: 1.25rem; font-size: .95rem; }

.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; padding: 1.5rem 1.25rem; border-block-start: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-foot a { color: var(--ink); font-weight: 600; text-decoration: none; }
.site-foot p { margin: 0; }

/* Every exchange (body.market): the same paper, ink and green as dodosu.com, on pages built for a
   phone. Lists of jobs, people and places are cards; tabs are pills; a choice is its whole row. */
.market header, .market header nav { flex-wrap: wrap; }
/* The language list opens under the whole header, so it stays on screen wherever the menu sits. */
.market header { position: relative; }
.market .lang { position: static; }
.market .lang form { inset-inline: 1rem; }
.market header nav { gap: .5rem 1rem; }
.market main { padding: 1.25rem 1rem 2.5rem; }
.market h1 { font-size: clamp(1.7rem, 6.5vw, 2.4rem); margin-block: .25rem 1rem; }
.market h2 { font-size: 1.25rem; margin-block: 1.75rem .75rem; }
.market h3 { font-size: 1.05rem; margin-block: 1.25rem .5rem; }
.market .help { color: var(--muted); }
.market .error { color: #b3261e; font-weight: 600; }
.market .back { display: inline-flex; gap: .35rem; font-weight: 600; text-decoration: none; }

/* Forms, on dodosu.com as on every exchange: a choice is its whole row (SCR-306). */
:is(.site, .market) label { font-weight: 600; margin-block-start: 1rem; }
:is(.site, .market) label .help, :is(.site, .market) label + .help { font-weight: 400; }
:is(.site, .market) input, :is(.site, .market) select, :is(.site, .market) textarea { padding: .6rem .75rem; }
:is(.site, .market) input:focus, :is(.site, .market) select:focus, :is(.site, .market) textarea:focus { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: 0; }
:is(.site, .market) label:has(> input:is([type=radio], [type=checkbox])) {
  display: flex; align-items: center; gap: .65rem; min-block-size: 2.75rem; margin-block-start: .35rem;
  padding: .45rem .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: .65rem; font-weight: 500;
}
:is(.site, .market) label:has(> input:checked) { border-color: var(--brand); background: #f1f7f3; }
:is(.site, .market) input:is([type=radio], [type=checkbox]) { inline-size: 1.15rem; block-size: 1.15rem; min-block-size: 0; margin: 0; accent-color: var(--brand); flex: none; }
:is(.site, .market) fieldset { margin-block: 1.25rem; padding: .75rem 1rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; }
:is(.site, .market) legend { padding-inline: .35rem; font-weight: 800; }
:is(.site, .market) fieldset label:has(> input:is([type=radio], [type=checkbox])) { background: var(--bg); }
:is(.site, .market) form > button, :is(.site, .market) form > p > button { margin-block-start: 1.25rem; }
:is(.site, .market) button + button { margin-inline-start: .5rem; }

.market .banner, .site .banner { padding: .85rem 1rem; background: var(--accent-soft); border: 0; border-inline-start: 4px solid var(--accent); border-radius: .65rem; }
.market header + .banner { margin: 0; border-radius: 0; }
.market .badge { display: inline-block; padding: .1rem .55rem; border: 0; border-radius: 999px; background: var(--accent-soft); color: #7a4a06; font-size: .8rem; font-weight: 700; }

/* Tabs and sort orders: a row of pills that scrolls sideways on a narrow phone. */
.market .tabs ul { list-style: none; display: flex; gap: .4rem; overflow-x: auto; padding: 0 0 .25rem; margin: 0 0 1rem; }
.market .tabs a { display: inline-block; white-space: nowrap; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; }
.market .tabs a[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Lists of things to open: one card each. */
.market :is(.jobs, .series, .suppliers, .places, .quotes, .offers, .requests, .people, .ratings, .removals, .statements, .payments, .prices) {
  list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem;
}
.market :is(.jobs, .series, .suppliers, .places, .quotes, .offers, .requests, .people, .ratings, .removals, .statements, .payments) > li {
  padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: .9rem;
}
.market :is(.jobs, .series, .suppliers, .places, .quotes, .offers, .requests, .people, .ratings, .removals, .statements, .payments) > li > :is(p, form):last-child { margin-block-end: 0; }
.market :is(.jobs, .series) > li > p { margin-block: .35rem 0; color: var(--muted); }
.market :is(.jobs, .series) strong { font-size: 1.05rem; }
.market .prices { gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; }
.market .prices > li { padding: .65rem 1rem; }
.market .prices > li + li { border-block-start: 1px solid var(--line); }

/* The operator's screens and shortcuts: a grid of links. */
.market :is(.screens, .shortcuts) ul, .market ul.shortcuts { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); }
.market :is(.screens, .shortcuts) li > a:only-child, .market ul.shortcuts li > a:only-child { display: block; padding: .7rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: .7rem; font-weight: 600; text-decoration: none; }
.market .screens li:not(:has(> a:only-child)) { grid-column: 1 / -1; padding: .4rem .2rem; }

/* The exchange's services: a tile each, with its icon. */
.market .tiles a { grid-template-rows: auto auto 1fr; }
.market .tiles .icon { grid-row: span 3; }
.market .tiles .badge, .market .tiles .help { justify-self: start; font-size: .85rem; }
.market table { inline-size: 100%; background: var(--surface); }
.market th { font-size: .85rem; color: var(--muted); }

/* Signing up and setting up (SCR-306, SCR-307), built for a computer as much as a phone: wide
   pages keep the list of steps beside each step's form, and every form keeps a readable width. */
:is(.site, .market) .card { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem 1.25rem 1.5rem; }
:is(.site, .market) .card > :first-child { margin-block-start: 0; }
:is(.site, .market) .narrow { max-inline-size: 30rem; margin-inline: auto; }
:is(.site, .market) .center { text-align: center; }
:is(.site, .market) .big-icon { margin: 0; color: var(--brand); }
:is(.site, .market) .big-icon .icon { inline-size: 3rem; block-size: 3rem; padding: .6rem; border-radius: 50%; background: var(--accent-soft); }
:is(.site, .market) button.wide { inline-size: 100%; }
:is(.site, .market) header .button.small { min-block-size: 2.4rem; padding: .45rem .9rem; color: #fff; }
/* On a phone the page's own button does it; the header keeps to one row. */
/* On a phone the language menu shows only its globe, its name kept for screen readers, so the row fits. */
@media (max-width: 34rem) {
  .site header details.lang summary > span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site header nav { gap: .6rem; }
  :is(.site, .market) header .button.small { padding: .4rem .7rem; font-size: .9rem; }
}
:is(.site, .market) button.secondary { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
:is(.site, .market) button.secondary:hover { background: var(--accent-soft); }
:is(.site, .market) .lead { font-size: 1.1rem; color: var(--muted); }
:is(.site, .market) .tag { display: inline-block; padding: 0 .5rem; border-radius: 999px; background: var(--accent-soft); color: #7a4a06; font-size: .75rem; font-weight: 700; }
:is(.site, .market) .banner.saved { display: flex; align-items: center; gap: .5rem; background: #e8f3ec; border-inline-start-color: var(--ok); }
:is(.site, .market) .banner.saved .icon { color: var(--ok); }
.cf-turnstile { margin-block-start: 1rem; }

/* Sign up and sign in: what it's for beside the form on a computer. */
.auth { display: grid; gap: 1.5rem; }
.auth h1 { margin-block-start: 0; }
.auth .ticks { grid-template-columns: 1fr; gap: .75rem; margin-block: 1.25rem; }
.auth .ticks li { align-items: center; font-weight: 600; }
.auth .ticks .icon { inline-size: 1.5rem; block-size: 1.5rem; padding: .3rem; }
.auth-alt h2 { font-size: 1.05rem; margin-block-start: 0; }

/* The steps: a mark for each (a tick when done), its name, and what's done or left. */
.setup-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.setup-steps li { display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; align-items: start; padding: .6rem .7rem; border-radius: .75rem; }
.setup-steps li[aria-current] { background: var(--accent-soft); }
.setup-steps .mark {
  display: grid; place-items: center; inline-size: 2rem; block-size: 2rem; border-radius: 50%;
  border: 2px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 800; font-size: .9rem;
}
.setup-steps .mark .icon { inline-size: 1.1rem; block-size: 1.1rem; }
.setup-steps .done .mark { background: var(--brand); border-color: var(--brand); color: #fff; }
.setup-steps .next .mark { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.setup-steps .waiting .mark, .setup-steps .optional .mark { border-style: dashed; }
.setup-steps .what { display: grid; gap: .1rem; padding-block-start: .2rem; }
.setup-steps .label { font-weight: 700; }
.setup-steps .label a { color: var(--ink); text-decoration: none; }
.setup-steps .label a:hover { color: var(--brand); text-decoration: underline; }
.setup-steps .label form { display: inline; }
.setup-steps .label button { all: unset; cursor: pointer; font-weight: 700; color: var(--ink); }
.setup-steps .label button:hover { color: var(--brand); text-decoration: underline; }
.setup-steps .detail { font-size: .9rem; color: var(--muted); }
.setup-steps .done .detail { color: var(--ok); }

.setup-progress { display: flex; align-items: center; gap: .75rem; margin-block: .5rem 1.25rem; font-weight: 700; font-size: .9rem; color: var(--muted); }
.setup-progress progress { appearance: none; flex: 1; block-size: .5rem; border: 0; border-radius: 999px; background: var(--line); overflow: hidden; }
.setup-progress progress::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
.setup-progress progress::-webkit-progress-value { background: var(--brand); border-radius: 999px; }
.setup-progress progress::-moz-progress-bar { background: var(--brand); border-radius: 999px; }

/* The hub: how far along, the next step in its own card, and the whole list. */
.setup-hub h1 { margin-block-end: .25rem; }
.setup-next { margin-block: 0 1.5rem; padding: 1.25rem; background: var(--surface); border: 2px solid var(--accent); border-radius: 1rem; }
.setup-next p { margin: 0; }
.setup-next > p:first-child { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #7a4a06; }
.setup-next .next-label { font-size: 1.35rem; font-weight: 800; margin-block: .25rem; }
.setup-next .button, .setup-next button { margin-block-start: 1rem; }
.setup-next form { margin: 0; }
.more-screens { margin-block-start: 2rem; }
.more-screens summary { cursor: pointer; font-weight: 700; color: var(--brand); margin-block-end: .75rem; }

/* A setup page: which step this is above the form on a phone; the list beside it on a computer. */
.setup-aside { display: block; margin-block-end: 1.5rem; padding: .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; }
.setup-aside .setup-progress { margin-block: 0 .5rem; }
.setup-aside .setup-steps { gap: 0; }
.setup-aside .setup-steps li { padding: .3rem .5rem; gap: .6rem; grid-template-columns: 1.6rem 1fr; }
.setup-aside .setup-steps .mark { inline-size: 1.6rem; block-size: 1.6rem; font-size: .8rem; }
.setup-aside .setup-steps .detail { font-size: .8rem; }

/* The prices page: each service a card, each amount with its currency. */
.price-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.price-cards fieldset.card { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .75rem 1.5rem; align-content: start; }
.price-cards fieldset.card { margin: 0; }
.price-row { display: grid; align-content: start; }
.price-row .unit { font-weight: 400; color: var(--muted); }
.money-input { display: flex; align-items: stretch; margin-block-start: .35rem; }
.money-input .currency { display: grid; place-items: center; padding-inline: .75rem; background: var(--bg); border: 1px solid #c9c6bb; border-inline-end: 0; border-start-start-radius: .55rem; border-end-start-radius: .55rem; font-weight: 700; color: var(--muted); }
.money-input input { border-start-start-radius: 0; border-end-start-radius: 0; }

/* A long service form: its sections, one tap away. */
.page-index { display: flex; flex-wrap: wrap; gap: .4rem; margin-block: 1rem; }
.page-index a { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; text-decoration: none; font-size: .9rem; }

/* Translations: each text a card; the original beside its translation on a computer. */
.translation-actions { display: flex; flex-wrap: wrap; align-items: end; gap: .25rem 1rem; margin-block: 1rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; }
.translation-actions form { margin: 0; }
.translation-actions .help { flex-basis: 100%; margin: 0; order: -1; }
.translation-actions button { margin-block-start: .5rem; }
.market ul.translations { list-style: none; padding: 0; display: grid; gap: .75rem; }
.market ul.translations > li { padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; }
.market ul.translations > li.flagged { border-color: var(--accent); }
.market ul.translations h2 { font-size: 1rem; margin: 0 0 .5rem; }
.market ul.translations blockquote { margin: .25rem 0; padding: .5rem .75rem; background: var(--bg); border-inline-start: 3px solid var(--line); border-radius: .4rem; }
.market ul.translations .original p { margin: .25rem 0; font-size: .9rem; color: var(--muted); }
.market ul.translations label { margin-block-start: 0; }

/* Templates to pick from when enrolling, as cards. */
.site .templates { list-style: none; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.site .templates > li { padding: .25rem 1rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; }
.site .templates > li:has(> label > input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.site .templates > li > label { border: 0; padding-inline: 0; background: none; }

/* A list of languages or countries to tick: several to a row instead of one tall column. */
:is(.site, .market) fieldset:has(> label > input[type=checkbox]):not(:has(> label > input:not([type=checkbox]))) {
  display: grid; gap: .4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr));
}
:is(.site, .market) fieldset:has(> label > input[type=checkbox]) > :not(label) { grid-column: 1 / -1; }
:is(.site, .market) fieldset:has(> label > input[type=checkbox]) > label { margin-block-start: 0; }

@media (min-width: 60rem) {
  :is(.site, .market) main:has(.setup-layout, .setup-hub, .auth) { max-inline-size: 76rem; padding-inline: 2rem; }
  .market main.wide { max-inline-size: 76rem; padding-inline: 2rem; }
  .market main.wide > form:not(.prices-form), .market main.wide .setup-main > form:not(.prices-form) { max-inline-size: 46rem; }
  .setup-layout { display: grid; grid-template-columns: 18rem minmax(0, 1fr); gap: 3rem; align-items: start; }
  .setup-aside { position: sticky; inset-block-start: 1rem; margin: 0; padding: 1rem; }
  .setup-aside .setup-progress { margin-block: 0 .75rem; }
  .setup-aside .setup-steps { gap: .25rem; }
  .setup-aside .setup-steps li { padding: .6rem .7rem; gap: .75rem; grid-template-columns: 2rem 1fr; }
  .setup-aside .setup-steps .mark { inline-size: 2rem; block-size: 2rem; font-size: .9rem; }
  .setup-aside .setup-steps .detail { font-size: .9rem; }
  .setup-main > h1:first-child, .setup-main > :first-child + h1 { margin-block-start: 0; }
  .setup-main > form { max-inline-size: 46rem; }
  .setup-hub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "banner banner" "title list" "progress list" "next list" ". list"; gap: 0 3rem; align-items: start; }
  .setup-hub > .banner { grid-area: banner; margin-block-end: 1.5rem; }
  .setup-hub > h1 { grid-area: title; }
  .setup-hub > .setup-progress { grid-area: progress; }
  .setup-hub > .setup-next { grid-area: next; }
  .setup-hub > .setup-steps { grid-area: list; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; }
  .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 3rem; align-items: start; padding-block: 2rem; }
  .auth:has(.auth-alt) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-inline-size: 60rem; margin-inline: auto; }
  .auth-pitch h1 { font-size: clamp(2rem, 4vw, 3rem); }
  /* The service editor's rows (job fields, requirements, prices) lay their fields out side by side. */
  .market main.wide form:has(fieldset.rows), .market main.wide .setup-main > form:has(fieldset.rows) { max-inline-size: 64rem; }
  .market fieldset.row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: .25rem 1rem; align-items: end; }
  .market fieldset.row > p { margin: 0; }
  .market fieldset.row > :is(p.help, .error, div) { grid-column: 1 / -1; }
  .market fieldset.row > p:has(> textarea) { grid-column: 1 / -1; order: 1; }
  .market fieldset.row > p:has(input[name$=".remove"]) { order: 2; }
  .market fieldset.row > :is(p.help, .error, div) { order: 3; }
  .market fieldset.row > p.help:first-of-type { order: -1; }
  /* One row per text on a computer: what it is, the original, then the translation and its save. */
  .market ul.translations { gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
  .market ul.translations > li { display: grid; grid-template-columns: 10rem minmax(0, 1fr) minmax(0, 1.7fr); gap: .25rem 1rem; align-items: start; padding: .75rem 1rem; border: 0; border-radius: 0; border-block-end: 1px solid var(--line); }
  .market ul.translations > li:last-child { border-block-end: 0; }
  .market ul.translations > li.flagged { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
  .market ul.translations > li > h2 { grid-column: 1; margin: 0; font-size: .9rem; }
  .market ul.translations > li > .badge { grid-column: 1; grid-row: 2; justify-self: start; }
  .market ul.translations > li > .original { grid-column: 2; grid-row: 1 / span 2; }
  .market ul.translations > li > .original > p:first-child { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .market ul.translations blockquote { margin-block-start: 0; }
  .market ul.translations > li > form { grid-column: 3; grid-row: 1 / span 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: start; margin: 0; }
  .market ul.translations > li > form > label { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .market ul.translations > li > form > textarea { margin: 0; min-block-size: 2.6rem; }
  .market ul.translations > li > form > :is(.error, .field-error) { grid-column: 1 / -1; }
  .market ul.translations > li > form button { margin: 0; padding: .55rem .9rem; font-size: .9rem; }
}

/* What customers see (SCR-309): a small browser window drawn from the form beside it. Below the
   form on a phone; beside it, and kept in view, on a wide screen. */
.preview { margin-block: 2rem 0; font-size: .9rem; }
.preview-title { display: flex; align-items: center; gap: .4rem; margin: 0 0 .5rem; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.preview-title .icon { inline-size: 1.1rem; block-size: 1.1rem; }
.preview-frame { overflow: hidden; background: var(--bg); border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 1rem 2.5rem -1.25rem rgb(20 40 30 / .35); }
.preview-bar { display: flex; align-items: center; gap: .75rem; margin: 0; padding: .55rem .75rem; background: var(--surface); border-block-end: 1px solid var(--line); }
.preview-dots { flex: none; display: flex; gap: .3rem; }
.preview-dots::before, .preview-dots::after { content: ""; inline-size: .6rem; block-size: .6rem; border-radius: 50%; background: #e3dfd2; }
.preview-url { flex: 1; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .2rem .7rem; background: var(--bg); border-radius: 99rem; font-size: .8rem; color: var(--muted); }
.preview-page { padding: 1rem; }
.preview-page p { margin-block: 0 .5rem; }
.preview-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; padding-block-end: .75rem; margin-block-end: .75rem; border-block-end: 1px solid var(--line); }
.preview-head strong { font-size: 1.15rem; }
.preview-langs { display: flex; flex-wrap: wrap; gap: .25rem; }
.preview-langs .pill { padding: .1rem .55rem; border: 1px solid var(--line); border-radius: 99rem; background: var(--surface); font-size: .75rem; }
.preview-langs .pill[hidden] { display: none; }
.preview-lead { color: var(--muted); }
.preview-h { display: flex; align-items: center; gap: .5rem; margin-block: 1rem .5rem !important; font-weight: 800; }
.preview-h.big { margin-block-start: 0 !important; font-size: 1.25rem; }
.preview-h .icon { inline-size: 1.8rem; block-size: 1.8rem; padding: .35rem; border-radius: .5rem; background: var(--accent-soft); color: var(--brand); }
.preview-tiles { grid-template-columns: 1fr; gap: .5rem; }
.tiles .tile { display: grid; grid-template-columns: 2.6rem 1fr; grid-template-rows: auto 1fr; gap: .15rem .8rem; align-items: start; padding: .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; }
.preview-field { display: grid; gap: .2rem; margin-block-end: .75rem; }
.preview-label { font-weight: 700; }
.preview-input { display: block; block-size: 2.2rem; background: var(--surface); border: 1px solid #c9c6bb; border-radius: .55rem; }
.preview-input.long { block-size: 4rem; }
.preview-prices { margin: 0 0 1rem; padding: .25rem .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; }
.preview-prices > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.preview-prices > div + div { border-block-start: 1px solid var(--line); }
.preview-prices dt .unit { color: var(--muted); font-weight: 400; }
.preview-prices dd { margin: 0; font-weight: 800; white-space: nowrap; }
.preview-button { pointer-events: none; }

@media (min-width: 80rem) {
  :is(.site, .market) main:has(.setup-layout, .setup-hub, .auth), .market main.wide { max-inline-size: 90rem; }
  .with-preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem); gap: 2.5rem; align-items: start; }
  .with-preview > form { max-inline-size: none !important; }
  .with-preview > .preview { position: sticky; inset-block-start: 1rem; margin: 0; max-block-size: calc(100vh - 2rem); overflow: auto; }
}
/* A big monitor: wider still, with a roomier preview. */
@media (min-width: 112.5rem) {
  :is(.site, .market) main:has(.setup-layout, .setup-hub, .auth), .market main.wide { max-inline-size: 100rem; }
  .with-preview { grid-template-columns: minmax(0, 1fr) minmax(22rem, 30rem); gap: 3rem; }
}

/* A list of checkboxes, such as languages or countries, as a grid of whole-row choices. */
.market fieldset:has(> p > label > input[type="checkbox"]):not(:has(input:not([type="checkbox"]))) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: .4rem .5rem; }
.market fieldset:has(> p > label > input[type="checkbox"]):not(:has(input:not([type="checkbox"]))) > p { margin: 0; }
.market fieldset:has(> p > label > input[type="checkbox"]):not(:has(input:not([type="checkbox"]))) > :is(legend + p.help, .error) { grid-column: 1 / -1; }

/* The templates page (SCR-301, DEC-150): ten businesses to open. A hero with a grid of all ten
   that jumps to each card, a card per template saying how it works, then ways to mix them. */
.tpl .eyebrow { display: inline-block; margin-block-end: 1rem; padding: .3rem .75rem; border-radius: 99rem; background: var(--accent-soft); color: var(--brand-deep); font-weight: 800; font-size: .9rem; }
.tpl-hero { background: linear-gradient(180deg, var(--surface), var(--bg)); border-block-end: 1px solid var(--line); }
.mosaic ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 6.5rem), 1fr)); }
.mosaic a {
  display: grid; justify-items: center; gap: .45rem; padding: .9rem .4rem .75rem; text-align: center; block-size: 100%; box-sizing: border-box;
  background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .85rem;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.mosaic a .icon { inline-size: 2.6rem; block-size: 2.6rem; padding: .55rem; border-radius: .8rem; background: var(--accent-soft); color: var(--brand); }
.mosaic li:nth-child(3n+2) a .icon { background: #e4f1ea; }
.mosaic li:nth-child(3n) a .icon { background: var(--brand); color: #fff; }
.mosaic a:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(13, 90, 57, .45); }

.tpl-list > p.lead, .mix > p.lead { color: var(--muted); font-size: 1.05rem; margin-block: -1rem 1.5rem; }
.tpl-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.tpl-cards > li {
  display: flex; flex-direction: column; gap: .9rem; padding: 1.25rem; scroll-margin-block-start: 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 1.1rem; border-block-start: 4px solid var(--accent);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.tpl-cards > li:nth-child(even) { border-block-start-color: var(--brand); }
.tpl-cards > li:hover { box-shadow: 0 18px 40px -24px rgba(22, 33, 28, .4); }
.tpl-cards > li:target { border-color: var(--brand); box-shadow: 0 0 0 3px var(--accent-soft), 0 18px 40px -24px rgba(22, 33, 28, .4); }
.tpl-cards p { margin: 0; }
.tpl-head { display: flex; gap: .9rem; align-items: start; }
.tpl-head > .icon { inline-size: 3.2rem; block-size: 3.2rem; padding: .7rem; border-radius: .9rem; background: var(--accent-soft); color: var(--brand); }
.tpl-head h3 { font-size: 1.3rem; margin: 0 0 .25rem; }
.tpl-head h3 a { color: var(--ink); text-decoration: none; }
.tpl-head h3 a:hover { color: var(--brand); }
.tpl-head .sum { color: var(--muted); font-size: .95rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { padding: .25rem .65rem; border-radius: 99rem; background: #e4f1ea; color: var(--brand-deep); font-size: .82rem; font-weight: 700; }
.chips li:first-child { background: var(--brand); color: #fff; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 0; }
.roles div { padding: .5rem .7rem; border-radius: .65rem; background: var(--bg); }
.roles dt { font-size: .75rem; color: var(--muted); font-weight: 700; }
.roles dd { margin: 0; font-weight: 800; }
.asks { padding: .75rem; border: 1px dashed #cfccc0; border-radius: .8rem; }
.asks-title { font-size: .8rem; font-weight: 800; color: var(--muted); margin-block-end: .45rem !important; }
.asks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.asks li { padding: .45rem .65rem; border: 1px solid var(--line); border-radius: .5rem; background: #fff; font-size: .9rem; }
.asks li.more-asks { border: 0; background: none; padding-block: 0; color: var(--muted); font-size: .85rem; }
.travels { display: flex; gap: .55rem; align-items: start; padding: .75rem .85rem; border-radius: .8rem; background: var(--accent-soft); font-size: .92rem; }
.travels .icon { color: #b86e0b; margin-block-start: .1rem; }
.tpl-foot { margin-block-start: auto !important; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.tpl-foot .pill { padding: .2rem .6rem; border: 1px solid var(--line); border-radius: 99rem; font-size: .8rem; color: var(--muted); }
.tpl-foot .more:hover .arrow { display: inline-block; transform: translateX(3px); }
.tpl-foot .arrow { display: inline-block; transition: transform .15s ease; }
[dir="rtl"] .tpl-foot .arrow { transform: scaleX(-1); }
[dir="rtl"] .tpl-foot .more:hover .arrow { transform: scaleX(-1) translateX(3px); }

.mix { background: var(--surface); border-block: 1px solid var(--line); }
.mixes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.mixes > li { padding: 1.1rem; border-radius: 1rem; background: var(--bg); border: 1px solid var(--line); }
.mixes .stack { display: flex; margin-block-end: .8rem !important; }
.mixes .stack .icon { inline-size: 2.6rem; block-size: 2.6rem; padding: .55rem; border-radius: 50%; background: var(--accent-soft); color: var(--brand); box-shadow: 0 0 0 3px var(--bg); }
.mixes .stack .icon + .icon { margin-inline-start: -.6rem; }
.mixes .stack .icon:nth-child(2) { background: #e4f1ea; }
.mixes .stack .icon:nth-child(3) { background: var(--brand); color: #fff; }
.mixes p { color: var(--muted); font-size: .95rem; }
.mixes .names { margin: 0; font-size: .85rem; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .mosaic a, .tpl-cards > li, .tpl-foot .arrow { transition: none; }
  .mosaic a:hover { transform: none; }
}
@media (min-width: 56rem) {
  .home > .tpl-hero { grid-template-columns: 1fr 1fr; }
  .mosaic ul { grid-template-columns: repeat(5, 1fr); }
}
/* Ten cards sit two to a row on a wider screen, so none is left alone on the last row. */
@media (min-width: 48rem) {
  .tpl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .tpl-cards > li { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.25rem; align-content: start; }
  .tpl-cards > li > :is(.tpl-head, .chips, .tpl-foot) { grid-column: 1 / -1; }
  .tpl-cards > li > .roles { grid-column: 1; align-self: start; grid-template-columns: 1fr; }
  .tpl-cards > li > .asks { grid-column: 2; grid-row: span 2; }
  .tpl-cards > li > .travels { grid-column: 1; align-self: start; }
  .tpl-foot { align-self: end; }
}

/* One template's page (SCR-301, DEC-151): how it works beside what customers see. */
.tpl-one .crumbs { margin-block-end: 1rem; font-weight: 700; }
.tpl-one .crumbs a::before { content: "← "; }
[dir="rtl"] .tpl-one .crumbs a::before { content: "→ "; }
.tpl-title { display: flex; align-items: center; gap: .75rem; }
.tpl-title > .icon { inline-size: 3rem; block-size: 3rem; padding: .65rem; border-radius: .9rem; background: var(--brand); color: #fff; }
.tpl-title .eyebrow { margin: 0; }
.tpl-one .hero .chips { margin-block: 0 1.25rem; }
.tpl-home .preview { margin: 0; }
.tpl-home > .help { margin-block-start: .5rem; text-align: center; color: var(--muted); font-size: .85rem; }

.home > .tpl-service { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.tpl-service + .tpl-service { border-block-start: 1px solid var(--line); }
.tpl-service > * { inline-size: 100%; max-inline-size: 64rem; margin-inline: auto; }
.tpl-detail .lead { color: var(--muted); font-size: 1.05rem; }
.tpl-detail h3 { margin-block: 2rem .9rem; font-size: 1.15rem; }
.tpl-detail h4 { margin: 0 0 .2rem; font-size: 1rem; }
.tpl-detail .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block-start: 1.25rem; }
.tpl-steps { grid-template-columns: 1fr !important; gap: 0 !important; }
.tpl-steps li { padding-inline-start: 3.25rem !important; padding-block-start: 0 !important; }
.tpl-steps li:not(:last-child)::after { inset-inline-start: 1.06rem !important; inset-inline-end: auto !important; inset-block: 2.5rem .25rem !important; inline-size: 2px !important; block-size: auto !important; }
.tpl-steps li:last-child::before { content: "✓"; background: var(--accent); color: var(--ink); }
.tpl-lists { display: grid; gap: 0 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.tpl-lists ul, .price-names { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.tpl-lists li, .price-names li { display: flex; gap: .5rem; align-items: baseline; padding: .55rem .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; }
.tpl-lists .job-fields li::before { content: "?"; flex: none; display: grid; place-items: center; inline-size: 1.3rem; block-size: 1.3rem; border-radius: 50%; background: var(--accent-soft); color: var(--brand-deep); font-weight: 800; font-size: .75rem; }
.tpl-lists .requirements li::before { content: "✓"; flex: none; display: grid; place-items: center; inline-size: 1.3rem; block-size: 1.3rem; border-radius: 50%; background: #e4f1ea; color: var(--brand); font-weight: 800; font-size: .75rem; }
.price-names .pill { margin-inline-start: auto; padding: .05rem .5rem; border-radius: 99rem; background: var(--accent-soft); font-size: .75rem; font-weight: 700; }
.tpl-service .preview { margin: 0; }
.tpl-why { padding-block: 0 !important; }
.tpl-why .travels { font-size: 1.05rem; padding: 1.1rem 1.25rem; }
.tpl-alts .mixes > li h3 { margin-block-end: .4rem; }
.tpl-others .tiles { margin-block-end: 0; }

/* The request form, drawn: choices as pills, two boxes to a row, a photo drop. */
.preview-field { display: grid; gap: .25rem; margin-block-end: .7rem; }
.preview-label { font-weight: 700; font-size: .85rem; }
.preview-input { display: block; block-size: 2.1rem; background: #fff; border: 1px solid #c9c6bb; border-radius: .45rem; }
.preview-input.long { block-size: 3.6rem; }
.preview-field .help { font-size: .75rem; color: var(--muted); }
.preview-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.preview-pills { display: flex; flex-wrap: wrap; gap: .3rem; }
.preview-pills .pill { padding: .3rem .65rem; border: 1px solid #c9c6bb; border-radius: 99rem; background: #fff; font-size: .78rem; }
.preview-pills .pill.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.preview-pills.many .pill:first-child { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.preview-photo { display: grid; place-items: center; block-size: 3.2rem; border: 2px dashed #c9c6bb; border-radius: .5rem; color: var(--muted); font-size: .8rem; font-weight: 700; }
.preview-note { padding: .55rem .7rem; border-radius: .5rem; background: var(--accent-soft); font-size: .8rem; }
.preview-prices dd.muted { color: var(--muted); font-weight: 600; font-style: italic; }

@media (min-width: 60rem) {
  .home > .tpl-service { grid-template-columns: minmax(0, 1fr) minmax(19rem, 23rem); gap: 3rem; max-inline-size: 70rem; margin-inline: auto; align-items: start; }
  .tpl-service > * { max-inline-size: none; margin-inline: 0; }
  .tpl-service > .preview { position: sticky; inset-block-start: 1rem; }
}
.tpl-others .tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.tpl-home .preview > .help { text-align: center; }
/* The three roles fit a phone: each box can shrink, and wraps "Housekeeper" before it overflows. */
.tpl-detail { min-inline-size: 0; }
.tpl-detail .roles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.5rem), 1fr)); }
.tpl-detail .roles dd { overflow-wrap: anywhere; }
