/* milyon88portal.ph Design DNA Stylesheet (prefix: cph5) */
:root {
  --cph5-bg: #111A1C;
  --cph5-bg-deep: #0B1214;
  --cph5-surface: #2C4247;
  --cph5-surface-mid: #1B2B2F;
  --cph5-ink: #EEF4F5;
  --cph5-ink-muted: #B8CDD1;
  --cph5-accent: #3DDCA9;
  --cph5-accent2: #59E916;
  --cph5-on-accent: #111111;
  --cph5-border: rgba(61, 220, 169, 0.34);
  --cph5-font-display: 'Young Serif', Georgia, serif;
  --cph5-font-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --cph5-base: 18px;
  --cph5-h4: 1.25rem;
  --cph5-h3: 1.563rem;
  --cph5-h2: 1.953rem;
  --cph5-h1: 2.441rem;
  --cph5-rail-w: 264px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--cph5-base); scroll-behavior: smooth; }
body.cph5-body {
  margin: 0;
  background: var(--cph5-bg);
  color: var(--cph5-ink);
  font-family: var(--cph5-font-body);
  line-height: 1.68;
  overflow-x: hidden;
}

a { color: var(--cph5-accent); text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--cph5-accent2); }
:focus-visible { outline: 2px solid var(--cph5-accent2); outline-offset: 3px; }

.cph5-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--cph5-accent); color: var(--cph5-on-accent);
  padding: 10px 16px; font-weight: 700; z-index: 999;
}
.cph5-skip:focus { left: 12px; top: 12px; }

/* Dashboard Left Rail Shell */
.cph5-shell {
  display: grid;
  grid-template-columns: var(--cph5-rail-w) minmax(0, 1fr);
  min-height: 100vh;
}

.cph5-rail {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--cph5-bg-deep);
  border-right: 1px solid var(--cph5-border);
  padding: 20px 16px;
  display: flex; flex-direction: column; gap: 18px;
}

.cph5-brand-link {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--cph5-ink);
}
.cph5-brand-name {
  font-family: var(--cph5-font-display);
  font-size: 1.15rem; line-height: 1.2;
}
.cph5-age-pill {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  color: var(--cph5-on-accent); background: var(--cph5-accent2);
  padding: 2px 8px; border-radius: 999px; margin-top: 2px;
}

.cph5-rail-nav { display: flex; flex-direction: column; gap: 4px; }
.cph5-rail-nav a {
  display: block; padding: 9px 12px; text-decoration: none;
  color: var(--cph5-ink); font-size: 0.92rem; font-weight: 500;
  border-left: 3px solid transparent;
}
.cph5-rail-nav a:hover, .cph5-rail-nav a[aria-current="page"] {
  background: var(--cph5-surface-mid);
  border-left-color: var(--cph5-accent);
  color: var(--cph5-accent);
}

.cph5-rail-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--cph5-border); }

/* Outlined CTA Buttons (DNA: outlined-button) */
.cph5-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  font-family: var(--cph5-font-body); font-size: 0.94rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
  border: 2px solid var(--cph5-accent); color: var(--cph5-accent);
  background: transparent;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}
.cph5-btn:hover, .cph5-btn:focus-visible {
  background: var(--cph5-accent); color: var(--cph5-on-accent);
}
.cph5-btn-alt {
  border-color: var(--cph5-accent2); color: var(--cph5-accent2);
}
.cph5-btn-alt:hover, .cph5-btn-alt:focus-visible {
  background: var(--cph5-accent2); color: var(--cph5-on-accent);
}

/* Main Stage */
.cph5-stage { min-width: 0; display: flex; flex-direction: column; }

