/* Tláhuac visual news cards and full dedicated article pages */
[data-mc-news-card] {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce8e4 !important;
  border-radius: 22px !important;
  box-shadow: 0 10px 28px rgba(20, 73, 65, 0.1) !important;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

[data-mc-news-card]:hover {
  transform: translateY(-5px);
  border-color: #82b7aa !important;
  box-shadow: 0 18px 38px rgba(20, 73, 65, 0.16) !important;
}

[data-mc-news-card]:focus-visible {
  outline: 4px solid #f2bd45;
  outline-offset: 4px;
  box-shadow: 0 0 0 7px #134e4a, 0 18px 38px rgba(20, 73, 65, 0.16) !important;
}

[data-mc-news-cover] {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  background: #d9eee8;
}

[data-mc-news-cover]::after {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  content: "";
  background: linear-gradient(transparent, rgba(8, 47, 42, 0.58));
  pointer-events: none;
}

[data-mc-news-cover] img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

[data-mc-news-card]:hover [data-mc-news-cover] img {
  transform: scale(1.035);
}

[data-mc-news-cover] > span {
  position: absolute;
  z-index: 1;
  right: 0.8rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.65rem;
  color: #134e4a;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.16);
}

[data-mc-news-card] [data-loc="client/src/pages/municipal/MunicipalHome.tsx:332"],
[data-mc-news-card] [data-loc="client/src/pages/municipal/MunicipalNews.tsx:76"] {
  display: flex;
  min-height: 190px;
  flex: 1;
  flex-direction: column;
}

[data-mc-news-card] h3 {
  color: #173b36;
  font-size: 1.08rem !important;
  line-height: 1.35 !important;
}

[data-mc-news-read] {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0.65rem 0.85rem;
  color: #fff !important;
  background: #176b5b;
  border-radius: 13px;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none !important;
  box-shadow: 0 4px 0 #0b4a40;
}

[data-mc-news-read]:hover,
[data-mc-news-read]:focus-visible {
  background: #0e594c;
  outline: 3px solid #f2bd45;
  outline-offset: 2px;
}

body.mc-news-article-route {
  min-height: 100vh;
  margin: 0;
  color: #17312e;
  background: #f6faf8;
}

body.mc-news-article-route > #root {
  display: none !important;
}

[data-mc-news-article-page] {
  --mc-news-ink: #17312e;
  --mc-news-muted: #5b6f6a;
  --mc-news-teal: #176b5b;
  --mc-news-teal-dark: #0d4d43;
  --mc-news-gold: #d6a84b;
  min-height: 100vh;
  color: var(--mc-news-ink);
  background: #f6faf8;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mc-news-skip {
  position: fixed;
  z-index: 100002;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.65rem 0.9rem;
  color: #fff;
  background: #0f172a;
  border-radius: 9px;
  transform: translateY(-180%);
}

.mc-news-skip:focus {
  transform: translateY(0);
}

.mc-news-site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  min-height: 76px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem max(1rem, calc((100vw - 1240px) / 2));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #dce8e4;
  box-shadow: 0 5px 20px rgba(15, 55, 49, 0.08);
  backdrop-filter: blur(14px);
}

.mc-news-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--mc-news-ink);
  text-decoration: none;
}

.mc-news-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  padding: 4px;
  background: #fff;
  border: 1px solid #dce8e4;
  border-radius: 14px;
}

.mc-news-brand span {
  display: grid;
  gap: 0.05rem;
}

