/*
Theme Name: CECOE Sub-Granting Resource Center
Theme URI: https://www.cecoe.org
Author: CECOE
Description: The look of the CECOE Sub-Granting Resource Center, matched to cecoe.org: white header, deep-green headings with short green rules, pill buttons, rounded cards and the green four-column footer. Version 4 is presentation only — the features come from the CECOE plugins (Core, Mailing List, Resource Library, Sub-Grantee Portal, Sub-Grant Import), which can be switched on and off under Plugins.
Version: 4.3.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cecoe-resource-center
*/

/* ==========================================================================
   Tokens — cecoe.org palette. Plugins read these same names.
   ========================================================================== */
:root {
  --navy: #025529;        /* headings, dark panels, footer */
  --navy-dark: #03461f;
  --green: #006837;       /* links, nav, buttons */
  --green-2: #03612f;     /* footer bottom bar */
  --green-light: #e8f4ec; /* mint tint */
  --teal-light: #e3f3f1;
  --yellow-light: #fff6d9;
  --amber: #f2b705;
  --ink: #1f2421;
  --muted: #55625b;
  --line: #e3e8e5;
  --bg: #f8f8f8;
  --card: #ffffff;
  --radius: 20px;
  --radius-lg: 28px;
  --font: "Google Sans", "Work Sans", "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); font-weight: 600; line-height: 1.2; }
button, input, select, textarea { font-family: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 880px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- Shared pieces: eyebrow, rule, section heading ---------- */
.eyebrow {
  text-transform: uppercase; letter-spacing: 3px; font-size: 13px; font-weight: 700;
  color: var(--green); margin-bottom: 10px;
}
.eyebrow-light { color: #b9e2c8; }
.rule { display: block; width: 64px; height: 3px; background: var(--green); border-radius: 3px; margin: 16px 0; }
.rule-light { background: #8fd1a8; }
.section-head { margin-bottom: 34px; }
.section-head.is-center { text-align: center; }
.section-head.is-center .rule { margin-left: auto; margin-right: auto; }
.section-title { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.2px; }
.section-head .section-sub { color: var(--muted); max-width: 720px; font-size: 15.5px; }
.section-head.is-center .section-sub { margin: 0 auto; }

/* ---------- Buttons (pills, as on cecoe.org) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 14px; letter-spacing: .3px; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-outline, .btn-ghost-dark { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover, .btn-ghost-dark:hover { background: var(--green); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-read-more {
  background: transparent; color: #fff; border-color: #fff;
  text-transform: uppercase; letter-spacing: 2px; font-size: 13px; padding: 12px 30px;
}
.btn-read-more:hover { background: #fff; color: var(--navy); }
.btn-sm-pill { padding: 8px 18px; font-size: 13px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: #fff; position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand-logo { width: 58px; height: 58px; object-fit: contain; flex: none; }
.brand-text { line-height: 1.25; max-width: 270px; }
.brand-text strong { display: block; color: var(--navy); font-size: 16px; font-weight: 700; }
.brand-text small { display: block; color: var(--muted); font-size: 11.5px; }
.main-nav ul { list-style: none; display: flex; gap: 0; align-items: center; flex-wrap: nowrap; }
.main-nav li { position: relative; }
.main-nav a {
  display: block; padding: 10px 10px; text-decoration: none;
  color: var(--green); font-weight: 600; font-size: 12.5px; letter-spacing: .4px;
  text-transform: uppercase; white-space: nowrap; border-radius: 999px;
}
.main-nav a:hover, .main-nav a.active,
.main-nav .current-menu-item > a { color: var(--navy); background: var(--green-light); }
.main-nav a.nav-cta, .main-nav .menu-cta > a { background: var(--green); color: #fff; padding: 10px 20px; margin-left: 8px; }
.main-nav a.nav-cta:hover, .main-nav a.nav-cta.active { background: var(--navy); color: #fff; }
.main-nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px; flex-direction: column; align-items: stretch;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: 0 12px 30px rgba(2,85,41,.12);
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }
@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .header-row { position: relative; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: -24px; right: -24px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(2,85,41,.12);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; flex-wrap: wrap; padding: 10px 20px 18px; }
  .main-nav a.nav-cta, .main-nav .menu-cta > a { margin: 8px 0 0; text-align: center; }
  .main-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 0 14px; }
}
@media (max-width: 480px) { .brand-text small { display: none; } .brand-logo { width: 48px; height: 48px; } }

/* ==========================================================================
   Hero — white copy column on the left, dark green panel on the right
   ========================================================================== */
.hero { background: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 520px; }
.hero-copy {
  padding: 70px 56px 70px max(24px, calc((100vw - 1180px) / 2 + 24px));
  display: flex; flex-direction: column; justify-content: center;
}
.hero-copy .rule:first-child { margin-top: 0; }
.hero h1 {
  font-size: clamp(30px, 3.6vw, 44px); text-transform: uppercase; letter-spacing: .5px;
  line-height: 1.12; font-weight: 600; max-width: 620px;
}
.hero .lead { color: var(--muted); font-size: 16.5px; max-width: 560px; }
.hero .cta-row { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-panel {
  background:
    radial-gradient(circle at 85% 15%, rgba(143,209,168,.22) 0, rgba(143,209,168,0) 42%),
    radial-gradient(circle at 10% 90%, rgba(0,104,55,.55) 0, rgba(0,104,55,0) 50%),
    linear-gradient(160deg, #03461f 0%, var(--navy) 55%, #013a1b 100%);
  color: #fff; display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero-panel::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 300px; height: 300px;
  background: url("assets/cecoe-logo.png") center / contain no-repeat; opacity: .08; pointer-events: none;
}
.hero-panel-inner { padding: 60px max(24px, calc((100vw - 1180px) / 2 + 24px)) 60px 56px; position: relative; z-index: 1; width: 100%; }
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 30px; margin: 8px 0 34px; }
.hero-stats b { display: block; font-size: 38px; font-weight: 600; line-height: 1.1; color: #fff; }
.hero-stats span { font-size: 13.5px; color: #cde7d6; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 46px 24px 40px; }
  .hero-panel-inner { padding: 40px 24px; }
}

/* Slim page hero (pages, portal, grant updates) */
.page-hero { background: var(--bg); padding: 56px 0 44px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(28px, 3.4vw, 40px); text-transform: uppercase; letter-spacing: .4px; }
.page-hero .lead { color: var(--muted); max-width: 720px; font-size: 16px; }
.updated-on { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--green); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 76px 0; scroll-margin-top: 96px; }
.section.is-grey, .dl-section:nth-of-type(odd) { background: var(--bg); }
.cecoe-subscribe.is-compact .cecoe-consent { color: #a9cdb6; }
.dl-section { padding: 70px 0; }

/* Search card overlapping hero edge */
.search-bar { background: var(--bg); padding: 34px 0 0; border: 0; }
.search-card {
  background: #fff; border-radius: var(--radius-lg); padding: 26px 28px;
  border: 1px solid var(--line);
}
.search-bar input[type="search"] {
  width: 100%; max-width: 640px; display: block; margin: 0 auto;
  padding: 14px 22px; font-size: 15px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--bg); outline: none;
}
.search-bar input[type="search"]:focus { border-color: var(--green); background: #fff; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.chip-btn {
  background: var(--green-light); border: 0; border-radius: 999px;
  padding: 7px 18px; font-size: 13px; font-weight: 600; color: var(--navy); cursor: pointer;
}
.chip-btn:nth-child(3n+2) { background: var(--teal-light); }
.chip-btn:nth-child(3n) { background: var(--yellow-light); }
.chip-btn:hover { filter: brightness(.96); }
.chip-btn.is-active { background: var(--green); color: #fff; }
.search-bar #search-count, .search-bar #search-no-results { text-align: center; margin-top: 12px; font-size: 14px; color: var(--muted); }
.search-bar #search-count { color: var(--green); font-weight: 600; }

/* Process */
.process { background: #fff; border: 0; }
.process-steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.process-steps li {
  counter-increment: step; background: var(--bg); border: 0; border-radius: var(--radius);
  padding: 26px 20px 22px; font-size: 13.8px; color: var(--muted); position: static;
}
.process-steps li::before {
  content: counter(step, decimal-leading-zero); display: block; position: static;
  width: auto; height: auto; background: none; border-radius: 0;
  font-size: 30px; font-weight: 600; color: var(--green); line-height: 1; margin-bottom: 14px;
}
.process-steps li strong { display: block; color: var(--navy); font-size: 15.5px; font-weight: 600; margin-bottom: 6px; }
@media (max-width: 1000px) { .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .process-steps { grid-template-columns: 1fr; } }

/* Download stages */
.section-meta { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin: -14px 0 28px; }
.count-pill {
  font-size: 12.5px; font-weight: 600; color: var(--navy); background: var(--green-light);
  padding: 6px 14px; border-radius: 999px; border: 0; letter-spacing: .3px;
}
.bundle-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1.5px solid var(--green); color: var(--green);
  text-decoration: none; font-weight: 600; font-size: 13px; padding: 6px 16px; border-radius: 999px;
}
.bundle-btn:hover { background: var(--green); color: #fff; }
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 820px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; display: flex; gap: 18px; box-shadow: none;
  transition: border-color .15s ease, transform .15s ease;
}
.dl-section:nth-of-type(odd) .dl-card { border-color: transparent; }
.dl-card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: none; }
.file-ico { border-radius: 10px; width: 50px; height: 58px; font-size: 11.5px; letter-spacing: .5px; }
.file-ico::before { border-color: transparent #fff transparent transparent; }
.dl-body h3 { color: var(--navy); font-size: 16.5px; font-weight: 600; }
.dl-body p { color: var(--muted); font-size: 14px; }
.dl-btn { background: var(--green); border-radius: 999px; font-weight: 600; padding: 9px 20px; }
.dl-btn:hover { background: var(--navy); color: #fff; }

/* Notice */
.notice {
  background: var(--yellow-light); border: 0; border-radius: var(--radius);
  padding: 18px 22px; font-size: 14px; color: #5a4a12; margin: 0 0 26px;
}

/* ==========================================================================
   Newsletter band
   ========================================================================== */
.subscribe-section { background: var(--navy); color: #fff; padding: 76px 0; }
.subscribe-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .subscribe-grid { grid-template-columns: 1fr; } }
.subscribe-copy h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); }
.subscribe-copy p { color: #d3eadb; }
.subscribe-points { list-style: none; margin-top: 18px; }
.subscribe-points li { padding: 7px 0 7px 30px; position: relative; color: #e6f3ea; font-size: 14.5px; }
.subscribe-points li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 16px; border-radius: 50%;
  background: #8fd1a8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23025529' stroke-width='2'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.subscribe-form-box { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 30px; }
.cecoe-subscribe input[type="email"], .cecoe-subscribe input[type="text"] {
  border: 1.5px solid var(--line); border-radius: 999px; padding: 13px 20px; background: var(--bg);
}
.cecoe-subscribe input:focus { border-color: var(--green); background: #fff; }
.cecoe-topics legend { color: var(--navy); font-weight: 600; }

/* ==========================================================================
   FAQ, news, about
   ========================================================================== */
.faq-list details { background: #fff; border: 0; border-radius: var(--radius); margin-bottom: 12px; padding: 0 26px; }
.faq-list summary {
  cursor: pointer; font-weight: 600; color: var(--navy); padding: 20px 34px 20px 0;
  list-style: none; position: relative; font-size: 15.5px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600;
}
.faq-list details[open] summary::after { content: "–"; background: var(--green); color: #fff; }
.faq-list details p { padding: 0 0 20px; color: var(--muted); font-size: 14.5px; }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { background: var(--bg); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.news-thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-body .btn { align-self: flex-start; margin-top: auto; }
.news-card time { font-size: 12px; color: var(--green); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
.news-card h3 { font-size: 18px; }
.news-card h3 a { color: var(--navy); text-decoration: none; }
.news-card h3 a:hover { color: var(--green); }
.news-card p { font-size: 14px; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.about-text p { color: var(--muted); margin-bottom: 14px; }
.about-text h2, .about-text h3 { margin: 22px 0 10px; }
.info-box { background: var(--green-light); border: 0; border-radius: var(--radius-lg); padding: 30px; }
.info-box h3 { color: var(--navy); font-size: 19px; margin-bottom: 12px; }
.info-box ul { list-style: none; }
.info-box li { padding: 10px 0 10px 28px; border-bottom: 1px solid rgba(2,85,41,.12); font-size: 14.5px; position: relative; }
.info-box li::before { content: ""; position: absolute; left: 0; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.info-box li:last-child { border-bottom: 0; }

/* ==========================================================================
   Grant updates page content
   ========================================================================== */
.gu-content h2 { font-size: 26px; margin: 48px 0 12px; padding: 0; border: 0; }
.gu-content h2::after { content: ""; display: block; width: 52px; height: 3px; background: var(--green); border-radius: 3px; margin-top: 12px; }
.gu-content h2:first-child { margin-top: 0; }
.gu-content p { color: var(--muted); margin-bottom: 14px; }
.gu-content ul, .gu-content ol { padding-left: 22px; margin-bottom: 14px; }
.gu-content .submit-card ul, .gu-content .info-box ul { padding-left: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.stat-tile { background: var(--bg); border: 0; border-radius: var(--radius-lg); padding: 24px 20px; text-align: center; }
.stat-tile b { color: var(--navy); font-size: 28px; font-weight: 600; }
.stat-tile span { color: var(--muted); font-size: 13px; }
.table-scroll { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.gu-table th { background: var(--navy); font-weight: 600; letter-spacing: 1px; font-size: 12px; }
.chip { font-weight: 600; border: 0 !important; }
.chip-active { background: var(--green-light); color: var(--navy); }
.chip-pipeline { background: var(--yellow-light); color: #5a4a12; }
.chip-closed { background: #eef0ef; color: var(--muted); }
.submit-card { background: var(--bg); border: 0; border-radius: var(--radius-lg); padding: 26px; }
.submit-card h3 { font-size: 17px; }

/* ==========================================================================
   Generic content
   ========================================================================== */
.content-area { padding: 56px 0 76px; }
.entry { font-size: 15.5px; }
.entry > * + * { margin-top: 14px; }
.entry h2 { font-size: 26px; margin-top: 34px; }
.entry h3 { font-size: 20px; margin-top: 26px; }
.entry ul, .entry ol { padding-left: 24px; }
.entry blockquote { border-left: 3px solid var(--green); padding: 4px 0 4px 18px; color: var(--muted); }
.entry img, .entry-thumb img { border-radius: var(--radius); }
.entry-thumb { margin-bottom: 24px; }
.entry-back { margin-top: 36px; }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 34px; }
.nav-links .page-numbers { padding: 8px 14px; border-radius: 999px; background: var(--bg); text-decoration: none; }
.nav-links .current { background: var(--green); color: #fff; }

/* ==========================================================================
   Portal — cecoe.org accents on top of the plugin's layout
   ========================================================================== */
.cecoe-portal { padding: 56px 0 76px; }
.cecoe-portal h2 { color: var(--navy); font-weight: 600; }
.cecoe-portal-nav a { border-radius: 999px; font-weight: 600; }
.cecoe-panel, .cecoe-fs, .cecoe-preview { border-radius: var(--radius); }
.cecoe-grant-card { border-top: 0; border-radius: var(--radius); background: var(--bg); border-color: transparent; }
.cecoe-call { border-left: 0; border-radius: var(--radius); background: var(--bg); border-color: transparent; }
.cecoe-signin-aside, .cecoe-callout { border: 0; border-radius: var(--radius); }
.cecoe-portal button[type="submit"]:not(.btn-sm):not(.cecoe-rep-remove) { border-radius: 999px; }
.cecoe-portal .cecoe-form input[type="text"], .cecoe-portal .cecoe-form input[type="email"],
.cecoe-portal .cecoe-form input[type="password"], .cecoe-portal .cecoe-form input[type="number"],
.cecoe-portal .cecoe-form input[type="date"], .cecoe-portal .cecoe-form select, .cecoe-portal .cecoe-form textarea { border-radius: 12px; }
.cecoe-table th, .cecoe-rep-table th { letter-spacing: .5px; }

/* ==========================================================================
   Footer — green, four columns, bottom bar
   ========================================================================== */
.site-footer { background: var(--navy); color: #d6ebdd; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr 1fr 1.3fr; gap: 40px; padding: 64px 24px 50px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; padding: 48px 16px 36px; } }
.site-footer h4 {
  color: #fff; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.22);
}
.site-footer p, .site-footer li { font-size: 14px; line-height: 1.7; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 3px 0; }
.site-footer a { color: #e3f2e8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { padding: 0 0 10px; }
.social { display: flex; gap: 10px; margin-top: 10px; }
.social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.social a:hover { background: #fff; color: var(--navy); text-decoration: none; }
.footer-news p { margin-bottom: 12px; }
.footer-news .cecoe-subscribe.is-compact .cecoe-fields { grid-template-columns: 1fr; }
.footer-news .cecoe-subscribe input[type="email"], .footer-news .cecoe-subscribe input[type="text"] {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: #fff;
}
.footer-news .cecoe-subscribe input::placeholder { color: #b9d9c4; }
.footer-news .cecoe-subscribe.is-compact .cecoe-submit .btn { background: #fff; color: var(--navy); width: 100%; }
.footer-news .cecoe-subscribe .btn:hover { background: #e3f2e8; }
.footer-bottom { background: var(--green-2); padding: 18px 0; font-size: 13px; text-align: center; color: #cfe6d7; }

/* ---------- Flash banners from the mailing list ---------- */
.cecoe-flash { font-weight: 600; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px;
  border-radius: 50%; border: 0; background: var(--green); color: #fff;
  font-size: 18px; cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .2s ease; z-index: 60;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--navy); }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
  .reveal.in-view { opacity: 1; transform: none; }
}

/* ---------- Accessibility ---------- */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px); position: absolute !important;
  height: 1px; width: 1px; overflow: hidden; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; width: auto; height: auto; position: fixed !important; top: 10px; left: 10px;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 100;
  text-decoration: none; font-weight: 600;
}
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 2px;
}
.alignwide { max-width: 1180px; }
.alignfull { width: 100%; }

/* ---------- Print ---------- */
@media print {
  .site-header, .search-bar, .back-to-top, .subscribe-section, .footer-news, .cecoe-flash,
  .section-meta, .hero .cta-row, .hero-panel, .cecoe-portal-nav, .cecoe-form-actions { display: none !important; }
  body { font-size: 12pt; }
  .hero-grid { display: block; min-height: 0; }
  .hero-copy { padding: 0 0 20px; }
  .section, .dl-section { padding: 20px 0; background: none !important; }
  .dl-card, .stat-tile, .submit-card, .table-scroll { break-inside: avoid; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
