/* ===========================================================================
   Sigma Xi San Diego Chapter — shared stylesheet
   No external requests: system font stacks only, no CDN, no web fonts.
   =========================================================================== */

:root {
  --ink:        #10263a;   /* deep marine navy — primary text and header */
  --ink-soft:   #3d5568;   /* secondary text */
  --pacific:    #0e6c7e;   /* links and interactive accent */
  --pacific-dk: #0a4f5d;
  --brass:      #9a7a1e;   /* rules, dates, small marks */
  --brass-lt:   #d8b14a;
  --mist:       #f3f6f5;   /* page background */
  --paper:      #ffffff;
  --sand:       #e9e2d5;   /* warm band */
  --line:       #ccd6d6;
  --warn-bg:    #fdf6e3;
  --warn-line:  #c9a227;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, Georgia, "Noto Serif", serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --measure: 66ch;
  --wrap: 68rem;
  --step: clamp(2.75rem, 6vw, 4.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:      #e8eef1;
    --ink-soft: #a9bcc7;
    --pacific:  #61c4d6;
    --pacific-dk: #8fd8e6;
    --brass:    #d8b14a;
    --mist:     #0c1a26;
    --paper:    #12242f;
    --sand:     #1b3038;
    --line:     #2c454f;
    --warn-bg:  #23301f;
    --warn-line:#a8912f;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 clamp(1rem, .96rem + .2vw, 1.0625rem)/1.65 var(--sans);
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

/* ---------- primitives ---------- */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 46rem; }

a { color: var(--pacific); text-underline-offset: .18em; }
a:hover { color: var(--pacific-dk); }

:focus-visible { outline: 3px solid var(--brass-lt); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
p { max-width: var(--measure); }

.btn {
  display: inline-block;
  font: 600 .95rem/1 var(--sans);
  padding: .8rem 1.15rem;
  border-radius: 3px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-solid { background: var(--pacific); color: #fff; }
.btn-solid:hover { background: var(--pacific-dk); color: #fff; }
.btn-line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--mist); }
@media (prefers-color-scheme: dark) {
  .btn-solid { background: var(--pacific); color: #06212a; }
  .btn-solid:hover { color: #06212a; }
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--mist);
  padding: .65rem 1rem; border-radius: 3px; font: 600 .95rem var(--sans);
  transition: top .15s ease;
}
.skip:focus { top: 1rem; }

/* ---------- masthead ---------- */
/* Light blue bar with navy text. The gold rule beneath it stays. In dark
   mode the bar goes back to deep navy so it does not glare. */
:root { --sky: #d9e9f3; --sky-dk: #c4dbea; }
.masthead { background: var(--sky); color: var(--ink); border-bottom: 3px solid var(--brass); }
@media (prefers-color-scheme: dark) { .masthead { background: #081520; color: var(--ink); } }
.masthead a { color: inherit; }

.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .9rem; }

.wordmark { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.wordmark .glyph {
  font-family: var(--serif); font-size: 1.65rem; line-height: 1;
  color: var(--brass); border: 1.5px solid var(--brass);
  padding: .3rem .5rem .35rem; letter-spacing: .04em;
}
@media (prefers-color-scheme: dark) { .wordmark .glyph { color: var(--brass-lt); } }
.wordmark .name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.wordmark .place { display: block; font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .09em; color: var(--ink-soft); margin-top: .18rem; }

.navtoggle {
  display: none; background: none; border: 1.5px solid currentColor; color: inherit;
  font: 600 .9rem var(--sans); padding: .55rem .8rem; border-radius: 3px; cursor: pointer;
}

.nav ul { display: flex; gap: 1.4rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav a { font: 500 .95rem var(--sans); text-decoration: none; padding-block: .35rem; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--brass); }
.nav a[aria-current="page"] { border-bottom-color: var(--brass); font-weight: 600; }
.nav .join a { border: 1.5px solid var(--ink); color: var(--ink); padding: .5rem .85rem; border-radius: 3px; }
.nav .join a:hover, .nav .join a[aria-current="page"] { background: var(--ink); color: var(--sky); border-bottom-color: var(--ink); }
@media (prefers-color-scheme: dark) {
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brass-lt); }
  .nav .join a { border-color: var(--brass-lt); color: var(--brass-lt); }
  .nav .join a:hover, .nav .join a[aria-current="page"] { background: var(--brass-lt); color: #081520; }
}

@media (max-width: 62rem) {
  .navtoggle { display: block; }
  .nav { display: none; width: 100%; }
  .nav[data-open="true"] { display: block; }
  .masthead-inner { flex-wrap: wrap; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding-bottom: .8rem; }
  .nav li { width: 100%; border-top: 1px solid rgba(16,38,58,.15); }
  @media (prefers-color-scheme: dark) { .nav li { border-top-color: rgba(255,255,255,.16); } }
  .nav a { display: block; padding: .8rem 0; }
  .nav .join a { display: inline-block; margin: .7rem 0; }
}

/* ---------- page header (interior pages) ---------- */

.page-head { padding-block: clamp(2.25rem, 5vw, 3.5rem) 0; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.page-head .standfirst { font-size: 1.12rem; color: var(--ink-soft); margin-top: 1rem; }
.page-head::after { content: ""; display: block; width: 4rem; height: 3px; background: var(--brass); margin-top: 1.75rem; }

/* ---------- home hero ---------- */

.hero { padding-block: var(--step); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: start; }
@media (max-width: 56rem) { .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; } }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.5rem); }
.hero .lede { font-size: 1.15rem; color: var(--ink-soft); margin-top: 1.1rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.notice { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--brass); padding: 1.5rem; }
.notice .kicker { font: 600 .78rem/1 var(--sans); letter-spacing: .03em; font-size: .85rem; color: var(--brass); margin: 0 0 .9rem; }
.notice h2 { font-size: 1.35rem; }
.notice .speaker { color: var(--ink-soft); margin: .5rem 0 1.1rem; font-size: .98rem; }
.notice dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0 0 1.35rem; font-size: .95rem; }
.notice dt { font-weight: 600; color: var(--ink-soft); }
.notice dd { margin: 0; }

/* ---------- bands and sections ---------- */

.band { padding-block: var(--step); border-top: 1px solid var(--line); }
.band-warm { background: var(--sand); border-top: none; }
.band-plain { padding-block: var(--step); }

.section-head { margin-bottom: 2.25rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
.section-head p { color: var(--ink-soft); margin-top: .75rem; }

/* three-up hairline list, not cards */
.doing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.doing > div { padding: 1.5rem 1.75rem 1.5rem 0; border-top: 2px solid var(--ink); }
.doing > div + div { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.doing h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.doing p { font-size: .97rem; color: var(--ink-soft); margin: 0 0 .9rem; }
.doing a { font-weight: 600; font-size: .95rem; }
@media (max-width: 52rem) {
  .doing { grid-template-columns: 1fr; }
  .doing > div + div { padding-left: 0; border-left: none; }
}

/* ---------- events ---------- */

.tz-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-bottom: 1.75rem; font-size: .92rem; color: var(--ink-soft); }
.tz-bar button { font: 600 .9rem var(--sans); cursor: pointer; background: transparent; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 3px; padding: .5rem .85rem; }
.tz-bar button:hover { background: var(--ink); color: var(--mist); }
.tz-bar button[aria-pressed="true"] { background: var(--ink); color: var(--mist); }

.events { list-style: none; margin: 0; padding: 0; }
.events li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 2rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.events li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 46rem) { .events li { grid-template-columns: 1fr; gap: .6rem; } }
.events .when { font-family: var(--serif); font-size: 1.05rem; color: var(--brass); font-weight: 600; }
.events .when span { display: block; font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--ink-soft); margin-top: .2rem; }
.events h3 { font-size: 1.2rem; }
.events .meta { font-size: .93rem; color: var(--ink-soft); margin: .45rem 0 0; }
.events .local { font-size: .88rem; color: var(--pacific); margin: .35rem 0 0; }
.events.past li { opacity: .78; }

.note { margin-top: 2rem; padding: 1.15rem 1.35rem; border-left: 3px solid var(--pacific); background: var(--paper); font-size: .95rem; }
.note p { margin: 0 0 .6rem; }
.note p:last-child { margin-bottom: 0; }

.draft-flag {
  background: var(--warn-bg); border: 1px solid var(--warn-line);
  padding: 1rem 1.25rem; margin-block: 1.75rem; font-size: .92rem; border-radius: 3px;
}
.draft-flag p { margin: 0; max-width: none; }

/* ---------- prose pages ---------- */

.prose h2 { font-size: 1.5rem; margin-top: 2.75rem; margin-bottom: .9rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.9rem; margin-bottom: .6rem; }
.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { max-width: var(--measure); padding-left: 1.2rem; margin: 0 0 1.3rem; }
.prose li { margin-bottom: .55rem; }
.prose > :first-child { margin-top: 0; }

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; margin-bottom: 1.5rem; min-width: 32rem; }
caption { text-align: left; font-size: .9rem; color: var(--ink-soft); padding-bottom: .7rem; }
th, td { text-align: left; padding: .8rem .9rem .8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; border-bottom: 2px solid var(--ink); }

/* ---------- grids ---------- */

.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem 2.5rem; }
.awards h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.awards p { font-size: .96rem; margin: 0 0 .7rem; }

