/*
 * The public tools' shared pieces (V27; docs/batches/v27.md; the premium mockups' nvg-tools.css, concordia-brands'
 * mockups/navigatus/site/assets/css): the opening on the brand's dark ground, the marks („În curând”, „În cont”, „Încă
 * nedeschis”), the notes, what a free account adds, the steps, the pages before and after, the other tools' cards, a
 * list's filter and its empty state, a source's line (Application/Modules/Shell/Views/site/tools/*.php; the closing band is
 * the kit's own). The pieces push it onto the head once a page, where one draws (`pushStack('head', …, 'nvg-site-tools')`);
 * the back office never loads it.
 *
 * Its colours are the kit's tokens (`--cc-…`, `--cw-…`) and the shades below, set where a theme is set so that the nearest
 * wins (a light picture on the dark opening reads light): the palette's navy in the colour style, graphite in the
 * monochrome one, light and dark. Nothing is tilted and nothing moves: no rotate, skew or perspective, no transition or
 * animation (the kit's own rise and reveal are the kit's). Every class is navigatus's (`nvg-t-`) or the kit's. On a phone
 * the pieces keep the phone's floor themselves (44 px controls, no text under 11 px, fields at 16 px), so a member's frame,
 * which has no site-phone.css, keeps it too.
 */

/* ---------------------------------------------------------------------------------------------------- the shades */
:root, [data-bs-theme="light"] {
  --nvg-t-soon-bg: var(--cc-warn-bg); --nvg-t-soon-fg: var(--cc-warn); --nvg-t-soon-line: color-mix(in srgb, var(--cc-warn) 24%, transparent);
  --nvg-t-member-bg: var(--cc-sunken); --nvg-t-member-fg: var(--cc-ink); --nvg-t-member-line: var(--cc-line-strong);
  --nvg-t-closed-bg: var(--cc-off-bg); --nvg-t-closed-fg: var(--cc-off); --nvg-t-closed-line: var(--cc-line-strong);
}
[data-bs-theme="dark"] {
  --nvg-t-soon-bg: color-mix(in srgb, var(--cc-warn) 16%, transparent); --nvg-t-soon-fg: var(--cc-warn); --nvg-t-soon-line: color-mix(in srgb, var(--cc-warn) 32%, transparent);
  --nvg-t-member-bg: color-mix(in srgb, var(--cc-ink) 10%, transparent); --nvg-t-member-fg: var(--cc-ink); --nvg-t-member-line: color-mix(in srgb, var(--cc-ink) 26%, transparent);
  --nvg-t-closed-bg: color-mix(in srgb, var(--cc-off) 16%, transparent); --nvg-t-closed-fg: var(--cc-off); --nvg-t-closed-line: color-mix(in srgb, var(--cc-off) 30%, transparent);
}
html[data-cc-style="color"], html[data-cc-style="color"] [data-bs-theme="light"] {
  --nvg-t-member-bg: color-mix(in srgb, var(--cc-pal-light, var(--cc-sunken)) 26%, var(--cc-surface));
  --nvg-t-member-fg: var(--cc-pal-ink, var(--cc-ink));
  --nvg-t-member-line: color-mix(in srgb, var(--cc-pal-ink, var(--cc-ink)) 22%, transparent);
}
html[data-cc-style="color"][data-bs-theme="dark"], html[data-cc-style="color"] [data-bs-theme="dark"] {
  --nvg-t-member-bg: color-mix(in srgb, var(--cc-pal-light, var(--cc-ink)) 16%, transparent);
  --nvg-t-member-fg: var(--cc-pal-light, var(--cc-ink));
  --nvg-t-member-line: color-mix(in srgb, var(--cc-pal-light, var(--cc-ink)) 30%, transparent);
}

