/* =========================================================
   Article header / Summary / output controls
   ========================================================= */

.article-category-line {
  margin: 0 0 18px;
  text-align: center;
}

.article-hero-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  width: 100%;
  min-height: 162px;
  overflow: hidden;
  background: #9a6f84;
  border: 1px solid rgba(0,0,0,.04);
}

.article-hero-author {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 162px;
  padding: 18px 18px 20px 22px;
  background: #fff;
  border: 4px solid #9a6f84;
  border-right-width: 5px;
  box-sizing: border-box;
}

.article-hero-author::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 42px;
  height: 42px;
  background: #9a6f84;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.article-author-photo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 11px;
  border-radius: 50%;
  color: #176d67;
  background: #d8e7e8;
  font-size: .7rem;
  font-weight: 900;
}

.article-hero-author-copy {
  position: relative;
  z-index: 1;
}

.article-author-name,
.article-author-role {
  margin: 0;
}

.article-author-name {
  color: #111;
  font-size: .82rem;
  line-height: 1.18;
  font-weight: 800;
}

.article-author-role {
  margin-top: 3px;
  color: #303b40;
  font-size: .76rem;
}

.article-hero-published {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  margin-top: auto;
  color: #7a8290;
  font-size: .72rem;
}

.article-hero-published time {
  color: #7a8290;
  font-weight: 800;
}

.article-hero-main {
  position: relative;
  min-width: 0;
  padding: 14px 18px 14px 24px;
  color: #fff;
}

.article-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: start;
}

.article-hero-title {
  min-width: 0;
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.12;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: normal;
}

.article-feature-brand {
  justify-self: end;
  width: 260px;
  padding-top: 4px;
  color: #fff;
  font-size: clamp(.92rem, 1.5vw, 1.3rem);
  line-height: 1.1;
  white-space: nowrap;
  text-align: right;
  text-transform: uppercase;
}

.article-hero-excerpt {
  width: calc(100% - 282px);
  max-width: none;
  margin: 28px 0 0;
  padding: 0;
  color: #fff;
  background: transparent;
  font-size: .82rem;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: anywhere;
}

.article-hero-controls {
  position: absolute;
  right: 18px;
  bottom: 11px;
  display: grid;
  justify-items: end;
  gap: 16px;
}

.article-output-actions {
  display: flex;
  gap: 7px;
}

.article-output-actions button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 6px;
  color: #173f3c;
  background: #fff;
  font: inherit;
  font-size: .68rem;
  font-weight: 800;
  cursor: pointer;
}

.article-output-actions button:hover,
.article-output-actions button:focus-visible {
  background: #d8e7e8;
}

.article-summary-jump {
  color: #fff;
  font-size: .67rem;
  font-weight: 700;
  text-decoration: none;
}

.article-summary-jump:hover,
.article-summary-jump:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-summary {
  max-width: 890px;
  margin: 64px auto 70px;
  padding: 26px 28px;
  border-top: 4px solid #2d9a92;
  background: #f5f9f9;
  scroll-margin-top: 24px;
}

.article-summary h2 {
  margin: 0 0 10px;
  color: #173f3c;
  font-size: 1.7rem;
}

.article-summary-content {
  color: #48595a;
  line-height: 1.65;
}

.article-summary-content:empty::after {
  content: "";
  display: block;
  min-height: 1px;
}

.article-print-header,
.article-print-footer,
.article-print-title {
  display: none;
}

@media (max-width: 900px) {
  .article-hero-card {
    grid-template-columns: 145px minmax(0, 1fr);
  }

  .article-hero-top {
    grid-template-columns: minmax(0, 1fr) 205px;
    gap: 16px;
  }

  .article-feature-brand {
    width: 205px;
    font-size: .9rem;
  }

  .article-hero-excerpt {
    width: calc(100% - 221px);
    margin-top: 20px;
  }
}

