/* Archives at NCBS: site-wide styles (loaded on every page). */

.navbar .nav-link {
  color: #1f2430;
  font-size: .9rem;
  border-bottom: 3px solid transparent;  /* reserves space so the menu doesn't jump */
}
.navbar .nav-link:hover,
.navbar .nav-link:focus-visible,
.navbar .nav-link.active,
.navbar .nav-link.is-active {
  color: #7a3b41;
  border-bottom-color: #7a3b41;
}

/* ---- Header: match the reference site ---- */
#navbar-main {
  background: #fff !important;
  border-bottom: 1px solid #e3e3e3;
  padding: 0;
  min-height: 78px;
}
#navbar-main > .container,
#navbar-main > .container-fluid {
  max-width: none;
  width: 100%;
  padding-left: 12px;
  padding-right: 12px;
}
#navbar-main .navbar-collapse { justify-content: flex-end; }
#navbar-main .navbar-nav { margin-left: auto; align-items: stretch; }
#navbar-main .navbar-nav .nav-link {
  font-size: .8rem;
  padding: 1.75rem .65rem;               /* tall links so the underline sits on the header edge */
  border-bottom: 3px solid transparent;
}
#navbar-main .navbar-nav .nav-link:hover,
#navbar-main .navbar-nav .nav-link:focus-visible,
#navbar-main .navbar-nav .nav-link.active,
#navbar-main .navbar-nav .nav-link.is-active {
  color: #7a3b41;
  border-bottom-color: #7a3b41;
}

/* ---- Header full width: logo far left, menu far right ---- */
header .navbar > div,
nav.navbar > .container,
nav.navbar > .container-fluid {
  max-width: none !important;
  width: 100% !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}
nav.navbar .navbar-collapse { justify-content: flex-end !important; }
nav.navbar .navbar-nav { margin-left: auto !important; }

