/* =========================================================
   About Us & Contact pages (uses colours from styles.css)
   ========================================================= */
.top-links a[aria-current="page"]:not(.pill) { color: var(--accent); }
a.chip { display: inline-block; text-decoration: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Hero */
.page-hero { background: radial-gradient(ellipse at 80% 0%, var(--navy-2), var(--navy) 65%); color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 2px solid rgba(253,202,28,.18); box-shadow: 0 0 0 60px rgba(30,123,255,.05), 0 0 0 120px rgba(30,123,255,.04); pointer-events: none; }
.page-hero.compact { padding: 52px 0 44px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin: 10px 0 16px; max-width: 820px; }
.page-hero h1 span { color: var(--accent-2); }
.hero-lead { font-size: 1.15rem; color: #c9d3ea; max-width: 640px; margin: 0; }
.hero-tags { margin: 22px 0 0; font-weight: 800; letter-spacing: .25em; font-size: .85rem; text-transform: uppercase; }
.hero-tags i { color: var(--accent); font-style: normal; margin: 0 8px; }
.kicker { display: inline-block; margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border-left: 3px solid var(--accent); padding-left: 10px; }
.kicker.dark { color: var(--brand); }

/* Sections */
.page-section { padding: 56px 0; }
.page-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 10px 0 0; }
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.prose p { font-size: 1.08rem; line-height: 1.75; margin: 0 0 16px; color: var(--muted); }
.prose p:first-child { color: var(--text); font-size: 1.2rem; }
.soft-band { background: var(--soft); border-block: 1px solid var(--line); }

/* Mission / vision */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 28px; }
.mv-card h3 { font-size: 1.25rem; font-weight: 800; margin: 14px 0 8px; }
.mv-card p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.mv-icon, .cover-icon, .c-icon { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); transition: background .2s, color .2s; }
.mv-icon svg, .cover-icon svg, .c-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Coverage cards */
.cover-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.cover-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cover-card:hover, .cover-card:focus-visible { transform: translateY(-3px); border-color: var(--brand-2); box-shadow: 0 10px 24px rgba(4,22,58,.1); }
.cover-card h3 { font-size: 1.08rem; font-weight: 800; margin: 14px 0 6px; }
.cover-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.cover-card:hover .cover-icon { background: var(--accent); color: var(--on-accent); }

