/* Shared news article layout, used by the design preview and current news posts. */
.news-template-page .news-template {
  position: relative;
  isolation: isolate;
  min-height: 780px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 15%, rgba(194, 233, 245, .34), transparent 26rem),
    radial-gradient(circle at 4% 75%, rgba(208, 238, 247, .4), transparent 30rem),
    linear-gradient(160deg, #fff 0%, #f8fcfd 42%, #f1f8fb 100%);
  color: #19465d;
}

/* A cropped, translucent watermark of the clinic's existing logo mark. */
.news-template-page .news-template::before {
  position: absolute;
  z-index: 0;
  top: 100px;
  left: max(-150px, calc((100vw - 1440px) / 2 - 150px));
  width: 620px;
  height: 540px;
  background: url("../img/logo/logo-beside_blue.svg") left top / 1870px auto no-repeat;
  content: "";
  opacity: .1;
  pointer-events: none;
}

/* Quiet exterior-photo accent shared by every news article. */
.news-template-page .news-template::after {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: min(47vw, 850px);
  height: 590px;
  background: url("../img/photo-date-web/hero-clinic-exterior-2026.jpg") center 28% / cover no-repeat;
  content: "";
  opacity: .2;
  -webkit-mask-image: radial-gradient(ellipse at 66% 30%, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse at 66% 30%, #000 15%, transparent 78%);
  pointer-events: none;
}

.news-template-page .news-template__ambient,
.news-template-page .news-template__ambient::before,
.news-template-page .news-template__ambient::after {
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(63, 165, 202, .14);
  border-radius: 50%;
}

.news-template-page .news-template__ambient {
  z-index: -1;
  top: 88px;
  right: max(-120px, calc((100vw - 1380px) / 2));
  width: 460px;
  height: 460px;
  box-shadow: 0 0 0 72px rgba(194, 233, 245, .09), 0 0 0 148px rgba(194, 233, 245, .045);
}

.news-template-page .news-template__ambient::before {
  top: 50%;
  left: 50%;
  width: 204px;
  height: 204px;
  background: rgba(255, 255, 255, .22);
  transform: translate(-50%, -50%);
  content: "";
}

.news-template-page .news-template__ambient::after {
  top: 630px;
  right: min(80vw, 1100px);
  width: 420px;
  height: 420px;
  content: "";
}

.news-template-page .news-template__shell {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1060px);
  margin: 0 auto;
  padding: 68px 0 110px;
}

.news-template-page .news-template__heading {
  width: min(100%, 850px);
  margin: 0 auto;
}

.news-template-page .news-template__section-name {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  color: #0c739f;
}

.news-template-page .news-template__section-name span:first-child {
  font-size: 1.18rem;
  font-weight: 850;
  letter-spacing: .22em;
}

.news-template-page .news-template__section-name span:last-child {
  color: #174e69;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.news-template-page .news-template__section-name::after {
  width: 70px;
  height: 2px;
  margin-left: 2px;
  background: #6bbbd9;
  content: "";
}

.news-template-page .news-template__meta {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: clamp(42px, 4vw, 58px);
  color: #5d7e8e;
  font-size: .83rem;
  font-weight: 650;
  letter-spacing: .06em;
}

.news-template-page .news-template__category {
  padding: 6px 12px;
  border: 1px solid #b8dce9;
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  color: #37738b;
  font-size: .75rem;
  letter-spacing: .03em;
}

.news-template-page .news-template__heading h1 {
  margin: 20px 0 0;
  color: #164e6a;
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: .035em;
  text-wrap: balance;
}

.news-conference-closure-page .news-template__heading h1 {
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  letter-spacing: .01em;
}

