/*
  customstyles.css

  Site-wide look for phibetadelta.org, layered on top of Bootstrap 5
  (vendor/bootstrap-5.3.8). Colors and fonts are defined once as variables in
  :root, so change them there.

  The site was built on Bootstrap 3. A few things it relies on are defined here
  instead: the .panel box (Bootstrap 5 replaced it with .card), .btn-default,
  .form-group, and Bootstrap 3's link, heading and table defaults.

  Sections:
    1. Design tokens
    2. Base (page, text, links, headings)
    3. Site header and navigation  (helpers/navbarTemplate.php)
    4. Site footer                 (helpers/footerTemplate.php)
    5. Components (panels, buttons, forms, tables, alerts)
    6. Link lists (the <ul><a><li> sidebar pattern)
    7. Page heroes and cards (used by the main pages)
    8. Page-specific rules (kept from the old stylesheet)
*/

/* ---------- 1. Design tokens ---------- */

:root {
  --pbd-crimson: #6e0f1d;
  --pbd-crimson-deep: #4f0914;
  --pbd-red: #9a1c2c;          /* links and headings on light backgrounds */
  --pbd-gold: #b8892b;         /* rules and accents on light backgrounds */
  --pbd-gold-light: #e3c06b;   /* text and accents on crimson */
  --pbd-gold-wash: #f6ecd4;

  --ink: #231c1a;
  --ink-muted: #615652;
  --paper: #faf7f2;
  --surface: #ffffff;
  --line: #e8e0d4;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(40, 20, 15, .05), 0 10px 30px -18px rgba(70, 20, 20, .25);

  --font-serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", Arial, Helvetica, sans-serif;
}

/* ---------- 2. Base ---------- */

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Pages wrap everything in .container-fluid; let the header and footer run edge to edge. */
body > .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

/* ...but pages that put a .row straight inside it still need their side gutter. */
body > .container-fluid > .row,
.fluid-container > .row { /* "fluid-container" is a misspelling some pages use; it has no padding */
  margin-left: 0;
  margin-right: 0;
}

/*
  Many older pages use .row as a plain wrapper around headings, text and buttons,
  with no grid columns inside. Bootstrap 5 makes every row a flex container with
  full-width children; keep Bootstrap 3's normal flow for those rows.
*/
.row:not(:has(> [class*="col-"], > .col)) {
  display: block;
}

.row:not(:has(> [class*="col-"], > .col)) > * {
  width: auto;
}

/* Long URLs and email addresses wrap instead of widening the page. */
body {
  overflow-wrap: break-word;
}

/* Bootstrap 5 underlines every link; keep Bootstrap 3's look (underline on hover only). */
a {
  color: var(--pbd-red);
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover,
a:focus {
  color: var(--pbd-crimson-deep);
}

a:not(.btn, .nav-link, .dropdown-item, .brand, .feature-card):hover {
  text-decoration: underline;
}

/* Wide containers: Bootstrap 5 grows to 1320px on large screens; keep line lengths comfortable. */
@media (min-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--pbd-gold);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--pbd-crimson);
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.005em;
}

/* Bootstrap 3 heading spacing, which the older pages were laid out with. */
h1, h2, h3 {
  margin-top: 20px;
  margin-bottom: 10px;
}

h4, h5, h6 {
  margin-top: 10px;
  margin-bottom: 10px;
}

h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 26px; }
h4 { font-size: 21px; }
h5 { font-size: 18px; }
h6 { font-size: 15px; }

@media (max-width: 767px) {
  h1 { font-size: 32px; }
  h2 { font-size: 27px; }
  h3 { font-size: 23px; }
}

p {
  margin-bottom: 1em;
}

/* Older pages put <br> after headings for spacing; the heading margins already do that. */
h1 + br, h2 + br, h3 + br, h4 + br, h5 + br {
  display: none;
}

h2, h3 {
  margin-top: 28px;
}

li {
  line-height: 1.6;
}

ul {
  padding-left: 1.5em;
  margin: 0;
}

/*
  Lettered lists: <ol type="A" class="letter-list"> (add letter-list--lower for a, b, c).
  Browsers right-align list markers, so narrow letters like "I." start further right
  than "D.". These draw the letters in a fixed-width, left-aligned column instead.
  (A class is needed because selectors can't tell type="A" from type="a".)
*/
ol.letter-list {
  padding-left: 1.6em;
  list-style: none;
  counter-reset: letter;
}

ol.letter-list > li {
  position: relative;
  counter-increment: letter;
}

ol.letter-list > li::before {
  position: absolute;
  left: -1.6em;
  width: 1.4em;
  content: counter(letter, upper-alpha) ".";
}

ol.letter-list--lower > li::before {
  content: counter(letter, lower-alpha) ".";
}

hr {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--line);
  opacity: 1;
}

strong, b {
  font-weight: 600;
}


/* ---------- 3. Site header and navigation ---------- */

