/*
 * /virtualni-realita/hygiena-headsetu · /virtual-reality/headset-hygiene
 * Komponenta: src/components/pages/virtual-reality/hygiene/page.tsx, načítá se přes <PageStyles name="vr-hygiena" />.
 * Čisté CSS (není zpracované Tailwindem), všechny třídy s prefixem vh-.
 *
 * Web: úvod → list manuálu jako karta → proč na tom záleží.
 * Tisk: jen list (.vh-sheet) na jedné A4. Uvnitř listu jsou rozměry v em → tisk mění jen font-size listu.
 * Po úpravě textů v content.<locale>.ts zkontrolovat náhled tisku (Ctrl+P), že se list vejde na jednu stranu.
 */

.vh {
  --vh-brand: #00a94f;
  --vh-brand-text: #007a3b;
  --vh-accent: #3ddc84;
  --vh-dark: #0f2a1d;
  --vh-ink: #2b3430;
  --vh-text: #111111;
  --vh-muted: #5f6865;
  --vh-line: #e3e8e5;
  --vh-soft: #f4f8f5;
  --vh-tint: #dcefe5;
  --vh-lens: #e8f0fb;
  --vh-lens-line: #2b5b9c;
  --vh-strap: #9aa29f;
  --vh-stop: #b42318;
  --vh-stop-soft: #fdf1ef;
  --vh-stop-line: #f4cfc9;
  --vh-info: #2b5b9c;
  --vh-info-soft: #eef3fa;
  --vh-info-line: #d3e0f1;

  background: #ffffff;
  color: var(--vh-text);
}

.vh-frame {
  margin: 0 auto;
  width: 100%;
  max-width: 1180px;
  padding: 0 24px;
}

.vh-icon {
  width: 1.5em;
  height: 1.5em;
  flex-shrink: 0;
}
.vh-icon--sm { width: 1.15em; height: 1.15em; }
.vh-icon--xs { width: 0.95em; height: 0.95em; }

/* ------------------------------------------------------------------ */
/* Úvod (web)                                                          */
/* ------------------------------------------------------------------ */

.vh-hero {
  padding: 28px 0 8px;
}

.vh-crumbs {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a928f;
}
.vh-crumbs a { color: #8a928f; text-decoration: none; }
.vh-crumbs a:hover { color: var(--vh-brand); }
.vh-crumbs li:last-child span { color: var(--vh-brand-text); font-weight: 600; }

.vh-eyebrow {
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00a862;
}
.vh-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.vh-h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.vh-accent { color: var(--vh-brand); }

.vh-intro {
  margin: 20px 0 0;
  max-width: 760px;
  font-size: 17px;
  line-height: 1.75;
  color: #4b5651;
}
.vh-intro strong { color: var(--vh-text); font-weight: 600; }

.vh-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.vh-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 13px 26px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.vh-btn--primary {
  border: 0;
  background: var(--vh-brand);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 169, 79, 0.28);
}
.vh-btn--primary:hover { background: #00c25a; }
.vh-btn--ghost {
  border: 1px solid #cfd8d3;
  background: #ffffff;
  color: var(--vh-text);
}
.vh-btn--ghost:hover { border-color: var(--vh-brand); color: var(--vh-brand); }

.vh-print-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--vh-muted);
}

/* ------------------------------------------------------------------ */
/* List manuálu                                                        */
/* ------------------------------------------------------------------ */

.vh-stage {
  padding: 36px 16px 64px;
  background: linear-gradient(180deg, #ffffff, var(--vh-soft) 30%, var(--vh-soft) 75%, #ffffff);
}

.vh-sheet {
  font-size: 14px;
  line-height: 1.45;
  margin: 0 auto;
  max-width: 1080px;
  background: #ffffff;
  border: 1px solid var(--vh-line);
  border-radius: 1.2em;
  box-shadow: 0 30px 60px rgba(15, 42, 29, 0.1);
  padding: 1.6em;
  display: grid;
  gap: 1.3em;
  scroll-margin-top: 24px;
}

.vh-sheet h2,
.vh-sheet h3,
.vh-sheet h4,
.vh-sheet p,
.vh-sheet ul,
.vh-sheet ol,
.vh-sheet dl,
.vh-sheet dd,
.vh-sheet figure {
  margin: 0;
}
.vh-sheet strong { font-weight: 600; color: var(--vh-text); }

/* Hlavička listu */
.vh-sh-head {
  position: relative;
  overflow: hidden;
  border-radius: 0.9em;
  background: var(--vh-dark) radial-gradient(circle at 92% 0%, rgba(0, 169, 79, 0.38), transparent 55%);
  color: #ffffff;
  padding: 1.3em 1.5em;
  display: grid;
  gap: 1.1em;
  align-items: center;
}
.vh-sh-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a9c4b6;
}
.vh-sh-logo { color: var(--vh-accent); letter-spacing: 0.04em; }
.vh-sh-title {
  margin-top: 0.25em !important;
  font-size: 2em;
  font-weight: 600;
  line-height: 1.1;
  color: #ffffff;
}
.vh-sh-sub {
  margin-top: 0.4em !important;
  font-size: 0.92em;
  color: rgba(255, 255, 255, 0.72);
}

