/* ═══════════════════════════════════════════
   Manuskrito – Design System v2
   Brand palette: #0032a1 (blue) · #fbd140 (gold) · #b23339 (red)
   Type: Playfair Display (display) + DM Sans (body)
═══════════════════════════════════════════ */

:root {
  /* ── Brand colours ── */
  --blue:       #0032a1;
  --blue-dark:  #002280;
  --blue-mid:   #0a3dbf;
  --blue-light: #1a52d4;
  --gold:       #fbd140;
  --gold-dk:    #e8bc1a;
  --gold-lt:    #fde07a;
  --red:        #b23339;
  --red-dk:     #8f2830;

  /* ── Neutral / surface ── */
  --ink:        #06101f;
  --paper:      #ffffff;
  --cream:      #f5f7fc;
  --mist:       #dde3f0;
  --text:       #111827;
  --text-sub:   #4b5a72;
  --white:      #ffffff;

  /* ── Semantic aliases (keeps template classes unchanged) ── */
  --navy:       var(--blue);
  --navy-mid:   var(--blue-mid);

  /* ── Tokens ── */
  --radius:     6px;
  --radius-lg:  14px;
  --shadow:     0 4px 24px rgba(0,50,161,.10);
  --shadow-lg:  0 12px 48px rgba(0,50,161,.18);
  --max-w:      1140px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography helpers ── */
.serif { font-family: 'Playfair Display', Georgia, serif; }
h1,h2,h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
p  { max-width: 68ch; }

/* ══════════════════════════════════
   ANNOUNCEMENT BAR
══════════════════════════════════ */
.announce-bar {
  background: var(--red-dk);
  color: rgba(255,255,255,.92);
  font-size: .8rem;
  font-weight: 500;
  text-align: center;
  padding: .55rem 3rem;
  position: sticky;
  top: 0;
  z-index: 101; /* sits above the nav */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 10px 10px;
  max-width:100%;
}

.announce-bar p { max-width: 100%; }
.announce-bar button {
  background: none;
  border: none;
  color: blue;
  font-size: .85rem;
  cursor: pointer;
  padding: 0 .25rem;
  line-height: 1;
  position: absolute;
  right: 1rem;
  transition: color var(--transition);
}

.announce-bar button:hover { color: var(--white); }
@media (max-width: 640px) {
  .announce-bar { padding: .55rem 2.5rem .55rem 1rem; text-align: left; font-size: .75rem; }
}

/* ══════════════════════════════════
   HEADER / NAV
══════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}
/* Logo image in nav — no filter, use original colours */
.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
  /* no filter — logo shows in its original colours on white bg */
}
/* Fallback text mark */
.logo-mark {
  width: 34px; height: 34px;
  background: var(--gold);
  color: var(--blue);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
}
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--blue);
  letter-spacing: .01em;
}
.nav-links {
  display: flex; align-items: center; gap: .25rem;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--ink);
  font-size: .875rem;
  font-weight: 500;
  padding: .4rem .75rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--blue); background: rgba(0,50,161,.07); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--blue) !important;
  font-weight: 700 !important;
  padding: .45rem 1rem !important;
  border-radius: var(--radius) !important;
}
.nav-cta:hover { background: var(--gold-lt) !important; color: var(--blue) !important; }
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: .4rem;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: var(--transition);
}

/* App search bar inside unified nav */
.app-searchbar--nav {
  flex: 1; max-width: 420px;
  display: flex; align-items: center;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1.5px solid var(--mist);
  overflow: hidden;
  transition: border-color var(--transition);
}
.app-searchbar--nav:focus-within { border-color: var(--blue); }
.app-searchbar--nav input {
  flex: 1; background: none; border: none; outline: none;
  padding: .42rem .75rem; color: var(--ink); font-size: .875rem; font-family: inherit;
}
.app-searchbar--nav input::placeholder { color: var(--text-sub); }
.app-searchbar--nav button {
  background: none; border: none; color: var(--text-sub);
  padding: .42rem .75rem; cursor: pointer; display: flex; align-items: center;
}
.app-searchbar--nav button:hover { color: var(--blue); }