.site-header {
  background: var(--pbd-crimson);
  background-image:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, var(--pbd-crimson) 0%, var(--pbd-crimson-deep) 100%);
  border-bottom: 3px solid var(--pbd-gold-light);
  color: #fff;
  position: relative;
  z-index: 1000;
  margin-bottom: 40px; /* space above page content; pages are not structured consistently enough to pad the content instead */
}

/* The homepage hero sits directly under the header. */
.home .site-header {
  margin-bottom: 0;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}

.brand:hover,
.brand:focus {
  color: #fff;
  text-decoration: none;
}

.brand__crest {
  width: 44px;
  height: auto;
  flex: none;
}

.brand__name {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: .01em;
}

.brand__tagline {
  display: block;
  margin-top: 3px;
  color: var(--pbd-gold-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.site-nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.site-nav-toggle:hover,
.site-nav-toggle:focus {
  background: rgba(255, 255, 255, .1);
}

.site-nav-toggle .icon-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: #fff;
}

.site-nav-toggle .icon-bar + .icon-bar {
  margin-top: 4px;
}

/*
  Main menu: a Bootstrap 5 .navbar.navbar-expand-lg, so it collapses below 992px
  (eight items don't fit on one line on tablets). The Menu button sits in the
  brand bar above it and is shown/hidden here rather than by Bootstrap.
*/
.site-nav {
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.site-nav .navbar-nav {
  margin: 0 -14px;
}

.site-nav .navbar-nav .nav-link {
  position: relative;
  padding: 13px 14px 14px;
  color: rgba(255, 255, 255, .88);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  background: transparent;
}

.site-nav .navbar-nav .nav-link:hover,
.site-nav .navbar-nav .nav-link:focus-visible,
.site-nav .navbar-nav .nav-link.show {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

/* Current section: gold underline (::before, because ::after is the dropdown caret) */
.site-nav .navbar-nav .nav-link.is-active {
  color: #fff;
}

.site-nav .navbar-nav .nav-link.is-active::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--pbd-gold-light);
}

.site-nav .dropdown-toggle::after {
  margin-left: 6px;
  vertical-align: 2px;
  opacity: .7;
}

.site-nav .dropdown-menu {
  min-width: 240px;
  margin-top: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 16px 40px -16px rgba(40, 10, 10, .35);
}

.site-nav .dropdown-item {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 15px;
  white-space: normal;
}

.site-nav .dropdown-item:hover,
.site-nav .dropdown-item:focus,
.site-nav .dropdown-item:active {
  background: var(--pbd-gold-wash);
  color: var(--pbd-crimson);
}

@media (max-width: 991.98px) {
  .site-nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    border-top: 0;
  }

  .site-nav .navbar-nav {
    margin: 0 0 12px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, .15);
  }

  .site-nav .navbar-nav .nav-link {
    padding: 11px 4px;
    font-size: 16px;
  }

  .site-nav .navbar-nav .nav-link.is-active::before {
    left: 0;
    right: auto;
    top: 10px;
    bottom: 10px;
    width: 3px;
    height: auto;
    border-radius: 0 3px 3px 0;
    margin-left: -12px;
  }

  .site-nav .navbar-nav .dropdown-menu {
    min-width: 0;
    margin: 0 0 8px;
    padding: 0 0 0 12px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, .2);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav .navbar-nav .dropdown-item {
    padding: 8px 12px;
    color: rgba(255, 255, 255, .85);
    line-height: 1.4;
  }

  .site-nav .navbar-nav .dropdown-item:hover,
  .site-nav .navbar-nav .dropdown-item:focus,
  .site-nav .navbar-nav .dropdown-item:active {
    background: rgba(255, 255, 255, .08);
    color: #fff;
  }
}

@media (max-width: 479px) {
  .brand__crest {
    width: 36px;
  }

  .brand__name {
    font-size: 22px;
  }

  .brand__tagline {
    font-size: 10px;
    letter-spacing: .1em;
  }

  .site-nav-toggle__label {
    display: none;
  }
}

/* ---------- 4. Site footer ---------- */

/*
  On short pages the window is taller than the page. Giving <html> the footer's color
  (the page itself keeps the paper color on <body>) makes the space below the footer
  read as part of the footer instead of an empty strip.
*/
html {
  background-color: var(--pbd-crimson-deep);
}

/* Older pages end with an <hr> (sometimes plus <br>s) right before the footer; the footer has its own border. */
hr:has(+ .site-footer),
hr:has(+ br + .site-footer),
hr:has(+ br + br + .site-footer) {
  display: none;
}

.site-footer {
  /* Some pages include the footer inside a .container; stretch it to the full window width anyway. */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 56px;
  background: var(--pbd-crimson-deep);
  border-top: 3px solid var(--pbd-gold-light);
  color: rgba(255, 255, 255, .8);
  font-size: 15px;
}

.site-footer__main {
  padding-top: 48px;
  padding-bottom: 32px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--pbd-gold-light);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--pbd-gold-light);
}

.site-footer__brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.site-footer__brand img {
  width: 40px;
  height: auto;
  flex: none;
}

.site-footer__name {
  margin: 0;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.2;
}

