/* WordPress chrome for News archives / singles / hubs on BRR */

@font-face {
  font-family: "BRR Din";
  src: url("../fonts/din-next-w01-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BRR Helvetica";
  src: url("../fonts/helvetica-w01-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* On WP content pages (no Wix PAGES_CONTAINER), stop footer from eating the viewport */
body.brr-site:not(:has(.PAGES_CONTAINER)) #masterPage.mesh-layout {
  display: flex !important;
  flex-direction: column;
  min-height: 100vh;
  height: auto !important;
}

body.brr-site:not(:has(.PAGES_CONTAINER)) #SITE_HEADER {
  flex: 0 0 auto;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 85px;
}

body.brr-site:not(:has(.PAGES_CONTAINER)) .brr-wp-main {
  flex: 1 0 auto;
  width: 100%;
}

body.brr-site:not(:has(.PAGES_CONTAINER)) #SITE_FOOTER {
  flex: 0 0 auto !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin-top: auto;
}

body.brr-site:not(:has(.PAGES_CONTAINER)) [data-mesh-id="SITE_FOOTERinlineContent-gridContainer"] {
  grid-template-rows: auto auto !important;
  min-height: 0 !important;
  padding: 28px 0 32px;
}

body.brr-site:not(:has(.PAGES_CONTAINER)) [data-mesh-id="SITE_FOOTERinlineContent-gridContainer"] > [id="comp-k4kltxay"],
body.brr-site:not(:has(.PAGES_CONTAINER)) [data-mesh-id="SITE_FOOTERinlineContent-gridContainer"] > [id="comp-jfurvk6a"] {
  margin-left: auto !important;
  margin-right: auto !important;
  left: 0 !important;
  justify-self: center !important;
}

/* Main news / article surface */
.brr-wp-main {
  --brr-ink: #083249;
  --brr-muted: #4a5c66;
  --brr-line: #d5dde2;
  --brr-accent: #c8102e;
  --brr-blue: #2a70de;
  --brr-bg: #f4f7f9;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 64px;
  color: var(--brr-ink);
  background: linear-gradient(180deg, #eef3f6 0%, #fff 220px);
  font-family: "BRR Din", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
}

.brr-wp-main__inner {
  box-sizing: border-box;
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 0;
}

.brr-wp-main h1 {
  font-family: "BRR Helvetica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brr-ink);
}

.brr-wp-main h2 {
  font-family: "BRR Helvetica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin: 2.5rem 0 1.25rem;
  font-weight: 700;
  color: var(--brr-ink);
}

.brr-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.95rem;
  color: var(--brr-muted);
  margin-bottom: 1.75rem;
}

.brr-crumbs a {
  color: var(--brr-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.brr-crumbs span {
  opacity: 0.45;
}

.brr-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brr-accent);
  font-family: "BRR Helvetica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 0 0 0.5rem;
}

.brr-lead {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.55;
  color: var(--brr-muted);
  margin: 0 0 2rem;
  max-width: 42rem;
}

.brr-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 0.5rem 0 2.5rem;
}

.brr-topic-card {
  border: 0;
  border-top: 4px solid var(--brr-accent);
  background: #fff;
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: 0 1px 0 rgba(8, 50, 73, 0.06);
}

.brr-topic-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
  font-family: "BRR Helvetica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
}

.brr-topic-card p {
  margin: 0 0 1rem;
  color: var(--brr-muted);
  font-size: 1rem;
  line-height: 1.45;
}

.brr-topic-card a {
  color: var(--brr-ink);
}

.brr-cat-feed {
  margin-top: 0.5rem;
}

.brr-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--brr-ink);
}

.brr-news-list li {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--brr-line);
}

