/* rosecitysigmas.com: Upsilon Psi Sigma Chapter. Official palette only:
   Royal Blue #164f90, white, Cool Gray 3 #c8c9c7. */
:root {
  --blue: #164f90;
  --gray: #c8c9c7;
  --ink: #1b1d20;
  --body: #33363a;
  --muted: #55595e;
  --pad: clamp(20px, 4vw, 48px);
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Source Sans 3', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 156px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #fff; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 12px 16px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.rule-top { border-top: 1px solid var(--blue); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.18em; color: var(--blue); }
.h-section { margin: 12px 0 0; font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; color: var(--blue); }
.h-sub { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; color: var(--blue); }
.lede { font-size: 18px; line-height: 1.55; color: var(--muted); }
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--blue); }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.caption-it { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--muted); }
.credit { margin-top: 8px; font-size: 13px; color: var(--muted); }
.credit a { color: var(--muted); text-decoration: underline; }
.btn, .btn-outline, .btn-white {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  font-family: var(--sans); font-size: 16px; font-weight: 600; border-radius: 0; cursor: pointer; text-decoration: none;
}
.btn { background: var(--blue); color: #fff; border: 1.5px solid var(--blue); }
.btn-outline { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-white { background: #fff; color: var(--blue); border: 1.5px solid #fff; }
.btn-ghost-white { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border: 1.5px solid #fff; color: #fff; font-weight: 600; font-size: 16px; }
.btn:hover, .btn-outline:hover, .btn-white:hover, .btn-ghost-white:hover { text-decoration: none; }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.link-strong { font-weight: 600; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--sans); font-size: 15px; font-weight: 600; padding: 10px 16px; min-height: 44px;
  border: 1.5px solid var(--blue); border-radius: 0; cursor: pointer; background: #fff; color: var(--blue);
}
.chip[aria-pressed="true"] { background: var(--blue); color: #fff; }
.badge { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--blue); border: 1.5px solid var(--blue); padding: 4px 7px; }
.underline-soft { color: var(--muted); text-decoration: underline; text-decoration-color: var(--gray); text-underline-offset: 3px; }

/* Header: the blue bar and the masthead stay together at the top. */
.site-top { position: sticky; top: 0; z-index: 20; }
.topbar { background: var(--blue); color: #fff; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; font-size: 13px; letter-spacing: 0.04em; }
.topbar a { color: #fff; }
.masthead { position: relative; background: #fff; border-bottom: 1px solid var(--blue); }
.masthead .wrap { display: flex; align-items: stretch; gap: 16px; padding-left: clamp(16px, 4vw, 48px); padding-right: clamp(16px, 4vw, 48px); }
.seal-link { flex: none; position: relative; width: 152px; transition: width 0.25s ease; }
.seal-link img { position: absolute; left: 0; top: 10px; width: 152px; height: auto; transition: width 0.25s ease, top 0.25s ease; }
.is-scrolled .seal-link, .is-scrolled .seal-link img { width: 88px; }
.is-scrolled .seal-link img { top: 8px; }
.masthead-row { flex: 1 1 auto; min-width: 0; min-height: 104px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding: 12px 0; }
.chapter-name { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 1px solid var(--blue); color: var(--blue); min-width: 0; }
.chapter-name:hover { text-decoration: none; }
.chapter-name b { font-weight: 700; font-size: 16px; letter-spacing: 0.02em; }
.chapter-name span { font-size: 14px; color: var(--muted); }
.main-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 28px; font-size: 16px; font-weight: 600; }
.main-nav a { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-underline-offset: 6px; }
.main-nav .nav-cta { background: var(--blue); color: #fff; padding: 12px 18px; min-height: 44px; display: inline-flex; align-items: center; }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--blue); border-radius: 0; background: #fff; color: var(--blue); font-family: var(--sans); font-size: 16px; font-weight: 600; cursor: pointer; }
.mobile-menu { display: none; border-top: 1px solid var(--gray); background: #fff; }
.mobile-menu a { display: flex; align-items: center; min-height: 48px; padding: 0 clamp(16px, 4vw, 48px); border-bottom: 1px solid var(--gray); color: var(--ink); font-size: 17px; font-weight: 600; }
.mobile-menu .menu-cta { padding: 16px clamp(16px, 4vw, 48px); }
.mobile-menu .menu-cta a { justify-content: center; background: var(--blue); color: #fff; border: 0; padding: 0; }
@media (max-width: 859px) {
  html { scroll-padding-top: 130px; }
  .seal-link, .seal-link img { width: 68px; }
  .seal-link img { top: 6px; }
  .is-scrolled .seal-link, .is-scrolled .seal-link img { width: 64px; }
  .masthead-row { min-height: 80px; flex-wrap: nowrap; }
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .menu-open .mobile-menu { display: block; }
}

/* Lists of events */
.event-list { border-bottom: 1px solid var(--gray); }
.event-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 22px 0; border-top: 1px solid var(--gray); }
.event-date { flex: none; width: 104px; display: flex; align-items: center; gap: 10px; color: var(--blue); }
.event-date .d { font-family: var(--serif); font-weight: 700; font-size: 42px; line-height: 1; }
.event-date .md { display: flex; flex-direction: column; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; line-height: 1.3; }
.event-main { flex: 1 1 360px; min-width: 0; }
.event-title { font-family: var(--serif); font-weight: 700; font-size: 23px; line-height: 1.2; color: var(--ink); }
.event-meta { margin-top: 4px; font-size: 15px; color: var(--muted); }
.event-prog { flex: 0 1 230px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--blue); }
.event-recap { margin-top: 6px; font-size: 16px; color: var(--ink); }
.empty-row { border-top: 1px solid var(--gray); padding: 32px 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
.empty-row p { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.35; max-width: 32em; }

/* Grids */
.sp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .sp-grid { gap: 12px; } }
.ig-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .ig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }

/* Sponsor tiles */
.sp-tile { background: #fff; color: var(--ink); display: flex; flex-direction: column; min-width: 0; }
.sp-tile.bordered { border: 1px solid var(--gray); }
.sp-ad { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #f1f1ef; cursor: zoom-in; aspect-ratio: 3 / 4; overflow: hidden; }
.sp-tile.bordered .sp-ad { border-bottom: 1px solid var(--gray); }
.sp-ad img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.sp-noad { aspect-ratio: 3 / 4; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 26px; line-height: 1.15; }
.sp-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sp-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-name { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.2; }
.sp-blurb { font-size: 15px; line-height: 1.5; color: var(--muted); }
.sp-place { display: flex; gap: 6px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--ink); }
.sp-place span { text-decoration: underline; text-decoration-color: var(--gray); text-underline-offset: 3px; }
.sp-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: auto; padding-top: 6px; }
.sp-links a { font-size: 15px; font-weight: 600; color: var(--blue); overflow-wrap: anywhere; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 40px 28px; margin-top: 48px; }
@media (max-width: 560px) { .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; } .board-grid .serif { font-size: 18px !important; } }

/* Lightbox for ads, flyers and photos */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 22, 42, 0.86); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(92vw, 900px); display: flex; flex-direction: column; gap: 12px; }
.lightbox img { display: block; max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; background: #fff; margin: 0 auto; }
.lightbox figcaption { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #fff; font-size: 16px; }
.lightbox button { min-height: 44px; padding: 0 18px; border: 1.5px solid #fff; background: transparent; color: #fff; font-family: var(--sans); font-size: 16px; font-weight: 600; cursor: pointer; }

/* Royal blue and white duotone for event photos (filter defined in site.js) */
.duotone { filter: url(#rcs-duotone); }

/* Ceremony band */
.ceremony { background: var(--blue); color: #fff; }
.ceremony a { color: #fff; }
.ceremony .btn-white { color: var(--blue); }
.ceremony-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px 56px; align-items: start; }
@media (max-width: 960px) { .ceremony-grid { grid-template-columns: 1fr; } }
.ceremony h2 { margin: 14px 0 0; font-family: var(--serif); font-weight: 700; font-size: clamp(38px, 4.8vw, 64px); line-height: 1.02; }
.ceremony .kicker { color: #fff; }
.ceremony p { font-size: 19px; line-height: 1.55; margin: 20px 0 0; max-width: 32em; }
.cer-facts { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.cer-facts li { display: flex; gap: 10px; align-items: flex-start; }
.cer-facts svg { flex: none; margin-top: 3px; }
.cer-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.speakers { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.45); display: flex; gap: 20px; align-items: flex-start; }
.speakers ul { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.speakers li b { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.speakers li span { display: block; margin-top: 2px; font-size: 15px; line-height: 1.4; color: #dfe6f0; }
.flyer-btn { flex: none; width: 128px; padding: 0; border: 2px solid #fff; background: #fff; cursor: zoom-in; }
.flyer-btn img { display: block; width: 100%; height: auto; }
.flyer-btn span { display: block; padding: 6px 4px; background: var(--blue); color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 600; }
.player { position: relative; aspect-ratio: 16 / 9; background: #0f3a6b; border: 2px solid #fff; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; text-align: center; }
.player-wait .play { width: 72px; height: 72px; border-radius: 50%; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; }
.player-wait b { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; }
.player-wait span { font-size: 16px; color: #dfe6f0; max-width: 28em; }
.player-cap { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 15px; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: 0.14em; font-size: 13px; }
.live-dot::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #fff; }

/* Archive */
.arch-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px 32px; padding: 26px 0; border-top: 1px solid var(--gray); }
@media (max-width: 560px) { .arch-row { grid-template-columns: 1fr; } }
.arch-row:target, .arch-row.is-target { background: #f3f6fa; box-shadow: -12px 0 0 #f3f6fa, 12px 0 0 #f3f6fa; }
.arch-date { color: var(--blue); line-height: 1.25; }
.arch-date b { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; }
.arch-date span { font-size: 13px; color: var(--muted); }
.arch-progs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 6px; }
.arch-desc { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--body); white-space: pre-line; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-top: 16px; max-width: 760px; }
.gallery button { padding: 0; border: 0; background: var(--gray); cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.year-head { margin: 40px 0 0; font-family: var(--serif); font-weight: 700; font-size: 30px; color: var(--blue); }

/* Footer */
.site-foot { background: var(--blue); color: #fff; }
.site-foot a { color: #fff; }
.foot-cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; }
.foot-nav { flex: 2 1 560px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 28px 32px; font-size: 16px; }
.foot-nav > div { display: flex; flex-direction: column; gap: 10px; }
.foot-nav .h { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; }
.icons { display: flex; flex-wrap: wrap; gap: 8px; }
.icons a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.icons img { width: 28px; height: 28px; object-fit: contain; }
.icons.big { margin-left: -8px; }
.icons.big a { width: 56px; height: 56px; }
.icons.big img { width: 40px; height: 40px; }
.foot-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
