/* ennusta.com only (loaded by inc/shell_layout.php, never on vedonlyoja.com).
   Top bar (oas-, copied from the oddsalerter.com bar) and footer (pmx-); prefixes keep it clear of pm.css.
   The logo font is linked in by shell/setup_ennusta.sh as /fonts/MagistralBlack.otf. */

@font-face {
  font-family: "magistral black";
  src: url("/fonts/MagistralBlack.otf");
  font-display: swap;
}

:root {
  --pmh-navy: #282D4A;
  --pmh-light-blue: #b6c8d8;
  --pmh-gold: #F1C40F;
  --pmh-link: #3772df;
  --pmh-ink: #1d1e1f;
  --pmh-text: #48494a;
  --pmh-mute: #6c6d6f;
  --pmh-faint: #a5a6a7;
  --pmh-line: #dcdddf;
  --pmh-div: #f1f2f3;
  --pmh-zebra: #f7f7f8;
  --pmh-font: -apple-system, BlinkMacSystemFont, "Roboto", "Arial", "Helvetica Neue", Helvetica, sans-serif;
}

body.pmx {
  margin: 0;
  background: #edeef0;           /* the site's light grey page */
  color: #2b2c2d;
  font-family: "Anek Devanagari", sans-serif;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

/* ── top bar: copy of the SPORTSBETTOR.pro bar from oddsalerter.com (dark-theme rules left out, this site has none) ── */
.oas{background:#282D4A;border-bottom:1px solid #5b6396;box-shadow:0 2px 4px rgba(60,60,60,.5);color:#fff;font:14px/1.2 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;position:relative;z-index:60}
.oas-in{max-width:1280px;width:96%;margin:0 auto;height:32px;box-sizing:border-box;padding-bottom:3px;display:flex;align-items:center;justify-content:center;gap:12px;position:relative}
.oas a{color:#fff;text-decoration:none}
.oas-brand{line-height:1;display:inline-flex;align-items:center;height:29px;font-family:"magistral black",sans-serif;font-weight:400;font-size:14px;letter-spacing:0;color:#F1C40F!important}
.oas-brand b{color:inherit;font-weight:inherit}
.oas-tag{color:#b7bbd6;font-size:12px;line-height:1}
.oas-r{position:absolute;right:0;top:1px;height:29px;display:flex;align-items:center;gap:8px}
.oas-um{position:relative}
.oas-umb{display:inline-flex;align-items:center;gap:6px;background:none;border:0;color:#dfe2ee;font:inherit;font-size:15px;cursor:pointer;padding:4px 8px;border-radius:6px}
.oas-umb:hover{background:#363c63}
.oas-un{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.oas-av{width:24px;height:24px;border-radius:50%;background:#3a4272;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;text-transform:uppercase}
.oas-umb .material-symbols-outlined{font-size:20px}
.oas-dd{position:absolute;right:0;top:34px;min-width:300px;background:#fff;color:#1d1e1f;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.25);padding:0;overflow:hidden;text-align:left;z-index:60}
.oas-dd[hidden]{display:none}
.oas-hd{display:flex;align-items:center;gap:12px;padding:14px 16px 10px}
.oas-av-l{width:40px;height:40px;font-size:17px;background:#3772df}
.oas-hn{display:flex;flex-direction:column;line-height:1.3;min-width:0}
.oas-hn b{font-size:16px;font-weight:700}
.oas-hn i{font-style:normal;font-size:12px;color:#6c6d6f;overflow:hidden;text-overflow:ellipsis}
.oas-dd a{display:block;color:#1d1e1f!important;padding:11px 14px;border-radius:6px;font-size:15px}
.oas-dd a:hover{background:#eef0f4}
.oas-dd a.oas-it{display:flex;align-items:center;gap:12px;border-radius:0;border-top:1px solid #e6e8ee;padding:13px 16px;font-size:15px}
.oas-it .material-symbols-outlined{font-size:20px;color:#6c6d6f}
.oas-it .oas-ch{margin-left:auto}
.oas-btn{display:inline-flex;align-items:center;justify-content:center;height:22px;box-sizing:border-box;padding:0 10px 3px;border-radius:6px;background:#3772df;font-weight:600;font-size:12px;line-height:1}
.oas-btn.oas-li{display:none}
.oas-ghost{display:inline-flex;align-items:center;height:22px;box-sizing:border-box;padding:0 6px 3px;color:#dfe2ee;font-size:13px;line-height:1}
@media (max-width:768px){
  .oas-tag{display:none}
  .oas-in{gap:8px;justify-content:flex-start;height:50px;padding-top:6px;padding-bottom:7px}
  .oas-r{position:static;margin-left:auto;height:auto;gap:10px}
  .oas-r .oas-ghost{display:none}
  .oas-r .oas-btn{font-size:14px;height:32px;padding:0 14px 3px}
  .oas-r .oas-btn.oas-su{display:none}
  .oas-r .oas-btn.oas-li{display:inline-flex}
  .oas-umb{font-size:16px}
  .oas-av{width:26px;height:26px;font-size:13px}
  .oas-dd{top:38px;min-width:280px}
  .oas-brand{height:auto;font-size:17px}
}

/* ── Ennusta bar (under the vedonlyoja.com strip) ── */
.pmx-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ens{position:sticky;top:0;z-index:55;background:#fff;border-bottom:1px solid #dde0e6;font:14px/1.2 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
.ens-in{max-width:1280px;width:96%;margin:0 auto;min-height:46px;display:flex;align-items:center;gap:22px}
.ens-logo{font-family:"magistral black",sans-serif;font-size:18px;color:#111827;text-decoration:none;letter-spacing:.2px;white-space:nowrap}
.ens-logo b{color:inherit;font-weight:inherit}
.ens-tabs{display:flex;gap:22px;align-self:stretch}
.ens-tabs a{display:flex;align-items:center;color:#5b6470;font-weight:600;text-decoration:none;white-space:nowrap;box-shadow:inset 0 -2px 0 transparent}
.ens-tabs a:hover{color:#111827}
.ens-tabs a.is-on{color:#111827;box-shadow:inset 0 -2px 0 #2c9cdc}
.ens-r{margin-left:auto;display:flex;align-items:center;gap:8px}
.ens-chip{background:#f1f2f4;border:1px solid #dde0e6;border-radius:8px;padding:5px 10px;color:#111827;font-weight:700;font-size:13px;text-decoration:none;white-space:nowrap}
.ens-rank{color:#8a6d00}.ens-rank span{color:#6b7280;font-weight:500}
.oas-th{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;background:none;border:0;border-radius:6px;color:#5b6470;cursor:pointer}
.oas-th:hover{background:#eef0f4;color:#111827}
.oas-th .material-symbols-outlined{font-size:20px}
.pmx-hero{max-width:1280px;width:96%;margin:22px auto 24px;text-align:center;padding:10px 0 4px}
.pmx-hero h2{margin:0 0 6px;font-size:26px!important;line-height:1.2;font-weight:700;color:#111827}
.pmx-hero p{margin:0 0 12px;color:#5b6470}
.pmx-hero-cta{display:flex;gap:14px;align-items:center;justify-content:center;flex-wrap:wrap}
.pmx-hero .pmx-hero-btn{background:#1e6fd9;color:#fff!important;font-weight:700;line-height:1;padding:11px 18px 8px;border-radius:8px;text-decoration:none}
.pmx-hero-link{color:#00709c;font-weight:600}
@media (max-width:768px){
  .ens-in{flex-wrap:wrap;gap:0 10px;min-height:0;padding-top:4px}
  .ens-logo{font-size:17px;height:40px;display:flex;align-items:center}
  .ens-r{height:40px}
  .ens-tabs{order:3;width:100%;gap:20px;overflow-x:auto;scrollbar-width:none;border-top:1px solid #e6e8ee;height:40px}
  .ens-tabs::-webkit-scrollbar{display:none}
  .pmx-hero h2{font-size:21px!important}
  .pmx-hero { margin-bottom: 34px; }
}

.pm .pm-prize-note { margin: 10px 0 0; font-size: inherit; font-weight: 400; color: inherit; }

@media (max-width:768px){
  body.pmx .pm { margin-top: 18px; }
  body.pmx .pm-how { display: none; }
}

/* profit chart range switch (1 pv / 1 vk / Kaikki): one row, never wraps */
#pm-pnl-ranges { flex-wrap: nowrap; flex: none; white-space: nowrap; }
.pm-pnl-top > div:first-child { min-width: 0; }
@media (max-width:768px){
  #pm-pnl-ranges button { padding-left: 9px; padding-right: 9px; }
}

/* ── footer ── */
.pmx-foot { background: #fff; border-top: 1px solid var(--pmh-line); margin-top: 32px; color: #5b6470; font-size: 14px; font-family: var(--pmh-font); }
.pmx-foot-in { max-width: 1280px; margin: 0 auto; padding: 22px 16px 26px; }
.pmx-foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.pmx-foot-links { display: flex; gap: 18px; }
.pmx-foot a, .pmx-foot strong { color: inherit; font-weight: 600; text-decoration: none; }
.pmx-brand { font-family: "magistral black", sans-serif; font-weight: 400 !important; }
.pmx-foot a:hover { text-decoration: underline; }
.pmx-foot-small { margin: 12px 0 0; color: inherit; font-size: 13px; }

@media (max-width: 768px) { .pmx-foot-links { flex-wrap: wrap; } }

/* Cookie consent banner */
.pmx-cc{position:fixed;left:12px;right:12px;bottom:12px;z-index:90;max-width:560px;margin:0 auto;display:flex;align-items:center;gap:14px;padding:12px 14px;background:#1b2330;color:#e8ecf2;border:1px solid #2f3a4b;border-radius:12px;box-shadow:0 6px 24px rgba(0,0,0,.35);font-size:14px;line-height:1.4}
.pmx-cc[hidden]{display:none}
.pmx-cc p{margin:0;flex:1}
.pmx-cc-btns{display:flex;gap:8px;flex:none}
.pmx-cc button{font:inherit;font-weight:600;line-height:1;padding:10px 14px 7px;border-radius:8px;border:1px solid #475569;background:transparent;color:inherit;cursor:pointer}
.pmx-cc button.is-primary{background:#5cd4ff;border-color:#5cd4ff;color:#06222e}
@media (max-width:520px){.pmx-cc{flex-direction:column;align-items:stretch;gap:10px}.pmx-cc-btns{justify-content:flex-end}}
