/* The public site's page CSS shared by every page built from src/site: only what sits inside a
   visual (the app-frame recipe, the small row mocks) and the quiet text tone. Kit rules stay in
   /site-kit; nothing here changes a section, a heading or a button. */
/* app-frame (sections-library.md, the recipe's own CSS) */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}

/* small row mocks: dates, identity, billing */
.mp-rows { width: 340px; padding: 6px 0; }
.mp-rows .ui-head { padding: 12px 16px 8px; }
.mp-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--u-line); font-size: 13px; }
.mp-row > i { grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--u-fill-2); font-style: normal; }
.mp-row b { font-weight: 500; } .mp-row small { grid-column: 2; color: var(--u-muted); font-size: 12px; }
.mp-row em { grid-row: 1 / span 2; grid-column: 3; font-style: normal; font-size: 12px; color: var(--u-muted); }
.mp-bill { width: 100%; }
.mp-row .mp-sealed { font-family: var(--font-mono); letter-spacing: .04em; }

/* body text a step quieter than the ink, still 7:1 on the ground */
.mp-quiet, .hero--centred .hero__lead { color: color-mix(in oklab, var(--ink) 80%, var(--bg)); }
.mp-facts { list-style: none; margin: 0; padding: 0; color: var(--ink); }
.mp-facts li { padding: var(--s-3) 0; border-top: 1px solid var(--line); }

/* a short list of steps, done, now and next */
.mp-steps { display: grid; border: 1px solid var(--u-border); border-radius: 10px; }
.mp-steps p { margin: 0; display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--u-line); }
.mp-steps p:first-child { border-top: 0; }
.mp-steps p > i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--u-line-2); display: grid; place-items: center; }
.mp-steps p.is-done > i { background: var(--u-ink); border-color: var(--u-ink); color: var(--u-bg); }
.mp-steps p.is-done > i::before { content: ""; width: 8px; height: 5px; border: solid currentColor; border-width: 0 0 1.6px 1.6px; transform: translateY(-1px) rotate(-45deg); }
.mp-steps p.is-now > i { border-color: var(--u-accent); }
.mp-steps span { color: var(--u-muted); font-size: 12px; }
.mp-steps--flush { border: 0; border-radius: 0; border-top: 1px solid var(--u-line); }

/* a product window with a list column and an open item (the home hero, the portal hero) */
.mp-desk { background: #fff; color: #0f1b2d; border-radius: 14px; overflow: hidden; font: 400 14px/1.45 var(--font-text);
  box-shadow: 0 0 0 1px rgb(15 27 45 / .09), 0 2px 4px -1px rgb(15 27 45 / .08), 0 30px 60px -28px rgb(15 27 45 / .45); text-align: left; }
