/* ==========================================================================
   ST. FRANCIS DE SALES PRE-UNIVERSITY COLLEGE
   associations.css — Associations page only (loaded after sfs.css and
   about.css, which supplies the shared inner-page hero). Existing design
   tokens only; every class is prefixed `sfs-as-`.
   ========================================================================== */

/* ---- tab bar ---- */
.sfs-as-nav { background: var(--sfs-white); border-bottom: 1px solid var(--sfs-line); position: sticky; top: var(--sfs-ab-nav-h, 89px); z-index: 30; }
.sfs-as-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; padding: 14px 0; }
.sfs-as-tabs::-webkit-scrollbar { display: none; }
.sfs-as-tab {
  flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--sfs-line); background: var(--sfs-white); font: inherit; font-size: .925rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sfs-ink-70); cursor: pointer; white-space: nowrap;
  transition: background-color .3s var(--sfs-ease), color .3s var(--sfs-ease), border-color .3s var(--sfs-ease), box-shadow .3s var(--sfs-ease);
}
.sfs-as-tab span { font-family: var(--sfs-display); color: var(--sfs-amber-ink); }
.sfs-as-tab:hover { border-color: var(--sfs-blue-300); color: var(--sfs-blue); }
.sfs-as-tab[aria-selected="true"] { background: var(--sfs-blue); border-color: var(--sfs-blue); color: var(--sfs-white); box-shadow: 0 12px 26px -16px rgba(13, 48, 108, .7); }
.sfs-as-tab[aria-selected="true"] span { color: var(--sfs-gold); }
.sfs-as-tab:focus-visible { outline: 3px solid var(--sfs-amber); outline-offset: 2px; }

/* ---- panel ---- */
.sfs-as-sec { background: var(--sfs-white); scroll-margin-top: 130px; }
/* very light, low-contrast academic tile (plus marks, diamonds, small open books) —
   one seamless tile so the pattern reads the same across the whole panel */