/* ------------------------------------------------------------------------------------------------------ the marks */
.nvg-t-mark { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 4px 11px 4px 9px; border-radius: 999px; font-family: var(--cc-font-sans); font-size: 12.5px; font-weight: 500; line-height: 1.3; letter-spacing: 0; text-transform: none; vertical-align: middle; white-space: nowrap; }
.nvg-t-mark > .bi { flex: 0 0 auto; font-size: 12px; }
.nvg-t-mark > b { flex: 0 0 auto; font-weight: 600; white-space: nowrap; }
.nvg-t-mark > span { min-width: 0; font-weight: 400; white-space: normal; }
.nvg-t-mark.is-soon { background: var(--nvg-t-soon-bg); color: var(--nvg-t-soon-fg); box-shadow: inset 0 0 0 1px var(--nvg-t-soon-line); }
.nvg-t-mark.is-member { background: var(--nvg-t-member-bg); color: var(--nvg-t-member-fg); box-shadow: inset 0 0 0 1px var(--nvg-t-member-line); }
.nvg-t-mark.is-closed { background: var(--nvg-t-closed-bg); color: var(--nvg-t-closed-fg); box-shadow: inset 0 0 0 1px var(--nvg-t-closed-line); }
.nvg-t-mark.is-wrap { align-items: flex-start; border-radius: 12px; padding: 8px 14px 8px 11px; white-space: normal; }
.nvg-t-mark.is-wrap > .bi { margin-top: 2px; }

/* ---------------------------------------------------------------------------------------------------- the opening
   the kit's page hero on the dark ground (cw-page-hero cw-ground is-dark, cw-hero-layers), as task 3's shell-hero draws a
   Cms page's: the mockups' tool titles, their second phrase on a line of its own; the note, the facts, a drawing's place */
.nvg-t-opening .cw-page-title { font-size: clamp(32px, 3.6vw, 52px); font-weight: 500; letter-spacing: -.045em; line-height: 1.06; }
.nvg-t-opening.is-sm .cw-page-title { font-size: clamp(28px, 3vw, 44px); letter-spacing: -.035em; line-height: 1.12; }
.nvg-t-opening.is-lg .cw-page-title { font-size: clamp(36px, 5.2vw, 64px); font-weight: 600; line-height: 1.02; }
.nvg-t-opening .cw-page-title em { display: block; }
.nvg-t-opening .cw-lead { max-width: 34em; margin-top: 22px; }
.nvg-t-opening.is-solo :is(.cw-page-title, .cw-lead) { max-width: 820px; }
.nvg-t-opening-note { display: flex; align-items: flex-start; gap: 10px; max-width: 36em; margin: 22px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--cw-ground-muted); }
.nvg-t-opening-note > .bi { flex: 0 0 auto; margin-top: 2px; color: var(--cw-ground-accent); }
.nvg-t-opening-note > .nvg-t-mark { flex: 0 0 auto; margin-top: -2px; }
.nvg-t-opening-note a { color: var(--cw-ground-fg); text-decoration: underline; text-underline-offset: 2px; }
.nvg-t-facts { display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 32px 0 0; padding: 22px 0 0; border-top: 1px solid var(--cw-ground-line); }
.nvg-t-facts > div { min-width: 0; }
.nvg-t-facts dt { font-family: var(--cc-font-mono); font-size: 13px; font-weight: 500; letter-spacing: -.01em; color: var(--cw-ground-fg); }
.nvg-t-facts dd { margin: 3px 0 0; font-size: 13px; line-height: 1.4; color: var(--cw-ground-muted); }
.nvg-t-opening-below { margin-top: 28px; }
@media (min-width: 992px) {
  .nvg-t-opening.is-text-wide .cw-hero-layers { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 20px 64px; align-items: start; }
}
/* a drawing or a player in the picture's place, two fact cards beside it */
.nvg-t-pic { position: relative; min-width: 0; }
.nvg-t-pic.has-floats { padding: 36px 0; }
.nvg-t-pic-main { position: relative; z-index: 1; }
.nvg-t-pic-main > :is(svg, img) { display: block; width: 100%; height: auto; }
.nvg-t-pic-floats > .cw-fact { position: absolute; z-index: 2; }
.nvg-t-pic-floats > .cw-fact.is-a { left: -3%; top: 0; }
.nvg-t-pic-floats > .cw-fact.is-b { right: -3%; bottom: 0; }
@media (max-width: 1199.98px) { .nvg-t-pic-floats > .cw-fact { width: 228px; } }
@media (max-width: 991.98px) {
  .nvg-t-pic { width: 100%; max-width: 560px; margin: 0 auto; }
  .nvg-t-pic.has-floats { padding: 30px 0 0; }
  .nvg-t-pic-floats > .cw-fact.is-b { display: none; }
  .nvg-t-pic-floats > .cw-fact.is-a { left: auto; right: 6px; width: min(230px, 72%); }
}

