@font-face {
  font-family: Carlito;
  src: url("../fonts/Carlito-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: Carlito;
  src: url("../fonts/Carlito-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}
: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;
}
/* Preserve native visibility when component display rules apply. */
[hidden] {
  display: none !important;
}
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;
}
.btn.link:hover {
  background: var(--surface);
  color: var(--brand-dark);
}
.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 {
  position: relative;
  max-width: 100%;
  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,
.menu-links button {
  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],
.menu-links button:hover {
  background: #ffffff18;
  border-left-color: #82c6d5;
  text-decoration-thickness: 2px;
}
.menu-links button {
  background: transparent;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  text-align: left;
  font: inherit;
}
.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);
}

/* Section navigation */
.section-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.section-navigation a {
  display: block;
  padding: 8px 12px;
  min-height: 44px;
  border-left: 3px solid transparent;
  overflow-wrap: anywhere;
}
.section-navigation a:hover,
.section-navigation a[aria-current="page"] {
  background: var(--surface);
  border-left-color: var(--brand);
}
.section-navigation a[aria-current="page"] {
  font-weight: bold;
}

/* Skip links and page navigation focus the main landmark, not a control. */
main[tabindex="-1"]:focus {
  outline: none;
}

/* Shared service content, distinct from the documentation sidebar layout. */
main.service-main {
  max-width: none;
  padding: 36px 0 64px;
  min-height: 500px;
}
.service-main .content {
  max-width: 740px;
}
.service-main .content.workspace {
  max-width: 100%;
}
.service-main h1 {
  font-size: 44px;
  line-height: 1.15;
  margin: 0 0 24px;
}
.service-main h2 {
  font-size: 27px;
  margin: 32px 0 18px;
}
.service-main .lead {
  font-size: 22px;
}
.page-loading {
  opacity: 0;
  animation: loading-label 0s 600ms forwards;
}
@keyframes loading-label {
  to {
    opacity: 1;
  }
}
.preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .service-main h1 {
    font-size: 34px;
  }
  .service-main .lead {
    font-size: 19px;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}
.markdown {
  overflow-wrap: anywhere;
}
.markdown pre {
  white-space: pre-wrap;
}
.site-alert {
  background: var(--surface);
  border-left: 5px solid var(--brand);
  padding: 20px 24px;
  margin-top: 20px;
}
.site-alert h2 {
  font-size: 24px;
  margin: 0 0 8px;
}
.site-alert p {
  white-space: pre-wrap;
  margin-bottom: 12px;
}
.site-alert button {
  display: block;
  margin-top: 12px;
}

/* Reusable grouped service content and staff form layouts. */
.section-card {
  border: 1px solid var(--line);
  background: white;
  padding: 24px;
  margin: 24px 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.section-card > h2:first-child,
.section-card > h3:first-child {
  margin-top: 0;
}
.section-card > :last-child {
  margin-bottom: 0;
}
.field-grid,
.condition-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.condition-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0;
  gap: 12px;
}
.field-grid > .field,
.condition-row > .field {
  min-width: 0;
}
.condition-row > .btn {
  justify-self: start;
}
@media (max-width: 600px) {
  .field-grid,
  .condition-row {
    grid-template-columns: 1fr;
  }
  .section-card {
    padding: 20px;
  }
}

/* Compact form editors and multi-page questions. */
.editor-body {
  padding-top: 20px;
}
.question-editor > summary {
  font-size: 20px;
  overflow-wrap: anywhere;
}
.editor-summary-meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: normal;
  margin-left: 12px;
}
.question-group {
  margin: 24px 0;
}
.question-group > legend {
  font-size: 24px;
}
.question-group .markdown {
  margin-bottom: 20px;
}
.form-pagination {
  margin-top: 24px;
}

