/* ============================================================================
   LexisNexis Recherche-Tools — shared design system ("LexisPlus"-approximation)
   Loaded first on every page. Tool-specific stylesheets load afterwards and may
   override where a tool needs it. No external network calls (self-contained).
   Brand colours here approximate the public LexisNexis brand; swap the tokens
   below for official values once design assets are available.
   ========================================================================== */

:root {
  /* Brand — Lexis+ palette: navy chrome, red for emphasis/active, blue links */
  --ln-navy: #00263A;         /* top header / chrome */
  --ln-navy-2: #013A5A;
  --ln-red: #D6001C;          /* brand red: primary actions + active indicators */
  --ln-red-dark: #A80016;
  --ln-red-soft: #fdecef;
  --ln-link: #1B4F8A;         /* interactive text: links, titles, "read more" */
  --ln-link-dark: #123a66;

  /* Ink / neutrals */
  --ln-ink: #16181d;          /* strong headings */
  --ln-ink-2: #2a2e35;
  --ln-text: #22262b;
  --ln-muted: #5b636d;
  --ln-faint: #8a929c;

  --ln-border: #e2e6ea;
  --ln-border-strong: #cdd3da;
  --ln-surface: #ffffff;
  --ln-surface-2: #f4f6f8;
  --ln-bg: #f1f3f5;

  /* Category / status accents (reused by the Reisepreisminderung tool) */
  --ln-blue: #1a4a82;
  --ln-teal: #2a7a6a;
  --ln-gold: #a67c1e;
  --ln-green: #2e7d32;

  /* Search highlight — Lexis+ teal */
  --ln-hi: #93dede;

  /* Typography — professional system sans stack, no webfont fetch */
  --ln-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif;

  /* Shape / depth */
  --ln-r: 6px;
  --ln-r-lg: 10px;
  --ln-sh-0: 0 1px 2px rgba(20, 23, 28, .06);
  --ln-sh-1: 0 2px 8px rgba(20, 23, 28, .08), 0 1px 3px rgba(20, 23, 28, .06);
  --ln-sh-2: 0 14px 34px rgba(20, 23, 28, .14);

  /* Shared chrome metrics (kept in sync so tools can offset sticky elements) */
  --ln-header-h: 56px;
  --ln-toolnav-h: 46px;
  --ln-maxw: 1380px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 14px; }

body {
  margin: 0;
  font-family: var(--ln-font);
  color: var(--ln-text);
  background: var(--ln-bg);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Column flow so the corporate footer can be pushed to the bottom of short
     pages (see body > .ln-sitefooter below). The tools' own body rules only set
     colour/typography, so this survives their later stylesheets. */
  display: flex;
  flex-direction: column;
}

button, input, select, textarea { font: inherit; }

