body.guide-page {
  --guide-copy: rgba(255, 255, 255, 0.76);
  --guide-heading: rgba(255, 255, 255, 0.94);
  --guide-divider: rgba(255, 255, 255, 0.08);
}

body.guide-page main .section > .container {
  max-width: 72ch;
  margin: 0 auto;
}

body.guide-page p,
body.guide-page li,
body.guide-page summary {
  font-size: 17px;
  line-height: 1.8;
}

body.guide-page p {
  margin: 0 0 1.2rem;
}

body.guide-page li {
  color: var(--guide-copy);
  margin-bottom: 0.55rem;
}

body.guide-page ul,
body.guide-page ol {
  margin: 0 0 1.55rem 1.45rem;
  padding: 0;
}

body.guide-page h1 {
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.12;
  margin: 0 0 0.9rem;
}

body.guide-page h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  margin: 3.2rem 0 1rem;
  color: var(--guide-heading);
}

body.guide-page h3 {
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.25;
  margin: 1.9rem 0 0.7rem;
  color: rgba(255, 255, 255, 0.9);
}

body.guide-page .section-heading {
  margin-bottom: 2rem;
}

body.guide-page .section-heading .eyebrow {
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

body.guide-page .muted {
  color: rgba(255, 255, 255, 0.62);
  font-size: inherit;
}

body.guide-page .guide-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.5rem;
}

body.guide-page .section > .container > .muted:first-child,
body.guide-page .guide-content > .muted:first-child {
  margin: 0 auto 0.8rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.56);
}

body.guide-page .section > .container > .muted:first-child a,
body.guide-page .guide-content > .muted:first-child a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

body.guide-page .section > .container > .muted:first-child a::before,
body.guide-page .guide-content > .muted:first-child a::before {
  content: "←";
  color: rgba(255, 138, 59, 0.9);
}

body.guide-page .section > .container > .muted:first-child a:hover,
body.guide-page .guide-content > .muted:first-child a:hover {
  color: rgba(255, 255, 255, 0.76);
  transform: translateX(-1px);
}

body.guide-page .section > .container > .muted:first-child + .section-heading,
body.guide-page .guide-content > .muted:first-child + .section-heading {
  gap: 0.85rem;
  margin-bottom: 2.35rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.guide-page .section > .container > .muted:first-child + .section-heading .eyebrow,
body.guide-page .guide-content > .muted:first-child + .section-heading .eyebrow {
  display: none;
}

body.guide-page .section > .container > .muted:first-child + .section-heading h1,
body.guide-page .guide-content > .muted:first-child + .section-heading h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
}

body.guide-page .section > .container > .muted:first-child + .section-heading p:nth-of-type(2),
body.guide-page .guide-content > .muted:first-child + .section-heading p:nth-of-type(2) {
  font-size: 1.14rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 44rem;
}

body.guide-page .section > .container > .muted:first-child + .section-heading p:nth-of-type(3),
body.guide-page .guide-content > .muted:first-child + .section-heading p:nth-of-type(3) {
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.68);
  max-width: 46rem;
}

body.guide-page .section > .container > .muted:first-child + .section-heading::after,
body.guide-page .guide-content > .muted:first-child + .section-heading::after {
  content: "Praktický průvodce pro firmy / Aktualizováno 03/2026";
  display: block;
  padding-top: 0.15rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.54);
}

body.guide-page .guide-content,
body.guide-page .section > .container > .section-heading,
body.guide-page .section > .container > h2,
body.guide-page .section > .container > h3,
body.guide-page .section > .container > p,
body.guide-page .section > .container > ul,
body.guide-page .section > .container > ol,
body.guide-page .section > .container > details,
body.guide-page .section > .container > .guide-card,
body.guide-page .section > .container > .hero-actions,
body.guide-page .section > .container > .muted {
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
}