.member-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
@media (max-width: 56rem) { .member-grid { grid-template-columns: 1fr; gap: 2rem; } }

.panel { background: var(--paper); border: 1px solid var(--line); padding: 1.5rem; }
.panel h3 { font-size: 1.1rem; margin-bottom: .9rem; }
.panel p, .panel li { font-size: .95rem; }
.panel p:last-child { margin-bottom: 0; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.5rem; }
.contact-grid h3 { font-size: 1.05rem; margin-bottom: .7rem; }
.people { list-style: none; margin: 0; padding: 0; font-size: .96rem; }
.people li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.people .role { display: block; font-size: .82rem; color: var(--ink-soft); }
address { font-style: normal; font-size: .96rem; line-height: 1.7; }

/* ---------- form ---------- */

form.contact { max-width: 34rem; }
form.contact p { margin: 0 0 1.15rem; max-width: none; }
label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: .35rem; }
.hint { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-soft); margin-bottom: .4rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem;
  padding: .65rem .75rem; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--ink); border-radius: 3px;
}
input:focus, select:focus, textarea:focus { border-color: var(--pacific); }
textarea { min-height: 9rem; resize: vertical; }

/* ---------- FAQ ---------- */

details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; cursor: pointer; }
summary::marker { color: var(--brass); }
details p { margin: .9rem 0 0; }

