/* Footer refinement for /v2temp. Keep the original content and wordmark. */
@layer hcPolish {
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 56px) 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
  }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-rf-container {
    display: contents !important;
  }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-rf-primary {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 28px clamp(24px, 3vw, 44px) !important;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    order: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: start !important;
  }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-rf-brand-copy {
    grid-column: 1 / -1 !important;
    margin: 0 !important;
  }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-rf-brand-copy p {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
  }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-rf-nav {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-footer-disclosure {
    width: 100%;
    margin: 0;
    border: 0;
    padding: 0;
    background: none;
  }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-footer-disclosure > summary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #DEE5EB !important;
    background: none !important;
    color: #354D63 !important;
    font: 400 16px/1.5 "HighCourt Inter", Inter, "Segoe UI", sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-align: left !important;
    list-style: none !important;
    cursor: pointer;
  }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-footer-disclosure > summary::-webkit-details-marker {
    display: none;
  }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-footer-disclosure > summary > span {
    color: inherit !important;
    font: inherit !important;
    letter-spacing: inherit !important;
  }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-footer-sign {
    display: inline-block;
    flex: 0 0 20px;
    font: inherit !important;
    text-align: center;
    color: #566A7D !important;
  }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-footer-sign::before { content: "+"; }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-footer-disclosure[open] .hc-footer-sign::before { content: "−"; }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-footer-disclosure:not([open]) > ul {
    display: none !important;
  }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-footer-disclosure[open] > ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 16px 0 0 !important;
    list-style: none !important;
  }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-rf-nav li {
    margin: 0 !important;
    padding: 0 !important;
  }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-rf-nav a {
    display: inline-block !important;
    min-height: 32px;
    padding: 4px 0 !important;
    font: 400 16px/1.5 "HighCourt Inter", Inter, "Segoe UI", sans-serif !important;
    white-space: normal !important;
  }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory :is(summary, a, button):focus-visible {
    outline: 2px solid #315D80 !important;
    outline-offset: 4px !important;
  }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-rf-wordmark {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    order: 2 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 100px 0 0 !important;
  }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-bottom-panels {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    order: 5 !important;
  }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-bottom-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 8px 24px !important;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    order: 4 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 16px 0 0 !important;
  }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-bottom-bar :is(.hc-rf-copyright, .hc-rf-meta-center) {
    grid-area: auto !important;
    align-self: baseline !important;
    justify-self: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
  }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-bottom-bar :is(.hc-rf-copyright, p, span, button, a) {
    font-family: "HighCourt Inter", Inter, "Segoe UI", sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
  }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-rf-copyright { flex: 1 1 460px; }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-rf-copyright p { margin: 0 !important; }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-bottom-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    justify-content: flex-end !important;
    gap: 8px 24px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory :is(.hc-bottom-toggle, .hc-resource-directory-link) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    font-family: "HighCourt Inter", Inter, "Segoe UI", sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    white-space: normal !important;
  }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-resource-directory-link .hc-rf-arrow {
    margin: 0 !important;
    transform: none !important;
  }
  html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-bottom-panel .hc-rf-detail p {
    font: 400 16px/1.7 "HighCourt Inter", Inter, "Segoe UI", sans-serif !important;
  }
  @media (max-width: 1000px) and (min-width: 769px) {
    html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-rf-primary {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      row-gap: 20px !important;
    }
  }
  @media (max-width: 768px) {
    html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory :is(.hc-rf-container, .hc-rf-primary, .hc-rf-nav, .hc-footer-disclosure) {
      width: 100% !important;
      max-width: none !important;
      min-width: 0 !important;
      box-sizing: border-box !important;
    }
    html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-rf-wordmark {
      order: 6 !important;
      margin: 0 !important;
      padding: 28px 0 0 !important;
    }
    html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory {
      padding: 32px 20px 0 !important;
      text-align: center !important;
    }
    html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-rf-primary {
      grid-template-columns: minmax(0, 1fr) !important;
      gap: 0 !important;
      justify-items: center !important;
      text-align: center !important;
    }
    html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-rf-brand-copy {
      width: min(100%, 36ch) !important;
      margin: 0 auto 24px !important;
    }
    html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-rf-brand-copy p {
      margin-inline: auto !important;
      text-align: center !important;
    }
    html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-rf-nav {
      width: 100% !important;
      text-align: center !important;
    }
    html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-footer-disclosure > summary {
      position: relative;
      justify-content: center !important;
      padding: 10px 32px !important;
      text-align: center !important;
    }
    html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-footer-sign {
      position: absolute;
      right: 0;
      width: 20px;
    }
    html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-footer-disclosure[open] > ul {
      padding: 12px 0 20px !important;
    }
    html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-rf-nav a {
      min-height: 40px;
      padding-block: 8px !important;
    }
    html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-bottom-bar {
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 16px !important;
      padding: 24px 0 0 !important;
      text-align: center !important;
    }
    html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-bottom-bar :is(.hc-rf-copyright, .hc-rf-meta-center, .hc-bottom-actions) {
      flex: 0 1 auto !important;
      width: 100% !important;
      align-self: center !important;
      justify-self: center !important;
      text-align: center !important;
    }
    html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory :is(.hc-rf-company, .hc-rf-address, .hc-rf-city) {
      display: block !important;
    }
    html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory :is(.hc-rf-address-sep, .hc-rf-city-sep) {
      display: none !important;
    }
    html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-bottom-actions {
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 4px !important;
    }
    html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-bottom-panel,
    html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-bottom-panel .hc-rf-detail,
    html body.hc-polished footer#hc-footer#hc-footer.hc-footer-directory .hc-bottom-panel .hc-rf-detail p {
      text-align: center !important;
    }
  }
}

