/* Constant Vigil — design system from design.png */
:root {
  --cv-teal: #08565e;
  --cv-teal-deep: #06464d;
  --cv-accent: #1e8d90;
  --cv-accent-soft: #2aa3a6;
  --cv-text: #111111;
  --cv-muted: #5a5a5a;
  --cv-line: #d9d9d9;
  --cv-bg: #ffffff;
  --cv-max: 1120px;
  --cv-radius: 2px;
  --header-background-color: #ffffff;
  --menu-text-color: #ffffff;
  --menu-text-hover-color: #ffffff;
  --footer-background-color: var(--cv-teal);
  --site-width: 1120px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--cv-text);
  background: var(--cv-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cv-teal); text-decoration: none; }
a:hover { color: var(--cv-accent); }

img { max-width: 100%; height: auto; display: block; }

#site-header {
  background: #fff !important;
  color: var(--cv-teal);
  white-space: normal !important;
  font-family: 'Montserrat', sans-serif !important;
  display: block !important;
  width: 100% !important;
}
#site-header .cv-header {
  display: block;
  width: 100%;
}

.cv-header { width: 100%; }

.cv-branding {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 16px 14px;
  background: #fff;
  width: 100%;
  text-align: center;
}
.cv-logo-link {
  display: inline-flex;
  justify-content: center;
  margin: 0 auto;
}

/* Logo ~1/3 smaller than mockup (~150px vs ~224px displayed height) */
.cv-branding .cv-logo,
.cv-branding .site-logo,
.cv-branding img.site-logo,
#site-header .cv-logo,
#site-header img.site-logo {
  width: 184px !important;
  max-width: min(184px, 46vw) !important;
  height: auto !important;
  max-height: none !important;
  opacity: 1 !important;
  filter: none !important;
}

.cv-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--cv-teal);
  text-align: center;
  letter-spacing: 0.04em;
}
.cv-logo-text strong { font-size: 1.35rem; font-weight: 800; }
.cv-logo-text span { font-size: 0.78rem; font-weight: 600; }
.cv-logo-text small { font-size: 0.7rem; margin-top: 2px; }

.cv-nav-bar {
  background: var(--cv-teal);
  color: #fff;
  position: relative;
}

.cv-nav-inner {
  max-width: var(--cv-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  min-height: 48px;
}

.cv-desktop-nav { flex: 1; min-width: 0; }

.cv-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.cv-menu > li > a {
  display: block;
  color: #fff !important;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 14px 9px;
  white-space: nowrap;
}

.cv-menu > li.current-menu-item > a,
.cv-menu > li.current-menu-item > a:hover,
.cv-menu > li > a:hover,
.cv-menu > li > a:focus-visible {
  background: var(--cv-accent);
  color: #fff !important;
}

.cv-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cv-search-toggle,
.cv-mobile-toggle,
.cv-panel-close {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 1.05rem;
  padding: 10px;
  line-height: 1;
}

.cv-mobile-toggle { display: none; }

.cv-search-panel {
  max-width: var(--cv-max);
  margin: 0 auto;
  padding: 10px 16px 14px;
  background: var(--cv-teal-deep);
}

.cv-search-panel .search-form,
.cv-mobile-panel .search-form {
  display: flex;
  gap: 8px;
}

.cv-search-panel input[type="search"],
.cv-mobile-panel input[type="search"] {
  flex: 1;
  border: 0;
  padding: 10px 12px;
  font: inherit;
}

.cv-search-panel button,
.cv-mobile-panel button[type="submit"] {
  background: var(--cv-accent);
  color: #fff;
  border: 0;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.cv-mobile-panel {
  display: none;
  position: fixed;
  inset: 0 auto 0 0;
  width: min(320px, 88vw);
  background: var(--cv-teal-deep);
  color: #fff;
  z-index: 10000;
  padding: 56px 18px 24px;
  box-shadow: 8px 0 30px rgba(0,0,0,.25);
  overflow-y: auto;
}

.cv-mobile-panel.is-open,
.cv-mobile-panel[aria-hidden="false"] {
  display: block;
}

.cv-menu-mobile {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.cv-menu-mobile a {
  display: block;
  color: #fff !important;
  text-transform: uppercase;
  font-weight: 700;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.site-container,
.cv-page-wrap {
  max-width: var(--cv-max);
  margin: 0 auto;
  padding: 24px 16px 48px;
  box-sizing: border-box;
}

.homepage.site-container { padding-top: 28px; }

.cv-section-head {
  border-bottom: 2px solid var(--cv-teal);
  margin: 0 0 18px;
  padding-bottom: 8px;
}

.cv-section-head h2,
.cv-section-head h2 a {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #111;
}

.cv-featured-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
  margin-bottom: 36px;
  align-items: stretch;
}

.cv-featured-main {
  display: flex;
  flex-direction: column;
  background: #0b1c1e;
  color: #fff;
  overflow: hidden;
  min-height: 0;
}

.cv-featured-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cv-teal);
}

.cv-featured-media img,
.cv-card-media img,
.cv-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cv-featured-body { padding: 18px 18px 22px; }

.cv-featured-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 800;
}