/* ---------- footer ---------- */

.foot { background: var(--ink); color: #c8d6de; padding-block: 2.5rem; margin-top: var(--step); font-size: .9rem; flex-shrink: 0; }
@media (prefers-color-scheme: dark) { .foot { background: #081520; color: var(--ink-soft); } }
.foot a { color: #fff; }
@media (prefers-color-scheme: dark) { .foot a { color: var(--pacific); } }
.foot-inner { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; justify-content: space-between; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; }
.foot p { margin: 0; max-width: 40ch; }
.foot .fine { margin-top: 1.5rem; font-size: .82rem; color: #93a8b4; max-width: 70ch; }
@media (prefers-color-scheme: dark) { .foot .fine { color: #6f8894; } }

@media print {
  .masthead, .nav, .tz-bar, .foot, .skip { display: none; }
  body { background: #fff; color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}

/* ---------- contact form states ---------- */

/* Spam trap: off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.opt { font-weight: 400; color: var(--ink-soft); }

.checkrow { display: flex; gap: .7rem; align-items: flex-start; }
.checkrow input { margin-top: .3rem; flex-shrink: 0; width: 1.05rem; height: 1.05rem; }
.checkrow label { font-weight: 400; font-size: .92rem; line-height: 1.5; }

.err { display: block; font-size: .88rem; font-weight: 600; color: #a4262c; margin-top: .35rem; }
@media (prefers-color-scheme: dark) { .err { color: #ff9d9d; } }

input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #a4262c; border-width: 2px; }
@media (prefers-color-scheme: dark) {
  input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #ff9d9d; }
}

.formstatus { padding: 1rem 1.25rem; margin-bottom: 1.5rem; border-radius: 3px; font-size: .95rem; }
.formstatus[data-state="ok"]   { background: #e6f4ea; border: 1px solid #2e7d4f; color: #17462c; }
.formstatus[data-state="fail"] { background: #fdecea; border: 1px solid #a4262c; color: #6b1a1e; }
@media (prefers-color-scheme: dark) {
  .formstatus[data-state="ok"]   { background: #14301f; border-color: #4d9c6b; color: #b7e4c7; }
  .formstatus[data-state="fail"] { background: #35191a; border-color: #c76b70; color: #ffc9c9; }
}
.formstatus h3 { font-size: 1.05rem; margin-bottom: .4rem; color: inherit; }
.formstatus p { margin: 0; color: inherit; max-width: none; }

button[disabled] { opacity: .6; cursor: progress; }

/* ---------- committee and officer roster ---------- */

.roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 2.25rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.person { display: flex; flex-direction: column; }

.person .shot,
.person .shot-empty {
  width: 100%;
  /* height:auto is required, or the img's height attribute wins over
     aspect-ratio and the photo renders taller than the placeholders. */
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  margin-bottom: .9rem;
  display: block;
}

/* Stand-in until a photograph is supplied. Deliberately quiet: a missing
   headshot should read as "not yet" rather than as a broken image. */
.person .shot-empty {
  display: grid;
  place-items: center;
  color: var(--ink-soft);
}
.person .shot-empty svg { width: 38%; height: auto; opacity: .28; }

.person h3 { font-size: 1.1rem; margin-bottom: .15rem; }
.person .role { display: block; font-size: .84rem; font-weight: 600; color: var(--brass); margin-bottom: .55rem; }
.person .bio { font-size: .93rem; color: var(--ink-soft); margin: 0 0 .7rem; max-width: none; }
.person .bio p { font-size: inherit; color: inherit; margin: 0 0 .7rem; max-width: none; }
.person .bio p:last-child { margin-bottom: 0; }
.person .bio strong { color: var(--ink); font-weight: 600; }
.person .links { margin-top: auto; font-size: .9rem; }
.person .links a { font-weight: 600; }
.person .links a + a::before { content: " · "; color: var(--ink-soft); font-weight: 400; }

/* A vacancy is information, not an omission: show the seat, name it as open. */
.person.is-vacant .shot-empty { border-top-color: var(--line); background: transparent; }
.person.is-vacant .shot-empty svg { opacity: .14; }
.person.is-vacant h3 { color: var(--ink-soft); font-style: italic; }

/* ---------- donations page ---------- */

.notlive {
  border: 1px solid var(--warn-line);
  border-left: 6px solid var(--warn-line);
  background: var(--warn-bg);
  padding: 1.35rem 1.6rem;
  margin-bottom: 2.75rem;
  border-radius: 3px;
}
.notlive-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin: 0 0 .6rem; color: var(--ink); }
.notlive p { margin: 0 0 .7rem; font-size: .96rem; }
.notlive p:last-child { margin-bottom: 0; }

.donate-grid { display: grid; grid-template-columns: 1fr 24rem; gap: 3.5rem; align-items: start; }
@media (max-width: 62rem) { .donate-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.give {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brass);
  padding: 1.6rem;
  position: relative;
}
.give-mock {
  font: 600 .72rem/1 var(--sans); letter-spacing: .08em;
  color: var(--warn-line); margin: 0 0 1.25rem;
}
.give fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
.give legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: .65rem; color: var(--ink); }
.give p { margin: 0 0 .9rem; max-width: none; }
.give p:last-child { margin-bottom: 0; }

/* one-time / monthly */
.segmented { display: flex; border: 1.5px solid var(--line); border-radius: 3px; overflow: hidden; }
.seg {
  flex: 1; font: 600 .93rem var(--sans); padding: .6rem .5rem; cursor: pointer;
  background: transparent; color: var(--ink-soft); border: 0;
}
.seg + .seg { border-left: 1.5px solid var(--line); }
.seg.is-on { background: var(--ink); color: var(--mist); }

/* amount tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.tile {
  font: 600 1rem var(--sans); padding: .8rem .4rem; cursor: pointer;
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 3px;
}
.tile:hover { border-color: var(--pacific); }
.tile.is-on { border-color: var(--pacific); background: var(--pacific); color: #fff; }
@media (prefers-color-scheme: dark) { .tile.is-on { color: #06212a; } }

.give-custom { margin-top: .8rem !important; }

.give-tip { background: var(--mist); border: 1px solid var(--line); padding: 1.1rem 1.15rem; border-radius: 3px; }
.give-tip legend { margin-left: -.15rem; }
.give-tip .hint { margin-bottom: .8rem; display: block; }
.give-tip select { max-width: 12rem; }

.give-total {
  display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem;
  margin: 0 0 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  font-size: .95rem;
}
.give-total dt { color: var(--ink-soft); }
.give-total dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.give-total .grand { font-weight: 700; color: var(--ink); font-size: 1.05rem; padding-top: .5rem; border-top: 1px solid var(--line); }

.give-submit { width: 100%; text-align: center; }
.visually-clear { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- under-construction banner ---------- */

.construction {
  background: var(--brass-lt);
  color: #241b04;
  border-bottom: 1px solid var(--brass);
  padding: .7rem 0;
  text-align: center;
}
.construction p {
  margin: 0 auto;
  max-width: 60rem;
  padding-inline: 1.25rem;
  font-size: .93rem;
  line-height: 1.5;
}
.construction strong { font-weight: 700; }

@media (prefers-color-scheme: dark) {
  .construction { background: #4a3a0d; color: #f6e6bd; border-bottom-color: #6b5412; }
}

@media print { .construction { display: none; } }

/* ---------- suggest an event ---------- */

.suggest { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 2px solid var(--ink); }
.suggest h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.suggest-lede { color: var(--ink-soft); margin: .8rem 0 1.6rem; }

.suggest-box { border: 1px solid var(--line); border-top: 4px solid var(--brass); background: var(--paper); padding: 0; }
.suggest-box[open] { padding-bottom: 1.6rem; }
.suggest-box > summary {
  padding: 1.05rem 1.5rem;
  font-family: var(--sans); font-size: .98rem; font-weight: 600;
  color: var(--pacific);
}
.suggest-box[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; color: var(--ink); }
.suggest-box > summary:hover { background: var(--mist); }

.suggest-form { padding-inline: 1.5rem; max-width: 40rem; }
.suggest-form fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; }
.suggest-form legend {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600;
  padding: 0; margin-bottom: .9rem; color: var(--ink);
}
.suggest-form textarea { min-height: 5rem; }

.row-3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0 1rem; }
@media (max-width: 34rem) { .row-3 { grid-template-columns: 1fr; } }

/* ---------- cookbook coming-soon page ---------- */
.coming-soon { text-align: center; padding: 2.5rem 0 1.5rem; }
.coming-soon p { margin-left: auto; margin-right: auto; }
.coming-soon .eyebrow {
  font: 700 .85rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--pacific); margin-bottom: 1rem;
}
.coming-soon .lead {
  font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.2;
  font-weight: 600; margin-bottom: 1.25rem;
}

/* ---------- event page photo gallery ---------- */
.eyebrow-link { font-size: .9rem; margin-bottom: 1rem; }
.gallery-head { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem;
}
.gallery li { margin: 0; }
.gallery a { display: block; border-radius: 3px; overflow: hidden; background: var(--line); }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; height: auto; transition: transform .2s ease; }
.gallery figcaption { font-size: .85rem; color: var(--ink-soft); line-height: 1.4; margin-top: .45rem; }
.gallery a:hover img { transform: scale(1.03); }

/* ---------- around San Diego listing ---------- */
.around-month { font-size: 1.2rem; color: var(--brass); margin: 2rem 0 .25rem; }
.around-list li.is-pick { background: color-mix(in srgb, var(--brass) 8%, transparent); margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; border-radius: 4px; }
.pick-tag { display: inline-block; font: 700 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brass); border: 1px solid var(--brass); border-radius: 999px; padding: .3rem .55rem; vertical-align: middle; margin-right: .3rem; }
.around-list .around-summary { font-size: .95rem; margin: .55rem 0 .4rem; }
.around-list .why { font-size: .93rem; color: var(--ink-soft); margin: .3rem 0 0; }
.around-list .when { line-height: 1.35; }

/* ---------- call to action block (home, about) ---------- */
.cta { margin: 2.5rem 0 0; padding: 2rem 0 0; border-top: 2px solid var(--ink); }
.cta .cta-line { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 600; line-height: 1.25; margin: 0 0 1.1rem; }
.cta .actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cta .cta-close { color: var(--ink-soft); margin: 1.25rem 0 0; }
.prose h3 { font-size: 1.25rem; margin: 1.75rem 0 .5rem; }

/* ---------- cookbook ---------- */
.recipe-list { list-style: none; margin: 2rem 0; padding: 0; }
.recipe-list li { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.recipe-list li:last-child { border-bottom: 1px solid var(--line); }
.recipe-list h3 { margin: .1rem 0 .4rem; font-size: 1.35rem; }
.recipe-list p { margin: 0; }
.recipe-list .kicker { margin: 0; }
.recipe-facts { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 0 0 2rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.recipe-facts div { display: flex; flex-direction: column; }
.recipe-facts dt { font: 700 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .35rem; }
.recipe-facts dd { margin: 0; }
.recipe-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2.5rem; margin-bottom: 2.5rem; }
@media (max-width: 720px) { .recipe-grid { grid-template-columns: 1fr; } }
.recipe-grid h2 { font-size: 1.35rem; margin: 0 0 .75rem; }
.recipe-ingredients ul { list-style: none; margin: 0; padding: 0; }
.recipe-ingredients li { padding: .45rem 0; border-bottom: 1px solid var(--line); line-height: 1.4; }
.recipe-ingredients .amt { display: inline-block; min-width: 5.5rem; font-weight: 600; color: var(--pacific); }
.recipe-method ol { margin: 0; padding-left: 1.3rem; }
.recipe-method li { margin-bottom: .75rem; line-height: 1.5; }
.recipe-science { padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.recipe-science h2 { font-size: 1.6rem; margin-top: 0; }
.recipe-submit { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--ink-soft); }

/* ---------- Sigma Xi icons (black PNGs used as masks so they take any colour) ---------- */
.icon {
  display: inline-block; width: 1em; height: 1em; vertical-align: -.15em;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.icon-atom         { --icon: url(/assets/icons/atom.png); }
.icon-beaker       { --icon: url(/assets/icons/beaker.png); }
.icon-celebration  { --icon: url(/assets/icons/celebration.png); }
.icon-circuit      { --icon: url(/assets/icons/circuit.png); }
.icon-dna          { --icon: url(/assets/icons/dna.png); }
.icon-presentation { --icon: url(/assets/icons/presentation.png); }
.icon-science-fair { --icon: url(/assets/icons/science-fair.png); }

.page-head .page-icon { display: block; width: 3rem; height: 3rem; color: var(--brass); margin-bottom: .9rem; }

.icon-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 56rem) { .icon-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 34rem) { .icon-grid { grid-template-columns: 1fr; } }
.icon-grid a {
  display: flex; flex-direction: column; gap: .4rem; height: 100%;
  padding: 1.4rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  color: var(--ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
.icon-grid a:hover { border-color: var(--pacific); transform: translateY(-2px); }
.icon-grid .icon { width: 2.6rem; height: 2.6rem; color: var(--pacific); margin-bottom: .5rem; }
.icon-grid strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.icon-grid a > span:last-child { font-size: .93rem; color: var(--ink-soft); line-height: 1.45; }

/* ---------- cookbook flipbook ---------- */
.cookbook-widget {
  --bk-paper: #fffdf7; --bk-ink: #24313a; --bk-muted: #6a7680; --bk-line: #e3ddcf;
  --bk-blue: #123b63; --bk-blue-2: #1f5b8f; --bk-accent: #b58b3a;
}
.book-shell { position: relative; perspective: 1800px; max-width: 900px; margin: 0 auto; }
.book { position: relative; transform-style: preserve-3d; filter: drop-shadow(0 10px 20px rgba(20,30,40,.12)); }
.book::before {
  content: ""; position: absolute; left: 50%; top: 12px; bottom: 12px; width: 10px; transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(0,0,0,.12), rgba(255,255,255,.3), rgba(0,0,0,.10)); border-radius: 50%; z-index: 50; pointer-events: none;
}
.spread { display: none; grid-template-columns: 1fr 1fr; }
.spread.active { display: grid; animation: spreadIn .45s ease; }
@keyframes spreadIn { from { opacity: 0; transform: scale(.99); } to { opacity: 1; transform: scale(1); } }
.book .page {
  position: relative; min-height: 520px; color: var(--bk-ink);
  background: linear-gradient(rgba(255,255,255,.65), rgba(255,255,255,.65)), repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(18,59,99,.055) 28px);
  background-color: var(--bk-paper); border: 1px solid var(--bk-line); padding: 34px 38px 44px; overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
}
.book .page.left  { border-radius: 18px 4px 4px 18px; box-shadow: -10px 8px 26px rgba(20,30,40,.10); }
.book .page.right { border-radius: 4px 18px 18px 4px; box-shadow: 10px 8px 26px rgba(20,30,40,.10); }
.book .page.right.turning { transform-origin: left center; animation: turnPage .85s cubic-bezier(.25,.65,.25,1); z-index: 40; }
@keyframes turnPage {
  0%   { transform: rotateY(0deg);    box-shadow: 10px 8px 26px rgba(20,30,40,.10); }
  48%  {                               box-shadow: 28px 14px 38px rgba(20,30,40,.23); }
  100% { transform: rotateY(-178deg); box-shadow: -12px 8px 26px rgba(20,30,40,.10); }
}
.book .cover .page { background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(238,244,249,.98)); }
.book .cover-art {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  border: 2px solid rgba(18,59,99,.28); outline: 1px solid rgba(181,139,58,.55); outline-offset: -10px; border-radius: 10px; padding: 35px;
}
.book .xi-mark { font-size: 64px; line-height: 1; color: var(--bk-blue); margin-bottom: 8px; font-family: var(--serif); }
.book .cover-title { font-size: 34px; line-height: 1.1; color: var(--bk-blue); margin: 0; font-family: Georgia, serif; }
.book .cover-sub { margin: 14px 0 0; font-family: var(--sans); text-transform: uppercase; letter-spacing: .18em; color: var(--bk-accent); font-size: 12px; font-weight: 700; }
.book .science-row { margin-top: 28px; display: flex; gap: 1.4rem; color: var(--bk-blue-2); }
.book .science-row .icon { width: 1.9rem; height: 1.9rem; }
.book .cover-icon { width: 4rem; height: 4rem; color: var(--bk-accent); margin-bottom: 1rem; }
.book .recipe-kicker { font-family: var(--sans); text-transform: uppercase; letter-spacing: .13em; font-weight: 700; color: var(--bk-accent); font-size: 11px; margin-bottom: 9px; }
.book .recipe-title { margin: 0 0 8px; color: var(--bk-blue); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.05; font-family: Georgia, serif; }
.book .recipe-by { font-family: var(--sans); color: var(--bk-muted); font-size: 13px; margin-bottom: 14px; }
.book .section-title { color: var(--bk-blue-2); font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 700; margin: 14px 0 6px; }
.book ul, .book ol { padding-left: 20px; margin: 4px 0 0; max-width: none; }
.book li { margin: 4px 0; line-height: 1.3; font-size: 14.5px; }
.book .notes { padding: 10px 12px; border-left: 4px solid var(--bk-accent); background: rgba(181,139,58,.07); margin-top: 14px; font-size: 13.5px; line-height: 1.35; }
.book .read-more { margin: 12px 0 0; font-family: var(--sans); font-size: 14px; }
.book .read-more a { color: var(--bk-blue-2); }
.book .page-no { position: absolute; bottom: 13px; font-family: var(--sans); font-size: 11px; color: #9a9488; }
.book .left .page-no { left: 20px; }
.book .right .page-no { right: 20px; }
.book .placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--bk-muted); padding: 24px; gap: .5rem; }
.book .placeholder strong { color: var(--bk-blue); font-size: 24px; font-family: Georgia, serif; }
.book .placeholder .btn { margin-top: 1rem; color: var(--bk-blue); border-color: var(--bk-blue); }
.cookbook-widget .controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; font-family: var(--sans); }
.cookbook-widget .controls button {
  appearance: none; border: 1.5px solid var(--pacific); background: transparent; color: var(--pacific);
  padding: .6rem 1rem; border-radius: 999px; font: 600 .9rem var(--sans); cursor: pointer;
}
.cookbook-widget .controls button:hover { background: var(--pacific); color: #fff; }
.cookbook-widget .counter { min-width: 7rem; text-align: center; color: var(--ink-soft); font-size: .85rem; }
.book-hint { text-align: center; font-size: .88rem; color: var(--ink-soft); margin: .75rem auto 0; }
.recipe-list-head { font-size: 1.5rem; margin: 3rem 0 .5rem; }
@media (max-width: 46rem) {
  .spread, .spread.active { grid-template-columns: 1fr; gap: 1rem; }
  .book::before { display: none; }
  .book .page, .book .page.left, .book .page.right { border-radius: 14px; min-height: 0; padding: 24px 22px 40px; }
  .book .cover .page.left { display: none; }
  .book .page.right.turning { animation: none; }
}

/* contributor credit on recipes */
.book .recipe-by { display: flex; align-items: center; gap: .55rem; }
.book .by-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(20,30,40,.25); }
.recipe-contrib { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; }
.recipe-contrib img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--paper); box-shadow: 0 1px 4px rgba(0,0,0,.2); }

