/* ====================================================================
   Poradna (#662): article layout of the approved mockup reporty/poradna-navrh-mockup.html
   (David 2026-11-30: no side table of contents, no chapter numbers, no big doctor photo, text column centered).
   Only site tokens; components .service-icon, .service-cta, .btn and .article-* (news.css) are reused.
   Loaded by poradna-clanek.php.
   ==================================================================== */

.poradna-article {
  overflow-x: clip;
}

.poradna-article .container {
  max-width: 1180px;
}

/* Text column about 68 characters, centered (AC-7) */
.poradna-column {
  max-width: 68ch;
  margin: 0 auto;
  font-size: 1.0625rem;
}

.poradna-column .article-header h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.15;
}

/* Lead paragraph larger than the text (AC-7) */
.poradna-column .article-lead {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.65;
  color: var(--text-dark);
}

.poradna-column .article-image {
  height: auto;
  margin-top: 2.5rem;
}

.poradna-column .article-image img {
  height: auto;
  display: block;
}

/* Box „V kostce“ (AC-1) */
.poradna-in-brief {
  background: linear-gradient(135deg, var(--primary-light), var(--white));
  border: 1px solid var(--primary-gold);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.75rem;
  margin: 0 0 3rem;
  box-shadow: var(--shadow-gold-sm);
}

.poradna-in-brief__title {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.4rem 1.25rem;
  background: linear-gradient(135deg, var(--primary-gold), var(--accent-gold));
  color: var(--white);
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.poradna-in-brief__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.poradna-in-brief__list li {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.6;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.poradna-in-brief__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-circle);
  background: linear-gradient(135deg, var(--primary-gold), var(--accent-gold));
}

/* Text */
.poradna-column .article-body {
  line-height: 1.85;
  min-width: 0;
}

.poradna-column .article-body > p:first-child {
  font-size: 1.2rem;
  line-height: 1.7;
}

/* More space between chapters (AC-7) */
.poradna-column .article-body > h2,
.poradna-faq > h2 {
  margin-top: 5rem;
}

.poradna-column .article-body > h2:first-child {
  margin-top: 0;
}

.poradna-key {
  border-left: 3px solid var(--primary-gold);
  padding-left: 1.25rem;
}

/* Two cards side by side (AC-2) */
.poradna-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

.poradna-person {
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.poradna-person__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  border-radius: var(--radius-circle);
  background: linear-gradient(135deg, var(--primary-gold), var(--accent-gold));
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.poradna-person p {
  margin: 0;
  line-height: 1.7;
}

/* Cards with an icon and a title (AC-2, icon like .service-icon) */
.poradna-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.poradna-type {
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.poradna-type:hover {
  border-color: var(--primary-gold);
  box-shadow: var(--shadow-gold-sm);
}

.poradna-type .service-icon {
  margin-bottom: 1.1rem;
}

.poradna-type p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-dark);
}

.poradna-type b {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.25;
}

/* Boxes „Dobré vědět“ and „Upozornění“ (AC-3) */
.poradna-note {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  border-left: 4px solid var(--primary-gold);
}

.poradna-note__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-strong);
}

.poradna-note p {
  margin: 0;
  color: var(--primary-dark);
}

.poradna-note--warn {
  background: var(--white);
  border: 1.5px solid var(--accent-gold);
  border-left: 4px solid var(--accent-gold-light);
  box-shadow: var(--shadow-xs);
}

/* Consultation band in the middle of the text (AC-5, .service-cta) */
.poradna-article .poradna-band {
  margin: 5rem 0 0;
  padding: 3rem 2rem;
}

.poradna-article .poradna-band .poradna-band__title {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.poradna-article .poradna-band p {
  margin: 0 auto 2rem;
  max-width: 44ch;
}

.poradna-band .btn {
  text-align: center;
}

/* Comparison table, cards on a phone (AC-2) */
.poradna-table-wrap {
  margin-top: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  background: var(--white);
}

.poradna-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  line-height: 1.55;
}

.poradna-table thead th {
  background: var(--primary-light);
  color: var(--primary-dark);
  text-align: left;
  padding: 1rem 1.1rem;
  font-weight: 600;
  border-bottom: 2px solid var(--primary-gold);
}

