/* =========================================================
   Axis Reporters — Design System & Homepage
   Unique portal skin (not TrustPoint / Femi)
   Mobile-first
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600;8..60,700&display=swap');

:root {
  --cp-ink: #0B1F33;
  --cp-ink-soft: #1A3348;
  --cp-paper: #F7F5F1;
  --cp-surface: #FFFFFF;
  --cp-accent: #C45C26;
  --cp-accent-deep: #9E4518;
  --cp-line: #D9D3C9;
  --cp-muted: #5B6570;
  --cp-muted-soft: #8A9199;
  --cp-breaking: #B42318;
  --cp-radius: 2px;
  --cp-max: 1180px;
  --cp-font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --cp-font-body: "DM Sans", system-ui, sans-serif;
  --primary-color: var(--cp-ink);
  --secondary-color: var(--cp-accent);
}

/* ----- Base overrides for Axis public pages ----- */
body.public-body.cp-body {
  margin: 0;
  background: var(--cp-paper);
  color: var(--cp-ink);
  font-family: var(--cp-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.cp-portal {
  padding: 0 0 48px;
}

.cp-portal a {
  color: inherit;
  text-decoration: none;
}

.cp-portal a:hover {
  color: var(--cp-accent);
}

.cp-portal img {
  max-width: 100%;
  display: block;
}

.cp-container {
  width: min(100% - 2rem, var(--cp-max));
  margin-inline: auto;
}

.cp-kicker {
  display: inline-block;
  font-family: var(--cp-font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cp-accent);
  margin-bottom: 0.55rem;
}

.cp-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--cp-line);
}

.cp-section-head h2 {
  margin: 0;
  font-family: var(--cp-font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cp-ink);
}

.cp-view-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cp-muted);
  white-space: nowrap;
}

.cp-view-all:hover {
  color: var(--cp-accent);
}

.cp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--cp-muted-soft);
}

.cp-empty {
  padding: 1.5rem;
  border: 1px dashed var(--cp-line);
  color: var(--cp-muted);
  background: var(--cp-surface);
}

.cp-ad-slot {
  margin: 1.5rem 0;
}

.cp-ad-slot .ad-box,
.cp-ad-slot > * {
  border: 1px solid var(--cp-line);
  background: var(--cp-surface);
}

/* =========================================================
   FEATURED — full-bleed plane (first composition)
   ========================================================= */
.cp-featured {
  position: relative;
  background: var(--cp-ink);
  color: #fff;
  min-height: clamp(420px, 68vh, 640px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.cp-featured__media {
  position: absolute;
  inset: 0;
}

.cp-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1);
  transition: transform 0.7s ease;
}

.cp-featured:hover .cp-featured__media img {
  transform: scale(1.03);
}

.cp-featured__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(11, 31, 51, 0.18) 0%,
      rgba(11, 31, 51, 0.28) 28%,
      rgba(11, 31, 51, 0.62) 58%,
      rgba(11, 31, 51, 0.88) 78%,
      rgba(11, 31, 51, 0.97) 100%
    ),
    linear-gradient(
      95deg,
      rgba(11, 31, 51, 0.72) 0%,
      rgba(11, 31, 51, 0.42) 38%,
      rgba(11, 31, 51, 0.12) 68%,
      transparent 100%
    );
}

.cp-featured__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--cp-max));
  margin: 0 auto;
  padding: clamp(4.5rem, 12vh, 7.5rem) 0 clamp(1.75rem, 4vh, 3rem);
  animation: cpFadeUp 0.7s ease both;
}

.cp-featured__content .cp-kicker {
  color: #f0b090;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.cp-featured__content h1 {
  margin: 0 0 0.85rem;
  max-width: min(18ch, 100%);
  font-family: var(--cp-font-display);
  font-size: clamp(1.85rem, 5.2vw, 3.05rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.cp-featured__content h1 a {
  color: #fff;
}

.cp-featured__content h1 a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cp-featured__dek {
  margin: 0;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}

.cp-featured__meta {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.78);
  align-items: center;
  gap: 0.35rem 0;
}

.cp-featured__meta span + span::before {
  content: "·";
  display: inline-block;
  margin: 0 0.7rem;
  opacity: 0.55;
  font-weight: 700;
}

.cp-featured__by {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.cp-featured--empty {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 2rem;
  text-align: center;
}

@keyframes cpFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   SECONDARY FEATURE STRIP
   ========================================================= */
.cp-secondary {
  background: var(--cp-surface);
  border-bottom: 1px solid var(--cp-line);
}

.cp-secondary__grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}

.cp-secondary__item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--cp-line);
}