/* ------------------------------------------------------------------------------------------------------ the notes */
.nvg-t-note { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: center; margin: 18px 0 0; padding: 20px 24px; border-radius: 20px; border: 1px dashed var(--cc-line-strong); background: color-mix(in srgb, var(--cc-sunken) 60%, transparent); }
.nvg-t-note > .cc-tile { width: 56px; height: 56px; flex-basis: 56px; border-radius: 16px; font-size: 22px; background: var(--cc-surface); color: var(--cc-accent-text, var(--cc-ink)); box-shadow: inset 0 0 0 1px var(--cc-line); }
.nvg-t-note-title { margin: 0; font-size: 16px; line-height: 1.45; color: var(--cc-heading, var(--cc-ink)); }
.nvg-t-note-title > b { font-weight: 600; }
.nvg-t-note-title > .nvg-t-mark { margin-left: 2px; }
.nvg-t-note-text { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--cc-muted); }
.nvg-t-note-text a { color: var(--cc-accent-text, var(--cc-ink)); }

/* ------------------------------------------------------------------------------------- what a free account adds */
.nvg-t-account { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.nvg-t-account.is-solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.nvg-t-account-text, .nvg-t-account-pic { min-width: 0; }
.nvg-t-locks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.nvg-t-locks > li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--cc-surface); border: 1px solid var(--cc-line); }
.nvg-t-locks .cc-tile { width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px; font-size: 16px; }
.nvg-t-locks b { display: block; font-size: 14.5px; font-weight: 600; color: var(--cc-heading, var(--cc-ink)); }
.nvg-t-locks p { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--cc-muted); }

/* ------------------------------------------------------------------------------------------------------ the steps */
.nvg-t-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.nvg-t-steps.is-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nvg-t-steps.is-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nvg-t-step { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 22px 20px; border-radius: 18px; background: var(--cc-surface); border: 1px solid var(--cc-line); }
.nvg-t-step-pic { align-self: stretch; display: flex; align-items: center; justify-content: center; height: 128px; margin: -22px -20px 18px; padding: 14px; overflow: hidden; border-radius: 18px 18px 0 0; background: var(--cc-sunken); border-bottom: 1px solid var(--cc-line); }
.nvg-t-step-n { font-family: var(--cc-font-mono); font-size: 12px; color: var(--cc-accent-text, var(--cc-muted)); }
.nvg-t-step-title { margin: 8px 0 6px; font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; color: var(--cc-heading, var(--cc-ink)); }
.nvg-t-step > p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--cc-muted); }
.nvg-t-step > p a { color: var(--cc-accent-text, var(--cc-ink)); }
.nvg-t-step > :is(.nvg-t-mark, .cw-link) { margin-top: 12px; }

/* ----------------------------------------------------------------------------------------- before and after */
.nvg-t-pn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nvg-t-pn > a { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 22px 24px; border-radius: 18px; background: var(--cc-surface); border: 1px solid var(--cc-line); color: var(--cc-ink); text-decoration: none; }
.nvg-t-pn > a:hover { border-color: var(--cc-line-strong); box-shadow: var(--cc-shadow-md); color: var(--cc-ink); text-decoration: none; }
.nvg-t-pn > a:focus-visible { box-shadow: var(--cc-ring); }
.nvg-t-pn small { display: inline-flex; align-items: center; gap: 6px; font-family: var(--cc-font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--cc-muted); }
.nvg-t-pn b { font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.35; color: var(--cc-heading, var(--cc-ink)); overflow-wrap: anywhere; }
.nvg-t-pn > .nvg-t-pn-next { grid-column: 2; align-items: flex-end; text-align: right; }
.nvg-t-pn.is-compact b { font-size: 15.5px; font-weight: 500; line-height: 1.45; letter-spacing: -.01em; }

