[hidden]{display:none!important;}

.reg-layout{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:32px;
  align-items:flex-start;
  padding-top:8px;
}

.reg-sidebar{
  position:sticky;
  top:78px;
  background:rgba(255,255,255,.028);
  border:1px solid rgba(61,169,255,.10);
  border-radius:18px;
  overflow:hidden;
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
}
.reg-sidebar__header{
  padding:13px 18px;
  border-bottom:1px solid rgba(61,169,255,.10);
  font-size:10px;
  font-weight:700;
  letter-spacing:2.5px;
  color:var(--accent);
  text-transform:uppercase;
  display:flex;
  align-items:center;
  gap:8px;
}
.reg-sidebar__icon{
  width:13px;height:13px;
  stroke:var(--accent);fill:none;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
  flex-shrink:0;
}

.reg-chapter-btn{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 16px;
  background:transparent;
  border:none;
  border-bottom:1px solid rgba(61,169,255,.06);
  cursor:pointer;
  color:var(--text-dim);
  font-family:var(--font-body);
  font-size:12.5px;
  font-weight:600;
  text-align:left;
  transition:color .2s,background .2s;
}
.reg-chapter-btn:hover{color:var(--text);background:rgba(61,169,255,.04);}
.reg-chapter-btn.is-active{color:var(--accent);}

.reg-folder-icon{
  width:14px;height:14px;
  flex-shrink:0;
  stroke:currentColor;fill:none;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
  opacity:.75;
  transition:opacity .2s;
}
.reg-chapter-btn.is-active .reg-folder-icon{opacity:1;}
.reg-leaf-icon{
  width:14px;height:14px;
  flex-shrink:0;
  stroke:currentColor;fill:none;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
  opacity:.7;
}

.reg-chapter-arrow{
  width:12px;height:12px;
  stroke:var(--text-faint);
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform .25s;
  flex-shrink:0;
}
.reg-chapter-btn.is-open .reg-chapter-arrow{transform:rotate(90deg);}
.reg-chapter-btn span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

.reg-sub{
  overflow:hidden;
  max-height:0;
  transition:max-height .35s ease;
  background:transparent;
}
.reg-sub.is-open{max-height:600px;}
.reg-sub a{
  display:block;
  padding:5px 10px;
  font-size:12px;
  color:var(--text-faint);
  margin:1px 8px 1px 30px;
  border-left:1px solid rgba(61,169,255,.14);
  padding-left:10px;
  border-radius:0 6px 6px 0;
  transition:color .2s,background .2s,border-left-color .2s;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.reg-sub a:hover{color:var(--text);background:rgba(255,255,255,.04);}
.reg-sub a.is-active{color:var(--text);background:rgba(61,169,255,.12);border-left-color:var(--accent);}

.reg-content{
  display:flex;
  flex-direction:column;
  gap:22px;
}

.reg-article{
  background:rgba(255,255,255,.025);
  border:1px solid rgba(61,169,255,.09);
  border-radius:20px;
  overflow:hidden;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  transition:border-color .2s;
}
.reg-article:hover{border-color:rgba(61,169,255,.16);}

.reg-article__head{
  padding:20px 24px;
  border-bottom:1px solid rgba(61,169,255,.08);
  display:flex;
  align-items:center;
  gap:14px;
  background:rgba(61,169,255,.025);
}
.reg-article__icon-wrap{
  width:36px;height:36px;
  background:rgba(61,169,255,.10);
  border:1px solid rgba(61,169,255,.16);
  border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.reg-article__icon-wrap svg{
  width:17px;height:17px;
  stroke:var(--accent);
  fill:none;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.reg-article__title{
  font-family:var(--font-display);
  font-size:16px;
  font-weight:700;
  color:var(--text);
}
.reg-article__crumb{
  font-size:11px;
  color:var(--text-faint);
  margin-top:2px;
  display:flex;
  align-items:center;
  gap:5px;
}
.reg-article__crumb span{color:var(--accent);opacity:.5;}

details.reg-rule{
  border-bottom:1px solid rgba(61,169,255,.06);
}
details.reg-rule:last-child{border-bottom:none;}

details.reg-rule summary{
  list-style:none;
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 24px;
  cursor:pointer;
  font-size:13px;
  font-weight:600;
  color:var(--text);
  transition:color .15s,background .15s;
  user-select:none;
}
details.reg-rule summary::-webkit-details-marker{display:none;}
details.reg-rule[open]>summary{color:var(--accent);background:rgba(61,169,255,.03);}
details.reg-rule summary:hover{background:rgba(61,169,255,.04);}

.reg-rule__num{
  min-width:22px;height:22px;
  background:rgba(61,169,255,.10);
  border-radius:6px;
  display:flex;align-items:center;justify-content:center;
  font-size:10px;
  font-weight:700;
  color:var(--accent);
  flex-shrink:0;
  padding:0 5px;
}
details.reg-rule[open]>.reg-rule__wrap>.reg-rule__num,
details.reg-rule[open] summary .reg-rule__num{
  background:rgba(61,169,255,.18);
}

.reg-rule__chevron{
  margin-left:auto;
  flex-shrink:0;
  width:14px;height:14px;
  stroke:var(--text-faint);
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform .25s;
}
details.reg-rule[open] .reg-rule__chevron{
  transform:rotate(180deg);
  stroke:var(--accent);
}

.reg-rule__body{
  padding:4px 24px 18px 56px;
  font-size:13.5px;
  color:var(--text-dim);
  line-height:1.78;
  animation:ruleIn .2s ease;
}
@keyframes ruleIn{from{opacity:0;transform:translateY(-6px);}to{opacity:1;transform:none;}}

.reg-sanctions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:20px 24px 14px;
}
.reg-sanction-badge{
  padding:7px 15px;
  border:1px solid rgba(61,169,255,.16);
  border-radius:999px;
  font-size:12px;
  color:var(--text-dim);
  background:rgba(61,169,255,.05);
  transition:border-color .2s,color .2s,background .2s;
}
.reg-sanction-badge:hover{
  border-color:var(--accent);
  color:var(--accent);
  background:rgba(61,169,255,.09);
}
.reg-sanction-note{
  padding:0 24px 14px;
  font-size:12.5px;
  color:var(--text-faint);
  line-height:1.65;
}

@media(max-width:960px){
  .reg-layout{grid-template-columns:1fr;}
  .reg-sidebar{position:static;}
}
