/* =========================================================
   MSA PUBLIC NEWS / EDITORIAL DESIGN
   Requires assets/css/style.css
   ========================================================= */

body[data-blog-page] {
  background: var(--background);
}

body[data-blog-page] .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.news-accent {
  color: var(--red);
}

.news-kicker,
.news-section-label,
.news-category,
.news-intro-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.news-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--red);
}

.news-kicker span {
  width: 28px;
  height: 2px;
  background: var(--red);
}

.news-intro {
  padding: 68px 0 42px;
  background: var(--white);
}

.news-intro-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-top: 20px;
}

.news-intro h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(68px, 9vw, 132px);
  line-height: 1;
  letter-spacing: -0.085em;
  font-weight: 800;
}

.news-intro p {
  max-width: 570px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.news-intro-label {
  padding-bottom: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.news-section-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--red);
}

.news-section-label span:last-child:not(:first-child) {
  color: var(--muted);
}

.news-featured {
  padding-top: 45px;
  padding-bottom: 95px;
}

.news-featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 42px;
  margin-top: 30px;
}

.news-lead-image,
.news-story-image,
.news-card-image,
.news-article-cover {
  display: block;
  overflow: hidden;
  background: #e8e8e5;
}

.news-lead-image {
  aspect-ratio: 1.62;
}

.news-lead-image img,
.news-story-image img,
.news-card-image img,
.news-article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.news-lead:hover img,
.news-story:hover img,
.news-card:hover img {
  transform: scale(1.035);
}

.news-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: #e9e9e5;
  color: #b2b2ae;
  font-family: var(--display);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.07em;
}

.news-category {
  display: inline-block;
  color: var(--red);
  letter-spacing: 0.08em;
}

