/* NyeNettCasino — visuell identitet (tidspunktkort-wiki).
 *
 * Kjølig stål/ink + skarp amber-aksent. Systemfont-par: serif-titler +
 * mono-datoer + system-sans brødtekst — ingen tredjepartsskrift.
 * Ettradsheader, pill-navigasjon, loddrett tidslinje-skinne.
 * Prefiks: nnc- overalt.
 */

:root,
html body {
  --nnc-ink: #12161d;
  --nnc-ink-2: #1c2530;
  --nnc-ink-3: #2a3542;
  --nnc-slate: #4b5768;
  --nnc-slate-2: #7c8798;
  --nnc-paper: #eef1f4;
  --nnc-paper-2: #e3e8ed;
  --nnc-surface: #ffffff;
  --nnc-line: #d5dce3;
  --nnc-amber: #d17d1f;
  --nnc-amber-dark: #ad6314;
  --nnc-amber-tint: #fbf0e2;
  --nnc-radius: 4px;
  --nnc-wrap: 720px;
  --nnc-wrap-wide: 980px;
  --nnc-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --nnc-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", sans-serif;
  --nnc-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--nnc-paper);
  color: var(--nnc-ink);
  font-family: var(--nnc-sans);
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--nnc-amber-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--nnc-ink); }
a:focus-visible, input:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--nnc-amber); outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--nnc-serif);
  line-height: 1.25;
  font-weight: 700;
  color: var(--nnc-ink);
}
h1 { font-size: 1.7rem; margin: 0 0 10px; }
h2 { font-size: 1.18rem; margin: 26px 0 10px; }
p { margin: 0 0 12px; }
code {
  font-family: var(--nnc-mono);
  font-size: 0.85em;
  background: var(--nnc-paper-2);
  padding: 1px 5px;
  border-radius: 3px;
}

.nnc-vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.nnc-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--nnc-amber); color: #fff; padding: 8px 14px; z-index: 100;
}
.nnc-skip:focus { left: 8px; top: 8px; }

.nnc-wrap { width: min(100% - 28px, var(--nnc-wrap)); margin: 0 auto; }
/* Aldri bredde ut header/nav via body-klasse — bredere innhold bare på .nnc-main. */
.nnc-p-hjem .nnc-main,
.nnc-p-oversikt .nnc-main {
  width: min(100% - 28px, var(--nnc-wrap-wide));
}

/* --- toppstripe --- */
.nnc-strip {
  background: var(--nnc-ink);
  color: rgba(255,255,255,.86);
  font-size: 0.78rem;
  border-bottom: 1px solid var(--nnc-ink-3);
}
.nnc-strip-in {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}
.nnc-strip a { color: #fff; }
.nnc-strip-help { color: rgba(255,255,255,.72); }
.nnc-strip strong { color: #fff; }

/* --- kompakt ettradsheader --- */
.nnc-head {
  background: var(--nnc-surface);
  border-bottom: 1px solid var(--nnc-line);
}
.nnc-head-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 0;
}
.nnc-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--nnc-ink);
  flex: 0 0 auto;
}
.nnc-brand-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid var(--nnc-amber);
  position: relative;
  margin-right: 9px;
  flex: 0 0 auto;
}
.nnc-brand-mark::before, .nnc-brand-mark::after {
  content: '';
  position: absolute;
  background: var(--nnc-ink);
  border-radius: 2px;
}
.nnc-brand-mark::before { width: 2px; height: 6px; left: 50%; top: 3px; transform: translateX(-50%); }
.nnc-brand-mark::after { width: 6px; height: 2px; left: 50%; top: 8.5px; transform-origin: left center; transform: translateX(-1px) rotate(30deg); }
.nnc-brand-name {
  font-family: var(--nnc-serif);
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nnc-brand-div {
  width: 1px;
  height: 22px;
  background: var(--nnc-line);
  flex: 0 0 auto;
  display: none;
}
.nnc-tagline {
  margin: 0;
  font-size: 0.82rem;
  color: var(--nnc-slate-2);
  flex: 1 1 auto;
  min-width: 140px;
}
.nnc-find {
  display: flex;
  gap: 6px;
  max-width: 320px;
  flex: 0 1 320px;
  margin-left: auto;
}
.nnc-find input {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--nnc-line);
  border-radius: var(--nnc-radius);
  font: inherit;
  background: var(--nnc-paper);
  color: var(--nnc-ink);
}
.nnc-find button {
  padding: 7px 12px;
  border: 1px solid var(--nnc-amber);
  background: var(--nnc-amber);
  color: #fff;
  border-radius: var(--nnc-radius);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.nnc-find button:hover { background: var(--nnc-amber-dark); border-color: var(--nnc-amber-dark); }

@media (min-width: 560px) {
  .nnc-brand-div { display: block; }
}

/* --- navigasjon: pill-taber på ink-linje --- */
.nnc-nav {
  background: var(--nnc-ink-2);
}
.nnc-nav-in { padding: 7px 0; }
.nnc-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.nnc-nav a {
  display: block;
  padding: 6px 13px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 999px;
}
.nnc-nav a:hover { color: #fff; background: rgba(255,255,255,.09); }
.nnc-nav a[aria-current="page"] {
  color: var(--nnc-ink);
  background: var(--nnc-amber);
}

.nnc-main { padding: 22px 0 44px; }

/* --- kort --- */
.nnc-card {
  background: var(--nnc-surface);
  border: 1px solid var(--nnc-line);
  border-radius: var(--nnc-radius);
  padding: 22px 24px;
  box-shadow: 0 1px 2px rgba(18,22,29,.05);
}

.nnc-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--nnc-amber-dark);
  margin: 0 0 4px;
  font-family: var(--nnc-mono);
}
.nnc-crumb {
  font-size: 0.82rem;
  color: var(--nnc-slate-2);
  margin: 0 0 14px;
}
.nnc-crumb a { color: var(--nnc-slate); }