.cv-featured-title a { color: #fff; }
.cv-featured-title a:hover { color: #c9f3f4; }

.cv-featured-excerpt {
  margin: 0 0 16px;
  color: #c7d4d5;
  font-size: 0.92rem;
}

.cv-btn {
  display: inline-block;
  background: var(--cv-teal);
  color: #fff !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  border: 0;
}

.cv-btn:hover { background: var(--cv-accent); color: #fff !important; }

.cv-featured-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cv-card {
  position: relative;
  background: #102628;
  color: #fff;
  overflow: hidden;
  min-height: 170px;
  display: flex;
  flex-direction: column;
}

.cv-card-media {
  position: absolute;
  inset: 0;
  opacity: 0.55;
}

.cv-card-body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
}

.cv-card-title {
  margin: 0 0 8px;
  font-size: 0.92rem;
  line-height: 1.3;
  font-weight: 700;
}

.cv-card-title a { color: #fff; }

.cv-more {
  color: var(--cv-accent-soft) !important;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cv-home-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(240px, 0.85fr);
  gap: 32px;
  align-items: start;
}

.cv-cat-section { margin-bottom: 28px; }

.cv-list-item {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--cv-line);
}

.cv-list-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cv-teal);
}

.cv-list-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 800;
}

.cv-list-title a { color: #111; }
.cv-list-title a:hover { color: var(--cv-teal); }

.cv-list-url {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--cv-teal);
  font-size: 0.82rem;
  font-weight: 600;
}

.cv-list-excerpt {
  margin: 0 0 10px;
  color: var(--cv-muted);
  font-size: 0.92rem;
}

.cv-home-sidebar .cv-widget,
.site-sidebar .widget,
.cv-home-sidebar .widget {
  margin-bottom: 22px;
  background: #fff;
}

.cv-widget-title,
.site-sidebar .widget-title,
.cv-home-sidebar .widget-title {
  margin: 0 0 0;
  background: var(--cv-teal);
  color: #fff !important;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 10px 12px;
}

.cv-widget-list,
.site-sidebar ul,
.cv-home-sidebar .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--cv-line);
  border-top: 0;
}

.cv-widget-list li,
.site-sidebar .widget ul li,
.cv-home-sidebar .widget ul li {
  margin: 0;
  border-bottom: 1px solid var(--cv-line);
  position: relative;
}

.cv-widget-list li:last-child,
.site-sidebar .widget ul li:last-child {
  border-bottom: 0;
}

.cv-widget-list a,
.site-sidebar .widget ul a,
.cv-home-sidebar .widget ul a {
  display: block;
  padding: 11px 12px 11px 28px;
  color: #111;
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
}

.cv-widget-list a::before,
.site-sidebar .widget ul a::before,
.cv-home-sidebar .widget ul a::before {
  content: '▸';
  position: absolute;
  left: 10px;
  color: var(--cv-accent);
  font-size: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

.cv-widget-list a span { color: var(--cv-muted); font-weight: 500; }

.cv-widget-featured {
  border: 1px solid var(--cv-line);
  padding-bottom: 8px;
}

.cv-pick {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--cv-line);
}

.cv-pick h4 {
  margin: 0 0 6px;
  font-size: 0.88rem;
  line-height: 1.3;
}

.cv-pick-thumb {
  display: block;
  width: 72px;
  height: 72px;
  overflow: hidden;
  background: var(--cv-teal);
}

.cv-pick-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cv-page-header { margin-bottom: 22px; }
.cv-page-title {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--cv-teal);
  border-bottom: 2px solid var(--cv-teal);
  padding-bottom: 10px;
}
.cv-page-desc { color: var(--cv-muted); }