@media (max-width: 680px) {
  .article-hero-card {
    display: block;
  }

  .article-hero-author {
    min-height: 0;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 10px;
    align-items: center;
    border-right-width: 4px;
  }

  .article-hero-author::after {
    display: none;
  }

  .article-author-photo {
    margin: 0;
  }

  .article-hero-published {
    margin: 0;
    text-align: right;
  }

  .article-hero-main {
    padding: 18px;
  }

  .article-hero-top {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .article-feature-brand {
    justify-self: start;
    width: auto;
    white-space: normal;
    text-align: left;
  }

  .article-hero-excerpt {
    width: 100%;
    box-sizing: border-box;
    margin-top: 18px;
  }

  .article-hero-controls {
    position: static;
    margin-top: 20px;
    justify-items: start;
    gap: 12px;
  }

  .article-output-actions {
    width: 100%;
  }

  .article-output-actions button {
    flex: 1;
  }

  .article-summary {
    margin-top: 44px;
    padding: 22px 18px;
  }
}

/* =========================================================
   PRINT / SAVE-AS-PDF OUTPUT
   ========================================================= */

@page {
  size: auto;
  margin: 1.15in .68in .82in;
}

@media print {
  html,
  body {
    background: #fff !important;
    color: #000 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 10.5pt;
  }

  body > header,
  body > footer,
  .site-header,
  .site-footer,
  .cookie-consent,
  #crp-cookie-consent,
  .article-header,
  .article-screen-only,
  .newsletter-popup,
  .article-signup,
  .related-articles,
  script {
    display: none !important;
  }

  .single-article,
  .single-article article,
  .article-body-wrap,
  .article-print-content,
  .article-body {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  .article-print-header {
    position: fixed;
    top: -.87in;
    left: 0;
    right: 0;
    display: block !important;
    padding-bottom: 8px;
    border-bottom: 1px solid #777;
    background: #fff !important;
    color: #000 !important;
  }

  .article-print-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    font-size: 10pt;
  }

  .article-print-mark {
    display: inline-grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border: 1.5px solid #000;
    border-radius: 50%;
    font-size: 7.5pt;
    font-weight: 800;
  }

  .article-print-meta {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    font-size: 8.5pt;
  }

  .article-print-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -.56in;
    display: block !important;
    padding-top: 7px;
    border-top: 1px solid #888;
    background: #fff !important;
    color: #333 !important;
    font-size: 7.5pt;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .article-print-title {
    display: block !important;
    margin: 0 0 18pt !important;
    color: #000 !important;
    font-size: 19pt !important;
    line-height: 1.18 !important;
    font-weight: 800 !important;
    text-align: left !important;
    letter-spacing: 0 !important;
  }

  .article-body,
  .article-body p,
  .article-body li,
  .article-body blockquote p,
  .article-body td,
  .article-body th {
    color: #000 !important;
    font-size: 10.5pt !important;
    line-height: 1.48 !important;
  }

  .article-body p {
    margin: 0 0 10pt !important;
  }

  .article-body h2 {
    margin: 17pt 0 7pt !important;
    color: #000 !important;
    font-size: 14.5pt !important;
    page-break-after: avoid;
    break-after: avoid;
  }

  .article-body h3 {
    margin: 14pt 0 6pt !important;
    color: #000 !important;
    font-size: 12pt !important;
    page-break-after: avoid;
    break-after: avoid;
  }

  .article-body a {
    color: #000 !important;
    text-decoration: underline !important;
  }

  .article-body img,
  .article-body figure {
    max-width: 100% !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .article-body blockquote,
  .article-body table,
  .article-body ul,
  .article-body ol {
    page-break-inside: auto;
  }

  .article-references {
    page-break-before: auto;
    break-before: auto;
  }

  .article-summary {
    max-width: none !important;
    margin: 22pt 0 0 !important;
    padding: 14pt 0 0 !important;
    border: 0 !important;
    border-top: 1px solid #000 !important;
    background: transparent !important;
    color: #000 !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .article-summary h2 {
    color: #000 !important;
    font-size: 14pt !important;
  }

  .article-summary-content:empty::after {
    min-height: 0;
  }
}


/* =========================================================
   Article newsletter signup
   ========================================================= */

.article-signup {
  max-width: 720px;
  margin: 74px auto 62px;
  padding: 30px 32px;
  color: #173f3c;
  background:
    radial-gradient(circle at 100% 0, rgba(45,154,146,.13), transparent 32%),
    #eef6f6;
  border: 1px solid #c5dada;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(23,63,60,.08);
}

.article-signup-badge {
  width: fit-content;
  margin-bottom: 9px;
  padding: 5px 9px;
  color: #176d67;
  background: #d8e7e8;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.article-signup h2 {
  margin: 0 0 10px;
  color: #173f3c;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.16;
}

.article-signup > p {
  max-width: 620px;
  margin: 0 0 20px;
  color: #526665;
  font-size: .98rem;
  line-height: 1.6;
}

.article-newsletter-form {
  margin: 0;
}

.article-newsletter-input-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 9px;
}

.article-newsletter-input-row input {
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  color: #263b3a;
  background: #fff;
  border: 1px solid #b8cccc;
  border-radius: 9px;
  font: inherit;
}

.article-newsletter-input-row input:focus {
  border-color: #2d9a92;
  outline: 3px solid rgba(45,154,146,.15);
}

.article-newsletter-input-row button {
  min-height: 48px;
  margin: 0;
  padding: 0 18px;
  color: #fff;
  background: #2d9a92;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.article-newsletter-input-row button:hover,
.article-newsletter-input-row button:focus-visible {
  background: #227f78;
}

.article-newsletter-note {
  margin: 9px 0 0 !important;
  color: #6b7b7a !important;
  font-size: .78rem !important;
}

.article-newsletter-message {
  margin-top: 12px;
  padding: 10px 12px;
  color: #155f38;
  background: #e4f4eb;
  border: 1px solid #b9dfca;
  border-radius: 8px;
  font-size: .86rem;
  line-height: 1.45;
}

.article-newsletter-message.is-error {
  color: #842626;
  background: #fff0f0;
  border-color: #e3b9b9;
}

.article-newsletter-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.article-newsletter-modal {
  width: min(640px, calc(100% - 30px));
  max-height: min(86vh, 760px);
  padding: 0;
  color: #263b3a;
  background: transparent;
  border: 0;
  border-radius: 16px;
}

.article-newsletter-modal::backdrop {
  background: rgba(7,24,23,.66);
  backdrop-filter: blur(3px);
}

.article-newsletter-modal-card {
  position: relative;
  overflow-y: auto;
  max-height: min(86vh, 760px);
  padding: 30px;
  background: #fff;
  border: 1px solid #c9dada;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}

.article-newsletter-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #546665;
  background: #eef5f5;
  border: 0;
  border-radius: 50%;
  font-size: 1.35rem;
  cursor: pointer;
}

.article-newsletter-modal-kicker {
  margin: 0 0 5px;
  color: #2d9a92;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-newsletter-modal h2 {
  margin: 0 42px 14px 0;
  color: #173f3c;
  font-size: 1.75rem;
}

.article-newsletter-modal p {
  color: #536665;
  line-height: 1.58;
}

.article-newsletter-modal a {
  color: #176d67;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-newsletter-agreement {
  margin: 18px 0;
  padding: 17px 18px;
  background: #f5f9f9;
  border-left: 4px solid #2d9a92;
  border-radius: 8px;
}

.article-newsletter-agreement h3 {
  margin: 0 0 8px;
  color: #173f3c;
  font-size: 1rem;
}

.article-newsletter-agreement ul {
  margin: 0;
  padding-left: 20px;
  color: #536665;
  line-height: 1.55;
}

.article-newsletter-agreement li + li {
  margin-top: 7px;
}

.article-newsletter-support {
  font-size: .88rem;
}

.article-newsletter-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid #d8e7e8;
}

.article-newsletter-modal-actions button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.article-newsletter-cancel {
  color: #35504e;
  background: #eef5f5;
  border: 1px solid #c8d9da;
}

.article-newsletter-agree {
  color: #fff;
  background: #2d9a92;
  border: 1px solid #2d9a92;
}

.article-newsletter-agree:hover,
.article-newsletter-agree:focus-visible {
  background: #227f78;
}

@media (max-width: 600px) {
  .article-signup {
    margin-top: 50px;
    padding: 22px 18px;
  }

  .article-newsletter-input-row {
    grid-template-columns: 1fr;
  }

  .article-newsletter-modal-card {
    padding: 25px 20px;
  }

  .article-newsletter-modal-actions {
    flex-direction: column-reverse;
  }

  .article-newsletter-modal-actions button {
    width: 100%;
  }
}

@media print {
  .article-newsletter-modal {
    display: none !important;
  }
}

/* =========================================================
   Article language toggle
   ========================================================= */

.article-reader-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.article-language-toggle {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.article-language-toggle:hover,
.article-language-toggle:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-language-toggle:disabled {
  cursor: wait;
  opacity: .66;
}

@media (max-width: 680px) {
  .article-reader-actions {
    justify-content: flex-start;
  }
}


/* Search-term highlighting when an article is opened from article search */
.article-search-highlight {
  padding: 0 .08em;
  border-radius: 2px;
  background: #fff1a8;
  color: inherit;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.article-search-highlight-notice {
  margin: 0 0 22px;
  padding: 11px 14px;
  border-left: 4px solid #2d9a92;
  border-radius: 7px;
  background: #eef7f6;
  color: #315554;
  font-size: .9rem;
  font-weight: 700;
}
