/* -------------------- Newspaper masthead -------------------- */
body .wp-site-blocks > header.wp-block-template-part {
  --masthead-ink: #1f5133;
  --masthead-rule: color-mix(in oklch, #1f5133 62%, transparent);
  background: var(--background);
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-theme="dark"] body .wp-site-blocks > header.wp-block-template-part {
  --masthead-ink: #cfe3b5;
  --masthead-rule: color-mix(in oklch, #cfe3b5 48%, transparent);
}

body .wp-site-blocks > header.wp-block-template-part .ote-app-bar-nav.wp-block-group {
  padding: 0 !important;
}

body .wp-site-blocks > header.wp-block-template-part .ote-app-bar-nav > .alignwide {
  box-sizing: border-box;
  width: min(100% - 2 * clamp(1rem, 4vw, 3rem), 1240px);
  max-width: 1240px;
  margin-inline: auto;
  padding: 12px 0 !important;
  gap: 12px;
  border-bottom: 4px double var(--masthead-rule);
}

body .wp-site-blocks > header .ote-app-bar-nav > .alignwide > .wp-block-group {
  min-width: 0;
  padding: 0 !important;
}

body .wp-site-blocks > header .ote-logo-wrapper p,
body .wp-site-blocks > header .ote-app-bar-nav p {
  margin: 0;
}

body .wp-site-blocks > header .ote-logo {
  display: block;
  width: clamp(160px, 45vw, 240px);
  max-width: 100%;
  height: auto;
}

body .wp-site-blocks > header .ote-logo path {
  fill: var(--masthead-ink);
}

body .wp-site-blocks > header .ote-app-bar-nav > .alignwide > .wp-block-group:last-child {
  flex-shrink: 0;
  gap: 4px !important;
}

body .wp-site-blocks > header .ote-app-bar-nav > .alignwide > .wp-block-group:last-child > .wp-block-group {
  padding: 0 !important;
}

body .wp-site-blocks > header .ote-app-bar-nav :is(#searchToggle, #themeToggle, .wp-block-navigation__responsive-container-open) {
  box-sizing: border-box;
  width: 44px !important;
  min-width: 44px;
  height: 44px !important;
  padding: 10px !important;
  border-radius: 0 !important;
  color: var(--masthead-ink) !important;
}

body .wp-site-blocks > header.wp-block-template-part .ote-app-bar-nav :is(a, button):focus-visible {
  outline: 2px solid var(--masthead-ink) !important;
  outline-offset: 3px;
  box-shadow: none !important;
  border-radius: 0;
}

@media (min-width: 900px) {
  body .wp-site-blocks > header.wp-block-template-part .ote-app-bar-nav > .alignwide {
    display: grid;
    grid-template-columns: 44px 44px minmax(0, 1fr) 44px 44px;
    gap: 8px;
    padding: 18px 0 0 !important;
  }

  body .wp-site-blocks > header .ote-app-bar-nav > .alignwide > .wp-block-group:first-child {
    grid-column: 1 / 4;
    grid-row: 1;
    justify-self: start;
  }

  body .wp-site-blocks > header .ote-logo {
    width: 360px;
  }

  /* Reuse the existing control groups without changing navigation markup. */
  body .wp-site-blocks > header .ote-app-bar-nav > .alignwide > .wp-block-group:last-child {
    display: contents;
  }

  body .wp-site-blocks > header .ote-app-bar-nav > .alignwide > .wp-block-group:last-child > .wp-block-group:first-child {
    grid-column: 4;
    grid-row: 1;
  }

  body .wp-site-blocks > header .ote-app-bar-nav > .alignwide > .wp-block-group:last-child > .wp-block-group:nth-child(2) {
    grid-column: 5;
    grid-row: 1;
  }

  body .wp-site-blocks > header .ote-app-bar-nav .wp-block-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    width: 100%;
    margin-top: 4px;
    border-top: 1px solid var(--masthead-rule);
  }

  body .wp-site-blocks > header .ote-app-bar-nav .wp-block-navigation__container {
    justify-content: center;
    gap: 0 !important;
  }

  body .wp-site-blocks > header .ote-app-bar-nav .wp-block-navigation-item + .wp-block-navigation-item {
    border-left: 1px solid var(--masthead-rule);
  }

  body .wp-site-blocks > header .ote-app-bar-nav .wp-block-navigation .wp-block-navigation-item a {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 22px !important;
    border-radius: 0 !important;
    font-family: var(--fp-display, "Archivo", "Arial Narrow", sans-serif);
    font-size: 15px;
    font-weight: 700;
    font-stretch: 85%;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--masthead-ink) !important;
    background: transparent !important;
  }

  body .wp-site-blocks > header .ote-app-bar-nav .wp-block-navigation .wp-block-navigation-item a:hover {
    text-decoration: underline !important;
    text-underline-offset: 5px;
  }

  body .wp-site-blocks > header.wp-block-template-part .ote-app-bar-nav .wp-block-navigation .wp-block-navigation-item a:focus-visible {
    outline: 2px solid var(--masthead-ink) !important;
    outline-offset: -4px;
  }
}