.vh-rules {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5em;
}
.vh-rules li {
  display: flex;
  align-items: center;
  gap: 0.7em;
  border-radius: 0.6em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.5em 0.8em 0.5em 0.5em;
  font-size: 0.95em;
  font-weight: 600;
  line-height: 1.25;
}
.vh-rule-icon {
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border-radius: 999px;
  background: rgba(61, 220, 132, 0.16);
  color: var(--vh-accent);
}
.vh-rule-icon .vh-icon { width: 1.2em; height: 1.2em; }

/* Štítky sekcí */
.vh-label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.65em !important;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--vh-brand-text);
}
.vh-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 169, 79, 0.35), transparent);
}
.vh-label .vh-icon { color: var(--vh-brand); }

/* Seznamy s fajfkou */
.vh-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.32em;
}
.vh-list li {
  position: relative;
  padding-left: 1em;
  font-size: 0.9em;
  color: var(--vh-ink);
}
.vh-list li::before {
  content: "";
  position: absolute;
  left: 0.1em;
  top: 0.55em;
  width: 0.38em;
  height: 0.38em;
  border-radius: 999px;
  background: var(--vh-brand);
}

/* Cyklus použití */
.vh-steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.8em;
}
.vh-step {
  position: relative;
  border: 1px solid var(--vh-line);
  border-radius: 0.8em;
  background: var(--vh-soft);
  padding: 0.9em 0.95em 1em;
}
.vh-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vh-step-num {
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 999px;
  background: var(--vh-brand);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9em;
  box-shadow: 0 0 0 0.35em rgba(0, 169, 79, 0.13);
}
.vh-step-icon { color: var(--vh-brand); width: 1.6em; height: 1.6em; }
.vh-step-who {
  margin-top: 0.7em !important;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--vh-muted);
}
.vh-step-title {
  margin: 0.1em 0 0.5em !important;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.2;
}

/* Dva / tři sloupce */
.vh-grid2,
.vh-grid3 {
  display: grid;
  gap: 1.3em;
}

/* Čím čistit */
.vh-figure {
  border: 1px solid var(--vh-line);
  border-radius: 0.8em;
  background: linear-gradient(180deg, var(--vh-soft), #ffffff);
  padding: 0.6em 0.8em;
  margin-bottom: 0.7em !important;
}
.vh-figure-svg {
  display: block;
  width: 100%;
  max-width: 26em;
  height: auto;
  margin: 0 auto;
  font-family: inherit;
}

.vh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86em;
}
.vh-table th,
.vh-table td {
  padding: 0.42em 0.5em;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--vh-line);
}
.vh-table thead th {
  padding-top: 0;
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vh-muted);
  border-bottom-color: #cfd8d3;
}
.vh-table tbody th {
  font-weight: 600;
  white-space: nowrap;
  color: var(--vh-text);
}
.vh-table td { color: var(--vh-ink); }
.vh-table tbody tr:last-child th,
.vh-table tbody tr:last-child td { border-bottom: 0; }
.vh-n {
  display: inline-grid;
  place-items: center;
  width: 1.45em;
  height: 1.45em;
  margin-right: 0.45em;
  border-radius: 999px;
  background: var(--vh-dark);
  color: #ffffff;
  font-size: 0.82em;
  font-weight: 700;
  vertical-align: 0.08em;
}
.vh-never {
  color: var(--vh-stop) !important;
  width: 28%;
}
.vh-never .vh-icon {
  margin-right: 0.3em;
  vertical-align: -0.12em;
}

/* Zdraví */
.vh-health {
  display: grid;
  gap: 0.65em;
}
.vh-health-block {
  border-radius: 0.8em;
  padding: 0.75em 0.9em 0.8em;
  border: 1px solid;
}
.vh-health-block--stop {
  background: var(--vh-stop-soft);
  border-color: var(--vh-stop-line);
}
.vh-health-block--info {
  background: var(--vh-info-soft);
  border-color: var(--vh-info-line);
}
.vh-health-title {
  display: flex;
  align-items: center;
  gap: 0.45em;
  margin-bottom: 0.4em !important;
  font-size: 0.95em;
  font-weight: 600;
}
.vh-health-block--stop .vh-health-title { color: var(--vh-stop); }
.vh-health-block--info .vh-health-title { color: var(--vh-info); }
.vh-health-block--stop .vh-list li::before { background: var(--vh-stop); }
.vh-health-block--info .vh-list li::before { background: var(--vh-info); }
.vh-health-note {
  margin-top: 0.45em !important;
  padding-top: 0.45em;
  border-top: 1px dashed var(--vh-stop-line);
  font-size: 0.86em;
  color: var(--vh-ink);
}