/* --- tidspunkt (kortets kjerne) --- */
.nnc-tidspunkt {
  background: var(--nnc-amber-tint);
  border-left: 4px solid var(--nnc-amber);
  padding: 15px 17px;
  margin: 0 0 18px;
  border-radius: 0 var(--nnc-radius) var(--nnc-radius) 0;
}
.nnc-tidspunkt-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nnc-amber-dark);
  margin: 0 0 6px;
  font-family: var(--nnc-mono);
}
.nnc-tidspunkt-text {
  font-family: var(--nnc-serif);
  font-size: 1.14rem;
  line-height: 1.48;
  margin: 0 0 8px;
  color: var(--nnc-ink);
}
.nnc-tidspunkt-meta { font-size: 0.8rem; color: var(--nnc-slate-2); margin: 0; }

/* --- faktastripe --- */
.nnc-fakta { margin: 0 0 18px; overflow-x: auto; }
.nnc-fakta-dl {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--nnc-line);
  border-radius: var(--nnc-radius);
  background: var(--nnc-paper);
  min-width: min-content;
}
.nnc-fakta-row {
  flex: 1 1 0;
  min-width: 130px;
  padding: 10px 12px;
  border-right: 1px solid var(--nnc-line);
}
.nnc-fakta-row:last-child { border-right: 0; }
.nnc-fakta-row dt {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--nnc-slate-2);
  margin: 0 0 4px;
  font-family: var(--nnc-mono);
}
.nnc-fakta-row dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--nnc-ink);
}

.nnc-jump {
  font-size: 0.82rem;
  color: var(--nnc-slate-2);
  margin: 0 0 18px;
  padding: 8px 12px;
  background: var(--nnc-paper);
  border-radius: var(--nnc-radius);
}
.nnc-jump ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.nnc-jump a { color: var(--nnc-slate); }

/* --- tidslinje: loddrett skinne med noder (hallmark-visualen) --- */
.nnc-tidslinje-sec { margin-bottom: 6px; }
.nnc-tidslinje { list-style: none; margin: 0; padding: 0; }
.nnc-tidslinje-punkt {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 15px;
  padding-bottom: 22px;
}
.nnc-tidslinje-punkt:last-child { padding-bottom: 0; }
.nnc-tidslinje-punkt::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--nnc-line);
}
.nnc-tidslinje-punkt:last-child::before { display: none; }
.nnc-tidslinje-dot {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--nnc-surface);
  border: 3px solid var(--nnc-amber);
  align-self: start;
  position: relative;
  z-index: 1;
}
.nnc-tidslinje-dato {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--nnc-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--nnc-amber-dark);
  letter-spacing: 0.02em;
  display: block;
  padding-top: 1px;
}
.nnc-tidslinje-hendelse {
  grid-column: 2;
  grid-row: 2;
  display: block;
  margin-top: 4px;
  color: var(--nnc-ink-2);
  line-height: 1.55;
}

.nnc-hva-endret, .nnc-foer-etter { margin-bottom: 6px; }
.nnc-list { margin: 0 0 14px; padding-left: 1.2em; }
.nnc-list li { margin-bottom: 6px; }