body.guide-page .guide-card {
  display: grid;
  gap: 0.95rem;
  background: linear-gradient(132deg, rgba(255, 138, 59, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--guide-divider);
  border-radius: 18px;
  padding: 1.28rem 1.45rem;
  margin: 1.8rem 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

body.guide-page .guide-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

body.guide-page .guide-card h2 {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

body.guide-page .guide-card p {
  color: var(--guide-copy);
}

body.guide-page .guide-card ul,
body.guide-page .guide-card ol {
  margin: 0;
  padding-left: 1.25rem;
}

body.guide-page .guide-card .package-features,
body.guide-page .guide-card .reference-points {
  list-style: disc;
}

body.guide-page .guide-card .package-features li::before,
body.guide-page .guide-card .reference-points li::before {
  content: none;
}

body.guide-page .guide-card .package-features li,
body.guide-page .guide-card .reference-points li {
  margin-bottom: 0.6rem;
}

body.guide-page .guide-card li strong {
  color: var(--guide-heading);
}

body.guide-page .guide-card .package-features li:last-child,
body.guide-page .guide-card .reference-points li:last-child {
  margin-bottom: 0;
}

body.guide-page .guide-faq details {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.82rem 0.95rem;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 0.65rem;
}

body.guide-page .guide-faq details:first-of-type {
  margin-top: 0.15rem;
}

body.guide-page .guide-faq details:last-of-type {
  margin-bottom: 0;
}

body.guide-page .guide-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  color: var(--guide-heading);
  line-height: 1.55;
  padding-right: 1.5rem;
}

body.guide-page .guide-faq summary::-webkit-details-marker {
  display: none;
}

body.guide-page .guide-faq summary::after {
  content: ">";
  float: right;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.guide-page .guide-faq details[open] summary::after {
  transform: rotate(180deg);
  opacity: 1;
}

body.guide-page .guide-faq p {
  color: var(--guide-copy);
  margin: 0.65rem 0 0;
}

body.guide-page .guide-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

body.guide-page .guide-card-actions .btn-primary,
body.guide-page .guide-card-actions .btn-secondary {
  min-height: 42px;
  padding: 0.62rem 1.05rem;
  font-size: 0.92rem;
}

body.guide-page .package-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

body.guide-page .package-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
}

body.guide-page .package-card h3 {
  margin-top: 0;
}

body.guide-page .package-card .package-cta {
  margin-top: 0.75rem;
}

body.guides-index .package-grid--guides-index {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

body.guides-index .section-heading {
  gap: 0.65rem;
}

body.guides-index .guide-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.15rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
}

body.guides-index .guide-breadcrumb a {
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  transition: color 0.2s ease;
}

body.guides-index .guide-breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.82);
}

body.guides-index .guide-breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.72);
}

body.guides-index .package-card--guide {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.96), rgba(11, 11, 11, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.guides-index .package-card--guide:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.34);
}

body.guides-index .package-card-link {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.15rem 1.15rem 1.1rem;
  color: inherit;
  text-decoration: none;
}

body.guides-index .guide-kicker {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

body.guides-index .package-card--guide h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.28;
  color: rgba(255, 255, 255, 0.96);
}

body.guides-index .package-card--guide p {
  margin: 0;
}

body.guides-index .package-card--guide > * + * {
  margin-top: 0;
}

body.guides-index .package-card-link > p:not(.guide-kicker):not(.guide-meta) {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.62;
}

body.guides-index .package-card-link .guide-meta {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.5);
}

body.guides-index .package-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.84);
}

body.guides-index .package-card-link:hover .package-inline-link {
  color: #ffffff;
}

body.guides-index .package-card-link:focus-visible {
  outline: 2px solid rgba(255, 138, 59, 0.75);
  outline-offset: -2px;
}


body.guide-page .hero-actions {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

body.guide-page .hero-actions + .muted {
  display: inline-flex;
  margin: 2rem 0 0 0.65rem;
  vertical-align: top;
}

body.guide-page .hero-actions + .muted a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.62rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.1;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.guide-page .hero-actions + .muted a:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 138, 59, 0.2);
}

body.guide-page .hero-actions + .muted a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* === Guide content typography & readability === */

body.guide-page .guide-content > h2,
body.guide-page .section > .container > h2 {
  margin-top: 3.4rem;
  padding-top: 1.55rem;
  border-top: 1px solid var(--guide-divider);
}