/* ══════════════════════════════════
   SHARED SECTION UTILITIES
══════════════════════════════════ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--blue); color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: .75rem;
}
/* eyebrow on dark backgrounds */
.section-dark .eyebrow,
.page-hero .eyebrow,
.hero .eyebrow { color: var(--gold); }

.lead {
  font-size: 1.15rem; color: var(--text-sub);
  max-width: 62ch; line-height: 1.7;
}
.lead-white { color: rgba(255,255,255,.78); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--blue); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-lt); border-color: var(--gold-lt); }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-outline-white { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--cream); }
.btn-ghost { color: var(--blue); font-weight: 600; }
.btn-ghost:hover { color: var(--blue-mid); text-decoration: underline; }
/* ghost on dark bg */
.section-dark .btn-ghost,
.hero .btn-ghost { color: var(--gold); }
.section-dark .btn-ghost:hover { color: var(--gold-lt); }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 1rem; }

/* Stat blocks */
.stat-block { text-align: center; padding: 2rem 1.5rem; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--blue);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-label { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-sub); }

/* Page hero (inner pages) */
.page-hero {
  background: var(--blue);
  color: var(--white);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(0,34,128,.85) 0%, rgba(0,50,161,.6) 50%, rgba(178,51,57,.25) 100%);
  pointer-events: none;
}
.page-hero h1 { color: var(--white); position: relative; z-index: 1; }
.page-hero .lead { color: rgba(255,255,255,.82); position: relative; z-index: 1; }
.page-hero .eyebrow { position: relative; z-index: 1; }
.page-hero .container { position: relative; z-index: 1; }

/* Tag pill */
.pill {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .78rem; font-weight: 600;
  background: rgba(0,50,161,.08);
  color: var(--blue);
  border: 1px solid rgba(0,50,161,.2);
  margin-bottom: 1rem;
}

/* Divider — gold accent bar */
.gold-divider {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--red) 100%);
  border-radius: 2px;
  margin: 1.25rem 0;
}

/* Styled list */
.styled-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.styled-list li {
  padding-left: 1.4rem;
  position: relative;
  font-size: .95rem;
  color: var(--text-sub);
}
.styled-list li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--blue);
}

/* Feature icon */
.feature-icon {
  width: 48px; height: 48px;
  background: rgba(0,50,161,.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* ══════════════════════════════════
   HOME HERO — with background image
══════════════════════════════════ */
.hero {
  position: relative;
  color: var(--white);
  padding: 7rem 0 6rem;
  overflow: hidden;
  background: var(--blue); /* fallback while image loads */
}
/* The actual background image — darkened via multi-layer overlay */
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../assets/hero-main-image-comp.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  /* darken: first a deep blue-tinted overlay, then a soft vignette */
  filter: brightness(.45) saturate(.8);
  z-index: 0;
}
/* Gradient overlay on top of darkened image for text contrast */
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(105deg,
      rgba(0,34,128,.82) 0%,
      rgba(0,50,161,.55) 45%,
      rgba(178,51,57,.18) 100%),
    linear-gradient(to top, rgba(0,20,80,.6) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; max-width: 16ch; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero .lead { margin-bottom: 2rem; color: rgba(255,255,255,.88); text-align: center; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
/* Gold accent rule under eyebrow — centered */
.hero .eyebrow::after {
  content: '';
  display: block;
  width: 32px; height: 2px;
  background: var(--gold);
  margin: 6px auto 0;
}

/* Stats bar */
.stats-bar {
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  padding: 2.5rem 0;
  box-shadow: 0 4px 20px rgba(0,50,161,.07);
}
.stats-bar .container { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-around; }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.65);
  padding: 4rem 0 0;
  border-top: 3px solid var(--gold);
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 2.5rem;
}
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem;
}
/* Logo image in footer */
.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
  /*filter: brightness(0) invert(1);
  opacity: .9;*/
}
.footer-brand .logo-text { color: var(--white); }
.footer-tagline { font-size: .875rem; max-width: 26ch; line-height: 1.55; color: rgba(255,255,255,.55); }
.footer-col h4 {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .85rem;
}
.footer-col a {
  display: block; font-size: .875rem;
  padding: .2rem 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }
