@font-face {
  font-family: Carlito;
  src: url("../fonts/Carlito-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Carlito;
  src: url("../fonts/Carlito-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --brand: #123762;
  --brand-dark: #09223f;
  --accent: #14583d;
  --heading: Carlito, Arial, sans-serif;
  --ink: #182b3e;
  --muted: #566577;
  --line: #d5dde5;
  --surface: #f4f6f8;
  --space: 8px;
  color-scheme: light;
}
[data-theme="hokoria"] {
  --brand: #401376;
  --brand-dark: #190638;
  --accent: #401376;
  --heading: Carlito, Arial, sans-serif;
}
[data-theme="vistaria"] {
  --brand: #153b6b;
  --brand-dark: #06213c;
  --accent: #125736;
}
[data-theme="votes"] {
  --brand: #183b62;
  --brand-dark: #10263d;
  --accent: #183b62;
  --heading: Carlito, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    18px/1.6 Carlito,
    Arial,
    sans-serif;
  color: var(--ink);
  background: #fff;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
}
a {
  color: var(--brand);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  outline-offset: 4px;
}
:focus-visible {
  outline: 3px solid #347a91;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.skip {
  position: absolute;
  top: -100px;
  background: white;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 0;
}
.masthead {
  background: var(--brand);
  color: white;
  padding: 20px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.wordmark {
  font-size: 25px;
  letter-spacing: -1px;
  font-weight: 800;
}
.wordmark span {
  font-weight: 400;
}
.masthead small {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.edition {
  font-size: 12px;
  border: 1px solid #ffffff66;
  padding: 4px 12px;
}
.shell {
  display: grid;
  grid-template-columns: 245px 1fr;
  min-height: calc(100vh - 90px);
}
aside {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 30px 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.eyebrow {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.theme-control {
  margin-top: 35px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.theme-control label {
  font-size: 13px;
}
.theme-control select {
  margin: 8px 0;
  width: 100%;
  font-size: 14px;
}
main {
  min-width: 0;
  padding: 48px 6%;
  max-width: 1420px;
}
.hero {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
}
.hero h1 {
  font-size: 48px;
  letter-spacing: -2px;
  margin: 12px 0 16px;
}
.hero p {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}
.hero-symbol {
  font: 100px Carlito;
  color: var(--brand);
  line-height: 1;
}
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.section {
  padding-top: 44px;
  scroll-margin-top: 24px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}
.section-heading h2 {
  font-size: 26px;
  margin: 0;
}
.section-number {
  font: 12px monospace;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.panel {
  border: 1px solid var(--line);
  padding: 24px;
  background: white;
}
.panel h3 {
  font-size: 16px;
  margin-bottom: 20px;
}
.sample-label {
  font: 11px monospace;
  color: var(--muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.swatch div {
  height: 75px;
  background: var(--swatch);
  border: 1px solid #0001;
}
.swatch span {
  display: block;
  font-size: 12px;
  margin-top: 8px;
}
.swatch code {
  font-size: 11px;
  color: var(--muted);
}
.display-heading {
  font-family: var(--heading);
  font-size: 32px;
}
.muted {
  color: var(--muted);
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn {
  border: 2px solid transparent;
  background: var(--brand);
  color: white;
  padding: 10px 18px;
  font-weight: bold;
  border-radius: 2px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:hover {
  background: var(--brand-dark);
}
.btn.secondary {
  background: white;
  color: var(--brand);
  border-color: var(--brand);
}
.btn.secondary:hover {
  background: var(--surface);
}
.btn.danger {
  background: #a3222b;
}
.btn.link {
  background: transparent;
  color: var(--brand);
  padding-left: 0;
  text-decoration: underline;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e9eef4;
  color: #254261;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 2px;
}
.badge.success {
  background: #e1f2e8;
  color: #155335;
}
.badge.warning {
  background: #fff1d4;
  color: #704900;
}
.badge.error {
  background: #fce6e6;
  color: #8d2028;
}
.field {
  margin-bottom: 20px;
}
.field label,
.legend {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}
.hint {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 7px;
}
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  border: 1px solid #7c8b99;
  border-radius: 2px;
  background: white;
  padding: 10px 12px;
  color: var(--ink);
}
input[aria-invalid="true"] {
  border: 2px solid #a3222b;
}
.error-text {
  font-size: 13px;
  color: #a3222b;
  margin-top: 5px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 10px 0;
}
.check input {
  accent-color: var(--brand);
  width: 18px;
  height: 18px;
}
.notice {
  border-left: 4px solid #285a8b;
  background: #edf4fb;
  padding: 16px 20px;
  margin-bottom: 14px;
}
.notice p {
  margin: 4px 0 0;
  font-size: 14px;
}
.notice.success {
  border-color: #176044;
  background: #eef8f2;
}
.notice.warning {
  border-color: #9a6500;
  background: #fff7e7;
}
.notice.error {
  border-color: #a3222b;
  background: #fff0f0;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left;
}
th {
  background: var(--surface);
  font-size: 12px;
  color: var(--muted);
}
th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.record {
  margin: 0;
}
.record > div {
  display: grid;
  grid-template-columns: 40% 1fr;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
dt {
  color: var(--muted);
  font-size: 14px;
}
dd {
  margin: 0;
  font-weight: bold;
  font-size: 14px;
}
.service-header {
  background: var(--brand);
  color: white;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: bold;
}
.service-header a {
  color: white;
  font-size: 13px;
}
.breadcrumbs {
  padding: 18px 0;
  font-size: 13px;
}
.stepper {
  list-style: none;
  display: flex;
  padding: 0;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}
.stepper li {
  color: var(--muted);
}
.stepper li[aria-current] {
  color: var(--brand);
  font-weight: bold;
}
.stepper span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid currentColor;
  margin-right: 6px;
}
.timeline {
  border-left: 2px solid var(--line);
  padding-left: 20px;
  margin: 20px 0;
}
.timeline p {
  font-size: 14px;
}
.timeline small {
  display: block;
  color: var(--muted);
}
details {
  border: 1px solid var(--line);
  padding: 14px 18px;
  margin-top: 12px;
}
summary {
  cursor: pointer;
  font-weight: bold;
}
details p {
  margin: 12px 0 0;
}
.empty {
  text-align: center;
  padding: 28px;
  background: var(--surface);
}
.empty p {
  font-size: 14px;
}
.search-row {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}
.search-row input {
  flex: 1;
}
.footer {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 13px;
}
.demo-feedback {
  margin: 12px 0 0;
  font-size: 14px;
  color: #155335;
}
.demo-feedback:empty {
  display: none;
}
dialog {
  border: 1px solid var(--line);
  max-width: 480px;
  width: calc(100% - 32px);
  padding: 28px;
}
dialog::backdrop {
  background: #081f3a99;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
}
legend {
  font-weight: bold;
  margin-bottom: 10px;
}
.ballot .check {
  padding: 14px;
  border: 1px solid var(--line);
}
.ballot .check:has(input:checked) {
  border-color: var(--brand);
  background: var(--surface);
}
@media (max-width: 1000px) {
  main {
    padding: 36px 5%;
  }
  .shell {
    grid-template-columns: 205px 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .swatches {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero-symbol {
    display: none;
  }
}
@media (max-width: 650px) {
  .masthead {
    padding: 16px 20px;
  }
  .edition {
    display: none;
  }
  .shell {
    display: block;
  }
  aside {
    position: static;
    height: auto;
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .theme-control {
    margin: 12px 0 0;
    padding: 12px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .theme-control select {
    width: auto;
    flex: 1;
  }
  .theme-control .hint {
    display: none;
  }
  main {
    padding: 28px 20px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero p {
    font-size: 16px;
  }
  .panel {
    padding: 18px;
  }
  .swatches {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .section-heading {
    gap: 12px;
  }
  .record > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Approved public-service page shell. Header, optional breadcrumb and title,
   content, optional feedback, footer. Used by the documentation itself. */
.container {
  width: min(1050px, calc(100% - 40px));
  margin-inline: auto;
}
.ov-header {
  background: var(--brand);
  color: white;
  border-bottom: 5px solid var(--accent);
}
.header-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
  font-size: 30px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.8px;
  line-height: 1.2;
}
.identity-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff80;
  font-size: 30px;
}
.header-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-shrink: 0;
}
.header-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  color: white;
  background: transparent;
  padding: 10px 0;
  font:
    700 18px Carlito,
    Arial,
    sans-serif;
  cursor: pointer;
}
.header-toggle svg {
  width: 20px;
  height: 20px;
}
.header-toggle:hover,
.header-toggle[aria-expanded="true"] {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.header-panel {
  background: var(--brand-dark);
  border-top: 1px solid #ffffff40;
}
.header-panel[hidden] {
  display: none;
}
.menu-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 32px;
  padding-block: 24px;
  overflow: visible;
}
.menu-links a {
  display: block;
  color: white;
  padding: 10px 14px;
  border-left: 3px solid transparent;
  white-space: normal;
  font-size: 18px;
  text-decoration: underline;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.menu-links a:hover,
.menu-links a[aria-current] {
  background: #ffffff18;
  border-left-color: #82c6d5;
  text-decoration-thickness: 2px;
}
.search-panel {
  background: #edf3f7;
  color: var(--ink);
  border-top-color: var(--line);
}
.search-form {
  padding-block: 24px;
}
.search-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
}
.search-form .search-row {
  max-width: 720px;
  margin-bottom: 0;
}
.search-form input {
  min-width: 0;
  flex: 1;
  border: 2px solid #637b91;
  border-radius: 0;
  padding: 12px;
}
.search-form .btn {
  border-radius: 0;
  flex-shrink: 0;
}
.ov-feedback {
  border-top: 1px solid var(--line);
  background: #f5f7f9;
}
.feedback-inner {
  padding-block: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
}
.feedback-inner p {
  margin: 0;
  font-weight: bold;
}
.ov-footer {
  background: var(--brand-dark);
  color: white;
}
.footer-inner {
  padding-block: 36px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  overflow: visible;
  margin-bottom: 24px;
}
.footer-links a {
  padding: 0;
  border: 0;
  color: white;
  font-size: 18px;
  text-decoration: underline;
  white-space: normal;
}
.footer-links a:hover {
  background: transparent;
  text-decoration-thickness: 2px;
}
.ov-footer p {
  margin: 0;
  font-size: 15px;
  color: #d5dfea;
}
.small {
  font-size: 15px;
  color: var(--muted);
}
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .header-inner {
    min-height: 80px;
    flex-wrap: wrap;
    padding-block: 16px;
    gap: 12px;
  }
  .identity {
    font-size: 25px;
  }
  .identity-mark {
    width: 36px;
    height: 36px;
    font-size: 26px;
  }
  .menu-links {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-links a {
    font-size: 16px;
  }
}

/* Reusable form, review and disclosure components. */
.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;
}
.error-summary {
  border: 4px solid #a3222b;
  padding: 20px;
  margin-bottom: 24px;
}
.error-summary h2 {
  margin: 0 0 12px;
  font-size: 24px;
}
.error-summary a {
  color: #a3222b;
  font-weight: bold;
}
.inset {
  border-left: 5px solid var(--line);
  padding: 16px 20px;
}
.task-list {
  padding: 0;
  list-style: none;
}
.task-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.tabs button {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px 16px;
}
.tabs button[aria-selected="true"] {
  border-bottom: 3px solid var(--brand);
  background: white;
  font-weight: bold;
}
.date-fields {
  display: flex;
  gap: 16px;
}
.date-fields .field {
  max-width: 110px;
}
.date-fields .field:last-child {
  max-width: 150px;
}
.confirmation {
  background: var(--accent);
  color: white;
  text-align: center;
  padding: 30px;
}
.confirmation h2 {
  color: white;
}
.theme-demo {
  border-top: 5px solid var(--accent);
  padding: 24px;
  background: var(--brand-dark);
  color: white;
}
.theme-demo h2 {
  font-family: var(--heading);
}

/* Navigation components own their layouts; sidebar rules must not affect them. */
.breadcrumbs {
  padding: 20px 0;
  font-size: 15px;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}
.breadcrumbs li + li::before {
  content: "/";
  color: var(--muted);
  flex-shrink: 0;
}
.breadcrumbs a {
  display: inline;
  padding: 0;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.breadcrumbs a:hover {
  text-decoration-thickness: 2px;
}
.pagination {
  margin-top: 24px;
}
.pagination ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination a,
.pagination span[aria-current] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.pagination a:hover {
  background: var(--surface);
  border-color: var(--brand);
}
.pagination span[aria-current] {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
  font-weight: bold;
  text-decoration: none;
}

/* Supporting guidance, also used by the documentation. */
.guidance {
  border-left: 4px solid var(--brand);
  background: var(--surface);
  padding: 20px 24px;
  margin: 24px 0;
}
.guidance h2 {
  font-size: 20px;
  margin: 0 0 8px;
}
.guidance p {
  margin: 0;
}

/* Header logos retain their intrinsic aspect ratio. Favicons are separate assets. */
.identity-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .identity-logo {
    height: 36px;
  }
}

/* Documents and service discovery */
.file-upload {
  padding: 12px;
  border: 2px solid var(--ink);
  background: var(--surface);
  width: 100%;
}
.file-upload::file-selector-button {
  font: inherit;
  border: 0;
  background: var(--brand);
  color: white;
  padding: 8px 16px;
  margin-right: 12px;
  cursor: pointer;
}
.upload-list {
  overflow-wrap: anywhere;
}
.address-input .field {
  margin: 20px 0;
}
.service-directory {
  list-style: none;
  padding: 0;
  margin: 32px 0;
}
.service-directory li {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.service-directory h2,
.service-directory h3 {
  margin: 0 0 8px;
}
.service-directory p {
  margin: 8px 0;
}
.case-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 16px;
  background: var(--surface);
}
