@keyframes contentIn{
  from{ opacity:0; transform: translateY(6px); }
  to{ opacity:1; transform: translateY(0); }
}

.rule-content{
  line-height: 1.75;
  max-width: 920px;
  margin: 0 auto;
  animation: contentIn .18s ease-out;
  will-change: transform;

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.5rem;

  box-shadow: 0 8px 15px rgba(0,0,0,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}

.rule-content:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,.45);
}

.rule-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  margin-top: .5rem;
  margin-bottom: 2rem;
}

.rule-title-wrapper{
  display:flex;
  align-items:center;
  gap: .75rem;
}

.rule-icon{
  font-size: 1.5rem;
  line-height: 1;
}

.rule-title{
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.15;
}

.rule-sections{
  display:flex;
  flex-direction: column;
  gap: 2rem;
}

.rule-observation{
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(251,191,36,.55);
  background: rgba(251,191,36,.07);
  color: rgba(251,191,36,.92);
  font-style: italic;
  line-height: 1.45;
  box-shadow: 0 12px 26px rgba(0,0,0,.35);
}

.nav-buttons{
  display: flex;
  justify-content: space-between;
  gap: 10px;

  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

.nav-button{
  display: flex;
  align-items: center;
  gap: 12px;

  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;

  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.015);
  color: var(--foreground);

  cursor: pointer;
  user-select: none;

  transition: background .2s ease, border-color .2s ease;
}

.nav-button:hover{
  background: rgba(255,255,255,.025);
  border-color: rgba(255,255,255,.12);
}

.nav-button-content{
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.nav-button-label{
  font-size: .70rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(229,229,229,.55);
  opacity: .85;
}

.nav-button-title{
  font-size: .92rem;
  font-weight: 700;
  color: rgba(229,229,229,.92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-icon{
  font-size: 1.1rem;
  color: rgba(229,229,229,.55);
  opacity: .8;
  transition: opacity .2s ease;
}

.nav-button:hover .nav-icon{ opacity: 1; }

.nav-spacer{
  flex: 1;
  min-width: 0; 
}

@media (min-width: 821px){
  .nav-button{ width: calc(50% - 5px); }
  .nav-buttons .nav-spacer{ display:none; }
}

@media (max-width: 820px){
  .nav-buttons{ flex-direction: column; }
  .nav-button{ width: 100%; }
}

.rule-navigation{
  display: flex;
  gap: 0;
  margin-top: 22px;

  border-radius: 16px;
  overflow: hidden;

  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.012);
}

.rule-navigation .nav-button,
.rule-navigation .nav-spacer{
  flex: 1;
  min-width: 0;
}

.rule-navigation .nav-spacer{ display:none; }

.rule-navigation .nav-button{
  width: 100%;
  padding: 14px 16px;

  border: 0;
  border-radius: 0;
  background: transparent;
}

.rule-navigation .nav-button:hover{
  background: rgba(255,255,255,.02);
}

.rule-navigation .nav-button + .nav-button{
  border-left: 1px solid rgba(255,255,255,.06);
}

/* Right aligns “Next” */
.rule-navigation .nav-button:last-child{
  justify-content: flex-end;
}

.rule-navigation .nav-button:last-child .nav-button-content{
  align-items: flex-end;
  text-align: right;
}

.hero{
  display:grid;
  gap: 24px;
  padding: 28px;
  margin-bottom: 28px;

  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #151515, #1b1b1b);

  box-shadow: var(--shadow-lg);
}

.hero.hero--docs{
  grid-template-columns: 380px 1fr;
}

.hero-media{
  position: relative;
  border-radius: 18px;
  overflow:hidden;

  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 14px 28px rgba(0,0,0,.35),
    0 0 0 3px rgba(128,216,45,.05);
}

.hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;

  filter: contrast(1.02) brightness(.96);
  transition: transform .35s ease;
}

.hero-media:hover .hero-img{ transform: scale(1.04); }

.hero-body{
  display:flex;
  flex-direction: column;
  justify-content:center;
  min-width:0;
  padding: 4px 2px;
}

.hero-kicker{
  display:flex;
  align-items:center;
  gap: 8px;

  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(229,229,229,.55);

  margin-bottom: 8px;
}

.hero-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(128,216,45,.95);
  box-shadow: 0 0 0 4px rgba(128,216,45,.12);
  flex: 0 0 auto;
}