/* -------------------------------------------------------------------------------------------- the tools' cards */
.nvg-t-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.nvg-t-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 18px; background: var(--cc-surface); border: 1px solid var(--cc-line); color: var(--cc-ink); text-decoration: none; }
.nvg-t-card:hover { border-color: var(--cc-line-strong); box-shadow: var(--cc-shadow-lg); color: var(--cc-ink); text-decoration: none; }
.nvg-t-card:focus-visible { box-shadow: var(--cc-ring); }
.nvg-t-card-art { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 11; padding: 18px; overflow: hidden; background: radial-gradient(120% 130% at 20% 0%, color-mix(in srgb, var(--cw-light-1) 60%, var(--cw-ground)), var(--cw-ground) 60%); }
.nvg-t-card-art > * { max-width: 100%; }
.nvg-t-card-art > .nvg-t-card-cover { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.nvg-t-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 1 1 auto; padding: 20px 22px 22px; }
.nvg-t-card-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--cc-font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--cc-accent-text, var(--cc-muted)); }
.nvg-t-card-title { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; color: var(--cc-heading, var(--cc-ink)); }
.nvg-t-card-body > p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--cc-muted); }
.nvg-t-card-body > .cw-link { margin-top: auto; padding-top: 6px; color: var(--cc-accent-text, var(--cc-ink)); }

/* ------------------------------------------------------------------------------------------- a list's filter */
.nvg-t-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 28px; }
.nvg-t-search { position: relative; display: flex; align-items: center; flex: 1 1 280px; max-width: 460px; }
.nvg-t-search > .bi { position: absolute; left: 15px; color: var(--cc-muted); pointer-events: none; }
.nvg-t-search > .form-control { height: 48px; padding-left: 42px; border-radius: 12px; font-size: 15px; background: var(--cc-surface); }
.nvg-t-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nvg-t-empty-title { margin: 0 0 4px; font-size: 16px; font-weight: 600; color: var(--cc-heading, var(--cc-ink)); }
.nvg-t-empty-text { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; }

/* ------------------------------------------------------------------------------------------------- a source's line */
.nvg-t-source { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--cc-muted); }
.nvg-t-source > .bi { flex: 0 0 auto; margin-top: 2px; color: var(--cc-accent-text, var(--cc-ink)); }
.nvg-t-source a { color: var(--cc-accent-text, var(--cc-ink)); }

/* ---------------------------------------------------------------------------------------------- tablets, phones */
@media (max-width: 1199.98px) {
  .nvg-t-steps:not(.is-n2) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .nvg-t-account { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .nvg-t-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .nvg-t-cards, .nvg-t-pn, .nvg-t-steps, .nvg-t-steps:not(.is-n2) { grid-template-columns: minmax(0, 1fr); }
  .nvg-t-pn > .nvg-t-pn-next { grid-column: auto; align-items: flex-start; text-align: left; }
  .nvg-t-note { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px; }
  .nvg-t-locks > li { grid-template-columns: 38px minmax(0, 1fr); }
  .nvg-t-locks > li > .nvg-t-mark { grid-column: 2; justify-self: start; }
  .nvg-t-facts { gap: 12px 22px; }
  .nvg-t-search { flex-basis: 100%; max-width: none; }
  /* the phone's floor, for a member's frame too: controls a thumb's size, fields at 16 px */
  :is(.nvg-t-opening, .nvg-t-account-section, .nvg-t-step, .nvg-t-empty) :is(a, button).btn:not([aria-hidden="true"] *, [inert] *) { min-height: 44px; }
  :is(.nvg-t-account-section, .nvg-t-step) .cw-link:not([aria-hidden="true"] *, [inert] *) { min-height: 44px; }
  .nvg-t-chips > .cw-chip-btn { min-height: 44px; }
  .nvg-t-search > .form-control { min-height: 44px; font-size: 16px; }
  .nvg-t-pn small, .nvg-t-card-kicker { font-size: 12px; }
}