.sfs-as-sec[role="tabpanel"] {
  min-height: 60vh;
  background-color: var(--sfs-white);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27120%27%20height%3D%27120%27%20viewBox%3D%270%200%20120%20120%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%230D306C%27%20stroke-opacity%3D%27.075%27%20stroke-width%3D%271%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M14%208v12M8%2014h12%27%2F%3E%3Cpath%20d%3D%27M74%2064l7%207-7%207-7-7z%27%2F%3E%3Ccircle%20cx%3D%2774%27%20cy%3D%2714%27%20r%3D%272.6%27%2F%3E%3Cpath%20d%3D%27M84%20100c3.2-2.2%206.4-2.2%209%200%202.6-2.2%205.8-2.2%209%200V91c-3.2-2.2-6.4-2.2-9%200-2.6-2.2-5.8-2.2-9%200v9zM93%2091v9%27%2F%3E%3Ccircle%20cx%3D%2720%27%20cy%3D%2792%27%20r%3D%271.4%27%20fill%3D%27%230D306C%27%20fill-opacity%3D%27.07%27%20stroke%3D%27none%27%2F%3E%3Ccircle%20cx%3D%2734%27%20cy%3D%2792%27%20r%3D%271.4%27%20fill%3D%27%230D306C%27%20fill-opacity%3D%27.07%27%20stroke%3D%27none%27%2F%3E%3Ccircle%20cx%3D%2748%27%20cy%3D%2792%27%20r%3D%271.4%27%20fill%3D%27%230D306C%27%20fill-opacity%3D%27.07%27%20stroke%3D%27none%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size: 120px 120px;
}
.sfs-as-sec[role="tabpanel"]:focus-visible { outline-offset: -6px; }
.sfs-as-head { display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 32px); margin-bottom: clamp(24px, 3vw, 40px); }
.sfs-as-head__no { font-family: var(--sfs-display); font-size: clamp(3rem, 6vw, 4.8rem); font-weight: 800; line-height: .8; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.4px var(--sfs-ink-30); }
.sfs-as-head__cap { font-size: 0.845rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--sfs-amber-ink); display: inline-flex; align-items: center; gap: 10px; }
.sfs-as-head__cap::before { content: ""; width: 30px; height: 2px; background: var(--sfs-amber); }
.sfs-as-head h2 { margin-top: 10px; font-family: var(--sfs-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; color: var(--sfs-ink-70); }

/* ---- event: text left, photos right ---- */
.sfs-as-events { display: grid; }
.sfs-as-event {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(28px, 4vw, 64px); align-items: start;
  padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--sfs-line);
}
.sfs-as-event:first-child { border-top: 0; padding-top: clamp(12px, 2vw, 24px); }
.sfs-as-event::before { content: ""; position: absolute; z-index: -1; right: -2%; top: clamp(18px, 3vw, 40px); width: clamp(60px, 9vw, 130px); height: clamp(60px, 9vw, 130px); background: #EEF1F8; border-radius: 6px; }
.sfs-as-event::after { content: ""; position: absolute; z-index: -1; left: calc(var(--sfs-bleed) * -1); bottom: clamp(14px, 2vw, 30px); width: clamp(90px, 10vw, 150px); height: clamp(26px, 3vw, 42px); background: #FDF3DF; }
.sfs-as-event--media { grid-template-columns: 1fr; }
.sfs-as-event--media::after { display: none; }
.sfs-as-event--media .sfs-as-event__main { display: none; }

.sfs-as-kicker { display: inline-flex; align-items: center; gap: 16px; font-size: 0.905rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--sfs-blue); }
.sfs-as-kicker::before { content: ""; width: 50px; height: 2px; background: var(--sfs-amber); }
.sfs-as-titlerow { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; margin-top: 14px; }
.sfs-as-event__title { flex: 1 1 260px; font-family: var(--sfs-display); font-size: clamp(2rem, 3.6vw, 3.4rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; color: var(--sfs-blue); }
.sfs-as-event__title em { font-style: italic; color: var(--sfs-amber); }

/* "Read full report" — quiet underlined text link under the report */
.sfs-as-more {
  display: inline-block; margin-top: 22px; padding: 0 0 6px; border: 0; border-bottom: 2px solid var(--sfs-amber); background: none;
  font: inherit; font-size: 0.905rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--sfs-blue); cursor: pointer;
  transition: color .3s var(--sfs-ease), border-color .3s var(--sfs-ease);
}
.sfs-as-more--indent { margin-left: 86px; }
.sfs-as-more:hover { color: var(--sfs-blue-300); border-color: var(--sfs-blue); }
.sfs-as-more:focus-visible { outline: 3px solid var(--sfs-amber); outline-offset: 4px; }
.sfs-as-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; margin: 22px 0 0; padding: 0; }
.sfs-as-meta li { display: inline-flex; align-items: center; gap: 9px; font-size: .95rem; color: #24468A; }
.sfs-as-meta svg { color: var(--sfs-blue); flex: none; }

/* text */
.sfs-as-text { position: relative; margin-top: 26px; }
.sfs-as-text p { line-height: 1.75; color: #24468A; font-size: 1rem; }
.sfs-as-text p + p, .sfs-as-text p + ul, .sfs-as-text ul + p, .sfs-as-text ul + ul { margin-top: 16px; }
.sfs-as-text .sfs-as-lead { font-size: 1.06rem; color: #1B3F7E; }
.sfs-as-text b, .sfs-as-text strong { color: var(--sfs-blue); font-weight: 700; }
.sfs-as-text.is-clamped { max-height: 30rem; overflow: hidden; }
.sfs-as-text.is-clamped::after { content: ""; position: absolute; inset: auto 0 0 0; height: 110px; background: linear-gradient(0deg, var(--sfs-white), rgba(255, 255, 255, 0)); pointer-events: none; }

.sfs-as-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.sfs-as-points li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 22px; align-items: center; line-height: 1.7; color: #24468A; font-size: 1rem; }
.sfs-as-points__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(244, 165, 28, .13); color: var(--sfs-blue); }

/* media */
.sfs-as-media { display: grid; gap: 14px; position: relative; }
.sfs-as-thumb { display: block; width: 100%; padding: 0; border: 0; background: var(--sfs-line-soft); border-radius: 16px; overflow: hidden; cursor: zoom-in; position: relative; }
.sfs-as-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--sfs-ease-out); }
.sfs-as-thumb:hover img { transform: scale(1.05); }
.sfs-as-thumb:focus-visible { outline: 3px solid var(--sfs-amber); outline-offset: 2px; }
.sfs-as-thumb--main { aspect-ratio: 16 / 10; box-shadow: 0 30px 60px -44px rgba(7, 29, 67, .55); }
.sfs-as-poster img { height: auto; object-fit: contain; }
.sfs-as-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sfs-as-gallery .sfs-as-thumb { aspect-ratio: 3 / 2.1; }
.sfs-as-event--media .sfs-as-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sfs-as-event--media .sfs-as-poster { max-width: 760px; margin-inline: auto; }

/* lightbox */
.sfs-as-lb { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: 1fr auto; background: rgba(4, 20, 47, .94); padding: 18px; }
.sfs-as-lb[hidden] { display: none; }
.sfs-as-lb__stage { display: grid; place-items: center; min-height: 0; }
.sfs-as-lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.sfs-as-lb__bar { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 14px; color: rgba(255, 255, 255, .8); font-size: .85rem; }
.sfs-as-lb button { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 1.25rem; cursor: pointer; }
.sfs-as-lb button:hover { background: rgba(255, 255, 255, .24); }
.sfs-as-lb__close { position: absolute; top: 14px; right: 14px; }

@media (max-width: 1000px) {
  .sfs-as-event { grid-template-columns: 1fr; }
  .sfs-as-nav { position: static; }
  .sfs-as-event::before { right: 0; }
}
@media (max-width: 560px) {
  .sfs-as-sec[role="tabpanel"] { background-size: 96px 96px; }
  .sfs-as-tabs { margin-inline: calc(var(--sfs-bleed) * -1); padding-inline: var(--sfs-bleed); scroll-padding-inline: var(--sfs-bleed); }
  .sfs-as-gallery, .sfs-as-event--media .sfs-as-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sfs-as-points li { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .sfs-as-points__icon { width: 48px; height: 48px; }
  .sfs-as-points__icon svg { width: 20px; height: 20px; }
  .sfs-as-kicker { letter-spacing: .2em; }
  .sfs-as-kicker::before { width: 32px; }
  .sfs-as-head { align-items: center; }
}
