.home-modern {
  min-height: 100svh;
  overflow: clip;
  background: radial-gradient(circle at 50% 18%,rgba(35,116,225,.045),transparent 25%),#fff;
  color: #202124;
}

.home-search-stage {
  width: min(860px,calc(100% - 32px));
  margin: 0 auto;
  padding: 118px 0 92px;
  text-align: center;
}

.home-modern:not(.home-has-query) .home-search-stage {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 120px;
}

.home-brand-lockup { margin-bottom: 34px; }

.home-brand-lockup > div {
  font-size: clamp(68px,8vw,92px);
  font-weight: 800;
  letter-spacing: -.08em;
  line-height: 1;
}

.home-brand-lockup .brand-blue { color: #2879df; }
.home-brand-lockup .brand-red { color: #e6483c; }
.home-brand-lockup .brand-yellow { color: #f2b723; }
.home-brand-lockup i {
  margin-left: .05em;
  color: #4f5662;
  font-size: .43em;
  font-style: normal;
  letter-spacing: -.06em;
}

.home-brand-image {
  display: block;
  width: auto;
  max-width: min(360px,72vw);
  max-height: 112px;
  margin: 0 auto;
  object-fit: contain;
}

.home-search-form { position: relative; }

.home-search-shell {
  min-height: 64px;
  display: grid;
  grid-template-columns: 56px minmax(0,1fr) auto auto;
  align-items: center;
  border: 1px solid #d9dee7;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(36,56,86,.08);
  transition: border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.home-search-shell:hover,
.home-search-shell:focus-within {
  border-color: #c6ceda;
  box-shadow: 0 9px 30px rgba(36,56,86,.13);
  transform: translateY(-1px);
}

.home-search-shell.suggestions-open {
  border-bottom-color: transparent;
  border-radius: 31px 31px 0 0;
  box-shadow: 0 8px 22px rgba(36,56,86,.14);
  transform: none;
}

.home-search-icon {
  display: grid;
  place-items: center;
  color: #89909b;
}

.home-search-icon .ui-icon,
.home-search-button .ui-icon {
  width: 21px;
  height: 21px;
}

.home-search-shell input {
  min-width: 0;
  height: 60px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #202124;
  font: inherit;
  font-size: 16px;
}

.home-search-shell input::placeholder { color: #9aa0a8; }

.home-clear-search {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-right: 5px;
  border-radius: 50%;
  color: #7f8792;
  font-size: 25px;
  line-height: 1;
}

.home-clear-search:hover { background: #f1f3f6; }

.home-search-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-right: 7px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #2374e1;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  transition: background .18s ease,transform .18s ease;
}

.home-search-button:hover { background: #175ec0; }
.home-search-button:active { transform: scale(.98); }

.home-search-suggestions {
  position: absolute;
  z-index: 20;
  top: 63px;
  right: 0;
  left: 0;
  overflow: hidden;
  margin: 0;
  padding: 7px 8px 12px;
  border: 1px solid #d9dee7;
  border-top: 0;
  border-radius: 0 0 28px 28px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(36,56,86,.16);
  list-style: none;
  text-align: left;
}

.home-search-suggestions::before {
  content: "";
  display: block;
  height: 1px;
  margin: 0 14px 6px;
  background: #edf0f4;
}

.home-search-suggestions button {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  align-items: center;
  gap: 3px;
  padding: 9px 12px;
  border: 0;
  border-radius: 11px;
  background: #fff;
  color: #30343a;
  cursor: pointer;
  text-align: left;
}

.home-search-suggestions button:hover,
.home-search-suggestions .active button {
  background: #f3f6fa;
}

.suggestion-search-icon {
  justify-self: center;
  color: #747b85;
  font-size: 22px;
}

.home-search-suggestions strong,
.home-search-suggestions small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-search-suggestions strong { font-size: 14px; font-weight: 600; }
.home-search-suggestions small { margin-top: 3px; color: #858b94; font-size: 11px; }

.home-search-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.home-search-actions button {
  min-height: 41px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f8f9fa;
  color: #3c4043;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.home-search-actions button:hover {
  border-color: #dadce0;
  box-shadow: 0 1px 2px rgba(60,64,67,.12);
}

.home-public-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  color: #767d88;
  font-size: 13px;
}

.home-public-count strong { color: #394150; }
.home-status-dot {
  width: 7px;
  height: 7px;
  margin-right: 2px;
  border-radius: 50%;
  background: #29a66f;
  box-shadow: 0 0 0 4px rgba(41,166,111,.11);
}
.home-count-separator { margin: 0 2px; color: #c0c4ca; }

.home-advanced-filters { margin-top: 20px; }
.home-advanced-filters summary {
  width: max-content;
  margin: 0 auto;
  padding: 8px 14px;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #f9fafb;
  color: #616875;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}
.home-advanced-filters summary::-webkit-details-marker { display: none; }
.home-advanced-filters summary::after { content: "  +"; color: #2374e1; }
.home-advanced-filters[open] summary::after { content: "  −"; }
.home-advanced-filters summary:hover { border-color: #c9d8ed; color: #2374e1; }

.home-filter-row {
  display: grid;
  grid-template-columns: repeat(3,minmax(150px,1fr)) auto;
  align-items: end;
  gap: 10px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #e5e9ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(31,48,74,.07);
  text-align: left;
}
.home-filter-row label > span {
  display: block;
  margin-bottom: 6px;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
}
.home-filter-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.home-filter-actions a {
  color: #2374e1;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.home-has-query .home-search-stage {
  padding: 38px 0 26px;
}
.home-has-query .home-brand-lockup > div {
  font-size: 52px;
  letter-spacing: -.07em;
}
.home-has-query .home-brand-lockup { margin-bottom: 22px; }

.home-library-section {
  width: min(1180px,calc(100% - clamp(32px,7vw,112px)));
  padding: 8px 0 80px;
}

.home-results-head {
  padding: 20px 8px 18px;
  border-bottom: 1px solid #eef0f3;
}
.home-result-eyebrow {
  color: #2374e1;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}
.home-results-head h1 {
  margin: 5px 0 4px;
  color: #303640;
  font-size: 24px;
  letter-spacing: -.025em;
}
.home-results-head p {
  margin: 0;
  color: #7b818c;
  font-size: 12px;
}

.home-result-list {
  display: grid;
  gap: clamp(26px,3vw,38px);
  margin-top: 22px;
}

.home-result-list .doc-card {
  min-width: 0;
  display: block;
  padding: clamp(25px,3vw,36px);
  border: 1px solid #e5e8ed;
  border-radius: 18px;
  background: #fff;
  transition: border-color .18s ease,box-shadow .18s ease;
}
.home-result-list .doc-card:hover {
  border-color: #e5e9ef;
  box-shadow: 0 8px 24px rgba(31,48,74,.07);
}

.home-result-topline {
  min-width: 0;
  display: grid;
  grid-template-columns: 35px minmax(0,1fr);
  align-items: center;
  gap: 11px;
}

.home-result-source-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #edf4ff;
  color: #2374e1;
  font-size: 10px;
  font-weight: 900;
}
.home-result-source-body {
  min-width: 0;
}
.home-result-source-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.home-result-source-heading > strong {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: #4a515d;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-result-source-body > small {
  display: block;
  margin-top: 2px;
  color: #8a9099;
  font-size: 10px;
}

.home-result-title {
  display: block;
  margin: 13px 0 6px;
  color: #175fc0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}
.home-result-title:hover { text-decoration: underline; }
.home-result-list .citation {
  margin: 0;
  color: #515966;
  font-size: 13px;
  line-height: 1.65;
}
.home-result-list .doc-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  margin: 0;
}
.home-result-list .doc-actions i { width: 1px; height: 13px; background: #dfe3e8; }
.home-result-list .doc-actions button,
.home-result-list .doc-actions a {
  padding: 0;
  border: 0;
  background: transparent;
  color: #687180;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.home-result-list .doc-actions button:hover,
.home-result-list .doc-actions a:hover { color: #2374e1; }

.home-empty-state {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 220px;
  border: 1px dashed #dfe4eb;
  border-radius: 18px;
  background: #fafbfc;
}
.home-empty-state .ui-icon { width: 30px; color: #7c8795; }
.home-empty-state strong { color: #394150; }
.home-empty-state span { color: #7d8590; font-size: 12px; }
.home-empty-state .btn { margin-top: 8px; }

.home-library-section .pagination { margin-top: 30px; }

@media (max-width: 820px) {
  .home-filter-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .home-search-stage { padding: 52px 0 64px; }
  .home-modern:not(.home-has-query) .home-search-stage { padding-top: 56px; padding-bottom: 96px; }
  .home-brand-lockup > div { font-size: 66px; }
  .home-search-shell {
    min-height: 58px;
    grid-template-columns: 48px minmax(0,1fr) auto auto;
  }
  .home-search-shell input { height: 54px; font-size: 14px; }
  .home-search-button { min-width: 45px; min-height: 45px; padding: 0 12px; }
  .home-search-button span { display: none; }
  .home-search-suggestions { top: 57px; }
  .home-public-count { flex-wrap: wrap; row-gap: 4px; }
  .home-filter-row { grid-template-columns: 1fr; }
  .home-filter-actions { justify-content: center; }
  .home-filter-actions .btn { flex: 1; }
  .home-result-list { gap: 24px; }
  .home-result-list .doc-card { padding: 21px 18px 24px; }
  .home-result-source-heading { gap: 9px; }
}

@media (max-width: 430px) {
  .home-search-stage,
  .home-library-section { width: calc(100% - 24px); }
  .home-search-icon { display: none; }
  .home-search-shell {
    grid-template-columns: minmax(0,1fr) auto auto;
    padding-left: 17px;
  }
  .home-search-actions button { padding-inline: 13px; }
  .home-result-topline { grid-template-columns: 32px minmax(0,1fr); gap: 9px; }
  .home-result-source-mark { width: 32px; height: 32px; }
  .home-result-source-body {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    column-gap: 12px;
  }
  .home-result-source-heading { display: contents; }
  .home-result-source-heading > strong {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
  }
  .home-result-source-body > small {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .home-result-list .doc-actions {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    gap: 8px;
    margin-top: 4px;
    white-space: nowrap;
  }
  .home-result-list .doc-actions button,
  .home-result-list .doc-actions a { font-size: 10.5px; }
  .home-result-title { margin-top: 16px; font-size: 17px; }
}

@media (max-width: 360px) {
  .home-result-source-body { column-gap: 8px; }
  .home-result-list .doc-actions { width: auto; gap: 6px; }
  .home-result-list .doc-actions button,
  .home-result-list .doc-actions a { font-size: 10px; }
}
