﻿/*
Theme Name: En Contexto Theme v031
Theme URI: https://encontextomedia.com
Author: En Contexto Media
Description: Tema inicial ligero para En Contexto Media, medio cristiano de noticias y analisis.
Version: 0.3.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: en-contexto-theme
*/

:root {
  --ecm-ink: #111418;
  --ecm-muted: #606873;
  --ecm-subtle: #8a929c;
  --ecm-line: #e6e8ec;
  --ecm-soft: #f5f6f8;
  --ecm-paper: #ffffff;
  --ecm-accent: #b3202a;
  --ecm-accent-dark: #841821;
  --ecm-gold: #c09a42;
  --ecm-blue: #1b4f9c;
  --ecm-cyan: #1677a8;
  --ecm-green: #177245;
  --ecm-teal: #0f766e;
  --ecm-purple: #5b4aa0;
  --ecm-pr: #0f5d8f;
  --ecm-wine: #7a1f3d;
  --ecm-max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  background: #f6f3ec;
  color: var(--ecm-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover {
  color: var(--ecm-accent);
  text-decoration-color: currentColor;
}

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

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.ecm-container {
  margin: 0 auto;
  max-width: var(--ecm-max);
  padding: 0 20px;
}

.ecm-topbar {
  background: linear-gradient(90deg, #111418 0, #172233 45%, #111418 100%);
  border-bottom: 1px solid rgba(192, 154, 66, 0.35);
  color: #fff;
  font-size: 0.82rem;
}

.ecm-topbar-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 36px;
  gap: 16px;
}

.ecm-motto {
  color: rgba(255, 255, 255, 0.82);
}

.ecm-date {
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
}

.site-header {
  background: #111418;
  border-bottom: 1px solid rgba(17, 20, 24, 0.18);
  box-shadow: 0 18px 44px rgba(17, 20, 24, 0.18);
  position: sticky;
  top: 0;
  z-index: 20;
}

.ecm-masthead {
  background:
    linear-gradient(90deg, rgba(192, 154, 66, 0.13), transparent 42%),
    linear-gradient(180deg, #111418 0, #171b22 100%);
  border-bottom: 1px solid rgba(192, 154, 66, 0.24);
}

.ecm-masthead-inner {
  align-items: center;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  min-height: 136px;
  padding-bottom: 18px;
  padding-top: 18px;
}

.ecm-header-inner {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 52px;
}

.site-branding {
  align-items: center;
  display: flex;
  min-width: min(460px, 100%);
}

.custom-logo,
.ecm-default-logo img {
  height: auto;
  max-height: 112px;
  object-fit: contain;
  width: auto;
}

.custom-logo-link,
.ecm-default-logo {
  background: transparent;
  border: 0;
  box-shadow: none;
  display: inline-flex;
  padding: 0;
  position: relative;
}

.custom-logo-link::after,
.ecm-default-logo::after {
  background: var(--ecm-gold);
  bottom: -10px;
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
}

.ecm-brand-deck {
  border-left: 1px solid rgba(192, 154, 66, 0.42);
  color: rgba(255, 255, 255, 0.76);
  display: grid;
  gap: 6px;
  max-width: 360px;
  padding-left: 24px;
  text-align: right;
}

.ecm-brand-deck span {
  color: var(--ecm-gold);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ecm-brand-deck strong {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.28;
}

.ecm-nav-shell {
  background: #fff;
  border-bottom: 1px solid rgba(17, 20, 24, 0.12);
}

.site-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.site-title a {
  text-decoration: none;
}

.site-description {
  color: var(--ecm-muted);
  font-size: 0.82rem;
  margin: 6px 0 0;
}

.main-navigation ul {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  border-bottom: 3px solid transparent;
  color: #2b3138;
  display: block;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  padding: 15px 10px 12px;
  text-decoration: none;
  text-transform: uppercase;
}

.main-navigation a:hover {
  background: #fbf7ed;
  border-bottom-color: var(--ecm-gold);
  color: var(--ecm-ink);
}

.ecm-breaking {
  background: #111418;
  border-bottom: 3px solid var(--ecm-gold);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  padding: 10px 0;
}

.ecm-breaking strong {
  background: var(--ecm-accent);
  color: #fff;
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-right: 10px;
  padding: 3px 8px;
  text-transform: uppercase;
}

.ecm-section {
  padding: 34px 0;
}

.ecm-home-hero {
  background:
    linear-gradient(120deg, rgba(12, 31, 55, 0.9) 0, rgba(20, 55, 94, 0.72) 28%, rgba(20, 55, 94, 0.18) 44%, transparent 62%),
    linear-gradient(180deg, #f8fafc 0, #edf2f7 100%);
  border-bottom: 1px solid rgba(17, 20, 24, 0.12);
  padding: 46px 0 42px;
}

.ecm-section-header {
  align-items: end;
  border-bottom: 2px solid var(--ecm-ink);
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 9px;
}

.ecm-section-topic .ecm-section-header {
  border-bottom-color: var(--ecm-green);
}

.ecm-section-title {
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.ecm-section-link {
  color: var(--ecm-muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.ecm-hero-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
}

.ecm-featured {
  background: #fff;
  border: 1px solid rgba(17, 20, 24, 0.12);
  border-left: 7px solid var(--ecm-accent);
  box-shadow: 0 22px 58px rgba(17, 20, 24, 0.18);
  padding: 20px;
}

.ecm-featured-image {
  aspect-ratio: 16 / 9;
  background: #e9edf1;
  display: block;
  margin-bottom: 16px;
  overflow: hidden;
}

.ecm-featured-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.ecm-label {
  color: var(--ecm-accent);
  border-left: 4px solid currentColor;
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  padding-left: 8px;
  text-transform: uppercase;
}

.ecm-category-puerto-rico {
  color: var(--ecm-pr);
}

.ecm-category-estados-unidos {
  color: var(--ecm-accent);
}

.ecm-category-latinoamerica {
  color: var(--ecm-green);
}

.ecm-category-internacional {
  color: var(--ecm-purple);
}

.ecm-category-iglesia {
  color: var(--ecm-gold);
}

.ecm-category-esperanza-en-contexto {
  color: var(--ecm-teal);
}

.ecm-category-tecnologia-e-ia,
.ecm-category-tecnologia {
  color: var(--ecm-cyan);
}

.ecm-category-economia-y-finanzas {
  color: var(--ecm-green);
}

.ecm-category-opinion {
  color: var(--ecm-wine);
}

.ecm-category-contexto,
.ecm-category-editorial {
  color: var(--ecm-accent);
}

.ecm-featured-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5.5vw, 4.8rem);
  letter-spacing: 0;
  line-height: 0.94;
  margin: 0 0 12px;
}

.ecm-excerpt {
  color: var(--ecm-muted);
  font-size: 1rem;
  margin: 0;
}

.ecm-side-list {
  display: grid;
  gap: 16px;
}

.ecm-story {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(17, 20, 24, 0.09);
  border-left: 4px solid var(--ecm-gold);
  box-shadow: 0 10px 26px rgba(17, 20, 24, 0.08);
  padding: 14px;
}

.ecm-story-title {
  font-size: 1.08rem;
  line-height: 1.22;
  margin: 0 0 8px;
}

.ecm-story-title a,
.ecm-featured-title a,
.ecm-card-title a {
  text-decoration: none;
}

.ecm-meta {
  color: var(--ecm-subtle);
  font-size: 0.78rem;
  font-weight: 650;
}

.ecm-card-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ecm-card-image {
  aspect-ratio: 16 / 10;
  background: var(--ecm-soft);
  display: block;
  margin-bottom: 12px;
  overflow: hidden;
}

.ecm-story .ecm-card-image {
  aspect-ratio: 16 / 8;
  margin-bottom: 10px;
}

.ecm-card-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.ecm-card-title {
  font-size: 1.12rem;
  line-height: 1.22;
  margin: 0 0 8px;
}

.ecm-band {
  background: var(--ecm-soft);
  border: 1px solid var(--ecm-line);
  border-left: 4px solid var(--ecm-accent);
  padding: 22px;
}

.ecm-sponsor-section {
  padding-top: 10px;
}

.ecm-sponsor-card {
  background: linear-gradient(135deg, #111418, #242a33);
  border-top: 4px solid var(--ecm-gold);
  color: #fff;
  padding: 24px;
}

.ecm-sponsor-kicker,
.ecm-sponsor-label {
  color: var(--ecm-gold);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ecm-sponsor-main {
  align-items: center;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(230px, 330px) minmax(0, 1fr) auto;
  margin-top: 12px;
}

.ecm-sponsor-logo {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(192, 154, 66, 0.42);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  display: flex;
  justify-content: center;
  min-height: 162px;
  padding: 24px;
}

.ecm-sponsor-logo img {
  display: block;
  height: auto;
  max-height: 126px;
  max-width: 100%;
  object-fit: contain;
}

.ecm-sponsor-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 6px 0 10px;
}

.ecm-sponsor-card p {
  color: rgba(255, 255, 255, 0.76);
  margin: 0;
  max-width: 760px;
}

.ecm-sponsor-button {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 850;
  justify-content: center;
  letter-spacing: 0.08em;
  min-width: 144px;
  padding: 12px 16px;
  text-decoration: none;
  text-transform: uppercase;
}

.ecm-sponsor-button:hover {
  background: #fff;
  color: var(--ecm-ink);
  text-decoration: none;
}

.ecm-sponsor-note {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
  margin-top: 18px;
  padding-top: 12px;
}

.ecm-membership-section {
  padding-top: 10px;
}

.ecm-membership-card {
  align-items: center;
  background: #f8faf9;
  border: 1px solid #dfe7e4;
  border-left: 5px solid var(--ecm-teal);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 26px;
}

.ecm-membership-label {
  color: var(--ecm-teal);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.ecm-membership-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 10px;
}

.ecm-membership-card p {
  color: var(--ecm-muted);
  margin: 0;
  max-width: 760px;
}

.ecm-membership-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.ecm-membership-primary,
.ecm-membership-secondary {
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 850;
  justify-content: center;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.ecm-membership-primary {
  background: var(--ecm-teal);
  color: #fff;
}

.ecm-membership-secondary {
  border: 1px solid var(--ecm-line);
  color: var(--ecm-ink);
}

.ecm-topic-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ecm-topic-panel {
  border-top: 5px solid var(--ecm-accent);
  color: #fff;
  min-height: 220px;
  padding: 24px;
}

.ecm-topic-panel span {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.ecm-topic-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 16px;
}

.ecm-topic-panel p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.ecm-topic-economia {
  background: linear-gradient(135deg, #123b2a, #177245);
  border-top-color: #9ad4a6;
}

.ecm-topic-esperanza {
  background: linear-gradient(135deg, #0d3b3a, #0f766e);
  border-top-color: #87dfd4;
}

.ecm-topic-tecnologia {
  background: linear-gradient(135deg, #102f45, #1677a8);
  border-top-color: #92d3f0;
}

.ecm-topic-iglesia {
  background: linear-gradient(135deg, #3a2b0b, #9d7626);
  border-top-color: #f0cf7a;
}

.ecm-topic-empty {
  background: linear-gradient(135deg, #f3faf5, #ffffff);
  border: 1px solid #d8eadf;
  border-left: 5px solid var(--ecm-green);
  padding: 24px;
}

.ecm-topic-empty h3 {
  color: var(--ecm-green);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.ecm-topic-empty p {
  color: var(--ecm-muted);
  margin: 0;
}

.ecm-band h2 {
  font-size: 1.35rem;
  line-height: 1.15;
  margin: 0 0 8px;
}

.ecm-band p {
  color: var(--ecm-muted);
  margin: 0;
}

.content-area {
  padding: 38px 0 54px;
}

.ecm-article-wrap {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 760px) minmax(240px, 1fr);
}

.single .entry-header {
  border-bottom: 1px solid var(--ecm-line);
  margin-bottom: 24px;
  padding-bottom: 20px;
}

.single .entry-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 14px;
}

.single .entry-content {
  font-size: 1.06rem;
}

.single .entry-content > p:first-of-type {
  color: var(--ecm-muted);
  font-size: 1.22rem;
  line-height: 1.58;
}

.single .entry-content h2 {
  border-top: 1px solid var(--ecm-line);
  font-size: 1.5rem;
  line-height: 1.16;
  margin-top: 2.2rem;
  padding-top: 1.2rem;
}

.single .entry-content blockquote {
  border-left: 4px solid var(--ecm-accent);
  color: var(--ecm-muted);
  margin-left: 0;
  padding-left: 18px;
}

.ecm-sidebar-box {
  border-top: 2px solid var(--ecm-ink);
  margin-bottom: 24px;
  padding-top: 12px;
}

.ecm-sidebar-box h2 {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.ecm-sidebar-box p,
.ecm-sidebar-box li {
  color: var(--ecm-muted);
  font-size: 0.92rem;
}

.archive .page-title,
.search .page-title {
  border-bottom: 2px solid var(--ecm-ink);
  font-size: 1.45rem;
  letter-spacing: 0;
  margin: 0 0 22px;
  padding-bottom: 10px;
}

.ecm-archive-list {
  display: grid;
  gap: 22px;
}

.ecm-archive-item {
  border-bottom: 1px solid var(--ecm-line);
  display: grid;
  gap: 18px;
  grid-template-columns: 220px minmax(0, 1fr);
  padding-bottom: 22px;
}

.site-footer {
  background: var(--ecm-ink);
  color: #fff;
  padding: 34px 0;
}

.ecm-footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.3fr 1fr 1fr;
}

.site-footer h2,
.site-footer h3 {
  margin-top: 0;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 860px) {
  .ecm-masthead-inner,
  .ecm-topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    padding: 12px 0;
  }

  .site-header {
    position: static;
  }

  .ecm-header-inner {
    justify-content: flex-start;
    padding: 0;
  }

  .site-branding {
    min-width: 0;
  }

  .custom-logo,
  .ecm-default-logo img {
    max-height: 82px;
  }

  .ecm-brand-deck {
    border-left: 0;
    border-top: 1px solid rgba(192, 154, 66, 0.34);
    max-width: none;
    padding-left: 0;
    padding-top: 14px;
    text-align: left;
  }

  .main-navigation ul {
    justify-content: flex-start;
  }

  .ecm-hero-grid,
  .ecm-article-wrap,
  .ecm-footer-grid,
  .ecm-topic-grid,
  .ecm-sponsor-main,
  .ecm-membership-card {
    grid-template-columns: 1fr;
  }

  .ecm-membership-actions {
    justify-content: flex-start;
  }

  .ecm-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .ecm-container {
    padding: 0 16px;
  }

  .ecm-masthead-inner {
    min-height: auto;
    padding-bottom: 18px;
    padding-top: 18px;
  }

  .main-navigation a {
    font-size: 0.72rem;
    padding: 12px 7px 9px;
  }

  .ecm-home-hero {
    background: linear-gradient(180deg, #fbfaf7 0, #ede7da 100%);
    padding-top: 28px;
  }

  .ecm-card-grid,
  .ecm-archive-item {
    grid-template-columns: 1fr;
  }

  .ecm-featured-title,
  .single .entry-title {
    font-size: 2.15rem;
  }
}

.ecm-topic-voces {
  background: linear-gradient(135deg, #10233f 0%, #192f57 56%, #c09a42 100%);
  color: #ffffff;
}

.ecm-topic-voces span {
  color: #ffd400;
}

.ecm-topic-radar {
  background: linear-gradient(135deg, #07111f 0%, #14243d 58%, #6f1d2f 100%);
  color: #ffffff;
}

.ecm-topic-radar span {
  color: #ffd400;
}

@media (max-width: 740px) {
  .ecm-container {
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .ecm-topbar-inner {
    gap: 4px;
    min-height: 0;
    padding-bottom: 8px;
    padding-top: 8px;
  }

  .ecm-date {
    font-size: 0.74rem;
    white-space: normal;
  }

  .ecm-masthead-inner {
    gap: 18px;
    padding-bottom: 16px;
    padding-top: 16px;
  }

  .site-branding,
  .custom-logo-link,
  .ecm-default-logo {
    max-width: 100%;
    width: 100%;
  }

  .custom-logo,
  .ecm-default-logo img {
    max-height: 72px;
    max-width: min(100%, 320px);
  }

  .ecm-brand-deck {
    font-size: 0.86rem;
    line-height: 1.35;
    width: 100%;
  }

  .ecm-brand-deck strong {
    font-size: 0.96rem;
  }

  .ecm-nav-shell {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ecm-header-inner {
    min-height: 0;
  }

  .main-navigation {
    width: 100%;
  }

  .main-navigation ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    min-width: max-content;
    padding: 0 4px;
  }

  .main-navigation a {
    font-size: 0.69rem;
    letter-spacing: 0.04em;
    padding: 11px 8px 9px;
    white-space: nowrap;
  }

  .ecm-breaking {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .ecm-breaking strong {
    margin-bottom: 4px;
  }

  .ecm-section {
    padding: 26px 0;
  }

  .ecm-home-hero {
    padding: 24px 0 28px;
  }

  .ecm-hero-grid {
    gap: 18px;
  }

  .ecm-featured,
  .ecm-story,
  .ecm-band,
  .ecm-topic-panel,
  .ecm-topic-empty,
  .ecm-sponsor-card,
  .ecm-membership-card {
    padding: 16px;
  }

  .ecm-featured {
    border-left-width: 5px;
    box-shadow: 0 14px 34px rgba(17, 20, 24, 0.13);
  }

  .ecm-featured-image,
  .ecm-card-image {
    aspect-ratio: 16 / 10;
  }

  .ecm-featured-title,
  .single .entry-title {
    font-size: clamp(1.85rem, 11vw, 2.55rem);
    line-height: 1.02;
  }

  .ecm-section-header {
    align-items: flex-start;
    gap: 10px;
  }

  .ecm-section-title,
  .ecm-section-link,
  .ecm-label {
    overflow-wrap: anywhere;
  }

  .ecm-sponsor-main {
    gap: 16px;
  }

  .ecm-sponsor-logo {
    min-height: 132px;
    padding: 18px;
  }

  .ecm-sponsor-logo img {
    max-height: 104px;
  }

  .ecm-sponsor-button,
  .ecm-membership-primary,
  .ecm-membership-secondary {
    min-width: 0;
    width: 100%;
  }

  .ecm-membership-actions {
    width: 100%;
  }

  .ecm-topic-grid {
    gap: 14px;
  }

  .ecm-topic-panel {
    min-height: 0;
  }

  .ecm-topic-panel h2,
  .ecm-band h2,
  .ecm-membership-card h2,
  .ecm-sponsor-card h2 {
    font-size: clamp(1.28rem, 7vw, 1.75rem);
    line-height: 1.1;
  }

  .content-area {
    padding: 26px 0 40px;
  }

  .single .entry-content {
    font-size: 1rem;
  }

  .single .entry-content > p:first-of-type {
    font-size: 1.08rem;
  }

  .ecm-archive-item {
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .ecm-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .custom-logo,
  .ecm-default-logo img {
    max-height: 62px;
    max-width: min(100%, 280px);
  }

  .ecm-brand-deck span {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .ecm-brand-deck strong {
    font-size: 0.88rem;
  }

  .main-navigation a {
    font-size: 0.64rem;
    padding-left: 7px;
    padding-right: 7px;
  }

  .ecm-featured-title,
  .single .entry-title {
    font-size: 1.85rem;
  }

  .ecm-card-title,
  .ecm-story-title {
    font-size: 1rem;
  }

  .ecm-excerpt,
  .single .entry-content,
  .ecm-band p,
  .ecm-topic-panel p,
  .ecm-sponsor-card p,
  .ecm-membership-card p {
    font-size: 0.95rem;
  }
}
/* Share buttons */
.ecm-share {
    background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(245,246,248,0.82));
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-left: 4px solid #d4af37;
    box-shadow: 0 14px 34px rgba(7, 17, 31, 0.07);
    margin: 26px 0;
    padding: 16px 18px;
}

.ecm-share-top {
    margin-top: 20px;
}

.ecm-share-bottom {
    margin-top: 36px;
}

.ecm-share-label {
    color: #111827;
    display: block;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.ecm-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.ecm-share-button {
    align-items: center;
    background: #07111f;
    border: 1px solid rgba(212, 175, 55, 0.38);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: 850 0.78rem/1 var(--ecm-sans, Arial, sans-serif);
    gap: 8px;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px 0 11px;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.ecm-share-button::before {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #ffd400;
    content: '?';
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 900;
    height: 25px;
    justify-content: center;
    line-height: 1;
    width: 25px;
}

.ecm-share-facebook::before { content: 'f'; font-family: Arial, sans-serif; font-size: 0.95rem; }
.ecm-share-whatsapp::before { content: 'W'; }
.ecm-share-x::before { content: 'X'; }
.ecm-share-threads::before { content: '@'; }
.ecm-share-copy::before { content: '?'; font-size: 0.76rem; }

.ecm-share-button:hover,
.ecm-share-button:focus-visible {
    background: #d4af37;
    border-color: #d4af37;
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.28);
    color: #07111f;
    outline: none;
    transform: translateY(-1px);
}

.ecm-share-button:hover::before,
.ecm-share-button:focus-visible::before {
    background: rgba(7, 17, 31, 0.12);
    border-color: rgba(7, 17, 31, 0.18);
    color: #07111f;
}

.ecm-share-copy {
    appearance: none;
}

@media (max-width: 640px) {
    .ecm-share {
        margin: 22px 0;
        padding: 15px 14px;
    }

    .ecm-share-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .ecm-share-button {
        justify-content: flex-start;
        min-height: 44px;
        padding: 0 10px;
        width: 100%;
    }

    .ecm-share-copy {
        grid-column: 1 / -1;
        justify-content: center;
    }
}


