/* ============================================================
   CDF PAGES – Calendar, Formation, Conflit, Milsim CDF
   Shared classes (.hero-inner, .pill, .cdf-card, etc.) defined
   ONCE in Milsim CDF section (last = priority)
============================================================ */

/* ===========================
   CALENDAR
=========================== */
.cdf-calendar-page { width: min(1400px, 98vw); margin: 14px auto; }
.cdf-calendar-card { position: relative; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, rgba(10,15,10,.75), rgba(10,15,10,.92)), url('/css/camo.jpg') center/cover no-repeat; background-blend-mode: overlay; border: 1px solid rgba(255,255,255,.10); box-shadow: 0 18px 45px rgba(0,0,0,.65), inset 0 0 0 2px rgba(0,0,0,.35); }
.cdf-calendar-card::before { content: ""; position: absolute; inset: 10px; border-radius: 12px; border: 2px dashed rgba(255,255,255,.10); pointer-events: none; }
.cdf-calendar-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 18px 18px, rgba(200,200,200,.35) 0 6px, rgba(0,0,0,0) 7px), radial-gradient(circle at calc(100% - 18px) 18px, rgba(200,200,200,.35) 0 6px, rgba(0,0,0,0) 7px), radial-gradient(circle at 18px calc(100% - 18px), rgba(200,200,200,.35) 0 6px, rgba(0,0,0,0) 7px), radial-gradient(circle at calc(100% - 18px) calc(100% - 18px), rgba(200,200,200,.35) 0 6px, rgba(0,0,0,0) 7px); opacity: .80; }
.cdf-calendar-head { position: relative; z-index: 2; padding: 16px 18px 14px; border-bottom: 1px solid rgba(255,255,255,.06); background: linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,0)); }
.cdf-calendar-kicker { font-family: monospace; letter-spacing: 2px; font-size: 12px; opacity: .85; margin-bottom: 6px; }
.cdf-calendar-title { font-family: 'BlackOpsOne', system-ui, sans-serif; font-size: 26px; color: #fff; text-shadow: 2px 2px 8px #000; text-transform: uppercase; margin-bottom: 2px; }
.cdf-calendar-sub { opacity: .85; font-size: 13px; }
.cdf-calendar-body, .cdf-calendar-loading { position: relative; z-index: 2; padding: 14px 14px 16px; }

/* Syncfusion Schedule */
.cdf-schedule.e-schedule { border: 1px solid rgba(255,255,255,.10); border-radius: 14px; overflow: hidden; background: rgba(0,0,0,.18); box-shadow: inset 0 0 0 2px rgba(0,0,0,.35); }
.cdf-schedule .e-schedule-toolbar { background: rgba(15,25,15,.70); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(2px); }
.cdf-schedule .e-toolbar-item .e-tbar-btn { border-radius: 12px; border: 1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.18); }
.cdf-schedule .e-toolbar-item .e-tbar-btn:hover { filter: brightness(1.12); }
.cdf-schedule .e-date-range { font-family: monospace; letter-spacing: 1px; }
.cdf-schedule .e-work-cells, .cdf-schedule .e-allday-cells, .cdf-schedule .e-time-cells, .cdf-schedule .e-header-cells { background: rgba(0,0,0,.10); color: rgba(255,255,255,.92); border-color: rgba(255,255,255,.06); }
.cdf-schedule .e-work-cells:hover { background: rgba(143,191,90,.10); }
.cdf-schedule .e-current-date { background: rgba(143,191,90,.14) !important; border-color: rgba(212,249,149,.22) !important; }
.cdf-schedule .e-appointment { border-radius: 10px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 10px 22px rgba(0,0,0,.35); }
.cdf-schedule .e-appointment .e-subject { font-weight: 900; }
.cdf-schedule .e-month-view .e-work-cells { background: rgba(0,0,0,.12); }
@media (max-width: 992px) { .cdf-calendar-title { font-size: 22px; } .cdf-calendar-body { padding: 12px; } .cdf-schedule.e-schedule { border-radius: 12px; } }
@media (max-width: 520px) { .cdf-calendar-head { padding: 14px 14px 12px; } .cdf-calendar-title { font-size: 18px; } .cdf-calendar-sub { font-size: 12px; } .cdf-schedule .e-schedule-toolbar .e-toolbar-items { flex-wrap: wrap; height: auto !important; } .cdf-schedule .e-schedule-toolbar { padding-bottom: 6px; } }