.news-template-page .news-template__heading::after {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: clamp(30px, 3.2vw, 46px);
  background: linear-gradient(90deg, #8ac8df, rgba(138, 200, 223, .18));
  content: "";
}

.news-template-page .news-template__body {
  box-sizing: border-box;
  width: min(100%, 850px);
  margin: 0 auto;
  padding: clamp(38px, 3.8vw, 52px) clamp(32px, 6vw, 70px) clamp(48px, 5vw, 68px);
  background: #fff;
  box-shadow: 10px 14px 28px rgba(39, 105, 132, .18);
  color: #173e52;
  font-size: 1.16rem;
  font-weight: 500;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.news-template-page .news-template__body > :first-child { margin-top: 0; }
.news-template-page .news-template__body > :last-child { margin-bottom: 0; }

.news-template-page .news-template__body p {
  margin: 0 0 1.8em;
}

/* Image-bearing articles share one predictable figure treatment. */
.news-template-page .news-template__featured,
.news-template-page .news-template__body figure {
  margin: 28px 0 38px;
}
.news-template-page .news-template__featured img,
.news-template-page .news-template__body figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
}
.news-template-page .news-template__featured figcaption,
.news-template-page .news-template__body figcaption {
  margin-top: 9px;
  color: #63808e;
  font-size: .76em;
  line-height: 1.6;
}

.news-template-page .news-template__body h2,
.news-template-page .news-template__body h3 {
  color: #185b78;
  font-weight: 750;
  line-height: 1.55;
}

.news-template-page .news-template__body h2 {
  margin: 2.3em 0 .7em;
  padding-bottom: .4em;
  border-bottom: 1px solid #cce5ef;
  font-size: 1.38em;
}

.news-template-page .news-template__body h3 {
  margin: 2em 0 .65em;
  font-size: 1.16em;
}

.news-template-page .news-template__body ul,
.news-template-page .news-template__body ol {
  margin: 0 0 1.8em;
  padding-left: 1.6em;
}

.news-template-page .news-template__body li + li { margin-top: .5em; }
.news-template-page .news-template__body li::marker { color: #168fbe; }

.news-template-page .news-template__body table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.2em 0 2em;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: .9em;
  white-space: nowrap;
}

.news-template-page .news-template__body th,
.news-template-page .news-template__body td {
  padding: .72em 1em;
  border: 1px solid #d7e9ef;
  text-align: left;
}

.news-template-page .news-template__body th {
  background: #edf7fa;
  color: #215a73;
  font-weight: 700;
}

.news-template-page .news-template__body blockquote {
  margin: 1.5em 0 2em;
  padding: 1em 1.25em;
  border-left: 3px solid #58accb;
  background: #f1f9fb;
  color: #355d70;
}

.news-template-page .news-template__body blockquote > :last-child { margin-bottom: 0; }

.news-template-page .news-template__body a {
  color: #0879b3;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.news-template-page .news-template__body a:hover { color: #07577f; }
.news-template-page .news-template__body a:focus-visible,
.news-template-page .news-template__related a:focus-visible,
.news-template-page .news-template__return a:focus-visible { outline: 3px solid #69bbd9; outline-offset: 4px; }

.news-template-page .news-template__related {
  width: min(100%, 850px);
  margin: 56px auto 0;
}

.news-template-page .news-template__related h2 {
  margin: 0 0 18px;
  color: #194e67;
  font-size: 1.2rem;
  font-weight: 750;
}

.news-template-page .news-template__related a {
  display: grid;
  grid-template-columns: 96px 112px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  padding: 19px 2px;
  border-top: 1px solid #d2e6ee;
  color: #24556d;
  text-decoration: none;
}

.news-template-page .news-template__related a:last-child { border-bottom: 1px solid #d2e6ee; }
.news-template-page .news-template__related a:hover strong { color: #0879b3; text-decoration: underline; text-underline-offset: .22em; }
.news-template-page .news-template__related time { color: #688596; font-size: .78rem; }
.news-template-page .news-template__related a span { color: #4e7e93; font-size: .72rem; }
.news-template-page .news-template__related strong { font-size: .92rem; font-weight: 700; line-height: 1.6; }
.news-template-page .news-template__related b { color: #168cba; font-size: 1.2rem; text-align: right; }

.news-template-page .news-template__return {
  width: min(100%, 850px);
  margin: 36px auto 0;
}

.news-template-page .news-template__return a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: #176c92;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}

.news-template-page .news-template__return a:hover { color: #0b5071; }
.news-template-page .news-template__return a span { font-size: 1.25em; line-height: 1; }

@media (max-width: 767px) {
  /* Article titles should occupy only the space required by their content. */
  html body #root main.news-template .news-template__heading {
    height: auto;
    min-height: 0;
    display: block;
  }

  .news-template-page .news-template { min-height: 0; }

  .news-template-page .news-template::after { display: none; }

  .news-template-page .news-template::before {
    top: 130px;
    left: -116px;
    width: 300px;
    height: 262px;
    background-size: 905px auto;
    opacity: .07;
  }

  .news-template-page .news-template__ambient {
    top: 10px;
    right: -130px;
    width: 285px;
    height: 285px;
    opacity: .64;
    box-shadow: 0 0 0 44px rgba(194, 233, 245, .07);
  }

  .news-template-page .news-template__ambient::before { width: 120px; height: 120px; }
  .news-template-page .news-template__ambient::after { display: none; }

  .news-template-page .news-template__shell {
    width: calc(100% - 36px);
    padding: 0 0 58px;
  }

  .news-template-page .news-template__heading {
    padding: 24px 0 28px;
  }

  .news-template-page .news-template__section-name { gap: 10px; }
  .news-template-page .news-template__section-name span:first-child { font-size: .96rem; letter-spacing: .2em; }
  .news-template-page .news-template__section-name span:last-child { font-size: .88rem; }
  .news-template-page .news-template__section-name::after { width: 32px; margin-left: 0; }

  .news-template-page .news-template__meta { gap: 12px; margin-top: 20px; font-size: .75rem; }
  .news-template-page .news-template__category { padding: 5px 10px; font-size: .69rem; }

  .news-template-page .news-template__heading h1 {
    margin-top: 14px;
    font-size: clamp(1.65rem, 6.8vw, 2rem);
    line-height: 1.5;
    letter-spacing: .01em;
  }

  .news-conference-closure-page .news-template__heading h1 {
    font-size: clamp(1.45rem, 5.8vw, 1.8rem);
  }

  .news-template-page .news-template__heading::after { margin-top: 20px; }

  .news-template-page .news-template__body {
    padding: 30px 18px 42px;
    box-shadow: 6px 9px 20px rgba(39, 105, 132, .16);
    font-size: 1.04rem;
    line-height: 1.95;
  }

  .news-template-page .news-template__body p { margin-bottom: 1.65em; }
  .news-template-page .news-template__featured,
  .news-template-page .news-template__body figure { margin: 20px 0 28px; }
  .news-template-page .news-template__featured img,
  .news-template-page .news-template__body figure img { border-radius: 8px; }
  .news-template-page .news-template__body h2 { font-size: 1.25em; }
  .news-template-page .news-template__related { margin-top: 42px; }
  .news-template-page .news-template__related h2 { font-size: 1.06rem; }
  .news-template-page .news-template__related a { grid-template-columns: 1fr 20px; gap: 4px 10px; padding: 16px 2px; }
  .news-template-page .news-template__related time,
  .news-template-page .news-template__related a span,
  .news-template-page .news-template__related strong { grid-column: 1; }
  .news-template-page .news-template__related b { grid-column: 2; grid-row: 1 / 4; }
  .news-template-page .news-template__return { margin-top: 25px; }
}