/* ── HEADER ──────────────────────────────────────────────────────────────── */
.ln-header {
  background: var(--ln-navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 2px 8px rgba(0, 0, 0, .12);
}
.ln-header__in {
  max-width: var(--ln-maxw);
  margin: 0 auto;
  height: var(--ln-header-h);
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ln-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
/* Official LexisNexis logo — white lockup (burst mark + wordmark) on the navy
   header. Assets are generated from assets/lnlogo.png into shared/logo/. */
.ln-brand__mark-img { height: 30px; width: auto; display: block; }
.ln-brand__wordmark { height: 17px; width: auto; display: block; }
/* Text fallback (used only if images are removed) */
.ln-brand__mark {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #fff;
}
.ln-brand__mark em { color: inherit; font-style: normal; }
.ln-brand__mark sup { font-size: 9px; font-weight: 600; vertical-align: super; margin-left: 1px; }
.ln-brand__sep {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, .3);
}
.ln-brand__suite {
  font-size: 14px;
  font-weight: 400;
  color: #c9ced6;
  white-space: nowrap;
}
.ln-header__spacer { flex: 1; }

/* ── TOOL NAV (cross-tool switcher) ──────────────────────────────────────── */
.ln-toolnav {
  background: var(--ln-surface);
  border-bottom: 1px solid var(--ln-border);
  position: sticky;
  top: var(--ln-header-h);
  z-index: 290;
}
.ln-toolnav__in {
  max-width: var(--ln-maxw);
  margin: 0 auto;
  height: var(--ln-toolnav-h);
  padding: 0 22px;
  display: flex;
  align-items: stretch;
  gap: 4px;
}
.ln-toolnav__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ln-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color .14s, border-color .14s, background .14s;
}
.ln-toolnav__tab:hover {
  color: var(--ln-ink);
  background: var(--ln-surface-2);
}
.ln-toolnav__tab[aria-current="page"] {
  color: var(--ln-red);
  border-bottom-color: var(--ln-red);
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
/* Per-page note slot: tool disclaimers and SME credits go in here. */
.ln-footer {
  max-width: var(--ln-maxw);
  margin: 32px auto 0;
  padding: 18px 22px 20px;
  border-top: 1px solid var(--ln-border);
  color: var(--ln-faint);
  font-size: 12px;
  line-height: 1.6;
}
.ln-footer a { color: var(--ln-muted); }

/* ── CORPORATE SITE FOOTER ───────────────────────────────────────────────── */
/* Injected on every page by /shared/site-footer.js so the legal links live in
   exactly one place. Mirrors the lexisnexis.at footer (contact block, legal
   link row, RELX copyright) recoloured onto the navy header chrome. There is
   deliberately no cookie-settings entry: this service sets no cookies and uses
   no web storage, so there is nothing for a user to configure. */
.ln-sitefooter {
  background: var(--ln-navy);
  color: #c9ced6;
  padding: 30px 22px 26px;
  font-size: 12.5px;
  line-height: 1.65;
  flex-shrink: 0;
}
/* Pin to the viewport bottom when the page content is shorter than the screen. */
body > .ln-sitefooter { margin-top: auto; }
.ln-sitefooter__in {
  max-width: var(--ln-maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 26px 48px;
  align-items: flex-start;
}
/* align-items:flex-start matters: without it the column flex container would
   stretch the logo images to full width and distort them. */
.ln-sitefooter__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
/* Same burst-mark + wordmark lockup as the header, a touch smaller. */
.ln-sitefooter__lockup { display: flex; align-items: center; gap: 10px; }
.ln-sitefooter__mark { height: 26px; width: auto; display: block; flex: none; }
.ln-sitefooter__wordmark { height: 15px; width: auto; display: block; flex: none; }
.ln-sitefooter__contact { display: flex; flex-direction: column; gap: 2px; }
.ln-sitefooter__contact a { color: #c9ced6; text-decoration: none; }
.ln-sitefooter__contact a:hover { color: #fff; text-decoration: underline; }

.ln-sitefooter__nav { flex: 1; min-width: 260px; }
.ln-sitefooter__h {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a939f;
  margin-bottom: 9px;
}
.ln-sitefooter__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}
.ln-sitefooter__links li { display: flex; align-items: center; }
/* Vertical rule between links, as on lexisnexis.at. */
.ln-sitefooter__links li:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 12px;
  margin: 0 12px;
  background: rgba(255, 255, 255, .22);
}
.ln-sitefooter__links a {
  color: #dfe3e8;
  text-decoration: none;
  white-space: nowrap;
}
.ln-sitefooter__links a:hover { color: #fff; text-decoration: underline; }
.ln-sitefooter__links a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.ln-sitefooter__legal {
  max-width: var(--ln-maxw);
  margin: 22px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: #8a939f;
  font-size: 11.5px;
}

@media (max-width: 640px) {
  .ln-sitefooter__in { gap: 22px; }
  .ln-sitefooter__links { flex-direction: column; }
  .ln-sitefooter__links li:not(:last-child)::after { display: none; }
}

/* The corporate footer is chrome, never part of a printed export. */
@media print {
  .ln-sitefooter { display: none !important; }
}

/* ── SHARED PRIMITIVES ───────────────────────────────────────────────────── */
.ln-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--ln-r);
  border: 1px solid var(--ln-border-strong);
  background: var(--ln-surface);
  color: var(--ln-ink);
  font-weight: 600;
  cursor: pointer;
  transition: background .14s, border-color .14s, box-shadow .14s;
}
.ln-btn:hover { border-color: var(--ln-faint); }
.ln-btn:focus-visible { outline: 2px solid var(--ln-red); outline-offset: 2px; }
.ln-btn--primary {
  background: var(--ln-red);
  border-color: var(--ln-red);
  color: #fff;
}
.ln-btn--primary:hover { background: var(--ln-red-dark); border-color: var(--ln-red-dark); }
.ln-btn--secondary { background: var(--ln-surface-2); }

.ln-input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--ln-border-strong);
  border-radius: var(--ln-r);
  background: var(--ln-surface);
  color: var(--ln-text);
  outline: none;
  transition: border-color .14s, box-shadow .14s;
}
.ln-input:focus {
  border-color: var(--ln-red);
  box-shadow: 0 0 0 3px var(--ln-red-soft);
}

.ln-card {
  background: var(--ln-surface);
  border: 1px solid var(--ln-border);
  border-radius: var(--ln-r-lg);
  box-shadow: var(--ln-sh-0);
}

.ln-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ln-surface-2);
  border: 1px solid var(--ln-border);
  color: var(--ln-muted);
  font-size: 12px;
  white-space: nowrap;
}

mark {
  background: var(--ln-hi);
  color: inherit;
  padding: 0 1px;
  border-radius: 3px;
}

/* Utility */
.ln-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

@media (max-width: 640px) {
  .ln-brand__suite { display: none; }
  .ln-header__in, .ln-toolnav__in { padding: 0 14px; }
}
