/* Geoflom.no -- shared foundation stylesheet.
   Single-column, long-form reading design with a slate-blue accent. */

:root {
  --ink: #1B2430;
  --ink-soft: #47525E;
  --muted: #5C6672;
  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --border: rgba(27,36,48,0.12);
  --accent: #3B5BA5;
  --accent-dark: #2C4480;
  --accent-tint: rgba(59,91,165,0.08);
  --focus-ring: #2C4480;
  --radius: 12px;
  --content-width: 720px;
  --wide-width: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Public Sans', sans-serif;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: 32px; font-weight: 700; }
h2 { font-size: 23px; font-weight: 700; margin-top: 1.8em; }
h3 { font-size: 18px; font-weight: 600; margin-top: 1.4em; }

p { margin: 0 0 1.1em; overflow-wrap: break-word; }

a { color: var(--accent-dark); text-decoration-color: rgba(44,68,128,0.35); }
a:hover { color: var(--accent); }
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.header-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
}
.wordmark-dot { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle-bars::before { content: ""; position: absolute; top: -6px; }
.nav-toggle-bars::after { content: ""; position: absolute; top: 6px; }

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 8px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--accent-tint);
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 18px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { padding: 12px 10px; font-size: 16px; }
}

/* ---------- Layout wrappers ---------- */
.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 40px 24px 64px;
}
.wrap-wide {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 40px 24px 64px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb [aria-current="page"] { color: var(--ink-soft); }

/* ---------- Dev-status callout ---------- */
.dev-status {
  background: var(--accent-tint);
  border: 1px solid rgba(59,91,165,0.25);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 20px 0 32px;
}
.dev-status strong { color: var(--accent-dark); }

/* ---------- Restrained CTA / contextual link line ---------- */
.contextual-link {
  font-size: 15px;
  color: var(--ink-soft);
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 32px;
}

/* ---------- Referral panel (unused) ---------- */
.referral-panel {
  background: var(--accent-tint);
  border: 1px solid rgba(59,91,165,0.25);
  border-radius: var(--radius);
  padding: 28px 28px 30px;
  margin: 32px 0;
}
.referral-panel-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 10px;
}
.referral-panel h2 {
  margin-top: 0;
  font-size: 21px;
}
.referral-panel-logo {
  height: 38px;
  width: auto;
  display: block;
  margin: 2px 0 18px;
}
.referral-panel p {
  margin-bottom: 14px;
}
.referral-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 12px;
}
.btn {
  display: inline-block;
  font-family: 'Space Grotesk', 'Public Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent-dark);
  color: #fff;
}
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-secondary {
  background: transparent;
  border-color: var(--accent-dark);
  color: var(--accent-dark);
}
.btn-secondary:hover { background: rgba(59,91,165,0.14); }
.referral-panel-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.referral-panel--compact {
  padding: 22px 24px 24px;
  margin: 28px 0 0;
}
.referral-panel--compact .referral-panel-logo {
  height: 30px;
  margin-bottom: 14px;
}

/* ---------- Small partner/ownership logos (footer + /om/) ---------- */
.footer-logo {
  height: 20px;
  width: auto;
  display: block;
  margin-bottom: 10px;
}

/* ---------- Content tables ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 20px 0 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 480px;
}
.data-table caption {
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.data-table th, .data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.data-table th {
  background: var(--accent-tint);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 28px 24px 32px;
}
.footer-disclosure {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links a {
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Print (light touch) ---------- */
@media print {
  .site-header, .site-footer, .skip-link { display: none; }
}
