/* CentraFIN's news (after style.css and landing.css, whose tokens, bar and footer it uses): laid
   out as a newsroom, the articles in front, then all of them in rows; an article in a reading
   column. Light from top to bottom, nothing moves (style.css's guard). */

.news {
  padding-block: clamp(40px, 5vw, 72px) var(--section-space);
}

/* The list's head */

.news-head {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.news-head h1 {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.news-intro {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.5;
}

/* Category and date, on every card */

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

.news-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--fill-strong);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

/* The art of a card without an image: the mark on its light. */

.news-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 10%, rgb(176 144 245 / 0.28), transparent 60%),
    radial-gradient(120% 90% at 10% 100%, rgb(104 215 250 / 0.3), transparent 55%),
    var(--glow);
}

.news-art .brand-mark {
  width: clamp(72px, 22%, 132px);
  height: auto;
  opacity: 0.9;
}

.news-tile-media img,
.featured-media img,
.article-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* In front: one article at a time */

.news-featured {
  margin-top: clamp(32px, 4vw, 56px);
}

.featured-link {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 56px);
  align-items: center;
  color: inherit;
}

.featured-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--tile-radius);
  background: var(--fill);
}

.featured-body {
  display: grid;
  gap: 16px;
}

.featured-body h2 {
  font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.032em;
}

.featured-text {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.featured-link:hover h2,
.featured-link:focus-visible h2 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.featured-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.featured-count {
  margin: 0 8px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.featured-count [data-slide-current] {
  color: var(--text);
  font-weight: 650;
}

.featured-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

.featured-button:hover,
.featured-button:focus-visible {
  border-color: var(--line-hover);
  background: var(--fill);
}

.featured-button .glyph {
  width: 18px;
  height: 18px;
}

/* Tiles: under the carousel, under an article */

.news-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
}

.news-tile {
  display: grid;
  align-content: start;
  gap: 12px;
  color: inherit;
}

.news-tile-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--fill);
}

.news-tile h3 {
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.news-tile:hover h3,
.news-tile:focus-visible h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Every article, in rows */

.news-list {
  margin-top: clamp(64px, 8vw, 112px);
}

.news-list-title {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.025em;
}

.news-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.news-chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 550;
  white-space: nowrap;
}

.news-chip:hover,
.news-chip:focus-visible {
  border-color: var(--line-hover);
  color: var(--text);
}

.news-chip[aria-current="page"] {
  border-color: var(--action);
  background: var(--action);
  color: var(--action-text);
}

.news-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.news-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 550;
  cursor: pointer;
}

.news-sort:hover,
.news-sort:focus-visible,
.news-sort[aria-expanded="true"] {
  border-color: var(--line-hover);
}

.news-sort .glyph {
  width: 16px;
  height: 16px;
}

.news-sort-menu {
  position: fixed;
  inset: auto;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-menu);
}

.news-sort-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}

.news-sort-menu a:hover,
.news-sort-menu a:focus-visible {
  background: var(--fill);
}

.news-sort-menu a[aria-current] {
  font-weight: 650;
}

.news-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.news-row {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 3fr) minmax(0, 9.5rem) minmax(0, 8.5rem);
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
}

.news-row-head {
  padding: 14px 0;
  color: var(--subtle);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-rows a.news-row:hover,
.news-rows a.news-row:focus-visible {
  background: linear-gradient(90deg, transparent, var(--fill) 8%, var(--fill) 92%, transparent);
}

.news-rows a.news-row:hover .news-row-title,
.news-rows a.news-row:focus-visible .news-row-title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.news-row-title {
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.news-row-text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-row-date {
  color: var(--muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  text-align: end;
  white-space: nowrap;
}

.news-row-head span:last-child {
  text-align: end;
}

.news-more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.news-empty {
  margin: 0;
  padding: 48px 0;
  color: var(--muted);
  text-align: center;
}

/* An article */

.article-head {
  display: grid;
  gap: 18px;
  max-width: 880px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 550;
}

.crumbs a:hover,
.crumbs a:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crumbs .glyph {
  width: 14px;
  height: 14px;
  color: var(--subtle);
}

.article-head h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.038em;
}

.article-lede {
  margin: 0;
  color: var(--text-2);
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  line-height: 1.5;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.article-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.article-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text-2);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 550;
  cursor: pointer;
}

.article-copy:hover,
.article-copy:focus-visible {
  border-color: var(--line-hover);
  color: var(--text);
}

.article-copy .glyph {
  width: 16px;
  height: 16px;
}

.article-cover {
  margin-top: clamp(32px, 4vw, 48px);
  margin-bottom: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--tile-radius);
  background: var(--fill);
  aspect-ratio: 16 / 9;
}

.article-layout {
  max-width: 880px;
  margin-top: clamp(32px, 4vw, 56px);
}

/* The text in a reading measure, its left edge the title's. */
.article-layout > .prose,
.article-disclaimer {
  max-width: 720px;
}

.article-disclaimer {
  margin-top: 48px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--fill);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.article-more {
  margin-top: clamp(72px, 9vw, 120px);
}

.article-more-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.article-more-head h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.025em;
}