.news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.news-lead h2 {
  max-width: 780px;
  margin: 14px 0;
  font-family: var(--display);
  font-size: clamp(30px, 3.5vw, 53px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.18;
}

.news-lead h2 a:hover,
.news-story h3 a:hover,
.news-card h3 a:hover {
  color: var(--red);
}

.news-lead-description {
  max-width: 700px;
  margin: 0;
  color: #656969;
  font-size: 15px;
  line-height: 1.85;
}

.news-text-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 22px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.news-side {
  display: flex;
  flex-direction: column;
}

.news-story {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 17px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.news-story:first-child {
  padding-top: 0;
}

.news-story-image {
  aspect-ratio: 1.2;
}

.news-story .news-meta {
  margin: 0 0 8px;
}

.news-story h3 {
  margin: 7px 0 0;
  font-family: var(--display);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.38;
  letter-spacing: -0.035em;
}

.news-archive {
  padding: 82px 0 110px;
  background: var(--white);
}

.news-archive-header,
.news-related-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 40px;
}

.news-archive-header h2,
.news-related-header h2 {
  margin: 22px 0 0;
  font-family: var(--display);
  font-size: clamp(35px, 4vw, 58px);
  letter-spacing: -0.065em;
  line-height: 1.1;
}

.news-search {
  display: flex;
  min-height: 46px;
  border: 1px solid var(--border);
  background: var(--white);
}

.news-search input {
  width: 230px;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 13px;
}

.news-search button {
  padding: 0 20px;
  border: 0;
  background: var(--red);
  color: white;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.news-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 45px 27px;
}

.news-card {
  min-width: 0;
}

.news-card-image {
  aspect-ratio: 1.55;
}

.news-card .news-meta {
  margin-top: 16px;
}

.news-card h3 {
  margin: 11px 0;
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.38;
  letter-spacing: -0.045em;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.news-message {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.news-message:empty {
  display: none;
}

.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 60px;
}

.news-pagination button {
  padding: 12px 18px;
  border: 1px solid var(--border);
  background: white;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.news-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.news-pagination button:not(:disabled):hover {
  color: var(--red);
  border-color: var(--red);
}

.news-page-label {
  color: var(--muted);
  font-size: 13px;
}

/* ARTICLE DETAIL */

.news-article-loading {
  padding-top: 100px;
  padding-bottom: 100px;
  color: var(--muted);
}

.news-article {
  background: var(--white);
  padding: 65px 0 100px;
}

.news-article-header {
  max-width: 1060px;
  margin: 0 auto;
}

.news-back {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.news-back:hover {
  color: var(--red);
}

.news-article-header h1 {
  margin: 20px 0 25px;
  font-family: var(--display);
  font-size: clamp(39px, 5.5vw, 76px);
  line-height: 1.12;
  letter-spacing: -0.07em;
  font-weight: 800;
}

.news-article-summary {
  max-width: 780px;
  margin: 0 0 27px;
  color: #656969;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.news-article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.news-article-byline strong {
  color: var(--text);
}

.news-article-cover {
  max-width: 1200px;
  margin: 45px auto 0;
}

.news-article-cover img {
  max-height: 720px;
  object-fit: contain;
  background: #f0f0ed;
}

.news-article-body {
  max-width: 790px;
  margin: 60px auto 0;
  overflow-wrap: anywhere;
  color: #363b3b;
  font-size: 17px;
  line-height: 1.95;
}

.news-article-body p {
  margin: 0 0 25px;
}

.news-article-body h2,
.news-article-body h3,
.news-article-body h4 {
  margin: 40px 0 16px;
  font-family: var(--display);
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.news-article-body h2 {
  font-size: 32px;
}
.news-article-body h3 {
  font-size: 25px;
}

.news-article-body a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-article-body img,
.news-article-body video {
  max-width: 100%;
  height: auto;
}

.news-article-body figure {
  margin: 35px 0;
  max-width: 100%;
}

.news-article-body figcaption {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.news-article-body blockquote {
  margin: 35px 0;
  padding: 10px 0 10px 24px;
  border-left: 4px solid var(--red);
  font-size: 21px;
  font-weight: 600;
}

.news-article-body ul,
.news-article-body ol {
  padding-left: 26px;
  margin-bottom: 25px;
}

.news-article-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.news-article-body th,
.news-article-body td {
  border: 1px solid var(--border);
  padding: 10px;
}

.news-article-tags {
  max-width: 790px;
  margin: 45px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.news-article-tags span {
  padding: 7px 12px;
  background: var(--background);
  color: var(--muted);
  font-size: 12px;
}

.news-related {
  padding: 80px 0 100px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1050px) {
  .news-featured-layout {
    grid-template-columns: 1.4fr 1fr;
    gap: 26px;
  }

  .news-story {
    grid-template-columns: 90px minmax(0, 1fr);
  }
}

@media (max-width: 850px) {
  .news-featured-layout {
    grid-template-columns: 1fr;
  }

  .news-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }

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

  .news-article {
    padding-top: 45px;
  }

  .news-article-body {
    margin-top: 40px;
  }
}

@media (max-width: 600px) {
  .news-intro {
    padding: 46px 0 32px;
  }

  .news-intro-row {
    display: block;
  }

  .news-intro h1 {
    font-size: 76px;
  }

  .news-intro-label {
    margin-top: 20px;
  }

  .news-featured {
    padding-top: 32px;
    padding-bottom: 60px;
  }

  .news-section-label {
    font-size: 10px;
  }

  .news-side,
  .news-archive-grid {
    grid-template-columns: 1fr;
  }

  .news-story {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .news-archive {
    padding: 60px 0;
  }

  .news-archive-header,
  .news-related-header {
    align-items: stretch;
    flex-direction: column;
  }

  .news-search input {
    width: 100%;
    flex: 1;
  }

  .news-article-header h1 {
    font-size: 39px;
  }

  .news-article-body {
    font-size: 16px;
  }

  .news-article-cover {
    margin-top: 28px;
  }

  .news-related {
    padding: 60px 0;
  }
}

/* =========================================================
   MSA NEWS — REFINED LISTING DESIGN
   ========================================================= */

.news-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 88% 15%,
      rgba(189, 37, 54, 0.12),
      transparent 45%
    ),
    linear-gradient(125deg, #ffffff 0%, #faf8f7 50%, #f6eeee 100%);
  border-bottom: 1px solid var(--border);
}

.news-hero-inner {
  padding-top: 90px;
  padding-bottom: 90px;
}

.news-hero-copy {
  max-width: 780px;
}

.news-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 7vw, 100px);
  line-height: 1.08;
  letter-spacing: -0.075em;
  font-weight: 800;
}

.news-hero h1 span {
  color: var(--red);
}

.news-hero p {
  max-width: 600px;
  margin: 22px 0 0;
  color: #666a6a;
  font-size: 17px;
  line-height: 1.8;
}

.news-hero-search {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 690px;
  margin-top: 38px;
  padding: 7px 7px 7px 20px;
  background: white;
  border: 1px solid #e5dedf;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(40, 20, 25, 0.055);
}

.news-hero-search svg {
  flex-shrink: 0;
  color: #8d8d8d;
}

.news-hero-search input {
  flex: 1;
  min-width: 0;
  padding: 13px 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--text);
}

.news-hero-search button {
  flex-shrink: 0;
  padding: 14px 27px;
  border: 0;
  border-radius: 7px;
  background: var(--red);
  color: white;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.25s;
}

.news-hero-search button:hover {
  background: var(--red-dark);
}

.news-content {
  padding-top: 60px;
  padding-bottom: 110px;
}

.news-content .news-featured-layout {
  margin-top: 0;
}

.news-lead-image {
  position: relative;
  border-radius: 7px;
}

.news-pin {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: rgba(22, 22, 22, 0.8);
  color: white;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.news-pin svg {
  width: 19px;
  height: 19px;
}

.news-more-content {
  margin-top: 65px;
}

.news-more-content:empty,
.news-archive-grid:empty {
  display: none;
}

.news-results-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.news-results-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.05em;
}

.news-results-heading button {
  padding: 9px 15px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.news-results-heading button:hover {
  color: var(--red);
  border-color: var(--red);
}

.news-content .news-story-image,
.news-content .news-card-image {
  border-radius: 5px;
}

.news-content .news-archive-grid {
  gap: 50px 28px;
}

/* Article refinements */

.news-article-header {
  max-width: 920px;
}

.news-article-header h1 {
  line-height: 1.16;
  letter-spacing: -0.065em;
}

.news-article-cover {
  border-radius: 7px;
}

.news-article-body {
  font-size: 18px;
  line-height: 1.9;
}

.news-article-body p {
  margin-bottom: 28px;
}

.news-article-body > p:first-child::first-letter {
  font-weight: inherit;
}

@media (max-width: 850px) {
  .news-hero-inner {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .news-content {
    padding-top: 45px;
  }
}

@media (max-width: 600px) {
  .news-hero-inner {
    padding-top: 55px;
    padding-bottom: 60px;
  }

  .news-hero h1 {
    font-size: 58px;
  }

  .news-hero p {
    font-size: 15px;
  }

  .news-hero-search {
    padding-left: 13px;
    gap: 9px;
  }

  .news-hero-search button {
    padding: 13px 15px;
  }

  .news-content {
    padding-top: 35px;
    padding-bottom: 70px;
  }

  .news-more-content {
    margin-top: 40px;
  }

  .news-article-body {
    font-size: 16px;
  }
}
