body {
  color: var(--color-grey-400);
  line-height: 1.6;
  background-color: var(--color-white);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.section-title {
  color: var(--color-blue-200);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

/* дрібним заголовкам від'ємний трекинг лише злипає літери */
h4,
h5,
h6 {
  letter-spacing: 0;
}

/* Заголовок сторінки — та сама шкала, що й заголовки секцій головної (front-page/global.css):
   раніше H1 внутрішньої сторінки був меншим за H2 секції на головній. */
h1, .page-title {
  font-size: clamp(30px, 1.6vw + 14px, 44px);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

h2, .section-title {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.5rem);
}

h4 {
  font-size: 1.2rem;
}

h5 {
  font-size: 1.05rem;
}

h6 {
  font-size: 1rem;
}

p {
  font-size: 18px;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-blue-050);
  text-decoration: none;
  transition: color 0.2s ease;
}

@media (hover: hover) {
  a:hover {
    color: var(--color-blue-100);
  }
}

strong,
b {
  font-weight: 700;
  color: var(--color-blue-200);
}

ul,
ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

ul li::marker {
  color: var(--color-blue-050);
}

ol li::marker {
  color: var(--color-blue-100);
  font-weight: 600;
}

blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--color-blue-050);
  background-color: var(--color-grey-010);
  border-radius: 0 16px 16px 0;
  font-style: italic;
  color: var(--color-blue-200);
  font-size: 1.1rem;
}

blockquote p:last-child {
  margin-bottom: 0;
}

blockquote cite,
blockquote footer {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
  color: var(--color-grey-300);
}

.pk-breadcrumbs a {
  color: var(--color-grey-400);
}

@media (hover: hover) {
  .pk-breadcrumbs a:hover {
    color: var(--color-blue-050);
  }
}

@media (max-width: 768px) {
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    .page-title,
    .section-title {
        line-height: 1.25;
        margin-bottom: 1rem;
        letter-spacing: -0.02em;
    }
    
    h1, .page-title { font-size: clamp(1.6rem, 7vw, 1.8rem); }
    h2, .section-title { font-size: clamp(1.4rem, 6vw, 1.5rem); }
    h3 { font-size: clamp(1.2rem, 5vw, 1.35rem); }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1.05rem; }
    h6 { font-size: 1rem; }

    p, ul, ol, li, blockquote {
        font-size: 16px;
        line-height: 1.55;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
}

/* Accordion styles (details/summary) */
.pk-content-formatting details summary,
details.wp-block-details summary {
  padding: 16px 50px 16px 20px;
  background-color: var(--color-grey-010, #f8fafc);
  color: var(--color-blue-200);
  border-left: 4px solid var(--color-blue-100);
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  position: relative;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}

.pk-content-formatting details summary::-webkit-details-marker,
details.wp-block-details summary::-webkit-details-marker {
  display: none;
}

.pk-content-formatting details summary::after,
details.wp-block-details summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-blue-200);
  border-bottom: 2px solid var(--color-blue-200);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s ease;
}

.pk-content-formatting details[open] summary::after,
details.wp-block-details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

@media (hover: hover) {
  .pk-content-formatting details summary:hover,
  details.wp-block-details summary:hover {
    background-color: #f1f5f9;
    border-left-color: var(--color-blue-200);
  }
}

@media (max-width: 768px) {
  .pk-content-formatting details summary,
  details.wp-block-details summary {
    padding: 12px 14px;
    font-size: 0.9rem;
    line-height: 1.35;
    word-break: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
  }
}

.pk-content-formatting details,
details.wp-block-details {
  margin-bottom: 16px;
}

.pk-content-formatting details[open],
details.wp-block-details[open] {
  padding-bottom: 16px;
  border-bottom: 1px solid #cbd5e1;
  margin-bottom: 24px;
}

.pk-content-formatting details[open] > *:not(summary),
details.wp-block-details[open] > *:not(summary) {
}

details[open] p {
  margin: 1.2rem 0;
}