/* ---- Slides from content (view) ---- */
.home-slides__media { position: relative; overflow: hidden; }
.home-slides__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.home-slides__media--empty { background: #d9d2cf url("../images/home-banner.svg") center / cover no-repeat; }
.home-slides__text .field, .home-slides__text p { font-size: .875rem; }

/* ---- Events from content (view) ---- */
.home-events__list { list-style: none; padding: 0; margin: 0; }
.home-event__title a { color: inherit; text-decoration: none; }
.home-event__title a:hover, .home-event__title a:focus-visible { color: #7a3b41; text-decoration: underline; }
.home-event__org { font-size: .85rem; color: #4a4f5c; margin: 0 0 .25rem; }
.home-event__desc { font-size: .9rem; }
.home-event__desc p:last-child { margin-bottom: 0; }

/* ================= Footer (built from menus and blocks) ================= */
footer:has(#block-archives-bs5-footer-links) {
  background: #1b1e2e;
  color: #e9eaf0;
  font-size: .875rem;
  padding: 2.5rem 1rem 2rem;
  margin-top: 3rem;
}
footer:has(#block-archives-bs5-footer-links) a { color: #fff; text-decoration: none; }
footer:has(#block-archives-bs5-footer-links) a:hover { text-decoration: underline; }
footer:has(#block-archives-bs5-footer-links) a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Three columns: links | address | social */
*:has(> #block-archives-bs5-footer-links) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1150px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  *:has(> #block-archives-bs5-footer-links) { grid-template-columns: 1fr 2fr auto; gap: 3rem; }
}

/* Links column */
#block-archives-bs5-footer-links ul { list-style: none; margin: 0; padding: 0; }
#block-archives-bs5-footer-links li { margin: 0 0 .5rem; }
#block-archives-bs5-footer-links .nav-link { padding: 0; color: #fff; }

/* Address column */
#block-archives-bs5-footer-info p { margin: 0 0 .35rem; }
#block-archives-bs5-footer-info .footer-copy { margin-top: 1rem; color: #b9bccb; }

/* Social icons (text is kept for screen readers, icons come from Bootstrap Icons) */
#block-archives-bs5-footer-social ul { list-style: none; display: flex; gap: .75rem; margin: 0; padding: 0; }
#block-archives-bs5-footer-social li { margin: 0; }
#block-archives-bs5-footer-social a {
  font-size: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  padding: 0;
}
#block-archives-bs5-footer-social a:hover { background: rgba(255, 255, 255, .28); text-decoration: none; }
#block-archives-bs5-footer-social a::before {
  font-family: "bootstrap-icons"; font-style: normal; font-weight: normal;
  font-size: 1.15rem; line-height: 1;
  content: "\f470";                                    /* generic link icon */
}
#block-archives-bs5-footer-social a[href*="facebook.com"]::before  { content: "\f344"; }
#block-archives-bs5-footer-social a[href*="twitter.com"]::before,
#block-archives-bs5-footer-social a[href*="x.com"]::before         { content: "\f8db"; }
#block-archives-bs5-footer-social a[href*="instagram.com"]::before { content: "\f437"; }
#block-archives-bs5-footer-social a[href*="youtube.com"]::before   { content: "\f62b"; }
#block-archives-bs5-footer-social a[href*="linkedin.com"]::before  { content: "\f472"; }

/* ---- Footer fixes ---- */
/* Block titles stay in the page for screen readers but are not shown. */
#block-archives-bs5-footer-links > h2,
#block-archives-bs5-footer-social > h2 {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* Icons in a row, links in a column. */
#block-archives-bs5-footer-social ul { flex-direction: row !important; flex-wrap: wrap; }
#block-archives-bs5-footer-links ul { flex-direction: column !important; }

/* ================= Footer v2: match the reference ================= */
footer:has(#block-archives-bs5-footer-links) {
  border-top: 5px solid #e4e4e4;
  font-size: .75rem;
  line-height: 1.5;
  padding: 2.25rem 1rem 2rem;
  color: #e4e8f2;
}

/* Layout: links | address | copyright + icons | (empty) */
*:has(> #block-archives-bs5-footer-links) { row-gap: 1.25rem; }
@media (min-width: 768px) {
  *:has(> #block-archives-bs5-footer-links) {
    grid-template-columns: 1fr 1.2fr 1fr .8fr;
    column-gap: 1.5rem;
    row-gap: 0;
    max-width: 1190px;
    align-items: start;
  }
  #block-archives-bs5-footer-links     { grid-column: 1; grid-row: 1 / span 2; }
  #block-archives-bs5-footer-info      { grid-column: 2; grid-row: 1 / span 2; }
  #block-archives-bs5-footer-copyright { grid-column: 3; grid-row: 1; }
  #block-archives-bs5-footer-social    { grid-column: 3; grid-row: 2; }
}

/* Links column: about 25px between lines */
#block-archives-bs5-footer-links li { margin: 0 0 .45rem; }
#block-archives-bs5-footer-links .nav-link { font-size: .75rem; }

/* Address column */
#block-archives-bs5-footer-info address { margin: 0; font-style: normal; }
#block-archives-bs5-footer-info p { margin: 0; }
#block-archives-bs5-footer-info .footer-email { margin-top: .7rem; }
#block-archives-bs5-footer-info .footer-email a {
  display: inline-block;
  background: #fff;
  color: #000;
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  padding: .1rem .3rem;
  text-decoration: none;
}
#block-archives-bs5-footer-info .footer-email a:hover { text-decoration: underline; }
#block-archives-bs5-footer-info .footer-email a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Copyright */
#block-archives-bs5-footer-copyright p { margin: 0; color: #e4e8f2; }

/* Icons: dark circles, close together, below the copyright */
#block-archives-bs5-footer-social { margin-top: 1rem; }
#block-archives-bs5-footer-social ul { gap: .15rem; }
#block-archives-bs5-footer-social a {
  width: 2.25rem; height: 2.25rem;
  background: #11131c;
}
#block-archives-bs5-footer-social a:hover { background: #000; }
#block-archives-bs5-footer-social a::before { font-size: 1.05rem; }

/* ===== Home sections v3 ===== */
body { overflow-x: hidden; }
.full-bleed { width: 100vw; position: relative; left: 50%; margin-left: -50vw; }
.home-slides a, .home-events a, .home-visit a { color: #7a3b41; }

/* Slides (from the Slide content type) */
.home-slides { background: #fff; }
.home-slides__row { display: flex; flex-direction: column; }
.home-slides__text { padding: 1.5rem 1rem 3rem; overflow-wrap: anywhere; }
.home-slides__text h2 { font-size: 1.75rem; font-weight: 400; margin-bottom: .75rem; }
.home-slides__caption, .home-slides__caption p { font-size: .875rem; }
.home-slides__caption p { margin: 0 0 .5rem; }
.home-slides__media { background: #e9e4de; display: flex; align-items: center; justify-content: center; }
.home-slides__media img { width: 100%; height: clamp(220px, 42vw, 630px); object-fit: contain; display: block; }
.home-slides__media--empty { min-height: 220px; background: #d9d2cf url("../images/home-banner.svg") center / cover no-repeat; }
.home-slides .carousel-indicators [data-bs-target] { background-color: #1b1e2e; opacity: .45; }
.home-slides .carousel-indicators .active { opacity: 1; }
.home-slides .carousel-control-prev-icon, .home-slides .carousel-control-next-icon {
  background-color: rgba(27, 30, 46, .7); border-radius: 50%; background-size: 50%; width: 2.5rem; height: 2.5rem;
}
@media (min-width: 768px) {
  .home-slides__row { flex-direction: row; }
  .home-slides__text { flex: 0 0 300px; padding: 2.5rem 1rem 1rem; }
  .home-slides__media { flex: 1 1 auto; }
  .home-slides .carousel-control-prev, .home-slides .carousel-indicators { left: 300px; }
}

/* Overview */
.home-overview { background: #7b5a3a center / cover no-repeat url("../images/home-overview.jpg"); padding: 3rem 1rem; }
.home-overview__card { background: #fff; max-width: 1150px; margin: 0 auto; padding: 1.5rem; }
.home-overview__card h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.home-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; margin: 2rem 0 0; }
.home-stats > div { display: flex; flex-direction: column-reverse; }
.home-stats dt { font-size: .85rem; font-weight: 600; }
.home-stats dd { font-size: 2rem; font-weight: 700; color: #7a3b41; margin: 0; line-height: 1.1; }
@media (min-width: 768px) { .home-stats { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 992px) { .home-overview { padding: 4.5rem 1rem; } .home-overview__card { padding: 2rem 2rem 2.5rem; } }

/* Events (from the Event content type) */
.home-events { background: #fff; padding: 3rem 1rem; }
.home-events__inner { max-width: 1150px; margin: 0 auto; }
.home-events h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.home-events__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.home-event { display: flex; gap: 1rem; border: 1px solid #e2ddd6; padding: 1rem; }
.home-event__date { flex: 0 0 5rem; align-self: flex-start; text-align: center; background: #7a3b41; color: #fff; padding: .5rem .25rem; font-weight: 700; line-height: 1.3; }
.home-event__title { font-size: 1rem; font-weight: 700; margin: 0 0 .25rem; }
.home-event__title a { color: inherit; text-decoration: none; }
.home-event__title a:hover, .home-event__title a:focus-visible { color: #7a3b41; text-decoration: underline; }
.home-event__tagline { font-style: italic; margin: 0 0 .25rem; }
.home-event__org { font-size: .85rem; color: #4a4f5c; margin: 0 0 .25rem; }
.home-event__desc { font-size: .9rem; }
.home-event__desc p:last-child { margin-bottom: 0; }
@media (min-width: 992px) { .home-events__list { grid-template-columns: repeat(2, 1fr); } }

/* Visit */
.home-visit { background: #4a4a4a center / cover no-repeat url("../images/home-visit.jpg"); padding: 3rem 1rem; }
.home-visit__inner { max-width: 1150px; margin: 0 auto; background: rgba(255, 255, 255, .96); padding: 1.5rem; }
.home-visit h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.home-visit h3 { font-size: 1.05rem; font-weight: 600; margin: 1.25rem 0 .35rem; }
.home-visit address { margin: 0; }
.home-visit iframe { width: 100%; height: 390px; border: 0; }

/* ===== Slides v4: match the reference hero ===== */
.home-slides .home-slides__row { height: auto; }
.home-slides .home-slides__text { padding: 1.5rem 1rem 3rem 13px; background: #fff; }
.home-slides .home-slides__text h2 { font-size: 1.75rem; font-weight: 300; line-height: 1.2; margin: 0 0 1rem; }
.home-slides .home-slides__media { position: relative; height: clamp(200px, 60vw, 420px); padding: 0; background: #e9e4de; }
.home-slides .home-slides__media .field,
.home-slides .home-slides__media .field__item { position: absolute; inset: 0; }
.home-slides .home-slides__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
@media (min-width: 768px) {
  .home-slides .home-slides__row { height: clamp(300px, 34vw, 630px); }
  .home-slides .home-slides__text { flex: 0 0 240px; padding: 2.5rem 1rem 1rem 13px; }
  .home-slides .home-slides__media { height: 100%; flex: 1 1 auto; }
  .home-slides .carousel-control-prev,
  .home-slides .carousel-indicators { left: 240px; }
}

/* Menu accent colour (matches the reference) */
#navbar-main .navbar-nav .nav-link:hover,
#navbar-main .navbar-nav .nav-link:focus-visible,
#navbar-main .navbar-nav .nav-link.active,
#navbar-main .navbar-nav .nav-link.is-active { color: #2f6f5e; border-bottom-color: #2f6f5e; }

/* ===== Slides v5: layout as in the reference ===== */
.home-slides .home-slides__row {
  display: flex; flex-direction: row; justify-content: flex-end; align-items: stretch;
  height: clamp(320px, 34.4vw, 630px);
  background: #fff;
}
.home-slides .home-slides__text {
  flex: 0 1 430px; min-width: 200px;
  padding: 2.5rem 1.25rem 1rem 1.25rem;
  background: #fff; overflow-wrap: anywhere;
}
.home-slides .home-slides__title {
  font-size: 1.75rem; font-weight: 300; line-height: 1.2; margin: 0 0 1rem;
}
.home-slides .home-slides__caption, .home-slides .home-slides__caption p { font-size: .875rem; line-height: 1.5; }

/* The picture keeps its proportions and sits against the right edge */
.home-slides .home-slides__media {
  position: static; flex: 0 0 auto; height: 100%;
  max-width: calc(100% - 200px); padding: 0; background: #fff; display: block;
}
.home-slides .home-slides__media .field,
.home-slides .home-slides__media .field__item { position: static; height: 100%; }
.home-slides .home-slides__media img {
  position: static; display: block;
  width: auto; height: 100%; max-width: 100%;
  object-fit: contain; object-position: right top;
}
.home-slides .home-slides__media--empty { width: 40%; background: #d9d2cf; }

/* Controls: dots stay centred, arrows appear on hover or keyboard focus */
.home-slides .carousel-indicators { left: 0; }
.home-slides .carousel-control-prev, .home-slides .carousel-control-next {
  width: 4rem; opacity: 0; transition: opacity .2s;
}
.home-slides:hover .carousel-control-prev, .home-slides:hover .carousel-control-next,
.home-slides:focus-within .carousel-control-prev, .home-slides:focus-within .carousel-control-next { opacity: .9; }
@media (hover: none) {
  .home-slides .carousel-control-prev, .home-slides .carousel-control-next { opacity: .9; }
}

/* Phones: text above, picture below */
@media (max-width: 767.98px) {
  .home-slides .home-slides__row { flex-direction: column; height: auto; }
  .home-slides .home-slides__text { flex: none; padding: 1.25rem 1rem 1rem; }
  .home-slides .home-slides__media { max-width: 100%; height: auto; }
  .home-slides .home-slides__media img { width: 100%; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .home-slides .carousel-control-prev, .home-slides .carousel-control-next { transition: none; }
}

/* ===== Site-wide type scale =====
   100% = 16px (browser default). 93.75% = 15px. 87.5% = 14px.
   Percent (not px) so visitors' own browser font settings still work. */
html { font-size: 93.75%; }

/* Slides: text stays left, picture right */
.home-slides .home-slides__row { justify-content: space-between; }
.home-slides .home-slides__text { flex: 0 1 430px; }

/* ===== Slide option: "Fill the whole area" (per slide) ===== */
.home-slides .is-fill .home-slides__text { flex: 0 0 235px; }
.home-slides .is-fill .home-slides__media { flex: 1 1 auto; max-width: none; }
.home-slides .is-fill .home-slides__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
@media (max-width: 767.98px) {
  .home-slides .is-fill .home-slides__media { height: 260px; }
  .home-slides .is-fill .home-slides__media img { height: 100%; }
}

/* ===== Slides v6: natural-size picture, cropped at the bottom (as in the reference) ===== */
.home-slides .home-slides__row { justify-content: flex-end; }
.home-slides .home-slides__text { flex: 0 1 445px; min-width: 200px; padding: 2.5rem 12px 1rem 5px; }

.home-slides .home-slides__media {
  flex: 0 1 auto; min-width: 0;
  height: 100%; max-width: calc(100% - 200px);
  overflow: hidden; background: #fff;
}
.home-slides .home-slides__media .field,
.home-slides .home-slides__media .field__item { display: block; height: 100%; overflow: hidden; }
.home-slides .home-slides__media img {
  display: block;
  width: auto; height: auto; max-width: 100%;    /* natural size, never wider than its box */
  object-fit: initial; object-position: initial;
}

/* "Fill the whole area" slides keep the cropped, filled look */
.home-slides .is-fill .home-slides__text { flex: 0 0 235px; }
.home-slides .is-fill .home-slides__media { flex: 1 1 auto; max-width: none; }
.home-slides .is-fill .home-slides__media img {
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center top;
}

/* Arrows: reset the old 240px offset */
.home-slides .carousel-control-prev { left: 0; }
.home-slides .carousel-control-next { right: 0; }
.home-slides .carousel-indicators { left: 0; }

/* Phones: unchanged (text above, whole picture below) */
@media (max-width: 767.98px) {
  .home-slides .home-slides__media { max-width: 100%; height: auto; overflow: visible; }
  .home-slides .home-slides__media .field,
  .home-slides .home-slides__media .field__item { height: auto; overflow: visible; }
  .home-slides .home-slides__media img { width: 100%; height: auto; }
}


/* ===== Overview v2: match the reference ===== */
.home-overview { margin-top: 40px; padding: 3rem 1rem; }
.home-overview .home-overview__card { padding: 1.5rem; }
.home-overview .home-overview__card h2 { font-size: .9375rem; font-weight: 600; margin: .35rem 0 .9rem; }
.home-overview .home-overview__card > p { font-size: .875rem; margin: 0; }

.home-overview .home-stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0; margin: 1.9rem 0 0; padding: 0;
}
.home-overview .home-stats > div {
  display: flex; flex-direction: column-reverse; justify-content: center;
  gap: 1.1rem; text-align: center;
  min-height: 140px; padding: 1.25rem .75rem;
  border-top: 1px solid #e7e7e7;
}
.home-overview .home-stats dt { font-size: .8125rem; font-weight: 700; color: #1f2430; line-height: 1.35; }
.home-overview .home-stats dd { font-size: .8125rem; font-weight: 600; color: #1f2430; line-height: 1.2; margin: 0; }

@media (min-width: 768px) {
  .home-overview .home-stats { grid-template-columns: repeat(5, minmax(0, 209px)); }
  .home-overview .home-stats > div { border-top: 0; border-left: 1px solid #e7e7e7; }
  .home-overview .home-stats > div:first-child { border-left: 0; }
}
@media (min-width: 992px) {
  .home-overview { padding: 70px 1rem; }
  .home-overview .home-overview__card { padding: 1.5rem 1.5rem 1.6rem; }
}

/* ===== Overview background: natural size, tiled, from the top-left (as in the reference) ===== */
.home-overview {
  background-color: #7b5a3a;
  background-image: url("../images/home-overview.jpg");
  background-repeat: repeat-x;
  background-position: left top;
  background-size: auto;
}

/* ===== Summary of Events v2: match the reference ===== */
.home-events { padding: 44px 1rem 3rem; }
.home-events .home-events__inner { max-width: 1150px; margin: 0 auto; padding: 0; }
.home-events h2 { font-size: .8125rem; font-weight: 600; margin: 0 0 1.25rem; }

.home-events .home-events__list {
  display: grid; grid-template-columns: 1fr; gap: 0 25px;
  list-style: none; margin: 0; padding: 0;
}
.home-events .home-event {
  display: flex; gap: 0; align-items: flex-start;
  border: 0; border-top: 1px solid #dcdcdc; background: none;
  padding: 18px 0 1.5rem; min-height: 196px;
}

/* Date: plain text, three lines */
.home-events .home-event__date {
  flex: 0 0 36px; background: none; color: #1f2430; padding: 0; text-align: left;
  font-size: .72rem; font-weight: 600; line-height: 1.55;
}
.home-events .home-event__date time { display: block; }
.home-events .home-event__date span { display: block; }
.home-events .home-event__date span:nth-child(2) { text-transform: uppercase; }

.home-events .home-event__body { flex: 1 1 auto; min-width: 0; }
.home-events .home-event__title { font-size: .72rem; font-weight: 700; line-height: 1.4; margin: 0 0 .5rem; }
.home-events .home-event__title a { color: #1f2430; }
.home-events .home-event__tagline { font-size: .72rem; font-style: normal; color: #2f6f5e; line-height: 1.4; margin: 0 0 .6rem; }
.home-events .home-event__org { display: none; }                 /* still stored, just not shown here */
.home-events .home-event__text { margin: 0; font-size: .625rem; font-weight: 500; line-height: 1.6; color: #1f2430; }
.home-events .home-event__desc,
.home-events .home-event__desc div,
.home-events .home-event__desc p { display: inline; margin: 0; font-size: inherit; }
.home-events .home-event__more { color: #7a3b41; text-decoration: none; }
.home-events .home-event__more:hover,
.home-events .home-event__more:focus-visible { text-decoration: underline; }

@media (min-width: 768px)  { .home-events .home-events__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .home-events .home-events__inner { padding: 0 75px 0 5px; }
                             .home-events .home-events__list { grid-template-columns: repeat(4, 1fr); } }

/* ===== Visit the Archives v2: match the reference ===== */
.home-visit {
  background-color: #3b3b3b;
  background-image: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .35)), url("../images/home-visit.jpg");
  background-size: cover; background-position: center; background-repeat: no-repeat;
  padding: 3.5rem 1rem 3rem; color: #fff;
}
.home-visit .home-visit__inner { max-width: 1168px; margin: 0 auto; padding: 0; background: none; }
.home-visit .home-visit__inner h2 { font-size: 1rem; font-weight: 600; color: #fff; margin: 0 0 1.25rem; }
.home-visit .home-visit__intro { font-size: .875rem; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); margin: 0 0 1.5rem; }
.home-visit .home-visit__intro a { color: #fff; text-decoration: underline; }

.home-visit .home-visit__card { display: grid; grid-template-columns: 1fr; background: #fff; color: #1f2430; }
.home-visit .home-visit__info { padding: 1rem 1rem 1.25rem; display: flex; flex-direction: column; gap: 1.5rem; }
.home-visit .home-visit__info h3 { font-size: 1rem; font-weight: 500; margin: 0 0 .6rem; }
.home-visit .home-visit__info p,
.home-visit .home-visit__info address { font-size: .6875rem; font-weight: 600; line-height: 1.5; font-style: normal; margin: 0 0 .5rem; }
.home-visit .home-visit__info a { color: #7a3b41; }

.home-visit .home-visit__map { min-height: 320px; }
.home-visit .home-visit__map iframe { display: block; width: 100%; height: 320px; border: 0; }

@media (min-width: 992px) {
  .home-visit .home-visit__card { grid-template-columns: 318px 1fr; min-height: 390px; }
  .home-visit .home-visit__info { justify-content: space-evenly; gap: 0; }
  .home-visit .home-visit__map iframe { height: 100%; min-height: 390px; }
}

/* ===== Contribute to The Archives (webform block) ===== */
#block-archives-bs5-home-contribute { max-width: 1168px; margin: 0 auto; padding: 3.5rem 1rem 3rem; }
#block-archives-bs5-home-contribute .contribute__title { font-size: .9375rem; font-weight: 700; margin: 0 0 1rem; }
#block-archives-bs5-home-contribute .contribute__intro { font-size: 1rem; line-height: 1.7; color: #5a5f6b; margin: 0 0 2rem; font-weight: 300; }

/* Labels: small uppercase, bold */
#block-archives-bs5-home-contribute label,
#block-archives-bs5-home-contribute .form-item > legend { font-size: .6875rem; font-weight: 700; text-transform: uppercase; margin-bottom: .1rem; }
#block-archives-bs5-home-contribute .form-required::after,
#block-archives-bs5-home-contribute .js-form-required::after { color: #c1121f; }

/* Row of three: underline-only inputs */
#block-archives-bs5-home-contribute .webform-flexbox { gap: 3rem; margin-bottom: 1.5rem; }
#block-archives-bs5-home-contribute input[type="text"],
#block-archives-bs5-home-contribute input[type="tel"],
#block-archives-bs5-home-contribute input[type="email"] {
  border: 0; border-bottom: 1px solid #cfcfcf; border-radius: 0; box-shadow: none;
  padding: .5rem 0; font-size: .75rem; background: transparent; width: 100%;
}
#block-archives-bs5-home-contribute input:focus-visible,
#block-archives-bs5-home-contribute textarea:focus-visible {
  outline: 2px solid #7a3b41; outline-offset: 2px; border-color: #7a3b41;
}
#block-archives-bs5-home-contribute ::placeholder { color: #5a5f6b; opacity: 1; }

/* Description box */
#block-archives-bs5-home-contribute textarea { border: 1px solid #333; border-radius: 0; min-height: 96px; font-size: .75rem; padding: .5rem .65rem; }

/* CAPTCHA */
#block-archives-bs5-home-contribute .captcha { border: 0; padding: 0; margin: 1.25rem 0 0; font-size: .8125rem; }
#block-archives-bs5-home-contribute .captcha img { border: 1px solid #6b6f7a; background: #fff; max-width: 100%; height: auto; }
#block-archives-bs5-home-contribute .captcha input[type="text"] { max-width: 12rem; }

/* Submit */
#block-archives-bs5-home-contribute .webform-button--submit {
  background: #7a3b41; border: 0; border-radius: 0; color: #fff;
  padding: .6rem 1.1rem; font-size: .875rem; margin-top: 1.5rem;
}
#block-archives-bs5-home-contribute .webform-button--submit:hover { background: #5f2c31; }
#block-archives-bs5-home-contribute .webform-button--submit:focus-visible { outline: 3px solid #1b1e2e; outline-offset: 2px; }

@media (max-width: 767.98px) {
  #block-archives-bs5-home-contribute .webform-flexbox { gap: 1.25rem; }
}

/* CAPTCHA label and help text: same scale as the other labels */
#block-archives-bs5-home-contribute .captcha legend,
#block-archives-bs5-home-contribute .captcha .fieldset-legend { font-size: .8125rem; font-weight: 400; text-transform: none; }
#block-archives-bs5-home-contribute .captcha .fieldset-description { font-size: .8125rem; }

/* ===== CAPTCHA layout as on the old site ===== */
#block-archives-bs5-home-contribute .captcha { border: 0; padding: 0; margin: 1.75rem 0 0; }

/* "CAPTCHA": plain label, no asterisk */
#block-archives-bs5-home-contribute .captcha > legend,
#block-archives-bs5-home-contribute .captcha > legend * { font-size: .875rem; font-weight: 400; text-transform: none; margin: 0; }
#block-archives-bs5-home-contribute .captcha > legend::after,
#block-archives-bs5-home-contribute .captcha > legend *::after { content: none !important; }

/* Description above the image, then the image, then the code field */
#block-archives-bs5-home-contribute .captcha .fieldset-wrapper { display: flex; flex-direction: column; align-items: flex-start; }
#block-archives-bs5-home-contribute .captcha .fieldset-description,
#block-archives-bs5-home-contribute .captcha > .fieldset-wrapper > .description { order: -2; font-size: .875rem; color: #1f2430; margin: 0 0 .4rem; }
#block-archives-bs5-home-contribute .captcha .captcha__image-wrapper,
#block-archives-bs5-home-contribute .captcha .image-captcha-wrapper,
#block-archives-bs5-home-contribute .captcha img { order: -1; }

/* Image: no border */
#block-archives-bs5-home-contribute .captcha img { border: 0; display: block; max-width: 100%; height: auto; margin: 0 0 1.1rem; }

/* Code field: short underline, small help text below */
#block-archives-bs5-home-contribute .captcha .form-item { width: 100%; margin: 0; }
#block-archives-bs5-home-contribute .captcha input[type="text"] { max-width: 150px; min-height: 2.5rem; }
#block-archives-bs5-home-contribute .captcha .form-item .description,
#block-archives-bs5-home-contribute .captcha .form-text { font-size: .6875rem; color: #1f2430; margin-top: .4rem; }

/* Submit sits a bit lower */
#block-archives-bs5-home-contribute .webform-button--submit { margin-top: 1.75rem; }

/* ===== CAPTCHA v2: written against the module's real markup ===== */
#block-archives-bs5-home-contribute fieldset.captcha {
  display: flex; flex-direction: column; align-items: flex-start;
  border: 0; padding: 0; margin: 1.75rem 0 0; min-width: 0;
}

/* "CAPTCHA": plain label, no asterisk */
#block-archives-bs5-home-contribute .captcha__title {
  float: none; width: auto; padding: 0; margin: 0 0 .15rem;
  font-size: .875rem; font-weight: 400; text-transform: none; line-height: 1.4;
}
#block-archives-bs5-home-contribute .captcha__title::after { content: none !important; display: none; }

/* The sentence comes first, then the image and field */
#block-archives-bs5-home-contribute .captcha__description {
  order: -1; margin: 0 0 .5rem; font-size: .875rem; color: #1f2430; line-height: 1.4;
}
#block-archives-bs5-home-contribute .captcha__element { order: 1; width: 100%; }

/* Image: no frame */
#block-archives-bs5-home-contribute .captcha__image-wrapper { margin: 0 0 1.1rem; }
#block-archives-bs5-home-contribute .captcha__image-wrapper img { display: block; border: 0; background: none; max-width: 100%; height: auto; margin: 0; }
#block-archives-bs5-home-contribute .reload-captcha-wrapper { margin-top: .3rem; font-size: .6875rem; }
#block-archives-bs5-home-contribute .reload-captcha-wrapper a { color: #7a3b41; }

/* Code field: short underline, small help text */
#block-archives-bs5-home-contribute .captcha__element .form-item { margin: 0; }
#block-archives-bs5-home-contribute .captcha__element input[type="text"] { max-width: 150px; }
#block-archives-bs5-home-contribute .captcha__element .description { font-size: .6875rem; color: #1f2430; margin-top: .4rem; }

/* ===== CAPTCHA v3: image above the code field ===== */
#block-archives-bs5-home-contribute .captcha__element { display: block !important; width: 100%; }
#block-archives-bs5-home-contribute .captcha__image-wrapper { display: block !important; width: auto; margin: 0 0 1rem; }
#block-archives-bs5-home-contribute .captcha__element .form-item { display: block !important; width: 100%; margin: 0; }
#block-archives-bs5-home-contribute .reload-captcha-wrapper { margin-top: .25rem; }

/* Contribute form button: maroon like the rest of the site */
.node-contact-submission-form .btn-primary,
form[id^="node-contact-submission"] .btn-primary {
  --bs-btn-bg: #7a3b41; --bs-btn-border-color: #7a3b41;
  --bs-btn-hover-bg: #5f2c31; --bs-btn-hover-border-color: #5f2c31;
  --bs-btn-active-bg: #5f2c31; --bs-btn-active-border-color: #5f2c31;
  border-radius: 0;
}

/* ===== Basic pages (Education and similar) ===== */
.node--type-page .field--name-body { max-width: 960px; margin: 0 auto 3rem; line-height: 1.7; font-size: 1rem; }
.node--type-page .field--name-body img { max-width: 100%; height: auto; }
.node--type-page .field--name-body h2 { font-size: 1.5rem; font-weight: 500; color: #7a3b41; margin: 2.25rem 0 .75rem; }
.node--type-page .field--name-body h3 { font-size: 1.2rem; font-weight: 600; margin: 1.75rem 0 .5rem; }
.node--type-page .field--name-body a { color: #7a3b41; }
.node--type-page .field--name-body figure { margin: 1.25rem 0; }
.node--type-page .field--name-body figcaption { font-size: .8125rem; color: #4a4f5c; }
@media (min-width: 768px) {
  .node--type-page .field--name-body img[align="right"], .node--type-page .field--name-body img.right { float: right; margin: 0 0 1rem 1.5rem; max-width: 45%; }
  .node--type-page .field--name-body img[align="left"],  .node--type-page .field--name-body img.left  { float: left;  margin: 0 1.5rem 1rem 0; max-width: 45%; }
}

/* TNQ Foundation logo: 45px wide on the old page */
.node--type-page .field--name-body img[src*="tnq-logo"] { width: 45px; }

/* ===== Meet the Team ===== */
.team { max-width: 960px; margin: 3rem auto; }
.team h2 { font-size: 1.5rem; font-weight: 500; color: #7a3b41; margin: 0 0 1rem; }
.team__intro, .team .views-element-container > p { margin-bottom: 2rem; }
.team-member { margin: 0 0 2.5rem; }
.team-member__name { font-size: 1.2rem; font-weight: 600; margin: 0 0 .25rem; }
.team-member__role { font-size: .9rem; color: #4a4f5c; margin: 0 0 .75rem; }
.team-member__content { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; }
.team-member__photo img { display: block; width: 100%; max-width: 220px; height: auto; }
.team-member__bio p:last-child { margin-bottom: 0; }
.team-member__bio a { color: #7a3b41; }
@media (min-width: 768px) { .team-member__content { grid-template-columns: 220px 1fr; gap: 1.5rem; } }

/* Team member: name, then photo, then bio underneath */
.team-member__content { grid-template-columns: 1fr; gap: 1rem; }
.team-member__photo img { max-width: 220px; }
.team-member__bio { max-width: 760px; }

/* Meet the Team: photo on top, bio below it at full width */
.team-member__content,
.team-member .team-member__content { display: block; }
.team-member__photo { margin: 0 0 1rem; }
.team-member__photo img { max-width: 220px; }
.team-member__bio { max-width: none; }

/* ===== Meet the Team v2: match the reference ===== */
.team h2 { font-size: 1.125rem; font-weight: 700; margin: 0 0 1.25rem; }
.team a { color: #7a3b41; }
.team__intro, .team .team__intro { font-size: .875rem; line-height: 1.85; margin: 0 0 2rem; }

.team-member { margin: 0 0 3rem; }
.team-member__name { font-size: .875rem; font-weight: 700; margin: 0 0 1.25rem; }
.team-member__role { font-size: .8125rem; margin: -.75rem 0 1.25rem; }
.team-member__photo { margin: 0 0 1.25rem; }
.team-member__photo img { width: min(297px, 100%); max-width: none; height: auto; }
.team-member__bio, .team-member__bio p { font-size: .875rem; line-height: 1.85; }
.team-member__bio p { margin: 0; }

/* ---- Wide reference-style content pages (Research, PAST) ---- */
.page-wide {
  width: min(1188px, calc(100vw - 2rem));
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 26px;
  color: #000;
}
.page-wide h2 {
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  color: #000;
  text-align: center;
}
.page-wide h3,
.page-wide h4 {
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #000;
}
.page-wide .text-end a {
  color: #000;
}
.page-wide figcaption {
  font-size: 14px !important;
  color: #000 !important;
  text-align: center;
}

/* Basic pages: match the old site's wider text column */
.node--type-page .field--name-body { max-width: 1190px; }


/* ===== Dropdown menu: maroon instead of Bootstrap blue ===== */
#navbar-main .dropdown-menu {
  --bs-dropdown-link-color: #1f2430;
  --bs-dropdown-link-hover-color: #7a3b41;
  --bs-dropdown-link-hover-bg: #f6ece9;
  --bs-dropdown-link-active-color: #7a3b41;
  --bs-dropdown-link-active-bg: #f6ece9;
}
#navbar-main .dropdown-item.active { font-weight: 600; }
#navbar-main .dropdown-item:focus-visible { outline: 3px solid #7a3b41; outline-offset: -3px; }

/* ===== Page heading with a line underneath (Join Us pages) ===== */
.node--type-page .field--name-body h1.page-heading {
  text-align: center; font-size: 1.25rem; font-weight: 700; color: #1f2430;
  margin: 1.5rem 0 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid #d9d2cf;
}

/* ===== Dropdown menu: maroon instead of Bootstrap blue ===== */
#navbar-main .dropdown-menu {
  --bs-dropdown-link-color: #1f2430;
  --bs-dropdown-link-hover-color: #7a3b41;
  --bs-dropdown-link-hover-bg: #f6ece9;
  --bs-dropdown-link-active-color: #7a3b41;
  --bs-dropdown-link-active-bg: #f6ece9;
}
#navbar-main .dropdown-item.active { font-weight: 600; }
#navbar-main .dropdown-item:focus-visible { outline: 3px solid #7a3b41; outline-offset: -3px; }

/* ===== Page heading with a line underneath (Join Us pages) ===== */
.node--type-page .field--name-body h1.page-heading {
  text-align: center; font-size: 1.25rem; font-weight: 700; color: #1f2430;
  margin: 1.5rem 0 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid #d9d2cf;
}

/* Page headings: always centred, with the line underneath */
.node--type-page .field--name-body .page-heading,
.node--type-page .field--name-body .internship-heading,
.node--type-page .field--name-body .internship-heading h1,
.node--type-page .field--name-body .internship-heading p {
  text-align: center !important;
}
.node--type-page .field--name-body .page-heading { display: block; width: 100%; }

/* Research Fellowship page images */
.node--type-page img[src*="MS-007_6_2_OS4_7_collections_crop_0.png"] {
  display: block;
  width: 100%;
  max-width: 762px;
  height: auto;
  margin: 20px auto;
}

.node--type-page img[src*="tnq-logo-footer_0.png"] {
  display: block;
  width: 128px;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
}
/* Research Fellowship page styling */

/* Main heading */
.path-research-fellowship .field--name-body > :first-child {
  text-align: center;
  margin-bottom: 45px;
}

/* TNQ Foundation logo */
.path-research-fellowship img[src*="tnq-logo-footer_0.png"] {
  display: block;
  width: 360px;
  max-width: 100%;
  height: auto;
  margin: 35px auto 45px;
}

/* MS Swaminathan photograph */
.path-research-fellowship img[src*="MS-007_6_2_OS4_7_collections_crop_0.png"] {
  display: block;
  width: 100%;
  max-width: 830px;
  height: auto;
  margin: 35px auto 15px;
}

/* Photograph caption */
.path-research-fellowship img[src*="MS-007_6_2_OS4_7_collections_crop_0.png"] + p {
  text-align: center;
  font-weight: bold;
  margin-bottom: 45px;
}


/* ===== Research fellows (/rfp-work) ===== */
.fellows { max-width: 960px; margin: 0 auto 3rem; }
.fellow { margin: 0 0 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid #e2ddd6; }
.fellow:last-child { border-bottom: 0; }
.fellow__name { font-size: 1.125rem; font-weight: 700; margin: 0 0 .25rem; }
.fellow__period { font-size: .875rem; color: #4a4f5c; margin: 0 0 .75rem; }
.fellow__bio p, .fellow__abstract p { margin: 0 0 1rem; }
.fellow__project { font-size: 1rem; font-style: italic; font-weight: 600; margin: 1.25rem 0 .75rem; }
.fellow__links-label { font-weight: 600; margin: 0 0 .25rem; }
.fellow__links a { color: #7a3b41; overflow-wrap: anywhere; }
.fellow__links .field__item { margin: 0 0 .25rem; }

/* ===== Research Fellowship page (identified by its photo): match the reference ===== */
.node--type-page .field--name-body:has(img[src*="MS-007_6_2"]) > :is(p, h1, h2):first-child {
  text-align: center; font-size: 1.2rem; font-weight: 700; margin-top: 1.5rem;
}
.node--type-page .field--name-body:has(img[src*="MS-007_6_2"]) p:has(> img[src*="tnq-logo"]) { text-align: center; }
.node--type-page .field--name-body:has(img[src*="MS-007_6_2"]) img[src*="tnq-logo"] { width: 128px; max-width: 100%; height: auto; }
.node--type-page .field--name-body:has(img[src*="MS-007_6_2"]) p:has(> img[src*="MS-007_6_2"]) { text-align: center; }
.node--type-page .field--name-body:has(img[src*="MS-007_6_2"]) img[src*="MS-007_6_2"] { width: 75%; max-width: 100%; height: auto; }
.node--type-page .field--name-body:has(img[src*="MS-007_6_2"]) p:has(> img[src*="MS-007_6_2"]) + p { text-align: center; font-size: .75rem; margin-top: 1rem; }

/* ===== Dropdown menu v2: dark panel, maroon hover (as in the reference) ===== */
#navbar-main .dropdown-menu,
.navbar .dropdown-menu {
  --bs-dropdown-bg: #3b3b3b;
  --bs-dropdown-link-color: #fff;
  --bs-dropdown-link-hover-color: #fff;
  --bs-dropdown-link-hover-bg: #7a3b41;
  --bs-dropdown-link-active-color: #fff;
  --bs-dropdown-link-active-bg: #7a3b41;
  background: #3b3b3b;
  border: 0;
  border-radius: 0;
  padding: 0;
  min-width: 11.5rem;
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .25);
}
#navbar-main .dropdown-menu .dropdown-item,
.navbar .dropdown-menu .dropdown-item {
  color: #fff;
  font-size: .8125rem;
  padding: .85rem .9rem;
  border-bottom: 1px solid #525252;
  background: transparent;
}
#navbar-main .dropdown-menu li:last-child .dropdown-item,
.navbar .dropdown-menu li:last-child .dropdown-item { border-bottom: 0; }
#navbar-main .dropdown-menu .dropdown-item:hover,
#navbar-main .dropdown-menu .dropdown-item:focus,
#navbar-main .dropdown-menu .dropdown-item:active,
#navbar-main .dropdown-menu .dropdown-item.active,
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus,
.navbar .dropdown-menu .dropdown-item:active,
.navbar .dropdown-menu .dropdown-item.active {
  background-color: #7a3b41 !important;
  color: #fff !important;
}
#navbar-main .dropdown-menu .dropdown-item:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }

/* Old-site (Drupal 7 editor) alignment classes, used by imported pages */
.node--type-page .field--name-body .rtecenter { text-align: center; }
.node--type-page .field--name-body .rteright  { text-align: right; }
.node--type-page .field--name-body .rteleft   { text-align: left; }
.node--type-page .field--name-body .rteindent1 { margin-left: 2rem; }

/* Events archive page: match the old layout */
.node--type-page .field--name-body .archive-events { padding-top: 2.75rem; font-size: .9375rem; line-height: 1.65; }
.node--type-page .field--name-body .archive-events p { margin-bottom: .65rem; }
.node--type-page .field--name-body .archive-events a { color: #4a4f5c; text-decoration: none; }

/* Contact page: "Visit the Archives" card */
.contact-visit__title { color: #7a3b41; font-weight: 400; }
.contact-visit__label { color: #2d6a4f; }
.contact-visit a { color: #2d6a4f; }

/* Team page (team_member_about): photo left, name + bio right */
.view-team-about { max-width: 1150px; margin: 2.5rem auto; }
.view-team-about .team-member {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 4rem;
  align-items: start;
  margin-bottom: 3.5rem;
}
.view-team-about .views-field-field-profile-photo { grid-row: 1 / span 2; justify-self: center; }
.view-team-about .views-field-field-profile-photo img { height: 200px; width: auto; display: block; }
.view-team-about .views-field-title { font-size: 1.125rem; font-weight: 600; margin: .35rem 0 1.1rem; }
.view-team-about .views-field-field-bio-about { line-height: 1.7; }
@media (max-width: 767.98px) {
  .view-team-about .team-member { grid-template-columns: 1fr; row-gap: 1rem; }
  .view-team-about .views-field-field-profile-photo { grid-row: auto; justify-self: start; }
}

/* ===== About page ===== */
.node--type-page .field--name-body .about-title { font-size: 1.75rem; font-weight: 500; margin: 2rem 0 1rem; }
.about-credit { font-size: .8125rem; color: #4a4f5c; text-align: center; }
.about-committee { margin: 0 0 1.5rem; }

.about-resources ul, .about-collab ul { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.about-resources li a, .about-collab li a { display: block; height: 100%; padding: .9rem 1rem; border: 1px solid #d9d2cf; color: #1f2430; font-weight: 600; text-decoration: none; }
.about-resources li a::after { content: " \2192"; }
.about-resources li a[href$=".pdf"]::after { content: " \2193"; }
.about-resources li a:hover, .about-collab li a:hover, .about-resources li a:focus-visible, .about-collab li a:focus-visible { border-color: #7a3b41; color: #7a3b41; }

.about-vm { display: grid; gap: 1rem; margin: 2.5rem 0; padding: 2.5rem 1rem; background: #3b3b3b url("../images/about-vision.jpg") center / cover no-repeat; }
.about-vm__item { background: rgba(255, 255, 255, .96); padding: 1.25rem; }
.about-vm__item h3 { margin-top: 0; }
@media (min-width: 768px) { .about-vm { grid-template-columns: 1fr 1fr; } }

.about-funding { margin: 2.5rem 0; padding: 2.5rem 1rem; background: #3b3b3b url("../images/about-funding.jpg") center / cover no-repeat; }
.about-funding__inner { background: rgba(255, 255, 255, .96); padding: 1.5rem; }
.about-funding__inner h2 { margin-top: 0; }

/* Spam trap field: out of sight, but not display:none */
.archives-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* The contribute block on the About page looks like the home page one */
#block-archives-bs5-about-contribute { max-width: 960px; margin: 0 auto; padding: 2rem 1rem 3rem; }

/* ===== Resources cards v2: match the reference ===== */
.about-resources h2 { font-size: 1rem; font-weight: 700; color: #1f2430; margin: 2rem 0 .75rem; }
.about-resources > p { font-size: .875rem; margin: 0 0 1rem; }
.about-resources ul { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 2rem; }
@media (min-width: 576px) { .about-resources ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .about-resources ul { grid-template-columns: repeat(4, 1fr); } }
.about-resources li a {
  display: flex; align-items: center; gap: 1.1rem; min-height: 100px; padding: .75rem 1rem;
  border: 1px solid #7a3b41; background: #fff;
  font-size: .75rem; font-weight: 400; color: #333; text-decoration: none;
}
.about-resources li a::after { content: none !important; }
.about-resources li a::before {
  content: ""; flex: 0 0 55px; height: 59px;
  background: url("../images/icon-doc-link.svg") center / contain no-repeat;
}
/* Files get the download badge */
.about-resources li a:is([href$=".pdf" i], [href$=".doc" i], [href$=".docx" i])::before { background-image: url("../images/icon-doc-download.svg"); }
/* These forms keep the link badge, as on the old site */
.about-resources li a:is([href*="NI-007_0013"], [href*="NI-007_0014"], [href*="NI-007_0018"], [href*="NI-007_0020"])::before { background-image: url("../images/icon-doc-link.svg"); }
.about-resources li a:hover, .about-resources li a:focus-visible { background: #fbf4f3; color: #7a3b41; }
.about-resources li a:focus-visible { outline: 3px solid #7a3b41; outline-offset: 2px; }

/* ===== Contribute form: name, mobile and email on one line ===== */
@media (min-width: 768px) {
  :is(.node-contact-submission-form, form[id^="node-contact-submission"]) :is(.field--name-title, .field--name-field-mobile, .field--name-field-email, [data-drupal-selector="edit-title-wrapper"], [data-drupal-selector="edit-field-mobile-wrapper"], [data-drupal-selector="edit-field-email-wrapper"]) {
    display: inline-block; vertical-align: top;
    width: calc(33.333% - 1.5rem); margin-right: 1.5rem;
  }
  :is(.node-contact-submission-form, form[id^="node-contact-submission"]) :is(.field--name-field-email, [data-drupal-selector="edit-field-email-wrapper"]) { margin-right: 0; }
}

.node--type-page .field--name-body img[src*="tnq-logo"] {
    width: 128px;
    max-width: 100%;
    height: auto;
}
/* ===== Chair application form (/os) ===== */
#block-archives-bs5-os-application { max-width: 960px; margin: 0 auto; padding: 2rem 1rem 3rem; }
#block-archives-bs5-os-application .application__title { text-align: center; font-size: .9375rem; font-weight: 700; margin: 0 0 2rem; }
#block-archives-bs5-os-application label,
#block-archives-bs5-os-application .form-label { font-size: .6875rem; font-weight: 600; margin-bottom: .1rem; }
#block-archives-bs5-os-application .form-required::after,
#block-archives-bs5-os-application .js-form-required::after { color: #c1121f; }
#block-archives-bs5-os-application input[type="text"],
#block-archives-bs5-os-application input[type="email"],
#block-archives-bs5-os-application input[type="tel"] {
  border: 0; border-bottom: 1px solid #cfcfcf; border-radius: 0; box-shadow: none;
  background: transparent; padding: .5rem 0; font-size: .75rem; width: 100%; max-width: 30rem;
}
#block-archives-bs5-os-application textarea { border: 1px solid #333; border-radius: 0; min-height: 96px; font-size: .75rem; padding: .5rem .65rem; }
#block-archives-bs5-os-application :is(input, textarea):focus-visible { outline: 2px solid #7a3b41; outline-offset: 2px; border-color: #7a3b41; }
#block-archives-bs5-os-application .description,
#block-archives-bs5-os-application .form-text,
#block-archives-bs5-os-application .form-item .small { font-size: .6875rem; color: #1f2430; }
#block-archives-bs5-os-application .btn-primary {
  --bs-btn-bg: #7a3b41; --bs-btn-border-color: #7a3b41;
  --bs-btn-hover-bg: #5f2c31; --bs-btn-hover-border-color: #5f2c31;
  --bs-btn-active-bg: #5f2c31; --bs-btn-active-border-color: #5f2c31;
  border-radius: 0; font-size: .875rem;
}
#block-archives-bs5-os-application .form-actions { margin-top: 1.5rem; text-align: left; }