.site-footer address {
  margin: 4px 0 0;
  line-height: 1.6;
}

.site-footer__links {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.site-footer__links li {
  margin-bottom: 6px;
}

.site-footer__links a {
  text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__links a:focus {
  text-decoration: underline;
}

.site-footer__donate p {
  margin-bottom: 14px;
}

.btn-donate {
  display: inline-block;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--pbd-gold-light);
  color: var(--pbd-crimson-deep);
  font-weight: 700;
}

.btn-donate:hover,
.btn-donate:focus {
  background: #eccf8a;
}

.site-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  font-size: 18px;
  text-decoration: none;
}

.site-footer__social a:hover,
.site-footer__social a:focus {
  border-color: var(--pbd-gold-light);
}

.site-footer__bottom {
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
}

/* ---------- 5. Components (panels, buttons, forms, tables, alerts) ---------- */

/*
  .panel / .panel-heading / .panel-body: the content box used on almost every page.
  Bootstrap 3 had this component and Bootstrap 5 does not, so it is defined in full
  here. (.panel-warning was Bootstrap 3's yellow variant; it now looks like any panel.)
*/
.panel {
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-heading {
  padding: 22px 28px 16px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface);
  color: var(--ink);
}

.panel-body {
  padding: 24px 28px 28px;
}

/* Several pages put a panel straight inside a .row; Bootstrap 5 would pad it like a column. */
.row > .panel {
  padding-left: 0;
  padding-right: 0;
}

/* Contain floated images (e.g. #about-img, .bio-pics), as Bootstrap 3's panel did. */
.panel-body::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 767px) {
  .panel-heading {
    padding: 18px 18px 12px;
  }

  .panel-body {
    padding: 18px 18px 22px;
  }
}

/* Page titles sit in the panel heading. Many pages add inline margins here. */
.panel-heading h1,
.panel-heading h2 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.panel-heading h1 {
  position: relative;
  padding-bottom: 14px;
}

.panel-heading h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--pbd-gold);
}

/* Some pages put an <hr> right after the heading; the heading already has a bottom border. */
.panel-heading + hr {
  display: none;
}

/* A subtitle under the page title (e.g. contact.php) */
.panel-heading h1 ~ h2,
.panel-heading h1 ~ h3 {
  margin-top: 14px !important;
}

.panel-heading h1.text-center::after {
  left: 50%;
  margin-left: -24px;
}

/* Sidebar panels: smaller label-style heading. */
.panel-heading h4,
.panel-heading h3 {
  margin: 0;
  font-size: 19px;
}

.panel-body h4.sidebar-header,
.sidebar-header {
  margin: 0 0 8px;
  font-size: 19px;
}

.panel-body .sidebar-header ~ .sidebar-header,
.panel-body ul + .sidebar-header {
  margin-top: 22px;
}

/* Sidebar panels sit in narrow columns; tighten them up. */
.col-md-2 > .panel .panel-heading,
.col-md-3 > .panel .panel-heading {
  padding: 16px 18px 12px;
}

.col-md-2 > .panel .panel-body,
.col-md-3 > .panel .panel-body {
  padding: 14px 18px 18px;
  font-size: 15px;
}

/* Older pages give images fixed pixel widths; keep them inside their column. */
img {
  max-width: 100%;
}

/* :where() keeps this at the lowest specificity, so any class that sets an image height still wins. */
img:where(:not(.bio-pics, .spon-logo, .publications-pics)) {
  height: auto;
}

.container iframe,
.container video {
  max-width: 100%;
}

.container iframe[src*="youtube.com"] {
  height: auto;
  aspect-ratio: 16 / 9;
}

/* Wide content tables scroll sideways on phones instead of stretching the page. */
@media (max-width: 767px) {
  main table,
  .container table,
  [class*="col-"] table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}

/* A panel inside a panel (e.g. theExecutiveOffice.php) stays flat. */
.panel .panel {
  box-shadow: none;
}

.img-thumbnail {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

/*
  Buttons are themed through Bootstrap 5's button variables, so hover, pressed,
  focus and disabled states all stay in the site colors.
*/
.btn {
  --bs-btn-padding-x: 18px;
  --bs-btn-padding-y: 8px;
  --bs-btn-font-size: 15px;
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: 999px;
  --bs-btn-focus-box-shadow: 0 0 0 3px rgba(184, 137, 43, .35);
}

.btn-lg {
  --bs-btn-padding-x: 26px;
  --bs-btn-padding-y: 12px;
  --bs-btn-font-size: 16px;
  --bs-btn-border-radius: 999px;
}

.btn-sm {
  --bs-btn-padding-x: 12px;
  --bs-btn-padding-y: 4px;
  --bs-btn-font-size: 13px;
  --bs-btn-border-radius: 999px;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--pbd-crimson);
  --bs-btn-border-color: var(--pbd-crimson);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--pbd-crimson-deep);
  --bs-btn-hover-border-color: var(--pbd-crimson-deep);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--pbd-crimson-deep);
  --bs-btn-active-border-color: var(--pbd-crimson-deep);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--pbd-crimson);
  --bs-btn-disabled-border-color: var(--pbd-crimson);
}