/* --- tabeller (før/etter mv.) --- */
.nnc-tw { overflow-x: auto; margin: 0 0 14px; }
.nnc-t { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.nnc-t th, .nnc-t td { border: 1px solid var(--nnc-line); padding: 9px 11px; text-align: left; vertical-align: top; }
.nnc-t thead th { background: var(--nnc-ink); color: #fff; font-weight: 600; }
.nnc-t tbody th { background: var(--nnc-paper); font-weight: 600; white-space: nowrap; }

.nnc-faq-item {
  border: 1px solid var(--nnc-line);
  border-radius: var(--nnc-radius);
  margin-bottom: 8px;
  background: var(--nnc-surface);
}
.nnc-faq-item summary {
  padding: 11px 13px;
  cursor: pointer;
  font-weight: 600;
}
.nnc-faq-a { padding: 0 13px 13px; font-size: 0.95rem; }

.nnc-rel-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.nnc-rel-grid a {
  display: block;
  padding: 11px 13px;
  border: 1px solid var(--nnc-line);
  border-radius: var(--nnc-radius);
  text-decoration: none;
  background: var(--nnc-paper);
}
.nnc-rel-grid a:hover { border-color: var(--nnc-amber); }
.nnc-rel-t { display: block; font-weight: 700; color: var(--nnc-ink); font-family: var(--nnc-serif); }
.nnc-rel-l { display: block; font-size: 0.82rem; color: var(--nnc-slate-2); margin-top: 4px; }

/* --- kildeblokk: nummererte kort --- */
.nnc-kilder {
  margin-top: 30px;
  padding: 18px 18px 14px;
  background: var(--nnc-paper-2);
  border: 1px solid var(--nnc-line);
  border-left: 4px solid var(--nnc-amber);
  border-radius: var(--nnc-radius);
}
.nnc-kilder h2 { margin: 0 0 12px; font-size: 1.05rem; }
.nnc-kilder-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.nnc-kilder-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  padding: 10px 12px;
  background: var(--nnc-surface);
  border: 1px solid var(--nnc-line);
  border-radius: var(--nnc-radius);
}
.nnc-kilder-n {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--nnc-amber);
  color: #fff;
  font-family: var(--nnc-mono);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.nnc-kilder-body { flex: 1 1 auto; min-width: 0; }
.nnc-kilder-body a { font-weight: 600; color: var(--nnc-ink); text-decoration: none; }
.nnc-kilder-body a:hover { color: var(--nnc-amber-dark); text-decoration: underline; }
.nnc-kilder-host {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--nnc-slate-2);
  font-family: var(--nnc-sans);
}
.nnc-kilder-foot { font-size: 0.82rem; color: var(--nnc-slate-2); margin: 12px 0 0; }

.nnc-ref a {
  text-decoration: none;
  font-size: 0.72em;
  font-weight: 700;
  color: var(--nnc-amber-dark);
}

.nnc-kort-foot {
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--nnc-line);
  font-size: 0.88rem;
  color: var(--nnc-slate);
}
.nnc-kort-help { font-size: 0.82rem; color: var(--nnc-slate-2); }

/* --- forside --- */
.nnc-hero { margin-bottom: 26px; }
.nnc-hero-lead { font-size: 1.05rem; max-width: 54ch; color: var(--nnc-slate); }
.nnc-hero-facts {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 0.88rem;
  color: var(--nnc-slate-2);
}
.nnc-home-sec { margin-bottom: 30px; }
.nnc-home-sec h2 {
  font-size: 1.12rem;
  border-bottom: 2px solid var(--nnc-amber);
  padding-bottom: 4px;
  display: inline-block;
}

.nnc-cards {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.nnc-cards a {
  display: block;
  padding: 13px 15px;
  background: var(--nnc-surface);
  border: 1px solid var(--nnc-line);
  border-radius: var(--nnc-radius);
  text-decoration: none;
  height: 100%;
}
.nnc-cards a:hover { border-color: var(--nnc-amber); box-shadow: 0 2px 6px rgba(18,22,29,.06); }
.nnc-cards-k { display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; color: var(--nnc-amber-dark); font-family: var(--nnc-mono); }
.nnc-cards-t { display: block; font-family: var(--nnc-serif); font-weight: 700; color: var(--nnc-ink); margin-top: 5px; }
.nnc-cards-l { display: block; font-size: 0.82rem; color: var(--nnc-slate-2); margin-top: 6px; }

.nnc-secs {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.nnc-secs > li {
  background: var(--nnc-surface);
  border: 1px solid var(--nnc-line);
  border-radius: var(--nnc-radius);
  padding: 13px 15px;
}
.nnc-secs a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  text-decoration: none;
  color: var(--nnc-ink);
}
.nnc-secs-t { font-family: var(--nnc-serif); font-weight: 700; }
.nnc-secs-n { font-size: 0.82rem; color: var(--nnc-amber-dark); font-weight: 700; font-family: var(--nnc-mono); }
.nnc-secs > li > p { font-size: 0.88rem; color: var(--nnc-slate-2); margin: 8px 0 0; }

.nnc-how-steps { margin: 0; padding-left: 1.2em; }
.nnc-how-steps li { margin-bottom: 8px; }
.nnc-how-more { font-size: 0.9rem; }

/* --- tema-hub / oversikt --- */
.nnc-sec-head { margin-bottom: 22px; }
.nnc-sec-lead { color: var(--nnc-slate); max-width: 58ch; }
.nnc-sec-count { font-size: 0.88rem; color: var(--nnc-slate-2); }
.nnc-rows { list-style: none; margin: 0; padding: 0; }
.nnc-rows > li { padding: 11px 0; border-bottom: 1px solid var(--nnc-line); }
.nnc-rows-t { font-weight: 700; text-decoration: none; color: var(--nnc-ink); font-family: var(--nnc-serif); }
.nnc-rows a { text-decoration: none; }
.nnc-rows a:hover .nnc-rows-t { color: var(--nnc-amber-dark); }
.nnc-rows-l { margin: 4px 0 0; font-size: 0.88rem; color: var(--nnc-slate-2); }

.nnc-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nnc-chips a {
  display: block;
  padding: 5px 11px;
  background: var(--nnc-surface);
  border: 1px solid var(--nnc-line);
  border-radius: 999px;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--nnc-slate);
}
.nnc-chips a:hover { border-color: var(--nnc-amber); color: var(--nnc-amber-dark); }

