/*
Theme Name:  Copeland Park Community News
Theme URI:   https://notmystreet.ca
Description: A warm civic community news theme for Copeland Park and west Ottawa.
Author:      Marc-Roger Gagné
Version:     3.2.0
Requires at least: 6.0
Requires PHP: 8.0
License:     GPL-2.0-or-later
*/

:root {
    --ink: #17324a;
    --ink-dark: #102638;
    --blue: #285f87;
    --sky: #dceef5;
    --teal: #3b7b78;
    --sun: #f4bd4a;
    --coral: #e9785f;
    --leaf: #79a875;
    --cream: #fbf8f0;
    --paper: #fffefa;
    --white: #fff;
    --text: #263b4a;
    --muted: #647886;
    --border: #dce5e8;
    --shadow: 0 14px 40px rgba(30, 58, 76, .09);
    --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { margin: 0; font-family: 'DM Sans', Arial, sans-serif; background: var(--cream); color: var(--text); -webkit-font-smoothing: antialiased; }
a { text-underline-offset: 3px; }
img { max-width: 100%; }
.cn-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

/* Prevent a parent theme or page builder from constraining the custom theme. */
#page, #content, .site, .site-content, .content-area, #main, .hentry, .entry-content,
.container, .site-container, .main-content, .wp-block-group {
    max-width: 100% !important; width: 100% !important; padding: 0 !important; margin: 0 !important;
    float: none !important; background: transparent !important; box-shadow: none !important; border: 0 !important;
}
.site-sidebar, .widget-area, #secondary, .site-header, #masthead, .site-branding,
.main-navigation, #site-navigation, .nav-primary, .header-widget-area,
.site-footer, #colophon, .footer-widgets, .footer-credits { display: none !important; }

/* Header */
#cn-masthead { background: var(--paper); border-bottom: 1px solid var(--border); }
.cn-masthead-top { background: var(--ink-dark); color: var(--white); }
.cn-top-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cn-masthead-date { font-size: .72rem; opacity: .7; }
.cn-masthead-tagline { font-size: .72rem; font-weight: 600; letter-spacing: .035em; color: #d8e8ef; }
.cn-brand-row { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cn-brand { display: flex; align-items: center; gap: 17px; color: var(--ink); text-decoration: none; }
.cn-brand-mark, .cn-footer-mark {
    display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%;
    background: var(--sun); color: var(--ink-dark); font-family: 'Fraunces', Georgia, serif; font-weight: 750;
}
.cn-brand-mark { width: 64px; height: 64px; position: relative; box-shadow: inset 0 0 0 5px rgba(255,255,255,.45); }
.cn-brand-mark::before, .cn-brand-mark::after { content: ''; position: absolute; bottom: -4px; background: var(--leaf); border-radius: 50% 50% 45% 45%; z-index: 0; }
.cn-brand-mark::before { width: 18px; height: 12px; left: -4px; transform: rotate(-22deg); }
.cn-brand-mark::after { width: 15px; height: 10px; right: -1px; transform: rotate(20deg); }
.cn-brand-mark span { position: relative; z-index: 1; font-size: 1.2rem; }
.cn-brand-copy { display: flex; flex-direction: column; }
.cn-masthead-title { font-family: 'Fraunces', Georgia, serif; font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 650; line-height: 1.08; letter-spacing: -.035em; }
.cn-masthead-title strong { color: var(--teal); font-weight: 750; }
.cn-masthead-subtitle { margin-top: 5px; font-size: .78rem; color: var(--muted); letter-spacing: .035em; }
.cn-tip-link { padding: 11px 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .8rem; font-weight: 700; background: var(--white); }
.cn-tip-link:hover { border-color: var(--teal); color: var(--teal); }

#cn-nav { background: var(--ink); }
.cn-nav-inner { min-height: 52px; display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.cn-nav-inner::-webkit-scrollbar { display: none; }
#cn-nav a { display: flex; align-items: center; padding: 0 17px; white-space: nowrap; color: #dbe6ec; text-decoration: none; font-size: .78rem; font-weight: 700; border-bottom: 4px solid transparent; }
#cn-nav a:first-child { padding-left: 0; }
#cn-nav a:hover, #cn-nav a.active { color: var(--white); border-bottom-color: var(--sun); }
#cn-nav .cn-nav-action { margin-left: auto; color: var(--ink-dark); background: var(--sun); border: 0; padding-inline: 19px; }
#cn-nav .cn-nav-action:hover { background: #ffd06a; color: var(--ink-dark); }

#cn-ticker { height: 38px; display: flex; align-items: center; overflow: hidden; background: var(--sky); }
.cn-ticker-label { align-self: stretch; display: flex; align-items: center; padding: 0 16px; background: var(--teal); color: var(--white); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.cn-ticker-track { display: flex; align-items: center; white-space: nowrap; animation: ticker-scroll 45s linear infinite; }
.cn-ticker-track a { padding-left: 28px; color: var(--ink); font-size: .78rem; font-weight: 600; text-decoration: none; }
.cn-ticker-track a::after { content: ' •'; color: var(--coral); margin-left: 28px; }
@keyframes ticker-scroll { from { transform: translateX(60%); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .cn-ticker-track { animation: none; } * { scroll-behavior: auto !important; } }

/* Main layout */
#cn-content { width: min(1180px, calc(100% - 48px)); margin-inline: auto; padding: 32px 0 0; }
.cn-page-shell { max-width: 920px; margin: 36px auto 64px; padding: 36px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.cn-archive { margin: 0 auto 70px; }
.cn-archive-header { margin-bottom: 24px; padding: 34px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); }
.cn-archive-header h1, .cn-empty-archive h1 { margin: 0; color: var(--ink); font: 750 clamp(2.2rem, 5vw, 4rem)/1 'Fraunces', Georgia, serif; letter-spacing: -.04em; }
.cn-archive-description { max-width: 700px; margin-top: 13px; color: var(--muted); line-height: 1.65; }
.cn-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cn-empty-archive { max-width: 780px; margin: 48px auto 80px; padding: 48px; text-align: center; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.cn-empty-archive h2 { margin: 0; color: var(--ink); font: 650 1.7rem/1.2 'Fraunces', Georgia, serif; }
.cn-empty-archive p { margin: 12px auto 24px; color: var(--muted); line-height: 1.6; }
.cn-empty-archive .cn-primary-btn { width: fit-content; }
.cn-pagination { margin-top: 28px; }
.cn-pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.cn-pagination a, .cn-pagination .current { display: grid; place-items: center; min-width: 38px; height: 38px; border-radius: 50%; background: var(--paper); color: var(--ink); text-decoration: none; }
.cn-pagination .current { background: var(--ink); color: var(--white); }
.cn-404 { margin-top: 36px; }

/* Empty-state homepage */
.cn-welcome { min-height: 430px; display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; background: var(--paper); border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow); }
.cn-welcome-copy { padding: clamp(38px, 6vw, 76px); display: flex; flex-direction: column; justify-content: center; }
.cn-eyebrow { display: block; margin-bottom: 12px; color: var(--teal); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .11em; }
.cn-welcome h1 { max-width: 590px; margin: 0; color: var(--ink); font: 750 clamp(2.4rem, 5vw, 4.6rem)/.98 'Fraunces', Georgia, serif; letter-spacing: -.045em; }
.cn-welcome p { max-width: 590px; margin: 22px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.cn-welcome-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 30px; }
.cn-primary-btn, .cn-petition-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--white); text-decoration: none; font-size: .82rem; font-weight: 700; }
.cn-primary-btn:hover { background: var(--teal); }
.cn-text-link { color: var(--teal); font-size: .84rem; font-weight: 700; text-decoration: none; }
.cn-text-link:hover { text-decoration: underline; }
.cn-community-scene { position: relative; min-height: 430px; overflow: hidden; background: linear-gradient(180deg, var(--sky) 0 67%, #cde3cf 67% 100%); }
.cn-sun { position: absolute; width: 94px; height: 94px; right: 54px; top: 46px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 16px rgba(244,189,74,.16); }
.cn-ground { position: absolute; left: -10%; right: -10%; bottom: -55px; height: 165px; border-radius: 50% 50% 0 0; background: #83b27d; }
.cn-house { position: absolute; bottom: 92px; width: 142px; height: 112px; background: var(--paper); border-radius: 5px 5px 0 0; box-shadow: 0 12px 25px rgba(23,50,74,.12); }
.cn-house::before { content: ''; position: absolute; left: -15px; top: -58px; border-left: 86px solid transparent; border-right: 86px solid transparent; border-bottom: 65px solid var(--coral); }
.cn-house i { position: absolute; width: 34px; height: 53px; bottom: 0; left: 55px; background: var(--teal); border-radius: 4px 4px 0 0; }
.cn-house b { position: absolute; width: 30px; height: 30px; left: 15px; top: 23px; background: var(--sky); border: 4px solid var(--ink); }
.cn-house-one { left: 54px; }
.cn-house-two { right: -18px; bottom: 105px; transform: scale(.78); }
.cn-house-two::before { border-bottom-color: var(--sun); }
.cn-tree { position: absolute; bottom: 98px; width: 56px; height: 100px; border-radius: 50% 50% 42% 42%; background: var(--leaf); z-index: 2; }
.cn-tree i { position: absolute; width: 9px; height: 47px; bottom: -28px; left: 24px; background: #876347; }
.cn-tree-one { left: 19px; }
.cn-tree-two { right: 112px; bottom: 92px; transform: scale(.75); }
.cn-people { position: absolute; z-index: 4; bottom: 66px; left: 49%; display: flex; align-items: flex-end; gap: 12px; }
.cn-people i { position: relative; display: block; width: 17px; height: 50px; border-radius: 10px 10px 3px 3px; background: var(--ink); }
.cn-people i::before { content: ''; position: absolute; width: 20px; height: 20px; left: -2px; top: -15px; border-radius: 50%; background: #b97556; }
.cn-people i:nth-child(2) { height: 40px; background: var(--coral); }
.cn-people i:nth-child(3) { height: 29px; width: 14px; background: var(--sun); }
.cn-people i:nth-child(3)::before { width: 16px; height: 16px; }

.cn-purpose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0 34px; }
.cn-purpose-grid article { padding: 24px; background: rgba(255,255,255,.68); border: 1px solid var(--border); border-radius: 15px; }
.cn-purpose-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 15px; color: var(--ink); font-size: .68rem; font-weight: 700; background: var(--sun); }
.cn-icon-civic { background: var(--sky); }
.cn-icon-family { background: #dbead8; }
.cn-purpose-grid h2 { margin: 0 0 7px; color: var(--ink); font: 650 1.15rem/1.2 'Fraunces', Georgia, serif; }
.cn-purpose-grid p { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.55; }

/* Front-page editorial */
.cn-front-editorial { margin: 36px 0 48px; padding: clamp(30px, 5vw, 58px); background: var(--ink-dark); color: var(--white); border-radius: 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cn-front-editorial::before { content: ''; position: absolute; width: 250px; height: 250px; right: -90px; top: -110px; border-radius: 50%; background: rgba(244,189,74,.12); }
.cn-editorial-kicker { position: relative; margin-bottom: 24px; color: var(--sun); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.cn-editorial-layout { position: relative; display: grid; grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr); gap: clamp(35px, 6vw, 76px); align-items: start; }
.cn-editorial-header { position: sticky; top: 24px; }
.cn-editorial-header h2 { margin: 0; color: var(--white); font: 750 clamp(2rem, 4.2vw, 3.6rem)/1.04 'Fraunces', Georgia, serif; letter-spacing: -.04em; }
.cn-editorial-deck { margin: 18px 0 25px; color: #b9c9d2; font-size: .98rem; line-height: 1.6; }
.cn-editorial-byline { display: flex; align-items: center; gap: 11px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.cn-byline-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sun); color: var(--ink-dark); font: 750 .72rem/1 'Fraunces', Georgia, serif; }
.cn-editorial-byline span:last-child { display: flex; flex-direction: column; }
.cn-editorial-byline strong { color: var(--white); font-size: .78rem; }
.cn-editorial-byline small { margin-top: 2px; color: #8fa5b2; font-size: .66rem; }
.cn-editorial-body { color: #d8e2e7; font: 400 1rem/1.78 'DM Sans', Arial, sans-serif; }
.cn-editorial-body p { margin: 0 0 1.12em; }
.cn-editorial-body p:nth-child(3) { color: var(--sun); font: 750 1.45rem/1.35 'Fraunces', Georgia, serif; }
.cn-editorial-body p:last-child { margin-bottom: 0; color: var(--white); font-weight: 700; }
.cn-editorial-body a { color: #9ed7d2; font-weight: 600; text-decoration-thickness: 1px; }
.cn-editorial-body a:hover { color: var(--white); }

/* News hero */
.cn-hero-feature { display: grid; grid-template-columns: 2fr 1fr; gap: 4px; margin-bottom: 26px; overflow: hidden; border-radius: var(--radius); background: var(--border); box-shadow: var(--shadow); }
.cn-hero-main { position: relative; min-height: 440px; overflow: hidden; background: var(--ink-dark); }
.cn-hero-main img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .76; }
.cn-hero-main-body { position: absolute; inset: auto 0 0; padding: 80px 34px 30px; color: var(--white); background: linear-gradient(transparent, rgba(16,38,56,.96)); }
.cn-hero-main-hood, .cn-hood-pill, .cn-single-hood { display: inline-block; padding: 4px 9px; border-radius: 999px; background: var(--sun); color: var(--ink-dark); font-size: .63rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.cn-hero-main-title { margin-top: 10px; color: var(--white); font: 750 clamp(1.55rem, 3vw, 2.4rem)/1.13 'Fraunces', Georgia, serif; }
.cn-hero-main-title a, .cn-hero-side-title a { color: inherit; text-decoration: none; }
.cn-hero-main-title a:hover, .cn-hero-side-title a:hover { text-decoration: underline; }
.cn-hero-main-meta, .cn-hero-side-meta { margin-top: 10px; font-size: .74rem; color: rgba(255,255,255,.7); }
.cn-hero-sidebar { display: flex; flex-direction: column; gap: 4px; }
.cn-hero-side-card { flex: 1; padding: 19px; background: var(--paper); border-left: 4px solid transparent; }
.cn-hero-side-card:hover { border-left-color: var(--coral); }
.cn-hero-side-hood { color: var(--teal); font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.cn-hero-side-title { margin-top: 6px; color: var(--ink); font: 650 1rem/1.35 'Fraunces', Georgia, serif; }
.cn-hero-side-meta { color: var(--muted); }

/* Sections and cards */
.cn-two-col { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 32px; margin-bottom: 54px; }
.cn-section-header { display: flex; align-items: end; justify-content: space-between; margin: 34px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.cn-section-title { color: var(--ink); font: 750 1.45rem/1.1 'Fraunces', Georgia, serif; }
.cn-section-link { color: var(--teal); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; text-decoration: none; }
.cn-section-link:hover { text-decoration: underline; }
.cn-grid { display: grid; gap: 17px; margin-bottom: 38px; }
.cn-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cn-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cn-card { overflow: hidden; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--border); border-radius: 14px; transition: transform .2s ease, box-shadow .2s ease; }
.cn-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cn-card-thumb { height: 155px; overflow: hidden; }
.cn-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.cn-card:hover .cn-card-thumb img { transform: scale(1.035); }
.cn-card-body { flex: 1; display: flex; flex-direction: column; padding: 16px; }
.cn-hood-pill { width: fit-content; margin-bottom: 10px; background: var(--sky); }
.cn-card-title { flex: 1; margin: 0 0 9px; color: var(--ink); font: 650 1rem/1.35 'Fraunces', Georgia, serif; }
.cn-card-title a { color: inherit; text-decoration: none; }
.cn-card-title a:hover { color: var(--teal); text-decoration: underline; }
.cn-card-excerpt { margin: 0 0 12px; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.cn-card-meta { display: flex; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px solid var(--border); color: var(--muted); font-size: .68rem; }
.cn-card-source { color: var(--teal); font-weight: 700; }
.cn-sidebar-widget { margin-bottom: 20px; padding: 20px; background: var(--paper); border: 1px solid var(--border); border-radius: 14px; }
.cn-widget-title { margin-bottom: 13px; padding-bottom: 10px; border-bottom: 2px solid var(--sun); color: var(--ink); font: 650 1.1rem/1.2 'Fraunces', Georgia, serif; }
.cn-widget-list { margin: 0; padding: 0; list-style: none; }
.cn-widget-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.cn-widget-list li:last-child { border: 0; }
.cn-widget-list a { color: var(--ink); font-size: .84rem; font-weight: 600; line-height: 1.4; text-decoration: none; }
.cn-widget-list a:hover { color: var(--teal); text-decoration: underline; }
.cn-wl-meta { margin-top: 3px; color: var(--muted); font-size: .69rem; }
.cn-about-widget { background: var(--sky); border-color: transparent; }
.cn-about-widget p { color: var(--text); font-size: .82rem; line-height: 1.6; }
.cn-about-widget a { color: var(--teal); font-size: .8rem; font-weight: 700; text-decoration: none; }

/* Articles */
.cn-single { max-width: 780px; padding: 36px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); }
.cn-single-title { margin: 14px 0 12px; color: var(--ink); font: 750 clamp(2rem, 4.5vw, 3.4rem)/1.07 'Fraunces', Georgia, serif; letter-spacing: -.035em; }
.cn-single-meta { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: .8rem; }
.cn-single-content { color: var(--text); font-size: 1.02rem; line-height: 1.8; }
.cn-single-content p { margin: 0 0 20px; }
.cn-meta-badge { display: flex; gap: 7px; margin-bottom: 14px; }
.cn-hood-tag, .cn-source-tag { padding: 4px 9px; border-radius: 999px; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.cn-hood-tag { background: var(--sky); color: var(--ink); }
.cn-source-tag { background: #edf1f2; color: var(--muted); }
.cn-source-credit { margin-top: 24px; padding-top: 13px; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; }

/* Petition page and working form */
.cn-petition-page { max-width: 820px; margin: 0 auto; }
.cn-petition-page h1 { margin: 0; color: var(--ink); font: 750 clamp(2.3rem, 5vw, 4.2rem)/1.02 'Fraunces', Georgia, serif; letter-spacing: -.04em; }
.cn-petition-lead { max-width: 720px; margin: 20px 0; color: var(--text); font-size: 1.05rem; line-height: 1.7; }
.cn-petition-total { display: flex; align-items: baseline; gap: 10px; margin: 25px 0; padding: 18px 20px; border-radius: 14px; background: #fff8e5; }
.cn-petition-total strong { color: var(--ink); font: 750 2.2rem/1 'Fraunces', Georgia, serif; }
.cn-petition-total span { color: #80652d; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.cn-petition-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.cn-field { display: flex; flex-direction: column; gap: 7px; }
.cn-field:nth-of-type(3) { grid-column: 1 / 2; }
.cn-field label, .cn-consent { color: var(--ink); font-size: .78rem; font-weight: 700; }
.cn-field input { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid #bfcdd3; border-radius: 9px; background: var(--white); color: var(--text); font: inherit; }
.cn-field input:focus { outline: 3px solid rgba(59,123,120,.22); border-color: var(--teal); }
.cn-consent, .cn-form-note, .cn-petition-form .cn-primary-btn { grid-column: 1 / -1; }
.cn-consent { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; font-weight: 500; }
.cn-consent input { margin-top: 3px; }
.cn-petition-form .cn-primary-btn { border: 0; cursor: pointer; width: fit-content; }
.cn-form-note { margin: -6px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.cn-petition-notice { margin: 18px 0; padding: 14px 16px; border-radius: 9px; background: var(--sky); color: var(--ink); font-size: .85rem; }
.cn-petition-notice.success { background: #dcebd9; }
.cn-petition-notice.error { background: #f9ded8; }
.cn-hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Footer */
#cn-footer { margin-top: 66px; background: var(--ink-dark); color: var(--white); }
.cn-footer-inner { width: min(1180px, calc(100% - 48px)); margin-inline: auto; padding: 48px 0 32px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.cn-footer-title { display: flex; align-items: center; gap: 10px; font: 650 1.35rem/1.2 'Fraunces', Georgia, serif; }
.cn-footer-mark { width: 36px; height: 36px; font-size: .75rem; }
.cn-footer-brand p { max-width: 390px; margin: 13px 0 0; color: #adbdc8; font-size: .82rem; line-height: 1.65; }
.cn-footer-col h4 { margin: 0 0 14px; color: var(--sun); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.cn-footer-col ul { margin: 0; padding: 0; list-style: none; }
.cn-footer-col li { margin-bottom: 8px; }
.cn-footer-col a { color: #c0cdd4; font-size: .82rem; text-decoration: none; }
.cn-footer-col a:hover { color: var(--white); text-decoration: underline; }
.cn-footer-copy { width: min(1180px, calc(100% - 48px)); margin-inline: auto; padding: 17px 0 22px; border-top: 1px solid rgba(255,255,255,.11); color: #8296a3; font-size: .7rem; text-align: center; }
.cn-footer-copy span { margin-inline: 7px; color: var(--sun); }

@media (max-width: 960px) {
    .cn-welcome { grid-template-columns: 1fr; }
    .cn-community-scene { min-height: 300px; }
    .cn-hero-feature, .cn-two-col { grid-template-columns: 1fr; }
    .cn-hero-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
    .cn-footer-inner { grid-template-columns: 1fr 1fr; }
    .cn-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cn-editorial-layout { grid-template-columns: 1fr; }
    .cn-editorial-header { position: static; }
}

@media (max-width: 700px) {
    .cn-shell, #cn-content, .cn-footer-inner, .cn-footer-copy { width: min(100% - 30px, 1180px); }
    .cn-masthead-top { display: none; }
    .cn-brand-row { min-height: 92px; }
    .cn-brand-mark { width: 52px; height: 52px; }
    .cn-masthead-title { font-size: 1.45rem; }
    .cn-masthead-subtitle { display: none; }
    .cn-tip-link { display: none; }
    #cn-nav .cn-nav-action { margin-left: 0; }
    #cn-content { padding-top: 20px; }
    .cn-welcome-copy { padding: 36px 26px; }
    .cn-welcome h1 { font-size: 2.6rem; }
    .cn-community-scene { min-height: 265px; }
    .cn-house-one { left: 30px; transform: scale(.78); transform-origin: bottom left; }
    .cn-house-two { right: -35px; }
    .cn-purpose-grid, .cn-grid-3, .cn-grid-2 { grid-template-columns: 1fr; }
    .cn-archive-grid { grid-template-columns: 1fr; }
    .cn-purpose-grid { gap: 10px; }
    .cn-hero-sidebar { grid-template-columns: 1fr; }
    .cn-footer-inner { grid-template-columns: 1fr; gap: 26px; }
    .cn-single, .cn-page-shell { padding: 24px; }
    .cn-petition-form { grid-template-columns: 1fr; }
    .cn-field:nth-of-type(3), .cn-consent, .cn-form-note, .cn-petition-form .cn-primary-btn { grid-column: 1; }
    .cn-front-editorial { margin-top: 26px; padding: 30px 24px; border-radius: 18px; }
}

@media (max-width: 430px) {
    .cn-brand { gap: 11px; }
    .cn-brand-mark { width: 46px; height: 46px; }
    .cn-masthead-title { font-size: 1.25rem; }
    .cn-welcome-actions { align-items: flex-start; flex-direction: column; }
    .cn-community-scene { min-height: 235px; }
}
