/* ========================================================================
   HUB-SIDER (f.eks. /casinoer/). Lastes etter legal.css og bruker
   variablene derfra. Statistikkstripen er samme stil som paa forsiden.
   ======================================================================== */

:root { --logo-bg: #2a3c51; }

/* --- Statistikkstripe --- */
.hub-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  text-align: center; list-style: none;
  margin: 8px 0 40px; padding: 14px 8px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.legal .hub-stats li { margin: 0; }
.hub-stat-num {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 22px; color: var(--text-primary); line-height: 1.2;
}
.hub-stat-num span { color: var(--accent-green); }
.hub-stat-label {
  display: block; font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; margin-top: 2px;
}

/* --- Oversiktskort 2x2 --- */
.hub-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 20px; }
.legal a.hub-card {
  display: block; padding: 18px 18px 16px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); color: inherit; text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.legal a.hub-card:hover { border-color: var(--accent-green); transform: translateY(-1px); text-decoration: none; }
.hub-card h3 {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  margin: 0 0 6px; color: var(--text-primary);
}
.hub-card h3::after { content: " →"; color: var(--accent-green); }
.legal .hub-card p { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.55; }

/* --- Casinotabell --- */
.hub-casino { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.hub-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 32px; flex: none;
  background: var(--logo-bg); border-radius: 6px; padding: 3px;
}
.hub-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.hub-score { font-weight: 700; white-space: nowrap; }
.hub-score small { font-weight: 400; color: var(--text-muted); }

/* --- Testmetode, nummererte steg --- */
.legal ol.hub-steps { list-style: none; padding: 0; counter-reset: steg; margin: 18px 0 24px; }
.legal ol.hub-steps li {
  counter-increment: steg; position: relative;
  padding: 0 0 0 44px; margin-bottom: 14px;
}
.legal ol.hub-steps li::before {
  content: counter(steg); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-green); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
}

/* --- Ansvarlig spill --- */
.rg-box {
  margin: 20px 0 8px; padding: 22px 22px 6px;
  background: var(--bg-card); border: 2px solid var(--accent-orange);
  border-radius: var(--radius-lg);
}
.legal .rg-box h2 { margin-top: 0; }

/* --- Videre --- */
.legal ul.hub-next { list-style: none; padding: 0; display: grid; gap: 10px; }
.legal ul.hub-next li {
  margin: 0; padding: 14px 16px; background: var(--bg-card);
  border: 1px solid var(--border-color); border-radius: var(--radius-md);
}

@media (max-width: 640px) {
  .hub-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hub-cards { grid-template-columns: 1fr; }
}

/* --- Bilder (partials/figur.njk) --- */
.hub-figur { margin: 24px 0 28px; }
.hub-figur img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--border-color); border-radius: var(--radius-md);
  background: var(--bg-surface);
}
.hub-figur figcaption { font-size: 13px; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }
/* Skjermbilde fra telefon: smalt og sentrert, saa det ikke tar hele skjermen */
.hub-figur-portrett { max-width: 300px; margin-left: auto; margin-right: auto; text-align: center; }