/* ---------- social media links ---------- */
.social { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.social li { margin: 0; }
.social a, .social .is-soon {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .8rem .45rem .55rem; border-radius: 999px;
  border: 1.5px solid currentColor; text-decoration: none; color: inherit;
  font: 600 .85rem/1 var(--sans); transition: background .15s ease, color .15s ease;
}
.social a:hover { background: var(--pacific); border-color: var(--pacific); color: #fff; }
.social .is-soon { opacity: .5; border-style: dashed; cursor: default; }
.social .social-glyph { display: inline-flex; width: 1.15rem; height: 1.15rem; }
.social .social-glyph svg { width: 100%; height: 100%; }
.social .social-name small { display: inline-block; margin-left: .35rem; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.foot .social { margin-top: 1rem; }
.foot .social a:hover { background: var(--brass-lt); border-color: var(--brass-lt); color: #10263a; }
.foot-inner > div > p { margin: 0; }

/* ---------- sign-up form ---------- */
[hidden] { display: none !important; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 30rem) { .row-2 { grid-template-columns: 1fr; } }
.signup-form .checkrow { display: grid; grid-template-columns: auto 1fr; gap: .35rem .65rem; align-items: start; }
.signup-form .checkrow label { font-size: .93rem; line-height: 1.45; }
.signup-form .checkrow .err { grid-column: 1 / -1; }
.panel .signup-form { max-width: none; }
.panel .signup-form p:last-child { margin-bottom: 0; }

/* ---------- From San Diego Scientists ---------- */
.pub-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.pub-list .pub { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.pub-list .pub:last-child { border-bottom: 1px solid var(--line); }
.pub .kicker { margin: 0 0 .3rem; }
.pub h3 { font-size: 1.25rem; line-height: 1.25; margin: 0 0 .5rem; }
.pub h3 a { color: var(--ink); text-decoration: none; }
.pub h3 a:hover { color: var(--pacific); text-decoration: underline; }
.pub .pub-by { margin: 0 0 .6rem; line-height: 1.4; }
.pub .pub-summary { font-size: .95rem; margin: 0 0 .8rem; max-width: none; }
.pub .pub-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin: 0 0 .5rem; }
.pub .pub-news { font-size: .9rem; }
.pub .pub-venue { margin: 0; font-size: .85rem; }
.pub-arts { border-left: 3px solid var(--brass); padding-left: 1rem !important; }
.pub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 56rem) { .pub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 34rem) { .pub-grid { grid-template-columns: 1fr; } }
.pub-grid .pub, .pub-grid .pub:last-child { border: 1px solid var(--line); border-radius: 6px; background: var(--paper); padding: 1.25rem 1.4rem; display: flex; flex-direction: column; }
.pub-grid .pub-arts { border-left: 3px solid var(--brass); }
.pub-grid .pub-summary { flex: 1; }