/* Bootstrap 3's neutral button. Bootstrap 5 dropped it; about 100 buttons on the site use it. */
.btn-default {
  --bs-btn-color: var(--ink);
  --bs-btn-bg: var(--surface);
  --bs-btn-border-color: #d9cfc1;
  --bs-btn-hover-color: var(--pbd-crimson-deep);
  --bs-btn-hover-bg: var(--pbd-gold-wash);
  --bs-btn-hover-border-color: var(--pbd-gold);
  --bs-btn-active-color: var(--pbd-crimson-deep);
  --bs-btn-active-bg: #efdcae;
  --bs-btn-active-border-color: var(--pbd-gold);
  --bs-btn-disabled-color: var(--ink-muted);
  --bs-btn-disabled-bg: var(--surface);
  --bs-btn-disabled-border-color: #d9cfc1;
}

.btn-info {
  --bs-btn-color: var(--pbd-crimson-deep);
  --bs-btn-bg: var(--pbd-gold-wash);
  --bs-btn-border-color: var(--pbd-gold);
  --bs-btn-hover-color: var(--pbd-crimson-deep);
  --bs-btn-hover-bg: #efdcae;
  --bs-btn-hover-border-color: var(--pbd-gold);
  --bs-btn-active-color: var(--pbd-crimson-deep);
  --bs-btn-active-bg: #efdcae;
  --bs-btn-active-border-color: var(--pbd-gold);
}

.btn-gold {
  --bs-btn-color: var(--pbd-crimson-deep);
  --bs-btn-bg: var(--pbd-gold-light);
  --bs-btn-border-color: var(--pbd-gold-light);
  --bs-btn-hover-color: var(--pbd-crimson-deep);
  --bs-btn-hover-bg: #eccf8a;
  --bs-btn-hover-border-color: #eccf8a;
  --bs-btn-active-color: var(--pbd-crimson-deep);
  --bs-btn-active-bg: #eccf8a;
  --bs-btn-active-border-color: #eccf8a;
}

.btn-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, .55);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(255, 255, 255, .1);
  --bs-btn-hover-border-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: rgba(255, 255, 255, .15);
  --bs-btn-active-border-color: #fff;
}

/* Form defaults from Bootstrap 3 that the site's forms are laid out with. */
label {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-group {
  margin-bottom: 15px;
}

.form-control {
  height: 42px;
  border-color: #d9cfc1;
  border-radius: 8px;
  box-shadow: none;
  font-size: 16px;
}

textarea.form-control {
  height: auto;
}

/* Bootstrap 5 styles drop-downs with .form-select; the site's use .form-control, so give them their arrow back. */
select.form-control {
  appearance: auto;
}

.form-control:focus {
  border-color: var(--pbd-gold);
  box-shadow: 0 0 0 3px rgba(184, 137, 43, .2);
}

/*
  Tables: Bootstrap 5 paints every cell white and sets its text color. Keep cells
  transparent and inheriting, as in Bootstrap 3, so row colors set on <tr>
  (bgcolor, .lodging-header-row) still show.
*/
.table {
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--line);
  --bs-table-striped-bg: #fbf8f2;
}

.table > :not(caption) > * > * {
  color: inherit;
  line-height: 1.45;
}

.table > thead > tr > th {
  border-bottom: 2px solid var(--line);
  color: var(--pbd-crimson);
  font-weight: 600;
}

table.table-bordered {
  margin-top: 20px;
  border: 1px solid var(--line);
}

table.table-bordered > thead > tr > th,
table.table-bordered > tbody > tr > td {
  border: 1px solid var(--line);
}

.alert {
  --bs-alert-border-radius: 8px;
}

.alert-info {
  --bs-alert-color: var(--ink);
  --bs-alert-bg: var(--pbd-gold-wash);
  --bs-alert-border-color: #ecdcb6;
}

/* ---------- 6. Link lists ---------- */

/*
  Sidebars and link columns across the site are written as
  <ul><a href="..."><li>Label</li></a></ul> (older pages) or
  <ul class="link-list"><li><a>Label</a></li></ul>. Show those as a list of
  link rows: link colour, a marker on the right (› a page, "PDF" a PDF file,
  ↗ another website) and a tinted row on hover.
*/
ul:has(> a > li),
ul.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul:has(> a > li) > a,
ul.link-list > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 -10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  border-radius: 6px;
  color: var(--pbd-red);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}

ul:has(> a > li) > a > li {
  flex: 1;
  list-style: none;
}

ul:has(> a > li) > a:last-child,
ul.link-list > li:last-child > a {
  border-bottom-color: transparent;
}

/* Marker on the right */
ul:has(> a > li) > a::after,
ul.link-list > li > a::after {
  content: "\203A";
  flex: none;
  color: var(--pbd-gold);
  font-size: 20px;
  line-height: 1;
  transition: transform .15s;
}

