/* ═══════════════════════════════════════════════════════════════
   city-guide.css — Roofing-permits-by-city pages
   PATH: public/css/city-guide.css
   ROLE: Styles the /guides/permits hub and the /guides/permits/:city
         pages only (Views/public/guides/cities.php + city.php). Loaded
         from each view's `styles` section, after public.css/roofing.css,
         so it can lean on the brand tokens declared in public.css :root.
   SCOPE: everything is nested under .city-guide so no rule can leak into
         the blog, the DB-driven guides or the estimator.
   NOT HERE: .guide-table, .guide-faq, .guide-reviewed and .breadcrumbs are
         shared guide styles and live in public.css (owned by WP-B).
   Created: 2026-09-21 — WP-F2 (SEO round)
   ═══════════════════════════════════════════════════════════════ */

.city-guide {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

.city-guide h2 {
    font-size: 1.5rem;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--dark);
}

.city-guide h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.city-guide p {
    margin-bottom: 16px;
}

.city-guide ul,
.city-guide ol {
    margin-bottom: 16px;
    padding-left: 22px;
}

.city-guide li {
    margin-bottom: 8px;
}

/* The 40–70 word direct answer that opens every city page. */
.city-guide-answer {
    border-left: 4px solid var(--teal);
    background: var(--light-bg);
    padding: 18px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 12px;
}

.city-guide-answer p:last-child {
    margin-bottom: 0;
}

.city-guide-answer p {
    font-size: 1.05rem;
}

/* Hub: the five things that change from city to city. */
.city-hub-points li {
    margin-bottom: 12px;
}

/* Hub: one card per city. */
.city-hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 20px 0 8px;
}

@media (min-width: 640px) {
    .city-hub-grid { grid-template-columns: 1fr 1fr; }
}

.city-hub-card {
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.city-hub-card:hover,
.city-hub-card:focus-visible {
    border-color: var(--teal);
    transform: translateY(-2px);
}

.city-hub-card h3 {
    color: var(--teal);
    margin-bottom: 6px;
}

.city-hub-card p {
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--text-mid);
    margin-bottom: 8px;
}

.city-hub-card-meta {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--graphite);
}

/* Per-city sources block (each page cites the pages it was written from). */
.city-guide-sources ul {
    list-style: none;
    padding-left: 0;
}

.city-guide-sources li {
    padding-left: 18px;
    position: relative;
    font-size: 0.95rem;
}

.city-guide-sources li::before {
    content: "\2197";
    position: absolute;
    left: 0;
    color: var(--teal);
}

.city-guide-note {
    font-size: 0.9rem;
    color: var(--text-mid);
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

/* Chips across to the other nine cities. */
.city-guide-siblings {
    margin-top: 32px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.city-guide-siblings-label {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--graphite);
    margin-bottom: 10px;
}

.city-chip-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 0;
    margin-bottom: 14px;
}

.city-chip-list li {
    margin-bottom: 0;
}

.city-chip {
    display: inline-block;
    padding: 7px 14px;
    min-height: 38px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    color: var(--teal-dark);
    font-size: 0.9rem;
    text-decoration: none;
}

.city-chip:hover,
.city-chip:focus-visible {
    border-color: var(--teal);
    background: var(--steel-pale);
}

.city-chip[aria-current="page"] {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

.city-guide-back {
    font-size: 0.95rem;
    margin-bottom: 0;
}