.brr-news-list time {
  color: var(--brr-muted);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brr-news-list a {
  color: var(--brr-ink);
  text-decoration: none;
  font-family: "BRR Helvetica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.3;
}

.brr-news-list a:hover {
  color: var(--brr-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.brr-empty {
  color: var(--brr-muted);
  font-size: 1.1rem;
  padding: 1.5rem 0;
}

.brr-article {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.brr-article__cover {
  margin: 1.75rem 0 2rem;
  max-width: 100%;
}

.brr-article__cover-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.brr-article__content,
.brr-wp-main .entry-content {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #243943;
  min-width: 0;
  max-width: 100%;
  overflow-x: visible;
}

/* Tables: BRR article chrome (article-content-styles is dequeued) */
.brr-article__content .ptr-table-scroll,
.brr-article__content .table-wrapper,
.brr-article__content .wp-block-table,
.brr-wp-main .entry-content .ptr-table-scroll,
.brr-wp-main .entry-content .table-wrapper,
.brr-wp-main .entry-content .wp-block-table {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 1.5rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(8, 50, 73, 0.35) transparent;
  border: 1px solid var(--brr-line, #d5dde2);
  background: #fff;
}

.brr-article__content .ptr-table-scroll::-webkit-scrollbar,
.brr-article__content .table-wrapper::-webkit-scrollbar,
.brr-article__content .wp-block-table::-webkit-scrollbar,
.brr-wp-main .entry-content .ptr-table-scroll::-webkit-scrollbar,
.brr-wp-main .entry-content .table-wrapper::-webkit-scrollbar,
.brr-wp-main .entry-content .wp-block-table::-webkit-scrollbar {
  height: 6px;
}

.brr-article__content .ptr-table-scroll::-webkit-scrollbar-thumb,
.brr-article__content .table-wrapper::-webkit-scrollbar-thumb,
.brr-article__content .wp-block-table::-webkit-scrollbar-thumb,
.brr-wp-main .entry-content .ptr-table-scroll::-webkit-scrollbar-thumb,
.brr-wp-main .entry-content .table-wrapper::-webkit-scrollbar-thumb,
.brr-wp-main .entry-content .wp-block-table::-webkit-scrollbar-thumb {
  background: rgba(8, 50, 73, 0.35);
  border-radius: 4px;
}

.brr-article__content table,
.brr-wp-main .entry-content table {
  display: table;
  width: max-content;
  min-width: 100%;
  max-width: none;
  margin: 0;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--brr-ink, #083249);
  background: #fff;
}

.brr-article__content thead,
.brr-wp-main .entry-content thead {
  background: #083249;
  color: #fff;
}

.brr-article__content th,
.brr-article__content td,
.brr-wp-main .entry-content th,
.brr-wp-main .entry-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--brr-line, #d5dde2);
  white-space: nowrap;
}

.brr-article__content th,
.brr-wp-main .entry-content th {
  font-family: "BRR Helvetica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #083249;
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.brr-article__content th[colspan],
.brr-wp-main .entry-content th[colspan] {
  text-align: center;
}

/* Plain first-row headers (no <thead>/<th> in imported content) */
.brr-article__content table:not(:has(thead)) > tbody > tr:first-child td,
.brr-article__content table:not(:has(thead)) > tr:first-child td,
.brr-wp-main .entry-content table:not(:has(thead)) > tbody > tr:first-child td,
.brr-wp-main .entry-content table:not(:has(thead)) > tr:first-child td {
  font-family: "BRR Helvetica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #083249;
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.brr-article__content tbody tr:nth-child(even) td,
.brr-wp-main .entry-content tbody tr:nth-child(even) td {
  background: #f4f7f9;
}

.brr-article__content table:not(:has(thead)) > tbody > tr:first-child:nth-child(even) td,
.brr-wp-main .entry-content table:not(:has(thead)) > tbody > tr:first-child:nth-child(even) td {
  background: #083249;
}

.brr-article__content tbody tr:last-child td,
.brr-wp-main .entry-content tbody tr:last-child td {
  border-bottom: none;
}

.brr-article__content .ptr-table-scroll table,
.brr-article__content .table-wrapper table,
.brr-article__content .wp-block-table table,
.brr-wp-main .entry-content .ptr-table-scroll table,
.brr-wp-main .entry-content .table-wrapper table,
.brr-wp-main .entry-content .wp-block-table table {
  margin: 0;
}

@media (max-width: 720px) {
  .brr-article__content th,
  .brr-article__content td,
  .brr-wp-main .entry-content th,
  .brr-wp-main .entry-content td {
    padding: 0.65rem 0.8rem;
    font-size: 0.95rem;
  }
}

.brr-article__content p,
.brr-wp-main .entry-content p {
  margin: 0 0 1.15rem;
}

.brr-article__content img,
.brr-article__content video,
.brr-article__content iframe,
.brr-wp-main .entry-content img,
.brr-wp-main .entry-content video,
.brr-wp-main .entry-content iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

.brr-article__content figure,
.brr-article__content .wp-block-image,
.brr-wp-main .entry-content figure,
.brr-wp-main .entry-content .wp-block-image {
  max-width: 100%;
  margin: 1.25rem 0;
}

.brr-article__content figure img,
.brr-article__content .wp-block-image img,
.brr-wp-main .entry-content figure img,
.brr-wp-main .entry-content .wp-block-image img {
  width: 100%;
}

.brr-meta {
  font-size: 1rem;
  color: var(--brr-muted);
  margin-bottom: 1.25rem;
}

.brr-meta__sep {
  margin: 0 0.4rem;
}

.navigation.pagination {
  margin-top: 2rem;
  font-family: "BRR Helvetica", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* 404 */
.brr-404 {
  width: 100%;
  max-width: 42rem;
  padding: 1rem 0 4rem;
}

.brr-404 .brr-kicker {
  margin-top: 0.25rem;
}

.brr-404__lead {
  margin-bottom: 2rem;
}

.brr-404__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.brr-404__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  background: var(--brr-accent);
  color: #fff !important;
  font-family: "BRR Helvetica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 0;
  transition: background 0.2s ease;
}

.brr-404__button:hover,
.brr-404__button:focus-visible {
  background: #a40d25;
  color: #fff !important;
}

.brr-404__link {
  color: var(--brr-ink) !important;
  font-family: "BRR Helvetica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.brr-404__link:hover,
.brr-404__link:focus-visible {
  color: var(--brr-blue) !important;
}

@media (max-width: 720px) {
  .brr-wp-main__inner {
    width: calc(100% - 32px);
    padding-top: 28px;
  }

  .brr-news-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1.15rem 0;
  }

  .brr-wp-main h1 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }
}

/* Keep Wix mesh pages full-bleed under header/footer */
body.brr-site .PAGES_CONTAINER {
  position: relative;
}
