.rhc {
  --rhc-ink: #162337;
  --rhc-muted: #4d5e73;
  --rhc-blue: #254ea0;
  --rhc-line: #d9e2ee;
  --rhc-bg: #eef3f9;
  color: var(--rhc-ink);
}
.rhc[hidden], .rhc [hidden] { display: none !important; }
.rhc-wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.rhc-hero {
  color: #fff; padding: clamp(36px, 5.7vw, 78px) 0;
  background: radial-gradient(ellipse at 92% 0%, #274674 0%, transparent 56%),
    radial-gradient(ellipse at 94% 104%, #62442f 0%, transparent 32%), #15243a;
  border-bottom: 3px solid #d69b67;
}
.rhc-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .56fr); gap: 30px; align-items: end; }
.rhc-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .75rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.rhc-kicker > span { width: 24px; height: 2px; background: #d99e69; }
.rhc-hero .rhc-kicker { color: #f3bf94; }
.rhc-hero h1 { font: 700 clamp(2.35rem, 5.8vw, 4.9rem)/1.02 'Playfair Display', Georgia, serif; margin: .19em 0 .28em; color: inherit; letter-spacing: -.038em; }
.rhc-hero p { color: #dbe6f5; max-width: 69ch; line-height: 1.55; margin: 0; font-size: clamp(1rem, 1.7vw, 1.16rem); }
.rhc-hero-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rhc-hero-counts > * { display: grid; place-content: center; gap: .2rem; min-height: 106px; border: 1px solid #ffffff39; border-radius: 15px; background: #ffffff0b; padding: 12px; color: #fff; text-align: center; }
.rhc-hero-counts strong { font: 700 2.8rem/1 'Playfair Display', Georgia, serif; }
.rhc-hero-counts span { color: #e5ecfa; font-size: .85rem; }
.rhc-hero-counts a:hover, .rhc-hero-counts a:focus-visible { background: #ffffff1b; }
.rhc-hero-counts i { color: #ffc38d; font-style: normal; padding-left: 3px; }
.rhc-crumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1rem; color: #dce5f5; font-size: .82rem; }
.rhc-crumb a { font-weight: 700; text-decoration: underline; text-underline-offset: .18em; color: #ffcc9f; }
.infaz-hero .rhc-crumb, .infaz-hero .rhc-crumb a { color: #21417a; }
.rhc-catalog { padding: 26px 0 66px; }
.rhc-search-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 13px 17px; background: #fff; border: 1px solid var(--rhc-line); border-radius: 14px; }
.rhc-search-bar label, .rhc-field label { color: var(--rhc-ink); font-weight: 750; font-size: .88rem; }
.rhc-search-bar input, .rhc-field input, .rhc-field select {
  width: 100%; min-width: 0; min-height: 43px; color: var(--rhc-ink); background: #f8fafd; border: 1px solid #a9b9cd; border-radius: 8px;
  padding: 9px 12px; font: inherit; font-size: .94rem;
}
.rhc-search-bar p { margin: 0; white-space: nowrap; font-size: .82rem; color: var(--rhc-muted); }
.rhc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 28px; }
.rhc-filters button { border-radius: 999px; color: #273b56; border: 1px solid #b8c6d9; background: #fff; padding: 7px 13px; font-size: .83rem; font-weight: 700; cursor: pointer; }
.rhc-filters button[aria-pressed=true], .rhc-filters button:hover { background: var(--rhc-blue); border-color: var(--rhc-blue); color: #fff; }
.rhc :focus-visible { outline: 3px solid #c1782d; outline-offset: 3px; }
.rhc-category, .rhc-guides { margin: 25px 0 37px; scroll-margin-top: 155px; }
.rhc .rhc-category-title, .rhc .rhc-panel > header {
  display: flex; position: static; inset: auto; width: auto; min-height: 0; height: auto;
  justify-content: flex-start; align-items: center; gap: 12px; box-shadow: none; background: none; border: 0; color: var(--rhc-ink);
}
.rhc .rhc-category-title { padding: 0; margin: 0 0 12px; }
.rhc .rhc-category-title::after, .rhc .rhc-panel > header::after { display: none; }
.rhc-category-title h2, .rhc-panel h2, .rhc-content h2 { margin: 0; font: 700 1.55rem/1.18 'Playfair Display', Georgia, serif; color: var(--rhc-ink); }
.rhc-symbol { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; background: #dfe8f7; color: #21488b; font-weight: 800; }
.rhc-tally { font-size: .82rem; color: var(--rhc-muted); }
.rhc-card-grid, .rhc-guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.rhc-tool-card, .rhc-guide-card { display: flex; flex-direction: column; min-width: 0; padding: 17px 18px; background: #fff; border: 1px solid var(--rhc-line); border-radius: 13px; color: var(--rhc-ink); text-decoration: none; }
.rhc-tool-card:hover, .rhc-guide-card:hover { border-color: #809fce; box-shadow: 0 7px 20px #274c8020; }
.rhc-tool-card h3, .rhc-guide-card strong { font-size: 1.02rem; font-weight: 780; margin: 0; line-height: 1.25; color: var(--rhc-ink); }
.rhc-tool-card p, .rhc-guide-card p { margin: 8px 0 15px; font-size: .89rem; color: var(--rhc-muted); line-height: 1.47; }
.rhc-open, .rhc-guide-card > span { margin-top: auto; color: var(--rhc-blue); font-size: .82rem; font-weight: 750; }
.rhc-open > span { display: inline-block; margin-left: .2rem; }
.rhc-workspace { display: grid; grid-template-columns: minmax(0,1.03fr) minmax(0,.97fr); gap: 20px; align-items: start; margin: 27px 0 38px; }
.rhc-panel { border: 1px solid var(--rhc-line); background: #fff; border-radius: 16px; box-shadow: 0 12px 24px -23px #21385d; min-width: 0; overflow: hidden; }
.rhc .rhc-panel > header { padding: 16px 19px; border-bottom: 1px solid var(--rhc-line); flex-wrap: wrap; }
.rhc-panel > header h2 { flex: 1; }
.rhc-form > header .rhc-official { margin: 0; font-size: .8rem; }
.rhc-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 13px; padding: 19px; }
.rhc-field { min-width: 0; }
/* Subgrid rows keep paired inputs aligned when labels wrap or examples differ. */
.rhc-fields > .rhc-field { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.rhc-fields > .rhc-field > label { grid-row: 1; align-self: end; }
.rhc-fields > .rhc-field > .rhc-example { grid-row: 2; }
.rhc-fields > .rhc-field > :is(input, select) { grid-row: 3; }
.rhc-fields > .rhc-field > p { grid-row: 4; }
.rhc-field label { display: block; margin-bottom: 6px; line-height: 1.3; }
.rhc-field input[data-rhc-automatic]:read-only { background: #edf4ef; color: #234937; border-color: #bfd4c8; font-weight: 720; }
.rhc-example { display: block; margin: -2px 0 6px; color: #475e7c; font-size: .77rem; line-height: 1.35; }
.rhc-example-button { color: var(--rhc-blue); background: #eaf1fb; border: 1px solid #c7d5e8; border-radius: 8px; padding: 7px 10px; font-size: .8rem; font-weight: 750; cursor: pointer; }
.rhc-example-button:hover { background: #dde9f9; }
.rhc-field p { margin: 6px 0 0; line-height: 1.42; color: var(--rhc-muted); font-size: .8rem; }
.rhc-advanced { border-top: 1px solid var(--rhc-line); background: #f7f9fc; }
.rhc-advanced > summary { padding: 12px 19px; color: var(--rhc-blue); cursor: pointer; font-weight: 730; font-size: .9rem; }
.rhc-actions { display: flex; padding: 15px 19px; gap: 9px; border-top: 1px solid var(--rhc-line); }
.rhc-actions button { min-height: 42px; padding: 8px 21px; background: var(--rhc-ink); border: 1px solid var(--rhc-ink); color: #fff; border-radius: 8px; font: inherit; font-size: .9rem; font-weight: 730; cursor: pointer; }
.rhc-actions button.rhc-secondary { color: var(--rhc-blue); background: #fff; border-color: #b9c7dc; }
.rhc-error { color: #9c251e; margin: 0; padding: 12px 19px; background: #fff3f2; font-size: .9rem; }
.rhc-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rhc-line); }
.rhc-tabs button { border: 0; border-bottom: 3px solid transparent; padding: 10px 8px; min-height: 43px; color: #354761; background: #f8fafd; font: inherit; font-size: .9rem; font-weight: 740; cursor: pointer; }
.rhc-tabs button[aria-selected=true] { border-bottom-color: #ce8b4c; color: var(--rhc-blue); background: #fff; }
.rhc-result-content { padding: 18px; }
.rhc-start { color: var(--rhc-muted); margin: 2px 0; font-size: .93rem; line-height: 1.55; }
.rhc-result-top { display: grid; border: 1px solid #cbd9ed; padding: 13px 15px; border-radius: 11px; background: #e9f0fb; gap: 3px; }
.rhc-result-top strong { font: 760 clamp(1.35rem,3.4vw,2.08rem)/1.14 'Playfair Display', Georgia, serif; color: #174478; overflow-wrap: anywhere; }
.rhc-result-top span { color: #314967; font-size: .83rem; font-weight: 700; }
.rhc-result-dl { display: grid; margin: 12px 0 0; }
.rhc-result-dl div { display: grid; grid-template-columns: 1.1fr 1fr; gap: 9px; padding: 9px 1px; border-bottom: 1px solid #e7edf4; font-size: .84rem; }
.rhc-result-dl dd { margin: 0; font-weight: 750; color: #233c5c; text-align: right; overflow-wrap: anywhere; }
.rhc-notes { margin: 14px 0 0; padding: 11px 14px 11px 29px; border-radius: 9px; background: #faf4e9; color: #543923; font-size: .84rem; line-height: 1.52; }
.rhc-notes li + li { margin-top: 5px; }
.rhc-step-list { color: var(--rhc-ink); margin: 0; padding-left: 24px; line-height: 1.55; }
.rhc-step-list li { padding: 5px 0; }
.rhc-step-list li::marker { font-weight: 750; color: var(--rhc-blue); }
.rhc-content { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,.42fr); gap: 24px; align-items: start; padding: 31px 0 58px; border-top: 1px solid #c9d7e8; }
.rhc-reader-heading { margin-bottom: 17px; }
.rhc-reader-heading .rhc-kicker { color: #234e8b; margin-bottom: 7px; }
.rhc-topics { background: #fff; border: 1px solid var(--rhc-line); border-radius: 14px; padding: 5px 20px; }
.rhc-topic { padding: 16px 0 17px; }
.rhc-topic + .rhc-topic { border-top: 1px solid #e1e8f0; }
.rhc-topic h3 { margin: 0 0 6px; color: #1b3558; font-weight: 780; font-size: 1.04rem; }
.rhc-topic p { margin: 0; font-size: .94rem; line-height: 1.64; color: #3e5067; }
.rhc-references { border: 1px solid var(--rhc-line); background: #f9fbfd; border-radius: 14px; padding: 18px; }
.rhc-references h2 { font-size: 1.15rem; margin-bottom: 8px; }
.rhc-references h2:not(:first-child) { margin-top: 18px; }
.rhc-references a, .rhc-official { display: block; color: var(--rhc-blue); font-weight: 690; line-height: 1.42; font-size: .89rem; margin: 6px 0; text-decoration: underline; text-underline-offset: .15em; }
.rhc-visually-hidden { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); position: absolute; white-space: nowrap; }
@media (max-width: 850px) {
  .rhc-card-grid, .rhc-guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rhc-content { grid-template-columns: minmax(0,1fr); }
  .rhc-hero-grid { grid-template-columns: 1fr; }
  .rhc-hero-counts { max-width: 320px; }
}
@media (max-width: 680px) {
  .rhc-wrap { width: calc(100% - 28px); }
  .rhc-workspace, .rhc-card-grid, .rhc-guide-grid { grid-template-columns: minmax(0,1fr); }
  .rhc-search-bar { grid-template-columns: 1fr auto; gap: 8px; }
  .rhc-search-bar input { grid-row: 2; grid-column: 1/-1; }
  .rhc-search-bar p { grid-column: 2; grid-row: 1; }
}
@media (max-width: 450px) { .rhc-fields { grid-template-columns: minmax(0,1fr); } }
