@font-face {
    font-family: Shabnam;
    src: url('shabnam.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: Shabnam;
    src: url('shabnam-bold.woff2') format('woff2');
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}
:root {
    color-scheme: light;
    --text-small: .875rem;
    --text-body: 1rem;
    --heading-small: 1.125rem;
    --heading-card: 1.375rem;
    --heading-large: 1.75rem;
    --ink: #182335;
    --muted: #647080;
    --line: #e3e6eb;
    --paper: #fff;
    --soft: #f3f5f8;
    --brand: #a71d26;
    --brand-dark: #86151c;
    --navy: #202f5b;
    --blue: #1854d9;
    --background: #0c2333;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--background); color: var(--ink); font-family: Shabnam, Tahoma, sans-serif; font-size: var(--text-body); line-height: 1.9; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a, button, input, textarea { transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #4b88ff; outline-offset: 4px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.7; }
::selection { background: #a71d26; color: white; }
.skip-link { position: fixed; top: -100px; right: 20px; padding: 12px 20px; background: white; color: var(--ink); z-index: 100; }
.skip-link:focus { top: 10px; }
.header-inner { width: min(1200px, calc(100% - 48px)); margin: auto; }
.utility-bar { color: #fff; background: var(--navy); font-size: var(--text-small); }
.utility-bar .header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 8px; direction: ltr; }
.top-brand-cluster { display: flex; align-items: center; justify-content: flex-start; gap: 18px; }
.utility-bar time { direction: rtl; text-align: right; }
.utility-bar .brand .wordmark { --logo-size: 108px; }
.utility-bar .wordmark-fa:hover { text-decoration: none; }
.utility-bar a { color: #e2e9ff; }
.utility-bar a:hover { color: white; text-decoration: underline; }

.utility-links { display: flex; align-items: center; }
.social-links { display: flex; align-items: center; gap: 5px; direction: ltr; padding: 5px 0; }
.utility-bar .social-link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 2px; color: white; }
.social-link svg { display: block; width: 13px; height: 13px; }
.social-x { background: #111827; }
.social-instagram { background: linear-gradient(35deg, #a94809, #c52c63 50%, #6540b0); }
.social-youtube { background: #d62228; }
.social-pinterest { background: #bd081c; }
.social-linkedin { background: #0a66c2; }
.social-telegram { background: #087eb4; }
.utility-bar .social-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 3px 9px #0004; filter: brightness(1.12); }
.masthead { background: linear-gradient(90deg, #091a2d75, #091a2d35), url('herat-castle.png') center 8% / cover; }
.masthead .header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 108px; gap: 30px; }
.brand { display: inline-flex; flex-shrink: 0; }
.wordmark { --logo-size: 180px; display: inline-block; width: var(--logo-size); background: white; box-shadow: 0 4px 20px #0002; vertical-align: middle; }
.wordmark-fa { display: grid; grid-template-columns: 1.08fr .92fr; gap: 2px; height: calc(var(--logo-size) * .3529); direction: rtl; background: white; }
.wordmark-fa>span { display: flex; align-items: center; justify-content: center; color: white; font: 700 calc(var(--logo-size) * .19) / 1 Shabnam, Tahoma, sans-serif; padding-bottom: 3px; white-space: nowrap; }
.wordmark-herat { background: #0a2232; }
.wordmark-times { background: #9e1b1f; }
.wordmark-en { position: relative; display: block; width: 100%; height: calc(var(--logo-size) * .19); padding: 0; border: 0; border-radius: 0; background: white; color: #0a2232; direction: ltr; cursor: pointer; touch-action: pan-y; user-select: none; overflow: hidden; }
.tech-text-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 600 calc(var(--logo-size) * .1) / 1 Arial, sans-serif; letter-spacing: calc(var(--logo-size) * .012); white-space: nowrap; }
.tech-text-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.tech-text-ready .tech-text-fallback { visibility: hidden; }
.masthead-title { color: white; text-align: right; text-shadow: 0 2px 15px #0009; }
.masthead-title>span { font-weight: 700; font-size: 1.5rem; }
.masthead-title p { font-size: var(--text-small); margin: 2px 0 0; }
.nav-shell { background: var(--navy); }
.nav-shell nav { display: flex; align-items: stretch; min-height: 51px; gap: 0; }
.nav-shell a { display: inline-flex; align-items: center; gap: 12px; padding: 12px 23px; color: white; font-size: var(--text-small); }
.nav-shell a:hover { background: #ffffff13; }
.nav-shell .nav-home { background: var(--brand); padding-inline: 21px; }
.nav-shell .nav-home:hover { background: var(--brand-dark); }
.nav-shell .admin-link { margin-inline-start: auto; color: #e2e6f1; }
.headline-bar { background: #fff; border-bottom: 1px solid #e1e5ec; }
.headline-bar .header-inner { display: flex; align-items: center; gap: 22px; min-height: 43px; }
.headline-bar strong { background: var(--brand); color: white; padding: 10px 18px; white-space: nowrap; font-size: var(--text-small); align-self: stretch; display: flex; align-items: center; }
.headline-bar .header-inner>span { font-size: var(--text-small); color: #425f9e; }
.wrap { width: min(1200px, calc(100% - 48px)); margin: auto; padding: 30px 0 55px; }
.home { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 30px; }
.hero { position: relative; overflow: hidden; border-radius: 2px; color: white; background: #152c44; padding: 36px; }
.home-main, .home-sidebar { min-width: 0; display: grid; gap: 30px; align-content: start; }
.home .home-hero { padding: 0; min-height: 0; display: block; background: #10283d; border: 1px solid #254056; }
.home-hero .hero-copy { max-width: none; padding: 28px 34px 30px; border-top: 1px solid #284156; }
.hero-gallery { background: #0c2333; padding-top: 12px; }
.hero-gallery .circular-carousel { height: 345px; color: white; direction: ltr; }
.carousel-fallback { display: flex; gap: 16px; align-items: center; height: 100%; overflow-x: auto; padding: 22px; scroll-snap-type: x mandatory; }
.carousel-fallback[hidden] { display: none; }
.carousel-fallback figure { margin: 0; flex: 0 0 min(220px, 82%); scroll-snap-align: center; }
.carousel-fallback img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 4px; }
.hero-gallery .circular-carousel__photo, .carousel-fallback img { filter: grayscale(1); }
.hero-gallery .circular-carousel__title { font-family: Shabnam, Tahoma, sans-serif; font-size: 16px; font-weight: 700; direction: rtl; }
.hero-gallery .circular-carousel__subtitle { font-size: 14px; direction: rtl; opacity: .85; }
.hero-gallery .circular-carousel__count { font-size: 14px; opacity: .8; }
.hero-gallery .circular-carousel__caption { gap: 3px; bottom: 13px; }
.hero-copy { position: relative; z-index: 1; max-width: 660px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-weight: bold; font-size: var(--text-small); margin: 0 0 12px; color: var(--brand); }
.hero .eyebrow { display: inline-flex; color: white; background: var(--brand); padding: 4px 10px; font-size: var(--text-small); }
.live-dot, .photo-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: inline-block; }
.hero h1 { margin: 9px 0 12px; font-size: clamp(1.75rem, 2.3vw, 2rem); line-height: 1.55; letter-spacing: normal; }
.home-hero h1 br { display: none; }
.hero h1 em { font-style: normal; }
.hero-intro { max-width: 560px; color: #e0e7ee; font-size: var(--text-body); margin: 0; line-height: 2; }
.hero-intro br { display: none; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 46px; padding: 11px 23px; background: var(--brand); color: white; border: 1px solid transparent; border-radius: 2px; font-weight: bold; font-size: var(--text-small); cursor: pointer; }
.button:hover { background: var(--brand-dark); transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.button.ghost { color: var(--navy); background: white; border-color: #dce1e9; }
.hero .button.ghost { color: white; background: #ffffff0d; border-color: #ffffff65; }
.hero .button.ghost:hover { background: #ffffff20; }
.text-link { color: white; font-size: var(--text-small); border-bottom: 1px solid #ffffff70; padding-bottom: 3px; }
.text-link span { margin-inline-start: 10px; }
.hero-caption { color: #c5cfda; font-size: var(--text-small); margin-top: 22px; display: flex; align-items: center; gap: 10px; }
.hero-caption>span { height: 1px; width: 25px; background: #a71d26; }
.hero-photo-note { position: absolute; top: 16px; left: 18px; display: flex; align-items: center; gap: 7px; font-size: var(--text-small); background: #0615239c; padding: 4px 9px; color: white; }
.community-stats { background: white; border: 1px solid var(--line); min-height: 415px; padding: 0 15px; }
.widget-title { position: relative; color: white; border-bottom: 2px solid var(--blue); font-size: var(--text-body); padding: 9px 17px; margin: 14px 0 0; background: linear-gradient(125deg, transparent 28%, var(--blue) 28%); text-align: right; }
.stats-content { padding: 5px 5px 0; }
.stats-content>div { display: flex; justify-content: space-between; align-items: center; padding: 17px 5px; border-bottom: 1px solid var(--line); }
.stats-content strong { font: bold 1.5rem Shabnam, sans-serif; color: var(--navy); }
.stats-content span { color: var(--muted); font-size: var(--text-small); }
.stats-content p { text-align: center; color: var(--muted); font-size: var(--text-small); margin: 16px 0; line-height: 2; }
.stats-content b { color: var(--brand); }
.petitions-section, .how-section { min-width: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 18px; border-bottom: 2px solid var(--brand); color: white; }
.section-heading>div { min-width: 0; }
.section-heading .eyebrow { display: none; }
.section-heading h2 { background: var(--brand); padding: 9px 16px 9px 32px; clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%); margin: 0; font-size: var(--heading-small); }
.section-heading>p { display: none; }
.section-count { color: #cbd6e0; font-size: var(--text-small); white-space: nowrap; padding-left: 3px; }
.petition-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card, .panel { background: white; border: 1px solid var(--line); border-radius: 2px; }
.card { display: flex; flex-direction: column; padding: 27px 30px; transition: border-color .2s, box-shadow .2s; border-inline-start: 3px solid transparent; }
.card:hover { border-inline-start-color: var(--brand); box-shadow: 0 6px 22px #0002; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--navy); background: #edf1fb; padding: 4px 9px; font-size: var(--text-small); }
.status-badge>span { height: 5px; width: 5px; border-radius: 50%; background: currentColor; }
.status-badge.ended { color: var(--brand); background: #faeded; }
.card-index { direction: ltr; font: .875rem Arial, sans-serif; letter-spacing: 1px; color: #7e8997; }
.location { color: var(--muted); font-size: var(--text-small); margin: 0 0 8px; }
.card h3 { margin: 0 0 12px; font-size: var(--heading-card); }
.card h3 a:hover { color: var(--brand); }
.card-summary { color: var(--muted); font-size: var(--text-body); line-height: 2; margin: 0 0 23px; }
.card-progress { margin-top: auto; background: #f6f7f9; border: 1px solid #eceef2; padding: 15px 18px; }
.progress-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: var(--text-small); margin-bottom: 9px; }
.progress-label strong { color: var(--navy); font-size: var(--heading-card); margin-inline-end: 4px; }
.meter { height: 6px; border-radius: 1px; overflow: hidden; background: #e1e6ef; margin: 18px 0; }
.meter span { display: block; height: 100%; background: var(--brand); }
.card .meter { margin: 0 0 10px; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: var(--text-small); }
.card-button { align-self: flex-end; margin-top: 20px; min-width: 230px; justify-content: space-between; }
.how-section { background: white; padding: 0 15px; border: 1px solid var(--line); }
.how-section .section-heading { border-color: var(--blue); margin: 14px 0 0; }
.how-section .section-heading h2 { font-size: var(--text-body); background: var(--blue); }
.steps { display: grid; }
.steps article { position: relative; padding: 20px 0 20px 38px; border-bottom: 1px solid var(--line); }
.steps article:last-child { border: 0; }
.steps article>span { position: absolute; top: 17px; left: 0; font-size: 1.5rem; color: #c5d3ed; font-weight: bold; }
.steps h3 { font-size: var(--text-body); margin: 0 0 7px; }
.steps p { font-size: var(--text-body); color: var(--muted); margin: 0; line-height: 2; }
.closing-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; border-top: 2px solid var(--brand); padding: 24px 30px; background: white; }
.closing-note>span { font: 60px Georgia, serif; color: var(--brand); height: 49px; }
.closing-note p { margin: 0; font-size: var(--heading-small); font-weight: bold; }
.closing-note a { margin-inline-start: auto; font-size: var(--text-small); color: var(--brand); }
.closing-note a span { margin-inline-start: 15px; }
.footer { background: #131126; color: white; border-top: 4px solid #fff; }
.footer-inner { width: min(1200px, calc(100% - 48px)); margin: auto; display: grid; grid-template-columns: 1.1fr .8fr 1fr; gap: 70px; padding: 42px 0; }
.footer h2 { margin: 0 0 24px; font-size: var(--text-body); }
.footer-brand { display: inline-flex; margin-bottom: 10px; }
.footer-brand .wordmark { --logo-size: 136px; }
.footer p { color: #c4c4d1; font-size: var(--text-small); line-height: 1.9; margin: 8px 0; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; font-size: var(--text-small); color: #d6d6e1; }
.footer-links h2 { color: white; margin-bottom: 10px; }
.footer-links a:hover { color: white; text-decoration: underline; }
.footer-message .button { margin-top: 17px; font-size: var(--text-small); }
.footer-bottom { background: #0c0a19; text-align: center; color: #9695aa; padding: 20px; font-size: var(--text-small); }
.grid { display: grid; gap: 24px; margin-top: 24px; }
.grid.two { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; }
.panel { padding: 30px; }
.panel h1, .panel h2 { margin: 0 0 18px; }
.panel h2 { font-size: var(--heading-card); padding-bottom: 15px; border-bottom: 2px solid var(--brand); }
.panel p { font-size: var(--text-body); line-height: 2.1; }
.panel.narrow { max-width: 520px; margin: 25px auto; padding: 35px; border-top: 3px solid var(--brand); }
.wrap.narrow { max-width: 620px; }
.back-link { display: inline-flex; margin-bottom: 16px; font-size: var(--text-small); color: #d5e0ed; }
.back-link:hover { color: white; }
.petition-hero { border-top: 3px solid var(--brand); background: #172e45; }
.petition-hero>p:not(.eyebrow) { color: #d1dce8; max-width: 760px; font-size: var(--text-body); }
.petition-hero h1 { max-width: 900px; }
.support-panel { border-top: 3px solid var(--brand); position: sticky; top: 24px; }
.support-panel .eyebrow { margin-bottom: 9px; }
.support-panel h2 { font-size: var(--heading-card); }
.support-panel .muted { font-size: var(--text-small); margin-bottom: 24px; }
.detail>.panel { margin-top: 24px; }
.stats { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: var(--text-small); color: var(--muted); }
.stats strong { font-size: 1.5rem; color: var(--brand); }
.stack { display: grid; gap: 17px; }
label { display: grid; gap: 7px; font-size: var(--text-small); font-weight: bold; }
input, textarea { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid #d8dee8; border-radius: 2px; background: #fcfcfd; color: var(--ink); font-size: var(--text-body); }
input:hover, textarea:hover { border-color: #94a5c5; }
input:focus, textarea:focus { border-color: var(--blue); background: white; }
textarea { resize: vertical; }
input[type=tel] { text-align: left; }
.muted { color: var(--muted); }
.comments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.empty-state { color: var(--muted); background: var(--soft); padding: 20px; grid-column: 1 / -1; margin: 0; }
blockquote { margin: 0; background: var(--soft); padding: 20px; border-inline-start: 3px solid var(--navy); }
blockquote p { margin: 0 0 12px; }
blockquote cite { color: var(--muted); font-style: normal; font-size: var(--text-small); }
.comment-heading { margin-bottom: 18px; }
.comment-heading h2 { margin: 0; }
.comment-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.comment-pagination .button { min-width: 210px; }
.show-all-comments { color: var(--brand); font-weight: 700; }
.flash { width: min(1200px, calc(100% - 48px)); margin: 20px auto 0; background: #eff7ef; color: #28543b; border-inline-start: 4px solid #387954; padding: 16px 22px; font-size: var(--text-body); }
.flash.error { background: #fff0f0; color: #92212a; border-color: var(--brand); }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: white; }
.admin-head h1 { font-size: var(--heading-large); }
.admin-row { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: var(--text-small); }
.admin-row>div { display: grid; gap: 8px; }
.admin-row span { font-size: var(--text-small); color: var(--muted); }
.admin-row a { color: var(--brand); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 10px); opacity: 0; pointer-events: none; z-index: 30; background: var(--navy); color: white; border-bottom: 3px solid var(--brand); padding: 13px 25px; font-size: var(--text-small); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.hero-copy { animation: enter .5s ease-out both; }
@media (max-width: 1000px) {
    .home { grid-template-columns: minmax(0, 1fr) 265px; gap: 22px; }
    .hero { padding: 28px; }
    .hero h1 { font-size: 1.875rem; }
    .nav-shell a { padding-inline: 18px; font-size: var(--text-small); }
    .card { padding: 23px; }
    .footer-inner { gap: 35px; }
}
@media (max-width: 760px) {
    .header-inner, .wrap, .footer-inner, .flash { width: calc(100% - 32px); }
    .utility-bar { font-size: var(--text-small); }

    .utility-bar .header-inner { flex-wrap: nowrap; justify-content: flex-start; min-height: 68px; padding: 7px 0; gap: 0; }
    .top-brand-cluster { gap: 12px; }
    .utility-bar time { display: none; }
    .utility-bar .brand .wordmark { --logo-size: 96px; }
    .utility-links { width: auto; }
    .social-links { gap: 4px; padding: 4px 0; }
    .utility-bar .social-link { width: 23px; height: 23px; flex-basis: 23px; }

    .masthead .header-inner { min-height: 84px; gap: 20px; }
    .brand .wordmark { --logo-size: 110px; }
    .footer-brand .wordmark { --logo-size: 100px; }
    .masthead-title>span { font-size: var(--heading-card); }
    .masthead-title p { font-size: var(--text-small); max-width: none; }
    .nav-shell nav { min-height: 47px; flex-wrap: wrap; }
    .nav-shell a { flex: 1 1 auto; justify-content: center; }
    .nav-shell .nav-home { flex: 0 0 auto; }
    .nav-shell .admin-link { margin-inline-start: 0; }
    .nav-shell a { padding: 10px 13px; font-size: var(--text-small); gap: 4px; }
    .nav-shell .nav-home { padding-inline: 14px; }
    .nav-shell a[href="https://www.herattimes.net/"] { display: none; }
    .nav-shell .admin-link { font-size: var(--text-small); padding-inline: 10px; }
    .admin-link span { display: none; }
    .headline-bar .header-inner { min-height: 42px; gap: 12px; }
    .headline-bar strong { padding: 9px 11px; font-size: var(--text-small); }
    .headline-bar .header-inner>span { font-size: var(--text-small); padding-block: 6px; }
    .wrap { padding-top: 22px; padding-bottom: 35px; }
    .home { grid-template-columns: 1fr; gap: 23px; }
    .home-main, .home-sidebar { gap: 23px; }
    .home-hero { min-height: 0; padding: 0; }
    .home-hero .hero-copy { padding: 24px 22px; }
    .hero-gallery .circular-carousel { height: 290px; }
    .hero h1 { font-size: var(--heading-large); line-height: 1.7; }
    .hero-intro { font-size: var(--text-body); }
    .hero-actions { gap: 15px; }
    .hero-actions .button { padding-inline: 16px; font-size: var(--text-small); }
    .text-link { font-size: var(--text-small); }
    .hero-photo-note { font-size: var(--text-small); }
    .hero-caption { font-size: var(--text-small); }
    .community-stats { min-height: 0; order: 1; }
    .stats-content { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 15px; }
    .stats-content>div { flex-direction: column; padding: 3px 0 12px; gap: 2px; border-bottom: 0; border-inline-end: 1px solid var(--line); }
    .stats-content>div:last-of-type { border: 0; }
    .stats-content strong { font-size: 1.5rem; }
    .stats-content span { font-size: var(--text-small); }
    .stats-content p { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; margin: 12px 0; font-size: var(--text-small); }
    .stats-content p br { display: none; }
    .petitions-section { order: 2; }
    .how-section { order: 3; }
    .closing-note { order: 4; }
    .section-heading h2 { font-size: var(--text-body); }
    .card { padding: 23px 20px; }
    .card h3 { font-size: var(--heading-card); }
    .card-summary { font-size: var(--text-body); }
    .card-progress { padding: 12px; }
    .card-meta { font-size: var(--text-small); gap: 6px; }
    .card-button { width: 100%; }
    .closing-note { flex-wrap: wrap; gap: 8px 15px; padding: 22px; }
    .closing-note p { font-size: var(--heading-small); }
    .closing-note a { width: 100%; padding-inline-start: 35px; font-size: var(--text-small); }
    .footer-inner { grid-template-columns: 1fr; gap: 30px; padding: 32px 0; }
    .footer h2 { margin-bottom: 16px; }
    .footer-links { gap: 12px; }
    .grid.two, .comments { grid-template-columns: 1fr; }
    .comment-pagination { align-items: stretch; }
    .comment-pagination .button, .comment-pagination .show-all-comments { width: 100%; text-align: center; }
    .panel { padding: 24px; }
    .panel.narrow { padding: 27px; margin-top: 10px; }
    .support-panel { position: static; }
    .petition-hero { padding: 25px; }
    .petition-hero h1 { font-size: var(--heading-large); }
    .petition-hero>p:not(.eyebrow) { font-size: var(--text-body); }
    .petition-hero .hero-actions { gap: 10px; }
    .petition-hero .button { gap: 12px; }
    .admin-head h1 { font-size: var(--heading-card); }
    .admin-row { flex-wrap: wrap; }
    .toast { width: max-content; max-width: calc(100% - 32px); }
}
@media (max-width: 380px) {
    .nav-shell a { padding-inline: 9px; font-size: var(--text-small); }
    .nav-shell .nav-home { padding-inline: 11px; }
    .brand .wordmark { --logo-size: 100px; }
    .masthead-title>span { font-size: 1.25rem; }
    .masthead-title p { font-size: var(--text-small); }
    .hero h1 { font-size: 1.5rem; }
    .hero-actions { gap: 12px; }
    .hero-actions .button { padding-inline: 12px; }
    .card-meta { flex-wrap: wrap; }
    .stats-content span { font-size: var(--text-small); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *:before, *:after { animation: none !important; transition: none !important; }
}

/* Compact navigation and a quieter homepage. */
.utility-bar .header-inner { min-height: 80px; }
.top-brand-cluster { width: 100%; flex-direction: row-reverse; justify-content: space-between; gap: 24px; }
.utility-bar .social-link { width: 28px; height: 28px; flex-basis: 28px; background: transparent; border: 1px solid #ffffff30; color: #f0f3fa; }
.utility-bar .social-link:hover { background: #ffffff14; transform: none; box-shadow: none; filter: none; }
.utility-bar .social-link svg { width: 14px; height: 14px; }
.nav-shell { border-top: 1px solid #ffffff12; }
.nav-shell nav { min-height: 46px; gap: 6px; }
.nav-shell a { font-size: 14px; padding: 11px 24px; }
.nav-shell .nav-primary { background: var(--brand); font-weight: 700; }
.nav-shell .admin-link { color: #d6dded; }
.home { display: block; max-width: 1100px; }
.home-main { gap: 28px; }
.home .home-hero { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; border: 1px solid #254056; }
.home-hero .hero-copy { border: 0; padding: 28px 30px; }
.home-hero h1 { font-size: clamp(24px, 2.1vw, 30px); line-height: 1.7; margin: 0 0 10px; }
.home-hero .hero-intro { font-size: 16px; line-height: 2; max-width: 360px; margin: 0; }
.home-hero .hero-actions { margin-top: 20px; }
.home-hero .button { min-height: 46px; padding-inline: 22px; }
.hero-gallery { background: transparent; padding: 0; min-width: 0; }
.hero-gallery .circular-carousel { height: 290px; }
.petitions-section .section-heading { margin-bottom: 16px; }
.petitions-section .section-heading h2 { font-size: 18px; }
.card-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.simple-guide { margin-top: 25px; padding: 16px 22px; background: #152d40; border: 1px solid #30465a; color: #e7edf5; }
.simple-guide summary { cursor: pointer; font-size: 14px; font-weight: 700; min-height: 28px; }
.simple-guide p { font-size: 16px; line-height: 2; margin: 14px 0 0; max-width: 750px; color: #ccd7e5; }
.simple-guide summary:focus-visible { outline: 3px solid #4b88ff; outline-offset: 5px; }
.footer { border-top: 1px solid #2a3a4b; background: #101a29; }
.footer-simple { width: min(1200px, calc(100% - 48px)); margin: auto; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-simple>span { font-size: 14px; font-weight: 700; color: #e1e7f0; }
.footer-simple nav { display: flex; gap: 24px; color: #c1cddd; font-size: 14px; }
.footer-simple a:hover { color: white; }
@media (max-width: 760px) {
    .utility-bar .header-inner { min-height: 72px; padding-block: 8px; }
    .top-brand-cluster { gap: 16px; }
    .utility-bar .brand .wordmark { --logo-size: 92px; }
    .utility-bar .social-links { gap: 3px; }
    .utility-bar .social-link { width: 25px; height: 25px; flex-basis: 25px; }
    .utility-bar .social-link svg { width: 13px; height: 13px; }
    .nav-shell nav { flex-wrap: nowrap; gap: 0; min-height: 46px; }
    .nav-shell a { flex: 1 1 0; justify-content: center; padding: 11px 10px; white-space: nowrap; }
    .nav-shell .admin-link { margin: 0; }
    .home { padding-top: 18px; }
    .home .home-hero { grid-template-columns: 1fr; }
    .home-hero .hero-copy { padding: 22px 22px 12px; }
    .home-hero h1 { font-size: 24px; }
    .home-hero .hero-intro { font-size: 16px; }
    .home-hero .hero-actions { margin-top: 15px; }
    .home-hero .button { width: 100%; }
    .hero-gallery .circular-carousel { height: 225px; }
    .home-main { gap: 24px; }
    .simple-guide { padding: 15px 18px; }
    .footer-simple { width: calc(100% - 32px); padding-block: 22px; }
    .footer-simple nav { gap: 18px; }
}
/* Clear admin choices and the article workspace. */
.admin-workspace { max-width: 1200px; }
.admin-head { color: #fff; gap: 20px; align-items: center; }
.admin-head h1 { margin: 0; font-size: 26px; }
.admin-head .muted { color: #bdcbd9; font-size: 14px; }
.admin-head form { margin: 0; }
.admin-head .button.ghost { background: transparent; border-color: #698092; color: white; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.admin-tabs a { color: #d9e3ed; border: 1px solid #365165; padding: 9px 17px; border-radius: 4px; font-size: 14px; }
.admin-tabs a:hover, .admin-tabs a[aria-current] { background: white; color: var(--ink); border-color: white; }
.admin-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.admin-choice { display: flex; align-items: flex-start; flex-direction: column; padding: 32px; border-top: 4px solid var(--brand); transition: transform .2s, box-shadow .2s; }
.admin-choice:hover { transform: translateY(-3px); box-shadow: 0 12px 30px #0003; }
.choice-icon { width: 48px; height: 48px; background: #a71d2610; color: var(--brand); display: grid; place-items: center; border-radius: 50%; font-size: 28px; }
.admin-choice h2 { margin: 18px 0 8px; font-size: 23px; }
.admin-choice p { color: var(--muted); margin: 0 0 25px; }
.admin-choice .button { margin-top: auto; }
.editor-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.editor-layout>*, .grid.two>* { min-width: 0; }
.admin-workspace input, .admin-workspace textarea, .admin-workspace select { max-width: 100%; }
.admin-workspace textarea { resize: vertical; line-height: 2; }
.admin-workspace select { width: 100%; font: inherit; padding: 12px; background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; }
.field-help { margin: -4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.9; }
.optional-label { color: var(--muted); font-size: 12px; font-weight: normal; }
.editor-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.preview-label { color: var(--brand); font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.article-preview { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; }
.article-preview h1 { font-size: 25px; margin: 20px 0; }
.article-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 2.2; font-size: 17px; }
.article-page { max-width: 900px; }
.article-page h1 { font-size: clamp(25px, 4vw, 36px); }
.article-cover { display: block; width: 100%; max-height: 540px; object-fit: cover; margin: 20px 0; }
.article-photos { display: grid; gap: 16px; }
.article-photos img { display: block; width: 100%; height: auto; border-radius: 3px; }
.article-preview .article-photos { margin-bottom: 20px; }
.existing-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.existing-photo { font-size: 12px; }
.existing-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.existing-photo span { display: flex; align-items: center; gap: 8px; }
.existing-photo input { width: auto; }
.article-admin-list { margin-top: 24px; }
.articles-section { margin-top: 30px; }
.articles-section>.section-heading, .page-heading { color: white; }
.article-card .article-cover { margin: 0 0 16px; aspect-ratio: 16/10; }
.article-card h3 { font-size: 21px; }
.article-card .button { margin-top: auto; }
@media (max-width: 760px) {
    .admin-head h1 { font-size: 23px; }
    .admin-tabs { gap: 6px; }
    .admin-tabs a { padding: 8px 11px; font-size: 13px; }
    .admin-choices, .editor-layout { grid-template-columns: 1fr; gap: 18px; }
    .admin-choice { padding: 24px; }
    .admin-choice h2 { font-size: 21px; }
    .admin-choice .button { width: 100%; }
    .article-preview { position: static; max-height: 650px; }
    .article-body { font-size: 16px; }
    .nav-shell a { padding-inline: 5px; font-size: 12px; }
}
.survey-photos:not(:empty) { margin: 24px 0; }
.survey-cover { aspect-ratio: 16/10; max-height: 280px; margin: 0 0 18px; }
@media (max-width: 760px) { #petition-editor textarea[data-preview-body] { min-height: 240px; } }
.editor-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.editor-actions .button { flex: 1 1 160px; }
/* Customer feedback: slightly smaller type, especially on phones. */
:root { --text-body: .9375rem; --heading-card: 1.25rem; --heading-large: 1.625rem; }
.article-body { font-size: 16px; line-height: 2.1; }
.home-hero h1 { font-size: clamp(23px, 2vw, 28px); }
@media (max-width: 760px) {
    :root { --text-small: .8125rem; --heading-small: 1rem; --heading-card: 1.1875rem; --heading-large: 1.375rem; }
    body { font-size: 15px; line-height: 1.85; }
    .home-hero h1 { font-size: 22px; }
    .home-hero .hero-intro, .simple-guide p { font-size: 15px; }
    .panel h2, .petitions-section .section-heading h2 { font-size: 17px; }
    .admin-head h1, .article-preview h1 { font-size: 21px; }
    .admin-choice h2, .article-card h3 { font-size: 19px; }
    .article-body { font-size: 15px; line-height: 2; }
    .article-page h1 { font-size: 23px; }
    .stack>label { font-size: 14px; }
    input, textarea, select, .admin-workspace select { font-size: 16px; }
    .admin-row>div:last-child { display: flex; flex-wrap: wrap; gap: 10px 16px; }
    .admin-row>div:last-child a { display: inline-flex; align-items: center; min-height: 40px; }
}
.content-row-actions, .content-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.content-controls form { margin: 0; }
.content-controls .button { min-height: 40px; padding: 7px 13px; font-size: 13px; }
.content-controls .danger { color: #a71d26; border-color: #e4bfc2; }
.content-trash { margin-top: 22px; }
.content-trash summary { cursor: pointer; font-weight: bold; }
.content-trash>.field-help { margin-top: 14px; }
.content-notice { padding: 14px 20px; background: #fff3d9; color: #604700; border: 1px solid #e3c988; }
.admin-row { align-items: center; }
.admin-row>.content-row-actions { display: flex; flex: 0 1 58%; justify-content: flex-end; gap: 10px 16px; }
@media (max-width: 760px) { .admin-row>.content-row-actions { flex-basis: 100%; justify-content: flex-start; } }
.comment-management .section-heading { align-items: flex-start; }
.comment-admin-list { display: grid; gap: 16px; }
.comment-admin-item { border: 1px solid var(--line); border-inline-start: 4px solid var(--brand); padding: 18px; background: #fff; }
.comment-admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.comment-admin-head>div { display: grid; gap: 4px; }
.comment-admin-head span, .comment-admin-head time, .comment-admin-meta { color: var(--muted); font-size: 13px; }
.comment-admin-text { margin: 16px 0; padding: 14px; background: #f6f7f8; overflow-wrap: anywhere; white-space: normal; }
.comment-admin-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.comment-admin-meta form { margin-inline-start: auto; }
.comment-admin-meta .danger { color: #a71d26; border-color: #e4bfc2; min-height: 38px; padding: 7px 13px; font-size: 13px; }
@media (max-width: 760px) {
    .comment-admin-head { display: grid; }
    .comment-admin-meta { align-items: stretch; }
    .comment-admin-meta form { width: 100%; margin-inline-start: 0; }
    .comment-admin-meta .danger { width: 100%; }
}
