/* seo-pages.css – Long-form blocks for the SEO pages (termite cluster, city pages).
   Loads after pages.css; only adds new classes, so the approved pages are unaffected. */

/* ── Long-form copy ── */
.p-prose { max-width: 46rem; }
.site main .p-prose h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    margin: 0 0 1rem;
}
.site .p-prose h3 {
    font-size: 1.35rem;
    margin: 1.75rem 0 0.5rem;
}
.p-prose p,
.p-prose li { color: #c8c8c8; }
.p-prose p + p { margin-top: 1rem; }
.p-prose .p-checklist,
.p-prose .h-steps { margin: 1.25rem 0 0; }
.p-prose .p-note { margin-top: 1.5rem; }
.p-prose a:not(.h-btn),
.p-panel a:not(.h-btn),
.p-note a,
.p-faq a { color: #ff5a6a; text-decoration: underline; text-underline-offset: 3px; }
.p-prose a:not(.h-btn):hover,
.p-panel a:not(.h-btn):hover,
.p-note a:hover,
.p-faq a:hover { color: #fff; }

/* Two columns of prose blocks on wide screens */
.p-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
}
.p-split .p-prose { max-width: none; }

/* Panels that hold body copy (not just a checklist) */
.p-panel p { color: #c8c8c8; }
.p-panel p + p { margin-top: 0.75rem; }
.site .p-panel h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }

/* ── FAQ accordion (answers stay in the HTML) ── */
.p-faq { display: grid; gap: 0.75rem; max-width: 52rem; }
.p-faq details {
    background: rgba(18, 18, 18, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    transition: border-color 0.2s ease;
}
.p-faq details[open] { border-color: rgba(255, 45, 69, 0.45); }
.p-faq summary {
    position: relative;
    padding: 1.1rem 3.25rem 1.1rem 1.4rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    cursor: pointer;
    list-style: none;
}
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary::after {
    content: "+";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--head);
    font-size: 1.6rem;
    line-height: 1;
    color: #ff4d5e;
}
.p-faq details[open] summary::after { content: "\2212"; }
.p-faq summary:hover { color: #ff5a6a; }
.p-faq summary:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 6px; }
.p-faq details > p {
    padding: 0 1.4rem 1.25rem;
    margin: 0;
    color: #c8c8c8;
}

/* ── Comparison table ── */
.p-table-wrap { overflow-x: auto; margin-top: 1.25rem; }
.p-table {
    width: 100%;
    min-width: 30rem;
    border-collapse: collapse;
    background: rgba(18, 18, 18, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.p-table th,
.p-table td {
    padding: 0.9rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #d6d6d6;
}
.p-table thead th {
    font-family: var(--head);
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 2px solid var(--red);
}
.p-table tbody th { color: #fff; font-weight: 700; }

/* ── Placeholders the SEO team swaps once the client confirms ── */
.confirm {
    padding: 0.05em 0.35em;
    background: rgba(255, 196, 0, 0.14);
    border: 1px dashed rgba(255, 196, 0, 0.7);
    border-radius: 3px;
    color: #ffd75e;
    font-size: 0.92em;
}

/* ── Blog ── */
.p-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.p-chips li {
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 0.9rem;
    color: #d6d6d6;
}
.p-card-date { display: block; margin-bottom: 0.35rem; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: #8a8a8a; }
.p-post-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0 0 1.5rem; color: #a8a8a8; font-size: 0.95rem; }
.p-post-figure { margin: 0 0 2rem; }
.p-post-figure img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 45, 69, 0.3); }
.p-post-figure figcaption { margin-top: 0.5rem; font-size: 0.88rem; color: #8a8a8a; }
.p-post .p-prose { max-width: 44rem; }
.p-post .p-prose h2 { margin-top: 2.25rem; }
.p-post .p-prose ul:not(.p-checklist) { margin: 1rem 0 0 1.2rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .p-split { grid-template-columns: 1fr; }
}

/* Phones: fit the comparison table on screen instead of scrolling sideways */
@media (max-width: 600px) {
    .p-table { min-width: 0; font-size: 0.92rem; }
    .p-table th,
    .p-table td { padding: 0.7rem 0.6rem; }
    .p-table thead th { font-size: 0.9rem; letter-spacing: 0.04em; }
}
