/* Student Leaders website: the public pages (/, /council/, /captain/, /entrepreneur/, /sea/).
   Loaded ONLY by those pages (scripts/main-site.js). The Regeneration portal uses /shared/sl.css and never loads this file.
   Brand: UPH teal #005F61, deep teal #00393A, gold #FEBE00, navy #2A3482, Poppins only, sentence case.
   Order: fonts → tokens → base → header → buttons → home → organization pages → sections → Regeneration band → footer → motion. */

/* ===== Fonts (self-hosted Poppins, Latin subset: no request to Google) ===== */
@font-face { font-family: "Poppins"; src: url("/assets/main/fonts/Poppins-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/main/fonts/Poppins-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/main/fonts/Poppins-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ===== Tokens ===== */
:root {
  --page: #f4f6f6;
  --surface: #ffffff;
  --ink: #12272a;
  --muted: #52676a;
  --line: #dfe6e5;
  --line-strong: #c6d3d2;
  --teal: #005f61;
  --teal-deep: #00393a;
  --teal-mist: #e8f2f1;
  --teal-soft: #f1f7f6;
  --gold: #febe00;
  --gold-ink: #6b5000;
  --gold-tint: #fff3c9;
  --navy: #2a3482;

  --shadow-s: 0 1px 2px rgba(0, 57, 58, .05), 0 2px 8px rgba(0, 57, 58, .05);
  --shadow: 0 2px 4px rgba(0, 57, 58, .05), 0 10px 26px rgba(0, 57, 58, .09);
  --shadow-l: 0 4px 8px rgba(0, 57, 58, .06), 0 18px 40px rgba(0, 57, 58, .16);

  --font: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body.main-site {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--page);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
:where(.main-site) img { max-width: 100%; height: auto; display: block; }
:where(.main-site) picture { display: contents; }
:where(.main-site) a { color: var(--teal); text-underline-offset: .18em; text-decoration-thickness: 1px; }
:where(.main-site) a:hover { text-decoration-thickness: 2px; }
:where(.main-site) :is(h1, h2, h3, h4) { line-height: 1.2; margin: 0; font-weight: 600; letter-spacing: -.01em; }
:where(.main-site) p { margin: 0; }
:where(.main-site) :is(ul, ol) { margin: 0; padding: 0; }
:where(.main-site) :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
:where(.main-site) svg { flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--teal-deep); padding: .6rem 1rem; z-index: 99; font-weight: 600; }
.skip:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ph { background: var(--gold-tint); color: var(--gold-ink); outline: 2px dashed #d39c00; border-radius: 4px; padding: 0 .3em; font-weight: 500; }

/* ===== Header (light: UPH College logo | divider | Student Leaders secondary logo; the portal and UPH College Connect use dark bands) ===== */
.site-header {
  position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px);
}
.site-header::after { /* thin brand line: about 70% green blending into 30% yellow */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal) 55%, var(--gold) 85%, var(--gold) 100%);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand-pair { display: flex; align-items: center; gap: clamp(.7rem, 2vw, 1rem); min-width: 0; padding-block: .55rem; }
.uph-logo { height: 56px; width: auto; flex: none; }
.brand-divider { width: 1.5px; align-self: stretch; margin-block: 4px; background: var(--line-strong); border-radius: 1px; flex: none; }
.brand { display: inline-flex; align-items: center; color: inherit; text-decoration: none; border-radius: 6px; }
.brand .lockup { height: 50px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: .35rem; }
.nav-link { color: var(--ink) !important; text-decoration: none; font-weight: 500; font-size: .95rem; padding: .5rem .8rem; border-radius: 999px; }
.nav-link:hover { background: var(--teal-soft); color: var(--teal) !important; }
@media (max-width: 520px) {
  .uph-logo { height: 44px; }
  .brand .lockup { height: 38px; }
  .nav-link { display: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-weight: 500; font-size: .95rem;
  padding: .62rem 1.15rem; border-radius: 999px; border: 1px solid transparent; text-decoration: none !important; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--teal); color: #fff !important; box-shadow: 0 1px 2px rgba(0, 57, 58, .2); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-gold { background: var(--gold); color: var(--teal-deep) !important; font-weight: 600; box-shadow: 0 1px 2px rgba(107, 80, 0, .25); }
.btn-gold:hover { background: #ffcd33; }
.btn-quiet { background: var(--surface); color: var(--teal) !important; border-color: var(--line-strong); }
.btn-quiet:hover { border-color: var(--teal); background: var(--teal-soft); }
.btn-s { padding: .42rem .85rem; font-size: .85rem; }
.btn-l { padding: .8rem 1.4rem; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .55rem; }

/* ===== Section headings: small gold bar before the title (as on UPH College Connect) ===== */
.section-head { margin-bottom: 1.15rem; }
.section-title { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); display: flex; align-items: center; gap: .6rem; }
.section-title::before { content: ""; width: 4px; height: 1.05em; border-radius: 2px; background: var(--gold); flex: none; }
.section-sub { color: var(--muted); margin-top: .35rem; max-width: 62ch; }
.count { font-size: .8rem; font-weight: 500; color: var(--muted); background: var(--teal-soft); border: 1px solid var(--line); border-radius: 999px; padding: .05rem .55rem; }

/* ===== Home: hero ===== */
.hero { padding-block: clamp(1.75rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.hero-grid { display: grid; gap: clamp(1.6rem, 4vw, 2.4rem); }
.hero-text { display: flex; flex-direction: column; }
.hero h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.25rem); letter-spacing: -.025em; line-height: 1.08; color: var(--teal-deep); }
.hero h1::after { content: ""; display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--gold); margin-top: .9rem; }
.lede { margin-top: 1.1rem; color: var(--muted); font-size: clamp(.98rem, .94rem + .2vw, 1.06rem); line-height: 1.7; max-width: 62ch; display: grid; gap: .8rem; }
.hero-actions { margin-top: 1.5rem; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; border-radius: var(--r-l); box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; }
.hero-mark { /* the SL monogram's two strokes, as a quiet badge on the photo's corner */
  position: absolute; right: clamp(.8rem, 2.5vw, 1.4rem); bottom: clamp(-1.1rem, -2vw, -.8rem); width: clamp(54px, 9vw, 76px); aspect-ratio: 1;
  border-radius: 18px; background: var(--surface); box-shadow: var(--shadow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg transform='translate(-2.99 -3.82) scale(0.0665)'%3E%3Cpath fill='%23FEBE00' d='M 833.52 610.59 L 833.52 767.91 L 819.52 775.93 L 697.29 846.57 L 683.29 854.59 L 669.3 846.48 L 547.06 775.93 L 533.07 767.91 L 533.07 404.75 L 547.06 396.73 L 669.3 326.09 L 669.3 689.25 L 683.29 697.27 L 697.29 689.25 L 711.29 681.13 Z'/%3E%3Cpath fill='%23005F61' d='M 655.3 301.93 L 533.07 372.47 L 519.07 380.59 L 505.07 388.61 L 505.07 578.21 L 491.08 586.33 L 368.84 656.88 L 354.85 664.99 L 340.85 656.88 L 218.62 586.33 L 340.85 515.79 L 368.84 499.55 L 368.84 310.05 L 382.84 301.93 L 505.07 231.39 L 519.07 223.27 L 533.07 231.29 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 72%; background-position: center; background-repeat: no-repeat;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
  .hero h1 { white-space: nowrap; }
}

/* ===== Home: organization cards (the whole card is one link: "stretched link") ===== */
.section-block { padding-block: clamp(2rem, 6vw, 3.5rem) 0; }
.org-grid { list-style: none; display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .org-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .org-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.org-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-s); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.org-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); border-color: var(--line-strong); }
.org-cover { width: 100%; aspect-ratio: 3 / 2; overflow: hidden; background: var(--teal-mist); }
.org-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.org-card:hover .org-cover img { transform: scale(1.045); }
.org-badge { /* circular logo overlapping the photo's lower edge, with a thin gold ring */
  width: 88px; height: 88px; margin-top: -44px; position: relative; border-radius: 50%; background: var(--surface); padding: 5px;
  box-shadow: 0 0 0 2px var(--gold), var(--shadow); object-fit: contain; transition: transform .3s var(--ease);
}
.org-card:hover .org-badge { transform: rotate(-4deg) scale(1.05); }
.org-body { display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: .8rem 1.3rem 1.4rem; flex: 1; }
.org-body h3 { font-size: 1.15rem; }
.org-link { color: var(--ink) !important; text-decoration: none !important; }
.org-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-m); }   /* makes the whole card clickable */
.org-link:focus-visible { outline: none; }
.org-link:focus-visible::after { outline: 3px solid var(--gold); outline-offset: 3px; }
.org-card:hover .org-link { color: var(--teal) !important; }
.org-body p { color: var(--muted); font-size: .9rem; flex: 1; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .55rem; padding: .42rem .95rem; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--teal); font-size: .82rem; font-weight: 500; background: var(--surface); white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.org-card:hover .pill, .org-card:focus-within .pill { background: var(--teal); border-color: var(--teal); color: #fff; }
.org-card:hover .pill svg { transform: translateX(3px); }

/* ===== Organization pages: header band ===== */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(1.1rem, 3vw, 1.6rem) clamp(1.4rem, 3.5vw, 2.2rem); }
.pagenav { display: flex; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.back-btn {
  display: inline-flex; align-items: center; gap: .3rem; padding: .32rem .8rem .32rem .55rem; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--ink) !important; text-decoration: none !important; font-size: .85rem; font-weight: 500; background: var(--surface);
}
.back-btn:hover { border-color: var(--teal); color: var(--teal) !important; background: var(--teal-soft); }
.back-btn svg, .crumb-home svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back-btn svg { transition: transform .2s var(--ease); }
.back-btn:hover svg { transform: translateX(-2px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--teal); }
.crumbs span[aria-hidden] { opacity: .5; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.crumb-home { display: inline-grid; place-items: center; }
.page-head-main { display: flex; align-items: center; gap: 1rem; }
.page-logo { width: 80px; height: 80px; border-radius: 50%; background: var(--surface); padding: 4px; box-shadow: 0 0 0 2px var(--gold), var(--shadow-s); object-fit: contain; }
.page-title { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); letter-spacing: -.02em; color: var(--teal-deep); text-wrap: balance; }
.page-short { color: var(--muted); font-weight: 500; margin-top: .15rem; }
.page-lede { margin-top: 1rem; max-width: 70ch; color: var(--muted); }
.page-actions { margin-top: 1.1rem; }
@media (min-width: 640px) { .page-lede { text-align: justify; hyphens: auto; } }
@media (max-width: 420px) { .page-logo { width: 64px; height: 64px; } }