.cp-secondary__item:last-child {
  border-bottom: none;
}

.cp-secondary__item img {
  width: 110px;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--cp-radius);
}

.cp-secondary__item h3 {
  margin: 0;
  font-family: var(--cp-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

/* =========================================================
   LATEST + TRENDING SPLIT
   ========================================================= */
.cp-split {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  grid-template-columns: 1fr;
}

.cp-latest__feature {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--cp-line);
}

.cp-latest__feature img {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--cp-radius);
  transition: transform 0.35s ease;
}

.cp-latest__feature a:hover img {
  transform: scale(1.015);
}

.cp-latest__feature h3 {
  margin: 0.35rem 0 0.4rem;
  font-family: var(--cp-font-display);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 600;
  line-height: 1.25;
}

.cp-latest__feature p {
  margin: 0;
  color: var(--cp-muted);
  font-size: 0.95rem;
}

.cp-latest__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cp-latest__list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--cp-line);
}

.cp-latest__list li:last-child {
  border-bottom: none;
}

.cp-latest__list h4 {
  margin: 0.2rem 0 0;
  font-family: var(--cp-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Trending ranked list */
.cp-trending {
  background: var(--cp-surface);
  border: 1px solid var(--cp-line);
  padding: 1.15rem 1.15rem 0.6rem;
}

.cp-trending .cp-section-head {
  border-bottom-color: var(--cp-ink);
}

.cp-trend-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cp-trend-list li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.65rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--cp-line);
}

.cp-trend-list li:last-child {
  border-bottom: none;
}

.cp-trend-no {
  font-family: var(--cp-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cp-accent);
  line-height: 1.1;
}

.cp-trend-list h4 {
  margin: 0;
  font-family: var(--cp-font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

/* =========================================================
   CATEGORY BANDS
   ========================================================= */
.cp-category {
  margin-top: 2.5rem;
}

.cp-category__layout {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.cp-category__feature img {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--cp-radius);
  margin-bottom: 0.85rem;
}

.cp-category__feature h3 {
  margin: 0.25rem 0;
  font-family: var(--cp-font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 600;
  line-height: 1.25;
}

.cp-category__side {
  display: grid;
  gap: 0;
}

.cp-category__side-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--cp-line);
}

.cp-category__side-item img {
  width: 88px;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--cp-radius);
}

.cp-category__side-item h4 {
  margin: 0.15rem 0 0;
  font-family: var(--cp-font-display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

/* =========================================================
   Desktop / tablet
   ========================================================= */
@media (min-width: 720px) {
  .cp-secondary__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cp-secondary__item {
    grid-template-columns: 1fr;
    padding: 1.25rem 1.1rem;
    border-bottom: none;
    border-right: 1px solid var(--cp-line);
  }

  .cp-secondary__item:last-child {
    border-right: none;
  }

  .cp-secondary__item img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center top;
  }

  .cp-split {
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.85fr);
    gap: 2.25rem;
    align-items: start;
  }

  .cp-category__layout {
    grid-template-columns: 1.35fr 1fr;
    gap: 1.75rem;
    align-items: start;
  }
}

@media (min-width: 980px) {
  .cp-featured__content h1 {
    max-width: min(20ch, 100%);
  }

  .cp-secondary__item h3 {
    font-size: 1.12rem;
  }
}