.footer-links { display: contents; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 1.5rem;
  max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between;
  font-size: .8rem;
}

/* ══════════════════════════════════
   NOTICE BOX
══════════════════════════════════ */
.notice {
  background: rgba(0,50,161,.06);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  font-size: .9rem;
}

/* ══════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
.form-group label { font-size: .85rem; font-weight: 600; }
.form-group input,
.form-group textarea,
.form-group select {
  padding: .65rem .9rem;
  border: 1.5px solid var(--mist);
  border-radius: var(--radius);
  font-family: inherit; font-size: .95rem;
  background: var(--white);
  transition: border-color var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,50,161,.1);
}
.form-group textarea { min-height: 130px; resize: vertical; }

/* ══════════════════════════════════
   BLOG CARDS
══════════════════════════════════ */
.blog-card { display: flex; flex-direction: column; gap: .75rem; }
.blog-card .pill { margin-bottom: 0; }
.blog-card h3 a:hover { color: var(--blue); }
.blog-card .meta { font-size: .8rem; color: var(--text-sub); }

/* ══════════════════════════════════
   404
══════════════════════════════════ */
.error-page {
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 1.5rem;
}
.error-code {
  font-family: 'Playfair Display', serif;
  font-size: 8rem; line-height: 1;
  color: var(--mist); margin-bottom: .5rem;
}

/* ══════════════════════════════════
   RESPONSIVE — 900px
══════════════════════════════════ */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ══════════════════════════════════
   RESPONSIVE — 640px
══════════════════════════════════ */
@media (max-width: 965px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 3px solid var(--gold);
    border-top: 1px solid var(--mist);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    z-index: 200;
  }
  .nav-links.is-open { display: flex; }
  .nav-toggle { display: flex; }
  /* Hide nav search bar on mobile — use hero/page search instead */
  .app-searchbar--nav { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero { padding: 5rem 0 4rem; }
  .section { padding: 3.5rem 0; }
}