ul:has(> a > li) > a[href$=".pdf" i]::after,
ul.link-list > li > a[href$=".pdf" i]::after {
  content: "PDF";
  padding: 1px 6px;
  border: 1px solid #e3d3b0;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
}

ul:has(> a > li) > a:is([href$=".xls" i], [href$=".xlsx" i])::after,
ul.link-list > li > a:is([href$=".xls" i], [href$=".xlsx" i])::after {
  content: "XLS";
}

ul:has(> a > li) > a:is([href$=".doc" i], [href$=".docx" i])::after,
ul.link-list > li > a:is([href$=".doc" i], [href$=".docx" i])::after {
  content: "DOC";
}

ul:has(> a > li) > a:is([href$=".ppt" i], [href$=".pptx" i])::after,
ul.link-list > li > a:is([href$=".ppt" i], [href$=".pptx" i])::after {
  content: "PPT";
}

ul:has(> a > li) > a:is([href$=".pdf" i], [href$=".xls" i], [href$=".xlsx" i], [href$=".doc" i], [href$=".docx" i], [href$=".ppt" i], [href$=".pptx" i])::after,
ul.link-list > li > a:is([href$=".pdf" i], [href$=".xls" i], [href$=".xlsx" i], [href$=".doc" i], [href$=".docx" i], [href$=".ppt" i], [href$=".pptx" i])::after {
  padding: 1px 6px;
  border: 1px solid #e3d3b0;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
}

ul:has(> a > li) > a[href^="http"]:not([href*="phibetadelta.org"])::after,
ul.link-list > li > a[href^="http"]:not([href*="phibetadelta.org"])::after {
  content: "\2197";
  font-size: 15px;
}

ul:has(> a > li) > a:hover,
ul:has(> a > li) > a:focus-visible,
ul.link-list > li > a:hover,
ul.link-list > li > a:focus-visible {
  background: var(--pbd-gold-wash);
  color: var(--pbd-crimson-deep);
  text-decoration: none;
}

ul:has(> a > li) > a:hover::after,
ul.link-list > li > a:hover::after {
  transform: translateX(3px);
}

/* ---------- 7. Page heroes and cards ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--pbd-crimson-deep);
  background-image:
    radial-gradient(90% 120% at 100% 0%, rgba(227, 192, 107, .16) 0%, rgba(227, 192, 107, 0) 60%),
    linear-gradient(160deg, var(--pbd-crimson) 0%, var(--pbd-crimson-deep) 100%);
  color: rgba(255, 255, 255, .88);
}

.page-hero .container {
  position: relative;
  padding-top: 72px;
  padding-bottom: 80px;
}

.page-hero__crest {
  position: absolute;
  right: 15px;
  top: 50%;
  width: 300px;
  height: auto;
  transform: translateY(-50%);
  opacity: .9;
}

.page-hero__body {
  max-width: 640px;
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--pbd-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.page-hero .eyebrow {
  color: var(--pbd-gold-light);
}

.page-hero h1 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 54px;
  line-height: 1.08;
}

.page-hero .lede {
  margin-bottom: 30px;
  font-size: 19px;
  line-height: 1.6;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
  list-style: none;
}

.page-hero__facts li {
  font-size: 14px;
  line-height: 1.4;
}

.page-hero__facts strong {
  display: block;
  color: var(--pbd-gold-light);
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
}

.page-hero__facts a {
  color: inherit;
}

@media (max-width: 991px) {
  .page-hero__crest {
    width: 200px;
    opacity: .18;
  }
}

@media (max-width: 767px) {
  .page-hero .container {
    padding-top: 48px;
    padding-bottom: 52px;
  }

  .page-hero h1 {
    font-size: 38px;
  }

  .page-hero .lede {
    font-size: 17px;
  }

  .page-hero__crest {
    width: 160px;
    right: -30px;
    top: 30px;
    transform: none;
  }
}

.section {
  padding: 56px 0 8px;
}

.section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 24px;
}

.section__header h2 {
  margin: 0;
}

/* Feature cards: text-first, equal height in a row. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--pbd-gold);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}

a.feature-card:hover,
a.feature-card:focus {
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(40, 20, 15, .06), 0 18px 40px -20px rgba(70, 20, 20, .35);
}

.feature-card .eyebrow {
  margin-bottom: 10px;
  font-size: 12px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.feature-card p {
  flex: 1;
  margin: 0 0 16px;
  color: var(--ink-muted);
}

.feature-card__more {
  color: var(--pbd-red);
  font-weight: 600;
}

.feature-card__more::after {
  content: " \2192";
}

/* Image-topped panel for link columns on the homepage. */
.link-panel {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.link-panel__media {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--pbd-gold-wash);
}

.link-panel__body {
  padding: 24px 28px 26px;
}

.link-panel__body h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.equal-row {
  display: flex;
  flex-wrap: wrap;
}