/* Interior pages use the same measure, green rules and display type as the cover. */
.ote-interior {
  --ote-section-ink: #1f5133;
  --ote-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --ote-hairline: color-mix(in oklch, var(--ote-section-ink) 28%, transparent);
}

html[data-theme="dark"] .ote-interior {
  --ote-section-ink: #cfe3b5;
}

.wp-site-blocks > main.ote-interior {
  box-sizing: border-box;
  width: min(100% - 2 * clamp(1rem, 4vw, 3rem), 1240px);
  margin: 0 auto clamp(3rem, 7vw, 6rem);
  padding-block-start: 1.5rem;
}

.ote-interior .ote-page-title {
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  padding-top: .75rem;
  border-top: 0;
  color: var(--ote-section-ink);
  font-family: var(--ote-display);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 800;
  font-stretch: 68%;
  line-height: 1.05;
}

.ote-interior .entry-content > :is(p, ul, ol, h2, h3, .wp-block-buttons, .wp-block-table) {
  max-width: 44rem;
  margin-inline: auto;
}

.ote-interior :is(.entry-content > h2, .ote-section-header .wp-block-heading) {
  color: var(--ote-section-ink);
  font-family: var(--ote-display);
  font-weight: 800;
  font-stretch: 70%;
}

.ote-interior .ote-section-header {
  flex-wrap: wrap;
  border-bottom: 1px dashed var(--ote-hairline);
  padding-bottom: .75rem;
}

.ote-interior :is(.ote-news-grid, .ote-organization-grid, .staff-profile-card, .publication-archive-block) {
  --radius-m: 3px;
}

.ote-interior :is(.wp-block-post-template > li, .publication-archive-block .volume-item) {
  border-radius: 3px;
  border-color: var(--ote-hairline);
}

.ote-interior .ote-news-grid,
.ote-interior .ote-organization-grid .wp-block-post-template {
  max-width: none;
}

.ote-interior .ote-news-grid .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-inline: 0;
}

.ote-interior .ote-news-grid .wp-block-post-template > li {
  width: auto;
  margin: 0;
}

.ote-interior .ote-news-grid .wp-block-post-featured-image {
  aspect-ratio: 3 / 2;
  border-radius: 0;
}

.ote-interior .ote-news-grid .wp-block-post-featured-image img {
  height: 100%;
  object-fit: cover !important;
  border-radius: 0 !important;
}