/* ===========================
   FORMATION – unique selectors
=========================== */
.cdf-formation-page { width: min(1400px, 98vw); margin: 14px auto; }
.cdf-formation-hero { position: relative; border-radius: 16px; overflow: hidden; padding: 18px; background: linear-gradient(180deg, rgba(10,15,10,.70), rgba(10,15,10,.88)), url('/css/camo.jpg') center/cover no-repeat; background-blend-mode: overlay; border: 1px solid rgba(255,255,255,.10); box-shadow: 0 18px 45px rgba(0,0,0,.65), inset 0 0 0 2px rgba(0,0,0,.35); }
.cdf-formation-hero::before { content: ""; position: absolute; inset: 2px; border-radius: 12px; border: 2px solid #000; pointer-events: none; box-shadow: inset 1px 1px 4px rgba(0,0,0,.7),0 0 4px rgba(255,255,255,.25); }
.cdf-formation-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .8; }
.cdf-formation-hero > * { position: relative; z-index: 2; }
.cdf-formation-grid { margin-top: 12px; display: grid; grid-template-columns: 1.4fr .9fr; gap: 12px; }
.cdf-mini-note { opacity: .85; font-size: 12px; border-top: 1px dashed rgba(255,255,255,.10); padding-top: 10px; }
@media (max-width: 992px) { .cdf-formation-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cdf-formation-hero { padding: 14px; } }

/* ===========================
   CONFLIT – unique selectors
=========================== */
.cdf-conflit-page { width: min(1400px, 98vw); margin: 14px auto; }
.cdf-conflit-hero { position: relative; border-radius: 16px; overflow: hidden; padding: 18px; background: linear-gradient(180deg, rgba(10,15,10,.70), rgba(10,15,10,.88)), url('/css/camo.jpg') center/cover no-repeat; background-blend-mode: overlay; border: 1px solid rgba(255,255,255,.10); box-shadow: 0 18px 45px rgba(0,0,0,.65), inset 0 0 0 2px rgba(0,0,0,.35); }
.cdf-conflit-hero::before { content: ""; position: absolute; inset: 2px; border-radius: 12px; border: 2px solid #000; pointer-events: none; box-shadow: inset 1px 1px 4px rgba(0,0,0,.7),0 0 4px rgba(255,255,255,.25); }
.cdf-conflit-hero > * { position: relative; z-index: 2; }
.cdf-conflit-grid { margin-top: 12px; display: grid; grid-template-columns: 1.4fr .9fr; gap: 12px; }
@media (max-width: 992px) { .cdf-conflit-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cdf-conflit-hero { padding: 14px; } }

/* Rivets */
.cdf-rivet { --size: 16px; --gap: 14px; position: absolute; width: var(--size); height: var(--size); border-radius: 50%; pointer-events: none; z-index: 1; background: linear-gradient(145deg, #2a2a2a, #6f6f6f); border: 2px solid #000; box-shadow: inset 2px 2px 5px rgba(0,0,0,.70), inset -2px -2px 4px rgba(255,255,255,.14), 0 2px 5px rgba(0,0,0,.65), 0 0 4px rgba(255,255,255,.22); }
.cdf-rivet::before { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.85) 0 2px, rgba(255,255,255,.20) 3px, transparent 7px), radial-gradient(circle at 70% 72%, rgba(0,0,0,.55) 0 4px, transparent 9px), radial-gradient(circle at 50% 55%, rgba(255,255,255,.10) 0 6px, rgba(0,0,0,.18) 9px); }
.cdf-rivet.tl { top: var(--gap); left: var(--gap); }
.cdf-rivet.tr { top: var(--gap); right: var(--gap); }
.cdf-rivet.bl { bottom: var(--gap); left: var(--gap); }
.cdf-rivet.br { bottom: var(--gap); right: var(--gap); }

/* Facts (Formation + Conflit only) */
.cdf-facts { margin-top: 10px; display: grid; gap: 10px; }
.fact { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.16); border: 1px solid rgba(255,255,255,.08); }
.fact-k { font-family: monospace; letter-spacing: 1px; opacity: .9; white-space: nowrap; }
.fact-v { font-weight: 800; opacity: .95; text-align: right; }
@media (max-width: 520px) { .fact { flex-direction: column; align-items: flex-start; } .fact-v { text-align: left; } }