@media (max-width: 720px) {
  .cp-featured {
    min-height: clamp(460px, 78vh, 620px);
    align-items: flex-end;
  }

  .cp-featured__media img {
    object-position: center top;
  }

  .cp-featured__shade {
    background:
      linear-gradient(
        180deg,
        rgba(11, 31, 51, 0.22) 0%,
        rgba(11, 31, 51, 0.38) 30%,
        rgba(11, 31, 51, 0.72) 55%,
        rgba(11, 31, 51, 0.92) 78%,
        rgba(11, 31, 51, 0.98) 100%
      ),
      linear-gradient(
        180deg,
        transparent 0%,
        rgba(11, 31, 51, 0.35) 100%
      );
  }

  .cp-featured__content {
    padding: 5.5rem 0 1.6rem;
  }

  .cp-featured__content h1 {
    max-width: 14ch;
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }

  .cp-featured__dek {
    max-width: 28rem;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cp-featured__meta {
    gap: 0.55rem 0.65rem;
    font-size: 0.76rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cp-featured__content,
  .cp-featured__media img,
  .cp-latest__feature img,
  .cp-breaking__track {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .cp-breaking__track {
    flex-wrap: wrap;
    width: auto;
    max-width: 100%;
    gap: 0.5rem 1rem;
  }

  .cp-breaking__track-wrap {
    mask-image: none;
    -webkit-mask-image: none;
    overflow: visible;
  }
}

/* =========================================================
   HEADER / NAV / BREAKING
   ========================================================= */
.cp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.cp-header {
  background: var(--cp-surface);
  border-bottom: 1px solid var(--cp-line);
}

.cp-util {
  background: var(--cp-ink);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
}

.cp-util__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
}

.cp-util__tag {
  color: rgba(255, 255, 255, 0.65);
  display: none;
}

.cp-brandbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 0.9rem 0;
}

.cp-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.cp-brand__logo {
  height: 42px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.cp-brand__name {
  display: block;
  font-family: var(--cp-font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--cp-ink);
  line-height: 1.1;
}

.cp-brand__tagline {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--cp-muted);
}

.cp-search {
  position: relative;
  display: flex;
  gap: 0.4rem;
  flex: 1 1 180px;
  max-width: 320px;
}

.cp-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--cp-line);
  background: var(--cp-paper);
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  border-radius: var(--cp-radius);
}

.cp-search button {
  border: none;
  background: var(--cp-ink);
  color: #fff;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--cp-radius);
}

.cp-search__results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--cp-line);
  box-shadow: 0 8px 24px rgba(11, 31, 51, 0.12);
  z-index: 40;
  max-height: 280px;
  overflow: auto;
}

.cp-nav-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--cp-line);
  background: var(--cp-paper);
  color: var(--cp-ink);
  padding: 0.5rem 0.8rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.cp-nav {
  border-top: 1px solid var(--cp-line);
  display: none;
}

.cp-nav.is-open {
  display: block;
}

.cp-nav__list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0.85rem;
  display: grid;
  gap: 0.15rem;
}

.cp-nav__list > li > a,
.cp-nav__parent {
  display: block;
  padding: 0.65rem 0;
  color: var(--cp-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.cp-nav__list > li > a:hover,
.cp-nav__parent:hover {
  color: var(--cp-accent);
}

.cp-nav__submenu {
  list-style: none;
  margin: 0 0 0.4rem;
  padding: 0 0 0 0.75rem;
  border-left: 2px solid var(--cp-line);
}

.cp-nav__submenu a {
  display: block;
  padding: 0.4rem 0;
  color: var(--cp-muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.cp-nav__submenu a:hover {
  color: var(--cp-accent);
}

.cp-breaking {
  background: var(--cp-paper);
  border-top: 1px solid var(--cp-line);
}

.cp-breaking__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  min-height: 2.4rem;
}

.cp-breaking__label {
  flex: 0 0 auto;
  background: var(--cp-breaking);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
}

.cp-breaking__track-wrap {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 1.75rem), transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 1.75rem), transparent);
}

.cp-breaking__track {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  width: max-content;
  transform: translate3d(0, 0, 0);
  animation: cpTicker 32s linear infinite;
  will-change: transform;
}

.cp-breaking__track:hover {
  animation-play-state: paused;
}

.cp-breaking__track a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cp-ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}

.cp-breaking__track a:hover {
  color: var(--cp-accent);
}

.cp-breaking__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cp-breaking);
  flex: 0 0 auto;
}

.cp-breaking__empty {
  font-size: 0.85rem;
  color: var(--cp-muted);
}