/* Typography and the new evaluation record only. Original section geometry stays. */
@layer hcPolish {
  html body.hc-polished :is(.hp-time-metrics,.hcf-critic-score,.hcp-comparison,.hc-review-record) {
    font-variant-numeric: tabular-nums !important;
  }
  html body.hc-polished #brief#brief #briefingForm label > span {
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
  }
  html body.hc-polished #brief#brief .hc-consent :is(summary,div,p,a,span) {
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
  }
  html body.hc-polished #evaluation#evaluation .hc-review-record {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #354D63 !important;
  }
  html body.hc-polished #evaluation#evaluation .hc-review-record h3 {
    margin: 0 0 8px !important;
    font: 400 24px/1.2 Newsreader,Georgia,serif !important;
    color: #293F53 !important;
  }
  html body.hc-polished #evaluation#evaluation .hc-review-record :is(a,summary,p,li,dt,dd,span) {
    font-family: "HighCourt Inter",Inter,Arial,sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
    color: #354D63 !important;
    letter-spacing: 0 !important;
  }
  html body.hc-polished #evaluation#evaluation .hc-review-record a {
    color: #315D80 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
  }
  html body.hc-polished #evaluation#evaluation .hc-review-details {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  html body.hc-polished #evaluation#evaluation .hc-review-summary {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 16px 24px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    cursor: pointer;
  }
  html body.hc-polished #evaluation#evaluation .hc-review-summary::-webkit-details-marker { display: none; }
  html body.hc-polished #evaluation#evaluation .hc-mkli-inline {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    min-width: 0 !important;
    gap: 6px 24px !important;
  }
  html body.hc-polished #evaluation#evaluation .hc-mkli-inline .hc-mkli-score {
    font: 400 28px/1.1 Newsreader,Georgia,serif !important;
    color: #293F53 !important;
    white-space: nowrap !important;
  }
  html body.hc-polished #evaluation#evaluation .hc-mkli-name,
  html body.hc-polished #evaluation#evaluation .hc-mkli-outcome { white-space: nowrap !important; }
  html body.hc-polished #evaluation#evaluation .hc-review-summary .hc-review-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    font-size: 14px !important;
  }
  html body.hc-polished #evaluation#evaluation .hc-review-toggle::after { content: '+'; }
  html body.hc-polished #evaluation#evaluation .hc-review-details[open] .hc-review-toggle::after { content: '−'; }
  html body.hc-polished #evaluation#evaluation .hc-review-body {
    margin-top: 16px !important;
    padding-top: 16px !important;
    border-top: 1px solid #DEE5EB !important;
  }
  html body.hc-polished #evaluation#evaluation .hc-review-body p { margin: 0 0 8px !important; }
  html body.hc-polished #evaluation#evaluation .hc-review-grid {
    display: grid !important;
    grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) !important;
    gap: 24px 48px !important;
    margin-top: 24px !important;
  }
  html body.hc-polished #evaluation#evaluation .hc-review-grid h4 {
    margin: 0 0 10px !important;
    font: 400 20px/1.3 Newsreader,Georgia,serif !important;
    color: #293F53 !important;
  }
  html body.hc-polished #evaluation#evaluation .hc-review-grid :is(dl,dt,dd) { margin: 0 !important; }
  html body.hc-polished #evaluation#evaluation .hc-review-grid dt { margin-top: 12px !important; color: #566A7D !important; }
  html body.hc-polished #evaluation#evaluation .hc-review-grid dt:first-child { margin-top: 0 !important; }
  html body.hc-polished #evaluation#evaluation .hc-review-links {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 4px 24px !important;
    margin-top: 6px !important;
  }
  html body.hc-polished #evaluation#evaluation .hc-review-record .hc-review-links :is(a,span) {
    font-size: 13px !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
  }
  html body.hc-polished .hc-review-record :is(a,summary):focus-visible {
    outline: 2px solid #315D80 !important;
    outline-offset: 4px !important;
  }
  @media (max-width: 700px) {
    html body.hc-polished #evaluation#evaluation .hc-review-summary {
      align-items: flex-start !important;
      gap: 12px !important;
    }
    html body.hc-polished #evaluation#evaluation .hc-mkli-inline { min-width: 0 !important; gap: 4px 16px !important; }
    html body.hc-polished #evaluation#evaluation .hc-mkli-name { flex-basis: 100% !important; }
    html body.hc-polished #evaluation#evaluation .hc-mkli-name,
    html body.hc-polished #evaluation#evaluation .hc-mkli-outcome { white-space: normal !important; }
    html body.hc-polished #evaluation#evaluation .hc-review-grid { grid-template-columns: minmax(0,1fr) !important; }
  }
}

