/* FIFA TMS Guide — matches rules pages + PDF navy/gold identity */
.rules-container { max-width: 920px; margin: 0 auto; }
.rules-card-wrapper { background: #fff; border-radius: 24px; padding: 2.5rem 3rem; border: 1px solid #e2e8f0; box-shadow: 0 10px 35px rgba(15,23,42,.04); }
.rules-content { line-height: 1.85; color: #334155; }
.rules-section-item { margin-bottom: 2.2rem; padding-bottom: 1.8rem; border-bottom: 1px solid #f1f5f9; scroll-margin-top: 110px; }
.rules-section-item:last-of-type { border-bottom: none; }
.rules-section-title { display: flex; align-items: center; gap: .75rem; font-size: 1.25rem; font-weight: 800; color: #0f172a; margin-bottom: 1rem; }
.rules-section-title i { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: #f0fdf4; color: #059669; font-size: .9rem; flex-shrink: 0; }
.rules-content p { margin-bottom: .85rem; color: #475569; font-size: .95rem; }
.rules-commitment-banner { background: linear-gradient(135deg,#064e3b,#059669); color: #fff; padding: 2.2rem; border-radius: 20px; margin-top: 2.5rem; box-shadow: 0 12px 30px rgba(5,150,105,.2); }
.rules-commitment-banner h3 { color: #fff; font-size: 1.25rem; font-weight: 800; margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.rules-commitment-banner p { color: rgba(255,255,255,.9); font-size: .95rem; line-height: 1.7; margin-bottom: 1rem; }
.rules-commitment-signature { border-top: 1px solid rgba(255,255,255,.2); padding-top: 1rem; color: #a7f3d0; font-weight: 700; font-size: .88rem; }

/* Hero */
.tms-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; padding: 8rem 0 4rem; }
.tms-hero-bg { position: absolute; inset: 0; z-index: 0; }
.tms-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) saturate(1.1); }
.tms-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(15,43,76,.55) 0%,rgba(10,27,48,.88) 60%,rgba(6,17,30,.97) 100%); }
.tms-hero-content { position: relative; z-index: 2; }
.tms-hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1.1rem; border-radius: 999px; background: rgba(201,162,39,.15); border: 1px solid rgba(201,162,39,.4); color: #e7c65a; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 1.4rem; }
.tms-hero-title { font-size: clamp(2.2rem,5vw,3.6rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.08; color: #fff; margin-bottom: 1rem; }
.tms-hero-title span { color: #e7c65a; font-size: clamp(1.15rem,2.6vw,1.7rem); display: block; margin-top: .5rem; font-weight: 800; }
.tms-hero-desc { color: rgba(255,255,255,.72); max-width: 720px; font-size: 1rem; line-height: 1.75; margin-bottom: 1.8rem; }
.tms-hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.tms-btn-solid { display: inline-flex; align-items: center; gap: .5rem; background: #c9a227; color: #0a1b30; font-weight: 800; padding: .8rem 1.5rem; border-radius: 12px; text-decoration: none; font-size: .9rem; }
.tms-btn-solid:hover { background: #dbb63a; color: #0a1b30; }
.tms-btn-ghost { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid rgba(255,255,255,.35); color: #fff; font-weight: 700; padding: .8rem 1.5rem; border-radius: 12px; text-decoration: none; font-size: .9rem; }
.tms-btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.tms-btn-ghost-light { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid rgba(255,255,255,.5); color: #fff; font-weight: 700; padding: .7rem 1.3rem; border-radius: 12px; text-decoration: none; font-size: .88rem; }
.tms-banner-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* Body + TOC */
.tms-body { padding: 3rem 0 4rem; background: var(--bg-primary, #f8fafc); }
.tms-toc { background: #0f2b4c; border-radius: 18px; padding: 1.2rem 1.4rem; margin-bottom: 1.6rem; }
.tms-toc-label { color: #e7c65a; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: .7rem; }
.tms-toc-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.tms-toc-links a { color: #dbe7f5; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: .4rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 600; text-decoration: none; }
.tms-toc-links a:hover { background: #c9a227; color: #0a1b30; border-color: #c9a227; }

/* Flow pills (PDF visual) */
.tms-flow { display: flex; flex-direction: column; gap: 0; margin: 1.2rem 0; }
.tms-flow-step { position: relative; text-align: center; border-radius: 16px; padding: .9rem 1.2rem; color: #fff; margin-bottom: 22px; }
.tms-flow-step::after { content: '\f063'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); color: #c9a227; font-size: .85rem; }
.tms-flow-step:last-child { margin-bottom: 0; }
.tms-flow-step:last-child::after { display: none; }
.tms-flow-step strong { display: block; font-size: .95rem; letter-spacing: .02em; text-transform: uppercase; }
.tms-flow-step span { display: block; font-size: .82rem; opacity: .85; margin-top: .15rem; }
.tms-n1 { background: #16395f; } .tms-n2 { background: #0f2743; } .tms-n3 { background: #2c4f7c; }
.tms-n4 { background: #41648f; } .tms-n5 { background: #5b7fa6; }
.tms-gold { background: #c9a227; } .tms-green { background: #1e7a4f; }

/* Tables */
.tms-sub { font-size: 1.02rem; font-weight: 800; color: #16395f; margin: 1.3rem 0 .7rem; }
.tms-table { border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; margin-bottom: 1rem; }
.tms-row { display: grid; grid-template-columns: 200px 1fr; }
.tms-row + .tms-row { border-top: 1px solid #e8eef5; }
.tms-key { background: #0f2743; color: #fff; font-weight: 800; font-size: .85rem; padding: .8rem 1rem; display: flex; align-items: center; }
.tms-key-gold { background: #c9a227; color: #0a1b30; }
.tms-val { background: #f4f7fb; color: #334155; font-size: .88rem; padding: .8rem 1rem; line-height: 1.65; }
.tms-note { background: #eef4fa; border-left: 4px solid #16395f; border-radius: 12px; padding: 1rem 1.2rem; font-size: .9rem; color: #334155; margin: 1rem 0; }
.tms-note i { color: #16395f; margin-right: .4rem; }

/* Checklist */
.tms-check { list-style: none; margin: .5rem 0 1.2rem; padding: 0; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; }
.tms-check li { position: relative; padding: .8rem 1rem .8rem 3rem; font-size: .9rem; color: #334155; background: #f4f7fb; }
.tms-check li + li { border-top: 1px solid #e8eef5; }
.tms-check li::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 40px; background: #0f2743; }
.tms-check li::after { content: '\f0c8'; font-family: 'Font Awesome 6 Free'; font-weight: 400; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #fff; font-size: .8rem; }
.tms-small { font-size: .82rem !important; color: #64748b !important; }
.tms-sources { list-style: none; padding: 0; margin: .6rem 0 0; }
.tms-sources li { font-size: .82rem; margin-bottom: .45rem; word-break: break-all; }
.tms-sources i { color: #059669; font-size: .72rem; margin-right: .35rem; }
.tms-sources a { color: #166534; }

@media (max-width: 768px) {
  .rules-card-wrapper { padding: 1.5rem; }
  .tms-row { grid-template-columns: 1fr; }
  .tms-hero { min-height: 70vh; padding-top: 7rem; }
}