/* ===========================
   MILSIM CDF – unique + ALL SHARED CLASSES
=========================== */
.cdf-milsim-page { width: min(1400px, 98vw); margin: 14px auto; }
.cdf-milsim-hero { position: relative; border-radius: 16px; overflow: hidden; padding: 18px; background: linear-gradient(180deg, rgba(10,15,10,.70), rgba(10,15,10,.88)), url('/css/camo.jpg') center/cover no-repeat; background-blend-mode: overlay; border: 1px solid rgba(255,255,255,.10); box-shadow: 0 18px 45px rgba(0,0,0,.65), inset 0 0 0 2px rgba(0,0,0,.35); }
.cdf-milsim-hero::before { content: ""; position: absolute; inset: 2px; border-radius: 12px; border: 2px solid #000; pointer-events: none; box-shadow: inset 1px 1px 4px rgba(0,0,0,.7),0 0 4px rgba(255,255,255,.25); }
.cdf-milsim-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .8; }
.cdf-milsim-grid { margin-top: 12px; display: grid; grid-template-columns: 1.4fr .9fr; gap: 12px; }
@media (max-width: 992px) { .cdf-milsim-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cdf-milsim-hero { padding: 14px; } }

/* SHARED: hero */
.hero-inner { margin-left: 20px; position: relative; z-index: 2; }
.hero-kicker { font-family: monospace; letter-spacing: 2px; opacity: .85; font-size: 12px; margin-bottom: 6px; }
.hero-title { font-family: 'BlackOpsOne', system-ui, sans-serif; font-size: 38px; margin: 0 0 6px; color: #fff; text-shadow: 2px 2px 10px #000; text-transform: uppercase; }
.hero-sub { max-width: 980px; opacity: .9; margin: 0 0 12px; line-height: 1.45; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
@media (max-width: 992px) { .hero-title { font-size: 30px; } }
@media (max-width: 520px) { .hero-title { font-size: 22px; } .hero-sub { font-size: 13px; } }

/* SHARED: pill/chip */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.12); font-family: monospace; letter-spacing: 1px; font-size: 12px; }
.chip, .pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.10); font-size: 12px; }
.chip { color: var(--cdf-text-dim); border: 1px solid rgba(255,255,255,.15); padding: 6px 10px; font-family: monospace; letter-spacing: 1px; background: rgba(0,0,0,.16); }
.cdf-right { display: grid; gap: 12px; }

/* SHARED: card */
.cdf-card { position: relative; border-radius: 16px; overflow: hidden; background: rgba(15,22,15,.92); border: 1px solid rgba(255,255,255,.10); box-shadow: 0 18px 45px rgba(0,0,0,.45), inset 0 0 0 2px rgba(0,0,0,.35); }
.cdf-card-pad { padding: 14px; }
.cdf-card-head { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.06); background: linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,0)); border-radius: 12px; margin-bottom: 10px; }
.cdf-card-title { font-family: 'BlackOpsOne', system-ui, sans-serif; color: var(--cdf-accent-2, rgba(212,249,149,.95)); text-transform: uppercase; letter-spacing: 1px; }
.cdf-card-hint { font-family: monospace; opacity: .75; letter-spacing: 1px; font-size: 12px; }
.cdf-prose p { margin: 0 0 12px; opacity: .95; line-height: 1.45; }
.cdf-callout { border-radius: 14px; background: rgba(0,0,0,.16); border: 1px solid rgba(255,255,255,.08); padding: 12px; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); }
.cdf-callout-title { font-family: 'BlackOpsOne', system-ui, sans-serif; letter-spacing: 1px; color: var(--cdf-accent-2, rgba(212,249,149,.95)); margin-bottom: 6px; }
.cdf-callout-body { opacity: .95; }
.cdf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Milsim-only: steps, links, CTA */
.cdf-steps { display: grid; gap: 10px; margin-top: 10px; }
.step { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.16); border: 1px solid rgba(255,255,255,.08); }
.step-k { font-family: monospace; letter-spacing: 1px; opacity: .9; white-space: nowrap; }
.step-v { font-weight: 800; opacity: .95; text-align: right; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hero-link { color: rgba(212,249,149,.95); text-decoration: none; font-family: monospace; letter-spacing: 1px; padding: 6px 10px; border-radius: 12px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.10); }
.hero-link:hover { filter: brightness(1.15); text-decoration: none; }
.cdf-cta .cta-row { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.cdf-cta .btn { border-radius: 12px; }
@media (max-width: 520px) { .step { flex-direction: column; align-items: flex-start; } .step-v { text-align: left; } .hero-links { gap: 8px; } .hero-link { width: 100%; text-align: center; } .cdf-cta .btn { width: 100%; } }