.mc-news-brand strong {
  color: var(--mc-news-teal-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
}

.mc-news-brand small {
  color: var(--mc-news-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mc-news-site-header nav {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.mc-news-site-header nav a {
  min-height: 44px;
  padding: 0.7rem 0.85rem;
  color: #35524d;
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.mc-news-site-header nav a:hover,
.mc-news-site-header nav a[aria-current="page"] {
  color: var(--mc-news-teal-dark);
  background: #e6f2ef;
}

[data-mc-news-language] {
  min-width: 48px;
  min-height: 46px;
  color: #fff;
  background: var(--mc-news-teal);
  border: 0;
  border-radius: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--mc-news-teal-dark);
}

.mc-news-site-header a:focus-visible,
.mc-news-site-header button:focus-visible,
.mc-news-article-page a:focus-visible,
.mc-news-site-footer a:focus-visible {
  outline: 4px solid #f2bd45;
  outline-offset: 3px;
}

.mc-news-article-page {
  width: min(100% - 2rem, 1240px);
  margin: 0 auto;
  padding: 1rem 0 4rem;
  outline: none;
}

.mc-news-article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0 1rem;
  color: var(--mc-news-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.mc-news-article-breadcrumbs a {
  color: var(--mc-news-teal);
  text-decoration: none;
}

.mc-news-article-breadcrumbs span:last-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mc-news-article-page > article {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce8e4;
  border-radius: 30px;
  box-shadow: 0 18px 50px rgba(15, 73, 64, 0.11);
}

.mc-news-article-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  align-items: stretch;
  background: linear-gradient(135deg, #eaf6f2, #fff9eb);
}

.mc-news-article-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.mc-news-article-category {
  width: fit-content;
  margin-bottom: 1.1rem;
  padding: 0.42rem 0.75rem;
  color: var(--mc-news-teal-dark);
  background: #d6eee8;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.mc-news-article-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #123b34;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.25rem, 4.8vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.mc-news-article-summary {
  max-width: 690px;
  margin: 1.25rem 0 0;
  color: #49635e;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.mc-news-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.2rem;
  margin-top: 1.5rem;
  color: #5f746f;
  font-size: 0.8rem;
  font-weight: 750;
}

.mc-news-article-meta span:not(:first-child)::before {
  margin-right: 1.2rem;
  color: var(--mc-news-gold);
  content: "•";
}

.mc-news-article-hero figure {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  background: #dfeee9;
}

.mc-news-article-hero figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mc-news-article-hero figcaption {
  position: absolute;
  z-index: 1;
  right: 0.85rem;
  bottom: 0.75rem;
  max-width: calc(100% - 1.7rem);
  padding: 0.35rem 0.55rem;
  color: #fff;
  background: rgba(8, 40, 36, 0.78);
  border-radius: 7px;
  font-size: 0.66rem;
}

.mc-news-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2rem, 5vw, 4.8rem);
}

.mc-news-article-lead {
  margin: 0 0 2.5rem;
  padding-left: 1.25rem;
  color: #234a43;
  border-left: 5px solid var(--mc-news-gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 650;
  line-height: 1.55;
}

.mc-news-article-section + .mc-news-article-section {
  margin-top: 2.5rem;
}

.mc-news-article-section h2 {
  margin: 0 0 0.9rem;
  color: #124a40;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.15;
}

.mc-news-article-section p,
.mc-news-source-note p {
  margin: 0.75rem 0;
  color: #405c57;
  font-size: 1.04rem;
  line-height: 1.8;
}

.mc-news-article-section ul {
  display: grid;
  gap: 0.75rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.mc-news-article-section li {
  position: relative;
  min-height: 42px;
  padding: 0.75rem 0.9rem 0.75rem 2.6rem;
  color: #35524d;
  background: #f1f7f5;
  border-radius: 12px;
  line-height: 1.55;
}

.mc-news-article-section li::before {
  position: absolute;
  top: 0.78rem;
  left: 0.85rem;
  display: grid;
  width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  color: #fff;
  background: var(--mc-news-teal);
  border-radius: 999px;
  content: "✓";
  font-size: 0.7rem;
  font-weight: 900;
}

.mc-news-source-note {
  margin-top: 3rem;
  padding: 1.35rem;
  background: #fff9e9;
  border: 1px solid #ead6a2;
  border-radius: 17px;
}

.mc-news-source-note > strong {
  color: #6e5012;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mc-news-source-note a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  margin-top: 0.35rem;
  padding: 0.6rem 0.8rem;
  color: #fff;
  background: #72550f;
  border-radius: 10px;
  font-size: 0.87rem;
  font-weight: 850;
  text-decoration: none;
}

.mc-news-article-sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 1rem;
  align-self: start;
}

.mc-news-article-sidebar > div {
  padding: 1.35rem;
  color: #fff;
  background: linear-gradient(145deg, var(--mc-news-teal), var(--mc-news-teal-dark));
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(13, 77, 67, 0.22);
}

.mc-news-article-sidebar > div > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--mc-news-teal-dark);
  background: #f2bd45;
  border-radius: 13px;
  font-size: 1.2rem;
  font-weight: 950;
}

.mc-news-article-sidebar h2 {
  margin: 1rem 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
}

.mc-news-article-sidebar ul {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.mc-news-article-sidebar li {
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.9rem;
  line-height: 1.5;
}

.mc-news-all-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem;
  color: var(--mc-news-teal-dark);
  background: #e5f1ee;
  border-radius: 13px;
  font-weight: 850;
  text-decoration: none;
}

.mc-news-related {
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: #eaf4f1;
  border-radius: 28px;
}

.mc-news-related > div:first-child > span {
  color: var(--mc-news-teal);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mc-news-related h2 {
  margin: 0.25rem 0 1.35rem;
  color: #153f38;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.mc-news-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mc-news-related-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  overflow: hidden;
  color: var(--mc-news-ink);
  background: #fff;
  border: 1px solid #d7e7e2;
  border-radius: 18px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(15, 73, 64, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.mc-news-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 73, 64, 0.15);
}

.mc-news-related-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.mc-news-related-card > span {
  width: fit-content;
  margin: 0.85rem 0.9rem 0;
  color: var(--mc-news-teal);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mc-news-related-card > strong {
  padding: 0.4rem 0.9rem 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.3;
}

.mc-news-related-card > small {
  padding: 0.8rem 0.9rem 1rem;
  color: var(--mc-news-teal);
  font-weight: 850;
}

.mc-news-site-footer {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  color: #d6e7e3;
  background: #123f37;
  text-align: center;
}

.mc-news-site-footer strong {
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
}

.mc-news-site-footer a {
  color: #f2c35a;
  font-weight: 850;
}

@media (max-width: 980px) {
  .mc-news-article-hero {
    grid-template-columns: 1fr;
  }

  .mc-news-article-hero figure {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .mc-news-article-layout {
    grid-template-columns: 1fr;
  }

  .mc-news-article-sidebar {
    position: static;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .mc-news-site-header {
    min-height: 66px;
    grid-template-columns: 1fr auto;
    gap: 0.7rem;
    padding: 0.55rem 0.75rem;
  }

  .mc-news-brand img {
    width: 44px;
    height: 44px;
  }

  .mc-news-site-header nav {
    position: fixed;
    z-index: 99;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0.4rem max(0.4rem, env(safe-area-inset-right)) max(0.4rem, env(safe-area-inset-bottom)) max(0.4rem, env(safe-area-inset-left));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #d7e7e2;
    box-shadow: 0 -6px 22px rgba(15, 55, 49, 0.1);
  }

  .mc-news-site-header nav a {
    display: grid;
    min-height: 48px;
    place-items: center;
    padding: 0.55rem;
    text-align: center;
  }

  .mc-news-article-page {
    width: min(100% - 1rem, 1240px);
    padding-top: 0.65rem;
  }

  .mc-news-article-page > article,
  .mc-news-related {
    border-radius: 21px;
  }

  .mc-news-article-hero-copy {
    padding: 1.6rem 1.25rem 1.8rem;
  }

  .mc-news-article-hero h1 {
    font-size: clamp(2rem, 10vw, 3.3rem);
  }

  .mc-news-article-meta {
    display: grid;
    gap: 0.25rem;
  }

  .mc-news-article-meta span:not(:first-child)::before {
    display: none;
  }

  .mc-news-article-layout {
    gap: 2rem;
    padding: 1.5rem 1.2rem 2rem;
  }

  .mc-news-article-sidebar {
    grid-template-columns: 1fr;
  }

  .mc-news-related {
    margin-bottom: 5rem;
    padding: 1.2rem;
  }

  .mc-news-related-grid {
    display: flex;
    padding-bottom: 0.4rem;
    overflow-x: auto;
    scroll-snap-type: inline proximity;
  }

  .mc-news-related-card {
    min-width: min(78vw, 300px);
    scroll-snap-align: start;
  }

  .mc-news-site-footer {
    margin-bottom: 64px;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .mc-news-brand strong {
    font-size: 0.92rem;
  }

  .mc-news-brand small {
    font-size: 0.66rem;
  }

  .mc-news-article-breadcrumbs span:last-child {
    max-width: 42vw;
  }

  .mc-news-article-hero-copy,
  .mc-news-article-layout {
    padding-inline: 1rem;
  }

  .mc-news-article-lead {
    padding-left: 0.9rem;
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-mc-news-card],
  [data-mc-news-cover] img,
  .mc-news-related-card {
    scroll-behavior: auto;
    transition: none;
  }
}