.article-more .news-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.news-link {
  color: var(--accent);
  font-weight: 600;
}

.news-link:hover,
.news-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The article's text */

.prose {
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.72;
}

.prose > :first-child {
  margin-top: 0;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose figure,
.prose .table-wrap,
.prose pre,
.prose .callout {
  margin: 0 0 1.35em;
}

.prose h2 {
  margin: 2.1em 0 0.7em;
  font-size: 1.75rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.025em;
  scroll-margin-top: calc(var(--bar) + 16px);
}

.prose h3 {
  margin: 1.8em 0 0.6em;
  font-size: 1.3125rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.015em;
  scroll-margin-top: calc(var(--bar) + 16px);
}

.prose h4 {
  margin: 1.6em 0 0.5em;
  font-size: 1.0625rem;
  font-weight: 700;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 3px;
}

.prose a:hover,
.prose a:focus-visible {
  color: var(--accent-hover);
  text-decoration-color: currentColor;
}

.prose ul,
.prose ol {
  padding-inline-start: 1.4em;
}

.prose li + li {
  margin-top: 0.45em;
}

.prose li::marker {
  color: var(--subtle);
}

.prose strong {
  font-weight: 650;
}

.prose blockquote {
  padding-inline-start: 20px;
  border-inline-start: 3px solid var(--line-strong);
  color: var(--text-2);
}

.prose blockquote > :last-child {
  margin-bottom: 0;
}

.prose hr {
  height: 1px;
  margin: 2.5em 0;
  border: 0;
  background: var(--line);
}

.prose code {
  padding: 0.12em 0.4em;
  border-radius: var(--radius-sm);
  background: var(--fill-strong);
  font-family: var(--mono);
  font-size: 0.86em;
}

.prose pre {
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--fill);
  font-size: 0.875rem;
  line-height: 1.6;
}

.prose pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}

.prose figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
}

.prose p img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.prose figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

.prose .table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: 10px 14px;
  text-align: start;
  vertical-align: top;
}

.prose th {
  background: var(--fill);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 650;
  white-space: nowrap;
}

.prose td {
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.prose .align-right {
  text-align: end;
}

.prose .align-center {
  text-align: center;
}

.callout {
  padding: 16px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  font-size: 1rem;
  line-height: 1.6;
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout-title {
  margin: 0 0 6px !important;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.callout-note {
  border-color: rgb(16 97 166 / 0.14);
  background: var(--info-soft);
}

.callout-note .callout-title {
  color: var(--info);
}

.callout-tip {
  border-color: rgb(0 131 57 / 0.14);
  background: var(--gain-soft);
}

.callout-tip .callout-title {
  color: var(--gain);
}

.callout-important {
  border-color: rgb(107 63 212 / 0.16);
  background: var(--loss-soft);
}

.callout-important .callout-title {
  color: var(--loss);
}

.callout-warning {
  border-color: rgb(183 55 0 / 0.16);
  background: var(--warning-soft);
}

.callout-warning .callout-title {
  color: var(--warning);
}

.callout-caution {
  border-color: rgb(188 0 22 / 0.14);
  background: var(--negative-soft);
}

.callout-caution .callout-title {
  color: var(--negative);
}

.note-ref {
  font-size: 0.72em;
  line-height: 0;
}

.note-ref a {
  padding: 0 0.15em;
  text-decoration: none !important;
}

.notes {
  margin-top: 3em;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.notes-title {
  margin: 0 0 12px !important;
  font-size: 0.8125rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}

.notes ol {
  margin: 0;
}

.note-back {
  margin-inline-start: 4px;
  text-decoration: none !important;
}

/* A draft's preview: what it is, over the page */

.news-preview {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 16px;
  background: var(--action);
  color: var(--action-text);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}

.news-preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #68d7fa;
}

.news-preview ~ .site-bar {
  top: 34px;
}

/* The bar's link to the news, when it is shown */

.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* Narrower screens */

@media (max-width: 1080px) {
  .news-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-row {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 2fr) minmax(0, 8rem) minmax(0, 7.5rem);
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .featured-link {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .news-row-head {
    display: none;
  }

  .news-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title title"
      "text text"
      "category date";
    gap: 8px 16px;
    align-items: center;
    padding: 18px 0;
  }

  .news-row-title {
    grid-area: title;
  }

  .news-row-text {
    grid-area: text;
  }

  .news-row-category {
    grid-area: category;
  }

  .news-row-date {
    grid-area: date;
  }
}

@media (max-width: 559px) {
  .news-tiles,
  .article-more .news-tiles {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-tools {
    justify-content: space-between;
    width: 100%;
  }

  .prose {
    font-size: 1.0625rem;
  }

  .prose h2 {
    font-size: 1.5rem;
  }

  .news-preview ~ .site-bar {
    top: 34px;
  }
}

/* Scripts set tight or tall */

html:is(:lang(ja), :lang(ko), :lang(zh)) .news :is(h1, h2, h3, .news-row-title) {
  letter-spacing: 0;
}

html:is(:lang(ja), :lang(ko), :lang(zh), :lang(th), :lang(hi), :lang(ar)) .prose {
  line-height: 1.85;
}
