/* vietnamese */
@font-face {
  font-family: 'Dancing Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/original/original-0.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Dancing Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/original/original-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Dancing Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/original/original-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Fjalla One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/original/original-3.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* vietnamese */
@font-face {
  font-family: 'Fjalla One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/original/original-4.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Fjalla One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/original/original-5.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fjalla One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/original/original-6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/original/original-7.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/original/original-8.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/original/original-9.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/original/original-10.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/original/original-11.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/original/original-12.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/original/original-13.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/original/original-14.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/original/original-15.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ACS Student Chapter, GSTU — site theme, following acs.org: violet #412bfd, aqua #6fedee,
   charcoal #251f20, book-weight geometric type, pill buttons, thin-bordered cards and circular arrows. */
:root {
  --blue: #412bfd;
  --blue-2: #056bf3;
  --blue-deep: #2f1fd1;
  --aqua: #6fedee;
  --aqua-2: #08e8de;
  --aqua-soft: #c1f5f5;
  --yellow: #f8cd31;
  --ink: #251f20;
  --text: #251f20;
  --muted: #5c5658;
  --grey: #707070;
  --lavender: #eceefb;
  --mist: #f5f5f7;
  --line: #e4e4ea;
  --charcoal: #251f20;
  --radius: 24px;
  --radius-sm: 14px;
  --gradient: linear-gradient(90deg, var(--blue-2) 0%, var(--blue) 80%);
  --gradient-hero: linear-gradient(120deg, #2f6df6 0%, #412bfd 45%, #5a2bfd 100%);
  --gradient-aqua: linear-gradient(81deg, var(--aqua-soft) 16%, var(--aqua) 52%, var(--aqua-2) 89%);
  --header-h: 76px;
  --wrap: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 16px/1.6 Poppins, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: 21px; font-weight: 500; }
strong, b { font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--aqua-2); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.eyebrow { display: block; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--blue); margin-bottom: 12px; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); }

/* ------------------------------------------------------------ buttons */
.btn, .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 9990px; border: 1.5px solid transparent; font: 500 15px/1.2 Poppins, sans-serif; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn-primary, .button { background: var(--blue); color: #fff; }
.btn-primary:hover, .button:hover { background: var(--blue-deep); color: #fff; }
.btn-dark { background: var(--charcoal); color: #ededed; }
.btn-dark:hover { background: #000; color: #fff; }
.button.secondary, .btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.button.secondary:hover, .btn-outline:hover { background: var(--lavender); }
.btn-aqua { background: var(--aqua); color: var(--charcoal); }
.btn-aqua:hover { background: #9af4f4; }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: var(--lavender); }
.btn-ghost { color: #fff; border-color: rgb(255 255 255 / 70%); background: transparent; }
.btn-ghost:hover { background: rgb(255 255 255 / 14%); }
.play { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.arrow-circle { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--blue); color: var(--blue); font-size: 17px; line-height: 1; transition: background .2s, color .2s; }
a:hover .arrow-circle, .arrow-circle:hover { background: var(--blue); color: #fff; }
@media (prefers-reduced-motion: reduce) { .btn, .button, .arrow-circle { transition: none; } }

/* ------------------------------------------------------------ header (white, as on acs.org) */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: #fff; border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgb(37 31 32 / 6%); }
.header-row { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 190px; height: auto; display: block; }
.brand .brand-white { display: none; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.main-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav ul a { display: block; padding: 8px 12px; border-radius: 9990px; color: var(--ink); font-size: 14.5px; text-decoration: none; transition: color .2s, background .2s; }
.main-nav ul a:hover { color: var(--blue); background: var(--mist); }
.main-nav ul a[aria-current='page'] { color: var(--blue); font-weight: 500; background: var(--lavender); }
.nav-cta { min-height: 40px; padding: 0 20px; font-size: 14px; background: var(--charcoal); color: #ededed; }
.nav-cta:hover { background: #000; color: #fff; }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--mist); cursor: pointer; place-items: center; }
.bars { display: grid; gap: 5px; width: 20px; }
.bars span { height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
.bars.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bars.open span:nth-child(2) { opacity: 0; }
.bars.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1100px) {
  .menu-toggle { display: grid; }
  .brand img { width: 164px; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 22px; padding: 24px 20px 40px; background: #fff; overflow-y: auto; transform: translateY(-10px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
  .main-nav.active { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { font-size: 22px; padding: 16px 6px; border-radius: 0; border-bottom: 1px solid var(--line); background: none !important; }
  .main-nav ul a[aria-current='page'] { color: var(--blue); }
  .nav-cta { align-self: flex-start; min-height: 48px; font-size: 15px; }
  body.menu-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .main-nav, .bars span, .site-header { transition: none; } }

/* ------------------------------------------------------------ hero: violet gradient and doodle, with optional uploaded slides */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--gradient-hero); min-height: min(880px, calc(100svh - var(--header-h))); display: flex; align-items: center; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(60% 70% at 50% 45%, rgb(255 255 255 / 10%), transparent 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: 0; background: url(../images/brand/hero-texture.svg) center / 1250px auto; opacity: .06; pointer-events: none; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.hero-slides img.active { opacity: 1; }
/* Uploaded slides sit under a soft shade so the headline stays readable. */
.hero.has-slides::before { background: radial-gradient(55% 65% at 50% 50%, rgb(37 31 32 / 45%), rgb(37 31 32 / 15%) 75%); }
@media (prefers-reduced-motion: reduce) { .hero-slides img { transition: none; } }

.hero-content { position: relative; z-index: 2; text-align: center; padding: 72px 0 110px; max-width: 760px; }
.hero .tagline h6 { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 16px; border-radius: 9990px; background: rgb(255 255 255 / 14%); font: 500 13px/1.2 Poppins, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.hero h1 { color: #fff; font-size: clamp(52px, 8.6vw, 112px); line-height: .98; font-weight: 500; letter-spacing: -0.035em; margin: 0 0 22px; }
.hero h1 span { color: var(--aqua); }
.hero-lead { font-size: clamp(16px, 1.6vw, 19px); color: rgb(255 255 255 / 90%); margin: 0 auto 30px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-bottom: 28px; }
.hero .open-events { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; flex-basis: 100%; }
.hero .open-events[hidden] { display: none; }
.hero-registration-member { background: linear-gradient(110deg, #f8cd31 15%, #fff1b8 45%, #f8cd31 75%); background-size: 220% 100%; }
.hero-registration-member:hover, .hero-registration-member:focus-visible { background: #fff1b8; }
.hero .slide-btn { margin: 0 0 30px; }
.slide-btn a { display: inline-flex; align-items: center; gap: 10px; color: rgb(255 255 255 / 88%); text-decoration: none; font-size: 14px; }
.slide-btn b { font-weight: 400; }
.uni-dot { width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--aqua); }
.hero-controls { position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 9990px; background: rgb(255 255 255 / 14%); }
.hero-controls[hidden] { display: none; }
.hero-controls button { min-width: 36px; height: 36px; padding: 0 12px; border: 0; border-radius: 9990px; background: transparent; color: #fff; font: 500 13px Poppins, sans-serif; cursor: pointer; }
.hero-controls button:hover { background: #fff; color: var(--blue); }
.hero-controls span { color: #fff; font-size: 12.5px; padding: 0 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Registration pill: aqua with a contained colour sweep and a moving arrow. */
.hero-registration { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 26px; border-radius: 9990px; background: linear-gradient(110deg, #52e4ce 15%, #c4fff1 45%, #52e4ce 75%); background-size: 220% 100%; color: var(--charcoal); font: 500 15px/1.2 Poppins, sans-serif; text-decoration: none; overflow: hidden; animation: registration-sweep 1.8s ease-in-out infinite alternate; }
.hero-registration:hover, .hero-registration:focus-visible { animation: none; background: #c4fff1; color: var(--charcoal); }
.registration-arrow { display: inline-block; animation: registration-arrow 1.2s ease-in-out infinite; }
@keyframes registration-sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes registration-arrow { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .hero-registration, .registration-arrow { animation: none; } }

@media (min-width: 1200px) {
  .hero-content { max-width: 1040px; }
  .hero .tagline h6 { font-size: 15px; padding: 9px 20px; margin-bottom: 28px; }
  .hero h1 { font-size: clamp(112px, 9.6vw, 176px); margin-bottom: 30px; }
  .hero .slide-btn { margin-bottom: 38px; }
  .slide-btn a { font-size: 17px; }
  .hero-actions { gap: 16px; }
  .hero-actions .btn, .hero-registration { min-height: 58px; padding: 0 34px; font-size: 17px; }
}
@media (max-width: 760px) {
  .hero { display: block; min-height: 0; }
  .hero-content { padding: 64px 0 104px; }
  .hero h1 { font-size: clamp(48px, 15vw, 72px); }
  .hero-actions .btn, .hero-actions .open-events, .hero-actions .hero-registration { width: 100%; }
}

/* ------------------------------------------------------------ homepage sections */
section { position: relative; }
.intro, .pillars, .highlights, .vision, .contact, .story { padding: clamp(64px, 8vw, 112px) 0; }
.intro, .highlights, .inner-page main { background-color: #fff; background-image: url(../images/brand/site-texture.svg); background-size: 1250px auto; }

/* Bento of chapter facts (dark, violet, aqua, white — as on acs.org). */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 28px; }
.stat { border-radius: var(--radius); padding: 26px 24px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.stat:nth-child(1) { background: var(--charcoal); color: #ededed; }
.stat:nth-child(2) { background: var(--blue); color: #fff; }
.stat:nth-child(3) { background: var(--aqua); color: var(--charcoal); }
.stat:nth-child(4) { background: #fff; border: 1.5px solid var(--line); }
.stat strong { display: block; font-size: clamp(36px, 4vw, 48px); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.stat span { font-size: 14.5px; line-height: 1.45; display: block; opacity: .9; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat { min-height: 128px; } }

.intro-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.intro-text .btn { margin-top: 8px; }
.feature-list { display: grid; }
.feature { display: flex; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.feature:first-child { border-top: 1px solid var(--line); }
.feature-num { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--blue); color: var(--blue); font-weight: 500; font-size: 14px; }
.feature h3 { margin-bottom: 2px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } }

.section-head { max-width: 760px; margin-bottom: 40px; }
.row-head { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.row-head h2 { margin: 0; }
.pillars { background: var(--mist); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { background: #fff; border-radius: var(--radius); padding: 30px 28px; border: 1.5px solid var(--line); transition: border-color .25s; }
.pillar:hover { border-color: var(--blue); }
.pillar-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--lavender); margin-bottom: 18px; }
.pillar-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-size: 24px; margin-bottom: 6px; }
.pillar p { color: var(--muted); }
.pillar ul, .check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pillar li, .check-list li { position: relative; padding-left: 26px; }
.pillar li::before, .check-list li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
@media (max-width: 900px) { .pillar-grid { grid-template-columns: 1fr; } }

.highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.highlight-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1.5px solid var(--line); text-decoration: none; color: inherit; transition: border-color .25s; }
.highlight-card:hover { border-color: var(--blue); }
.highlight-media { position: relative; aspect-ratio: 4 / 3; background: #1b1660; }
.highlight-media img, .highlight-media .member-placeholder { width: 100%; height: 100%; object-fit: contain; display: block; }
.highlight-media .chip { position: absolute; left: 14px; top: 14px; }
.highlight-body { padding: 20px 22px 22px; display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: end; }
.highlight-body .event-kind, .highlight-body h3, .highlight-body time { grid-column: 1; }
.highlight-body h3 { margin: 0; font-size: 18px; }
.highlight-body time { color: var(--muted); font-size: 14px; }
.highlight-body .arrow-circle { grid-column: 2; grid-row: 1 / span 3; align-self: end; }
.chip { display: inline-block; padding: 5px 12px; border-radius: 9990px; background: #fff; color: var(--blue); font-size: 12px; font-weight: 500; }
.event-kind { color: var(--blue); font-size: 13px; font-weight: 500; }
@media (max-width: 900px) { .highlight-grid { grid-template-columns: 1fr; } }

/* Membership: a white box with a thin violet border (acs.org "Molecule of the Week" style). */
.work-with-us { padding: clamp(64px, 8vw, 112px) 0; background: #fff; }
.membership-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding: clamp(28px, 4vw, 52px); border: 1.5px solid var(--blue); border-radius: 28px; }
.membership-pitch .lead { color: var(--muted); }
.membership-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }
.membership-notes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; }
.membership-notes li { position: relative; padding-left: 20px; font-size: 15px; color: var(--muted); }
.membership-notes li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--blue); }
.membership-card { background: var(--mist); border-radius: 20px; padding: 28px; }
.home-membership-details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.home-membership-details summary { cursor: pointer; font-weight: 500; color: var(--blue); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.home-membership-details summary::-webkit-details-marker { display: none; }
.home-membership-details summary::after { content: '+'; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--blue); font-size: 18px; transition: transform .2s; }
.home-membership-details[open] summary::after { transform: rotate(45deg); }
.home-membership-details h4 { font-size: 16px; margin: 18px 0 4px; }
.home-membership-details p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .membership-grid { grid-template-columns: 1fr; } }

/* Dark band (acs.org "Powering scientific discovery"). */
.cta-band { padding: 0; background: var(--charcoal); color: #ededed; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(56px, 7vw, 96px) 0; }
.cta-inner h2 { color: #fff; max-width: 720px; margin: 0; font-size: clamp(26px, 3.2vw, 40px); }
.cta-inner p { color: rgb(237 237 237 / 82%); max-width: 720px; margin: 14px 0 0; }
.cta-inner .eyebrow { color: var(--aqua); }

/* ------------------------------------------------------------ inner pages */
.inner-page main { min-height: 60vh; }
.page-hero { position: relative; padding: clamp(56px, 7vw, 96px) 0 clamp(44px, 6vw, 72px); background: var(--gradient-hero); color: #fff; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 50px solid rgb(255 255 255 / 9%); }
.page-hero h1 { color: #fff; font-size: clamp(38px, 5.6vw, 68px); font-weight: 500; margin-bottom: 14px; position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--aqua); }
.page-lead { font-size: clamp(17px, 1.7vw, 20px); color: rgb(255 255 255 / 90%); max-width: 640px; margin: 0; position: relative; z-index: 1; }

.archive, .event-detail { width: min(var(--wrap), 100% - 40px); margin-inline: auto; padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 110px); }
.archive-heading { margin-bottom: 30px; }
.archive-heading h6 { margin: 0 0 10px; color: var(--blue); font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.archive-heading h1 { font-size: clamp(38px, 5.6vw, 68px); font-weight: 500; letter-spacing: -0.035em; margin: 0; color: var(--ink); }
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.category-tabs a { padding: 9px 20px; border-radius: 9990px; background: var(--mist); color: var(--ink); text-decoration: none; font-size: 15px; transition: background .2s, color .2s; }
.category-tabs a:hover { background: var(--lavender); color: var(--blue); }
.category-tabs a[aria-current] { background: var(--blue); color: #fff; }
/* Phones: the four report categories share one compact grid instead of a column of pills. */
@media (max-width: 560px) {
  .category-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .category-tabs a { padding: 9px 12px; font-size: 14px; text-align: center; line-height: 1.3; display: flex; align-items: center; justify-content: center; }
  .category-tabs a:first-child { grid-column: 1 / -1; }
}
.archive-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.archive-meta h2 { font-size: 28px; margin: 0; }
.archive-meta h2 span, .archive-meta > span { color: var(--muted); font-size: 16px; font-weight: 400; }
#editable-content .archive-heading, #editable-content .archive-meta { scroll-margin-top: calc(var(--header-h) + 20px); }

.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.event-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1.5px solid var(--line); color: inherit; text-decoration: none; transition: border-color .25s; }
.event-card:hover, .event-card:focus-visible { border-color: var(--blue); }
.event-card > img, .event-card > .member-placeholder { aspect-ratio: 1; width: 100%; height: auto; object-fit: contain; background: #1b1660; display: block; }
.event-card-overlay { position: relative; padding: 18px 64px 20px 20px; display: grid; gap: 4px; }
.event-card-overlay h2 { font-size: 18px; margin: 0; letter-spacing: -0.01em; }
.event-card-overlay time { color: var(--muted); font-size: 14px; }
.card-arrow { position: absolute; right: 18px; bottom: 18px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--blue); color: var(--blue); transition: background .2s, color .2s; }
.event-card:hover .card-arrow { background: var(--blue); color: #fff; }
.empty-state { padding: 40px; border-radius: var(--radius); background: var(--mist); text-align: center; }
.empty-state h2 { font-size: 22px; }

.year-pagination { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.year-pagination a, .year-pagination > span { padding: 9px 16px; border-radius: 9990px; font-size: 15px; text-decoration: none; color: var(--ink); }
.year-pagination a:hover { background: var(--mist); color: var(--blue); }
.year-pagination a[aria-current] { background: var(--blue); color: #fff; }
.year-pagination > span { color: #a8a3a5; }
@media (max-width: 600px) {
  .year-pagination { flex-wrap: nowrap; overflow-x: auto; justify-content: safe center; scrollbar-width: none; }
  .year-pagination a, .year-pagination > span { flex: none; white-space: nowrap; padding: 9px 13px; font-size: 14px; }
  .year-pagination .pager-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Event detail */
.event-detail .back-link { display: flex; width: fit-content; gap: 6px; text-decoration: none; margin-bottom: 24px; }
.event-detail .eyebrow { color: var(--muted); }
.event-detail h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 500; letter-spacing: -0.03em; max-width: 900px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; margin-top: 28px; }
.detail-image { width: 100%; height: auto; border-radius: var(--radius); background: #1b1660; }
.detail-grid dl { display: grid; grid-template-columns: max-content 1fr; gap: 12px 22px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 20px 0; }
.detail-grid dt { font-weight: 500; color: var(--ink); font-size: 14px; }
.detail-grid dd { margin: 0; color: var(--text); }
.event-status { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--mist); color: var(--ink); }
.event-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } .detail-grid dl { grid-template-columns: 1fr; gap: 2px; } .detail-grid dd { margin-bottom: 10px; } }

/* Team */
.member-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 250px)); justify-content: center; gap: 18px; margin-bottom: 36px; }
.member-card { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1.5px solid var(--line); text-align: center; transition: border-color .25s; }
.member-card:hover { border-color: var(--blue); }
.member-card img, .member-card .member-placeholder { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--lavender); }
.member-card > div { padding: 16px 16px 20px; }
.member-card p { margin: 0 0 2px; color: var(--blue); font-size: 13.5px; font-weight: 500; }
.member-card h2 { margin: 0; font-size: 18px; }
.member-placeholder { display: grid; place-items: center; color: var(--blue); font-weight: 500; font-size: 28px; }
.roster { border-radius: var(--radius); background: #fff; border: 1.5px solid var(--line); overflow: hidden; }
.roster summary { cursor: pointer; list-style: none; padding: 22px 76px 22px 26px; font-weight: 500; font-size: 19px; color: var(--ink); display: flex; flex-direction: column; gap: 2px; position: relative; }
.roster summary::-webkit-details-marker { display: none; }
.roster summary::after { content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--blue); color: var(--blue); font-size: 20px; transition: transform .2s; }
.roster[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.roster summary span { font-size: 14px; font-weight: 400; color: var(--muted); }
.roster-body { padding: 0 26px 26px; }
.roster-body h3 { font-size: 17px; margin: 18px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.roster-body p { color: var(--muted); margin: 0; }
.roster-body ul { columns: 3; column-gap: 32px; padding-left: 18px; margin: 0; }
@media (max-width: 900px) { .roster-body ul { columns: 2; } }
@media (max-width: 560px) { .roster-body ul { columns: 1; } }

/* Our story */
.story { max-width: 860px; }
.story-figure { margin: 36px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.story-heading { margin: 56px 0 8px; font-size: clamp(28px, 3.4vw, 40px); }
.prose .story-heading + blockquote { font-size: 20px; line-height: 1.6; }
.story-figure img { display: block; width: 100%; }
.story-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.story-meta strong { display: block; color: var(--ink); font-weight: 500; }
.story-meta span { color: var(--muted); font-size: 14px; }
.prose p { font-size: 18px; line-height: 1.8; }
.dropcap::first-letter { float: left; font-size: 64px; line-height: .9; font-weight: 500; padding: 6px 12px 0 0; color: var(--blue); }
.prose blockquote { margin: 34px 0; padding: 4px 0 4px 26px; border-left: 4px solid var(--blue); font-size: 23px; font-weight: 400; letter-spacing: -0.01em; color: var(--ink); }
.vision { background: var(--mist); }
.vision-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: start; }
.card { background: #fff; border-radius: var(--radius); padding: 28px; border: 1.5px solid var(--line); font-style: normal; }
.card figure { margin: -28px -28px 22px; }
.card figure img { display: block; width: 100%; }
.card p { color: var(--muted); }
@media (max-width: 860px) { .vision-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 18px; }
.contact-item b { display: block; color: var(--ink); font-size: 18px; font-weight: 500; margin: 14px 0 4px; }
.contact-item p { margin: 0; }
.contact-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--lavender); }
.contact-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: stretch; }
.map-card { border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--line); min-height: 360px; }
.map-card iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
.contact-card { border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); background: var(--charcoal); color: #ededed; display: flex; flex-direction: column; justify-content: center; }
.contact-card h2 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); }
.contact-card p { color: rgb(237 237 237 / 82%); }
.contact-card .btn { align-self: flex-start; }
@media (max-width: 860px) { .contact-cards, .contact-grid { grid-template-columns: 1fr; } }

/* Certificate Center */
.verification-page > p { font-size: 18px; color: var(--muted); max-width: 720px; }
.member-certificate-form { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 16px; align-items: end; padding: 26px; border-radius: var(--radius); background: #fff; border: 1.5px solid var(--blue); }
.member-certificate-form label, .verification-box label { display: grid; gap: 8px; font-weight: 500; color: var(--ink); font-size: 14px; }
.member-certificate-form .editor-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13.5px; }
.verification-page input, .verification-page select { width: 100%; min-height: 50px; padding: 12px 18px; border: 1.5px solid var(--line); border-radius: 9990px; font: 15px Poppins, sans-serif; color: var(--ink); background: var(--mist); }
.verification-page input:focus, .verification-page select:focus { outline: none; border-color: var(--blue); background: #fff; }
#catalog-status:not(:empty) { margin-top: 14px; color: var(--muted); }
.credential-id-option { margin: 22px 0; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--mist); }
.credential-id-option summary { cursor: pointer; font-weight: 500; color: var(--ink); }
.verification-box { display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; align-items: end; margin-top: 16px; }
.verification-box label { grid-column: 1 / -1; }
.certificate-match { display: block; width: 100%; text-align: left; padding: 16px 20px; margin: 10px 0; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: #fff; font: 500 15px/1.5 Poppins, sans-serif; color: var(--ink); cursor: pointer; }
.certificate-match:hover { border-color: var(--blue); }
@media (max-width: 860px) { .member-certificate-form { grid-template-columns: 1fr; } .verification-box { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ footer */
.site-footer { position: relative; overflow: hidden; color: rgb(237 237 237 / 78%); background: var(--charcoal); padding: clamp(56px, 7vw, 88px) 0 28px; }
.footer-orbit { display: none; }
.site-footer .wrap { position: relative; }
.footer-top { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: clamp(32px, 6vw, 80px); padding-bottom: 40px; border-bottom: 1px solid rgb(255 255 255 / 12%); }
.acs-footer-lockup { width: 260px; height: auto; display: block; margin-bottom: 24px; }
.footer-brand h2 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 24px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h3 { color: #fff; font-size: 15px; font-weight: 500; margin-bottom: 14px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-cols a { color: rgb(237 237 237 / 78%); text-decoration: none; }
.footer-cols a:hover { color: var(--aqua); }
.footer-cols address { font-style: normal; margin-bottom: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgb(237 237 237 / 78%); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------ motion and notices */
.reveal-pending { opacity: 0; transform: translateY(24px); }
.reveal-in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { .reveal-pending { opacity: 1; transform: none; } .reveal-in, .pillar, .event-card, .highlight-card, .member-card { transition: none; } }
.content-update-notice { position: fixed; z-index: 200; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 20px; border-radius: 9990px; background: var(--charcoal); color: #fff; max-width: calc(100% - 32px); }
.content-update-notice .button { min-height: 40px; padding: 0 18px; white-space: nowrap; flex: none; }
.content-update-notice span { min-width: 0; line-height: 1.35; }
@media (max-width: 600px) { .content-update-notice { left: 16px; right: 16px; bottom: 16px; transform: none; max-width: none; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 16px; font-size: 15px; } }

/* ------------------------------------------------------------ website forms (form.html) */
.form-page { padding: clamp(36px, 6vw, 72px) 0 clamp(64px, 8vw, 112px); }
.form-wrap { max-width: 780px; }
.pf { display: grid; gap: 16px; }
.pf-head, .pf-q, .pf-section, .pf-pay, .pf-closed, .pf-done, .pf-loading { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 30px); }
.pf-head { border: 1.5px solid var(--blue); }
.pf-head h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 500; letter-spacing: -0.02em; margin: 4px 0 12px; }
.pf-head p { margin: 0 0 8px; color: var(--muted); }
.pf-head .eyebrow { color: var(--blue); margin: 0; }
.pf-deadline { display: inline-flex; padding: 6px 14px; border-radius: 9990px; background: var(--mist); color: var(--ink) !important; font-size: 14px; margin-top: 6px !important; }
.pf-required-note { font-size: 14px; }
.pf-req { color: #c62828; margin-left: 3px; }
.pf-section { background: var(--ink); border-color: var(--ink); color: #fff; }
.pf-section h2 { color: #fff; font-size: 22px; font-weight: 500; margin: 0; }
.pf-section p { color: rgb(255 255 255 / 75%); margin: 6px 0 0; }
fieldset.pf-q { margin: 0; min-width: 0; }
.pf-q[hidden], .pf-pay[hidden] { display: none; }
.pf-label { display: block; font-weight: 500; font-size: 17px; color: var(--ink); margin: 0 0 4px; padding: 0; }
.pf-help { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.pf-q input:not([type=radio]):not([type=checkbox]), .pf-q select, .pf-q textarea { width: 100%; margin-top: 8px; min-height: 48px; padding: 11px 14px; border: 1px solid #cfcfd8; border-radius: 12px; background: #fff; font: inherit; color: var(--ink); }
.pf-q textarea { resize: vertical; }
.pf-q input:focus, .pf-q select:focus, .pf-q textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(65 43 253 / 16%); }
.pf-q [aria-invalid=true] { border-color: #c62828 !important; }
.pf-options { display: grid; gap: 8px; margin-top: 8px; }
.pf-option { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.pf-option:hover { border-color: var(--blue); }
.pf-option:has(input:checked) { border-color: var(--blue); background: rgb(65 43 253 / 6%); }
.pf-option input[type=radio], .pf-option input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.pf-other input[type=text] { margin: 0 !important; min-height: 38px !important; flex: 1; }
.pf-scale { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.pf-scale-end { font-size: 13px; color: var(--muted); }
.pf-scale-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.pf-scale-step { position: relative; }
.pf-scale-step input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pf-scale-step span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #cfcfd8; font-weight: 500; }
.pf-scale-step input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.pf-scale-step input:focus-visible + span { box-shadow: 0 0 0 3px rgb(65 43 253 / 25%); }
.pf-error { color: #c62828; font-size: 14px; margin: 8px 0 0; }
.pf-pay { border: 1.5px solid var(--blue); display: grid; gap: 14px; }
.pf-pay .pf-q { border: 0; padding: 0; border-radius: 0; }
.pf-pay-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pf-pay-head h2 { margin: 0; font-size: 24px; font-weight: 500; }
.pf-amount { margin: 0; font-size: 22px; font-weight: 600; color: var(--blue); }
.pf-pay-note { margin: 0; color: var(--muted); }
.pf-accounts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pf-account { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--mist); }
.pf-method { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.pf-bkash .pf-method { color: #d1166b; } .pf-nagad .pf-method { color: #e8541e; } .pf-rocket .pf-method { color: #8c3494; }
.pf-number { grid-column: 1; font-size: 19px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; word-break: break-all; }
.pf-account small { grid-column: 1; color: var(--muted); }
.pf-copy { grid-column: 2; grid-row: 1 / span 3; border: 1px solid var(--line); background: #fff; border-radius: 9990px; padding: 7px 14px; font: 500 13px Poppins, sans-serif; cursor: pointer; }
.pf-copy:hover { border-color: var(--blue); color: var(--blue); }
.pf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pf-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 6px; }
.pf-submit .btn { min-width: 180px; }
.pf-status { margin: 0; color: var(--muted); }
.pf-closed { font-size: 18px; text-align: center; }
.pf-done { text-align: center; padding: clamp(36px, 6vw, 64px) 24px; }
.pf-done:focus { outline: none; }
.pf-done-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--aqua); color: var(--ink); font-size: 30px; margin-bottom: 12px; }
.pf-done h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 500; }
.pf-done p { color: var(--muted); max-width: 520px; margin: 0 auto 22px; }
@media (max-width: 560px) { .pf-scale-step span { width: 38px; height: 38px; } .pf-submit .btn { width: 100%; } }
.pf-loading h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 500; margin: 0 0 6px; }

/* ------------------------------------------------------------ form pop-up */
.form-dialog { width: min(820px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: 26px; background: var(--mist); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.form-dialog::backdrop { background: rgb(37 31 32 / 62%); backdrop-filter: blur(3px); }
.form-dialog-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px 12px 22px; background: rgb(245 245 247 / 92%); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.form-dialog-tab { font-size: 14px; }
.form-dialog-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 16px; cursor: pointer; }
.form-dialog-close:hover { border-color: var(--blue); color: var(--blue); }
.form-dialog-body { padding: clamp(14px, 3vw, 26px); }
.form-dialog .pf-done { box-shadow: none; }
html.form-dialog-open { overflow: hidden; }
.event-register { display: grid; gap: 8px; justify-items: start; }
/* Choice questions use a fieldset; its legend sits inside the card instead of on the border. */
fieldset.pf-q > legend.pf-label { float: left; width: 100%; margin-bottom: 6px; }
fieldset.pf-q > legend.pf-label + * { clear: both; }
.pf-done { justify-items: center; }
.pf-done .btn { min-width: 220px; }
.name-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ news (Facebook Page posts) */
.news-strip { padding: clamp(64px, 8vw, 112px) 0; background: var(--mist); }
.news-strip:not(:has(.news-card)) { display: none; }
.news-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
.news-grid-home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.news-card:hover, .news-card:focus-visible { border-color: var(--blue); transform: translateY(-2px); }
/* Every photo gets the same frame; larger or taller photos are cropped to fit. */
.news-media { height: 220px; flex: none; background: var(--mist); overflow: hidden; }
.news-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.news-media-empty { display: grid; place-items: center; background: var(--gradient-hero); }
.news-media-empty span { color: #fff; font-size: 34px; font-weight: 500; letter-spacing: .04em; }
.news-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 20px; flex: 1; }
.news-body time { font-size: 13px; color: var(--blue); font-weight: 500; }
.news-body h3 { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.news-link { margin-top: auto; padding-top: 4px; font-weight: 500; font-size: 14px; color: var(--blue); }
@media (prefers-reduced-motion: reduce) { .news-card { transition: none; } .news-card:hover { transform: none; } }
.news-archive .news-grid { margin-top: 28px; }
@media (max-width: 980px) { .news-grid-home { grid-template-columns: 1fr 1fr; } .news-grid-home .news-card:nth-child(3) { display: none; } }
@media (max-width: 640px) { .news-grid-home { grid-template-columns: 1fr; } .news-grid-home .news-card:nth-child(3) { display: flex; } }

/* Event coverage video (YouTube or Facebook) on the event page. */
.event-video { margin-top: clamp(32px, 5vw, 56px); }
.event-video h2 { margin: 0 0 16px; font-size: clamp(24px, 3vw, 32px); font-weight: 500; }
.event-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.event-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Event photos: equal 4:3 tiles whatever the original shape; the album opens full screen. */
.event-photos { margin-top: clamp(32px, 5vw, 56px); }
.event-photos-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.event-photos-head h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 500; }
.event-photos-head span { color: var(--muted, #666); font-size: 15px; }
.event-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.event-photo { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #e9e9f1; }
.event-photo[hidden] { display: none; }
.event-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.event-photo:hover img, .event-photo:focus-visible img { transform: scale(1.04); }
.event-photo-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 15, 30, .55); color: #fff; font-size: clamp(22px, 3vw, 32px); font-weight: 500; }
@media (max-width: 800px) { .event-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.gallery { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 8, 16, .94); color: #fff; }
.gallery[open] { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; }
.gallery::backdrop { background: rgba(8, 8, 16, .94); }
.gallery figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gallery img { max-width: 100%; max-height: calc(100dvh - 96px); object-fit: contain; border-radius: 8px; }
.gallery figcaption { font-size: 14px; opacity: .8; }
.gallery button { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; justify-self: center; }
.gallery button:hover, .gallery button:focus-visible { background: rgba(255, 255, 255, .25); }
.gallery .gallery-close { position: absolute; top: 16px; right: 16px; }
.gallery-single .gallery-prev, .gallery-single .gallery-next { visibility: hidden; }
@media (max-width: 600px) { .gallery[open] { grid-template-columns: 0 minmax(0, 1fr) 0; } .gallery .gallery-prev, .gallery .gallery-next { position: absolute; bottom: 20px; } .gallery .gallery-prev { left: 20px; } .gallery .gallery-next { right: 20px; } }

/* Certificate verification: a centred result card in the site style, then the certificate */
.credential-valid, .credential-revoked { position: relative; max-width: 760px; margin: 32px auto 24px; padding: 34px clamp(18px, 4vw, 44px) 28px; border-radius: var(--radius); background: #fff; border: 1.5px solid var(--line); text-align: center; overflow: hidden; }
.credential-valid::before, .credential-revoked::before { content: ''; position: absolute; inset: 0 0 auto; height: 6px; background: var(--gradient-aqua); }
.credential-revoked::before { background: #e5544b; }
.credential-revoked h2 { color: #a1251d; font-size: 24px; }
.credential-revoked p { overflow-wrap: anywhere; }
.credential-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 6px 14px; border-radius: 999px; background: #e5f5ee; color: #0f6b43; font-size: 13.5px; font-weight: 600; }
.credential-badge span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #12704a; color: #fff; font-size: 12px; }
.credential-valid h2 { margin: 0 0 18px; font-size: 15px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.credential-name { margin: 0; font-size: clamp(24px, 3.4vw, 32px); font-weight: 600; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.credential-title { margin: 6px 0 22px; font-size: 16px; color: var(--muted); }
.credential-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 auto; text-align: center; }
.credential-facts div { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--mist); }
.credential-facts .credential-id { grid-column: 1 / -1; }
.credential-facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.credential-facts dd { margin: 4px 0 0; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.credential-id dd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; word-break: break-all; }
.certificate-frame { max-width: 960px; margin: 0 auto; padding: 10px; border-radius: var(--radius); background: #fff; border: 1.5px solid var(--line); }
.certificate-frame svg { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
#certificate-display .editor-note { max-width: 640px; margin: 16px auto 0; color: var(--muted); font-size: 14px; text-align: center; }
.credential-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.credential-actions .button { margin: 0; }
.share-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 4px; width: fit-content; max-width: 100%; margin: 16px auto 0; padding: 14px 10px 10px; border-radius: 18px; background: var(--ink, #16133f); }
.share-menu[hidden] { display: none; }
.share-item { display: grid; justify-items: center; align-content: start; gap: 8px; width: 92px; padding: 6px 2px; border: 0; border-radius: 12px; background: none; color: #fff; font: 500 12.5px/1.25 Poppins, sans-serif; text-align: center; text-decoration: none; cursor: pointer; }
.share-item:hover, .share-item:focus-visible { background: rgb(255 255 255 / 8%); outline: none; }
.share-item:focus-visible .share-icon { box-shadow: 0 0 0 3px var(--aqua, #6fedee); }
.share-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgb(255 255 255 / 14%); color: #fff; transition: transform 0.15s; }
.share-item:hover .share-icon { transform: translateY(-2px); }
.share-whatsapp { background: #25d366; }
.share-linkedin, .share-linkedin-profile { background: #0a66c2; }
.share-email { background: #412bfd; }
.share-label { color: rgb(255 255 255 / 88%); }
.share-status:not(:empty) { margin-top: 12px; font-weight: 500; color: #0f6b43; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .share-icon { transition: none; } }
@media (max-width: 640px) {
  .credential-facts { grid-template-columns: 1fr; }
  .certificate-frame { padding: 6px; border-radius: var(--radius-sm); }
  .credential-actions { flex-direction: column; align-items: stretch; }
  .credential-actions .button { width: 100%; justify-content: center; }
  .share-item { width: 76px; font-size: 12px; }
  .share-icon { width: 48px; height: 48px; }
}

/* Home page: attendance open now (after "Become a member"). */
.attendance-now { padding: 40px 0; background: var(--lavender); }
.attendance-now h2 { margin: 0 0 18px; }
.attendance-now-list { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.attendance-now-list div { display: grid; gap: 6px; justify-items: start; }
.attendance-now-list small { color: var(--muted); }
