/* stomatologickeordinace.cz, the panoramic film on a lightbox (proposal 062, Design
   identity). Hand-written, not part of the Tailwind build. Every colour this domain
   prints lives here as a custom property, templates carry spacing, grid and type scale
   only. Unlayered, so it beats Tailwind's utility layer. Gum pink is never set on film
   (2.75), glow is. Every text pair passes 4.5 (contrast table in the proposal). */

:root {
  --so-ground: #f2f5f8;
  --so-card: #ffffff;
  --so-band: #e3eaf1;
  --so-line: #c3ced8;
  --so-ink: #10202e;
  --so-muted: #4a5a68;
  --so-gum: #b02a55;
  --so-gum-dark: #84203f;
  --so-film: #0e1b26;
  --so-glow: #bfe6ff;
  --so-display: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --so-text: 'Literata', Georgia, 'Times New Roman', serif;
}

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

/* Header and nav */
.so-header { background: var(--so-card); color: var(--so-ink); border-bottom: 1px solid var(--so-line); }
.so-logo { color: var(--so-ink); text-decoration: none; }
.so-mark { color: currentColor; }
.so-logo-word {
  display: block;
  font-family: var(--so-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.so-logo .so-note { display: block; font-size: 14px; line-height: 1.2; }
.so-navrow {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.so-navrow::-webkit-scrollbar { display: none; }
.so-nav {
  font-family: var(--so-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--so-ink);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 8px;
}
.so-nav:hover, .so-nav:focus-visible { color: var(--so-gum); }

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

/* Hero and kicker */
.so-hero { background: var(--so-film); color: var(--so-ground); }
.so-kicker {
  font-family: var(--so-display);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--so-gum);
}
.so-film .so-kicker, .so-hero .so-kicker { color: var(--so-glow); }

/* Headings, sentence case */
.so-h1, .so-h2, .so-h3 { font-family: var(--so-display); letter-spacing: -0.01em; color: var(--so-ink); }
.so-h1 { font-weight: 800; line-height: 1.1; font-size: 2rem; }
.so-h2 { font-weight: 700; line-height: 1.2; font-size: 1.6rem; }
.so-h3 { font-weight: 700; line-height: 1.25; font-size: 1.2rem; }
@media (min-width: 768px) {
  .so-h1 { font-size: 2.75rem; }
  .so-h2 { font-size: 2rem; }
}
.so-film .so-h1, .so-film .so-h2, .so-film .so-h3 { color: var(--so-ground); }

/* Cards */
.so-card {
  background: var(--so-card);
  border: 1px solid var(--so-line);
  border-radius: 14px;
  padding: 22px;
}
a.so-card { display: block; color: var(--so-ink); text-decoration: none; }
a.so-card:hover, a.so-card:focus-visible { border-color: var(--so-gum); }
a.so-card .so-h3 { color: var(--so-gum); }

/* The signature: a card of panoramic film with sprocket marks on both edges */
.so-film {
  position: relative;
  background-color: var(--so-film);
  color: var(--so-ground);
  border-radius: 14px;
  padding: 34px 26px;
  background-image:
    repeating-linear-gradient(90deg, rgba(191, 230, 255, 0.25) 0 6px, transparent 6px 16px),
    repeating-linear-gradient(90deg, rgba(191, 230, 255, 0.25) 0 6px, transparent 6px 16px);
  background-size: 100% 6px, 100% 6px;
  background-position: 0 8px, 0 calc(100% - 8px);
  background-repeat: no-repeat;
}
section.so-hero.so-film { border-radius: 0; }
.so-film a:not(.so-btn) { color: var(--so-glow); text-decoration: underline; text-underline-offset: 3px; }
.so-film a:not(.so-btn):hover { color: #ffffff; }
.so-film .so-note { color: var(--so-ground); opacity: 0.85; }

.so-arch { max-width: 340px; width: 100%; margin: 0 auto; }
.so-arch svg { width: 100%; height: auto; display: block; }

/* The trip timeline */
.so-visits { display: flex; flex-direction: column; gap: 18px; position: relative; padding-left: 18px; border-left: 2px solid var(--so-line); }
@media (min-width: 768px) {
  .so-visits { flex-direction: row; padding-left: 0; border-left: 0; }
  .so-visits > * { flex: 1 1 0; position: relative; }
  .so-visits > * + *::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 40px;
    width: 18px;
    border-top: 2px solid var(--so-line);
  }
}
.so-step {
  display: block;
  font-family: var(--so-display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  color: var(--so-gum);
  margin-bottom: 8px;
}

/* Tables scroll inside their wrapper, the page never scrolls sideways */
.so-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.so-table { width: 100%; min-width: 34rem; border-collapse: collapse; background: var(--so-card); }
.so-table th {
  background: var(--so-band);
  font-family: var(--so-display);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  color: var(--so-ink);
}
.so-table th, .so-table td { padding: 10px 12px; vertical-align: top; border-bottom: 1px solid var(--so-line); }
.so-table td.so-num, .so-table th.so-num { white-space: nowrap; font-weight: 600; text-align: right; }
.so-table td.so-num { font-family: var(--so-display); font-variant-numeric: tabular-nums; }

/* Notes, links, quotes */
.so-note { color: var(--so-muted); font-size: 15px; }
.so-link, .so-prose a:not(.so-btn):not(.so-card) {
  color: var(--so-gum);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.so-link:hover, .so-prose a:not(.so-btn):not(.so-card):hover { color: var(--so-gum-dark); }
.so-prose p + p { margin-top: 0.9rem; }
.so-prose ul { list-style: disc; padding-left: 1.4rem; }
.so-prose li + li { margin-top: 0.4rem; }
.so-quote { border-left: 3px solid var(--so-gum); padding-left: 1rem; }
.so-quote p + p { margin-top: 0.5rem; }
.so-label {
  font-family: var(--so-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.so-row { display: grid; gap: 6px 24px; padding: 18px 0; border-top: 1px solid var(--so-line); }
@media (min-width: 768px) { .so-row { grid-template-columns: 10rem 1fr; } }
.so-row:first-of-type { border-top: 0; }

/* The form page */
.so-formpanel { background: var(--so-card); border: 1px solid var(--so-line); border-radius: 14px; padding: 22px; }

/* Footer */
.so-footer { background: var(--so-film); color: rgba(242, 245, 248, 0.85); }
.so-footer .so-label, .so-footer .so-logo-word { color: var(--so-ground); }
.so-footer .so-logo { color: var(--so-glow); }
.so-footer .so-note { color: rgba(242, 245, 248, 0.85); }
.so-footer a:not(.so-btn) { color: var(--so-ground); text-decoration: underline; text-underline-offset: 3px; }
.so-footer a:not(.so-btn):hover, .so-footer a:not(.so-btn):focus-visible { color: var(--so-glow); }
.so-footer a.so-logo { text-decoration: none; }
