/* =========================================================
   PCDA website – core styles (shared by every page)
   Navy ink + warm gold + logo dot colours, Plus Jakarta Sans
   ========================================================= */
:root {
  --ink: #13213C;
  --ink-deep: #0F1B33;
  --ink-2: #1B2D52;
  --text: #4A5568;
  --muted: #5F6B7A;
  --line: #E6E9EF;
  --line-soft: #EEF0F4;
  --ground: #F6F1E9;
  --surface: #FFFFFF;
  --soft: #F6F7FA;
  --gold: #E0B25E;
  --gold-ink: #8C6519;
  --gold-soft: #FFF7E8;
  --red: #E63946;   --red-ink: #B3202D;  --red-soft: #FDECEE;
  --green: #2BB673; --green-ink: #167A4A; --green-soft: #E5F6EE;
  --blue: #3B82F6;  --blue-ink: #1F5FC4;  --blue-soft: #E6F0FE;
  --pink: #F28AB2;  --pink-ink: #8E3363;  --pink-soft: #F5E8F0;
  --yellow: #F2B705; --yellow-ink: #7A5200; --yellow-soft: #FFF4D6;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px rgba(19, 33, 60, .08);
  --shadow-lift: 0 24px 48px rgba(19, 33, 60, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 88px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--ground);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; color: var(--ink); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { flex: none; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.wrap-narrow { max-width: 860px; }
main { position: relative; z-index: 1; display: block; }
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 72px) 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(24px, 4vw, 56px); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* ---------- type helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.on-dark .eyebrow, .eyebrow.light { color: var(--gold); }
.h-display { font-size: clamp(38px, 6vw, 72px); line-height: 1.03; }
.h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.05; }
.h2 { font-size: clamp(30px, 4vw, 46px); }
.h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; color: var(--text); }
.on-dark .lead { color: #C9D1DE; }
.muted { color: var(--muted); }
.text-gold { color: var(--gold); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.prose { color: var(--text); font-size: 17px; line-height: 1.8; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin-top: 1.6em; line-height: 1.25; }
.prose h2 { font-size: 26px; } .prose h3 { font-size: 21px; } .prose h4 { font-size: 18px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose a { color: var(--blue-ink); font-weight: 600; }
.prose img { border-radius: 16px; margin: 1.4em 0; }
.prose blockquote { margin: 1.4em 0; padding: 18px 22px; border-radius: 16px; background: var(--gold-soft); color: var(--ink); }
.prose strong { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s, color .25s, border-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn-lg { min-height: 56px; padding: 17px 32px; font-size: 16px; }
.btn-sm { min-height: 44px; padding: 11px 20px; font-size: 14px; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { color: var(--ink); box-shadow: 0 14px 30px rgba(224, 178, 94, .4); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { color: #fff; box-shadow: 0 14px 30px rgba(19, 33, 60, .28); }
.btn-line { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-line:hover { color: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .08); border-color: #fff; }
.btn-soft { background: var(--gold-soft); color: var(--ink); }
.btn-soft:hover { color: var(--ink); background: #FDEFD3; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.link-arrow .ic { transition: transform .3s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- animated background network ---------- */
.bgnet { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(230, 233, 239, .8); transition: box-shadow .3s, transform .4s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(19, 33, 60, .07); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.wrap.header-row { max-width: 1300px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 21px; font-weight: 800; color: var(--ink); }
.brand-text small { font-size: 14px; font-weight: 500; color: var(--muted); }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: #93A0B5; }
.brand-badge { background: #fff; border-radius: 14px; padding: 6px; display: flex; }
.brand-badge img { width: 40px; height: 40px; }

.nav { display: flex; align-items: center; gap: 22px; }
.nl, .login-link { white-space: nowrap; }
.nl {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 12px 2px;
  font-weight: 600; font-size: 17px; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; border-radius: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nl:hover { color: var(--ink); }
.nl:hover::after, .nl.on::after, .nl[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left; }
.nl .ic-chev { transition: transform .3s var(--ease); }
.nl[aria-expanded="true"] .ic-chev { transform: rotate(180deg); }
.dd { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 420px; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 20px; padding: 10px;
  box-shadow: 0 24px 60px rgba(19, 33, 60, .16); display: flex; flex-direction: column;
  animation: drop .3s var(--ease) both;
}
.mega[hidden] { display: none; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -8px) scale(.98); } to { opacity: 1; transform: translate(-50%, 0); } }
.mi { display: flex; align-items: flex-start; gap: 14px; padding: 12px; border-radius: 14px; text-decoration: none; color: var(--ink); transition: background .2s; }
.mi:hover { background: var(--soft); color: var(--ink); }
.mi-tx { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mi-tx strong { font-size: 15px; }
.mi-tx small { font-size: 13px; color: var(--muted); line-height: 1.45; }
.mi > .ic-arrow { margin-top: 4px; color: var(--gold-ink); opacity: 0; transform: translateX(-4px); transition: all .25s var(--ease); }
.mi:hover > .ic-arrow { opacity: 1; transform: none; }
.mi-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.tone-gold { background: var(--yellow-soft); color: var(--yellow-ink); }
.tone-green { background: var(--green-soft); color: var(--green-ink); }
.tone-blue { background: var(--blue-soft); color: var(--blue-ink); }
.tone-red { background: var(--red-soft); color: var(--red-ink); }
.tone-pink { background: var(--pink-soft); color: var(--pink-ink); }
.tone-navy { background: var(--line-soft); color: var(--ink); }

.header-cta { display: flex; align-items: center; gap: 14px; flex: none; }
.login-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 6px; font-weight: 700; font-size: 16px; text-decoration: none; }
.header-cta .btn-sm { min-height: 50px; padding: 13px 24px; font-size: 16px; }
.login-link.on { color: var(--gold-ink); }

.burger {
  display: none; width: 48px; height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; padding: 0;
}
.burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer { border-top: 1px solid var(--line-soft); background: var(--surface); max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
.drawer[hidden] { display: none; }
.drawer-inner { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 28px; }
.dl { display: block; padding: 15px 4px; font-weight: 700; font-size: 18px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-soft); margin: 0; }
.dl-head { border-bottom: 0; padding-bottom: 6px; color: var(--muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.dsub { display: flex; align-items: center; gap: 12px; padding: 9px 4px; font-weight: 600; font-size: 16px; text-decoration: none; color: var(--ink); }
.dsub .mi-ic { width: 36px; height: 36px; border-radius: 10px; }
.drawer-cta { display: grid; gap: 10px; margin-top: 22px; }
.drawer-cta .btn { width: 100%; }
@media (max-width: 1300px) { .brand-text small { display: none; } }
@media (max-width: 1140px) {
  :root { --header-h: 76px; }
  .desk { display: none !important; }
  .burger { display: flex; }
  .brand img { width: 50px; height: 50px; }
  .brand-text strong { font-size: 19px; }
}
@media (max-width: 400px) { .brand img { width: 42px; height: 42px; } }

/* ---------- hero (plain navy, no network) ---------- */
.hero { position: relative; background: var(--ink-deep); color: #fff; overflow: hidden; isolation: isolate; }
.hero h1, .hero h2 { color: #fff; }
.hero-inner { position: relative; padding-top: clamp(80px, 12vw, 140px); padding-bottom: clamp(88px, 12vw, 150px); }
.hero-copy { max-width: 760px; display: flex; flex-direction: column; gap: 26px; }
.hero .lead { color: #C9D1DE; max-width: 600px; }
.hero-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); opacity: .35; pointer-events: none; }
.hero-sm .hero-inner { padding-top: clamp(64px, 9vw, 104px); padding-bottom: clamp(64px, 9vw, 104px); }
.on-dark { color: #fff; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); }
.lift { transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; will-change: transform; }
@media (hover: hover) { .lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); } }
.ic-tile { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.chip-gold { background: rgba(224, 178, 94, .16); color: var(--gold-ink); }
.chip-dark { background: rgba(224, 178, 94, .18); color: var(--gold); }
.chip-soft { background: var(--soft); color: var(--muted); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .field-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.field .opt { color: var(--muted); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border: 1.5px solid #D9DEE7; border-radius: var(--radius-sm);
  background: var(--surface); font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2313213C' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: #C8963E; box-shadow: 0 0 0 4px rgba(224, 178, 94, .22); }
.input::placeholder, .textarea::placeholder { color: #8A94A3; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--red-ink); }
.field-error { font-size: 13px; font-weight: 600; color: var(--red-ink); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--text); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 15px; line-height: 1.55; }
.notice-error { background: var(--red-soft); color: var(--red-ink); }
.notice-ok { background: var(--green-soft); color: var(--green-ink); }
.notice-info { background: var(--blue-soft); color: var(--blue-ink); }
.notice:empty { display: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: 1; background: var(--ink-deep); color: #C9D1DE; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-top: 72px; padding-bottom: 40px; }
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.7; max-width: 340px; color: #93A0B5; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-h { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.footer-col a { color: #C9D1DE; text-decoration: none; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; width: fit-content; }
.footer-col a:hover { color: #fff; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: max(28px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #93A0B5; }
.footer-base a { color: #C9D1DE; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 56px; } }

/* ---------- motion: elements revealed by site.js (only when JS + motion allowed) ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal-scale { opacity: 0; transform: scale(.94); }
.js .reveal-scale.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.split-line { display: block; overflow: hidden; padding-bottom: .06em; }
.split-line > span { display: inline-block; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-scale { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- misc ---------- */
.badge-date { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; color: var(--ink); border-radius: 14px; padding: 8px 12px; line-height: 1.05; box-shadow: 0 8px 20px rgba(19, 33, 60, .12); }
.badge-date b { font-size: 11px; letter-spacing: .14em; color: var(--red-ink); }
.badge-date span { font-size: 20px; font-weight: 800; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0; z-index: 90; background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); transition: all .4s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.toast-error { background: var(--red-ink); }

/* ---------- signed-in header (member / staff) ---------- */
.user-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink); transition: border-color .25s, box-shadow .25s; }
.user-chip:hover, .user-chip[aria-expanded="true"] { border-color: var(--ink); box-shadow: 0 8px 20px rgba(19, 33, 60, .08); }
.user-chip .ic-chev { transition: transform .3s var(--ease); }
.user-chip[aria-expanded="true"] .ic-chev { transform: rotate(180deg); }
.user-av { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; letter-spacing: .02em; flex: none; }
.user-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mega.mega-sm { left: auto; right: 0; width: 290px; transform: none; animation: dropsm .3s var(--ease) both; }
@keyframes dropsm { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.mi-btn { width: 100%; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; align-items: center; }
.drawer-hi { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-weight: 700; color: var(--ink); }
