/*
Theme Name: DHASK Main
Theme URI: https://dhsask.ca/
Description: Custom theme for the Dental Hygienists Alliance of Saskatchewan. Modern, static hero (no carousels), purple/gold brand, long-scroll homepage, styled job board, and a plain "DHAS Settings" admin page. Built to be edited by a non-technical administrator through the Classic Editor. No page builder required.
Author: BlackNova
Author URI: https://blacknova.ca/
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dhas
Tags: custom-menu, featured-images, threaded-comments, translation-ready

This theme's markup and class names were carried over from the approved static
prototype. If you are hunting for a style, search the prototype in /web first.
*/

/* ==========================================================================
   DHAS — Dental Hygienists Alliance of Saskatchewan
   Main theme stylesheet (ported from the approved prototype).
   ========================================================================== */

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

:root {
  /* Brand — sampled from the DHAS logo */
  --purple:        #400886;
  --purple-dark:   #2b0459;
  --purple-mid:    #5a20a5;
  --purple-tint:   #f4f0fa;
  --gold:          #e7a811;
  --gold-dark:     #bf8703;
  --gold-tint:     #fdf5e3;

  /* Neutrals */
  --ink:           #1b1526;
  --body:          #4c4557;
  --muted:         #6f677d;
  --line:          #e5e1ec;
  --bg:            #ffffff;
  --bg-alt:        #f7f5fa;

  /* Type */
  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --wrap: 1180px;
  --wrap-header: 1360px;   /* header needs more room than the reading column */
  --wrap-narrow: 780px;
  --radius: 10px;
  --shadow: 0 2px 6px rgba(27, 21, 38, .06), 0 12px 28px rgba(27, 21, 38, .07);
  --shadow-sm: 0 1px 3px rgba(27, 21, 38, .07), 0 4px 12px rgba(27, 21, 38, .05);
  --header-h: 88px;
}

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

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.22;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.15em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a { color: var(--purple); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--gold-dark); }

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

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

/* Visible focus for keyboard users — do not remove */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: var(--ink);
  padding: .75rem 1.25rem; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--purple-tint); }
.section--tight { padding: clamp(2.25rem, 4vw, 3.25rem) 0; }

/* Section heading with the short gold rule underneath (BCDHA pattern) */
.section-head { margin-bottom: 2.5rem; max-width: 42rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: .5rem; }
.section-head h2::after {
  content: ""; display: block;
  width: 60px; height: 4px; border-radius: 2px;
  background: var(--gold);
  margin-top: .85rem;
}
.section-head--center h2::after { margin-left: auto; margin-right: auto; }
.section-head .lede { color: var(--muted); font-size: 1.1rem; margin: 0; }

.eyebrow {
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 .65rem;
}

