/* The signed-out pages (sign-in, session ended, not allowed, not found, access removed), the public
   reading pages (privacy, terms), the welcome steps and the security page (plan CHILD-BUNDLEX-001,
   row T-W1). Only what the kit (bx/components.css) has no part for; every value a token of
   bx/tokens.css or bx/components.css. The patterns are the agreed mock-ups
   C:/temp/research/child-location/v4/web d01, d02, d03, d05, d06 and s11 (their "FRAME GAP" rules). */

/* ---------- the centred card of a signed-out page (mock-ups d01 to d03) ---------- */
.cl-auth { width: 100%; max-width: 26rem; margin-inline: auto; }
.cl-auth > .px-section {
  display: flex; flex-direction: column; align-items: center; gap: var(--px-space-base);
  padding: var(--px-space-large-100) var(--px-space-large); text-align: center;
}
.cl-auth__title {
  margin: 0; font-size: var(--bx-font-size-display); line-height: var(--bx-line-height-display);
  font-weight: var(--bx-font-weight-semibold); color: rgb(var(--bx-color-text));
}
/* CHILD-BUGS-021 D4 and D11: the "al" logo above the title on Sign in and Create account, where the pin tile
   stood; its own 1.75rem high (CHILD-BUGS-022 D8: the top bar's logo is smaller, this one alone above the
   title keeps its size), no tile, a small space before the title */
.cl-auth .cl-logo { height: 1.75rem; margin-bottom: var(--px-space-small-200); }
.cl-auth__lead { margin: 0; max-width: 22rem; color: rgb(var(--bx-color-text-secondary)); }
.cl-auth .px-banner, .cl-auth .cl-see { width: 100%; }
.cl-auth .px-button { width: 100%; min-height: 2.75rem; justify-content: center; gap: var(--px-space-small-200); }
.cl-auth__fine {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--px-space-small-300); margin: 0;
  font-size: var(--bx-font-size-small); line-height: var(--bx-line-height-small); color: rgb(var(--bx-color-text-secondary));
}
.cl-auth__fine svg { width: .875rem; height: .875rem; flex: none; }
.cl-auth__msg { margin: 0; color: rgb(var(--bx-color-text-critical)); }
/* CHILD-UXHUNT-001 D-6, M-10: the account pages (create, confirm, reset, change
   email: create-account.mjs #cl-account-step) read as every other page: the
   heading bold and left, the fields and labels the card's width and left, a
   lone link 44 px to tap; the sign-in card keeps its centred look */
#cl-account-step > .px-section { align-items: stretch; text-align: start; }
#cl-account-step .cl-auth__title { font-weight: var(--bx-font-weight-semibold); }
#cl-account-step .cl-auth__fine { justify-content: flex-start; }
#cl-account-step .cl-auth__fine > .px-link:only-child,
#cl-account-step .cl-auth__fine > .px-link:last-child { display: inline-flex; align-items: center; min-height: 2.75rem; }
/* the slot Google draws its own button into (sign-in.js) */
.cl-auth__google { width: 100%; min-height: 2.75rem; display: flex; align-items: center; justify-content: center; }
/* the Google mark in the "Sign in with Google" button (plain.mjs GOOGLE_MARK; mock-up w40.css .cl-auth .px-button .px-icon) */
/* CHILD-BUGS-021 D17: 20 px (the kit gives no button icon size; Google's own button draws its mark at 18 to 20 px) */
.cl-gicon { width: 1.25rem; height: 1.25rem; flex: none; }

/* the page of a removed person (batch 6 Screen 210): the title, then one full-width main button */
/* CHILD-UXHUNT-001 D-17: the block starts at the page's left edge, as every
   page heading does (it was centred while its words were left) */
.cl-rm { display: flex; flex-direction: column; gap: var(--px-space-base); width: 100%; max-width: 35rem; margin-inline: 0; }
.cl-rm > .px-button { width: 100%; min-height: 2.75rem; justify-content: center; }
/* CHILD-UXHUNT-001 M-8: the one reason line under the title */
.cl-rm__why { margin: 0; color: rgb(var(--bx-color-text-secondary)); }
/* CHILD-BUGS-029 T-1E: Delete account is the kit's plain critical text button (tertiary), its own width at the
   left edge under the full-width Sign out; only the main buttons take the full width */
