/* ---------------------------------------------------------------------
   Diamond Pack — стилі для SEO-статей (rich-articles)
   Активуються коли content сторінки починається з <!-- dp:article -->
   --------------------------------------------------------------------- */

.dpa-wrap { background: #faf9fc; padding: 0 0 80px; }
.dpa-container { max-width: 920px; margin: 0 auto; padding: 0 20px; }

/* HERO */
.dpa-hero {
    background: linear-gradient(135deg, #5d3a9b 0%, #624c9e 50%, #7a5fbc 100%);
    color: #fff; padding: 60px 0 90px; position: relative; overflow: hidden;
}
.dpa-hero::before {
    content: ""; position: absolute; top: -120px; right: -120px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(255,255,255,.10), transparent 70%);
    border-radius: 50%;
}
.dpa-hero .dpa-container { position: relative; z-index: 2; }
.dpa-crumb { font-size: .88rem; opacity: .85; margin-bottom: 18px; }
.dpa-crumb a { color: #fff; text-decoration: none; }
.dpa-crumb a:hover { text-decoration: underline; }
.dpa-tag {
    display: inline-block; background: rgba(255,255,255,.18);
    color: #fff; padding: 6px 16px; border-radius: 30px;
    font-size: .76rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1.2px; margin-bottom: 16px;
}
.dpa-hero h1 {
    font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800;
    line-height: 1.2; margin: 0 0 14px; letter-spacing: -.5px; max-width: 780px;
}
.dpa-hero__lead {
    font-size: 1.05rem; opacity: .92; max-width: 720px; line-height: 1.65; margin: 0;
}
.dpa-meta {
    display: flex; gap: 18px; flex-wrap: wrap;
    margin-top: 22px; font-size: .82rem; opacity: .88;
}
.dpa-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* TL;DR */
.dpa-tldr {
    background: #fff; border-radius: 22px; padding: 28px 32px;
    box-shadow: 0 24px 60px rgba(98,76,158,.14);
    border: 1px solid #ece6f5;
    margin: -50px auto 50px; position: relative; z-index: 5;
}
.dpa-tldr h2 {
    font-size: .82rem; font-weight: 800; color: #5d3a9b;
    text-transform: uppercase; letter-spacing: .14em;
    margin: 0 0 14px; display: flex; align-items: center; gap: 10px;
}
.dpa-tldr h2::before {
    content: ""; width: 26px; height: 26px; border-radius: 8px;
    background: linear-gradient(135deg, #624c9e, #7a5fbc);
    display: inline-block;
    background-image: linear-gradient(135deg, #624c9e, #7a5fbc),
                      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.2 4.8 12l-1.4 1.4L9 19l12-12-1.4-1.4z'/></svg>");
    background-size: cover, 16px 16px; background-position: center;
    background-repeat: no-repeat; background-blend-mode: normal;
}
.dpa-tldr ul { margin: 0; padding-left: 20px; color: #2b1f4a; line-height: 1.75; font-size: .96rem; }
.dpa-tldr ul li { margin-bottom: 6px; }

/* TOC */
.dpa-toc {
    background: #f3eeff; border-left: 4px solid #624c9e;
    border-radius: 12px; padding: 22px 26px; margin: 0 0 44px;
}
.dpa-toc__title {
    font-size: .82rem; font-weight: 800; color: #5d3a9b;
    text-transform: uppercase; letter-spacing: .14em; margin: 0 0 12px;
}
.dpa-toc ol { margin: 0; padding-left: 22px; color: #2b1f4a; font-size: .95rem; line-height: 1.8; }
.dpa-toc ol a { color: #5d3a9b; text-decoration: none; }
.dpa-toc ol a:hover { text-decoration: underline; }

/* BODY */
.dpa-body { font-size: 1.02rem; line-height: 1.8; color: #2b1f4a; }
.dpa-body h2 {
    font-size: 1.55rem; font-weight: 800; color: #2b1f4a;
    margin: 50px 0 16px; letter-spacing: -.02em; scroll-margin-top: 90px;
    padding-bottom: 10px; border-bottom: 2px solid #ece6f5;
}
.dpa-body h3 {
    font-size: 1.18rem; font-weight: 800; color: #3a2860;
    margin: 28px 0 10px;
}
.dpa-body p { margin: 0 0 16px; }
.dpa-body strong { color: #1f1138; }
.dpa-body a { color: #5d3a9b; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(93,58,155,.25); }
.dpa-body a:hover { text-decoration-color: #5d3a9b; }
.dpa-body ul, .dpa-body ol { margin: 0 0 18px; padding-left: 24px; }
.dpa-body ul li, .dpa-body ol li { margin-bottom: 8px; }

/* CALLOUT */
.dpa-callout {
    background: #fff8eb; border: 1px solid #f4d68b; border-radius: 16px;
    padding: 18px 22px; margin: 22px 0; display: flex; gap: 14px;
}
.dpa-callout__ico {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, #EFC060, #d99e2e); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.1rem;
}
.dpa-callout p { margin: 0; font-size: .95rem; color: #5a4a1f; line-height: 1.65; }
.dpa-callout--info { background: #eef4ff; border-color: #b9cdf2; }
.dpa-callout--info .dpa-callout__ico { background: linear-gradient(135deg, #4f7be3, #335fb9); }
.dpa-callout--info p { color: #1f3563; }

/* TABLE */
.dpa-table-wrap { overflow-x: auto; margin: 18px 0 26px; }
.dpa-table {
    width: 100%; border-collapse: collapse; font-size: .94rem;
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 8px 24px rgba(98,76,158,.08);
}
.dpa-table th {
    background: #5d3a9b; color: #fff; font-weight: 700; text-align: left;
    padding: 12px 16px; font-size: .88rem;
}
.dpa-table td { padding: 12px 16px; border-top: 1px solid #ece6f5; vertical-align: top; }
.dpa-table tr:nth-child(even) td { background: #faf8fd; }

/* CHECKLIST */
.dpa-check {
    background: #fff; border-radius: 16px; padding: 24px 28px;
    border: 1px solid #ece6f5; margin: 22px 0;
}
.dpa-check h3 { margin-top: 0 !important; color: #5d3a9b !important; font-size: 1.05rem !important; }
.dpa-check ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.dpa-check ul li {
    padding-left: 30px; position: relative; margin-bottom: 10px !important; font-size: .95rem;
}
.dpa-check ul li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    width: 22px; height: 22px; border-radius: 50%;
    background: #d9c8f5; color: #5d3a9b;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .8rem;
}

/* CATEGORY-LINK CARDS */
.dpa-catlinks {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px; margin: 22px 0 30px;
}
.dpa-catlink {
    display: block; background: #fff; padding: 18px 20px;
    border-radius: 14px; border: 1px solid #ece6f5;
    text-decoration: none !important; color: #2b1f4a !important;
    transition: .2s; font-size: .94rem;
}
.dpa-catlink:hover {
    border-color: #624c9e; transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(98,76,158,.14);
}
.dpa-catlink__label {
    display: block; font-size: .7rem; color: #5d3a9b;
    text-transform: uppercase; letter-spacing: .12em; font-weight: 800; margin-bottom: 4px;
}
.dpa-catlink__title { font-weight: 700; }
.dpa-catlink__arrow { float: right; color: #5d3a9b; font-weight: 800; }

/* FAQ */
.dpa-faq { margin: 36px 0 50px; display: flex; flex-direction: column; gap: 10px; }
.dpa-faq details {
    background: #fff; border: 1px solid #ece6f5; border-radius: 14px;
    padding: 16px 22px; transition: .2s;
}
.dpa-faq details[open] { border-color: #624c9e; box-shadow: 0 12px 28px rgba(98,76,158,.10); }
.dpa-faq summary {
    cursor: pointer; font-weight: 700; color: #2b1f4a; font-size: 1rem;
    list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.dpa-faq summary::-webkit-details-marker { display: none; }
.dpa-faq summary::after {
    content: "+"; font-size: 1.5rem; line-height: 1; color: #624c9e;
    transition: transform .2s;
}
.dpa-faq details[open] summary::after { transform: rotate(45deg); }
.dpa-faq details > div { color: #444; font-size: .95rem; line-height: 1.7; margin-top: 12px; }
.dpa-faq details > div p:last-child { margin-bottom: 0; }

/* CTA */
.dpa-cta {
    background: linear-gradient(135deg, #1F1138 0%, #5d3a9b 100%);
    border-radius: 24px; padding: 44px 36px; text-align: center; color: #fff;
    margin: 40px 0 20px; position: relative; overflow: hidden;
}
.dpa-cta::after {
    content: ""; position: absolute; bottom: -50px; right: -50px;
    width: 220px; height: 220px; background: #7a5fbc; opacity: .25; filter: blur(60px);
    border-radius: 50%;
}
.dpa-cta h2,
.dpa-cta h3 { font-size: 1.7rem; margin: 0 0 12px; position: relative; z-index: 2; border: none !important; padding: 0 !important; color: #fff; }
.dpa-cta p { font-size: 1rem; opacity: .95; max-width: 600px; margin: 0 auto 16px; position: relative; z-index: 2; color: #fff; }
.dpa-cta p a { color: #fff; font-weight: 700; text-decoration: underline; }
.dpa-cta p a:hover { opacity: .85; }
.dpa-cta__btn {
    display: inline-block; background: #fff; color: #5d3a9b !important;
    padding: 13px 32px; font-weight: 800; border-radius: 12px;
    text-decoration: none !important; transition: .2s; position: relative; z-index: 2;
    box-shadow: 0 14px 30px rgba(0,0,0,.22);
}
.dpa-cta__btn:hover { transform: scale(1.04); }

/* RELATED ARTICLES */
.dpa-related {
    margin: 50px 0 0; padding: 30px 0 0; border-top: 2px dashed #ece6f5;
}
.dpa-related h2 {
    font-size: 1.3rem; color: #2b1f4a; margin: 0 0 18px;
    border: none !important; padding: 0 !important;
}
.dpa-related__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px;
}
.dpa-related__card {
    display: block; background: #fff; padding: 18px 20px; border-radius: 14px;
    border: 1px solid #ece6f5; text-decoration: none !important;
    color: #2b1f4a !important; transition: .2s; font-size: .94rem;
}
.dpa-related__card:hover {
    border-color: #624c9e; transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(98,76,158,.12);
}
.dpa-related__card span {
    display: block; font-size: .7rem; color: #5d3a9b;
    text-transform: uppercase; letter-spacing: .12em; font-weight: 800; margin-bottom: 6px;
}

/* MOBILE */
@media (max-width: 640px) {
    .dpa-hero { padding: 40px 0 80px; }
    .dpa-tldr { padding: 22px 22px; margin: -50px 16px 36px; }
    .dpa-body { font-size: .98rem; }
    .dpa-body h2 { font-size: 1.3rem; margin-top: 36px; }
    .dpa-body h3 { font-size: 1.05rem; }
    .dpa-cta { padding: 34px 22px; }
    .dpa-cta h2 { font-size: 1.35rem; }
}

/* ── Inline figures with category photo + caption ── */
.dpa-img {
    margin: 26px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #ece6f5;
    box-shadow: 0 8px 24px rgba(98, 76, 158, 0.08);
    background: #fff;
}
.dpa-img a { display: block; line-height: 0; }
.dpa-img img {
    width: 100%; height: auto;
    display: block;
    transition: transform .4s ease;
}
.dpa-img a:hover img { transform: scale(1.02); }
.dpa-img figcaption {
    padding: 12px 18px;
    font-size: .86rem;
    color: #6B7A8D;
    background: linear-gradient(180deg, #fff 0%, #faf9fc 100%);
    border-top: 1px solid #ece6f5;
    line-height: 1.5;
}
.dpa-img figcaption a {
    color: #5d3a9b;
    font-weight: 700;
    text-decoration: none;
}
.dpa-img figcaption a:hover { text-decoration: underline; }