.grid { display: grid; gap: 1.75rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head);
  font-size: .93rem; font-weight: 600; letter-spacing: .02em;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { background: var(--gold-dark); color: #fff; }

.btn--purple { background: var(--purple); color: #fff; }
.btn--purple:hover { background: var(--purple-dark); color: #fff; }

.btn--ghost { border-color: currentColor; color: var(--purple); background: transparent; }
.btn--ghost:hover { background: var(--purple); color: #fff; border-color: var(--purple); }

.btn--on-dark { border-color: #fff; color: #fff; background: transparent; }
.btn--on-dark:hover { background: #fff; color: var(--purple); }

.btn--sm { padding: .55rem 1.15rem; font-size: .85rem; }

/* Text link with arrow */
.link-arrow {
  font-family: var(--font-head); font-weight: 600; font-size: .93rem;
  text-decoration: none; color: var(--purple);
  display: inline-flex; align-items: center; gap: .4rem;
}
.link-arrow::after { content: "\2192"; transition: transform .18s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--purple-dark);
  color: rgba(255,255,255,.9);
  font-size: .85rem;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 1.5rem; min-height: 40px;
}
.topbar a { color: rgba(255,255,255,.9); text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar-links { display: flex; gap: 1.4rem; }

.search-form { display: flex; }
.search-form input {
  border: 0; border-radius: 999px 0 0 999px;
  padding: .3rem .9rem; font: inherit; font-size: .82rem;
  min-width: 170px; background: rgba(255,255,255,.14); color: #fff;
}
.search-form input::placeholder { color: rgba(255,255,255,.6); }
.search-form input:focus { background: #fff; color: var(--ink); outline-offset: 0; }
.search-form button {
  border: 0; border-radius: 0 999px 999px 0;
  background: var(--gold); color: var(--ink);
  padding: .3rem .9rem; font: inherit; font-size: .82rem; font-weight: 600;
  cursor: pointer;
}
.search-form button:hover { background: var(--gold-dark); color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-stuck { box-shadow: 0 2px 14px rgba(27,21,38,.11); }

/* The header bar runs wider than the reading column so the nav has room */
.topbar .wrap, .site-header .wrap { max-width: var(--wrap-header); }

.site-header .wrap {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: var(--header-h);
}

.site-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex-shrink: 0; }
.site-brand img { height: 62px; width: auto; }

/* Stacked wordmark: name on top, "of Saskatchewan" beneath it.
   These MUST be block — as inline spans the two lines run together. */
.site-brand .brand-text { display: none; }
.site-brand .brand-name,
.site-brand .brand-tag { display: block; }
.site-brand .brand-name {
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  color: var(--purple); line-height: 1.15; letter-spacing: -.01em;
  white-space: nowrap;
}
.site-brand .brand-tag {
  font-size: .68rem; color: var(--muted);
  letter-spacing: .14em; text-transform: uppercase;
  line-height: 1.3; margin-top: .1rem; white-space: nowrap;
}
/* Only show the wordmark once there is genuinely room for it beside the nav */
@media (min-width: 1300px) { .site-brand .brand-text { display: block; } }

/* Navigation */
.main-navigation { margin-left: auto; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .1rem; }
.main-navigation li { position: relative; }
.main-navigation > ul > li > a {
  display: block;
  font-family: var(--font-head); font-weight: 600; font-size: .89rem;
  color: var(--ink); text-decoration: none;
  padding: .6rem .6rem; border-radius: 6px;
  white-space: nowrap;          /* labels must never wrap mid-item */
}
.main-navigation > ul > li > a:hover,
.main-navigation > ul > li.current-menu-item > a,
.main-navigation > ul > li.current-menu-ancestor > a { color: var(--purple); background: var(--purple-tint); }
.main-navigation > ul > li.current-menu-item > a,
.main-navigation > ul > li.current-menu-ancestor > a { box-shadow: inset 0 -3px 0 var(--gold); }

.menu-item-has-children > a::after {
  content: ""; display: inline-block;
  width: .42em; height: .42em; margin-left: .45em; vertical-align: .12em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

/* Dropdowns */
.sub-menu {
  position: absolute; top: 100%; left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  padding: .5rem;
  display: block;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s, transform .16s, visibility .16s;
  flex-direction: column; gap: 0;
}
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.sub-menu li { position: relative; }
.sub-menu a {
  display: block; padding: .6rem .8rem; border-radius: 6px;
  font-size: .92rem; color: var(--body); text-decoration: none;
}
.sub-menu a:hover { background: var(--purple-tint); color: var(--purple); }

/* Between the toggle breakpoint and the full wordmark, tighten the nav a
   little so five labels clear the Member Login button without colliding. */
@media (min-width: 1100px) and (max-width: 1299px) {
  .main-navigation > ul > li > a { font-size: .85rem; padding: .55rem .5rem; }
}

.header-cta { flex-shrink: 0; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--purple); color: #fff; border: 0;
  border-radius: 6px; padding: .6rem .8rem;
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  align-items: center; gap: .5rem;
}
.nav-toggle .bars { display: block; width: 18px; height: 2px; background: #fff; position: relative; }
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #fff;
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after  { top: 6px; }

/* Below this the five nav labels no longer fit on one line — use the toggle
   rather than letting them wrap. */
@media (max-width: 1099px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-navigation {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: .75rem 1.5rem 1.5rem;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-navigation > ul > li > a { padding: .85rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-item-has-children > a::after { float: right; margin-top: .5em; }
  .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 3px solid var(--gold);
    border-radius: 0; margin: 0 0 .5rem .25rem; padding: .25rem 0 .25rem .75rem;
    display: none;
  }
  .menu-item-has-children.is-open > .sub-menu { display: block; }
  .mobile-cta { display: block; margin-top: 1rem; }
}
.mobile-cta { display: none; }

/* --------------------------------------------------------------------------
   6. Hero — static. NO carousel/slider, by client request.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--purple-dark) center/cover no-repeat;
  color: #fff;
  isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(43,4,89,.94) 0%, rgba(64,8,134,.86) 45%, rgba(64,8,134,.55) 100%);
}
.hero__inner {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
  max-width: 44rem;
}
.hero h1 { color: #fff; margin-bottom: .75rem; }
.hero .eyebrow { color: var(--gold); }
.hero p {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: rgba(255,255,255,.92);
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Quick-link cards straddling the hero edge */
.quicklinks { background: linear-gradient(to bottom, var(--purple) 0 50%, var(--bg) 50% 100%); }
.quicklinks .grid { gap: 1.25rem; }
.quicklink {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.6rem 1.5rem;
  text-decoration: none; display: block;
  border-top: 4px solid var(--gold);
  transition: transform .18s, box-shadow .18s;
}
.quicklink:hover { transform: translateY(-4px); box-shadow: 0 6px 14px rgba(27,21,38,.1), 0 20px 40px rgba(27,21,38,.1); }
.quicklink h3 { margin-bottom: .35rem; font-size: 1.12rem; }
.quicklink p { color: var(--muted); font-size: .95rem; margin: 0; }
.quicklink .icon { color: var(--purple); margin-bottom: .9rem; }

/* --------------------------------------------------------------------------
   7. Cards, feature rows, icons
   -------------------------------------------------------------------------- */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--body); font-size: .98rem; }
.card .card__foot { margin-top: auto; padding-top: 1.1rem; }

.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--gold-tint); color: var(--gold-dark);
  flex-shrink: 0;
}
.icon svg { width: 24px; height: 24px; }
.icon--purple { background: var(--purple-tint); color: var(--purple); }

.benefit { text-align: left; }
.benefit .icon { margin-bottom: 1rem; }
.benefit h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.benefit p { font-size: .95rem; color: var(--muted); margin: 0; }

/* Alternating image + text feature row */
.feature {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.feature__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.feature--flip .feature__media { order: 2; }

/* --------------------------------------------------------------------------
   8. Job listings
   -------------------------------------------------------------------------- */

.job-list { display: grid; gap: 1.25rem; }

.job-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--purple);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem 1.75rem;
  transition: box-shadow .18s, border-left-color .18s;
}
.job-card:hover { box-shadow: var(--shadow); border-left-color: var(--gold); }
.job-card[hidden] { display: none; }

.job-card__head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: .5rem 1rem;
  margin-bottom: .85rem;
}
.job-card__title { margin: 0; font-size: 1.25rem; }
.job-card__title a { text-decoration: none; color: var(--ink); }
.job-card__title a:hover { color: var(--purple); }
.job-card__employer {
  font-family: var(--font-head); font-weight: 600;
  color: var(--purple); font-size: 1rem; margin: 0 0 .15rem;
}
.job-card__posted { font-size: .85rem; color: var(--muted); white-space: nowrap; }

/* Icon meta row: location / employment type / posted */
.job-meta {
  list-style: none; margin: 0 0 1rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem .75rem;
}
.job-meta li {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .87rem; font-weight: 600; font-family: var(--font-head);
  color: var(--body);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .28rem .8rem;
}
.job-meta svg { width: 15px; height: 15px; color: var(--purple); flex-shrink: 0; }
.job-meta .is-fulltime { background: var(--gold-tint); border-color: #f0dcae; }

.job-card__body { font-size: .98rem; }
.job-card__body ul { margin: .5rem 0 1em; padding-left: 1.2rem; }
.job-card__body li::marker { color: var(--gold-dark); }
.job-card__contact {
  margin-top: 1.1rem; padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .93rem;
  display: flex; flex-wrap: wrap; gap: .4rem 1.5rem;
}
.job-card__contact strong { font-family: var(--font-head); color: var(--ink); }

/* Filter bar */
.job-filters {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
  padding: 1.1rem 1.25rem;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 2rem;
}
.job-filters label { font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--ink); }
.job-filters select, .job-filters input {
  font: inherit; font-size: .92rem;
  padding: .45rem .75rem;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--body);
}
.job-filters .count { margin-left: auto; font-size: .88rem; color: var(--muted); }

.job-empty {
  padding: 2.5rem 1.5rem; text-align: center;
  background: var(--bg-alt); border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   9. Bands
   -------------------------------------------------------------------------- */

.band {
  background: var(--purple);
  color: #fff;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.band h2 { color: #fff; }
.band h2::after { background: var(--gold); }
.band p { color: rgba(255,255,255,.9); }
.band a:not(.btn) { color: var(--gold); }

.band--gold { background: var(--gold); color: var(--ink); }
.band--gold h2, .band--gold p { color: var(--ink); }
.band--gold h2::after { background: var(--purple); }

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.5rem;
}
.cta-band .cta-band__text { max-width: 38rem; }
.cta-band h2 { margin-bottom: .4rem; }
.cta-band h2::after { display: none; }
.cta-band p { margin: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat__num {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem); color: var(--gold);
  line-height: 1; margin-bottom: .3rem;
}
.stat__label { font-size: .93rem; color: rgba(255,255,255,.85); }

/* --------------------------------------------------------------------------
   10. Page header (interior pages)
   -------------------------------------------------------------------------- */

.page-header {
  background: var(--purple);
  color: #fff;
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
}
.page-header h1 { color: #fff; margin-bottom: .35rem; }
.page-header p { color: rgba(255,255,255,.88); margin: 0; max-width: 42rem; }

.breadcrumb {
  font-size: .85rem; color: rgba(255,255,255,.75); margin-bottom: .75rem;
}
.breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 .4rem; }

/* --------------------------------------------------------------------------
   11. Editor content (.entry-content)
       Styles freeform content pasted in by the site admin.
   -------------------------------------------------------------------------- */

.entry-content { max-width: 46rem; }
.entry-content--wide { max-width: none; }

.entry-content > * + * { margin-top: 1.15em; }

.entry-content h2 {
  font-size: 1.6rem; margin-top: 2.4em; padding-top: 0;
  color: var(--purple);
}
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 { font-size: 1.22rem; margin-top: 2em; color: var(--ink); }

.entry-content ul, .entry-content ol { padding-left: 1.35rem; }
.entry-content li + li { margin-top: .4em; }
.entry-content li::marker { color: var(--gold-dark); }

.entry-content a { font-weight: 600; }

.entry-content img { border-radius: var(--radius); }

.entry-content blockquote {
  margin: 2em 0; padding: .25rem 0 .25rem 1.5rem;
  border-left: 4px solid var(--gold);
  font-size: 1.1rem; color: var(--ink);
}

/* Callout box — for "Did You Know?" style content.
   These four helpers are also exposed to the editor via the Formats dropdown. */
.callout {
  background: var(--purple-tint);
  border: 1px solid #ddd3f0;
  border-left: 5px solid var(--purple);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2em 0;
}
.callout h3 { margin-top: 0; color: var(--purple); }
.callout--gold { background: var(--gold-tint); border-color: #f0dcae; border-left-color: var(--gold); }
.callout--gold h3 { color: var(--gold-dark); }

/* Lead paragraph (Formats dropdown) */
.entry-content .lead { font-size: 1.2rem; color: var(--ink); line-height: 1.6; }

/* Reference list — small print */
.references { font-size: .82rem; color: var(--muted); }
.references ol { padding-left: 1.2rem; }
.references li + li { margin-top: .3em; }

/* Numbered tip list (Formats dropdown: apply to a list) */
.tips { list-style: none; counter-reset: tip; padding: 0; margin: 0; display: grid; gap: 1rem; }
.tips li {
  counter-increment: tip;
  position: relative;
  padding: 1rem 1.25rem 1rem 3.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: 0;
}
.tips li::before {
  content: counter(tip);
  position: absolute; left: 1rem; top: 1rem;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--purple); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
.tips li::marker { content: none; }

/* Definition-style list for board members etc. */
.people { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
.people li {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: .7rem 1rem; font-family: var(--font-head); font-weight: 600;
  color: var(--ink); font-size: .96rem;
}

/* Session / event list */
.event-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.event-item {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1.25rem 1.5rem;
}
.event-date {
  flex-shrink: 0; text-align: center; min-width: 62px;
  background: var(--purple); color: #fff; border-radius: 8px; padding: .5rem .4rem;
}
.event-date .m { display: block; font-family: var(--font-head); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.event-date .d { display: block; font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.event-item h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.event-item p { margin: 0; font-size: .93rem; color: var(--muted); }
.event-item.is-past { opacity: .72; }
.event-item.is-past .event-date { background: var(--muted); }

/* Notice / placeholder flag for content the client still owes us */
.notice {
  border: 2px dashed var(--gold);
  background: var(--gold-tint);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: .93rem;
  color: #6b4c00;
  margin-bottom: 2rem;
}
.notice strong { font-family: var(--font-head); }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--purple-dark);
  color: rgba(255,255,255,.78);
  font-size: .95rem;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}
.site-footer h3 {
  color: #fff; font-size: .82rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: .5rem; }

.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand img { height: 76px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: .93rem; }

.social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: inline-flex; align-items: center; justify-content: center;
}
.social a:hover { background: var(--gold); color: var(--purple-dark); }
.social svg { width: 18px; height: 18px; }

.site-footer address { font-style: normal; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 1.25rem 0;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .87rem;
  color: rgba(255,255,255,.6);
}

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 780px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .people { grid-template-columns: 1fr; }
  .quicklinks { background: var(--bg); padding-top: 2.5rem; }
  .topbar .wrap { justify-content: center; flex-wrap: wrap; gap: .75rem; padding-top: .5rem; padding-bottom: .5rem; }
  .job-card__head { flex-direction: column; }
}

@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-form { display: none; }
  .site-brand img { height: 52px; }
  :root { --header-h: 76px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   14. Motion / print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .quicklink:hover { transform: none; }
}

@media print {
  .topbar, .main-navigation, .nav-toggle, .header-cta, .site-footer, .hero__actions { display: none; }
  body { color: #000; font-size: 11pt; }
  .site-header { position: static; }
}

/* --------------------------------------------------------------------------
   15. WordPress integration
       Extra rules the static prototype did not need but WordPress requires.
   -------------------------------------------------------------------------- */

/* Keep the sticky header clear of the wp-admin toolbar when logged in */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media screen and (max-width: 600px) {
  /* The wp toolbar becomes position:absolute below 600px, so no offset needed */
  .admin-bar .site-header { top: 0; }
}

/* Core alignment classes emitted by the editor */
.entry-content .alignleft,
.wp-caption.alignleft,
img.alignleft { float: left; margin: .3rem 1.75rem 1.25rem 0; }
.entry-content .alignright,
.wp-caption.alignright,
img.alignright { float: right; margin: .3rem 0 1.25rem 1.75rem; }
.entry-content .aligncenter,
.wp-caption.aligncenter,
img.aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .alignwide { max-width: min(100%, 60rem); }
.alignnone { max-width: 100%; }
.clear { clear: both; }

/* Classic-editor captions */
.wp-caption { max-width: 100%; margin-bottom: 1.25rem; }
.wp-caption img { display: block; }
.wp-caption-text, .wp-element-caption {
  font-size: .85rem; color: var(--muted); font-style: italic;
  margin-top: .5rem; text-align: center;
}

/* Sticky/pinned post & gallery basics */
.gallery { display: grid; gap: 1rem; margin: 1.5rem 0; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item img { border-radius: var(--radius); }
.gallery-caption { font-size: .8rem; color: var(--muted); }

/* WordPress pagination (posts / job board) */
.pagination {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
}
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; padding: .5rem .75rem;
  border: 1px solid var(--line); border-radius: 8px;
  text-decoration: none; color: var(--ink); background: #fff;
}
.pagination .page-numbers:hover { background: var(--purple-tint); color: var(--purple); }
.pagination .page-numbers.current { background: var(--purple); color: #fff; border-color: var(--purple); }
.pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* WordPress page-break links (<!--nextpage-->) */
.page-links {
  margin-top: 2rem; font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  display: flex; gap: .4rem; align-items: center;
}
.page-links a, .page-links > span {
  display: inline-flex; min-width: 34px; justify-content: center;
  padding: .3rem .6rem; border: 1px solid var(--line); border-radius: 6px;
  text-decoration: none;
}

/* Comments (kept minimal — DHAS is not a discussion site) */
.comments-area { max-width: 46rem; margin-top: 3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
  width: 100%; max-width: 100%; padding: .6rem .8rem;
  border: 1px solid var(--line); border-radius: 8px; font: inherit; margin-bottom: 1rem;
}

/* Search results list reuse the article spacing */
.search-results-list { display: grid; gap: 1.5rem; margin-top: 2rem; }
.search-result h2 { font-size: 1.35rem; margin-bottom: .25rem; }
.search-result .result-meta { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }

/* Post meta (single blog posts, if any) */
.post-meta { font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }
.post-meta a { color: var(--muted); }
