.jdbRulesSection {
  --jdb-rules-offset: 108px;
  scroll-margin-top: var(--jdb-rules-offset);
  background: #f2f8ff;
}
.jdbRulesHeading { max-width: 780px; }
.jdbRulesHeading .eyebrow { background: #e0efff; border-color: #c7e3ff; color: #075aa4; }
.jdbRulesHeading h1 { margin: 16px 0 12px; color: #082e61; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; letter-spacing: -.035em; }
.jdbRulesHeading p { margin: 0; color: #52677e; font-size: 18px; line-height: 1.6; }
.jdbRulesIndex { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 26px 0 18px; }
.jdbRulesIndex a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 12px 16px; border: 1px solid #c9dfef; border-radius: 13px; background: #fff; color: #063b73; font-weight: 800; line-height: 1.35; text-decoration: none; transition: border-color .15s, background .15s; }
.jdbRulesIndex a::after { content: '↓'; color: #087bd8; }
.jdbRulesIndex a:hover { border-color: #0787f2; background: #f8fcff; }
.jdbRulesIndex small { margin-left: auto; color: #60758e; font-size: 11px; font-weight: 800; }
.jdbRulesNote { margin: 0 0 26px; color: #52677e; font-size: 14px; line-height: 1.6; }
.jdbRulesList { max-width: 960px; }
.jdbRulesList .jdbRule { padding: 0; overflow: clip; scroll-margin-top: var(--jdb-rules-offset); }
.jdbRule summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; list-style: none; }
.jdbRule summary::-webkit-details-marker { display: none; }
.jdbRule summary span { min-width: 0; }
.jdbRule summary strong { display: block; font-size: 19px; line-height: 1.35; }
.jdbRule summary small { display: block; margin-top: 3px; color: #657991; font-size: 13px; font-weight: 500; line-height: 1.45; }
.jdbRule summary::after { content: '+'; display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: #eaf5ff; color: #087bd8; font-size: 24px; line-height: 1; font-weight: 500; }
.jdbRule[open] summary { border-bottom: 1px solid #dce9f4; }
.jdbRule[open] summary::after { content: '−'; }
.jdbRulesList .jdbRule:target { border-color: #0787f2; box-shadow: 0 0 0 2px #0787f21c, 0 10px 25px #0923480f; }
.jdbRuleBody { max-width: 78ch; padding: 24px; color: #263e58; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.jdbRuleBody p { margin: 0 0 11px; color: inherit; }
.jdbRuleBody h3 { margin: 30px 0 12px; color: #092c5c; font-size: 19px; line-height: 1.4; }
.jdbRuleBody ul { margin: 10px 0 20px; padding-left: 23px; }
.jdbRuleBody li { padding-left: 3px; margin: 6px 0; }
.jdbRuleBody a { color: #075faa; text-decoration: underline; text-underline-offset: 3px; }
.jdbRulesMeta { padding: 16px 18px; background: #f1f7fd; border-radius: 12px; font-size: 14px; line-height: 1.65; }
.jdbRulesMeta p:last-child { margin-bottom: 0; }
.jdbRulesEmergency { margin: 26px 0 22px; padding: 16px 18px; border: 1px solid #d6e5f1; border-radius: 12px; background: #f7fbff; font-size: 14px; }
.jdbRulesEmergency ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 8px 0 0; padding: 0; list-style: none; }
.jdbRulesEmergency li { padding: 0; margin: 0; }
.jdbRulesEmergency a { margin-left: 5px; font-weight: 800; }
.jdbRulesBack { display: inline-block; margin-top: 4px; font-size: 14px; font-weight: 800; }
.jdbRuleExternal h3 { margin-top: 0; }
.jdbRuleBody .jdbRulesDocument { display: inline-flex; align-items: center; gap: 18px; min-height: 48px; margin: 8px 0 20px; padding: 12px 18px; border-radius: 12px; background: #087bd8; color: #fff; font-weight: 800; text-decoration: none; }
.jdbRuleExternal .jdbRulesBack { display: block; width: fit-content; }
.jdbRulesSection a:focus-visible, .jdbRule summary:focus-visible { outline: 3px solid #087bd8; outline-offset: 3px; }
.jdbRulesSrOnly { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 900px) { .jdbRulesIndex { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .jdbRulesSection { padding: 38px 0; }
  .jdbRulesHeading p { font-size: 16px; }
  .jdbRulesIndex { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
  .jdbRulesIndex a { padding: 11px 12px; font-size: 14px; }
  .jdbRule summary { padding: 17px 16px; gap: 12px; }
  .jdbRule summary strong { font-size: 17px; }
  .jdbRuleBody { padding: 20px 16px; line-height: 1.7; }
  .jdbRuleBody h3 { font-size: 18px; }
  .jdbRulesMeta, .jdbRulesEmergency { padding: 14px; }
  .jdbRulesEmergency ul { display: block; }
  .jdbRulesEmergency li { margin-top: 5px; }
}
@media print {
  .jdbRulesIndex, .jdbRulesBack { display: none; }
  .jdbRulesSection { background: #fff; }
  .jdbRulesList .jdbRule { box-shadow: none; }
}

/* Standalone route: approved FAQ rules component with semantic page and rule headings. */
.jdbRulesSection { padding:52px 0; }
.jdbRule summary h2 { display:block; min-width:0; flex:1; margin:0; color:#092c5c; font-size:19px; font-weight:900; line-height:1.35; letter-spacing:0; }
.jdbRulesStandalone { margin-top:26px; background:#fff; border:1px solid #dce9f4; border-radius:18px; }
.jdbRulesStandalone .jdbRuleBody { max-width:78ch; }
@media(max-width:600px) { .jdbRule summary h2 { font-size:17px; } .jdbRulesSection { padding:38px 0; } }