.mp-desk__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgb(15 27 45 / .08); font-size: 13px; color: #5f6876; }
.mp-desk__bar b { color: #0f1b2d; font-weight: 500; } .mp-desk__bar .sp { flex: 1; }
.mp-desk__dots { display: flex; gap: 6px; } .mp-desk__dots i { width: 10px; height: 10px; border-radius: 50%; background: #dfe2e7; }
.mp-desk__body { display: grid; grid-template-columns: 236px 1fr; min-height: 380px; }
.mp-desk__list { border-right: 1px solid rgb(15 27 45 / .08); padding: 10px; display: grid; align-content: start; gap: 2px; }
.mp-desk__q { height: 32px; margin-bottom: 6px; border-radius: 8px; background: #f2f3f6; display: flex; align-items: center; padding: 0 10px; color: #6b7280; font-size: 13px; }
.mp-desk__t { display: grid; grid-template-columns: 30px 1fr auto; gap: 1px 10px; padding: 8px; border-radius: 8px; font-size: 13px; }
.mp-desk__t.is-on { background: #eef0fe; }
.mp-desk__t i { grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 500 12px/1 var(--font-text); font-style: normal; color: #0f1b2d; }
.mp-desk__t b { font-weight: 500; } .mp-desk__t time { color: #6b7280; font-size: 12px; }
.mp-desk__t span { grid-column: 2 / -1; color: #5f6876; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-desk__case { display: grid; align-content: start; gap: 10px; padding: 16px 20px; min-width: 0; }
.mp-desk__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mp-desk__head b { font: 500 15px/1.3 var(--font-text); } .mp-desk__head small { color: #5f6876; font-size: 13px; }
.mp-desk__next { border: 1px solid rgb(15 27 45 / .1); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.mp-desk__next em { font-style: normal; font-size: 12px; color: #5f6876; } .mp-desk__next strong { font-weight: 500; }
.mp-desk__tool { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #5f6876; }
.mp-desk__tool::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #16a36b; }
.mp-desk__msg { background: #f4f5f8; border-radius: 12px; border-bottom-left-radius: 4px; padding: 10px 14px; max-width: 92%; }
.mp-desk__msg small { display: block; margin-top: 4px; font-size: 12px; color: #5f6876; }
.mp-desk__acts { display: flex; gap: 8px; } .mp-desk__acts span { height: 32px; padding: 0 14px; border-radius: var(--r-btn); display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; background: var(--action); color: var(--action-ink); }
@media (max-width: 639px) { .mp-desk__body { grid-template-columns: 1fr; } .mp-desk__list { display: none; } .mp-desk__case { padding: 12px 14px; } .mp-desk__bar .sp ~ span, .mp-desk__tool, .mp-desk__msg small { display: none; } }

/* a frame that holds UI on the lit ground, plain (the effect lives only where a page deals it) */
.mp-lit { background: var(--ground-bg); border-color: transparent; }
/* the small mock under a questions section's heading */
.mp-questions .mp-rows { width: 100%; margin-top: var(--s-6); }
/* a numbered list of steps beside a picture */
.mp-steplist { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.mp-steplist li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 2px var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.mp-steplist li::before { content: counter(s); grid-row: 1 / span 2; width: 28px; height: 28px; border-radius: 99px; border: 1px solid var(--line-strong); display: grid; place-items: center; font: 500 var(--t-small)/1 var(--font-text); font-variant-numeric: tabular-nums; }
.mp-steplist b { font-weight: 500; }
.mp-steplist span { color: color-mix(in oklab, var(--ink) 80%, var(--bg)); }

/* a row mock's head on the narrowest phones: the title and its chip share the line or wrap */
.mp-rows .ui-head { flex-wrap: wrap; row-gap: 6px; }
.mp-rows .ui-title { min-width: 0; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- the Spanish pages (html lang="es", under /es)
   The kit writes two words in its own stylesheet, the credits line's toggle; they follow the page's language. */
:root:lang(es) .credits > summary::after { content: "Créditos"; }
:root:lang(es) .credits[open] > summary::after { content: "Ocultar"; }

/* the language switch in the bar (src/site/kit.ts langSwitch): the other language's name, and on a
   small laptop, where the bar has no room for the name, its two-letter code with the name kept for a
   screen reader. The phone sheet and the footer always show the name. */
.mp-lang__code { display: none; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav__actions .mp-lang__code { display: inline; }
  .nav__actions .mp-lang__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* five words, the switch, Sign in and the button share 864px here: the bar's gaps step down */
  .nav__bar { gap: var(--s-4); }
  .nav__actions { gap: var(--s-1); }
  .nav__actions > .mp-lang { padding-inline: var(--s-1); }
  .nav__actions > .mp-lang::before { left: var(--s-1); right: var(--s-1); }
  /* the Spanish words run longer: they sit 4px closer */
  :root:lang(es) .nav__links .nav__link { padding-inline: 6px; }
  :root:lang(es) .nav__links .nav__link::before, :root:lang(es) .nav__links .nav__link[aria-current="page"]::after { left: 6px; right: 6px; }
}
/* the phone sheet: under its button sit two text actions now (the switch and Sign in), so the list
   scrolls clear of a taller foot */
@media (max-width: 1023px) { .nav.is-open .nav__links { padding-bottom: calc(var(--btn-h) * 3 + 64px); } }