/* Editorial commitment */
.commit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.commit-list li { padding: 14px 16px 14px 50px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); position: relative; line-height: 1.6; color: var(--muted); }
.commit-list li::before { content: "\2713"; position: absolute; left: 14px; top: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.commit-list b { color: var(--text); }
.commit-list a { color: var(--brand); text-decoration: underline; }

/* Perspective */
.perspective { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 16px; padding: 44px; }
.perspective-text { font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.55; font-weight: 600; margin: 16px 0 20px; max-width: 860px; }
.tagline { margin: 0; color: var(--accent-2); font-weight: 800; }

/* CTA */
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.cta-row h2 { margin: 0 0 6px; }
.cta-row p { margin: 0; color: var(--muted); }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-gold, .btn-outline { display: inline-block; padding: 12px 24px; border-radius: 99px; font: 700 1rem Inter, sans-serif; cursor: pointer; transition: transform .15s, filter .15s, background .15s, color .15s; border: 2px solid transparent; }
.btn-gold { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); }
.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-gold:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-outline { border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

/* Contact layout */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; padding: 40px 0 64px; align-items: start; }
.contact-details h2, .contact-form-card h2 { font-size: 1.3rem; font-weight: 800; margin: 0 0 18px; }
.contact-details ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.contact-details li { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.contact-details li[hidden] { display: none; }
.contact-details small, .social-row small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.contact-details li a, .contact-details li span[data-contact] { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.contact-details li a:hover { color: var(--brand); }
.c-icon.wa { background: #e3f7ea; color: #128c4a; }
.social-row { margin-bottom: 20px; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.social-links a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; font-weight: 600; font-size: .9rem; }
.social-links a:hover { border-color: var(--brand); color: var(--brand); }
.tip-box { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #dfe6f5; border-radius: var(--radius); padding: 20px; border-left: 4px solid var(--accent); }
.tip-box h3 { color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.tip-box p { margin: 0; font-size: .92rem; line-height: 1.6; }
.tip-box b { color: var(--accent-2); }

.contact-form-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 14px; padding: 28px; box-shadow: 0 10px 30px rgba(4,22,58,.06); }
.cform { display: grid; gap: 16px; position: relative; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.field [aria-invalid="true"] { border-color: var(--down); }
.err { color: var(--down); font-size: .85rem; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform .btn-gold { justify-self: start; }
.form-hint { margin: -6px 0 0; font-size: .85rem; color: var(--muted); }
.form-hint:empty { display: none; }
.form-status { padding: 14px 16px; border-radius: 8px; font-size: .95rem; line-height: 1.5; }
.form-status.success { background: #e5f6ec; color: #0b5d31; }
.form-status.info { background: var(--brand-soft); color: var(--text); }
.form-status.error { background: #fde8e8; color: #8a1c1c; }
.form-status a { text-decoration: underline; font-weight: 700; }
.privacy-note { margin: 0; font-size: .8rem; color: var(--muted); }

/* Homepage tip panel */
.tip-panel p { margin: 0 0 14px; color: var(--muted); font-size: .92rem; }
.tip-panel .btn-gold { padding: 10px 20px; font-size: .95rem; }

@media (max-width: 900px) {
  .two-col, .contact-layout { grid-template-columns: 1fr; gap: 24px; }
  .cover-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .top-links a:not(.pill) { display: inline; font-size: .85rem; }
}
/* =========================================================
   Kenya Elections 2027 countdown
   ========================================================= */
.election-card { position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: var(--radius); padding: 26px 20px 20px; background: radial-gradient(ellipse at 50% 0%, var(--navy-2), var(--navy) 75%); box-shadow: 0 8px 24px rgba(4,22,58,.18); }
.election-card::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 160px; height: 160px; border-radius: 50%; border: 2px solid rgba(253,202,28,.15); pointer-events: none; }
.ec-flag, .eb-flag { display: flex; }
.ec-flag { position: absolute; inset: 0 0 auto 0; height: 6px; }
.ec-flag i, .eb-flag i { flex: 1; }
.ec-flag i:nth-child(1), .eb-flag i:nth-child(1) { background: #000; }
.ec-flag i:nth-child(2), .eb-flag i:nth-child(2) { background: #bb0000; box-shadow: 0 0 0 1.5px #fff inset; }
.ec-flag i:nth-child(3), .eb-flag i:nth-child(3) { background: #006600; }
.election-card p { margin: 0; }
.ec-kicker { font-size: .8rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); }
.ec-days { font-size: 4.2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; margin: 10px 0 4px !important; background: linear-gradient(180deg, #fff 30%, #fdca1c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.election-card.is-today .ec-days { font-size: 3rem; }
.ec-label { font-size: .85rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; }
.ec-date { margin-top: 14px !important; padding: 8px 0; border-block: 1px solid rgba(255,255,255,.15); font-weight: 600; color: #dfe6f5; }
.ec-tagline { margin-top: 12px !important; font-weight: 700; color: var(--accent-2); }
.ec-link { display: inline-block; margin-top: 14px; font-size: .82rem; color: #c9d3ea; text-decoration: underline; text-underline-offset: 3px; }
.ec-link:hover { color: #fff; }

/* Banner under the header (all pages) */
.election-banner { background: linear-gradient(90deg, var(--navy), var(--navy-2)); color: #fff; border-bottom: 3px solid var(--accent); font-size: .9rem; }
.eb-inner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 8px 0; text-align: center; }
.eb-flag { width: 26px; height: 16px; border-radius: 2px; overflow: hidden; flex-direction: column; box-shadow: 0 0 0 1px rgba(255,255,255,.4); }
.eb-title { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }
.eb-count b { font-size: 1.15rem; font-weight: 800; color: var(--accent-2); }
.eb-count span { font-weight: 600; }
.eb-date { color: #c9d3ea; }
.eb-link { color: var(--accent-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.eb-link:hover { color: #fff; }
@media (max-width: 600px) {
  .eb-inner { gap: 8px 12px; font-size: .82rem; }
  .eb-date { display: none; }
}

@media (max-width: 600px) {
  .mv-grid, .cover-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 48px 0 40px; }
  .perspective { padding: 28px 22px; }
  .contact-form-card { padding: 20px; }
}