.hero-title{
  font-size: 1.60rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin: 0 0 8px;
}

.hero-subtitle{
  margin: 0 0 14px;
  color: rgba(229,229,229,.72);
  line-height: 1.65;
  font-size: .98rem;
  max-width: 70ch;
}

.hero-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.hero-btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);

  background: rgba(255,255,255,.02);
  color: rgba(229,229,229,.88);

  text-decoration:none;
  font-weight: 800;
  font-size: .92rem;

  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  user-select:none;
  cursor:pointer;
}

.hero-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(128,216,45,.30);
  background: rgba(255,255,255,.03);
}

.hero-btn i{ color: rgba(128,216,45,.95); }

@media (max-width: 920px){
  .hero.hero--docs{ grid-template-columns: 320px 1fr; }
}
@media (max-width: 820px){
  .hero.hero--docs{ grid-template-columns: 1fr; }
}

.schedule-hero{
  position: relative;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 14px 14px 12px;
  margin-bottom: 12px;

  background: rgba(255,255,255,0.02);
  box-shadow: var(--shadow-sm);
}

.schedule-hero::before{
  content:"";
  position:absolute;
  left: 12px;
  right: 12px;
  top: 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, rgba(128,216,45,0.55), rgba(255,255,255,0.08), transparent);
  opacity: .8;
}

.schedule-hero__title{
  font-weight: 900;
  letter-spacing: .2px;
}

.schedule-hero__sub{
  margin-top: 6px;
  color: var(--muted-foreground);
  line-height: 1.4;
}

.schedule-table-wrap{
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}

.schedule-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.schedule-table thead th{
  text-align: left;
  font-weight: 800;
  color: var(--foreground);
  padding: 12px 12px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.schedule-table tbody td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--sidebar-foreground, var(--foreground));
}

.schedule-table tbody tr:nth-child(odd){ background: rgba(255,255,255,0.015); }
.schedule-table tbody tr:hover{ background: rgba(128,216,45,0.06); }

.schedule-table .td-force{ width: 320px; }

@media (max-width: 820px){
  .schedule-table-wrap{ overflow-x: auto; }
  .schedule-table{ min-width: 720px; }
}

.rec-hero{
  display:grid;
  grid-template-columns: 1fr; 
  gap: 12px;

  margin-bottom: 28px;

  border-radius: 18px;
  overflow:hidden;

  background: rgba(255,255,255,.015);
  border: 1px solid var(--border);
  box-shadow: none;
}

.rec-hero-media{
  position: relative;
  padding: 10px;
  border-radius: 20px;

  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}

.rec-hero-media::before,
.rec-hero-media::after{
  content: none;
}

.rec-hero-media img{
  display:block;
  width: 100%;
  height: auto;
  max-width: none;

  object-fit: contain;
  object-position: center top;

  filter: contrast(1.02) brightness(.92);

  border-radius: 16px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 12px 35px rgba(0,0,0,.45);
}