.cv-static-page .cv-entry,
.cv-entry {
  font-size: 1rem;
  color: #222;
}
.cv-entry p { margin: 0 0 1em; }
.cv-entry h2, .cv-entry h3 { color: var(--cv-teal); }

/* Single post polish */
.aurora-lite-single-post .post-featured-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin-bottom: 18px;
  background: var(--cv-teal);
}
.aurora-lite-single-post .entry-title {
  color: #111;
  font-weight: 800;
}
.aurora-lite-single-post .post-categories a {
  background: var(--cv-teal);
  color: #fff !important;
  padding: 4px 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
}
.aurora-lite-single-post .post-container {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(240px, 0.85fr);
  gap: 32px;
}

#site-footer {
  background: var(--cv-teal) !important;
  color: #fff !important;
  margin-top: 40px;
  font-family: 'Montserrat', sans-serif !important;
}

.cv-footer { width: 100%; }

.cv-footer-top {
  max-width: var(--cv-max);
  margin: 0 auto;
  padding: 36px 16px 28px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}

.cv-footer-logo {
  max-height: 120px !important;
  max-width: 170px !important;
  width: auto !important;
  height: auto !important;
  filter: brightness(0) invert(1);
}

.cv-footer-menus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cv-footer .footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cv-footer .footer-menu a {
  color: #fff !important;
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.cv-footer .footer-menu a:hover { text-decoration: underline; }

.cv-footer-bottom {
  background: var(--cv-teal-deep);
  text-align: center;
  padding: 14px 16px;
}

.cv-copyright {
  margin: 0;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Hide leftover aurora chrome that conflicts */
.header-buttons,
.aurora-lite-header-buttons,
.main-header.aurora-lite-desktop,
.mobile-menu.aurora-lite-mobile { display: none !important; }

/* Pagination */
.pagination,
.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.pagination a,
.pagination span,
.nav-links a,
.nav-links span {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--cv-line);
  color: var(--cv-teal);
  font-weight: 700;
}
.pagination .current,
.nav-links .current {
  background: var(--cv-teal);
  color: #fff;
  border-color: var(--cv-teal);
}

/* Search results / author reuse archive list */
.cv-archive-list .cv-list-item:last-child { border-bottom: 0; }

/* Forms */
.wpcf7 input,
.wpcf7 textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--cv-line);
  font: inherit;
}
.wpcf7 input[type="submit"] {
  background: var(--cv-teal);
  color: #fff;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  width: auto;
  padding: 12px 20px;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .cv-logo-link { animation: cv-fade-in 0.7s ease both; }
  .cv-nav-bar { animation: cv-slide-down 0.45s ease both; }
  .cv-featured-grid { animation: cv-fade-up 0.55s ease both; animation-delay: 0.08s; }
  .cv-list-item,
  .cv-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .cv-list-item:hover,
  .cv-card:hover {
    transform: translateY(-2px);
  }
  .cv-btn,
  .cv-menu > li > a {
    transition: background-color 0.2s ease, color 0.2s ease;
  }
}

@keyframes cv-fade-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes cv-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cv-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 960px) {
  .cv-featured-grid { grid-template-columns: 1fr; }
  .cv-home-columns,
  .aurora-lite-single-post .post-container {
    grid-template-columns: 1fr;
  }
  .cv-footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cv-footer-brand { display: flex; justify-content: center; }
  .cv-footer-menus { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 780px) {
  .cv-desktop-nav { display: none; }
  .cv-mobile-toggle { display: inline-flex; }
  .cv-logo,
  .site-logo.cv-logo {
    max-height: 110px !important;
    max-width: min(180px, 50vw) !important;
  }
  .cv-list-item {
    grid-template-columns: 1fr;
  }
  .cv-featured-side { grid-template-columns: 1fr 1fr; }
  .cv-branding { padding: 14px 12px 10px; }
}

@media (max-width: 520px) {
  .cv-featured-side { grid-template-columns: 1fr; }
  .cv-menu > li > a { padding: 12px 10px; font-size: 0.72rem; }
  .site-container, .cv-page-wrap { padding: 18px 12px 36px; }
}


/* Hide search UI completely */
.cv-search-toggle,
.cv-search-panel,
.search-bar,
.search-form,
.search-form-wrapper,
.widget_search,
#cv-search-panel {
  display: none !important;
}

