:root {
  --navy: #34516e;
  --navy-600: #2d435e;
  --muted: #6b7785;
  --bg: #ffffff;
  --hair: #e6e9ee;
  --accent: #e08a00;
  --radius: 10px;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.08);
}

html, body {
  height: auto !important;
  min-height: 100vh;
  overflow-y: auto !important;
}
body {
  margin: 0;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  background: var(--bg);
  color: var(--navy-600);
}

h1, h2 {
  color: var(--navy-600);
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Headers */
.liga-header { margin: 1rem 0 0.75rem; }
.lz-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy-600);
}

/* Grid of document boxes */
.box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 0.5rem 0 1.25rem;
}
.box-grid--wide {
  max-width: calc(1100px - 3rem);
  margin-left: auto;
  margin-right: auto;
}
.box-col { display: block; }
.col-span-2 { grid-column: 1 / -1; }

/* Clickable document box */
.doc-box {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.03s ease;
}
.doc-box--headeronly {
  padding: 0.6rem 0.85rem;
}
.doc-box:hover,
.doc-box:focus-visible {
  background: rgba(17, 24, 39, 0.02);
  border-color: #dfe4ea;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.doc-box:focus-visible {
  outline: 3px solid rgba(52,81,110,0.25);
  outline-offset: 2px;
}

/* Header row inside the doc box */
.doc-box__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.doc-box__header i {
  font-size: 1.1rem;
  line-height: 1;
  margin-right: 0.4rem;
  color: var(--navy);
}
.doc-box__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

/* Small responsive refinements */
@media (max-width: 420px) {
  .box-grid { grid-template-columns: 1fr; }
  .doc-box--headeronly { padding: 0.55rem 0.75rem; }
  .doc-box__title { font-size: 0.98rem; }
}