.poradna-table td,
.poradna-table tbody th {
  padding: 1rem 1.1rem;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.poradna-table tbody tr:last-child > * {
  border-bottom: 0;
}

.poradna-table tbody th {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  width: 20%;
}

.poradna-table tbody tr:nth-child(even) {
  background: var(--primary-light);
}

.poradna-na {
  color: var(--text-light);
}

/* Questions as an accordion (AC-4, look of .faq-item) */
.poradna-faq__item {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  margin-top: 1rem;
}

.poradna-faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  min-height: 44px;
}

.poradna-faq__item summary::-webkit-details-marker {
  display: none;
}

.poradna-faq__item summary::after {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-right: 0.25rem;
  border-right: 2px solid var(--color-primary-strong);
  border-bottom: 2px solid var(--color-primary-strong);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.poradna-faq__item[open] summary::after {
  transform: rotate(-135deg);
}

.poradna-faq__item summary:focus-visible {
  outline: 2px solid var(--color-primary-strong);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* The question is the summary's own text, not a heading inside it (#662 code review), in the heading style */
.poradna-article .poradna-faq__item summary {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--primary-dark);
}

.poradna-article .poradna-faq__item p {
  margin: 0;
  padding: 0 1.5rem 1.5rem;
  color: var(--text-light);
  line-height: 1.75;
}

.poradna-faq__item[open] {
  box-shadow: var(--shadow-gold-sm);
}

/* Consultation card with the doctor photo (AC-5) */
.poradna-doctor {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin: 2.5rem 0 0;
  padding: 2rem;
  background: var(--primary-light);
  border: 1px solid var(--primary-gold);
  border-radius: var(--radius-lg);
}

.poradna-doctor__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.poradna-doctor__body p {
  margin: 0 0 1rem;
}

.poradna-doctor__body .btn {
  margin: 0.5rem 0 1.5rem;
  text-align: center;
}

.poradna-doctor__body .poradna-doctor__contact {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--primary-gold);
  font-size: 0.95rem;
  line-height: 1.7;
}

.poradna-closing-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Related treatments (AC-6) */
.poradna-related {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-light);
}

.poradna-related h2 {
  text-align: center;
  margin: 0 0 2rem;
}

.poradna-related__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
}

.poradna-related__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.poradna-related__card:hover,
.poradna-related__card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-gold);
}

.poradna-related__media {
  height: 130px;
  overflow: hidden;
}

.poradna-related__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poradna-related__media--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-gold), var(--accent-gold));
  color: var(--white);
}

.poradna-related__card h3 {
  margin: 1rem 1.1rem 0.4rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

.poradna-related__link {
  color: var(--primary-dark);
  text-decoration: none;
}

.poradna-related__link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.poradna-related__link:focus-visible {
  outline: 2px solid var(--color-primary-strong);
  outline-offset: -4px;
}

.poradna-related__more {
  margin: auto 1.1rem 1.1rem;
  padding-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary-strong);
}

/* Phone */
@media (max-width: 768px) {
  .poradna-in-brief {
    padding: 1.5rem 1.25rem;
  }

  .poradna-two,
  .poradna-types {
    grid-template-columns: 1fr;
  }

  .poradna-column .article-body > h2,
  .poradna-faq > h2 {
    margin-top: 3.5rem;
  }

  .poradna-column .article-body > h2:first-child {
    margin-top: 0;
  }

  .poradna-article .poradna-band {
    padding: 2rem 1.25rem;
    margin-top: 3.5rem;
  }

  .poradna-table-wrap {
    border: 0;
    background: transparent;
    border-radius: 0;
  }

  .poradna-table,
  .poradna-table tbody,
  .poradna-table tr,
  .poradna-table td,
  .poradna-table tbody th {
    display: block;
    width: 100%;
  }

  .poradna-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .poradna-table tbody tr,
  .poradna-table tbody tr:nth-child(even) {
    background: var(--primary-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
  }

  .poradna-table tbody th {
    width: 100%;
    padding: 0 0 0.75rem;
    border: 0;
    font-size: 1.2rem;
  }

  .poradna-table td {
    padding: 0.55rem 0;
    border: 0;
    border-top: 1px solid var(--border-light);
  }

  .poradna-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary-strong);
  }

  .poradna-doctor {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .poradna-doctor__photo {
    max-width: 220px;
  }

  .poradna-doctor__body .btn {
    width: 100%;
  }

  .poradna-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poradna-related__grid .poradna-related__card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poradna-related__card,
  .poradna-type,
  .poradna-faq__item summary::after {
    transition: none;
  }

  .poradna-related__card:hover,
  .poradna-related__card:focus-within {
    transform: none;
  }
}