/* WP widgets → same look as homepage cv-widgets */
.cv-home-sidebar .aurora-lite-widget,
.site-sidebar .aurora-lite-widget,
.cv-home-sidebar .widget,
.site-sidebar .widget {
  margin-bottom: 22px;
  background: #fff;
}
.cv-home-sidebar .aurora-lite-widget-title,
.site-sidebar .aurora-lite-widget-title,
.cv-home-sidebar .widget-title,
.site-sidebar .widget-title {
  margin: 0;
  background: var(--cv-teal);
  color: #fff !important;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 10px 12px;
}
.cv-widget-list a span,
.cv-widget-list .count {
  display: inline !important;
  color: var(--cv-muted);
  font-weight: 500;
}

/* Single post: hide leftover share/author if any */
.aurora-lite-single-post .tags-and-share,
.aurora-lite-single-post .share-icons,
.aurora-lite-single-post .post-author {
  display: none !important;
}

/* Article lists & tables */
.aurora-lite-single-post .entry-content ul,
.aurora-lite-single-post .post-content ul,
.single .entry-content ul {
  margin: 1.1em 0 1.25em 1.25em;
  padding: 0;
}
.aurora-lite-single-post .entry-content li,
.aurora-lite-single-post .post-content li,
.single .entry-content li {
  margin: 0.35em 0;
}
.aurora-lite-single-post .entry-content table,
.aurora-lite-single-post .post-content table,
.single .entry-content table,
#main-content .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25em 0 1.5em;
  font-size: 0.95em;
  overflow-x: auto;
  display: block;
}
.aurora-lite-single-post .entry-content thead th,
.single .entry-content thead th,
#main-content .entry-content thead th {
  background: var(--cv-teal, #08565e);
  color: #fff;
  text-align: left;
  font-weight: 700;
  padding: 10px 12px;
}
.aurora-lite-single-post .entry-content td,
.single .entry-content td,
#main-content .entry-content td {
  padding: 9px 12px;
  border-bottom: 1px solid #d7e4e5;
  vertical-align: top;
}
.aurora-lite-single-post .entry-content tbody tr:nth-child(even) td,
.single .entry-content tbody tr:nth-child(even) td {
  background: #f4f9f9;
}

/* Hide author avatars in post meta */
.post-meta .author-block img,
.post-meta .author-image,
.post-meta img.avatar,
.author-block img.avatar {
  display: none !important;
}

/* Static pages + contact form */
.cv-static-page .cv-entry h2 {
  margin-top: 1.6em;
  margin-bottom: 0.55em;
  font-size: 1.25rem;
  color: var(--cv-teal, #08565e);
}
.cv-static-page .cv-entry table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0 1.5em;
  font-size: 0.95em;
}
.cv-static-page .cv-entry thead th {
  background: var(--cv-teal, #08565e);
  color: #fff;
  text-align: left;
  padding: 10px 12px;
}
.cv-static-page .cv-entry td {
  padding: 9px 12px;
  border-bottom: 1px solid #d7e4e5;
}
.cv-static-page .wpcf7 label {
  display: block;
  margin: 0 0 1rem;
  font-weight: 600;
  color: #1a2e32;
}
.cv-static-page .wpcf7 input[type="text"],
.cv-static-page .wpcf7 input[type="email"],
.cv-static-page .wpcf7 textarea,
.cv-static-page .wpcf7 input.wpcf7-quiz {
  width: 100%;
  max-width: 560px;
  display: block;
  margin-top: 0.4rem;
  padding: 10px 12px;
  border: 1px solid #b7cbce;
  border-radius: 4px;
  font: inherit;
  background: #fff;
}
.cv-static-page .wpcf7 textarea {
  min-height: 140px;
}
.cv-static-page .wpcf7 input.wpcf7-quiz {
  max-width: 220px;
}
.cv-static-page .wpcf7 input[type="submit"] {
  background: var(--cv-teal, #08565e);
  color: #fff;
  border: 0;
  padding: 11px 22px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
}
.cv-static-page .wpcf7 input[type="submit"]:hover {
  background: var(--cv-accent, #1e8d90);
}
.cv-contact-note {
  margin-top: 1rem;
  color: var(--cv-muted, #5a7074);
}