.equal-row > [class*="col-"] {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.equal-row > [class*="col-"] > * {
  flex: 1;
}

/* ---------- 8. Page-specific rules (kept from the old stylesheet) ---------- */

/* Slideshow play/pause buttons (testimonials.php) */
#carouselButtons {
  background-color: transparent;
  opacity: 0.5;
  margin-left: 10px;
  position: absolute;
  bottom: 0px;
}

.lodging-header-row {
  color: #fff;
  background: var(--pbd-crimson);
}

.publications-pics {
  width: 200px;
  height: 300px;
}

#about-img {
  float: left;
  max-width: 45%;
  margin: 4px 28px 16px 0;
  border-radius: 8px;
}

.top-sidebar a {
  color: #000;
}

.spon-logo {
  width: 100px;
  height: 150px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.box p {
  margin-left: 5em;
  line-height: 2;
}

.bio-pics {
  width: 100px;
  height: 150px;
  float: left;
  margin-right: .75em;
  border-radius: 6px;
  object-fit: cover;
}

/* Board of Directors (boardOfDirectors.php): sections of member cards, bios in pop-ups */
.board-intro,
.page-intro {
  margin-bottom: 8px;
  text-align: center;
}

.board-intro h1,
.page-intro h1 {
  margin: 0 0 8px;
}

.board-intro p,
.page-intro p {
  color: var(--ink-muted);
  font-size: 18px;
}

.board-section {
  margin-top: 40px;
}

.board-section > h2 {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 28px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

@media (max-width: 400px) {
  .board-grid {
    grid-template-columns: 1fr;
  }
}

.board-card {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 15px;
  line-height: 1.55;
}

.board-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.board-card__photo {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
  border: 2px solid var(--pbd-gold-wash);
}

img.board-card__photo {
  height: 72px; /* beats the site-wide img { height: auto } */
}

.board-card__initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pbd-crimson);
  color: var(--pbd-gold-light);
  font-family: var(--font-serif);
  font-size: 26px;
}

.board-card__role {
  margin: 0 0 4px;
  color: var(--pbd-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.board-card__name {
  margin: 0;
  font-size: 22px;
}

.board-card__info {
  margin: 0 0 10px;
  color: var(--ink-muted);
}

.board-card__contact {
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}

.board-card__note {
  margin: 0 0 10px;
  color: var(--ink-muted);
  font-style: italic;
}

/* The bio button sits at the bottom of the card, so buttons line up across a row.
   (.board-card prefix: the general .bio-toggle rule further down would otherwise reset the margin.) */
.board-card .board-card__bio {
  align-self: flex-start;
  margin-top: auto;
  margin-bottom: 0;
}

/* Keep a gap between the last line of details and the button on the tallest card in a row. */
.board-card > p:last-of-type {
  margin-bottom: 16px;
}

.board-bio .modal-header {
  gap: 16px;
  align-items: center;
}

.board-bio .modal-header .btn-close {
  align-self: flex-start;
  margin-left: auto;
}

.board-bio .modal-title {
  margin: 0;
  font-size: 26px;
}

.board-bio .modal-body {
  padding: 24px 28px;
  font-size: 16px;
  line-height: 1.7;
}

/* International Research and Review (internationalResearch.php): current issue, tabs, issue grid, archive */
.irr-current {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin: 28px 0 0;
  padding: 30px 36px;
  border-radius: var(--radius);
  background: var(--pbd-crimson-deep);
  background-image:
    radial-gradient(90% 140% at 100% 0%, rgba(227, 192, 107, .16) 0%, rgba(227, 192, 107, 0) 60%),
    linear-gradient(160deg, var(--pbd-crimson) 0%, var(--pbd-crimson-deep) 100%);
  color: rgba(255, 255, 255, .85);
}

.irr-current .eyebrow {
  color: var(--pbd-gold-light);
}

.irr-current h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 34px;
}

.irr-current p {
  margin: 0;
}

.irr-current__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/*
  Tabs. Below 1200px the seven tabs don't fit on one line, so they wrap as pill
  buttons (every tab stays visible, no sideways scrolling). From 1200px they sit
  in one row, underlined, attached to the panel below.
*/
.irr-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 16px;
}

.irr-tabs a {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.irr-tabs a:hover,
.irr-tabs a:focus-visible {
  border-color: var(--pbd-gold);
  color: var(--pbd-crimson);
  text-decoration: none;
}

.irr-tabs a.is-active {
  border-color: var(--pbd-gold);
  background: var(--pbd-gold-wash);
  color: var(--pbd-crimson);
}

.irr-panel {
  padding: 28px 32px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

@media (min-width: 1200px) {
  .irr-tabs {
    flex-wrap: nowrap;
    gap: 4px;
    margin: 28px 0 0;
    border-bottom: 1px solid var(--line);
  }

  .irr-tabs a {
    padding: 12px 16px 10px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    font-size: 16px;
  }

  .irr-tabs a:hover,
  .irr-tabs a:focus-visible {
    border-bottom-color: var(--line);
  }

  .irr-tabs a.is-active {
    border-bottom-color: var(--pbd-gold);
    background: transparent;
  }

  .irr-panel {
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
  }
}

.irr-panel > h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.irr-panel > h2:not(:first-child) {
  margin-top: 32px;
}

.irr-panel > h3 {
  margin: 28px 0 8px;
  font-size: 21px;
}

.irr-panel ol li,
.irr-panel ul li {
  margin-bottom: 6px;
}

.irr-panel ol:not(.letter-list),
.irr-panel ul:not(.irr-board) {
  margin-bottom: 16px;
  padding-left: 1.6em;
}

.irr-editor {
  margin-top: 32px;
  padding: 18px 22px;
  border-left: 3px solid var(--pbd-gold);
  border-radius: 0 8px 8px 0;
  background: var(--pbd-gold-wash);
}

.irr-editor p {
  margin: 0;
}

.irr-editor__name {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--pbd-crimson);
}

.irr-submit {
  margin: 20px 0;
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--pbd-gold-wash);
  font-weight: 600;
}

