
/* ============================================================================
   CPE THESIS DIGITAL ARCHIVE — STYLES
   STI College Caloocan
   ----------------------------------------------------------------------------
   Section index:
     1. Tokens (colors, type, sizing)
     2. Base / reset
     3. Header + top bar (search & filters)
     4. Honeycomb grid + hex cells        <-- the tricky part, see notes below
     5. Detail modal
     6. Footer / About
     7. Small screens (single-column fallback)
   ============================================================================ */

/* ---------------------------------------------------------------------------
   1. TOKENS
--------------------------------------------------------------------------- */
:root {
  /* Honey / amber palette, per department brief */
  --honey-amber: #F5A623;
  --honey-dark: #D98E04;
  --honey-text: #8A5A00;     /* AA-contrast amber for text on light surfaces */
  --honey-light: #FFC857;
  --wax-cream: #FFF3DC;      /* pale cell fill for hover / light surfaces */
  --comb-charcoal: #241C10;  /* deep brown-charcoal, primary text/bg */
  --comb-charcoal-soft: #3A2E1A;
  --ink: #2B2013;            /* body text on light surfaces */
  --paper: #FFFBF3;          /* page background, warm off-white */
  --line: rgba(36, 28, 16, 0.14);

  /* Type */
  --font-display: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Hex geometry (pointy-top hexagon). Height derived from width * 1.1547. */
  --hex-w: 232px;
  --hex-h: 268px;
  --hex-gap: 14px;

  --radius-soft: 10px;
  --shadow-cell: 0 6px 16px rgba(36, 28, 16, 0.18);
  --shadow-card: 0 1px 3px rgba(36, 28, 16, 0.06);
  --line-soft: rgba(36, 28, 16, 0.10);
  --shadow-cell-hover: 0 10px 26px rgba(217, 142, 4, 0.38);
}

/* ---------------------------------------------------------------------------
   2. BASE / RESET
--------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;

  /* Subtle low-opacity hexagon texture across the whole page */
  background-image:
    radial-gradient(circle at 20% 20%, rgba(245, 166, 35, 0.05), transparent 45%),
    repeating-linear-gradient(60deg, rgba(217, 142, 4, 0.035) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(-60deg, rgba(217, 142, 4, 0.035) 0 2px, transparent 2px 26px);
  background-attachment: fixed;
}

a { color: var(--honey-text); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--honey-dark);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   3. HEADER + TOP BAR
--------------------------------------------------------------------------- */
.site-header {
  background: linear-gradient(160deg, var(--comb-charcoal) 0%, var(--comb-charcoal-soft) 100%);
  color: var(--wax-cream);
  padding: 2.75rem 1.5rem 2.25rem;
  text-align: center;
  border-bottom: 6px solid var(--honey-amber);
  position: relative;
  overflow: hidden;
}

.site-header__logo {
  position: absolute;
  top: 1.2rem;
  left: 1.5rem;
  height: clamp(30px, 4.2vw, 48px);
  width: auto;
  z-index: 2;
}

@media (max-width: 640px) {
  /* On small screens the logo sits above the title instead of floating
     in the corner, so it doesn't collide with the header text. */
  .site-header__logo {
    position: static;
    display: block;
    margin: 0 auto 1rem;
    height: 40px;
  }
}

.site-header::before {
  /* faint honeycomb strip along the header, purely decorative */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(circle, transparent 40%, var(--honey-amber) 41%, var(--honey-amber) 42%, transparent 43%);
  background-size: 46px 40px;
}

.site-header__eyebrow {
  position: relative;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--honey-light);
  margin: 0 0 0.6rem;
}

.site-header h1 {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin: 0 0 0.5rem;
}

.site-header p {
  position: relative;
  max-width: 46rem;
  margin: 0 auto;
  color: rgba(255, 243, 220, 0.82);
  font-size: 1rem;
}

.toolbar {
  max-width: 74rem;
  margin: -1.75rem auto 0;
  position: relative;
  padding: 0 1.5rem;
  z-index: 5;
}

.toolbar__inner {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-cell);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.search-field {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  background: #fff;
  transition: border-color 0.15s ease;
}

.search-field:focus-within {
  border-color: var(--honey-amber);
}

.search-field svg { flex: none; opacity: 0.55; }

.search-field input {
  border: 0;
  outline: 0;
  font-size: 0.98rem;
  width: 100%;
  font-family: var(--font-body);
  background: transparent;
  color: var(--ink);
}

.select-field select {
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: #fff;
  color: var(--ink);
}

.tag-filters {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.85rem;
  margin-top: 0.15rem;
  border-top: 1px dashed var(--line);
}