@keyframes cpTicker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@media (min-width: 860px) {
  .cp-util__tag {
    display: inline;
  }

  .cp-nav-toggle {
    display: none;
  }

  .cp-nav {
    display: block;
  }

  .cp-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 1.35rem;
    padding: 0.35rem 0 0.7rem;
  }

  .cp-nav__dropdown {
    position: relative;
  }

  .cp-nav__submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    margin: 0;
    padding: 0.45rem 0;
    background: #fff;
    border: 1px solid var(--cp-line);
    box-shadow: 0 10px 28px rgba(11, 31, 51, 0.1);
    z-index: 50;
  }

  .cp-nav__dropdown:hover .cp-nav__submenu,
  .cp-nav__dropdown:focus-within .cp-nav__submenu {
    display: block;
  }

  .cp-nav__submenu a {
    padding: 0.5rem 0.9rem;
  }

  .cp-brand__logo {
    height: 48px;
    max-width: 140px;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
.cp-footer {
  background: var(--cp-ink);
  color: rgba(255, 255, 255, 0.86);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.cp-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.cp-footer a:hover {
  color: #f0b090;
}

.cp-footer__grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

.cp-footer h3,
.cp-footer h4 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-family: var(--cp-font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cp-footer__brand h3 {
  font-family: var(--cp-font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  text-transform: none;
}

.cp-footer__tagline {
  color: #f0b090;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.cp-footer__about {
  margin: 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  max-width: 28rem;
}

.cp-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cp-footer__links li {
  margin-bottom: 0.55rem;
}

.cp-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cp-footer__socials a {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}

.cp-footer__contact {
  margin-top: 1.25rem;
}

.cp-footer__contact p {
  margin: 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

.cp-footer__newsletter {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 1rem;
}

.cp-footer__newsletter h4 {
  margin-bottom: 0.35rem;
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}

.cp-footer__newsletter p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.cp-footer__newsletter form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cp-footer__newsletter input {
  border: none;
  padding: 0.75rem 0.85rem;
  font: inherit;
}

.cp-footer__newsletter button {
  border: none;
  background: var(--cp-accent);
  color: #fff;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cp-footer__bottom {
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (min-width: 800px) {
  .cp-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
  }

  .cp-footer__newsletter {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
  }

  .cp-footer__newsletter form {
    flex-direction: row;
  }

  .cp-footer__newsletter input {
    flex: 1;
  }
}

/* =========================================================
   ARTICLE PAGE HEADER / LAYOUT
   ========================================================= */
.cp-article-page {
  padding-bottom: 2.5rem;
}

.cp-article-page.site-main {
  padding-top: 0;
}

.cp-article-wrap {
  padding: 1.5rem 0 0;
}

.cp-article-back {
  display: inline-block;
  margin-bottom: 1.1rem;
  color: var(--cp-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.cp-article-back:hover {
  color: var(--cp-accent);
}

.cp-article-layout {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

.cp-article {
  background: var(--cp-surface);
  border: 1px solid var(--cp-line);
  padding: 0;
  overflow: hidden;
}

.cp-article-hero {
  background: var(--cp-ink);
  color: #fff;
  padding: clamp(1.35rem, 4vw, 2rem) 1.15rem clamp(1.25rem, 3vw, 1.65rem);
}

.cp-article-hero .cp-kicker {
  color: #f0b090;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.cp-article-hero .cp-article-kicker:hover {
  color: #fff;
}

.cp-article-header {
  margin: 0;
}

.cp-article-kicker {
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.cp-article-title {
  margin: 0 0 0.75rem;
  font-family: var(--cp-font-display);
  font-size: clamp(1.7rem, 4.5vw, 2.45rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.cp-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.cp-article-meta span + span::before {
  content: "·";
  display: inline-block;
  margin: 0 0.7rem;
  opacity: 0.55;
  font-weight: 700;
}

.cp-article__content {
  padding: 1.25rem 1.15rem 1.5rem;
}

.cp-article-featured {
  margin: 0 0 1.35rem;
  background: var(--cp-paper);
  border: 1px solid var(--cp-line);
  border-left: none;
  border-right: none;
  text-align: center;
}

.cp-article-featured img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  margin: 0 auto;
}

.cp-article-body {
  color: var(--cp-ink-soft);
  font-size: clamp(1rem, 2.5vw, 1.08rem);
  line-height: 1.85;
  max-width: 42rem;
}

.cp-article-body p {
  margin: 0 0 1.2em;
}

.cp-article-body p:last-child {
  margin-bottom: 0;
}

.cp-article-body img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 1.25em auto;
}

.cp-article-body h2,
.cp-article-body h3,
.cp-article-body h4 {
  margin: 1.6em 0 0.65em;
  font-family: var(--cp-font-display);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--cp-ink);
}

.cp-article-body h2 {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
}

.cp-article-body h3 {
  font-size: clamp(1.2rem, 2.6vw, 1.4rem);
}

.cp-article-body h4 {
  font-size: 1.1rem;
}

.cp-article-body a {
  color: var(--cp-accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cp-article-body a:hover {
  color: var(--cp-accent);
}

.cp-article-body ul,
.cp-article-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.35rem;
}

.cp-article-body li {
  margin: 0.35em 0;
}

.cp-article-body li::marker {
  color: var(--cp-accent);
}

.cp-article-body blockquote {
  margin: 1.35em 0;
  padding: 0.35em 0 0.35em 1.1rem;
  border-left: 3px solid var(--cp-accent);
  color: var(--cp-muted);
  font-family: var(--cp-font-display);
  font-size: 1.08em;
  font-style: italic;
  line-height: 1.7;
}

.cp-article-body blockquote p:last-child {
  margin-bottom: 0;
}

.cp-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.35em 0;
  font-size: 0.95em;
}

.cp-article-body th,
.cp-article-body td {
  border: 1px solid var(--cp-line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.cp-article-body th {
  background: var(--cp-paper);
  color: var(--cp-ink);
  font-family: var(--cp-font-body);
  font-weight: 600;
}

.cp-article-body strong,
.cp-article-body b {
  color: var(--cp-ink);
  font-weight: 700;
}

@media (max-width: 720px) {
  .cp-article-body {
    font-size: 1.02rem;
    line-height: 1.8;
    max-width: none;
  }

  .cp-article-body p {
    margin-bottom: 1.1em;
  }

  .cp-article-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.cp-article-aside .cp-related {
  background: var(--cp-surface);
  border: 1px solid var(--cp-line);
  padding: 1rem 1rem 0.5rem;
}

.cp-article-aside .cp-related h3 {
  margin: 0 0 1rem;
  font-family: var(--cp-font-display);
  font-size: 1.15rem;
  color: var(--cp-ink);
}

.cp-related-card {
  margin-bottom: 1.25rem;
}

.cp-related-card:last-child {
  margin-bottom: 0.5rem;
}

.cp-related-card__thumb {
  display: block;
  width: 100%;
  height: 7.5rem;
  margin-bottom: 0.65rem;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cp-paper, #F7F5F1);
}

.cp-related-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.cp-related-card__title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 600;
}

.cp-related-card__title a {
  color: var(--cp-ink);
  text-decoration: none;
}

.cp-related-card__title a:hover {
  color: var(--cp-accent);
}

.cp-related-card__date {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--cp-muted-soft);
}

.cp-related__empty {
  color: var(--cp-muted);
  margin: 0 0 0.5rem;
}

/* Article page — summary, actions, share, comments */
.cp-article-summary {
  margin: 0 0 1.25rem;
  font-weight: 600;
  line-height: 1.8;
  color: var(--cp-ink-soft);
}

.cp-article-summary p {
  margin: 0 0 0.75em;
}

.cp-article-summary p:last-child {
  margin-bottom: 0;
}

.cp-article-section {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--cp-line);
}

.cp-article-section__title {
  margin: 0 0 0.85rem;
  font-family: var(--cp-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cp-ink);
}

.cp-article-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cp-line);
  background: var(--cp-paper);
  color: var(--cp-ink);
  padding: 0.62rem 1rem;
  border-radius: var(--cp-radius);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}

.cp-btn:hover {
  border-color: var(--cp-ink);
}

.cp-btn--primary {
  border-color: var(--cp-ink);
  background: var(--cp-ink);
  color: #fff;
}

.cp-btn--primary:hover {
  background: var(--cp-ink-soft);
  border-color: var(--cp-ink-soft);
  color: #fff;
}

.cp-btn--liked,
.cp-btn.is-liked {
  border-color: var(--cp-ink);
  background: var(--cp-ink);
  color: #fff;
}

.cp-share-links {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.cp-share-links a {
  text-decoration: none;
  color: #fff;
  padding: 0.62rem 0.9rem;
  border-radius: var(--cp-radius);
  font-size: 0.88rem;
  font-weight: 600;
}

.cp-share-link--wa {
  background: #25D366;
}

.cp-share-link--fb {
  background: #1877F2;
}

.cp-share-link--li {
  background: #0A66C2;
}

.cp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.cp-form-field {
  margin-bottom: 0.9rem;
}

.cp-form-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  color: var(--cp-ink);
  font-size: 0.9rem;
}

.cp-form-field input,
.cp-form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius);
  background: var(--cp-paper);
  color: var(--cp-ink);
  font: inherit;
  font-size: 0.95rem;
}

.cp-form-field input:focus,
.cp-form-field textarea:focus {
  outline: 2px solid var(--cp-accent);
  outline-offset: 1px;
}

.cp-comment-message {
  display: none;
  padding: 0.75rem 0.9rem;
  border-radius: var(--cp-radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.cp-comment-message.is-success {
  display: block;
  background: rgba(196, 92, 38, 0.1);
  color: var(--cp-accent-deep);
  border: 1px solid rgba(196, 92, 38, 0.25);
}

.cp-comment-message.is-error {
  display: block;
  background: rgba(180, 35, 24, 0.08);
  color: var(--cp-breaking);
  border: 1px solid rgba(180, 35, 24, 0.2);
}

.cp-comment-list {
  margin-top: 1.5rem;
}

.cp-comment-card {
  background: var(--cp-paper);
  border: 1px solid var(--cp-line);
  padding: 1rem 1.05rem;
  border-radius: var(--cp-radius);
  margin-bottom: 0.85rem;
}

.cp-comment-card__author {
  font-weight: 700;
  color: var(--cp-ink);
  margin-bottom: 0.35rem;
}

.cp-comment-card__date {
  font-size: 0.75rem;
  color: var(--cp-muted-soft);
  margin-bottom: 0.55rem;
}

.cp-comment-card__body {
  line-height: 1.8;
  color: var(--cp-ink-soft);
}

@media (max-width: 639px) {
  .cp-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .cp-article-layout {
    grid-template-columns: minmax(0, 2fr) minmax(240px, 0.85fr);
    gap: 1.75rem;
    align-items: start;
  }

  .cp-article {
    padding: 0;
  }

  .cp-article__content {
    padding: 1.75rem 1.65rem 2rem;
  }

  .cp-article-hero {
    padding: 1.75rem 1.65rem 1.5rem;
  }
}

/* =========================================================
   LISTING / STATIC PAGES — design-system alignment
   Layout preserved; colors use Axis tokens only.
   ========================================================= */
.cp-page-hero {
  background: var(--cp-ink);
  color: #fff;
  padding: 35px 25px;
  border-radius: 16px;
  margin-bottom: 30px;
}

.cp-page-hero h1 {
  margin: 0 0 10px;
  font-family: var(--cp-font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.cp-page-hero p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}

.cp-surface-panel {
  background: var(--cp-surface);
  border: 1px solid var(--cp-line);
  border-radius: 14px;
  padding: 30px;
  box-shadow: none;
}

.cp-surface-panel h2 {
  margin-top: 0;
  font-family: var(--cp-font-display);
  color: var(--cp-ink);
}

.cp-page-body {
  line-height: 1.9;
  color: var(--cp-ink-soft);
  font-size: 1rem;
}

.cp-page-meta {
  margin-top: 30px;
  font-size: 0.875rem;
  color: var(--cp-muted);
}

.cp-listing-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

.cp-listing-toolbar__info {
  font-weight: 600;
  color: var(--cp-ink);
}

.cp-inline-search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.cp-inline-search input[type="text"],
.cp-inline-search input[type="search"] {
  padding: 12px 14px;
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius);
  background: var(--cp-paper);
  color: var(--cp-ink);
  font: inherit;
  min-width: 0;
}

.cp-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.cp-listing-card,
.post-card.cp-listing-card {
  background: var(--cp-surface);
  border: 1px solid var(--cp-line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}

.cp-listing-card__media,
.cp-listing-card .post-image img,
.cp-listing-card > img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.cp-listing-card__body,
.cp-listing-card .post-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  height: auto;
}

.cp-chip {
  display: inline-block;
  background: var(--cp-paper);
  color: var(--cp-accent);
  border: 1px solid var(--cp-line);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
  width: max-content;
  text-decoration: none;
  align-self: flex-start;
}

.cp-chip:hover {
  color: var(--cp-accent-deep);
  border-color: var(--cp-accent);
}

.cp-listing-card h2,
.cp-listing-card h3 {
  margin: 0 0 10px;
  font-family: var(--cp-font-display);
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 600;
}

.cp-listing-card h2 a,
.cp-listing-card h3 a {
  text-decoration: none;
  color: var(--cp-ink);
}

.cp-listing-card h2 a:hover,
.cp-listing-card h3 a:hover {
  color: var(--cp-accent);
}

.cp-listing-card__date {
  font-size: 13px;
  color: var(--cp-muted-soft);
  margin-bottom: 12px;
}

.cp-listing-card__excerpt {
  color: var(--cp-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.cp-listing-card__actions {
  margin-top: auto;
}

.cp-listing-card__actions .cp-btn {
  margin-bottom: 10px;
}

.cp-share-mini {
  display: flex;
  gap: 6px;
}

.cp-share-mini a {
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

.cp-empty-panel {
  grid-column: 1 / -1;
  background: var(--cp-surface);
  border: 1px solid var(--cp-line);
  padding: 25px;
  border-radius: 12px;
  color: var(--cp-muted);
}

.cp-pagination {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cp-pagination a {
  display: inline-block;
  padding: 10px 14px;
  background: var(--cp-paper);
  color: var(--cp-ink);
  border: 1px solid var(--cp-line);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.cp-pagination a.is-active,
.cp-pagination a[aria-current="page"] {
  background: var(--cp-ink);
  color: #fff;
  border-color: var(--cp-ink);
}

.cp-pagination a:hover:not(.is-active) {
  border-color: var(--cp-ink);
}

.cp-load-more-wrap {
  margin-top: 30px;
  text-align: center;
}

.blog-layout {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 25px;
}

.blog-header-box.cp-page-hero {
  margin: 25px 0 30px;
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cp-sidebar-widget {
  background: var(--cp-surface);
  border: 1px solid var(--cp-line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: none;
}

.cp-sidebar-widget h3 {
  margin: 0 0 16px;
  font-family: var(--cp-font-display);
  font-size: 18px;
  color: var(--cp-ink);
  border-bottom: 1px solid var(--cp-line);
  padding-bottom: 10px;
}

.cp-sidebar-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cp-sidebar-cat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--cp-ink);
  padding: 10px 12px;
  background: var(--cp-paper);
  border: 1px solid var(--cp-line);
  border-radius: 8px;
  margin-bottom: 10px;
}

.cp-sidebar-cat:hover {
  color: var(--cp-accent);
  border-color: var(--cp-accent);
}

.cp-sidebar-recent {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.cp-sidebar-recent img {
  width: 75px;
  height: 65px;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
}

.cp-sidebar-recent a {
  text-decoration: none;
  color: var(--cp-ink);
  font-weight: 600;
  line-height: 1.4;
  display: block;
  margin-bottom: 5px;
}

.cp-sidebar-recent a:hover {
  color: var(--cp-accent);
}

.cp-sidebar-recent small {
  color: var(--cp-muted-soft);
  font-size: 12px;
}

.cp-sidebar-about {
  color: var(--cp-muted);
  line-height: 1.7;
  font-size: 14px;
}

.cp-sidebar-about strong {
  color: var(--cp-ink);
}

.cp-contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
}

/* Search page — override legacy style.css accents */
.cp-body .search-page-box {
  background: var(--cp-surface);
  border: 1px solid var(--cp-line);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 1.5rem;
  box-shadow: none;
}

.cp-body .search-page-form .btn,
.cp-body .search-page-form button {
  background: var(--cp-ink);
  color: #fff;
  border: 1px solid var(--cp-ink);
  border-radius: var(--cp-radius);
  font-weight: 600;
}

.cp-body .search-page-form .btn:hover,
.cp-body .search-page-form button:hover {
  background: var(--cp-ink-soft);
}

.cp-body .search-page-form input {
  border: 1px solid var(--cp-line);
  background: var(--cp-paper);
  color: var(--cp-ink);
  border-radius: var(--cp-radius);
}

.cp-body .section-title-row h1 {
  font-family: var(--cp-font-display);
  color: var(--cp-ink);
}

.cp-body .search-result-info {
  color: var(--cp-muted);
  margin-bottom: 1.25rem;
}

.cp-body .news-card,
.cp-body .empty-box {
  background: var(--cp-surface);
  border: 1px solid var(--cp-line);
  box-shadow: none;
}

.cp-body .post-category {
  background: var(--cp-paper);
  color: var(--cp-accent);
  border: 1px solid var(--cp-line);
}

.cp-body .news-card-content h3 a {
  color: var(--cp-ink);
  text-decoration: none;
}

.cp-body .news-card-content h3 a:hover {
  color: var(--cp-accent);
}

.cp-body .read-more {
  color: var(--cp-accent);
}

@media (max-width: 900px) {
  .blog-layout,
  .cp-contact-grid {
    grid-template-columns: 1fr;
  }

  .cp-posts-grid {
    grid-template-columns: 1fr;
  }
}