/* Floating Pill Nav (DNA: floating-pill-nav) */
.cph5-pillbar-wrap {
  position: sticky; top: 10px; z-index: 40;
  padding: 10px 24px 0;
}
.cph5-pillbar {
  max-width: 1080px; margin: 0 auto;
  background: rgba(11, 18, 20, 0.92);
  border: 1px solid var(--cph5-border);
  border-radius: 999px;
  padding: 8px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  backdrop-filter: blur(8px);
}
.cph5-pill-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cph5-pill-links a {
  text-decoration: none; color: var(--cph5-ink-muted); font-size: 0.84rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.cph5-pill-links a:hover { color: var(--cph5-accent); background: var(--cph5-surface-mid); }
.cph5-pill-actions { display: flex; align-items: center; gap: 8px; }
.cph5-pill-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid var(--cph5-accent); color: var(--cph5-accent);
  text-decoration: none; font-size: 0.84rem; font-weight: 700;
}
.cph5-pill-cta:hover { background: var(--cph5-accent); color: var(--cph5-on-accent); }
.cph5-menu-btn {
  display: none; min-height: 40px; min-width: 44px; padding: 6px 12px;
  background: transparent; border: 1.5px solid var(--cph5-accent); color: var(--cph5-ink);
  border-radius: 999px; font-weight: 700; cursor: pointer;
}

/* Marquee Strip (DNA: marquee-strip) */
.cph5-marquee-wrap {
  overflow: hidden; border-top: 1px solid var(--cph5-border); border-bottom: 1px solid var(--cph5-border);
  background: var(--cph5-surface-mid); margin-top: 14px;
}
.cph5-marquee-track {
  display: flex; gap: 36px; white-space: nowrap; padding: 8px 0;
  font-size: 0.82rem; color: var(--cph5-ink-muted);
  animation: cph5-scroll 34s linear infinite;
}
.cph5-marquee-track strong { color: var(--cph5-accent); }
@keyframes cph5-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .cph5-marquee-track { animation: none; flex-wrap: wrap; white-space: normal; justify-content: center; padding: 8px 16px; }
}

/* Main Content Container */
.cph5-main {
  width: 100%; max-width: 1080px; margin: 0 auto;
  padding: 24px 28px 56px;
}

/* Breadcrumbs */
.cph5-crumbs {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 0.82rem; color: var(--cph5-ink-muted); margin-bottom: 16px;
}
.cph5-crumbs a { color: var(--cph5-ink-muted); text-decoration: none; }
.cph5-crumbs a:hover { color: var(--cph5-accent); }

/* Stat-Strip-Led Hero (DNA: stat-strip-led) */
.cph5-stat-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  margin-bottom: 20px;
}
.cph5-stat-cell {
  background: var(--cph5-surface-mid);
  border: 1px solid var(--cph5-border);
  padding: 10px 14px;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}
.cph5-stat-label { display: block; font-size: 0.74rem; color: var(--cph5-ink-muted); }
.cph5-stat-val { display: block; font-size: 0.96rem; font-weight: 700; color: var(--cph5-accent); }

/* Typography */
h1.cph5-h1, h2.cph5-h2, h3.cph5-h3 {
  font-family: var(--cph5-font-display);
  font-weight: 400; color: var(--cph5-ink);
  line-height: 1.22;
}
h1.cph5-h1 { font-size: clamp(1.75rem, 3.2vw, var(--cph5-h1)); margin: 0 0 14px; }
h2.cph5-h2 { font-size: clamp(1.35rem, 2.2vw, var(--cph5-h2)); margin: 36px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--cph5-border); }
h3.cph5-h3 { font-size: 1.2rem; margin: 20px 0 8px; color: var(--cph5-accent); }

/* Byline & Affiliate Bar */
.cph5-byline {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  font-size: 0.85rem; color: var(--cph5-ink-muted);
  margin-bottom: 18px;
}
.cph5-disclosure {
  font-size: 0.8rem; color: var(--cph5-ink-muted);
  background: var(--cph5-bg-deep); border-left: 3px solid var(--cph5-accent2);
  padding: 10px 14px; margin-bottom: 20px;
}

/* Ticket-Notch Cards (DNA: ticket-notch) */
.cph5-card {
  background: var(--cph5-surface-mid);
  border: 1px solid var(--cph5-border);
  padding: 20px 22px;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}
.cph5-tldr {
  background: var(--cph5-surface);
  border: 1px solid var(--cph5-accent);
  padding: 18px 22px; margin: 18px 0 24px;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}
