/* Sovereign Infrastructure Self-Assessment.
   Locked palette only: #1A1D21, #3D444C, #5A626B, #E6E9ED, #F7F8FA,
   #FFFFFF, #CB0000, #242B33. Site fonts throughout, nothing below 12px. */

.sv-hero .hub-breadcrumb { background: transparent; margin-bottom: 1.25rem; }
/* The hub breadcrumb rules live inside hub.html's own style block, so this
   page restates them. Without this the links fall back to the browser blue. */
.sv-hero .hub-breadcrumb .breadcrumb-item a { color: rgba(255, 255, 255, 0.72) !important; text-decoration: none; }
.sv-hero .hub-breadcrumb .breadcrumb-item a:hover { color: #FFFFFF !important; }
.sv-hero .hub-breadcrumb .breadcrumb-item.active { color: #FFFFFF !important; }
.sv-hero .hub-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.5) !important; }
.sv-eyebrow {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8125rem;
  font-weight: 700;
  color: #FFFFFF;
  opacity: .82;
  margin: 0 0 .75rem;
}
.sv-h1 { color: #FFFFFF !important; max-width: 20ch; }
.sv-hero-intro {
  color: #FFFFFF;
  opacity: .9;
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 62ch;
  margin: 0 0 1.5rem;
}
.sv-hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0;
  margin: 0 0 1.75rem;
  color: #FFFFFF;
  opacity: .82;
  font-size: .9375rem;
}
.sv-begin {
  display: inline-block;
  background: #FFFFFF;
  color: #CB0000;
  border: 1px solid #FFFFFF;
  border-radius: 8px;
  padding: .7rem 1.5rem;
  font-weight: 700;
  text-decoration: none;
}
.sv-begin:hover { background: #F2F2F2; border-color: #F2F2F2; color: #9A0000; }
.sv-privacy {
  color: #FFFFFF;
  opacity: .82;
  font-size: .875rem;
  margin: 1rem 0 0;
}

/* Progress bar, below the header and not sticky */
.sv-progress { background: #FFFFFF; border-bottom: 1px solid #E6E9ED; padding: 14px 0; }
.sv-progress-inner { display: flex; align-items: center; gap: 1rem; }
.sv-progress-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
  font-weight: 700;
  color: #5A626B;
  white-space: nowrap;
  margin: 0;
}
.sv-progress-track { flex: 1; height: 6px; background: #E6E9ED; border-radius: 999px; overflow: hidden; }
.sv-progress-fill { height: 100%; width: 0; background: #CB0000; transition: width .25s ease; }
.sv-progress-count { margin: 0; font-size: .875rem; font-weight: 700; color: #1A1D21; white-space: nowrap; }

/* Alternating sections */
.sv-part { background: #FFFFFF; border-top: 1px solid #E6E9ED; padding: 80px 0; }
.sv-part-alt { background: #F7F8FA; }
.sv-part-head { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 2.5rem; }
.sv-part-num { font-size: 1.75rem; font-weight: 700; color: #5A626B; margin: 0; line-height: 1; }
.sv-part-tag {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
  font-weight: 700;
  color: #CB0000;
  margin: 0 0 .35rem;
}
.sv-part-title { font-size: 1.75rem; font-weight: 700; color: #1A1D21; margin: 0 0 .5rem; }
.sv-part-sub { color: #3D444C; font-size: 1rem; line-height: 1.65; max-width: 70ch; margin: 0; }

/* Questions */
.sv-question {
  background: #FFFFFF;
  border: 1px solid #E6E9ED;
  border-radius: 12px;
  padding: 26px 24px;
  margin: 0 0 20px;
}
.sv-part-alt .sv-question { background: #FFFFFF; }
.sv-question legend { float: none; width: auto; padding: 0; margin: 0; }
.sv-q-tag {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
  font-weight: 700;
  color: #5A626B;
  display: block;
  margin-bottom: .5rem;
}
.sv-q-text { font-size: 1.0625rem; font-weight: 600; color: #1A1D21; line-height: 1.5; display: block; }
.sv-options { display: flex; flex-direction: column; gap: 10px; margin-top: 1.25rem; }
.sv-option {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  border: 1px solid #E6E9ED;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  background: #FFFFFF;
  transition: border-color .15s ease, background-color .15s ease;
}
.sv-option:hover { border-color: #5A626B; }
.sv-option input {
  /* Kept focusable and in the layout so keyboard users get a real focus ring. */
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #CB0000;
  flex-shrink: 0;
}
.sv-option-text { color: #3D444C; font-size: 1rem; line-height: 1.5; }
.sv-option.is-selected { border-color: #CB0000; background: #FFF5F5; }
.sv-option.is-selected .sv-option-text { color: #1A1D21; }
.sv-option:focus-within { outline: 3px solid #CB0000; outline-offset: 2px; border-color: #CB0000; }
.sv-option input:focus-visible { outline: none; }

/* Result */
.sv-locked {
  border: 1px dashed #E6E9ED;
  border-radius: 12px;
  background: #FFFFFF;
  padding: 28px;
  text-align: center;
  color: #3D444C;
  margin: 0;
}
.sv-result { background: #FFFFFF; border: 1px solid #E6E9ED; border-radius: 12px; padding: 40px 32px; }
.sv-result-eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
  font-weight: 700;
  color: #5A626B;
  margin: 0 0 .5rem;
}
.sv-result-score { font-size: 3.25rem; font-weight: 700; color: #1A1D21; line-height: 1; margin: 0 0 .5rem; }
.sv-result-max { font-size: 1rem; font-weight: 400; color: #5A626B; }
.sv-result-stage {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8125rem;
  font-weight: 700;
  color: #CB0000;
  margin: 0 0 .75rem;
}
/* Four stages read by label, number and a tonal bar from grey to red. */
.sv-stage-bar { display: flex; gap: 6px; max-width: 320px; margin: 0 0 1.5rem; }
.sv-stage-seg { height: 6px; flex: 1; border-radius: 999px; background: #E6E9ED; }
.sv-stage-seg.is-on-1 { background: #5A626B; }
.sv-stage-seg.is-on-2 { background: #3D444C; }
.sv-stage-seg.is-on-3 { background: #9F0101; }
.sv-stage-seg.is-on-4 { background: #CB0000; }
.sv-result-title { font-size: 1.625rem; font-weight: 700; color: #1A1D21; margin: 0 0 1rem; max-width: 34ch; }
.sv-diagnosis p { color: #3D444C; font-size: 1rem; line-height: 1.7; margin: 0 0 1rem; max-width: 72ch; }

.sv-breakdown { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 2rem 0; }
@media (min-width: 768px) { .sv-breakdown { grid-template-columns: 1fr 1fr; } }
.sv-bd-item { border: 1px solid #E6E9ED; border-radius: 10px; padding: 18px 20px; }
.sv-bd-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
  font-weight: 700;
  color: #5A626B;
  margin: 0 0 .35rem;
}
.sv-bd-score { font-size: 1.5rem; font-weight: 700; color: #1A1D21; margin: 0 0 .6rem; }
.sv-bd-score span { font-size: .9375rem; font-weight: 400; color: #5A626B; }
.sv-bd-track { height: 6px; background: #E6E9ED; border-radius: 999px; overflow: hidden; }
.sv-bd-fill { height: 100%; background: #CB0000; }

.sv-actions { border-top: 1px solid #E6E9ED; padding-top: 1.75rem; margin-top: 1.75rem; }
.sv-actions-title { font-size: 1.25rem; font-weight: 700; color: #1A1D21; margin: 0 0 1rem; }
.sv-action-list { color: #3D444C; font-size: 1rem; line-height: 1.7; padding-left: 1.25rem; margin: 0; }
.sv-action-list li { margin-bottom: .75rem; max-width: 72ch; }

.sv-cta { background: #242B33; border-radius: 12px; padding: 32px; margin-top: 2rem; }
.sv-cta-eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
  font-weight: 700;
  color: #FFFFFF;
  opacity: .82;
  margin: 0 0 .5rem;
}
.sv-cta-title { font-size: 1.375rem; font-weight: 700; color: #FFFFFF; margin: 0 0 .75rem; }
.sv-cta-sub { color: #FFFFFF; opacity: .9; font-size: 1rem; line-height: 1.65; margin: 0 0 1.5rem; max-width: 66ch; }
.sv-cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.sv-btn {
  display: inline-block;
  background: #CB0000;
  color: #FFFFFF;
  border: 1px solid #CB0000;
  border-radius: 8px;
  padding: .65rem 1.4rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}
.sv-btn:hover { background: #9F0101; border-color: #9F0101; color: #FFFFFF; }
.sv-btn-ghost { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.sv-btn-ghost:hover { background: #FFFFFF; color: #1A1D21; border-color: #FFFFFF; }
.sv-copy-status { color: #FFFFFF; font-size: .875rem; margin: .75rem 0 0; min-height: 1.2em; }
.sv-copy-fallback { display: block; color: #FFFFFF; font-size: .875rem; margin-top: 1rem; }
.sv-copy-fallback textarea {
  display: block;
  width: 100%;
  margin-top: .4rem;
  font-size: .875rem;
  color: #1A1D21;
  background: #FFFFFF;
  border: 1px solid #E6E9ED;
  border-radius: 8px;
  padding: .6rem;
}
.sv-retake { margin: 1.75rem 0 0; }
.sv-retake .sv-btn-ghost { color: #CB0000; border-color: #CB0000; }
.sv-retake .sv-btn-ghost:hover { background: #CB0000; color: #FFFFFF; }

/* Questions are visible by default. The fade only applies once the script has
   marked the page as scripted, and never under reduced motion. */
.sv-js .sv-question { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.sv-js .sv-question.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .sv-js .sv-question { opacity: 1; transform: none; transition: none; }
  .sv-progress-fill { transition: none; }
}

@media (max-width: 767.98px) {
  .sv-part { padding: 56px 0; }
  .sv-part-head { gap: 1rem; }
  .sv-result { padding: 28px 20px; }
  .sv-cta { padding: 24px 20px; }
  .sv-progress-label { display: none; }
}