/* Issue cards */
.irr-issues {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}

.irr-issue {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--pbd-gold);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: background-color .15s, box-shadow .15s;
}

.irr-issue:hover,
.irr-issue:focus-visible {
  background: var(--pbd-gold-wash);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
}

.irr-issue__season {
  padding-right: 44px;
  color: var(--pbd-crimson);
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.2;
}

.irr-issue__volume {
  color: var(--ink-muted);
  font-size: 14px;
}

.irr-issue__note {
  color: var(--ink-muted);
  font-size: 12px;
  font-style: italic;
}

.irr-issue__tag {
  position: absolute;
  top: 16px;
  right: 14px;
  padding: 1px 6px;
  border: 1px solid #e3d3b0;
  border-radius: 4px;
  color: var(--pbd-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
}

.irr-issue--current {
  border-left-color: var(--pbd-crimson);
  background: var(--pbd-gold-wash);
}

/* Editorial board */
.irr-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.irr-board li {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
}

.irr-board__name {
  font-weight: 600;
}

.irr-board__place {
  color: var(--ink-muted);
}

.irr-board a {
  overflow-wrap: anywhere;
}

/* International Review archive */
.irr-archive__hint {
  font-weight: 600;
}

.irr-archive__issues {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.irr-archive__issue {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--pbd-red);
  font-size: 14px;
  font-weight: 600;
}

.irr-archive__issue:hover,
.irr-archive__issue:focus-visible,
.irr-archive__issue.is-active {
  border-color: var(--pbd-gold);
  background: var(--pbd-gold-wash);
  color: var(--pbd-crimson-deep);
}

.irr-archive__result:not(:empty) {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfbf7;
}

.irr-archive__result h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.irr-archive__result ul {
  padding-left: 1.2em;
}

.irr-archive__result li {
  margin-bottom: 8px;
}

@media (max-width: 575px) {
  .irr-current,
  .irr-panel {
    padding: 22px 20px;
  }

  .irr-current h2 {
    font-size: 26px;
  }
}

/* Conferences (pastConferences.php): highlighted latest conference, then a timeline by decade */
.conf-latest {
  margin: 28px 0 8px;
  padding: 32px 36px;
  border-radius: var(--radius);
  background: var(--pbd-crimson-deep);
  background-image:
    radial-gradient(90% 140% at 100% 0%, rgba(227, 192, 107, .16) 0%, rgba(227, 192, 107, 0) 60%),
    linear-gradient(160deg, var(--pbd-crimson) 0%, var(--pbd-crimson-deep) 100%);
  color: rgba(255, 255, 255, .88);
}

.conf-latest .eyebrow {
  color: var(--pbd-gold-light);
}

.conf-latest h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 34px;
}

.conf-latest .conf__meta {
  color: rgba(255, 255, 255, .85);
}

.conf-latest .conf__links a {
  color: var(--pbd-gold-light);
}

.conf-decade {
  margin-top: 44px;
}

.conf-decade > h2 {
  margin: 0 0 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 28px;
}

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

/* One conference: year on the left, details on the right, with a timeline rule between. */
.conf {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.conf:last-child {
  border-bottom: 0;
}

.conf__year {
  color: var(--pbd-gold);
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.1;
}

.conf__number {
  margin: 0 0 4px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.conf__theme {
  margin: 0 0 6px;
  font-size: 22px;
}

.conf__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  margin: 0 0 6px;
  color: var(--ink-muted);
}

.conf__badge {
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--pbd-gold-wash);
  color: var(--pbd-crimson-deep);
  font-size: 13px;
  font-weight: 600;
}

.conf-latest .conf__badge {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

.conf__note {
  margin: 0 0 6px;
  font-style: italic;
  color: var(--ink-muted);
}

.conf__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 4px 0 0;
  font-weight: 600;
  font-size: 15px;
}

@media (max-width: 575px) {
  .conf {
    grid-template-columns: 1fr;
  }

  .conf__year {
    font-size: 26px;
    margin-bottom: 4px;
  }

  .conf-latest {
    padding: 24px 22px;
  }

  .conf-latest h2 {
    font-size: 26px;
  }
}

