/* ═══════════════════════════════════════════════════════════════
   RSM Faculty & Staff — UIbuilder Stylesheet
   Colors sourced from live regisstmary.org site inspection.
   Exact values from WP Additional CSS where noted.
═══════════════════════════════════════════════════════════════ */

/* ─── RESET ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  /* ── Exact values from WP Additional CSS ── */
  --rsm-gold:           #d19749;   /* top utility bar bg (brand gold: #CBA052) */
  --rsm-green:          #0b6b3a;   /* hero banner bg */
  --rsm-blue:           #005E85;   /* sidebar active — exact from WP CSS */
  --rsm-nav-text:       #025e2a;   /* nav link default — exact from WP CSS */
  --rsm-nav-hover:      #049041;   /* nav link hover — exact from WP CSS */
  --rsm-dropdown-bg:    #005938;   /* dropdown bg (GIMP verified) */
  --rsm-dropdown-hover: #004828;   /* dropdown item hover — exact from WP CSS */

  --rsm-sidebar-bg:     #eeeeee;   /* sidebar item bg — exact from WP CSS: #eee */
  --rsm-sidebar-border: #d8d8d8;
  --rsm-divider:        #cccccc;

  --rsm-footer:         #004779;   /* footer bg */
  --rsm-copyright:      #333333;   /* copyright bar */
  --rsm-footer-text:    #ffffff;

  /* ── Name/heading colors from WP CSS ── */
  --rsm-h2:             #00457a;   /* h2 color — exact from WP CSS */
  --rsm-link:           #005E85;
  --rsm-link-dark:      #004a6e;

  /* Typography */
  --font:         'Nunito Sans', 'Arial', sans-serif;
  --font-display: 'Nunito Sans', 'Arial', sans-serif;

  /* Layout */
  --max-width: 1275px;
  --gutter:    20px;

  /* Scale */
  --page-zoom: 1.07;
}

/* ─── BASE ───────────────────────────────────────────────────── */
html,
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background: #fff;
  zoom: var(--page-zoom);
}

a {
  text-decoration: none;
  color: inherit;
}
a:hover { text-decoration: underline; }
address { font-style: normal; }

