/* Статті довідника. Кольори — змінні з style.css */
.short { margin: 1.8em 0 2.4em; padding: 24px 28px; border-radius: var(--radius, 24px); background: var(--surface-2); }
.short-title { margin: 0 0 .9em; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.short ul { margin: 0; padding-left: 1.2em; }
.short li + li { margin-top: .4em; }

.cards-list { list-style: none; padding: 0; border-top: 1px solid var(--line-strong); }
.cards-list li { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line-strong); }
.cards-list li + li { margin-top: 0; }
.cards-list a { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.cards-list a:hover { color: var(--accent); }
.cards-list p { margin: .25em 0 0; color: var(--muted); font-size: .95rem; }

.faq details { border-bottom: 1px solid var(--line-strong); padding: 16px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; font-size: 1.1rem; font-weight: 600; letter-spacing: -.02em; list-style-position: outside; }
.faq summary::marker { color: var(--accent); }
.faq details p { margin: .6em 0 0; }

.related ul, .sources ul { padding-left: 1.2em; }
.sources { font-size: .92rem; color: var(--muted); }
.sources h2 { font-size: 1.15rem; letter-spacing: -.02em; }
.disclaimer { margin-top: 2.5em; padding-top: 1em; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }

.figure { margin: 1.5em 0; }
.figure svg { display: block; width: 100%; height: auto; }
.figure figcaption { margin-top: .5em; font-size: .9rem; color: var(--muted); }

.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  margin: 2.2em 0; padding: 22px 26px; border-radius: var(--radius, 24px); background: var(--panel); color: var(--on-panel);
}
[data-theme="dark"] .cta { box-shadow: inset 0 0 0 1px var(--line); }
.cta p { margin: 0; }
.cta a { padding: 10px 18px; border-radius: 99px; background: var(--lime); color: var(--navy); font-weight: 600; text-decoration: none; }
.cta a:hover { background: #fff; color: var(--navy); }

/* Короткі відповіді (/vidpovidi/): відповідь крупно на першому екрані */
.verdict { margin: 1.4em 0 2.2em; padding: 26px 28px; border-radius: var(--radius, 24px); color: var(--on-verdict); }
.verdict p { margin: 0; }
.verdict-word { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 600; line-height: 1.05; letter-spacing: -.045em; }
.verdict-text { margin-top: .6em !important; font-size: 1.2rem; line-height: 1.45; font-weight: 500; }
.verdict a { color: inherit; }
.verdict-good { background: var(--good); }
.verdict-bad { background: var(--bad); }
.verdict-maybe { background: var(--maybe); }
.basis { margin: 2em 0; padding: 20px 26px; border: 1px solid var(--line-strong); border-radius: var(--radius, 24px); }
.basis h2 { margin-top: 0; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.basis ul { margin: 0; padding-left: 1.2em; }

/* Технічні схеми — лінії й підписи кольором тексту, щоб читалися в обох темах */
.scheme svg { max-width: 40rem; margin: 0 auto; }
.scheme text { fill: var(--text); font: 17px/1.2 Inter, system-ui, sans-serif; }
.scheme .s-muted { fill: var(--muted); }
.scheme .s-line { stroke: var(--text); fill: none; stroke-width: 2; }
.scheme .s-thin { stroke: var(--muted); fill: none; stroke-width: 1.2; stroke-dasharray: 4 3; }
.scheme .s-ground { fill: var(--surface-2); stroke: none; }
.scheme .s-house { fill: var(--surface); stroke: var(--text); stroke-width: 2; }
.scheme .s-cable { stroke: #d2553a; fill: none; stroke-width: 3; }
.scheme .s-pe { stroke: var(--teal); fill: none; stroke-width: 3; }
[data-theme="dark"] .scheme .s-pe { stroke: var(--lime); }
.scheme .s-metal { fill: var(--sky); stroke: none; }
.scheme .s-bad { stroke: #d2553a; stroke-width: 2.5; fill: none; }
