/* lis post redesign 31.10.2026 - shared base
   Common reset, accessibility and utility layer. Concept CSS sits on top. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--color-brand-200); color: var(--color-brand-900); }

.container {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 40px;
}
.container-narrow {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 200;
  background: var(--color-brand-700); color: #fff;
  padding: 12px 18px; border-radius: 10px; font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 16px; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--color-text-secondary); }
.small { font-size: var(--text-sm); line-height: 1.55; }
.tiny { font-size: var(--text-xs); line-height: 1.5; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

.row { display: flex; align-items: center; gap: var(--space-3); }
.between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.stack-2 > * + * { margin-top: 8px; }
.stack-3 > * + * { margin-top: 12px; }
.stack-4 > * + * { margin-top: 16px; }
.stack-6 > * + * { margin-top: 24px; }
.stack-8 > * + * { margin-top: 32px; }

.grid { display: grid; gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.kicker {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-brand-700);
}
.rule { height: 1px; background: var(--color-border); border: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--radius-md);
  font-size: var(--text-body); font-weight: 600; line-height: 1;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--color-brand-700); color: #fff; }
.btn-primary:hover { background: var(--color-brand-800); }
.btn-primary:active { background: var(--color-brand-900); }
.btn-secondary { background: transparent; color: var(--color-brand-700); border-color: var(--color-brand-200); }
.btn-secondary:hover { background: var(--color-brand-50); border-color: var(--color-brand-300); }
.btn-ghost { background: transparent; color: var(--color-text); }
.btn-ghost:hover { background: var(--color-gray-50); }
.btn-light { background: #fff; color: var(--color-brand-800); }
.btn-light:hover { background: var(--color-brand-50); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: var(--text-sm); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: var(--text-body-lg); }
.btn-block { width: 100%; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--color-border-control);
  border-radius: var(--radius-sm);
  background: var(--color-bg-input);
  color: var(--color-text);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--color-gray-500); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--color-gray-500); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; background: #fff;
  border-color: var(--color-brand-700);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .14);
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 24px; padding: 2px 8px;
  border-radius: 6px;
  font-size: var(--text-xs); font-weight: 600; line-height: 1.4;
  background: var(--color-gray-100); color: var(--color-gray-700);
  white-space: nowrap;
}
.badge-brand { background: var(--color-brand-50); color: var(--color-brand-800); }
.badge-success { background: #E8F9EC; color: #1E7A24; }
.badge-warning { background: #FEF7E0; color: #7A5400; }
.badge-danger { background: #FBEAEA; color: #B91C1C; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

.mock-note {
  position: fixed; right: 16px; bottom: 16px; z-index: 120;
  display: flex; align-items: center; gap: 8px;
  background: var(--color-navy-900); color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  padding: 8px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  box-shadow: var(--shadow-md);
}
.mock-note a { color: var(--color-brand-300); text-decoration: underline; text-underline-offset: 2px; }
.mock-note button { color: #fff; opacity: .7; }
.mock-note button:hover { opacity: 1; }

@media (max-width: 1024px) {
  .container, .container-narrow { padding: 0 28px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .container, .container-narrow { padding: 0 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .btn { min-height: 48px; }
  .mock-note { right: 10px; bottom: 10px; font-size: 10px; padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