/* User-supplied wording in the existing HIGHCOURT design. */
@layer hcPolish {
  html body.hc-polished #top#top#top .hc-supplied-hero {
    gap: 0 !important;
    max-width: 1500px !important;
    margin-inline: auto !important;
  }
  html body.hc-polished #top#top#top .hc-supplied-hero > p {
    font-family: "HighCourt Inter",Inter,Arial,sans-serif !important;
    font-weight: 400 !important;
    font-size: 17px !important;
    line-height: 1.65 !important;
    letter-spacing: 0 !important;
    max-width: 76ch !important;
    margin: 18px 0 0 !important;
    color: inherit !important;
  }
  html body.hc-polished #top#top#top .hc-supplied-hero > .hc-supplied-kicker {
    font-size: 14px !important;
    letter-spacing: .1em !important;
    margin: 0 0 22px !important;
  }
  html body.hc-polished #top#top#top .hc-supplied-hero > h1 {
    margin: 0 !important;
    max-width: 100% !important;
    font: 400 clamp(48px,5.8vw,84px)/1.02 Newsreader,Georgia,serif !important;
    letter-spacing: -.035em !important;
    color: inherit !important;
    text-wrap: balance !important;
  }
  html body.hc-polished #top#top#top .hc-supplied-hero > .hc-supplied-lead {
    font-size: 19px !important;
    max-width: 65ch !important;
    margin-top: 26px !important;
  }
  html body.hc-polished #top#top#top .hc-supplied-hero > .hc-supplied-emphasis {
    font-size: 19px !important;
    margin-top: 24px !important;
  }
  html body.hc-polished #top#top#top .hc-supplied-hero > .hc-supplied-control {
    margin-top: 12px !important;
  }
  html body.hc-polished #top#top#top .hc-supplied-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 18px !important;
    margin-top: clamp(26px,4vh,44px) !important;
    padding-bottom: 130px !important;
    text-shadow: none !important;
  }
  /* The original pinned controller already reduces its lower gap when the
     top padding changes. Keep the copy's own padding there to avoid a double cut. */
  html.hp-hero-pinned body.hc-polished #top#top#top .hc-supplied-actions {
    padding-bottom: 150px !important;
  }
  html body.hc-polished #top#top#top .hc-supplied-actions a {
    font: 400 16px/1.5 "HighCourt Inter",Inter,Arial,sans-serif !important;
    letter-spacing: 0 !important;
  }
  html body.hc-polished #top#top#top .hc-supplied-primary {
    padding: 16px 28px !important;
    background: #FFFFFF !important;
    color: #293F53 !important;
    border: 1px solid #DEE5EB !important;
    border-radius: 4px !important;
  }
  html body.hc-polished #top#top#top .hc-supplied-secondary {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px 24px !important;
  }
  html body.hc-polished #top#top#top .hc-supplied-secondary a {
    color: inherit !important;
    text-decoration: underline !important;
    text-underline-offset: 5px !important;
  }
  html body.hc-polished #connected-legal-computing#connected-legal-computing {
    background: #F8FAFB !important;
    color: #354D63 !important;
    padding: clamp(60px,8vw,120px) clamp(22px,5vw,80px) !important;
  }
  html body.hc-polished .hc-connected-container {
    max-width: 1300px !important;
    margin: 0 auto !important;
  }
  html body.hc-polished .hc-connected-statement {
    max-width: 100% !important;
    margin: 0 0 28px !important;
    font: 400 28px/1.3 Newsreader,Georgia,serif !important;
    color: #293F53 !important;
    text-align: left !important;
  }
  html body.hc-polished .hc-connected-grid {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 40px !important;
  }
  html body.hc-polished .hc-connected-grid > article {
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr) !important;
    column-gap: clamp(40px,7vw,100px) !important;
    row-gap: 22px !important;
    padding: 28px 0 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-top: 1px solid #CBD6DF !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  html body.hc-polished .hc-connected-grid h2 {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    margin: 0 !important;
    font: 400 28px/1.2 Newsreader,Georgia,serif !important;
    letter-spacing: -.01em !important;
    color: #293F53 !important;
  }
  html body.hc-polished .hc-connected-grid p {
    grid-column: 2 !important;
    margin: 0 !important;
    font: 400 18px/1.75 "HighCourt Inter",Inter,Arial,sans-serif !important;
    color: #354D63 !important;
  }
  html body.hc-polished .hc-connected-grid p:last-child { margin-bottom: 0 !important; }
  html body.hc-polished .hc-connected-closing {
    margin: 56px 0 0 !important;
    font: 400 48px/1.3 Newsreader,Georgia,serif !important;
    color: #293F53 !important;
    text-align: center !important;
  }
  html body.hc-polished #hcp-platform#hcp-platform .hc-evaluation-question {
    margin: 30px 0 24px !important;
    font: 400 clamp(25px,2.5vw,34px)/1.25 Newsreader,Georgia,serif !important;
    color: #293F53 !important;
  }
  html body.hc-polished #hcp-platform#hcp-platform .hc-evaluation-scroll {
    width: 100% !important;
    overflow-x: auto !important;
    border: 1px solid #CBD6DF !important;
    border-radius: 4px !important;
  }
  html body.hc-polished #hcp-platform#hcp-platform .hc-evaluation-table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #FFFFFF !important;
  }
  html body.hc-polished #hcp-platform#hcp-platform .hc-evaluation-table :is(th,td) {
    padding: 22px 24px !important;
    font: 400 16px/1.65 "HighCourt Inter",Inter,Arial,sans-serif !important;
    color: #354D63 !important;
    text-align: left !important;
    vertical-align: top !important;
    border-bottom: 1px solid #DEE5EB !important;
  }
  html body.hc-polished #hcp-platform#hcp-platform .hc-evaluation-table thead th {
    background: #F0F5F9 !important;
    color: #293F53 !important;
  }
  html body.hc-polished #hcp-platform#hcp-platform .hc-evaluation-table th { width: 40% !important; }
  html body.hc-polished #hcp-platform#hcp-platform .hc-evaluation-table tr:last-child > :is(th,td) { border-bottom: 0 !important; }
  @media (max-width: 900px) {
    html body.hc-polished .hc-connected-statement { font-size: 24px !important; }
    html body.hc-polished .hc-connected-grid { gap: 40px !important; }
    html body.hc-polished .hc-connected-grid > article { display: block !important; padding: 28px 0 0 !important; }
    html body.hc-polished .hc-connected-grid h2 { margin: 0 0 16px !important; font-size: 24px !important; }
    html body.hc-polished .hc-connected-grid p { margin: 0 0 20px !important; font-size: 16px !important; }
  }
  @media (max-width: 600px) {
    html body.hc-polished #top#top#top .hc-supplied-hero > p { font-size: 16px !important; line-height: 1.6 !important; }
    html body.hc-polished #top#top#top .hc-supplied-hero > .hc-supplied-kicker { font-size: 14px !important; }
    html body.hc-polished .hc-connected-statement { text-align: left !important; }
    html body.hc-polished #hcp-platform#hcp-platform .hc-evaluation-table :is(th,td) { padding: 18px 14px !important; font-size: 14px !important; }
  }
}

