/* pujcovnyleseni.cz, a scaffold behind its safety net (proposal 061, D2 and D3).
   Hand-written, not part of the Tailwind build. Every colour this domain prints lives
   here as a custom property. Tailwind utilities in the templates carry spacing, grid
   and type scale only. Unlayered, so it beats Tailwind's utility layer.
   Net green is never set on graphite, mint is. Every text pair passes 4.5 (contrast
   table in the proposal). */

:root {
  --ls-ground: #eef0ef;
  --ls-card: #ffffff;
  --ls-steel: #d9dedc;
  --ls-line: #b8c0bd;
  --ls-ink: #1b2420;
  --ls-muted: #4f5b56;
  --ls-net: #0b6b40;
  --ls-net-dark: #084f2f;
  --ls-graphite: #232b28;
  --ls-mint: #8fd6ae;
  --ls-display: 'Saira Condensed', 'Arial Narrow', Arial, sans-serif;
  --ls-sans: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.ls-body {
  background: var(--ls-ground);
  color: var(--ls-ink);
  font-family: var(--ls-sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* The global demand-form.twig prints these two, recoloured here (061, Design identity). */
.ls-body .text-gray-900 { color: var(--ls-ink); }
.ls-body .text-gray-700 { color: var(--ls-ink); }
.ls-body main h1.text-gray-900 { font-family: var(--ls-display); font-weight: 700; letter-spacing: 0.01em; }

/* Header and nav */
.ls-header {
  background: var(--ls-card);
  color: var(--ls-ink);
  border-bottom: 1px solid var(--ls-line);
}
.ls-logo { color: var(--ls-ink); text-decoration: none; }
.ls-mark { color: var(--ls-ink); }
.ls-footer .ls-mark { color: var(--ls-mint); }
.ls-logo-word {
  font-family: var(--ls-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
/* On a phone the links wrap onto as many rows as they need, so every one stays in
   view. From 1024 px they sit in one row beside the logo. */
.ls-navrow { max-width: 100%; }
.ls-navrow > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.ls-nav {
  font-size: 16px;
  font-weight: 500;
  color: var(--ls-ink);
  text-decoration: none;
  white-space: nowrap;
  padding: 2px 0;
}
.ls-nav:hover, .ls-nav:focus-visible { color: var(--ls-net); text-decoration: underline; text-underline-offset: 3px; }

/* Buttons: white on net green, square */
.ls-btn {
  display: inline-block;
  background: var(--ls-net);
  color: #ffffff;
  border-radius: 0;
  font-family: var(--ls-sans);
  font-weight: 700;
  padding: 14px 28px;
  line-height: 1.3;
  text-decoration: none;
  max-width: 100%;
  text-align: center;
}
.ls-btn:hover, .ls-btn:focus-visible { background: var(--ls-net-dark); color: #ffffff; }
.ls-btn-small { padding: 8px 16px; font-size: 15px; white-space: nowrap; }

/* Hero */
.ls-hero { background: var(--ls-steel); color: var(--ls-ink); }
.ls-kicker {
  font-family: var(--ls-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ls-net);
}
.ls-hero .ls-kicker { color: var(--ls-net-dark); }

/* Headings, sentence case */
.ls-h1, .ls-h2, .ls-h3 {
  font-family: var(--ls-display);
  color: var(--ls-ink);
  letter-spacing: 0.01em;
}
.ls-h1 { font-weight: 700; line-height: 1.05; font-size: 2.25rem; }
.ls-h2 { font-weight: 700; line-height: 1.15; font-size: 1.75rem; }
.ls-h3 { font-weight: 600; line-height: 1.2; font-size: 1.3rem; }
@media (min-width: 768px) {
  .ls-h1 { font-size: 3rem; }
  .ls-h2 { font-size: 2.1rem; }
}
.ls-hero .ls-h1 { font-size: 2.25rem; }
@media (min-width: 768px) {
  .ls-hero .ls-h1 { font-size: 3.75rem; }
}

/* The scaffold bay behind its net */
.ls-pole { max-width: 320px; margin: 0 auto; padding: 0; }
.ls-pole svg { width: 100%; height: auto; display: block; }
.ls-mesh {
  background-color: var(--ls-net);
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.28) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.28) 0 1px, transparent 1px 7px);
}

/* Cards */
.ls-card {
  background: var(--ls-card);
  border: 1px solid var(--ls-line);
  border-radius: 0;
  padding: 20px;
}
a.ls-card { display: block; color: var(--ls-ink); text-decoration: none; font-weight: 500; }
a.ls-card:hover, a.ls-card:focus-visible { color: var(--ls-net); border-color: var(--ls-net); }

/* The signature: a card whose top edge is a tube with two couplers */
.ls-tube {
  position: relative;
  background: var(--ls-card);
  border: 1px solid var(--ls-line);
  border-top: 6px solid var(--ls-line);
  padding: 28px 24px 24px;
}
.ls-tube::before, .ls-tube::after {
  content: '';
  position: absolute;
  top: -10px;
  width: 14px;
  height: 14px;
  background: var(--ls-ink);
  outline: 2px solid var(--ls-card);
}
.ls-tube::before { left: 24px; }
.ls-tube::after { right: 24px; }
a.ls-tube { display: block; color: var(--ls-ink); text-decoration: none; }
a.ls-tube:hover .ls-h3, a.ls-tube:focus-visible .ls-h3 { color: var(--ls-net); }

.ls-step {
  font-family: var(--ls-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--ls-net);
}

/* Tables scroll inside their wrapper, the page never scrolls sideways */
.ls-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ls-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  background: var(--ls-card);
}
.ls-table th {
  background: var(--ls-steel);
  font-family: var(--ls-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  color: var(--ls-ink);
}
.ls-table th, .ls-table td { padding: 10px 12px; vertical-align: top; }
.ls-table td { border-bottom: 1px solid var(--ls-line); }
.ls-table td:first-child { min-width: 10rem; }
.ls-table td.ls-num {
  white-space: nowrap;
  font-family: var(--ls-display);
  font-weight: 600;
  font-size: 19px;
}
.ls-table td.ls-num-wrap { white-space: normal; min-width: 14rem; }
.ls-table a { color: var(--ls-net); text-decoration: underline; text-underline-offset: 3px; }
.ls-table a:hover { color: var(--ls-net-dark); }
dd.ls-num { font-family: var(--ls-display); font-weight: 600; font-size: 1.6rem; }

/* Notes, links, lists */
.ls-note { color: var(--ls-muted); font-size: 15px; }
.ls-link, .ls-prose a:not(.ls-btn):not(.ls-card) {
  color: var(--ls-net);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ls-link:hover, .ls-link:focus-visible,
.ls-prose a:not(.ls-btn):not(.ls-card):hover { color: var(--ls-net-dark); }
.ls-prose p + p { margin-top: 0.8rem; }
.ls-list { list-style: none; padding-left: 0; }
.ls-list li { position: relative; padding-left: 1.4rem; }
.ls-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--ls-net);
}
.ls-list li + li { margin-top: 0.45rem; }
.ls-quote { border-left: 3px solid var(--ls-line); padding-left: 1rem; font-style: normal; }
.ls-label {
  font-family: var(--ls-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Footer: the one dark surface */
.ls-footer {
  background: var(--ls-graphite);
  color: rgba(238, 240, 239, 0.85);
}
.ls-footer .ls-label, .ls-footer .ls-logo-word { color: var(--ls-ground); }
.ls-footer a:not(.ls-btn) { color: var(--ls-ground); text-decoration: underline; text-underline-offset: 3px; }
.ls-footer a:not(.ls-btn):hover, .ls-footer a:not(.ls-btn):focus-visible { color: var(--ls-mint); }
.ls-footer a.ls-logo { text-decoration: none; }