@media (max-width: 900px) {
  .ote-interior .ote-news-grid .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ote-interior .ote-news-grid .wp-block-post-template {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Editorial layout within the six section pages. */
.ote-interior {
  --ote-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ote-frame: #1f5133;
  --ote-paper: #eaf2dc;
  --ote-tint: color-mix(in oklch, var(--ote-section-ink) 8%, var(--background));
}

html[data-theme="dark"] .ote-interior {
  --ote-frame: #1c3826;
  --ote-paper: #e3efcf;
}

.ote-interior .entry-content > :is(p, ul, ol),
.ote-interior .wp-block-table {
  font-family: var(--ote-serif);
  font-size: 1.125rem;
  line-height: 1.6;
}

.ote-interior .entry-content > p:first-child {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.ote-interior .entry-content > h2 {
  margin-block: 2.5rem .75rem;
  padding-top: .6rem;
  border-top: 0;
  line-height: 1.12;
}

.ote-interior .entry-content > :is(p, ul, ol) a {
  color: var(--ote-section-ink);
  text-underline-offset: .18em;
}

.ote-interior .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.ote-interior .wp-block-table :is(td, th) {
  padding: .65em .75em;
  border: 0;
  border-bottom: 1px solid var(--ote-hairline);
}

.ote-interior .wp-block-table tr:nth-child(even) {
  background: var(--ote-tint);
}

.ote-interior .wp-block-table tr:first-child {
  background: var(--ote-frame);
  color: var(--ote-paper);
  font-family: var(--ote-display);
}

.ote-interior .ote-section-header {
  align-items: baseline;
  gap: .75rem 1.5rem;
  padding: .8rem 0;
  border-top: 0;
}

.ote-interior .ote-section-header .wp-block-heading {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.ote-interior .ote-organization-grid .wp-block-post-template {
  gap: clamp(1rem, 2.4vw, 2rem);
  padding-inline: 0;
}

.ote-interior .ote-organization-grid li.wp-block-post {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
  padding: 1.25rem;
  border-top: 0;
}

.ote-interior .ote-organization-grid li.wp-block-post > :is(.wp-block-post-title, .staff-field-block, .wp-block-buttons) {
  margin: 0 !important;
  padding: 0 !important;
}

.ote-interior .ote-organization-grid li.wp-block-post > .wp-block-buttons {
  margin-top: auto !important;
}

.ote-interior .ote-organization-grid .wp-block-post-featured-image {
  margin: 0;
  align-self: flex-start;
  background: transparent;
}

.ote-interior .ote-organization-grid .wp-block-post-featured-image,
.ote-interior .ote-organization-grid .wp-block-post-featured-image img {
  border-radius: 0;
  object-fit: contain;
}

.ote-interior :is(.ote-news-grid, .ote-organization-grid) li.wp-block-post:hover {
  transform: none;
}

.ote-interior .ote-news-grid li.wp-block-post::before,
.ote-interior .ote-news-grid li.wp-block-post:not(:has(.wp-block-post-featured-image))::after,
.ote-interior .ote-organization-grid li.wp-block-post:not(:has(.wp-block-post-featured-image))::before {
  content: none;
}

.ote-interior .wp-block-query li.wp-block-post :is(.wp-block-post-title, .wp-block-post-title a, .staff-field-content a) {
  font-family: var(--ote-serif) !important;
  font-size: 1.3125rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: var(--ote-section-ink) !important;
  text-wrap: pretty;
}

.ote-interior .wp-block-query li.wp-block-post:not(:has(.wp-block-post-featured-image)) :is(.wp-block-post-title a, .staff-field-content a) {
  font-size: 1.625rem !important;
}

.ote-interior .wp-block-query :is(.staff-field-content, .wp-block-post-date, .wp-block-post-terms, .wp-block-post-terms a) {
  font-family: var(--ote-display);
}

.ote-interior .wp-block-query .wp-block-post-terms a {
  background: transparent;
  color: var(--ote-section-ink);
  padding: 0;
  border: 0;
}

.ote-interior .wp-block-button .wp-block-button__link,
.ote-interior .ote-category-filters button.ote-chip,
.ote-interior .wp-block-query-pagination :is(a, .current),
.ote-interior .ote-org-search-field .ote-org-search-input {
  border: 1px solid var(--ote-hairline) !important;
  border-radius: 3px !important;
  background: var(--background) !important;
  color: var(--ote-section-ink) !important;
  font-family: var(--ote-display) !important;
  box-shadow: none !important;
  transform: none !important;
}

.ote-interior .wp-block-button .wp-block-button__link::before,
.ote-interior .wp-block-button .wp-block-button__link::after {
  content: none !important;
}

.ote-interior .entry-content > .wp-block-buttons .wp-block-button__link,
.ote-interior .ote-category-filters button.ote-chip:is(.is-active, :hover),
.ote-interior .wp-block-query-pagination .current {
  background: var(--ote-frame) !important;
  color: var(--ote-paper) !important;
}

.ote-interior .wp-block-query .wp-block-button .wp-block-button__link.wp-element-button {
  color: var(--ote-section-ink) !important;
  box-shadow: none !important;
  min-width: 0;
  padding: .35rem 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-weight: 700;
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: .25em;
}

/* Staff, alumni, and club directory cards. */
.ote-interior .ote-organization-grid :is(.staff-profile-card > li.staff_profile, .club-directory-cards > li.organization) {
  padding: .875rem 0 0;
  gap: .375rem;
  border: 1px solid var(--ote-hairline);
  background: transparent;
}

.ote-interior .staff-profile-card > li.staff_profile > :not(.staff-profile-link) {
  margin-inline: 1rem;
}

@media (min-width: 1100px) {
  .ote-interior .ote-organization-grid :is(.staff-profile-card, .club-directory-cards).wp-block-post-template {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ote-interior .staff-profile-card > li.staff_profile > .staff-field-block {
  align-self: center;
  text-align: center;
}

.ote-interior .staff-profile-card .staff-field-block:first-of-type .staff-field-content {
  font: 600 1.1875rem/1.3 var(--ote-serif);
  color: var(--ote-section-ink);
}

.ote-interior .staff-profile-card .staff-field-block + .staff-field-block .staff-field-content {
  font-size: .9375rem;
}

.ote-interior :is(.staff-profile-card .staff-profile-link, .club-directory-cards .club-details-link) {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  min-height: 24px;
  margin: auto 0 0;
  background: var(--ote-frame);
  color: var(--ote-paper);
  font: 500 .8125rem/1.2 var(--ote-display);
  text-decoration: none;
}

.ote-interior :is(.staff-profile-card .staff-profile-link, .club-directory-cards .club-details-link):is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.ote-interior .club-directory-cards > li.organization > .wp-block-post-featured-image {
  align-self: center;
}

.ote-interior .wp-block-query .club-directory-cards > li.organization > .wp-block-post-title {
  align-self: stretch;
  padding-inline: 1rem !important;
  text-align: center !important;
  font-size: 1.1875rem !important;
}

.ote-interior .publication-archive-block .volume-item {
  border: 0;
  border-top: 0;
  border-radius: 0;
  background: var(--background);
}

.ote-interior .publication-archive-block .volume-header {
  padding: 1rem clamp(.75rem, 2.5vw, 2rem);
  background: var(--ote-tint);
}

.ote-interior .publication-archive-block :is(.volume-name, .issue-name) {
  color: var(--ote-section-ink);
  font-family: var(--ote-display);
  font-weight: 800;
  font-stretch: 72%;
}

.ote-interior .publication-archive-block .volume-name {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.ote-interior .publication-archive-block :is(.article-count, .issue-date, .issue-pdf-link, .view-all-link) {
  color: var(--ote-section-ink);
  font-family: var(--ote-display);
}

.ote-interior .publication-archive-block .article-link {
  color: var(--foreground);
  font: 600 1.1rem/1.4 var(--ote-serif);
}

.ote-interior #unbc-calendar-react-component {
  font-family: var(--ote-display);
  border-top: 0;
}

.ote-interior #unbc-calendar-react-component :is(h2, h3) {
  font-family: var(--ote-display);
  font-weight: 800;
  font-stretch: 72%;
  color: var(--ote-section-ink);
}

.ote-interior #unbc-calendar-react-component [role="tabpanel"] h3.text-base {
  font-family: var(--ote-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.ote-interior #unbc-calendar-react-component :is(input, button, [data-slot="tabs-list"], [data-slot="card"]) {
  font-family: var(--ote-display);
  border-radius: 3px;
  box-shadow: none;
}

.ote-interior #unbc-calendar-react-component :is(input, [data-slot="select-trigger"], [data-slot="tabs-list"], [data-slot="card"]) {
  border-color: var(--ote-hairline);
}

.ote-interior #unbc-calendar-react-component [data-slot="tabs-trigger"][data-state="active"] {
  background: var(--ote-frame);
  color: var(--ote-paper);
}

.ote-interior #unbc-calendar-react-component .grid-cols-7:first-of-type,
.ote-interior #unbc-calendar-react-component .grid-cols-7.mb-4 {
  color: var(--ote-section-ink);
}

.ote-interior :is(a, button, input, [role="button"]):focus-visible {
  outline: 2px solid var(--ote-section-ink) !important;
  outline-offset: 2px;
}