.cph5-tldr-tag { font-weight: 700; color: var(--cph5-accent2); display: inline-block; margin-bottom: 6px; }

.cph5-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 26px; }

/* Media Figure */
.cph5-figure { margin: 22px 0; }
.cph5-figure img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid var(--cph5-border);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}
.cph5-figure figcaption { font-size: 0.8rem; color: var(--cph5-ink-muted); margin-top: 6px; }

/* Myth vs Fact Grid */
.cph5-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; margin: 18px 0; }
.cph5-myth-label { color: #FF9E8A; font-weight: 700; font-size: 0.82rem; display: block; margin-bottom: 4px; }
.cph5-fact-label { color: var(--cph5-accent2); font-weight: 700; font-size: 0.82rem; display: block; margin: 10px 0 4px; }

/* Tables */
.cph5-table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--cph5-border); }
table.cph5-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.cph5-table caption { text-align: left; font-weight: 700; padding: 12px 14px; background: var(--cph5-surface); color: var(--cph5-ink); }
table.cph5-table th, table.cph5-table td { padding: 11px 14px; text-align: left; border-top: 1px solid var(--cph5-border); }
table.cph5-table th { background: var(--cph5-bg-deep); color: var(--cph5-accent); font-weight: 700; }
table.cph5-table tr:nth-child(even) td { background: rgba(44, 66, 71, 0.25); }

/* Walkthrough Steps */
ol.cph5-steps { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; }
ol.cph5-steps li {
  display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start;
  background: var(--cph5-surface-mid); border: 1px solid var(--cph5-border); padding: 14px 16px;
}
.cph5-step-num {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--cph5-accent); color: var(--cph5-on-accent); font-weight: 800; font-size: 0.85rem;
}

/* PAA FAQ Blocks */
.cph5-faq-list { display: grid; gap: 14px; margin: 18px 0; }
.cph5-faq-item {
  background: var(--cph5-surface-mid); border: 1px solid var(--cph5-border); padding: 16px 20px;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}
.cph5-faq-item h3 { margin-top: 0; }

/* Related Links & References */
.cph5-link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0; }
.cph5-link-card {
  display: block; text-decoration: none; color: var(--cph5-ink);
  background: var(--cph5-surface-mid); border: 1px solid var(--cph5-border);
  padding: 14px 16px; font-weight: 600; font-size: 0.92rem;
}
.cph5-link-card:hover { border-color: var(--cph5-accent); color: var(--cph5-accent); }

.cph5-rg-box {
  background: var(--cph5-bg-deep); border: 1.5px solid var(--cph5-accent2);
  padding: 20px 22px; margin: 32px 0 24px;
}

/* Minimal One-Row Footer (DNA: minimal-one-row) */
footer.cph5-footer {
  margin-top: auto;
  background: var(--cph5-bg-deep);
  border-top: 1px solid var(--cph5-border);
  padding: 18px 28px;
}
.cph5-footer-row {
  max-width: 1080px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  font-size: 0.82rem; color: var(--cph5-ink-muted);
}
.cph5-footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.cph5-footer-links a { color: var(--cph5-ink-muted); text-decoration: none; }
.cph5-footer-links a:hover { color: var(--cph5-accent); }

/* Mobile Sticky Bottom Action Bar */
.cph5-mob-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--cph5-bg-deep); border-top: 1px solid var(--cph5-border);
  padding: 8px 12px; gap: 10px;
}
.cph5-mob-bar a { flex: 1; }

@media (max-width: 959px) {
  .cph5-shell { grid-template-columns: 1fr; }
  .cph5-rail {
    position: fixed; left: -290px; top: 0; bottom: 0; width: 270px; z-index: 80;
    transition: left 0.2s ease;
  }
  .cph5-rail.cph5-open { left: 0; }
  .cph5-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .cph5-pill-links { display: none; }
  .cph5-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cph5-main { padding: 18px 16px 86px; }
  .cph5-pillbar-wrap { padding: 8px 12px 0; }
  .cph5-mob-bar { display: flex; }
  footer.cph5-footer { padding-bottom: 80px; }
}