/* Restore the roomy hero opening and let main sections use the available page. */
@layer hcPolish {
  html body.hc-polished {
    --hc-section-gutter: clamp(20px, 3.5vw, 64px);
  }
  html body.hc-polished #top#top#top {
    padding-top: calc(var(--hp-hero-nav-bottom, 88px) + clamp(200px, 23svh, 240px) - 20px) !important;
  }
  html body.hc-polished :is(
    #connected-legal-computing#connected-legal-computing,
    #position#position, #ontology#ontology, #verify#verify,
    #evaluation#evaluation, #enterprise#enterprise,
    #legal-ontology#legal-ontology, #hc-evidence#hc-evidence,
    #hcp-platform#hcp-platform, #case-research#case-research,
    #word-plugin#word-plugin, #built#built, #owned#owned,
    #research-faq#research-faq, #brief#brief
  ) {
    padding-inline: var(--hc-section-gutter) !important;
  }
  html body.hc-polished :is(
    #connected-legal-computing#connected-legal-computing > .hc-connected-container,
    #position#position > .hc-position-copy,
    #ontology#ontology > div,
    #verify#verify > .hcf-container,
    #evaluation#evaluation > .hc-review-record,
    #enterprise#enterprise > .hca-container,
    #legal-ontology#legal-ontology > .hcg-container,
    #hc-evidence#hc-evidence > .hcx-wrap,
    #hcp-platform#hcp-platform > .hcp-shell,
    #case-research#case-research > .hcg-container,
    #word-plugin#word-plugin > .hcr-wrap,
    #built#built > .hct-wrap,
    #owned#owned > .hco-container,
    #research-faq#research-faq > .hcr-faq-wrap,
    #brief#brief > div:has(> div > .hc-brief-form-card)
  ) {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
    box-sizing: border-box !important;
  }
  html body.hc-polished .hc-matter-story.hc-matter-story {
    padding-inline: 0 !important;
  }
  html body.hc-polished .hc-matter-story.hc-matter-story > .hms-wrap {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding-inline: var(--hc-section-gutter) !important;
    box-sizing: border-box !important;
  }
  html body.hc-polished #ontology#ontology .hp-citation-editorial,
  html body.hc-polished #ontology#ontology #hc-motion,
  html body.hc-polished #ontology#ontology .hp-motion-caption.hp-motion-engine-caption,
  html body.hc-polished #word-plugin#word-plugin .hcw-preview,
  html body.hc-polished #built#built .hct-main,
  html body.hc-polished #built#built .hct-footer {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    box-sizing: border-box !important;
  }
  /* Cap the large section openings without enlarging the existing compact edges. */
  html body.hc-polished :is(
    #connected-legal-computing#connected-legal-computing,
    #position#position, #case-research#case-research,
    #word-plugin#word-plugin, #research-faq#research-faq, #brief#brief
  ) {
    padding-block: 56px !important;
  }
  html body.hc-polished #ontology#ontology { padding-bottom: 56px !important; }
  html body.hc-polished #legal-ontology#legal-ontology { padding-top: 56px !important; }
  html body.hc-polished .hc-matter-story.hc-matter-story > .hms-wrap {
    padding-block: 56px !important;
  }
  @media (min-width: 801px) {
    html body.hc-polished #owned#owned {
      padding-block: clamp(48px, 5.6vw, 56px) !important;
    }
  }
  html body.hc-polished #evaluation#evaluation {
    padding-block: 24px !important;
    background: #F8FAFB !important;
    color: #354D63 !important;
  }
  html body.hc-polished #evaluation#evaluation > .hc-review-record {
    margin-block: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  @media (max-width: 760px) {
    html body.hc-polished #top#top#top {
      padding-top: calc(var(--hp-hero-nav-bottom, 74px) + clamp(150px, 19svh, 170px) - 20px) !important;
    }
    html body.hc-polished :is(
      #connected-legal-computing#connected-legal-computing,
      #position#position, #verify#verify, #case-research#case-research,
      #word-plugin#word-plugin, #research-faq#research-faq, #brief#brief
    ) {
      padding-block: 36px !important;
    }
    html body.hc-polished #ontology#ontology { padding-bottom: 36px !important; }
    html body.hc-polished #legal-ontology#legal-ontology,
    html body.hc-polished #enterprise#enterprise,
    html body.hc-polished #built#built { padding-top: 36px !important; }
    html body.hc-polished #built#built { padding-bottom: 36px !important; }
    html body.hc-polished #owned#owned { padding-block: 36px !important; }
    html body.hc-polished .hc-matter-story.hc-matter-story > .hms-wrap {
      padding-block: 36px !important;
    }
  }
  @media (max-width: 540px) {
    html body.hc-polished #built#built { padding-bottom: 28px !important; }
    html body.hc-polished #owned#owned { padding-block: 34px !important; }
  }
}