.tag-chip {
  border: 1.5px solid var(--honey-dark);
  background: #fff;
  color: var(--honey-text);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.tag-chip:hover { background: var(--wax-cream); }

.tag-chip[aria-pressed="true"] {
  background: var(--honey-text);
  border-color: var(--honey-text);
  color: #fff;
}

.result-count {
  max-width: 74rem;
  margin: 1.1rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.88rem;
  color: var(--comb-charcoal-soft);
  font-family: var(--font-mono);
}

/* ---------------------------------------------------------------------------
   4. HONEYCOMB GRID
   ----------------------------------------------------------------------------
   KNOWN QUIRKS (read before touching the JS layout code in app.js):

   - True hexagon tessellation with CSS alone can't reliably reflow after
     filtering, because flex-wrap decides row membership based on available
     width, and we have no way to ask "which items ended up on which row"
     in pure CSS. So the row-building is done in JavaScript (see
     buildHoneycombRows() in app.js): it measures the grid's width, works
     out how many hex cells fit per row, and manually chunks the filtered
     list into row arrays.
   - Offset ("odd") rows are rendered with one fewer cell than normal rows.
     This keeps the shifted row from overflowing the right edge of the
     container. It's a deliberate simplification, not a bug — a true
     honeycomb infill (variable cell count per row filling every gap
     perfectly) would need much more layout math than a static site
     maintained by rotating student officers should have to carry.
   - Vertical interlock (rows overlapping so cells nest into the row above)
     is done with a negative margin-top on every row after the first,
     sized from --hex-h below. If you change --hex-w, remember --hex-h
     should stay at roughly --hex-w * 1.1547 (pointy-top hexagon geometry),
     and re-check the overlap still looks right.
--------------------------------------------------------------------------- */

.grid-section {
  max-width: 82rem;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
}

.honeycomb {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hex-row {
  display: flex;
  gap: var(--hex-gap);
  justify-content: center;
}

.hex-row:not(:first-child) {
  margin-top: calc(var(--hex-h) * -0.25);
}

.hex-row--offset {
  margin-left: calc((var(--hex-w) + var(--hex-gap)) / 2);
}

.hex-cell {
  width: var(--hex-w);
  height: var(--hex-h);
  position: relative;
  flex: none;
}

.hex-cell__button {
  all: unset;
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(155deg, var(--honey-light) 0%, var(--honey-amber) 55%, var(--honey-dark) 100%);
  color: var(--comb-charcoal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.6rem 1.6rem;
  box-shadow: var(--shadow-cell);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.hex-cell__button:hover,
.hex-cell__button:focus-visible {
  transform: translateY(-6px) scale(1.035);
  box-shadow: var(--shadow-cell-hover);
  filter: brightness(1.04);
}

/* clip-path hides outlines, so focus is shown by inverting the cell */
.hex-cell__button:focus-visible {
  background: var(--comb-charcoal);
  color: var(--honey-light);
}
.hex-cell__button:focus-visible .hex-cell__year {
  background: rgba(255, 243, 220, 0.2);
}

.hex-cell__year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(36, 28, 16, 0.14);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.hex-cell__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hex-cell__tag {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: var(--comb-charcoal-soft);
}

.empty-state__hex {
  width: 90px; height: 104px; margin: 0 auto 1rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--wax-cream);
  border: 2px dashed var(--honey-dark);
}

/* ---------------------------------------------------------------------------
   5. DETAIL MODAL
--------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 8, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 1rem;
  overflow-y: auto;
  z-index: 50;
}

.modal-overlay[hidden] { display: none; }

.modal {
  background: var(--paper);
  border-radius: 18px;
  max-width: 46rem;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  overflow: hidden;
  border-top: 8px solid var(--honey-amber);
}

.modal__header {
  padding: 1.9rem 2rem 1.2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.modal__close {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--wax-cream);
  color: var(--comb-charcoal);
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__close:hover { background: var(--honey-light); }

.modal__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--honey-text);
  margin: 0 0 0.4rem;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0 0 0.6rem;
  padding-right: 2.2rem;
}

.modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
  font-size: 0.9rem;
  color: var(--comb-charcoal-soft);
}

.modal__meta strong { color: var(--ink); }

.modal__tags {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.modal__tags span {
  background: var(--wax-cream);
  border: 1px solid var(--honey-dark);
  color: var(--honey-text);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.modal__body {
  padding: 1.4rem 2rem 2.2rem;
}

.modal__photo {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1.4rem;
  display: block;
  border: 1px solid var(--line);
}

.modal__photo-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  margin-bottom: 1.4rem;
  border: 1.5px dashed var(--honey-dark);
  background:
    repeating-linear-gradient(45deg, var(--wax-cream) 0 12px, #fff 12px 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--honey-text);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

.modal__photo-caption {
  font-size: 0.82rem;
  color: var(--comb-charcoal-soft);
  margin: -1rem 0 1.4rem;
  font-style: italic;
}

.modal__section {
  margin-bottom: 1.6rem;
}

.modal__section h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin: 0 0 0.55rem;
  color: var(--honey-text);
  border-bottom: 2px solid var(--wax-cream);
  padding-bottom: 0.3rem;
}

.modal__section p { margin: 0; }

.modal__chip-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.modal__chip-list li {
  background: var(--comb-charcoal);
  color: var(--wax-cream);
  font-size: 0.8rem;
  padding: 0.28rem 0.7rem;
  border-radius: 8px;
}

.researcher-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.researcher-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 92px;
  text-align: center;
}

.researcher-card__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--honey-amber);
  background: var(--wax-cream);
}

.researcher-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--honey-text);
}

.researcher-card__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.modal__refs {
  margin: 0; padding-left: 1.2rem;
  font-size: 0.92rem;
  color: var(--comb-charcoal-soft);
}

.modal__refs li { margin-bottom: 0.5rem; }

.access-box {
  background: var(--wax-cream);
  border: 1px solid var(--honey-dark);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
}

.access-box strong { display: block; margin-bottom: 0.3rem; color: var(--honey-text); }

/* ---------------------------------------------------------------------------
   6. FOOTER / ABOUT
--------------------------------------------------------------------------- */
.about {
  background: var(--comb-charcoal);
  color: rgba(255, 243, 220, 0.8);
  padding: 1.25rem 1.5rem;
  margin-top: 2.5rem;
  font-size: 0.82rem;
  line-height: 1.5;
}
.about__inner {
  max-width: 72rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; flex-wrap: wrap;
}
.about__lead { margin: 0; flex: 1 1 22rem; max-width: 34rem; }
.about__lead strong { color: #fff; font-weight: 600; }
.about__grid {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem;
}
.about__grid li { display: flex; flex-direction: column; min-width: 0; }
.about__grid span {
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--honey-light); margin-bottom: 0.1rem;
}
.about a { color: var(--wax-cream); overflow-wrap: anywhere; }
.about a:hover { color: var(--honey-light); }
@media (max-width: 640px) {
  .about { padding: 1rem; }
  .about__inner { flex-direction: column; align-items: flex-start; }
  .about__lead { flex: none; }
  .about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1rem; width: 100%; }
  .about__grid li:last-child { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------------------
   7. SMALL SCREENS — collapse to a single stacked column
   ----------------------------------------------------------------------------
   Below the breakpoint, app.js switches the layout mode to "stacked"
   (one item per row, no offset). We also relax the hexagon clip-path here
   into a soft rounded rectangle, since a true hex reads poorly as a tall
   narrow single column on a phone.
--------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .honeycomb.is-stacked .hex-row {
    margin-top: 0.9rem !important;
    margin-left: 0 !important;
  }

  .honeycomb.is-stacked .hex-cell {
    width: min(320px, 88vw);
    height: auto;
  }

  .honeycomb.is-stacked .hex-cell__button {
    position: relative;
    inset: auto;
    width: 100%;
    clip-path: none;
    border-radius: var(--radius-soft);
    padding: 1.3rem 1.4rem;
    aspect-ratio: auto;
  }

  .toolbar__inner { padding: 1rem; }
  .modal__header, .modal__body { padding-left: 1.25rem; padding-right: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hex-cell__button:hover,
  .hex-cell__button:focus-visible { transform: none; }
}



/* ---------------------------------------------------------------------------
   6. PEOPLE VIEW (hex faces)
--------------------------------------------------------------------------- */
.viewnav { display: flex; justify-content: center; gap: 0.6rem; padding: 1rem 1rem 2.4rem; position: relative; z-index: 6; }
.viewnav__btn {
  font: inherit; font-weight: 700; padding: 0.4rem 1.4rem; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--comb-charcoal); background: #fff; color: var(--comb-charcoal);
}
.viewnav__btn[aria-pressed="true"] { background: var(--comb-charcoal); color: var(--honey-light); }
.viewnav__btn:hover { background: var(--wax-cream); color: var(--comb-charcoal); }

.people { max-width: 72rem; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.people__heading { font-family: var(--font-display); font-size: 1.5rem; margin: 1.5rem 0 0.4rem; text-align: center; }
.people__note { text-align: center; color: var(--comb-charcoal-soft); font-size: 0.9rem; margin: 0 0 1rem; }
.people-grid { --hex-w: 168px; --hex-h: 194px; --hex-gap: 10px; margin-bottom: 2rem; }

.hex-cell__button.person { padding: 0; }
.person__face {
  position: absolute; inset: 5px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--comb-charcoal); display: block; overflow: hidden;
}
.person__face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person__face--initials {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
  color: var(--honey-light); background: linear-gradient(160deg, var(--comb-charcoal-soft), var(--comb-charcoal));
}
.person__name {
  position: absolute; left: 5px; right: 5px; bottom: 5px; z-index: 1;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);
  background: rgba(36, 28, 16, 0.86); color: var(--wax-cream);
  padding: 1.3rem 0.6rem 1.6rem; text-align: center;
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; line-height: 1.2;
}
.person__count { display: block; font-family: var(--font-mono); font-size: 0.62rem; color: var(--honey-light); margin-top: 0.15rem; }
.hex-cell__button.person:focus-visible { background: var(--comb-charcoal); }
.hex-cell__button.person:focus-visible .person__name { background: var(--honey-amber); color: var(--comb-charcoal); }
.hex-cell__button.person:focus-visible .person__count { color: var(--comb-charcoal); }
@media (max-width: 640px) { .people-grid { --hex-w: 132px; --hex-h: 152px; --hex-gap: 8px; } .person__name { font-size: 0.7rem; padding: 1rem 0.4rem 1.3rem; } .person__face--initials { font-size: 1.8rem; } }

.person__face--initials { padding-bottom: 2.6rem; }
@media (max-width: 640px) { .person__face--initials { padding-bottom: 2.2rem; } }

/* ---------------------------------------------------------------------------
   TOP NAV (all pages)
--------------------------------------------------------------------------- */
.topnav {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.45rem 1.25rem; background: #1b150c; border-bottom: 1px solid rgba(255, 214, 120, 0.15);
  font-size: 0.85rem; position: sticky; top: 0; z-index: 50;
}
.topnav__links, .topnav__acct { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.topnav__acct { gap: 0.5rem; justify-content: flex-end; }
.topnav__brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.04em;
  color: var(--honey-amber); text-decoration: none; margin-right: 0.6rem;
}
.topnav__link {
  color: var(--wax-cream); text-decoration: none; font-weight: 600;
  padding: 0.3rem 0.65rem; border-radius: 999px;
}
.topnav__link:hover { background: rgba(255, 255, 255, 0.08); }
.topnav__link[aria-current="page"] { background: rgba(245, 166, 35, 0.18); color: var(--honey-light); }
.topnav__who {
  color: var(--honey-light); font-weight: 700; text-decoration: none;
  max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.topnav__who:hover { text-decoration: underline; }
.topnav__btn {
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 0.25rem 0.85rem; border-radius: 999px; border: 1.5px solid var(--honey-light);
  color: var(--honey-light); background: transparent;
}
.topnav__btn:hover { background: rgba(255, 255, 255, 0.08); }
.topnav__btn--primary { background: var(--honey-amber); border-color: var(--honey-amber); color: var(--comb-charcoal); }
.topnav__btn--primary:hover { background: var(--honey-light); }
@media (max-width: 640px) {
  .topnav { flex-wrap: wrap; padding: 0.4rem 0.75rem; font-size: 0.8rem; position: static; }
  .topnav__links { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .topnav__acct { width: 100%; justify-content: space-between; }
  .topnav__who { max-width: 75vw; }
}


/* ---------------------------------------------------------------------------
   MODERN REFRESH: sans-serif type, lighter headings, slimmer headers
   (colors, logo and background pattern unchanged)
--------------------------------------------------------------------------- */
body { font-size: 15px; letter-spacing: -0.005em; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.015em; }
.site-header { padding: 1.9rem 1.5rem 1.6rem; border-bottom-width: 4px; }
.site-header h1 { font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -0.025em; }
.site-header__eyebrow { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.12em; font-size: 0.7rem; }

/* Profile dropdown in the top nav */
.topnav__menu { position: relative; }
.topnav__who { background: none; border: 0; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.5rem; border-radius: 999px; }
.topnav__who:hover { background: rgba(255, 255, 255, 0.08); text-decoration: none; }
.topnav__who::after { content: ""; width: 0.4rem; height: 0.4rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.topnav__dropdown {
  position: absolute; right: 0; top: calc(100% + 0.4rem); min-width: 12rem; z-index: 60;
  background: #fff; color: var(--ink); border: 1px solid var(--line-soft); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(36, 28, 16, 0.14); padding: 0.35rem; display: flex; flex-direction: column;
}
.topnav__dropdown[hidden] { display: none; }
.topnav__email { font-size: 0.78rem; color: var(--comb-charcoal-soft); padding: 0.4rem 0.6rem 0.5rem; border-bottom: 1px solid var(--line-soft); margin-bottom: 0.3rem; overflow-wrap: anywhere; }
.topnav__item { font: inherit; text-align: left; background: none; border: 0; color: var(--ink); text-decoration: none; padding: 0.45rem 0.6rem; border-radius: 6px; cursor: pointer; font-weight: 500; }
.topnav__item:hover, .topnav__item:focus-visible { background: var(--wax-cream); outline: none; }
.topnav__item--danger { color: #7A1D10; }
@media (max-width: 640px) { .topnav__menu { margin-left: auto; } }
