/* ==========================================================================
   chrome.css  -  shared chrome v2  (patch CH-1)

   Loaded ONLY when CHROME_V2=1 (see base.html). Every selector starts with .ch-
   (plus shell :has() for full-bleed chrome). Does not restyle .panel / forms.
   Landing keeps landing.css + lp_* partials.
   ========================================================================== */

body:has(.ch-header) { background: #f4f6fb; }
.shell:has(> .ch-header) {
  max-width: none;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.shell:has(> .ch-header) > .alert {
  box-sizing: border-box;
  width: calc(100% - 2.5rem);
  max-width: 70rem;
  margin: 1rem auto;
}
.ch-main {
  box-sizing: border-box;
  width: 100%;
  max-width: 72.5rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2rem;
  flex: 1 0 auto;
}

.ch-skip, .ch-rule, .ch-phase, .ch-header, .ch-footer, .ch-main {
  --ch-blue: #30539f;
  --ch-blue-dark: #1d366f;
  --ch-crimson: #d62652;
  --ch-ink: #161c2d;
  --ch-muted: #566077;
  --ch-line: #dce3ef;
  --ch-tint: #eef2f9;
  letter-spacing: 0;
}
.ch-phase, .ch-header, .ch-footer { font-size: 1rem; line-height: 1.75; color: var(--ch-ink); }
.ch-inner { box-sizing: border-box; max-width: 72.5rem; margin-inline: auto; padding-inline: 1.25rem; }

.ch-skip {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100;
  padding: .6rem 1rem; border-radius: 8px; background: #fff; color: var(--ch-blue-dark);
  font-weight: 700; text-decoration: none;
}
.ch-skip:focus { top: 1rem; }
.ch-rule { height: 4px; background: var(--ch-crimson); flex: none; }

.ch-phase { background: var(--ch-tint); border-bottom: 1px solid var(--ch-line); color: var(--ch-muted); font-size: .8125rem; line-height: 1.6; }
.ch-phase .ch-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .75rem; padding-block: .35rem; }
.ch-phase a { color: var(--ch-blue-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ch-tag {
  display: inline-flex; align-items: center; padding: 0 .65rem; border: 1px solid var(--ch-line); border-radius: 999px;
  background: #fff; color: var(--ch-blue-dark); font-size: .8125rem; font-weight: 700; line-height: 1.7; white-space: nowrap;
}

.ch-header { background: #fff; border-bottom: 1px solid var(--ch-line); flex: none; }
.ch-header .ch-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem .9rem;
  min-height: 4.25rem; padding-block: .5rem;
}
.ch-brand { display: flex; align-items: center; gap: .8rem; min-width: 0; color: var(--ch-blue-dark); text-decoration: none; }
.ch-brand img { flex: none; width: 3.25rem; height: 3.25rem; }
.ch-brand__name { display: block; font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.ch-brand__sub { display: block; color: var(--ch-muted); font-size: .8125rem; line-height: 1.5; }

.ch-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem;
  margin-inline-start: auto; max-width: 100%;
}
.ch-chip {
  display: inline-flex; align-items: center; max-width: 16rem;
  padding: .2rem .65rem; border: 1px solid var(--ch-line); border-radius: 999px;
  background: var(--ch-tint); color: var(--ch-blue-dark); font-size: .8125rem; line-height: 1.6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ch-nav form { display: inline-flex; align-items: center; gap: .35rem; margin: 0; }
.ch-nav select {
  min-height: 2.25rem; max-width: 11rem; padding: .25rem .5rem;
  border: 1px solid var(--ch-line); border-radius: 8px; background: #fff; color: var(--ch-ink); font: inherit;
}

.ch-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.25rem; padding: .35rem .85rem;
  border: 1.5px solid transparent; border-radius: 8px; font: inherit; font-weight: 700; font-size: .875rem; line-height: 1.4;
  text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.ch-btn--solid { background: var(--ch-blue); color: #fff; }
.ch-btn--solid:hover { background: var(--ch-blue-dark); color: #fff; }
.ch-btn--link { padding-inline: .55rem; color: var(--ch-blue-dark); }
.ch-btn--link:hover { background: var(--ch-tint); color: var(--ch-blue-dark); }
.ch-btn--ghost { border-color: var(--ch-line); background: #fff; color: var(--ch-blue-dark); }
.ch-btn--ghost:hover { background: var(--ch-tint); color: var(--ch-blue-dark); }

.ch-footer { background: var(--ch-blue-dark); color: #dbe4f7; font-size: .9375rem; flex: none; margin-top: auto; }
.ch-footer .ch-inner { padding-block: 1.5rem; }
.ch-footer__main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.ch-footer__org { display: flex; align-items: center; gap: .8rem; }
.ch-footer__org img { flex: none; width: 2.5rem; height: 2.5rem; padding: 2px; border-radius: 50%; background: #fff; }
.ch-footer__org strong { display: block; color: #fff; font-weight: 700; }
.ch-footer__org span { display: block; font-size: .8125rem; }
.ch-footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.ch-footer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ch-footer__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem;
  margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid rgba(255, 255, 255, .22);
  color: #c9d6f2; font-size: .8125rem;
}

.ch-skip:focus-visible, .ch-phase :focus-visible, .ch-header :focus-visible {
  outline: 3px solid var(--ch-blue-dark); outline-offset: 2px; box-shadow: 0 0 0 2px #fff;
}
.ch-footer :focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 2px var(--ch-blue-dark); }

@media (max-width: 40rem) {
  .ch-phase__text { display: none; }
  .ch-nav { width: 100%; margin-inline-start: 0; }
  .ch-footer__bar { flex-direction: column; }
}

.ch-header .visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media print {
  .ch-skip, .ch-rule, .ch-phase, .ch-header, .ch-footer { display: none !important; }
}
