/*
Theme: rules-guide (worldcuprulebook.com, groupstageguide.com)
Layout: Guide steps with sticky sidebar TOC
Grid: Sidebar-main layout
Font: Inter
*/
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;background:#f3e5f5;color:#4a148c;line-height:1.7}

/* Header: Compact guide header */
.header-guide{background:linear-gradient(135deg,#4a148c,#6a1b9a);box-shadow:0 2px 8px rgba(0,0,0,.12)}
.guide-header-inner{max-width:1200px;margin:0 auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between;height:60px}
.guide-logo{display:flex;align-items:center;gap:8px;color:#fff;text-decoration:none}
.guide-icon{font-size:1.3rem}
.guide-name{font-size:1rem;font-weight:800;letter-spacing:-.3px}
.nav-guide-compact{display:flex;gap:16px}
.nav-guide-compact a{color:rgba(255,255,255,.7);font-size:.82rem;font-weight:500;padding:4px 0;transition:all .2s}
.nav-guide-compact a:hover{color:#ffab00}

/* Hero: Step-by-step guide */
.hero-rules-guide{background:linear-gradient(135deg,#6a1b9a,#ab47bc,#e1bee7);padding:50px 0;text-align:center}
.hero-guide-steps{max-width:800px;margin:0 auto;padding:0 24px}
.hero-guide-badge{display:inline-block;background:rgba(255,255,255,.2);padding:4px 16px;border-radius:20px;font-size:.78rem;color:#fff;margin-bottom:16px}
.hero-title{font-size:2.2rem;font-weight:800;color:#fff;line-height:1.2;margin-bottom:15px}
.hero-subtitle{font-size:1rem;color:rgba(255,255,255,.85);margin-bottom:24px}
.hero-step-indicators{display:flex;gap:20px;justify-content:center;margin-bottom:28px}
.step-dot{width:70px;height:70px;border-radius:50%;background:rgba(255,255,255,.15);display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:700;font-size:1.2rem;color:#fff;position:relative}
.step-dot.active{background:rgba(255,255,255,.3)}
.step-dot-label{position:absolute;bottom:-20px;font-size:.65rem;text-transform:uppercase;letter-spacing:1px;opacity:.6;white-space:nowrap}
.hero-btn{padding:10px 24px;border-radius:4px;font-weight:600;font-size:.85rem;display:inline-block;margin:6px;text-decoration:none}
.hero-btn-primary{background:#4a148c;color:#fff;border:none}
.hero-btn-primary:hover{background:#6a1b9a}
.hero-btn-outline{border:2px solid #fff;color:#fff;background:transparent}

/* Guide layout: Sidebar + main */
.guide-layout{display:grid;grid-template-columns:280px 1fr;gap:30px;max-width:1200px;margin:0 auto;padding:40px 24px}
.guide-sidebar{position:sticky;top:80px;align-self:start}
.sticky-sidebar{background:#fff;border-radius:8px;padding:20px;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.sidebar-toc h3{font-size:.9rem;font-weight:700;color:#4a148c;margin-bottom:12px;padding-bottom:8px;border-bottom:2px solid #7b1fa2}
.sidebar-toc ul{list-style:none}
.sidebar-toc li{margin:8px 0}
.sidebar-toc a{font-size:.82rem;color:#7b1fa2;text-decoration:none;padding:4px 8px;display:block;border-radius:4px;transition:all .2s}
.sidebar-toc a:hover{background:#f3e5f5;color:#4a148c}
.sidebar-search{margin-top:16px;padding-top:16px;border-top:1px solid #f3e5f5}
.sidebar-search-input{width:100%;padding:8px 12px;border:2px solid #e1bee7;border-radius:6px;font-size:.82rem;outline:none}

/* Guide main content */
.guide-main h2{font-size:1.4rem;font-weight:700;color:#4a148c;margin:30px 0 16px;padding-bottom:8px;border-bottom:2px solid #7b1fa2}
.guide-main p{margin:14px 0;font-size:.92rem;line-height:1.8}
.guide-main ul{margin:12px 0;padding-left:24px}
.guide-main li{margin:6px 0}

/* Cards: Numbered step cards */
.cards-grid-steps{display:flex;flex-direction:column;gap:12px;margin-top:16px}
.step-card{background:#fff;border-radius:8px;padding:20px 20px 20px 70px;box-shadow:0 2px 8px rgba(0,0,0,.06);position:relative;transition:box-shadow .2s}
.step-card:hover{box-shadow:0 4px 16px rgba(0,0,0,.1)}
.step-number{position:absolute;left:16px;top:20px;width:36px;height:36px;background:#4a148c;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem}
.step-card h3{font-size:1rem;font-weight:700;color:#4a148c;margin-bottom:6px}
.step-card p{font-size:.85rem;color:#666;margin:0}
.step-link{display:inline-block;margin-top:8px;font-size:.8rem;color:#7b1fa2;font-weight:600}

/* Rules table */
.rules-table{width:100%;border-collapse:collapse;margin:16px 0;border-radius:6px;overflow:hidden;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.rules-table th{background:#4a148c;color:#fff;padding:12px;text-align:left;font-size:.85rem}
.rules-table td{padding:10px 12px;border-bottom:1px solid #f3e5f5;font-size:.85rem}

/* Examples */
.example-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.example-item{background:#fff;border-radius:8px;padding:20px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.example-item h4{font-size:.9rem;color:#4a148c;margin-bottom:8px}
.example-item p{font-size:.85rem;color:#666;margin:0}

/* Footer */
.footer-guide-detailed{background:linear-gradient(135deg,#4a148c,#6a1b9a);padding:40px 0;color:rgba(255,255,255,.7)}
.guide-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px;max-width:1200px;margin:0 auto;padding:0 24px}
.guide-footer-col h4{font-size:.9rem;font-weight:700;color:#ffab00;margin-bottom:12px}
.guide-footer-col a{display:block;color:rgba(255,255,255,.6);margin:5px 0;font-size:.8rem}
.guide-footer-col p{font-size:.82rem;line-height:1.6}
.guide-footer-legal{text-align:center;font-size:.78rem;max-width:1200px;margin:20px auto 0;padding:16px 24px 0;border-top:1px solid rgba(255,255,255,.1);line-height:1.6}

@media(max-width:768px){
  .guide-header-inner{flex-direction:column;height:auto;padding:12px 16px;gap:8px}
  .nav-guide-compact{flex-wrap:wrap;justify-content:center}
  .hero-step-indicators{flex-wrap:wrap;gap:12px}
  .step-dot{width:50px;height:50px;font-size:.9rem}
  .guide-layout{grid-template-columns:1fr}
  .guide-sidebar{position:static}
  .example-cards{grid-template-columns:1fr}
  .guide-footer-grid{grid-template-columns:1fr}
}

/* ===== Content section styles - rules-guide ===== */
section:not([class*="hero"]){padding:36px 0;border-bottom:1px solid rgba(74,20,140,.06)}
section:not([class*="hero"]):last-child{border-bottom:none}
section:not([class*="hero"]) .wrap{max-width:1200px;margin:0 auto;padding:0 24px}
section:not([class*="hero"]) h2{font-size:1.5rem;font-weight:700;color:#4a148c;margin-bottom:16px;padding-bottom:10px;border-bottom:3px solid #e1bee7}
section:not([class*="hero"]) h3{font-size:1.15rem;font-weight:700;color:#6a1b9a;margin-bottom:10px}
section:not([class*="hero"]) p{font-size:.92rem;color:#555;line-height:1.8;margin-bottom:14px}
section:not([class*="hero"]) ul{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px;margin:14px 0}
section:not([class*="hero"]) li{background:#fff;border-radius:8px;padding:14px 18px;box-shadow:0 2px 6px rgba(0,0,0,.06);font-size:.88rem;color:#4a148c;transition:all .25s;border-left:3px solid #ab47bc}
section:not([class*="hero"]) li:hover{box-shadow:0 4px 14px rgba(0,0,0,.1);transform:translateY(-2px);border-left-color:#ffab00}
section:not([class*="hero"]) li a{color:#6a1b9a;font-weight:600;text-decoration:none}
section:not([class*="hero"]) li a:hover{color:#4a148c;text-decoration:underline}
section:not([class*="hero"]) a{color:#7b1fa2;font-weight:500;text-decoration:none}
section:not([class*="hero"]) a:hover{color:#4a148c;text-decoration:underline}
section:not([class*="hero"]) table{width:100%;border-collapse:collapse;margin:16px 0;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 2px 6px rgba(0,0,0,.06)}
section:not([class*="hero"]) th{background:#4a148c;color:#fff;padding:12px 14px;text-align:left;font-size:.85rem;font-weight:600}
section:not([class*="hero"]) td{padding:10px 14px;border-bottom:1px solid #e1bee7;font-size:.85rem;color:#4a148c}
section:not([class*="hero"]) tr:last-child td{border-bottom:none}
@media(max-width:768px){
  section:not([class*="hero"]) ul{grid-template-columns:1fr}
  section:not([class*="hero"]){padding:24px 0}
}