/* ══════════════════════════════════
   RESPONSIVE — 420px
══════════════════════════════════ */
@media (max-width: 420px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════
   RESPONSIVE — 360px (320px minimum)
══════════════════════════════════ */
@media (max-width: 360px) {
  .container { padding: 0 1rem; }
  .section    { padding: 2.5rem 0; }
  .section-sm { padding: 2rem 0; }
  .nav-inner  { padding: 0 1rem; }
  .nav-logo-img { height: 32px; }
  .logo-text  { font-size: 1rem; }
  .logo-mark  { width: 28px; height: 28px; font-size: 1rem; }
  .hero       { padding: 3.5rem 0 3rem; }
  .hero h1    { font-size: 1.9rem; }
  .hero .lead { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .page-hero         { padding: 3rem 0 2.5rem; }
  .page-hero h1      { font-size: 1.75rem; }
  .page-hero .lead   { font-size: .95rem; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
  .stats-bar .container { flex-direction: column; gap: 1.25rem; align-items: center; }
  .stat-number { font-size: 2.4rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card { padding: 1.25rem; }
  .btn  { font-size: .85rem; padding: .6rem 1.1rem; }
  .footer-inner  { grid-template-columns: 1fr; gap: 1.5rem; padding-bottom: 2rem; }
  .footer-brand  { grid-column: 1; }
  .footer-bottom { flex-direction: column; gap: .4rem; font-size: .75rem; padding: 1rem; }
  .footer-logo-img { height: 40px; }
  .form-group input,
  .form-group textarea,
  .form-group select { font-size: .875rem; }
  .error-code { font-size: 5rem; }
  p, li, a { overflow-wrap: break-word; word-break: break-word; }
  .notice { padding: .85rem 1rem; font-size: .85rem; }
  .blog-card { gap: .5rem; }
}

/* ══════════════════════════════════
   HERO SEARCH BAR
══════════════════════════════════ */
.hero-search {
  margin: 2rem 0 1.5rem;
  max-width: 620px;
  width: 100%;
}
.hero-search-row {
  display: flex; gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.hero-search-input {
  flex: 1; border: none; outline: none;
  padding: .85rem 1.25rem;
  font-size: 1rem; font-family: inherit;
  color: var(--ink); background: var(--white);
}
.hero-search-input::placeholder { color: var(--text-sub); }
.hero-search-btn {
  background: var(--gold); color: var(--blue);
  border: none; padding: .85rem 1.4rem;
  font-size: .95rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: background var(--transition);
}
.hero-search-btn:hover { background: var(--gold-lt); }
.hero-search-tags {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: .85rem;
  justify-content: center;
}
.hero-tag {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 99px;
  padding: .25rem .75rem;
  font-size: .8rem; font-weight: 500;
  transition: background var(--transition), border-color var(--transition);
}
.hero-tag:hover {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.6);
  color: #fff;
}

/* ══════════════════════════════════
   HOMEPAGE RECENT RESULTS
══════════════════════════════════ */
.hp-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px,100%), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.hp-result-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  color: inherit;
}
.hp-result-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  color: inherit;
}
.hpr-meta {
  display: flex; gap: .5rem; flex-wrap: wrap;
  margin-bottom: .5rem;
}
.hpr-year {
  font-size: .75rem; font-weight: 700;
  color: var(--blue); background: rgba(0,50,161,.07);
  padding: .15rem .5rem; border-radius: 99px;
}
.hpr-school {
  font-size: .75rem; color: var(--text-sub);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 200px;
}
.hpr-title {
  font-size: .95rem; font-weight: 600;
  color: var(--ink); line-height: 1.4;
  margin-bottom: .4rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hpr-authors {
  font-size: .8rem; color: var(--text-sub);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ══════════════════════════════════
   HOMEPAGE INSTITUTIONS
══════════════════════════════════ */
.hp-institutions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 1.5rem;
}
.hp-inst-card {
  display: flex; align-items: center; gap: .6rem;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: .85rem 1.25rem;
  box-shadow: var(--shadow);
  color: var(--ink); font-size: .9rem; font-weight: 500;
  transition: box-shadow var(--transition), transform var(--transition), color var(--transition);
  flex: 1; min-width: min(220px, 100%);
}
.hp-inst-card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-2px); color: var(--blue);
}
.hp-inst-icon { font-size: 1.3rem; flex-shrink: 0; }

