/* Native DLE rules: an editorial page in the same blue-grey palette as the catalog. */
body.rules-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.rules-page .site-header, .rules-page .site-footer { flex-shrink: 0; }
.rules-page .site-header + .rules-main { flex: 1 0 auto; min-height: 0; width: 100%; }
.rules-page .site-footer { margin-top: 0; }
.rules-wrap { width: calc(100% - 80px); max-width: 1160px; margin: 0 auto; padding: 34px 0 66px; }
.rules-breadcrumbs { display: flex; align-items: center; gap: 12px; color: #7b8e9c; font-size: 12px; }
.rules-breadcrumbs a { color: #526f81; }
.rules-breadcrumbs a:hover { color: #185779; text-decoration: underline; text-underline-offset: 3px; }
.rules-intro { margin: 36px 0 37px; }
.rules-eyebrow { color: #7490a0; font-size: 11px; font-weight: 550; letter-spacing: .075em; text-transform: uppercase; }
.rules-intro h1 { margin-top: 12px; color: #173342; font-size: clamp(36px, 4.2vw, 50px); font-weight: 650; line-height: 1.12; letter-spacing: -.045em; }
.rules-lead { max-width: 760px; margin-top: 16px; color: #647d8c; font-size: 16px; line-height: 1.65; }
.rules-updated { margin-top: 17px; color: #8b9ca8; font-size: 11px; }
.rules-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: start; gap: 76px; }
.rules-article { min-width: 0; }
.rules-copy section { position: relative; padding: 0 0 0 42px; scroll-margin-top: 28px; }
.rules-copy section + section { margin-top: 29px; }
.rules-copy h2 { margin: 0 0 10px; color: #2e4a5c; font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: -.02em; }
.rules-copy h2 > span { position: absolute; left: 0; top: 4px; color: #8ca7b8; font-size: 11px; font-weight: 500; line-height: 1.7; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.rules-copy p { color: #5c7382; font-size: 14px; line-height: 1.75; margin: 0; }
.rules-copy p + p { margin-top: 9px; }
.rules-copy a { color: #286887; text-decoration: underline; text-decoration-color: #b9ccd6; text-underline-offset: 3px; }
.rules-copy a:hover { color: #164c68; text-decoration-color: currentColor; }
.rules-aside { position: sticky; top: 28px; }
.rules-nav { padding: 2px 0 4px 22px; border-left: 1px solid #e2eaf0; }
.rules-nav h2 { margin: 0 0 12px; color: #7c929f; font-size: 10px; font-weight: 550; letter-spacing: .055em; text-transform: uppercase; }
.rules-nav a { display: flex; align-items: baseline; gap: 11px; padding-block: 7px; color: #486778; font-size: 12px; line-height: 1.5; }
.rules-nav a > span { color: #9aaeba; font-size: 10px; font-variant-numeric: tabular-nums; }
.rules-nav a:hover { color: #185779; }
.rules-help { margin-top: 27px; padding: 19px 20px 16px; border-radius: var(--radius-surface); background: #f0f5f8; }
.rules-help > .icon { width: 20px; height: 20px; margin-bottom: 13px; color: #7c9aad; }
.rules-help h2 { color: #365568; font-size: 14px; font-weight: 600; }
.rules-help p { margin: 9px 0 12px; color: #77909f; font-size: 12px; line-height: 1.65; }
.rules-help a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; color: #3b6e89; font-size: 12px; }
.rules-help a > .icon { width: 15px; height: 15px; color: #8da7b7; }
.rules-help a:hover { color: #185779; }
.rules-main a:focus-visible { outline: 2px solid #6293ad; outline-offset: 4px; }
.rules-page .rules-accept { display: none; }
/* DLE reuses exactly the same rules during registration; preserve its native form. */
.registration-rules-content .rules-copy section { padding-left: 32px; }
.registration-rules-content .rules-copy h2 { font-size: 16px; }
.registration-rules-content .rules-copy p { font-size: 13px; }
@media (max-width: 1100px) {
  .rules-wrap { width: calc(100% - 48px); }
  .rules-layout { grid-template-columns: minmax(0, 1fr) 225px; gap: 38px; }
}
@media (max-width: 800px) {
  .rules-layout { display: flex; flex-direction: column; gap: 30px; }
  .rules-aside { display: contents; }
  .rules-nav { order: -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; width: 100%; padding: 15px 18px; border: 0; border-radius: var(--radius-surface); background: #f3f7f9; }
  .rules-nav h2 { grid-column: 1/-1; margin-bottom: 6px; }
  .rules-nav a { gap: 8px; font-size: 11px; }
  .rules-help { width: 100%; margin: 0; }
  .rules-help > .icon { display: none; }
  .rules-help a { max-width: 250px; }
}
@media (max-width: 540px) {
  .rules-wrap { width: calc(100% - 32px); padding: 24px 0 40px; }
  .rules-intro { margin: 27px 0; }
  .rules-intro h1 { font-size: 35px; }
  .rules-lead { font-size: 14px; }
  .rules-desktop-break { display: none; }
  .rules-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; padding: 14px; }
  .rules-nav a { padding-block: 8px; }
  .rules-copy section { padding-left: 30px; }
  .rules-copy h2 { font-size: 17px; }
  .rules-copy p { font-size: 13px; line-height: 1.75; }
  .rules-copy section + section { margin-top: 27px; }
}
