/* The cards a site's page says to a person inside its own element (HOST-5, SCREEN-7): the loader, the consent to an
   invitation, a word said, a try again. The browser port draws each of standard elements alone, in a root that wears
   the lobes' layer, and names it on its root, `data-quo-card`; these rules dress them as the mock-ups' invitation: a
   page to read under the head that names the home, its title, its lede, what the invitation offers, the person's own
   words, its two presses, and the roads to another home after them. Every declaration is the design system's own:
   `p-content--read`, `p-eyebrow`, `p-title`, `p-lede`, `p-small`, `p-mod`, `p-field`, `p-btn`, `p-btn--secondary`,
   `p-pair`, `p-qr`. The head and the card stand on the page's own ground, one panel with rounded corners: where the
   port draws them in a page wearing Panel it is the page's chassis and shows nothing, and where a host raises them over
   a veil (SCREEN-29, a link handed to a desktop's screen) they read as a card of their own, no word of the page under
   crossing it. */

/* The head that names the home (SCREEN-29): an eyebrow over the card, on the card's own measure. */
header:has(+ [data-quo-card]) { box-sizing: border-box; width: 100%; max-width: 600px; margin: 0 auto; padding: var(--s-5) var(--s-4) 0; border-radius: var(--r-module) var(--r-module) 0 0; background: var(--c-chassis); font-style: normal; font-weight: 550; font-size: var(--t-xs); line-height: 1.45; font-family: var(--font-body); letter-spacing: .01em; color: var(--c-muted); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
header + [data-quo-card] { padding-top: var(--s-3); }

[data-quo-card] { box-sizing: border-box; width: 100%; max-width: 600px; margin: 0 auto; padding: var(--s-5) var(--s-4) var(--s-6); border-radius: 0 0 var(--r-module) var(--r-module); background: var(--c-chassis); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); align-items: start; color: var(--c-ink); font-style: normal; font-weight: 450; font-size: var(--t-sm); line-height: 1.45; font-family: var(--font-body); font-optical-sizing: auto; font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
[data-quo-card] *, [data-quo-card] *::before, [data-quo-card] *::after { box-sizing: border-box; }
[data-quo-card] > * { grid-column: 1 / -1; margin: 0; }
[data-quo-card] > h1 { font-family: var(--font-display); font-size: var(--t-xl); font-weight: 650; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
[data-quo-card] > h1 + p { font-size: var(--t-md); color: var(--c-muted); line-height: 1.5; text-wrap: pretty; margin-bottom: var(--s-3); }
[data-quo-card] > p { font-size: var(--t-xs); color: var(--c-muted); line-height: 1.5; }
[data-quo-card] > p:empty { display: none; }

/* What the invitation offers (QUO-23), the place's own word: its lines in a module, its spans quiet lines. */
[data-quo-card] > [data-quo-offer="intro"] { font-size: var(--t-xs); font-weight: 550; color: var(--c-ink); }
[data-quo-card] > [data-quo-offer="says"] { list-style: none; padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; overflow-wrap: anywhere; font-size: var(--t-sm); background: var(--c-module); box-shadow: inset 0 0 0 1px var(--c-hair), var(--c-lift); border-radius: var(--r-module); }
[data-quo-card] [data-quo-offer="more"] { font-size: var(--t-xs); color: var(--c-muted); }

/* The person's own words on the place, the name they go by there and, where they own another home, the home that keeps
   it (SCREEN-29, SCREEN-34, SCREEN-38): Panel's field, each under its words; the name one line, never required. */
[data-quo-card] > [data-quo-words="label"], [data-quo-card] > [data-quo-words="name"], [data-quo-card] > [data-quo-words="home"] { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: var(--t-xs); font-weight: 550; color: var(--c-ink); }
[data-quo-card] [data-quo-words="field"] { min-height: calc(var(--press) * 2); width: 100%; padding: 10px var(--s-3); border: 0; border-radius: var(--r-inner); background: var(--c-module); box-shadow: inset 0 0 0 1px var(--c-hair-strong), var(--c-lift); font: inherit; font-size: var(--t-sm); font-weight: 450; color: var(--c-ink); transition: box-shadow .15s; resize: vertical; }
[data-quo-card] [data-quo-words="named"], [data-quo-card] [data-quo-words="homes"] { min-height: var(--press); width: 100%; padding: 10px var(--s-3); border: 0; border-radius: var(--r-inner); background: var(--c-module); box-shadow: inset 0 0 0 1px var(--c-hair-strong), var(--c-lift); font: inherit; font-size: var(--t-sm); font-weight: 450; color: var(--c-ink); transition: box-shadow .15s; }
[data-quo-card] [data-quo-words="named"]:focus, [data-quo-card] [data-quo-words="homes"]:focus { outline: none; box-shadow: inset 0 0 0 1px var(--c-accent), 0 0 0 3px var(--c-accent-soft); }
[data-quo-card] [data-quo-words="field"]:focus { outline: none; box-shadow: inset 0 0 0 1px var(--c-accent), 0 0 0 3px var(--c-accent-soft); }

/* The two presses: the yes Panel's button, the no its secondary. */
[data-quo-card] button, [data-quo-card] > a { min-height: var(--press); padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); border: 0; border-radius: var(--r-inner); font: inherit; font-weight: 550; letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; background: var(--c-module); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-hair-strong), var(--c-lift); transition: background-color .15s, box-shadow .15s; }
[data-quo-card] button:hover, [data-quo-card] > a:hover { background: var(--c-sunk); }
[data-quo-card] button:active, [data-quo-card] > a:active { transform: scale(.985); }
[data-quo-card] button[type="submit"] { order: 1; margin-top: var(--s-3); background: var(--c-accent); color: var(--c-on-accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px color-mix(in srgb, var(--c-accent) 30%, transparent); }
[data-quo-card] button[type="submit"]:hover { background: color-mix(in srgb, var(--c-accent) 90%, var(--c-ink)); }
[data-quo-card] button[type="submit"] + button { order: 2; }
[data-quo-card] :focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* The consent's order: what is read and written, the two presses, then the roads to another home, quieter: their
   line, the link and its copy side by side, the code to scan. */
[data-quo-card="consent"] > p { order: 3; margin-top: var(--s-3); }
[data-quo-card="consent"] > h1 + p, [data-quo-card="consent"] > p[data-quo-offer] { order: 0; margin-top: 0; }
[data-quo-card] > [data-quo-road] { order: 4; margin-top: 0; }
[data-quo-card] > [data-quo-road="home"] { grid-column: auto; margin-right: -3px; }
[data-quo-card] > [data-quo-road="copy"] { grid-column: auto; margin-left: -3px; }
[data-quo-card] > [data-quo-road="qr"] { width: 168px; height: 168px; padding: var(--s-3); border-radius: var(--r-inner); background: #fff; box-shadow: inset 0 0 0 1px var(--c-hair); }
[data-quo-card] > [data-quo-road="qr"] + p { order: 4; margin-top: 0; }

/* A word said and a try again: a line to read, then its presses. */
[data-quo-card="said"] > p, [data-quo-card="again"] > p { font-size: var(--t-md); color: var(--c-ink); line-height: 1.5; margin-bottom: var(--s-2); }

/* The loader: a quiet line, where the place will stand. */
[data-quo-card="reading"] { display: block; padding: var(--s-7) var(--s-5); text-align: center; font-size: var(--t-xs); color: var(--c-muted); }

@media (prefers-reduced-motion: reduce) { [data-quo-card] * { transition: none !important; } [data-quo-card] button:active, [data-quo-card] > a:active { transform: none; } }