/* Record type badge on homepage cards */
.hpr-type {
  font-size: .72rem; font-weight: 700;
  padding: .15rem .55rem; border-radius: 99px;
}
.hpr-type--research  { background: rgba(0,50,161,.08); color: var(--blue); }
.hpr-type--innovation { background: rgba(251,209,64,.25); color: #7a5c00; }

/* ══════════════════════════════════
   USER DROPDOWN (signed-in state)
══════════════════════════════════ */
.nav-user {
  position: relative;
}
.nav-user-btn {
  display: flex; align-items: center; gap: .45rem;
  background: var(--gold);
  color: var(--blue);
  border: none; border-radius: var(--radius);
  padding: .42rem 1rem;
  font-size: .875rem; font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.nav-user-btn:hover { background: var(--gold-lt); }
.nav-user-btn .nav-user-chevron {
  font-size: .65rem;
  transition: transform .2s ease;
  display: inline-block;
}
.nav-user.is-open .nav-user-chevron { transform: rotate(180deg); }

/* Dropdown menu */
.nav-user-dropdown {
  display: none;
  position: absolute; top: calc(100% + .5rem); right: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  padding: .4rem 0;
  z-index: 300;
  overflow: hidden;
}
.nav-user.is-open .nav-user-dropdown { display: block; }

.nav-user-dropdown a {
  display: flex; align-items: center; gap: .55rem;
  padding: .6rem 1.1rem;
  font-size: .875rem; color: var(--ink); font-weight: 500;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.nav-user-dropdown a:hover { background: rgba(0,50,161,.06); color: var(--blue); }
.nav-user-dropdown .nav-dd-icon { font-size: 1rem; flex-shrink: 0; }
.nav-user-dropdown .nav-dd-divider {
  height: 1px; background: var(--mist);
  margin: .35rem 0;
}
.nav-user-dropdown .nav-dd-admin { color: var(--red) !important; font-weight: 700 !important; }
.nav-user-dropdown .nav-dd-admin:hover { background: rgba(178,51,57,.06) !important; }
.nav-user-dropdown .nav-dd-submit {
  background: var(--gold); color: var(--blue) !important;
  font-weight: 700 !important; margin: .4rem .6rem;
  border-radius: var(--radius); justify-content: center;
}
.nav-user-dropdown .nav-dd-submit:hover { background: var(--gold-lt) !important; }

/* Mobile: dropdown becomes inline list */
@media (max-width: 965px) {
  .nav-user { position: static; }
  .nav-user-dropdown {
    display: none;
    position: static;
    box-shadow: none; border: none;
    background: rgba(0,50,161,.04);
    border-radius: var(--radius);
    margin-top: .25rem;
    padding: .25rem 0;
  }
  .nav-user.is-open .nav-user-dropdown { display: block; }
  .nav-user-dropdown a { padding: .5rem 1rem; font-size: .875rem; }
  .nav-user-btn { width: 100%; justify-content: space-between; }
}

/* ══════════════════════════════════
   HERO SHORT VARIANT (inner pages)
══════════════════════════════════ */
.hero--short {
  padding: 4rem 0 3.5rem;
}
.hero--short .hero-inner h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 20ch;
}

/* ══════════════════════════════════
   BLOG STYLES
══════════════════════════════════ */
.blog-meta-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--text-sub);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--mist);
}
.blog-meta-bar a {
  color: var(--blue);
  font-weight: 600;
  margin-left: auto;
}
.blog-body {
  font-size: .975rem;
  line-height: 1.8;
  color: var(--ink);
}
.blog-body p { margin-bottom: 1.25rem; }
.blog-body h2 {
  font-size: 1.25rem;
  margin: 2rem 0 .75rem;
  color: var(--ink);
}
.blog-body ul, .blog-body ol {
  margin: .75rem 0 1.25rem 1.5rem;
}
.blog-body li { margin-bottom: .5rem; color: var(--text-sub); }
.blog-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--mist);
}

/* ══════════════════════════════════
   BLOG POST PAGE
══════════════════════════════════ */
.blog-meta-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--text-sub);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--mist);
}
.blog-meta-bar a { color: var(--blue); font-weight: 600; margin-left: auto; }
.blog-body { font-size: .975rem; line-height: 1.8; color: var(--ink); }
.blog-body p  { margin-bottom: 1.25rem; max-width: 72ch; }
.blog-body h2 { font-size: 1.3rem; margin: 2rem 0 .75rem; }
.blog-body h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.blog-body ul, .blog-body ol { margin: .75rem 0 1.25rem 1.5rem; }
.blog-body li { margin-bottom: .5rem; color: var(--text-sub); }
.blog-body blockquote {
  border-left: 4px solid var(--gold);
  background: rgba(251,209,64,.06);
  padding: 1rem 1.5rem;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--ink);
}
.blog-body img { max-width: 100%; border-radius: var(--radius-lg); margin: 1rem 0; }
.blog-body a { color: var(--blue); text-decoration: underline; }
.blog-nav {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--mist);
}