.cl-rm > .px-button--tertiary { width: auto; align-self: flex-start; }
/* CHILD-BUGS-021 D14: from 900 px the signed-out card's buttons take the kit's 28 px button height
   (bundlex-ui tokens.css:279); the phone keeps its 44 px */
@media (min-width: 900px) {
  .cl-auth .px-button, .cl-rm > .px-button { min-height: var(--bx-height-button); }
}

/* a grey box of two lines: a bold line, then a line in the secondary colour (mock-ups d01, d03) */
.cl-see {
  display: flex; flex-direction: column; gap: var(--px-space-small-400); box-sizing: border-box;
  padding: var(--px-space-small) var(--px-space-base); border-radius: var(--bx-radius-control);
  background: rgb(var(--bx-color-bg-surface-secondary)); text-align: start;
}
.cl-see b { font-weight: var(--bx-font-weight-semibold); }
.cl-see p { margin: 0; color: rgb(var(--bx-color-text-secondary)); }

/* ---------- the public reading pages: privacy and terms (mock-ups d05, d06); plan CHILD-OWNER-034, D14:
   no width cap of their own, they take the page column like every other page (the Alerts width) ---------- */
.cl-doc { display: flex; flex-direction: column; gap: var(--px-space-base); width: 100%; }
.cl-doc__head { display: flex; flex-direction: column; gap: var(--px-space-small-300); }
.cl-doc__head .px-page__title { margin: 0; }
.cl-eyebrow { font-size: var(--bx-font-size-small); line-height: var(--bx-line-height-small); color: rgb(var(--bx-color-text-secondary)); }
.cl-doc__sec > .px-section { display: flex; flex-direction: column; gap: var(--px-space-small); }
.cl-doc__sec h2 { margin: 0; font-size: var(--bx-font-size-heading); line-height: var(--bx-line-height-heading); font-weight: var(--bx-font-weight-semibold); }
.cl-doc__sec ul { margin: 0; padding-inline-start: 1.25rem; display: flex; flex-direction: column; gap: var(--px-space-small-300); }
.cl-doc__sec li { max-width: 68ch; }
/* CHILD-UXHUNT-001 D-13: a numbered list keeps its numbers inside the card's
   padding, and Help protection starts at the left edge Help itself uses */
.cl-doc__sec ol { margin: 0; padding-inline-start: 1.5rem; display: flex; flex-direction: column; gap: var(--px-space-small-300); }
#hp-protection.cl-doc { margin-inline: 0; }
/* the "On this page" list of the privacy page (mock-up d05 lines 17 to 20): one-line rows, equal insets */
.cl-doc__toc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cl-doc__toc a {
  display: flex; align-items: center; min-height: 2.75rem; padding: 0 var(--px-space-base);
  border-top: 1px solid rgb(var(--bx-color-border-section)); color: inherit; text-decoration: none;
}
.cl-doc__toc li:first-child a { border-top: 0; }
.cl-doc__toc a:hover { background: rgb(var(--bx-color-bg-surface-hover)); }
/* CHILD-DESK-001 T-2: from 900 px the privacy page takes the page's width; the sections stand in the main
   column and the "On this page" list in the side column (site.css .cl-dk-cols). The list comes first in the
   markup (the phone order), so it is placed in the second column here. */
@media (min-width: 900px) {
  .cl-doc.cl-doc--dk { max-width: none; }
  .cl-doc--dk .cl-doc__main { grid-column: 1; grid-row: 1; }
  .cl-doc--dk .cl-doc__side { grid-column: 2; grid-row: 1; }
}

/* ---------- the welcome steps (mock-up s11) ---------- */
.wc-page { display: flex; flex-direction: column; gap: var(--px-space-base); min-width: 0; }
.wc-sec { display: flex; flex-direction: column; gap: var(--px-space-base); }
/* a flow page has no bottom menu (v4/web/_template.html lines 17 to 18); the computer menu stays */
body:has(.wc-page) .cl-tabbar { display: none; }
/* CHILD-BUGS-018 MB-17: the page gap plus the phone's gesture bar room below the last buttons */
body.cl-signed-in:has(.wc-page) { padding-bottom: calc(var(--px-space-base) + env(safe-area-inset-bottom, 0px)); }
/* CHILD-UXHUNT-001 M-1 (replaces CHILD-FEEDBACK-002 D1's one-line cut): the first step's title wraps, so the
   child's name is never lost behind three dots (the Vietnamese title is longer than the phone's width) */
