:root {
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
}
body {
  margin: 0;
  background: #f6f7f9;
  color: #111;
}
.skip-link {
  position: absolute;
  left: 14px;
  top: -48px;
  z-index: 1000;
  padding: 10px 14px;
  background: #ffffff;
  color: #0b2a4a;
  border: 2px solid #0b2a4a;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus {
  top: 14px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #0b2a4a;
  color: #fff;
}
.brand {
  font-weight: 700;
}
.nav {
  display: flex;
  align-items: center;
}
.nav a {
  color: #fff;
  margin-left: 12px;
  text-decoration: none;
}
a,
button,
input,
select {
  transition:
    outline-color 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #0b63ce;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(11, 99, 206, 0.18);
}
.container {
  max-width: 980px;
  margin: 22px auto;
  padding: 0 14px;
}
.card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  gap: 6px;
}
input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d7dbe2;
  width: 100%;
  box-sizing: border-box;
}
select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d7dbe2;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.actions .push-right {
  margin-left: auto;
}
button,
.linkbutton {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: #0b2a4a;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button.secondary {
  background: #e7ebf1;
  color: #111;
}
.muted {
  color: #555;
}
.error-message {
  color: #8b0000;
  font-weight: 700;
}
.notice {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #d3dce8;
  background: #f7fafc;
  color: #17324d;
}
.notice p {
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.notice code {
  overflow-wrap: anywhere;
}
.notice--compact {
  margin: 10px 0;
  padding: 10px 12px;
}
.notice--error {
  border-color: #e0b4b4;
  background: #fff3f2;
  color: #7d1111;
}
.notice--warning {
  border-color: #e5c78a;
  background: #fff8e6;
  color: #6d4700;
}
.notice--info {
  border-color: #b8d0eb;
  background: #eff6ff;
  color: #12385f;
}
.notice--success {
  border-color: #9fccb5;
  background: #effaf3;
  color: #12492c;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.search-intro {
  color: #0b2a4a;
  font-weight: 700;
}
.search-tip {
  font-size: 0.9rem;
}
.badge {
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 8px;
  border-radius: 999px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.table caption {
  text-align: left;
  margin-bottom: 8px;
}
.table th,
.table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}
.turnstile {
  margin: 10px 0 0;
}
.footer {
  text-align: center;
  padding: 18px;
  color: #666;
}
@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .notice {
    padding: 12px 14px;
    border-radius: 10px;
  }
}
.thlink {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: #0b2a4a;
  cursor: pointer;
  text-decoration: underline;
}
.nowrap {
  white-space: nowrap;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-section {
  margin-top: 14px;
}

.detail-section h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.section-nav {
  margin: 16px 0 14px;
  padding: 12px 14px;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: #f8fbff;
}

.section-nav h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.section-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.section-nav-list a {
  color: #0b2a4a;
  text-decoration-thickness: 2px;
}

.focus-region {
  scroll-margin-top: 20px;
}

.focus-region:focus-visible {
  outline: 3px solid #0b63ce;
  outline-offset: 4px;
}

.data-list {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.data-list dt {
  font-weight: 700;
  color: #444;
}

.data-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-section .table th {
  width: 220px;
  color: #444;
}

.case-detail-grid {
  gap: 10px;
}

.case-detail-grid .detail-col .detail-section:first-child {
  margin-top: 8px;
}

.case-detail-grid .detail-section {
  margin-top: 10px;
}

.case-detail-page .detail-section {
  box-shadow: inset 0 0 0 1px #e2e7ee;
  border-radius: 8px;
}

.docket-table .count-col {
  width: 56px;
  max-width: 56px;
  white-space: nowrap;
}

.docket-table .entry-text-col {
  width: 70%;
}

.civil-docket-table col.civil-case-number-col,
.civil-docket-table .civil-case-number-col {
  width: 72px;
  white-space: nowrap;
}

.civil-docket-table col.civil-case-name-col,
.civil-docket-table .civil-case-name-col {
  width: 52%;
}

.civil-docket-table th.civil-case-number-col,
.civil-docket-table td.civil-case-number-col {
  padding-right: 4px;
}

.civil-docket-table th.civil-case-name-col,
.civil-docket-table td.civil-case-name-col {
  padding-left: 4px;
}

.traffic-docket-table col.traffic-case-number-col,
.traffic-docket-table .traffic-case-number-col {
  width: 72px;
  white-space: nowrap;
}

.traffic-docket-table col.traffic-name-col,
.traffic-docket-table .traffic-name-col {
  width: 52%;
}

.traffic-docket-table th.traffic-case-number-col,
.traffic-docket-table td.traffic-case-number-col {
  padding-right: 4px;
}

.traffic-docket-table th.traffic-name-col,
.traffic-docket-table td.traffic-name-col {
  padding-left: 4px;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.docket-date {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0b2a4a;
  white-space: nowrap;
}

.access-page .access-verify-slot {
  min-height: 86px;
}

.access-page .access-note-slot {
  min-height: 52px;
}

.access-page .access-note-slot .notice {
  margin: 8px 0 0;
}

.access-page .access-actions {
  margin-top: 10px;
}

.access-page .access-widget-placeholder {
  height: 70px;
}

.claim-judgment-indent {
  padding-left: 24px;
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }
  .nav a {
    margin-left: 0;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .section-nav-list {
    flex-direction: column;
    gap: 8px;
  }
  .data-list {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .claim-judgment-indent {
    padding-left: 0;
  }
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .actions .push-right {
    margin-left: 0;
  }
  .actions > * {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
  .actions .badge {
    width: auto;
  }
  .table.stack-on-mobile {
    border-collapse: separate;
    border-spacing: 0;
  }
  .table.stack-on-mobile colgroup {
    display: none;
  }
  .table.stack-on-mobile col {
    width: auto !important;
  }
  .table.stack-on-mobile thead {
    display: none;
  }
  .table.stack-on-mobile tbody tr {
    display: block;
    border: 1px solid #e2e7ee;
    border-radius: 10px;
    margin: 10px 0;
    padding: 6px 10px;
    background: #fff;
  }
  .table.stack-on-mobile tbody th,
  .table.stack-on-mobile tbody td {
    display: grid;
    grid-template-columns: minmax(110px, 42%) minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    border: 0;
    padding: 8px 0;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .table.stack-on-mobile tbody th::before,
  .table.stack-on-mobile tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #444;
  }
  .table.stack-on-mobile tbody th {
    width: auto;
    color: inherit;
  }
  .civil-docket-table.stack-on-mobile tbody td,
  .civil-docket-table.stack-on-mobile tbody th,
  .traffic-docket-table.stack-on-mobile tbody td,
  .traffic-docket-table.stack-on-mobile tbody th {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .detail-section .table th {
    width: auto;
  }
  .docket-table .count-col,
  .docket-table .entry-text-col {
    width: auto;
    max-width: none;
  }
  .civil-docket-table .civil-case-number-col,
  .civil-docket-table .civil-case-name-col {
    width: auto;
  }
  .traffic-docket-table .traffic-case-number-col,
  .traffic-docket-table .traffic-name-col {
    width: auto;
  }
  .title-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .access-page .access-verify-slot {
    min-height: 74px;
  }
  .access-page .access-note-slot {
    min-height: 40px;
  }
  .access-page .access-actions {
    flex-direction: column;
  }
  .claim-judgment-indent {
    padding-left: 0;
  }
}