/* ─── UTILITY BAR ────────────────────────────────────────────── */
.utility-bar {
  background-color: var(--rsm-gold);
  padding: 8px 0;
}
.utility-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.utility-lang { color: #fff; font-size: 12px; }
.utility-lang a { color: #fff; }
.utility-lang a:hover { text-decoration: underline; }
.utility-lang .sep { margin: 0 5px; opacity: 0.7; }
.utility-nav { display: flex; gap: 18px; }
.utility-nav a {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.15s;
}
.utility-nav a:hover {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

/* ─── SITE HEADER ────────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 14px 0;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.site-logo { height: 80px; width: auto; display: block; }

/* ─── MAIN NAV ───────────────────────────────────────────────── */
.main-nav {}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-list > li { position: relative; }
.nav-list>li>a {
  display: block;
  padding: 10px 7.5px;
  color: var(--rsm-nav-text);
  font-size: 13.4px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-list > li > a:hover,
.nav-list > li:hover > a {
  color: var(--rsm-nav-hover);
  background: transparent;
  text-decoration: none;
}

/* CSS-drawn chevron */
.caret {
  display: inline-block;
  font-size: 0;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 5px;
  vertical-align: middle;
  position: relative;
  top: -2px;
  opacity: 0.7;
}

/* Dropdown menus */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--rsm-dropdown-bg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  list-style: none;
}
.dropdown li a {
  display: block;
  padding: 8px 30px;          /* exact from WP CSS */
  color: #fff;
  font-size: 14px;            /* exact from WP CSS */
  line-height: 1.4em;         /* exact from WP CSS */
  font-weight: 520;
  transition: background 0.1s;
}
.dropdown li a:hover {
  background: var(--rsm-dropdown-hover);
  color: #fff !important;     /* exact from WP CSS */
  text-decoration: none;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }

/* ─── HERO BANNER ────────────────────────────────────────────── */
.hero-banner {
  background-color: var(--rsm-green);
  padding: 49px 0 49px;       /* taller to match WP */
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero-banner h1 {
  color: #fff;
  font-size: 42px;            /* exact from WP CSS */
  font-weight: 500;           /* exact from WP CSS */
  font-family: var(--font-display);
  letter-spacing: -1px;      /* exact from WP CSS */
  font-stretch: semi-condensed; /* exact from WP CSS */
  line-height: 1.1;
}

/* ─── CONTENT WRAP ───────────────────────────────────────────── */
.content-wrap {
  padding: 40px 0 60px;
  background: #fff;
}
.content-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

/* ─── MAIN CONTENT ───────────────────────────────────────────── */
.main-content {
  flex: 1 1 0;
  min-width: 0;
}

.section-heading {
  color: var(--rsm-h2);       /* #00457a — exact from WP h2 */
  font-size: 32px;            /* exact from WP h2 */
  font-weight: 500;           /* exact from WP h2 */
  font-stretch: semi-condensed; /* exact from WP h2 */
  line-height: 1.2em;
  margin-bottom: 20px;
}

/* Staff/Faculty table */
.staff-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.staff-table td {
  padding: 5px 10px 5px 0;
  font-size: 13.5px;
  vertical-align: top;
  line-height: 1.5;
}
.staff-table td:first-child { width: 45%; }

/* td.name — set by buildRow() in index.js */
td.name {
  color: var(--rsm-blue);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: 45%;
}

/* Row hover highlight */
.staff-table tr:hover td { background-color: #ddd; }

/* Name column */
.name-link {
  color: var(--rsm-link);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.name-link:hover { color: var(--rsm-link-dark); text-decoration: underline; }
.name-plain {
  color: var(--rsm-link);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.name-sublink {
  display: block;
  color: #cc6600;
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.name-sublink:hover { text-decoration: underline; }

/* Title column */
.title-cell { color: #555; font-size: 13.5px; }

/* Divider */
.section-divider {
  border: none;
  border-top: 1px solid var(--rsm-divider);
  margin: 40px 0;
}

/* Loading state */
.loading-cell { color: #999; font-style: italic; padding: 24px 10px; font-size: 13px; }

/* ─── SIDEBAR ────────────────────────────────────────────────── */
.sidebar {
  width: 310px;
  flex-shrink: 0;
  margin-top: 4px;
}
.sidebar-nav ul { list-style: none; }
.sidebar-nav li a {
  display: block;
  padding: 12px 20px;         /* exact from WP CSS */
  background: var(--rsm-sidebar-bg);
  color: #141414;             /* exact from WP CSS */
  font-size: 13px;
  border-bottom: 1px solid #fff;
  transition: background 0.1s, color 0.1s;
}
.sidebar-nav li a:hover {
  background: var(--rsm-blue);
  color: #fff;
  text-decoration: none;
}
.sidebar-nav li.active a,
.sidebar-nav li.active a:hover {
  background: var(--rsm-blue);
  color: #fff;
  text-decoration: none;
}

/* ─── SITE FOOTER ────────────────────────────────────────────── */
.site-footer { background: var(--rsm-footer); padding: 40px 0; }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.footer-col { flex: 1; min-width: 0; }
.footer-logo-col { flex: 0 0 180px; }
.footer-logo { height: 48px; width: auto; display: block; margin-bottom: 12px; }
.footer-lang { font-size: 12px; color: var(--rsm-footer-text); }
.footer-lang a { color: var(--rsm-footer-text); }
.footer-lang a:hover { text-decoration: underline; }
.footer-lang .sep { opacity: 0.6; }
.footer-col h4 {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.footer-col address { font-size: 13px; color: var(--rsm-footer-text); line-height: 1.7; }
.footer-col address a { color: var(--rsm-footer-text); }
.footer-col address a:hover { text-decoration: underline; }
.footer-col p { font-size: 13px; color: var(--rsm-footer-text); line-height: 1.6; }

/* ─── COPYRIGHT BAR ──────────────────────────────────────────── */
.copyright-bar {
  background: var(--rsm-copyright);
  padding: 11px 20px;
  text-align: center;
  font-size: 12px;
  color: #fff;
}
.copyright-bar a { color: #fff; }
.copyright-bar a:hover { color: #fff; text-decoration: underline; }
.copyright-bar .sep { margin: 0 4px; opacity: 0.5; }