.page { padding-block: clamp(1.4rem, 4vw, 2.2rem) clamp(2.5rem, 6vw, 4rem); }
.banner { margin: 0 0 clamp(2rem, 5vw, 3rem); }
.banner img { width: 100%; border-radius: var(--r-l); box-shadow: var(--shadow-s); }
@media (min-width: 900px) { .banner img { aspect-ratio: 2 / 1; object-fit: cover; object-position: center 70%; } }   /* a bit shorter on wide screens */
.section { margin-top: clamp(2.2rem, 5vw, 3.2rem); }
.banner + .section { margin-top: 0; }
.section.is-draft { outline: 2px dashed #d39c00; outline-offset: 12px; border-radius: 6px; }
.draft-flag { display: inline-block; margin-bottom: .8rem; padding: .2rem .7rem; border-radius: 999px; background: var(--gold-tint); color: var(--gold-ink); font-size: .8rem; font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-s); }
.prose { padding: 1.3rem 1.4rem; display: grid; gap: .8rem; max-width: 75ch; }
.prose ul { padding-left: 1.2rem; display: grid; gap: .35rem; }
.note { color: var(--muted); font-size: .9rem; margin: -.4rem 0 1rem; }

/* ===== Section: vision and mission ===== */
.vm-grid { display: grid; gap: 1rem; }
@media (min-width: 760px) { .vm-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.vm-card { border-radius: var(--r-m); padding: 1.4rem 1.5rem; }
.vm-card h3 { font-size: 1rem; margin-bottom: .6rem; }
.vm-vision { background: linear-gradient(140deg, var(--teal) 0%, var(--teal-deep) 100%); color: #fff; }
.vm-vision h3 { color: var(--gold); }
.vm-vision p { font-size: 1.12rem; line-height: 1.55; font-weight: 500; }
.vm-mission { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.vm-mission h3 { color: var(--teal); }
.vm-mission ol { padding-left: 1.3rem; display: grid; gap: .45rem; }
.vm-mission li::marker { color: var(--teal); font-weight: 600; }

/* ===== Section: photo cards (divisions, departments): photo fades into deep teal, white text ===== */
.photo-grid { list-style: none; display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.photo-card {
  display: flex; flex-direction: column; background: var(--teal-deep); color: #fff; border-radius: var(--r-m); overflow: hidden;
  box-shadow: var(--shadow-s); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.photo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); }
.pc-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: radial-gradient(120% 90% at 80% 0%, #0b7c7f 0%, var(--teal) 40%, var(--teal-deep) 100%); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.photo-card:hover .pc-media img { transform: scale(1.03); }
.pc-media::after { /* strong enough under the title for 4.5:1 contrast whatever the photo */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 57, 58, 0) 38%, rgba(0, 57, 58, .55) 66%, rgba(0, 57, 58, .92) 88%, #00393a 100%);
}
.no-photo .pc-media { aspect-ratio: 5 / 1; }
.pc-body { position: relative; z-index: 1; margin-top: -3.4rem; padding: 0 1.4rem 1.4rem; display: grid; gap: .55rem; flex: 1; }
.pc-body h3 { font-size: 1.25rem; text-shadow: 0 1px 12px rgba(0, 25, 26, .55); }
.pc-body h3::after { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--gold); margin-top: .5rem; transition: width .3s var(--ease); }
.photo-card:hover .pc-body h3::after { width: 48px; }
.pc-body p { color: rgba(255, 255, 255, .9); font-size: .92rem; }
.roles { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; }
.roles li { font-size: .76rem; font-weight: 500; padding: .12rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); }
.duties { margin-top: .2rem; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: .6rem; }
.duties summary {
  cursor: pointer; font-weight: 500; font-size: .9rem; color: var(--gold); list-style: none; display: inline-flex; align-items: center; gap: .45rem;
  border-radius: 6px; padding: .15rem 0;
}
.duties summary::-webkit-details-marker { display: none; }
.duties summary::before { content: ""; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s var(--ease); }
.duties[open] summary::before { transform: rotate(45deg); }
.duties h4 { font-size: .92rem; color: #fff; margin: .9rem 0 .35rem; }
.duties ul { padding-left: 1.1rem; display: grid; gap: .3rem; font-size: .86rem; color: rgba(255, 255, 255, .88); }
.duties li::marker { color: var(--gold); }

/* ===== Section: programs ===== */
.program-grid { list-style: none; display: grid; gap: .9rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.program-card {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--r-s);
  padding: 1.15rem 1.3rem; box-shadow: var(--shadow-s); display: flex; flex-direction: column; gap: .4rem;
}
.program-card h3 { font-size: 1.05rem; }
.program-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.program-card .btn-row { margin-top: .5rem; }

/* ===== Section: Nobel Societies ===== */
.day-jump { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.2rem; }
.day-jump a { padding: .38rem .9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); font-size: .85rem; font-weight: 500; text-decoration: none; }
.day-jump a:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }
.soc-day + .soc-day { margin-top: 1.8rem; }
.day-title { font-size: 1.05rem; display: flex; align-items: center; gap: .55rem; margin-bottom: .8rem; color: var(--teal-deep); }
.soc-grid { list-style: none; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); }
.soc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-s); display: flex; flex-direction: column; gap: .6rem; }
.soc-card h4 { font-size: 1.05rem; line-height: 1.3; }
.soc-meta { list-style: none; display: grid; gap: .3rem; font-size: .86rem; font-variant-numeric: tabular-nums; }
.soc-meta li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: .5rem; align-items: start; }
.soc-meta svg { width: 1.1rem; height: 1.1rem; margin-top: .14rem; fill: none; stroke: var(--teal); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.soc-card p { color: var(--muted); font-size: .9rem; flex: 1; }
.soc-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; padding-top: .7rem; border-top: 1px solid var(--line); }
.tag { display: inline-block; font-size: .76rem; font-weight: 500; padding: .12rem .6rem; border-radius: 999px; background: var(--gold-tint); color: var(--gold-ink); }
.tag-open { background: var(--teal-mist); color: var(--teal-deep); }
.soc-ig { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; font-weight: 500; text-decoration: none; max-width: 100%; }
.soc-ig span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-ig svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ===== Section: businesses (SAPA Mart, The Den) ===== */
.biz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-s); padding: clamp(1.1rem, 3vw, 1.8rem); }
.biz + .biz { margin-top: 1.2rem; }
.biz-top { display: grid; gap: 1.2rem; align-items: start; }
@media (min-width: 760px) { .biz-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.8rem; } }
.biz-text { display: grid; gap: .7rem; }
.biz-text h3 { font-size: 1.3rem; color: var(--teal-deep); }
.biz-text p { color: var(--muted); }
.biz-photo img { width: 100%; border-radius: var(--r-s); aspect-ratio: 3 / 2; object-fit: cover; }
.sub-title { margin: 1.5rem 0 .8rem; font-size: 1rem; }
.div-list { display: grid; gap: .7rem; margin: 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .div-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.div-list > div { padding: .95rem 1.1rem; background: var(--page); border: 1px solid var(--line); border-radius: var(--r-s); }
.div-list dt { font-weight: 600; margin-bottom: .25rem; }
.div-list dd { margin: 0; color: var(--muted); font-size: .9rem; }

/* ===== Section: organizational structure ===== */
.structure { margin: 0; padding: 1rem; }
.structure figcaption { color: var(--muted); font-size: .9rem; margin-top: .8rem; }

/* ===== Regeneration band (navy into teal, gold button) ===== */
.regen-band {
  position: relative; overflow: hidden; margin-top: clamp(2.2rem, 6vw, 3.5rem); border-radius: var(--r-l); color: #fff;
  background: linear-gradient(120deg, var(--navy) 0%, #14476f 45%, var(--teal) 100%); box-shadow: var(--shadow);
}
.regen-band::before { /* faint isometric grid, a nod to the SL monogram's construction */
  content: ""; position: absolute; inset: 0; opacity: .1; pointer-events: none;
  background-image: linear-gradient(30deg, #fff 1px, transparent 1px), linear-gradient(150deg, #fff 1px, transparent 1px);
  background-size: 34px 20px; mask-image: linear-gradient(90deg, transparent 30%, #000 100%); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
.regen-inner { position: relative; display: grid; gap: 1.2rem; padding: clamp(1.4rem, 4vw, 2.2rem); align-items: center; }
@media (min-width: 760px) { .regen-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; } }
.regen-chip { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; padding: .2rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); }
.regen-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.regen-band[data-status="open"] .regen-dot { animation: pulse-gold 2s infinite; }
.regen-band[data-status="closed"] .regen-dot { background: #b8c7c6; }
.regen-band h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); margin-top: .7rem; }
.regen-text p:last-child { margin-top: .5rem; color: rgba(255, 255, 255, .88); max-width: 62ch; }
.regen-terms { color: #fff; font-weight: 500; white-space: nowrap; }
.regen-inner .btn { justify-content: center; text-align: center; }
.regen-action { display: grid; gap: .45rem; justify-items: center; }
.btn.is-disabled { background: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .82) !important; box-shadow: none; cursor: not-allowed; }
.regen-soon { font-size: .82rem; font-weight: 500; color: rgba(255, 255, 255, .85); }
@media (max-width: 759px) { .regen-action { justify-items: stretch; text-align: center; } }
.regen-top .regen-band { margin-top: clamp(1rem, 3vw, 1.6rem); }   /* home page: the banner opens the page */
.regen-top + .hero { padding-top: clamp(1.4rem, 4vw, 2.4rem); }

/* ===== Organization pages: links to the other organizations ===== */
.other-orgs { margin-top: clamp(2.2rem, 5vw, 3rem); }
.other-orgs .section-title { margin-bottom: 1rem; font-size: 1.1rem; }
.other-orgs ul { list-style: none; display: grid; gap: .7rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .other-orgs ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.other-orgs a {
  display: flex; align-items: center; gap: .8rem; padding: .7rem .95rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  color: var(--ink); text-decoration: none; font-weight: 500; box-shadow: var(--shadow-s); transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.other-orgs a:hover { border-color: var(--teal); transform: translateY(-2px); color: var(--teal); }
.other-orgs a span { flex: 1; }
.other-orgs svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--teal); }
.mini-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; background: var(--surface); box-shadow: 0 0 0 1.5px var(--gold); padding: 2px; }

/* ===== 404 ===== */
.not-found .wrap { padding-block: clamp(2.5rem, 8vw, 5rem); }
.nf-orgs { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 1.6rem; font-weight: 500; }

/* ===== Footer ===== */
.site-footer { margin-top: clamp(2.5rem, 6vw, 4rem); background: var(--teal-deep); color: rgba(255, 255, 255, .85); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-inner { display: grid; gap: 1.8rem; padding-block: clamp(2rem, 5vw, 3rem) 1.6rem; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.brand-pair.is-white .brand-divider { background: rgba(255, 255, 255, .35); }
.brand-pair.is-white .uph-logo { height: 56px; }
.brand-pair.is-white .lockup { height: 48px; }
.footer-brand p { margin-top: .8rem; font-size: .9rem; max-width: 46ch; }
.footer-links ul { list-style: none; display: grid; gap: .55rem; font-size: .92rem; }
@media (min-width: 760px) { .footer-links ul { justify-items: start; } }
.footer-links a { display: inline-flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; overflow-wrap: anywhere; border-radius: 8px; }
.footer-links a:hover span:last-child { text-decoration: underline; text-underline-offset: .18em; }
.f-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: var(--gold); transition: background-color .2s var(--ease); }
.footer-links a:hover .f-icon { background: rgba(255, 255, 255, .18); }
.f-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-footer a { color: #fff; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 1rem 1.3rem; font-size: .82rem; color: rgba(255, 255, 255, .7); }

/* ===== Motion (short, and none when the device asks for less) ===== */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 95, 97, .5); } 70% { box-shadow: 0 0 0 7px rgba(0, 95, 97, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 95, 97, 0); } }
@keyframes pulse-gold { 0% { box-shadow: 0 0 0 0 rgba(254, 190, 0, .6); } 70% { box-shadow: 0 0 0 8px rgba(254, 190, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(254, 190, 0, 0); } }
.hero-text, .hero-photo, .org-card, .page-head .wrap > *, .banner { animation: rise .55s var(--ease) backwards; }
.hero-photo { animation-delay: .08s; }
.org-card:nth-child(2) { animation-delay: .06s; } .org-card:nth-child(3) { animation-delay: .12s; } .org-card:nth-child(4) { animation-delay: .18s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
