:root {
  --paper: #ffffff;
  --ink: #333d62;
  --muted: #68718a;
  --blue: #315fc4;
  --blue-deep: #234a9f;
  --line: #e4e8f0;
  --soft: #f5f8fc;
  --lime: #05f1c3;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  z-index: 50;
}

.skip-link:focus { top: 12px; }

.rules-header {
  height: 76px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  box-shadow: 0 3px 14px rgba(51, 61, 98, 0.035);
}

.rules-header-inner {
  height: 100%;
  max-width: 1380px;
  padding: 0 6.1%;
  margin: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.brand { width: 145px; display: block; }
.brand img,
.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.2vw, 22px);
  height: 100%;
  font-size: 12px;
  font-weight: 600;
  color: #4d5876;
}

.primary-nav a {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav .nav-current { color: var(--blue); }

.primary-nav .nav-current:after {
  content: "";
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--blue);
}

.mobile-menu { display: none; }

.rules-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 36px 80px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.rules-sidebar {
  border-top: 2px solid var(--ink);
  position: sticky;
  top: 100px;
  background: #fff;
  padding: 15px;
}

.rules-sidebar > summary { list-style: none; }
.rules-sidebar > summary::-webkit-details-marker { display: none; }

.sidebar-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.sidebar-title-main {
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.sidebar-title-meta {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.sidebar-title-meta i { font-style: normal; }

.rule-links {
  max-height: min(62vh, 640px);
  overflow: auto;
  padding: 8px 0 12px;
}

.list-label {
  margin: 16px 0 6px;
  font-size: 9px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #7a8499;
}

.rule-link {
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr 28px;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
  color: #47575e;
}

.rule-link:hover,
.rule-link:focus-visible {
  color: var(--blue);
  background: #f5f8fd;
  outline: none;
}

.rule-link b {
  font-size: 12px;
  color: #8c999b;
  text-align: right;
  font-variant-numeric: tabular-nums;
}


.sidebar-pdf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}

.rules-hero { margin-bottom: 28px; }

.hero-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.eyebrow-pill,
.section-kicker,
.card-kicker {
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--blue);
}

.hero-date {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #7a8499;
}

.hero-date i { font-style: normal; }

.rules-hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0 0 14px;
}

.hero-intro,
.rules-intro p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 720px;
}

.hero-intro { margin: 0; }

.rules-intro { margin-bottom: 32px; }
.rules-intro p { margin: 0 0 12px; }

.download-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.download-emblem {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid #dce4f1;
  font-family: var(--serif);
  font-size: 32px;
  color: var(--blue);
}

.download-copy h2 {
  font-size: 24px;
  margin: 6px 0 8px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.download-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.download-button {
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.download-button:hover,
.download-button:focus-visible { background: var(--blue-deep); }

.source-note {
  text-align: right;
  font-size: 10px;
  color: #82908f;
  margin: 10px 0 44px;
}

.faq-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 18px;
}

.faq-heading h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 8px 0 0;
}

.faq-count {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #7a8499;
  font-weight: 700;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
}


.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 500;
}

.faq-item[open] summary b { transform: rotate(45deg); }

.faq-answer {
  padding: 0 4px 18px;
  font-size: 16px;
  line-height: 1.75;
  color: #53617d;
}

.faq-answer p { margin: 0 0 10px; }

.faq-answer a {
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
}

.legal-note {
  margin: 24px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.contact-strip {
  max-width: 1240px;
  margin: 0 auto 20px;
  padding: 28px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.contact-strip h2 {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.contact-strip a {
  color: var(--blue);
  font-weight: 600;
}

.site-footer {
  min-height: 94px;
  padding: 22px max(36px, calc((100vw - 1168px) / 2));
  display: flex;
  align-items: center;
  gap: 22px;
  border-top: 1px solid var(--line);
}

.footer-brand { width: 112px; }

.site-footer p {
  font-size: 11px;
  color: #68718a;
  margin: 0;
}

.site-footer nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: #68718a;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .rules-header-inner { padding: 0 4%; }
  .primary-nav { gap: 19px; font-size: 11px; }
  .rules-layout {
    grid-template-columns: 1fr;
    padding: 28px 24px 64px;
  }
  .rules-sidebar { position: static; }
  .rule-links { max-height: none; }
  .download-card { grid-template-columns: 1fr; }
  .contact-strip { padding: 24px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 1180px) {
  .rules-header { height: 66px; }
  .rules-header-inner {
    grid-template-columns: 1fr auto auto;
    gap: 11px;
    padding: 0 20px;
  }
  .brand { width: 130px; }
  .mobile-menu {
    display: flex;
    width: 38px;
    height: 38px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
  }
  .mobile-menu span {
    height: 1.5px;
    width: 15px;
    background: var(--ink);
  }
  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    height: auto;
    background: #fff;
    padding: 10px 22px 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(51, 61, 98, 0.08);
    align-items: stretch;
    gap: 0;
  }
  .primary-nav.is-open { display: flex; flex-direction: column; }
  .primary-nav a {
    height: auto;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .primary-nav .nav-current:after { display: none; }
  .rules-hero h1 { font-size: 38px; }
  .desktop-break { display: none; }
  .site-footer {
    padding: 18px 22px;
    flex-wrap: wrap;
  }
  .site-footer nav { margin-left: 0; width: 100%; }
}

.rule-link.active {
  color: var(--blue);
  font-weight: 700;
  background: #f5f8fd;
}

.rule-link.active b { color: var(--blue); }

.rules-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.rule-panel[hidden] { display: none !important; }

.rules-content[hidden] {
  display: none !important;
}
.rule-panel h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 8px 0 20px;
}

.rule-kicker {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}

.statute {
  font-size: 15px;
  line-height: 1.85;
  color: #46575e;
}

.statute p { margin: 0 0 12px; }

.statute .clause {
  padding-left: 8px;
}

.illustration {
  margin: 18px 0;
  padding: 16px 18px;
  background: #f7f9fd;
  border-left: 2px solid var(--blue);
}

.illustration strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.illustration p { margin: 0 0 10px; font-size: 14px; }
.illustration p:last-child { margin-bottom: 0; }

.rule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 16px 0 22px;
  background: #fff;
}

.rule-table th,
.rule-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: #46575e;
}

.rule-table th {
  background: #f5f8fd;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.schedule-block h3 {
  font-size: 18px;
  margin: 28px 0 12px;
  font-weight: 600;
}

.section-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  margin-top: 40px;
}

.pager-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
}

.pager-next { justify-content: flex-end; text-align: right; }
.pager-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager-btn:hover,
.pager-btn:focus-visible {
  text-decoration-color: currentColor;
  outline: none;
}
.pager-btn[hidden] { visibility: hidden; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
