.tdd-vb-page {
  background: #f5f7fa;
  padding: 36px 0 56px;
  color: #26354a;
}
.tdd-vb-container {
  width: min(1250px, calc(100% - 32px));
  margin: 0 auto;
}
.tdd-vb-heading {
  margin-bottom: 24px;
}
.tdd-vb-heading h1 {
  color: #153992;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.4;
  margin: 0;
}
.tdd-vb-eyebrow {
  color: #526b88;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
}
.tdd-vb-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 24px;
}
.tdd-vb-document {
  background: #fff;
  border: 1px solid #dce3ec;
  border-radius: 10px;
  padding: 32px;
}
.tdd-vb-content {
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.tdd-vb-content img {
  max-width: 100%;
  height: auto;
}
.tdd-vb-details {
  border-top: 1px solid #dce3ec;
  margin-top: 28px;
  padding-top: 24px;
}
.tdd-vb-details h2,
.tdd-vb-details h3 {
  color: #153992;
}
.tdd-vb-details dl {
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
  margin: 20px 0;
}
.tdd-vb-details dt,
.tdd-vb-details dd {
  border-bottom: 1px solid #e6ebf1;
  margin: 0;
  padding: 12px;
}
.tdd-vb-details dt {
  background: #f5f7fa;
}
.tdd-vb-table-scroll {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #dce3ec;
  border-radius: 10px;
}
.tdd-vb-list table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}
.tdd-vb-list th,
.tdd-vb-list td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e6ebf1;
  font-size: 15px;
  letter-spacing: normal;
}
.tdd-vb-list th {
  color: #fff;
  background: #153992;
  text-transform: none;
  white-space: nowrap;
}
.tdd-vb-list td:first-child {
  width: 20%;
  min-width: 130px;
}
.tdd-vb-list td:last-child {
  width: 18%;
  white-space: nowrap;
}
.tdd-vb-list td:nth-child(2) {
  min-width: 240px;
}
.tdd-vb-list tr:last-child td {
  border-bottom: 0;
}
.tdd-vb-list tbody tr:hover {
  background: #f5f8fc;
}
.tdd-vb-list a,
.tdd-vb-page a {
  color: #153992;
}
.tdd-vb-list a:hover,
.tdd-vb-page a:hover {
  text-decoration: underline;
}
.tdd-vb-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.tdd-vb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid #dce3ec;
  border-radius: 5px;
}
.tdd-vb-pagination .current {
  background: #153992;
  color: #fff;
}
.tdd-vb-back {
  display: inline-block;
  margin-top: 24px;
  font-weight: 600;
}
.tdd-vb-attachment {
  margin: 20px 0;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  overflow: hidden;
}
.tdd-vb-attachment__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px;
  background: #f5f7fa;
}
.tdd-vb-attachment__header h4 {
  flex: 1 1 240px;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.tdd-vb-attachment__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.tdd-vb-page a.tdd-vb-download {
  display: inline-flex;
  padding: 9px 18px;
  border-radius: 5px;
  background: #153992;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.tdd-vb-page a.tdd-vb-download:hover {
  background: #245487;
}
.tdd-vb-page a.tdd-vb-download:focus-visible {
  outline: 3px solid #d88b00;
  outline-offset: 3px;
}
.tdd-vb-pdf {
  display: block;
  width: 100%;
  height: 780px;
  height: min(80vh, 900px);
  min-height: 420px;
  border: 0;
  background: #e9edf2;
}
.tdd-vb-pdf-help {
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
  color: #526078;
}
.tdd-vb-browser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 28px;
  margin: 0;
  color: #26354a;
  line-height: 1.6;
}
.tdd-vb-results {
  min-width: 0;
}
.tdd-vb-advanced,
.tdd-vb-filters,
.tdd-vb-result-list {
  border: 1px solid #dce3ec;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.tdd-vb-advanced {
  border-color: #cbd8ee;
  border-radius: 16px;
  box-shadow: 0 8px 28px -16px rgb(21 57 146 / 35%);
  box-sizing: border-box;
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.tdd-vb-advanced:hover {
  border-color: #91a9d7;
  box-shadow: 0 12px 32px -16px rgb(21 57 146 / 45%);
}
.tdd-vb-advanced summary {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background:
    radial-gradient(ellipse at top right, #365db0 0, transparent 65%),
    linear-gradient(115deg, #102c72, #153992);
  color: #fff;
  cursor: pointer;
  list-style: none;
}
.tdd-vb-advanced summary::-webkit-details-marker {
  display: none;
}
.tdd-vb-advanced summary::marker {
  content: "";
}
.tdd-vb-browser .tdd-vb-advanced summary:focus-visible {
  outline-offset: -4px;
  border-radius: 14px;
}
.tdd-vb-advanced__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(140deg, #ffce68, #fba109);
  color: #143581;
  box-shadow: 0 4px 16px #081d4933;
  transition: transform 0.3s ease;
}
.tdd-vb-advanced summary:hover .tdd-vb-advanced__icon {
  transform: translateY(-2px) rotate(-4deg);
}
.tdd-vb-advanced__label {
  display: grid;
  gap: 5px;
}
.tdd-vb-advanced__label strong {
  color: #fff;
  font-size: 20px;
  line-height: 1.4;
}
.tdd-vb-advanced__label > span {
  color: #dce7ff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
.tdd-vb-advanced__label .tdd-vb-advanced__eyebrow {
  color: #ffd484;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.tdd-vb-advanced__label .tdd-vb-advanced__badge {
  justify-self: start;
  margin-top: 3px;
  padding: 3px 9px;
  border: 1px solid #ffffff40;
  border-radius: 20px;
  background: #ffffff12;
  color: #fff;
  font-size: 11px;
}
.tdd-vb-advanced__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #ffffff50;
  border-radius: 24px;
  background: #ffffff0d;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.tdd-vb-advanced summary:hover .tdd-vb-advanced__toggle {
  background: #ffffff20;
  border-color: #ffffff90;
}
.tdd-vb-advanced__toggle svg {
  flex-shrink: 0;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.tdd-vb-advanced__hide,
.tdd-vb-advanced[open]:not(.is-closing) .tdd-vb-advanced__show {
  display: none;
}
.tdd-vb-advanced[open]:not(.is-closing) .tdd-vb-advanced__hide {
  display: inline;
}
.tdd-vb-advanced[open]:not(.is-closing) .tdd-vb-advanced__toggle svg {
  transform: rotate(180deg);
}
.tdd-vb-advanced__body {
  padding: 24px;
  background: linear-gradient(180deg, #f5f8fe, #fff 110px);
}
.tdd-vb-advanced__intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}
.tdd-vb-advanced__step {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border: 1px solid #d8e3f5;
  border-radius: 10px;
  background: #eaf0fb;
  color: #153992;
  font-size: 12px;
  font-weight: 700;
}
.tdd-vb-advanced__intro h3 {
  margin: 0 0 4px;
  color: #17376e;
  font-size: 15px;
  line-height: 1.5;
}
.tdd-vb-search-hint {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}
.tdd-vb-advanced__fields {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 14px;
}
.tdd-vb-advanced__fields > div {
  min-width: 0;
}
.tdd-vb-advanced__fields small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
}
.tdd-vb-browser label {
  display: block;
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 600;
  color: #26354a;
}
.tdd-vb-browser input,
.tdd-vb-browser select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 44px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: none;
  color: #26354a;
  font-size: 14px;
}
.tdd-vb-browser select {
  padding-right: 26px;
}
.tdd-vb-browser input:focus,
.tdd-vb-browser select:focus {
  border-color: #153992;
  outline: 2px solid #d6e2ff;
}
.tdd-vb-advanced input {
  height: 48px;
  border-radius: 9px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.tdd-vb-advanced input:hover {
  border-color: #829bc7;
}
.tdd-vb-advanced input:focus {
  outline: 0;
  box-shadow: 0 0 0 3px #1539921a;
}
.tdd-vb-search-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e6ecf5;
}
.tdd-vb-advanced__note {
  flex: 1 1 180px;
  max-width: 270px;
  color: #64748b;
  font-size: 12px;
}
.tdd-vb-advanced__buttons {
  display: flex;
  align-items: center;
  gap: 18px;
}
.tdd-vb-advanced__reset {
  font-size: 13px;
  white-space: nowrap;
  text-underline-offset: 4px;
}
.tdd-vb-browser .tdd-vb-search-button {
  min-height: 42px;
  margin: 0;
  padding: 9px 20px;
  border: 0;
  border-radius: 5px;
  background: #153992;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.5;
  text-transform: none;
}
.tdd-vb-browser .tdd-vb-search-button:hover {
  background: #102d73;
}
.tdd-vb-advanced .tdd-vb-search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border-radius: 9px;
  box-shadow: 0 4px 12px #15399222;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.tdd-vb-advanced .tdd-vb-search-button:hover {
  box-shadow: 0 6px 16px #15399238;
}
.tdd-vb-browser a {
  color: #153992;
}
.tdd-vb-browser a:focus-visible,
.tdd-vb-browser button:focus-visible,
.tdd-vb-browser summary:focus-visible {
  outline: 3px solid #fba109;
  outline-offset: 3px;
}
.tdd-vb-results-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 28px 0 16px;
}
.tdd-vb-results-heading h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.4;
  color: #153992;
}
.tdd-vb-results-heading h2 span {
  display: inline-block;
  padding: 2px 9px;
  margin-left: 6px;
  border-radius: 20px;
  background: #e7edfa;
  font-size: 14px;
  vertical-align: middle;
}
.tdd-vb-results-heading p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}
.tdd-vb-result {
  display: flex;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid #e6ebf1;
}
.tdd-vb-result:last-child {
  border-bottom: 0;
}
.tdd-vb-result:hover {
  background: #fafbfe;
}
.tdd-vb-result__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 54px;
  flex: 0 0 48px;
  border-radius: 7px;
  background: #eef3fc;
  color: #153992;
}
.tdd-vb-result__body {
  min-width: 0;
  flex: 1;
}
.tdd-vb-result__type {
  margin: 0 0 6px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.tdd-vb-result h3 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.tdd-vb-result__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin: 0 0 13px;
  font-size: 13px;
}
.tdd-vb-result__meta > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tdd-vb-result__meta dt {
  color: #64748b;
  font-weight: 400;
}
.tdd-vb-result__meta dd {
  margin: 0;
  color: #334155;
  overflow-wrap: anywhere;
}
.tdd-vb-result__meta .tdd-vb-result__agency {
  flex-basis: 100%;
}
.tdd-vb-result__link {
  font-size: 13px;
  font-weight: 600;
}
.tdd-vb-filters {
  --tdd-vb-filter-top: 16px;
  position: sticky;
  top: calc(var(--tdd-vb-filter-top) + var(--wp-admin--admin-bar--height, 0px));
  max-height: calc(
    100vh - var(--tdd-vb-filter-top) - 16px -
      var(--wp-admin--admin-bar--height, 0px)
  );
  overflow-y: auto;
}
/* Only reserve space for the 88px menu when the theme actually fixes it. */
body:has(#header .header-wrapper.stuck) .tdd-vb-filters {
  --tdd-vb-filter-top: 96px;
}
.tdd-vb-filters__heading {
  padding: 20px;
  border-top: 4px solid #153992;
  border-bottom: 1px solid #e6ebf1;
}
.tdd-vb-filters__heading h2 {
  margin: 0 0 6px;
  color: #153992;
  font-size: 20px;
}
.tdd-vb-filters__heading p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}
.tdd-vb-filters__body {
  padding: 20px;
}
.tdd-vb-filters__body h3 {
  margin: 6px 0 10px;
  padding-top: 16px;
  border-top: 1px solid #e6ebf1;
  color: #153992;
  font-size: 16px;
}
.tdd-vb-filters input,
.tdd-vb-filters select {
  margin-bottom: 18px;
}
.tdd-vb-filters .tdd-vb-search-button {
  width: 100%;
  margin-top: 4px;
}
.tdd-vb-filter-reset {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
}
.tdd-vb-empty {
  padding: 40px 24px;
  text-align: center;
}
.tdd-vb-empty h3 {
  color: #153992;
}
.tdd-vb-empty p {
  color: #64748b;
}
.tdd-vb-search-error {
  padding: 12px 16px;
  color: #922b21;
  background: #fff0ee;
  border-radius: 5px;
}
@media (max-width: 1000px) {
  .tdd-vb-browser {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 20px;
  }
  .tdd-vb-advanced__fields {
    grid-template-columns: 1fr 1fr;
  }
  .tdd-vb-advanced__fields > div:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 767px) {
  .tdd-vb-browser {
    grid-template-columns: minmax(0, 1fr);
  }
  .tdd-vb-filters {
    grid-row: 1;
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  .tdd-vb-result {
    padding: 20px 16px;
    gap: 12px;
  }
  .tdd-vb-result__icon {
    width: 36px;
    height: 44px;
    flex-basis: 36px;
  }
  .tdd-vb-result h3 {
    font-size: 16px;
  }
  .tdd-vb-advanced__body {
    padding: 16px;
  }
}
@media (max-width: 600px) {
  .tdd-vb-advanced summary {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 16px;
  }
  .tdd-vb-advanced__icon {
    width: 40px;
    height: 40px;
  }
  .tdd-vb-advanced__label strong {
    font-size: 16px;
  }
  .tdd-vb-advanced__toggle {
    grid-column: 2;
    justify-self: start;
  }
  .tdd-vb-advanced__label > span {
    font-size: 12px;
  }
  .tdd-vb-advanced__note {
    flex-basis: 100%;
    max-width: none;
  }
  .tdd-vb-advanced__buttons {
    width: 100%;
    justify-content: space-between;
  }
  .tdd-vb-advanced input {
    font-size: 16px;
  }
  .tdd-vb-page {
    padding: 24px 0 36px;
  }
  .tdd-vb-document {
    padding: 20px 16px;
  }
  .tdd-vb-details dl {
    grid-template-columns: 1fr;
  }
  .tdd-vb-details dt {
    padding-bottom: 6px;
    border-bottom: 0;
  }
  .tdd-vb-details dd {
    padding-top: 6px;
  }
  .tdd-vb-list th,
  .tdd-vb-list td {
    padding: 12px;
  }
  .tdd-vb-pdf {
    height: 65vh;
    min-height: 360px;
  }
}
@media (max-width: 380px) {
  .tdd-vb-advanced__fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tdd-vb-advanced,
  .tdd-vb-advanced * {
    transition: none !important;
  }
}