.nnc-group { margin-bottom: 26px; }
.nnc-group h2 { font-size: 1.1rem; }

/* --- søk --- */
.nnc-findbox { margin: 0 0 16px; }
.nnc-findbox input[type="search"] {
  width: 100%;
  max-width: 420px;
  padding: 9px 12px;
  border: 1px solid var(--nnc-line);
  border-radius: var(--nnc-radius);
  font: inherit;
}
.nnc-findbox-count { font-size: 0.85rem; color: var(--nnc-slate-2); margin: 6px 0 0; }
.nnc-hits { list-style: none; margin: 0; padding: 0; }
.nnc-hits > li { padding: 11px 0; border-bottom: 1px solid var(--nnc-line); }
.nnc-hits-t { font-weight: 700; text-decoration: none; color: var(--nnc-ink); font-family: var(--nnc-serif); }
.nnc-hits a { text-decoration: none; }
.nnc-hits a:hover .nnc-hits-t { color: var(--nnc-amber-dark); }
.nnc-hits-l { margin: 4px 0 0; font-size: 0.88rem; color: var(--nnc-slate-2); }
.nnc-hits-sec {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--nnc-amber-dark);
  margin-right: 6px;
  font-family: var(--nnc-mono);
}
.nnc-hits-none { color: var(--nnc-slate-2); }
.nnc-js .nnc-hits > li[hidden] { display: none; }

/* --- tillitssider --- */
.nnc-page .nnc-lead { font-size: 1.05rem; color: var(--nnc-slate); }
.nnc-page-meta { font-size: 0.82rem; color: var(--nnc-slate-2); }

/* --- bunntekst --- */
.nnc-foot {
  background: var(--nnc-surface);
  border-top: 1px solid var(--nnc-line);
  padding: 30px 0 22px;
  font-size: 0.88rem;
  color: var(--nnc-slate);
}
.nnc-foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.nnc-foot h2 {
  font-family: var(--nnc-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--nnc-ink);
  margin: 0 0 9px;
}
.nnc-foot ul { list-style: none; margin: 0; padding: 0; }
.nnc-foot li { margin-bottom: 5px; }
.nnc-foot-brand { font-family: var(--nnc-serif); font-weight: 700; font-size: 1rem; margin: 0 0 6px; }
.nnc-foot-note { font-size: 0.8rem; color: var(--nnc-slate-2); }
.nnc-foot-legal {
  font-size: 0.78rem;
  color: var(--nnc-slate-2);
  border-top: 1px solid var(--nnc-line);
  padding-top: 12px;
  margin: 0;
}
.nnc-foot-legal span { display: block; margin-top: 4px; }

.nnc-dead { color: var(--nnc-slate-2); text-decoration: line-through; }
.nnc-empty { color: var(--nnc-slate-2); }

@media (max-width: 640px) {
  .nnc-head-in { align-items: flex-start; }
  .nnc-find { max-width: none; flex-basis: 100%; margin-left: 0; order: 3; }
  .nnc-tagline { order: 2; }
  .nnc-fakta-dl { flex-direction: column; }
  .nnc-fakta-row { border-right: 0; border-bottom: 1px solid var(--nnc-line); }
  .nnc-fakta-row:last-child { border-bottom: 0; }
  .nnc-nav a { padding: 6px 11px; font-size: 0.82rem; }
  .nnc-tidslinje-punkt { grid-template-columns: 18px 1fr; column-gap: 12px; }
  .nnc-tidslinje-dot { width: 18px; height: 18px; }
  .nnc-tidslinje-punkt::before { left: 8px; }
}