/* Prostor / údržba / kontakt */
.vh-mini {
  border: 1px solid var(--vh-line);
  border-radius: 0.8em;
  padding: 0.8em 0.95em 0.9em;
}
.vh-fields {
  display: grid;
  gap: 0.9em;
}
.vh-fields dt {
  font-size: 0.8em;
  color: var(--vh-muted);
}
.vh-fields dd {
  height: 1.6em;
  border-bottom: 1px solid #b8c2bd;
}

/* Patička listu */
.vh-sh-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4em 1.5em;
  padding-top: 0.8em;
  border-top: 1px solid var(--vh-line);
  font-size: 0.76em;
  color: var(--vh-muted);
}
.vh-sh-foot p:first-child { max-width: 70ch; }
.vh-sh-url { font-weight: 600; color: var(--vh-brand-text); }

/* ------------------------------------------------------------------ */
/* Proč na tom záleží, zdroje, souvislosti (web)                       */
/* ------------------------------------------------------------------ */

.vh-why {
  padding: 24px 0 88px;
}
.vh-why-grid {
  display: grid;
  gap: 40px;
}
.vh-h2 {
  margin: 0 0 20px;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}
.vh-p {
  margin: 0 0 16px;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.8;
  color: #4b5651;
}
.vh-p strong { color: var(--vh-text); font-weight: 600; }

.vh-sources {
  align-self: start;
  border: 1px solid var(--vh-line);
  border-radius: 16px;
  background: var(--vh-soft);
  padding: 24px;
  font-size: 15px;
}
.vh-sources ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.vh-sources a {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--vh-text);
  text-decoration: none;
}
.vh-sources a:hover { color: var(--vh-brand); }
.vh-sources a .vh-icon { margin-left: 6px; vertical-align: -2px; color: var(--vh-muted); }
.vh-src-pub {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vh-brand-text);
}

.vh-related-label {
  margin-top: 56px !important;
  font-size: 12px;
}
.vh-related {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}
.vh-related-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  border: 1px solid var(--vh-line);
  border-radius: 14px;
  background: #ffffff;
  padding: 22px 64px 22px 22px;
  color: var(--vh-text);
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s, transform 0.2s;
}
.vh-related-card:hover { border-color: rgba(0, 169, 79, 0.6); transform: translateY(-2px); color: var(--vh-text); }
.vh-related-title { font-size: 17px; font-weight: 600; }
.vh-related-text { font-size: 14px; line-height: 1.6; color: var(--vh-muted); }
.vh-related-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #dfe4e1;
  color: var(--vh-muted);
  font-size: 16px;
}
.vh-related-card:hover .vh-related-arrow { background: var(--vh-brand); border-color: var(--vh-brand); color: #ffffff; }

/* ------------------------------------------------------------------ */
/* Rozvržení podle šířky                                               */
/* ------------------------------------------------------------------ */

@media (max-width: 639px) {
  .vh-sheet { font-size: 14px; padding: 1em; border-radius: 1em; }
  .vh-stage { padding: 24px 8px 48px; }
  /* Tabulka na mobilu po řádcích: část, jak, nikdy pod sebou */
  .vh-table thead { display: none; }
  .vh-table tr { display: grid; padding: 0.6em 0; border-bottom: 1px solid var(--vh-line); }
  .vh-table tbody tr:last-child { border-bottom: 0; }
  .vh-table th,
  .vh-table td { border: 0; padding: 0.15em 0; width: auto; }
}

@media (min-width: 640px) {
  .vh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vh-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vh-related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .vh-sheet { padding: 2em; }
  .vh-sh-head { grid-template-columns: minmax(0, 1fr) minmax(0, 20em); padding: 1.5em 1.8em; }
  .vh-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vh-grid2 { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .vh-why-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; }
}

/* ------------------------------------------------------------------ */
/* Tisk: jen list manuálu na jedné A4                                  */
/* ------------------------------------------------------------------ */

@page {
  size: A4 portrait;
  margin: 8mm;
}

@media print {
  html,
  body {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Hlavička a patička webu pryč (main je přímý potomek body) */
  body > *:not(main) { display: none !important; }
  .vh-noprint { display: none !important; }

  .vh,
  .vh * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .vh-stage { padding: 0; background: none; }

  .vh-sheet {
    font-size: 8.1pt;
    line-height: 1.38;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    gap: 0.95em;
    break-inside: avoid;
  }

  /* Rozvržení jako na širokém displeji, i když je stránka úzká */
  .vh-sh-head { grid-template-columns: minmax(0, 1fr) minmax(0, 19em); padding: 1.1em 1.4em; }
  .vh-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65em; }
  .vh-step { padding: 0.75em 0.8em 0.8em; }
  .vh-grid2 { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 1.1em; }
  .vh-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1em; }
  .vh-figure { padding: 0.4em 0.6em; }
  .vh-figure-svg { max-width: 22em; }

  .vh-block,
  .vh-step,
  .vh-health-block { break-inside: avoid; }
}