/* Past and Present Directors (past&PresentDirectors.php): quick links, then one section per position */
.role-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 8px;
}

.role-nav a {
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}

.role-nav a:hover,
.role-nav a:focus {
  border-color: var(--pbd-gold);
  background: var(--pbd-gold-wash);
  color: var(--pbd-crimson);
  text-decoration: none;
}

.role {
  margin-top: 28px;
  padding: 24px 28px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  scroll-margin-top: 20px;
}

.role > h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

/* Two columns on wide screens; the list reads down the first column, then the second. */
.term-list {
  margin: 0;
  padding: 0;
  list-style: none;
  column-gap: 40px;
}

@media (min-width: 768px) {
  .term-list:has(> li:nth-child(6)) {
    columns: 2;
  }
}

.term {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
  font-size: 15px;
  line-height: 1.45;
}

.term__years {
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.term__name {
  font-weight: 600;
}

.term__place {
  display: block;
  color: var(--ink-muted);
}

.term__badge {
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--pbd-gold-wash);
  color: var(--pbd-crimson-deep);
  font-size: 12px;
  font-weight: 700;
  vertical-align: 1px;
}

.term--current .term__years {
  color: var(--pbd-crimson);
  font-weight: 600;
}

.term--vacant .term__name {
  color: var(--ink-muted);
  font-weight: 400;
  font-style: italic;
}

@media (max-width: 575px) {
  .role {
    padding: 18px 18px 12px;
  }

  .term {
    grid-template-columns: 96px 1fr;
  }
}

/* Shop (onlineshop.php): product sections, cards, shipping chooser */
.shop-callout {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-left: 3px solid var(--pbd-gold);
  border-radius: 0 8px 8px 0;
  background: var(--pbd-gold-wash);
}

.shop-shipping {
  margin: 24px 0 8px;
}

.shop-shipping legend {
  float: none;
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--pbd-crimson);
}

.shop-shipping__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.shop-shipping__option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-weight: 400;
}

.shop-shipping__option:has(input:checked) {
  border-color: var(--pbd-gold);
  background: var(--pbd-gold-wash);
  box-shadow: 0 0 0 1px var(--pbd-gold);
}

.shop-shipping__option input {
  margin-top: 5px;
  accent-color: var(--pbd-crimson);
}

.shop-shipping__option strong {
  display: block;
}

.shop-shipping__option span {
  color: var(--ink-muted);
  font-size: 14px;
}

.shop-rates {
  margin-top: 12px;
  font-size: 15px;
}

.shop-rates summary {
  color: var(--pbd-red);
  cursor: pointer;
}

.shop-rates table {
  margin: 10px 0 0;
}

.shop-section {
  margin-top: 36px;
}

.shop-section > h2 {
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 26px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.shop-item {
  display: flex;
  flex-direction: column;
  padding: 14px 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.shop-item__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: #f3eee6;
}

.container .shop-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-item__media--crest {
  background: var(--pbd-crimson);
}

.container .shop-item__media--crest img {
  width: auto;
  height: 70%;
  object-fit: contain;
}

.shop-item__title {
  margin: 0 0 2px;
  font-size: 19px;
}

.shop-item__note {
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
}

.shop-item__price {
  margin: 8px 0 2px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}

.shop-item__price span {
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 400;
}

/* Pushes quantity and PayPal button to the bottom so they line up across a row. */
.shop-item__buy {
  margin-top: auto;
  padding-top: 10px;
}

.shop-item__qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}

.shop-item__qty label {
  margin: 0;
}

.shop-item__qty input {
  width: 70px;
  padding: 4px 8px;
  border: 1px solid #d9cfc1;
  border-radius: 6px;
  text-align: center;
}

/* Hidden (but holding its space) until the PayPal button has finished
   rendering, so its loading frame never flashes. onlineshop.php adds .is-ready. */
.shop-item .paypal-button-container {
  min-height: 45px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.shop-item .paypal-button-container.is-ready {
  opacity: 1;
}

/* "Read bio" buttons (boardOfDirectors.php) */
.bio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 8px;
  padding: 5px 14px;
  border: 1px solid #d9cfc1;
  border-radius: 999px;
  background: var(--surface);
  color: var(--pbd-red);
  font-size: 14px;
  font-weight: 600;
}

.bio-toggle::after {
  content: "\2192";
  font-size: 13px;
}

.bio-toggle:hover,
.bio-toggle:focus {
  border-color: var(--pbd-gold);
  background: var(--pbd-gold-wash);
}

.conference-box {
  color: #ffc000 !important;
  background-color: #c00002;
  width: 60%;
  margin: 0 auto;
}

.media-body,
.website-title,
.website-title > h4 {
  color: gold;
}

.white {
  color: white;
}

/* chapters map */
#midwest {display: none;}
#northeast {display: none;}
#southwest {display: none;}
#southeast {display: none;}
#west {display: none;}

/* inMemoriam ids */
#spr2011b {display: none;}
#fal2010b {display: none;}
#sum2010b {display: none;}
#spr2008b {display: none;}