.wc-head .cl-flow-head__title:first-child { overflow-wrap: anywhere; }
/* plan CHILD-BUGS-029, DS (gap 19): the grey text copies of this file went; the pages draw the
   kit's px-paragraph, px-text--subdued and px-text--small */

/* a plain list of lines, each a small icon tile and two lines of text (mock-up s11 "s-plain") */
.cl-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--px-space-small); }
.cl-plain li { display: flex; align-items: flex-start; gap: var(--px-space-small); }
.cl-plain li > .cl-tile { margin-block: calc((var(--bx-line-height-body) - 2.25rem) / 2); }
.cl-plain li > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.cl-plain b { line-height: var(--bx-line-height-body); font-weight: var(--bx-font-weight-semibold); }
.cl-tile {
  width: 2.25rem; height: 2.25rem; flex: none; border-radius: var(--bx-radius-control);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgb(var(--bx-color-bg-surface-selected)); color: rgb(var(--bx-color-icon-secondary));
}
.cl-tile svg { width: 1.25rem; height: 1.25rem; }
.cl-tile--ok { background: rgb(var(--bx-color-bg-surface-success)); color: rgb(var(--bx-color-icon-success)); }

/* the rows of a Welcome card (plan CHILD-BUGS-029, DU, gap 21): the kit's list row (bx/components.css .px-row,
   its padding from site.css) in a plain list; the second .cl-list and .cl-li definition that stood here went,
   so every other cl-list keeps the one site.css definition (.cl-r5) */
.wc-rows { list-style: none; margin: 0; padding: 0; }
.wc-rows .px-row > .px-badge { flex: none; }
/* a card's heading (an h2): the body size, at the shared semibold weight of site.css (gap 13) */
.cl-card-head { margin: 0; padding: var(--bx-space-list-row); padding-bottom: 0; font-size: var(--bx-font-size-body); line-height: var(--bx-line-height-body); }

/* the buttons at the end of a step (mock-up s11 "cl-flow-foot") */
.cl-flow-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--px-space-small-200);
  padding-top: var(--px-space-base); border-top: 1px solid rgb(var(--bx-color-border-section));
}
.cl-flow-foot .px-button { min-height: 2.75rem; max-width: 100%; white-space: normal; }
.cl-flow-foot .px-button--primary { flex: 1 1 auto; }
.cl-flow-foot .px-button svg { width: 1rem; height: 1rem; }

/* ---------- the security page (security.mjs, kit parts and settings.css; row T-F1) ---------- */
/* CHILD-FEEDBACK-001 T-L1: one line a row, the text cut with an ellipsis, the time at the end never wrapping */
.sc-row { align-items: center; }
.sc-one {
  display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-weight: var(--bx-font-weight-medium);
}
.sc-end { flex: none; white-space: nowrap; color: rgb(var(--bx-color-text-secondary)); }
/* CHILD-FEEDBACK-001 T-3 fix 6: "<name> · <what>" in Who looked; the name is the part cut, the what stays whole */
.sc-one.sc-look { display: flex; }
.sc-who { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sc-what { flex: none; white-space: pre; }
/* CHILD-BUGS-021 D15: Security's section headings are the shared heading (site.css .cl-sec) at every width */

/* CHILD-UX-005 (s54): the three folds of "If the app is deleted" in one card,
   a line between them (site.css .cl-fold draws each row) */
#hp-protection .hp-folds { overflow: hidden; }
#hp-protection .hp-fold + .hp-fold { border-top: 1px solid rgb(var(--bx-color-border-section)); }
#hp-protection .hp-fold ul { padding-left: 1.2em; }
#hp-protection .cl-gist h2.cl-gist__t { font-size: 1.0625rem; }

/* T-FB (s52): the tall dock (the note and Manage people, 121 px at 390 px wide) gets the same room above it as
   the other dock pages (15 px between the last fold and the dock, measured on the local copy at 390 x 844;
   the shared room of 84 px left 3 px), so the last fold is not tight against the note */
@media (max-width: 899.98px) {
  body.cl-signed-in.cl-has-dock:has(#sc-manage) { padding-bottom: calc(3.875rem + 2 * var(--px-space-small-400) + 1px + 96px + env(safe-area-inset-bottom, 0px)); }
}