body.guide-page .guide-content > h2:first-of-type,
body.guide-page .section > .container > h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

body.guide-page .guide-content > h3,
body.guide-page .section > .container > h3 {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

body.guide-page .guide-content > p,
body.guide-page .section > .container > p {
  color: var(--guide-copy);
  margin-bottom: 1.3rem;
}

body.guide-page .guide-content > ul,
body.guide-page .guide-content > ol,
body.guide-page .section > .container > ul,
body.guide-page .section > .container > ol {
  margin: 0.75rem 0 1.65rem 0;
  padding-left: 1.5rem;
}

body.guide-page .guide-content > ul > li,
body.guide-page .guide-content > ol > li,
body.guide-page .section > .container > ul > li,
body.guide-page .section > .container > ol > li {
  margin-bottom: 0.65rem;
  color: var(--guide-copy);
  padding-left: 0.2rem;
}

body.guide-page .guide-content > ul > li::marker,
body.guide-page .guide-content > ol > li::marker,
body.guide-page .section > .container > ul > li::marker,
body.guide-page .section > .container > ol > li::marker {
  color: rgba(255, 138, 59, 0.72);
}

body.guide-page .guide-content > ul > li strong,
body.guide-page .guide-content > ol > li strong,
body.guide-page .section > .container > ul > li strong,
body.guide-page .section > .container > ol > li strong {
  color: var(--guide-heading);
}

/* Subtle accent line on H2 */
body.guide-page .guide-content > h2::before,
body.guide-page .section > .container > h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: linear-gradient(90deg, #ff8a3b, rgba(255, 138, 59, 0.3));
  border-radius: 2px;
  margin-bottom: 0.8rem;
}

/* Guide card improvements for expanded content */
body.guide-page .guide-card details {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 0.5rem;
}

body.guide-page .guide-card details summary {
  cursor: pointer;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

body.guide-page .guide-card details p,
body.guide-page .guide-card details li {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

body.guide-page .guide-content > h2 + p,
body.guide-page .section > .container > h2 + p,
body.guide-page .guide-content > h3 + p,
body.guide-page .section > .container > h3 + p {
  margin-top: 0.15rem;
}

body.guide-page .guide-content > p + ul,
body.guide-page .guide-content > p + ol,
body.guide-page .section > .container > p + ul,
body.guide-page .section > .container > p + ol {
  margin-top: -0.2rem;
}

/* Nested lists inside details accordions */
body.guide-page details > div > ul,
body.guide-page details > div > ol,
body.guide-page details > ul,
body.guide-page details > ol {
  margin: 0.6rem 0 0.8rem 0;
  padding-left: 1.3rem;
}

body.guide-page details > div > ul > li,
body.guide-page details > div > ol > li,
body.guide-page details > ul > li,
body.guide-page details > ol > li {
  margin-bottom: 0.4rem;
  color: var(--guide-copy);
}

body.guide-page details > div > h3,
body.guide-page details > h3 {
  font-size: clamp(16px, 1.4vw, 18px);
  margin: 1.3rem 0 0.4rem;
  color: rgba(255, 255, 255, 0.9);
}

body.guide-page details > div > h3:first-child,
body.guide-page details > h3:first-child {
  margin-top: 0.6rem;
}

body.guide-page details > div > p,
body.guide-page details > p {
  color: var(--guide-copy);
  margin-bottom: 0.8rem;
}

/* Reference body / error card in guides */
body.guide-page .reference-body.guide-card {
  background: linear-gradient(132deg, rgba(255, 70, 70, 0.04), rgba(255, 255, 255, 0.015));
  border-color: rgba(255, 100, 100, 0.1);
}

/* === "Číst dále" inline accordions for guide body sections === */

body.guide-page .section > .container > details,
body.guide-page .guide-content > details {
  border: none;
  border-left: 2px solid rgba(255, 138, 59, 0.25);
  border-radius: 0;
  padding: 0 0 0 1.1rem;
  margin: 0.55rem 0 1.8rem;
  background: none;
}

body.guide-page .section > .container > details > summary,
body.guide-page .guide-content > details > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ff8a3b;
  list-style: none;
  padding: 0.45rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

body.guide-page .section > .container > details > summary:hover,
body.guide-page .guide-content > details > summary:hover {
  color: #ffaa6b;
}

body.guide-page .section > .container > details > summary::-webkit-details-marker,
body.guide-page .guide-content > details > summary::-webkit-details-marker {
  display: none;
}

body.guide-page .section > .container > details > summary::after,
body.guide-page .guide-content > details > summary::after {
  content: "↓";
  font-size: 12px;
  transition: transform 0.25s ease;
}

body.guide-page .section > .container > details[open] > summary::after,
body.guide-page .guide-content > details[open] > summary::after {
  transform: rotate(180deg);
}

body.guide-page .section > .container > details[open] > summary,
body.guide-page .guide-content > details[open] > summary {
  margin-bottom: 0;
}

body.guide-page .section > .container > details[data-animated] > .details-anim-content,
body.guide-page .guide-content > details[data-animated] > .details-anim-content {
  padding-top: 0.55rem;
  will-change: height, opacity, transform;
  overflow: hidden;
}

body.guide-page .section > .container > details > div > p,
body.guide-page .guide-content > details > div > p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}

body.guide-page .section > .container > details > div > ul,
body.guide-page .section > .container > details > div > ol,
body.guide-page .guide-content > details > div > ul,
body.guide-page .guide-content > details > div > ol {
  margin: 0.45rem 0 1rem 0;
  padding-left: 1.4rem;
}

body.guide-page .section > .container > details > div > ul > li,
body.guide-page .section > .container > details > div > ol > li,
body.guide-page .guide-content > details > div > ul > li,
body.guide-page .guide-content > details > div > ol > li {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.4rem;
}

body.guide-page .section > .container > details > div > h3,
body.guide-page .guide-content > details > div > h3 {
  font-size: clamp(16px, 1.4vw, 18px);
  margin: 1.2rem 0 0.4rem;
  color: rgba(255, 255, 255, 0.88);
}

body.guide-page .section > .container > details > div > h3:first-child,
body.guide-page .guide-content > details > div > h3:first-child {
  margin-top: 0.3rem;
}

body.guide-page .section > .container > details,
body.guide-page .guide-content > details {
  border-left-width: 1px;
  border-left-color: rgba(255, 138, 59, 0.32);
  padding-left: 1rem;
  margin: 0.55rem 0 1.85rem;
}

body.guide-page .section > .container > details > summary,
body.guide-page .guide-content > details > summary {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(255, 181, 130, 0.95);
  line-height: 1.5;
}

body.guide-page .section > .container > details > summary::after,
body.guide-page .guide-content > details > summary::after {
  content: ">";
}

body.guide-page .section > .container > details[open] > summary::after,
body.guide-page .guide-content > details[open] > summary::after {
  transform: rotate(90deg);
}

body.guide-page .section > .container > details > div > p,
body.guide-page .guide-content > details > div > p,
body.guide-page .section > .container > details > div > ul > li,
body.guide-page .section > .container > details > div > ol > li,
body.guide-page .guide-content > details > div > ul > li,
body.guide-page .guide-content > details > div > ol > li {
  color: var(--guide-copy);
}

/* CTA section spacing */
body.guide-page .hero-actions {
  margin-top: 2.2rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 720px) {
  body.guides-index .package-grid--guides-index {
    gap: 0.85rem;
  }

  body.guides-index .package-card-link {
    padding: 1rem;
    gap: 0.62rem;
  }

  body.guides-index .package-card--guide h3 {
    font-size: 1.08rem;
  }

  body.guide-page .guide-card {
    padding: 1.1rem 1rem;
  }

  body.guide-page .guide-card-actions {
    flex-direction: column;
  }

  body.guide-page .guide-card-actions .btn-primary,
  body.guide-page .guide-card-actions .btn-secondary {
    width: 100%;
  }

  body.guide-page .hero-actions {
    margin-top: 1.4rem;
  }

  body.guide-page .hero-actions + .muted {
    display: flex;
    width: 100%;
    margin: 0.7rem 0 0;
  }

  body.guide-page .hero-actions + .muted a {
    width: 100%;
  }
}