/* Wide datasets scroll inside the page; records retain full readable text. */
.dataset-table {
  max-width: 100%;
  overflow-x: auto;
}
.dataset-table:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.dataset-table table {
  width: max-content;
  min-width: 100%;
}
.dataset-table th,
.dataset-table td {
  min-width: 14rem;
  width: 18rem;
  max-width: 24rem;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.dataset-table td details {
  white-space: normal;
}
.dataset-table .preserve,
.dataset-record .preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.dataset-record dd {
  font-weight: normal;
  min-width: 0;
}
.dataset-record .record > div {
  grid-template-columns: minmax(0, 30%) minmax(0, 1fr);
  gap: 16px;
}
@media (max-width: 600px) {
  .dataset-record .record > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.dataset-view-switch [aria-pressed="true"] {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

/* Visual publishing controls. */
.rich-content {
  overflow-wrap: anywhere;
}
.rich-content img,
.publication-image {
  max-width: 100%;
  height: auto;
}
.rich-editor {
  border: 2px solid var(--ink);
  min-height: 280px;
  padding: 20px;
  background: white;
  overflow-wrap: anywhere;
}
.rich-editor img {
  max-width: 100%;
  height: auto;
}
.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
}
.rich-toolbar .btn {
  margin: 0;
}
.rich-content p,
.rich-editor p {
  white-space: pre-wrap;
}
[contenteditable]:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
@media (max-width: 600px) {
}

/* Shared cards, content column presets and homepage feature banners. */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.service-card {
  border: 1px solid var(--line);
  background: white;
  padding: 24px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.service-card h2,
.service-card h3 {
  margin-top: 0;
}
.service-card > :last-child {
  margin-bottom: 0;
}
.service-card a {
  font-weight: bold;
}
.service-card:focus-within {
  border-color: var(--brand);
}
.content-columns {
  display: grid;
  gap: 32px;
  align-items: start;
  margin: 40px 0;
}
.content-columns > * {
  min-width: 0;
}
.content-columns > * > :first-child {
  margin-top: 0;
}
.content-columns-halves {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.content-columns-two-thirds {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.content-columns-three-quarters {
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
}
.homepage-spotlights {
  margin-bottom: 40px;
}
.resource-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.resource-links li {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.resource-links a {
  font-size: 20px;
  font-weight: bold;
}
.feature-banner {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.feature-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-banner > .container {
  position: relative;
  min-height: 280px;
  display: flex;
}
.feature-banner-panel {
  width: 40%;
  background: #105536;
  color: white;
  padding: 24px;
  overflow-wrap: anywhere;
}
.feature-banner-panel h1,
.feature-banner-panel h2 {
  color: white;
  margin-top: 0;
  font-size: 30px;
  line-height: 1.15;
}
.feature-banner-panel p {
  font-size: 18px;
  line-height: 1.4;
}
.feature-banner-action {
  background: transparent;
  color: white;
  border: 2px solid white;
  margin-top: 12px;
}
.feature-banner-action:hover {
  background: white;
  color: #105536;
  border-color: white;
}
.phase-banner {
  display: flex;
  gap: 12px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 16px;
}
.phase-banner .badge {
  background: var(--brand);
  color: white;
  border: 0;
  flex-shrink: 0;
}
.phase-banner p {
  margin: 0;
  font-size: inherit;
}
@media (max-width: 760px) {
  .content-columns-halves,
  .content-columns-two-thirds,
  .content-columns-three-quarters {
    grid-template-columns: 1fr;
  }
  .content-columns {
    gap: 32px;
  }
  .feature-banner-image {
    position: relative;
    display: block;
    height: 160px;
  }
  .feature-banner > .container {
    width: 100%;
    min-height: auto;
  }
  .feature-banner-panel {
    width: 100%;
    padding: 20px;
  }
  .feature-banner-panel h1,
  .feature-banner-panel h2 {
    font-size: 26px;
  }
  .feature-banner-panel p {
    font-size: 18px;
  }
}
@media (max-width: 600px) {
  .service-cards {
    grid-template-columns: 1fr;
  }
  .service-card {
    padding: 20px;
  }
}

/* Reusable section menu and publishing workspace. */
.section-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.section-layout > * {
  min-width: 0;
}
.section-menu {
  border: 0;
  padding: 0;
  margin: 0;
}
.section-menu > summary {
  font-size: 20px;
  font-weight: bold;
  padding: 12px 0;
}
.section-menu .section-navigation h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}
.section-menu .section-navigation ul {
  margin-bottom: 20px;
}
.section-content h1 {
  margin-top: 0;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 32px;
}
.editor-layout > * {
  min-width: 0;
}
.editor-settings {
  background: var(--surface);
  padding: 20px;
  align-self: start;
}
.rich-toolbar {
  border: 1px solid var(--line);
  padding: 12px;
  background: var(--surface);
  gap: 8px;
}
.rich-toolbar select {
  width: auto;
  max-width: 100%;
  margin: 0;
}
.rich-toolbar .btn {
  font-size: 16px;
  padding: 8px 12px;
}
.rich-editor {
  min-height: 340px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 0;
}
.rich-editor:focus {
  outline: 3px solid var(--brand);
  outline-offset: 0;
}
.rich-component-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.rich-component-library {
  margin: 12px 0;
}
.rich-editor .table-wrap {
  overflow: auto;
}
.rich-editor .service-card {
  margin: 20px 0;
}
@media (max-width: 1000px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .section-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .section-menu {
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
  }
}
@media (max-width: 600px) {
  .rich-editor {
    padding: 16px;
  }
  .rich-component-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact authoring controls and checkbox multiselect. */
.rich-toolbar {
  padding: 8px;
  gap: 4px;
}
.rich-toolbar .btn {
  padding: 5px 9px;
  min-height: 36px;
}
.rich-toolbar select {
  min-height: 36px;
  padding: 5px 8px;
  font-size: 16px;
}
.rich-toolbar [data-command="bold"] {
  font-weight: 700;
}
.rich-toolbar [data-command="italic"] {
  font-style: italic;
}
.rich-toolbar [aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.6);
}
.rich-editor {
  min-height: 220px;
  padding: 16px;
}
.rich-component-library,
.rich-editor-tools,
.rich-shortcuts {
  margin: 6px 0;
  font-size: 16px;
}
.rich-component-grid {
  gap: 8px;
}
.checkbox-dropdown {
  border: 1px solid var(--line);
  margin: 0;
}
.checkbox-dropdown > summary {
  padding: 10px 12px;
  background: var(--surface);
}
.checkbox-dropdown > summary .hint {
  margin-left: 12px;
  font-weight: normal;
}
.checkbox-dropdown-panel {
  padding: 12px;
}
.checkbox-dropdown-panel > label {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}
.checkbox-dropdown-panel .actions {
  margin: 8px 0;
  gap: 12px;
}
.checkbox-dropdown-panel .actions .btn {
  padding: 0;
  font-size: 16px;
}
.checkbox-dropdown-options {
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
}
.checkbox-dropdown-options .check {
  display: flex;
  align-items: start;
  gap: 10px;
  margin: 0;
  padding: 6px;
  cursor: pointer;
}
.checkbox-dropdown-options .check:hover {
  background: var(--surface);
}
.checkbox-dropdown-options .check[hidden] {
  display: none;
}
.checkbox-dropdown-options input {
  flex: 0 0 auto;
  margin-top: 3px;
}
.checkbox-dropdown > summary .hint {
  display: inline-block;
  margin-bottom: 0;
}
.checkbox-dropdown-options .check {
  font-weight: normal;
}
.rich-editor-controls > .rich-component-library,
.rich-editor-controls > .rich-editor-tools,
.rich-editor-controls > .rich-shortcuts {
  display: inline-block;
  vertical-align: top;
  margin: 6px 4px 0 0;
}
.rich-editor-controls > details > summary {
  padding: 6px 10px;
}
.rich-editor-controls > details[open] {
  display: block;
}
.rich-editor-controls > .rich-editor {
  margin-top: -1px;
}

/* Compact editor insertion menu and in-page hyperlink controls. */
.rich-editor-controls .rich-toolbar {
  position: relative;
}
.rich-editor-controls .rich-toolbar > .btn {
  min-width: 32px;
  padding: 5px 7px;
}
.rich-editor-controls [data-insert-open] {
  font-size: 22px;
  line-height: 1;
}
.rich-insert-menu {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 20;
  width: min(420px, 100%);
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 4px 12px #0002;
  padding: 12px;
}
.rich-insert-menu h3 {
  font-size: 20px;
  margin: 0 0 10px;
}
.rich-insert-menu .rich-component-grid {
  padding: 0;
}
.rich-insert-menu .btn {
  text-align: left;
}
.rich-link-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 12px;
}
.rich-link-panel > label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}
.rich-link-panel .actions {
  margin: 10px 0 0;
}
.rich-link-panel .error-message {
  margin: 6px 0;
}

/* Spotlight cards are a compact variant of the shared Cards component. */
.service-card.spotlight-card {
  padding: 20px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
}
.spotlight-card h2,
.spotlight-card h3 {
  font-size: 24px;
  line-height: 1.25;
  margin: 0;
}
.spotlight-card p {
  font-size: 18px;
  line-height: 1.45;
  margin: 10px 0 0;
}
.spotlight-card:hover {
  border-color: var(--brand);
}
.staff-sign-in {
  max-width: 740px;
}
.section-layout[data-auth-state="loading"],
.section-layout[data-auth-state="signed-out"] {
  display: block;
}
@media (max-width: 600px) {
  .service-card.spotlight-card {
    padding: 16px;
  }
  .spotlight-card h2,
  .spotlight-card h3 {
    font-size: 22px;
  }
}

/* Compact page metadata, separate from the publication and feedback. */
.page-information {
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.page-information-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding-block: 24px;
}
.page-information-grid > div {
  min-width: 0;
}
.page-information h2 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 8px;
}
.page-information ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.page-information li {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
.page-information li:last-child {
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .page-information-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Compact search-result query and optional filters. */
.search-query-row {
  display: flex;
  gap: 12px;
}
.search-query-row input {
  min-width: 0;
  flex: 1;
}
.search-query-row .btn {
  flex-shrink: 0;
}
.search-results-form input,
.search-results-form select,
.search-results-form .btn {
  min-height: 44px;
  font-size: 18px;
  padding: 8px 12px;
}
.search-results-form > .field {
  margin-bottom: 12px;
}
.search-filters {
  margin: 0 0 20px;
}
.search-filters > summary {
  padding: 8px 12px;
  font-size: 16px;
}
.search-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
}
.search-filter-grid .field {
  min-width: 0;
  margin: 0;
}
.search-filter-grid label {
  font-size: 16px;
  margin-bottom: 4px;
}
.search-filter-grid select {
  max-width: 100%;
  font-size: 16px;
}
.search-filters > .actions {
  margin: 0;
  padding: 0 12px 12px;
  gap: 12px;
}
@media (max-width: 600px) {
  .search-filter-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .search-query-row {
    gap: 8px;
  }
}
.editor-view-switch {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.editor-view-switch .btn {
  padding: 6px 12px;
  font-size: 16px;
}
.editor-view-switch [aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.markdown-editor {
  min-height: 280px;
  font:
    16px/1.5 ui-monospace,
    monospace;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 16px;
  resize: vertical;
}
.rich-content pre {
  overflow-x: auto;
  padding: 12px;
  background: var(--surface);
}
.rich-content code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
}

.legislation-filters form {
  padding: 16px 0;
}
.legislation-filters label {
  font-size: 16px;
}
.legislation-filters input,
.legislation-filters select {
  font-size: 16px;
  min-height: 44px;
  padding: 8px;
}
.legislation-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.legislation-list > li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.legislation-list > li:first-child {
  padding-top: 0;
}
.legislation-list h2,
.legislation-list h3 {
  font-size: 24px;
  line-height: 1.3;
  margin: 8px 0;
}
.legislation-list > li > p:last-child {
  margin-bottom: 0;
}
.legislation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 0;
}
.legislation-reference {
  font-size: 16px;
  font-weight: bold;
}
/* Homepage topic cards and dated news cards. */
.topic-cards .service-cards {
  gap: 20px;
}
.topic-cards .service-card {
  padding: 20px;
}
.topic-cards h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 10px;
}
.topic-cards p {
  font-size: 18px;
  line-height: 1.45;
  margin: 0;
}
.section-link {
  margin: 20px 0 0;
}
.news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-list > li {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.news-list time {
  font-size: 16px;
  color: var(--muted);
}
.news-list h3 {
  font-size: 24px;
  line-height: 1.3;
  margin: 8px 0 10px;
}
.news-list p {
  font-size: 18px;
  line-height: 1.45;
  margin: 0;
}
@media (max-width: 600px) {
  .news-list {
    grid-template-columns: 1fr;
  }
  .topic-cards .service-card,
  .news-list > li {
    padding: 16px;
  }
}
.revision-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.revision-comparison > section {
  min-width: 0;
  border: 1px solid var(--line);
  padding: 16px;
  overflow-wrap: anywhere;
}
.revision-comparison pre,
#log-details pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.feature-banner-position-left .feature-banner-image {
  object-position: left center;
}
.feature-banner-position-right .feature-banner-image {
  object-position: right center;
}
.feature-banner-position-top .feature-banner-image {
  object-position: center top;
}
.feature-banner-position-bottom .feature-banner-image {
  object-position: center bottom;
}
@media (max-width: 600px) {
  .revision-comparison {
    grid-template-columns: 1fr;
  }
}
.topic-cards .service-card:only-child {
  grid-column: 1 / -1;
}