.rec-hero-body{
  padding: 18px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.rec-title{
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 4px;
}

.rec-subtitle{
  margin-top: 6px;
  margin-bottom: 10px;

  color: rgba(229,229,229,.72);
  font-size: .94rem;
}

.rec-badges{
  margin-top: 10px;
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
}

.rec-badge{
  padding: 0;
  border: none;
  background: transparent;

  font-size: .82rem;
  font-weight: 700;
  color: rgba(229,229,229,.70);
}

.rec-badge + .rec-badge::before{
  content: "•";
  margin: 0 8px 0 4px;
  color: rgba(229,229,229,.35);
}

.rec-crests{
  display:flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.rec-crest{
  display:flex;
  align-items:center;
  gap: 8px;

  padding: 0;
  border: none;
  background: transparent;
}

.rec-crest img{
  width: 28px;
  height: 28px;
  object-fit: contain;

  border-radius: 8px;
  padding: 3px;

  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}

.rec-crest span{ display:none; }

.rec-stats{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.rec-stat{
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
}

.rec-stat-title{
  font-size: .75rem;
  color: var(--text-3);
  text-transform: uppercase;
}

.rec-stat-value{
  font-size: 1.4rem;
  font-weight: 900;
  margin-top: 4px;
  color: var(--primary);
}

.rec-steps{
  margin-top: 10px;
  display:flex;
  flex-direction:column;
  gap: 16px;
}

.rec-step{
  display:flex;
  gap: 14px;

  padding: 12px;
  border-radius: 14px;

  background: rgba(255,255,255,.015);
  border: 1px solid rgba(255,255,255,.08);
}

.rec-step-num{
  width: 30px;
  height: 30px;
  border-radius: 10px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-weight: 900;

  background: rgba(128,216,45,.10);
  color: rgba(229,229,229,.92);
  border: 1px solid rgba(128,216,45,.22);
}

.rec-step-body h4{
  font-size: .92rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.rec-step-body p{
  font-size: .88rem;
  color: rgba(229,229,229,.72);
  margin: 0;
}

.rec-table-wrap{
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  margin: 14px 0;
}

.rec-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.rec-table thead th{
  text-align: left;
  font-weight: 800;
  padding: 14px 16px;

  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--border);

  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .05em;

  color: rgba(229,229,229,.78);
}

.rec-table tbody td{
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--foreground);
  vertical-align: middle;
}

.rec-table tbody tr:nth-child(odd){ background: rgba(255,255,255,0.015); }
.rec-table tbody tr:hover{ background: rgba(128,216,45,0.06); }

.rec-force{
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 6px 10px;
  border-radius: 12px;

  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.08);

  max-width: fit-content;
}

.rec-force img{
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px;
}

.rec-force-text{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rec-force-code{
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--primary);
}

.rec-force-name{
  font-size: 12px;
  color: var(--muted-foreground);
  line-height: 1.2;
}

.rec-rules{
  display: flex;
  flex-direction: column;
  gap: 12px;
}


.rec-rule{
  display: flex;
  align-items: flex-start;
  gap: 12px;

  padding: 14px 16px;
  border-radius: 14px;

  background: rgba(255,255,255,.02);  
  border: 1px solid var(--border);  
  color: var(--foreground);            
}

.rec-rule *{
  color: inherit;
}

.rec-rule-icon{
  display:flex;
  align-items:center;
  justify-content:center;

  width: 28px;
  height: 28px;

  border-radius: 8px;

  background: rgba(128,216,45,.10);
  color: var(--primary);

  flex: 0 0 auto;
  font-size: 14px;
}

/* texto */
.rec-rule-text{
  line-height: 1.5;
  font-size: .95rem;
}

/* hover suave premium */
.rec-rule:hover{
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.12);
}


/* Responsive */
@media (max-width: 920px){
  .rec-stats{ grid-template-columns: 1fr; }
}

@media (max-width: 820px){
  .rec-table-wrap{ overflow-x: auto; }
  .rec-table{ min-width: 720px; }
}

/* Mobile tweaks for the hero media padding */
@media (max-width: 520px){
  .rec-hero-media{ padding: 12px; }
}

.rec-preset{
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 16px;
}

.rec-preset-media{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.18);
}
.rec-preset-media img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.rec-preset-cols{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 860px){
  .rec-preset-cols{ grid-template-columns: 1fr 1fr; }
}

.rec-preset-col h4{
  margin: 0 0 10px 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--foreground);
}

.rec-code{
  margin: 0;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.26);
  color: rgba(255,255,255,.92);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.rec-alert{
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.rec-alert-icon{
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
}
.rec-alert-body{
  font-size: 0.95rem;
  color: rgba(255,255,255,.85);
}
.rec-alert-body strong{ color: rgba(255,255,255,.96); font-weight: 850; }

.rec-alert--danger{
  border-color: rgba(239, 68, 68, .35);
  background: rgba(239, 68, 68, .08);
}
.rec-alert--danger .rec-alert-icon{
  border-color: rgba(239, 68, 68, .30);
  background: rgba(239, 68, 68, .10);
}
.rec-alert--danger .rec-alert-icon i{
  color: rgba(255,255,255,.92);
}

.info-card{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  border-radius: 16px;
  padding: 18px;
}

.sidebar {
  width: 270px; 
}
