/* =========================================================
   PCDA public pages (home, skills framework, membership,
   events, articles, level up, 404). Builds on site.css.
   ========================================================= */
[hidden] { display: none !important; }
.pt-0 { padding-top: 0 !important; }
.muted-text { color: var(--text); font-size: 15px; line-height: 1.7; }
.small { font-size: 13px; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- hero with photo stack ---------- */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-split .hero-copy { max-width: 700px; }
.hero-stack { position: relative; height: 460px; }
.stack-card { position: absolute; will-change: transform; }
.sc-inner { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); border: 5px solid rgba(255, 255, 255, .92); background: #fff; }
.sc-inner img { width: 100%; height: 100%; object-fit: cover; }
.sc-1 { width: 74%; aspect-ratio: 4 / 3; right: 0; top: 0; z-index: 2; }
.sc-1 .sc-inner { transform: rotate(3deg); animation: float-a 9s ease-in-out infinite; }
.sc-2 { width: 56%; aspect-ratio: 4 / 3; left: 0; bottom: 18px; z-index: 3; }
.sc-2 .sc-inner { transform: rotate(-5deg); animation: float-b 10s ease-in-out infinite; }
.sc-3 { width: 44%; aspect-ratio: 3 / 2; right: 6%; bottom: -10px; z-index: 1; opacity: .9; }
.sc-3 .sc-inner { transform: rotate(7deg); animation: float-a 11s ease-in-out infinite reverse; }
.sc-inner, .sc-inner img { height: 100%; }
@keyframes float-a { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes float-b { 0%, 100% { translate: 0 0; } 50% { translate: 6px 10px; } }
.stack-dot { position: absolute; border-radius: 50%; z-index: 4; animation: float-a 7s ease-in-out infinite; }
.d-gold { width: 46px; height: 46px; background: var(--gold); left: 8%; top: 6%; }
.d-green { width: 22px; height: 22px; background: var(--green); right: -2%; top: 64%; animation-delay: -2s; }
.d-red { width: 16px; height: 16px; background: var(--red); left: 46%; bottom: -4%; animation-delay: -4s; }
.d-blue { width: 20px; height: 20px; background: var(--blue); right: 2%; bottom: 8%; animation-delay: -3s; }
.hero-stack-2 { height: 400px; }
.hero-stack-2 .sc-1 { width: 78%; }
.hero-stack-2 .sc-2 { width: 60%; bottom: 0; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 28px; height: 44px; margin-left: -14px; border: 2px solid rgba(255, 255, 255, .45); border-radius: 16px; display: flex; justify-content: center; padding-top: 8px; }
.scroll-cue span { width: 4px; height: 8px; border-radius: 4px; background: var(--gold); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-stack { height: 300px; max-width: 520px; width: 100%; margin: 4px auto 0; }
  .hero-stack-2 { height: 280px; }
  .scroll-cue { display: none; }
}
@media (max-width: 480px) { .hero-stack { height: 240px; } .hero-stack-2 { height: 230px; } .sc-inner { border-width: 4px; border-radius: 16px; } }
.hero .row .btn { flex: 0 1 auto; }
@media (max-width: 480px) { .hero .row { flex-direction: column; align-items: stretch; } .hero .row .btn { width: 100%; } }

/* ---------- home: about ---------- */
.about-grid { align-items: start; }
.about-copy { gap: 20px; }
.about-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.about-stats div { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px; padding: 18px 16px; display: flex; flex-direction: column; gap: 2px; }
.about-stats strong { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.about-stats span { font-size: 13px; color: var(--muted); font-weight: 600; line-height: 1.35; }
.vm-cards { gap: 20px; }
.vm-card { display: flex; flex-direction: column; gap: 12px; }
.vm-label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.vm-dot { width: 14px; height: 14px; border-radius: 50%; }
.pillar { display: flex; flex-direction: column; gap: 14px; transform-style: preserve-3d; }

/* ---------- feature event (dark split card) ---------- */
.feature-event { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--ink); border-radius: 32px; overflow: hidden; text-decoration: none; color: #fff; min-height: 380px; box-shadow: var(--shadow); }
.feature-event:hover { color: #fff; }
.fe-media { position: relative; overflow: hidden; background: var(--ink-2); min-height: 260px; }
.fe-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 1.2s var(--ease); }
.feature-event:hover .fe-media img { transform: scale(1.05); }
.fe-badge { position: absolute; left: 20px; top: 20px; }
.fe-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; }
.fe-body .h2 { color: #fff; }
.fe-date { display: inline-flex; align-items: center; gap: 8px; color: #C9D1DE; font-weight: 600; }
.fe-excerpt { color: #C9D1DE; line-height: 1.65; }
@media (max-width: 820px) { .feature-event { grid-template-columns: 1fr; } .fe-media { aspect-ratio: 16 / 10; min-height: 0; } }

/* image reveal mask (animated by pages.js) */
.js .img-reveal { clip-path: inset(0 0 0 0); }

/* ---------- article cards ---------- */
.article-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); }
.article-card:hover { color: var(--ink); }
.ac-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.ac-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.article-card:hover .ac-media img { transform: scale(1.06); }
.ac-body { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 24px; flex: 1; }
.ac-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.ac-title { font-size: 18px; line-height: 1.35; font-weight: 800; letter-spacing: -.01em; }
.ac-excerpt { font-size: 14px; line-height: 1.6; color: var(--text); }
.ac-more { margin-top: auto; font-size: 14px; }
.chip-gold { white-space: normal; text-align: left; line-height: 1.3; }

/* ---------- team ---------- */
.team-card { display: flex; align-items: center; gap: 20px; }
.team-photo { width: 128px; height: 128px; flex: none; border-radius: 50%; overflow: hidden; background: var(--soft); border: 4px solid #fff; box-shadow: 0 8px 22px rgba(19, 33, 60, .14); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.08); }
.team-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.team-name { font-size: 19px; letter-spacing: -.01em; }
.team-role { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.team-li { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 40px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 13px; text-decoration: none; transition: all .25s; }
.team-li:hover { border-color: var(--gold); background: var(--gold-soft); color: var(--ink); }

/* ---------- ethics + CTA band ---------- */
.cta-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; }
.ethics-card { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-band { position: relative; overflow: hidden; background: var(--ink); border-radius: 32px; padding: clamp(32px, 5vw, 60px); display: flex; flex-direction: column; gap: 18px; isolation: isolate; }
.cta-band .h2 { color: #fff; max-width: 620px; }
.cta-band .lead { max-width: 560px; }
.cta-orb { position: absolute; border-radius: 50%; z-index: -1; animation: float-a 9s ease-in-out infinite; }
.cta-orb.o1 { width: 120px; height: 120px; background: var(--gold); right: 48px; top: 36px; }
.cta-orb.o2 { width: 30px; height: 30px; background: var(--green); right: 190px; top: 150px; animation-delay: -3s; }
.cta-orb.o3 { width: 18px; height: 18px; background: var(--red); right: 36px; top: 190px; animation-delay: -5s; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .cta-orb.o1 { width: 70px; height: 70px; right: -14px; top: -14px; } .cta-orb.o2, .cta-orb.o3 { display: none; } }

/* ---------- skills framework ---------- */
.tsf-wheel { position: relative; width: min(380px, 80vw); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; animation: wheel-spin 60s linear infinite; }
.wheel-seg { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from calc(var(--i) * 60deg - 30deg), var(--c) 0deg 57deg, transparent 57deg 360deg); -webkit-mask: radial-gradient(circle, transparent 34%, #000 34.5%); mask: radial-gradient(circle, transparent 34%, #000 34.5%); transition: transform .5s var(--ease); }
.tsf-wheel:hover .wheel-seg { transform: scale(1.03); }
.wheel-core { position: absolute; inset: 31%; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(255, 255, 255, .08); animation: wheel-spin 60s linear infinite reverse; }
.wheel-core img { width: 64%; height: auto; }
@keyframes wheel-spin { to { transform: rotate(360deg); } }
@media (max-width: 960px) { .tsf-wheel { width: min(280px, 70vw); margin-top: 8px; } }
.skill-card { position: relative; display: flex; flex-direction: column; gap: 14px; overflow: hidden; transform-style: preserve-3d; border-top: 5px solid var(--c); }
.skill-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -70px; border-radius: 50%; background: var(--c); opacity: .08; transition: transform .6s var(--ease), opacity .4s; }
.skill-card:hover::after { transform: scale(1.5); opacity: .14; }
.skill-num { position: absolute; right: 24px; top: 20px; font-size: 14px; font-weight: 800; color: var(--muted); letter-spacing: .1em; }
.skill-ic { width: 56px; height: 56px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--c); box-shadow: 0 10px 24px -8px var(--c); }
.tsf-figure { margin: clamp(32px, 5vw, 56px) auto 0; background: #fff; border-radius: 28px; padding: clamp(16px, 3vw, 32px); border: 1px solid var(--line-soft); text-align: center; }
.tsf-figure img { margin: 0 auto; }
.tsf-figure figcaption { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.sticky-col { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; gap: 18px; }
@media (max-width: 960px) { .sticky-col { position: static; } }
.stake-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.stake-item { display: flex; gap: 18px; align-items: flex-start; }
.stake-text { gap: 6px; }
.resource-band { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; background: #fff; border: 1px solid var(--line-soft); border-radius: 32px; padding: clamp(24px, 4vw, 44px); }
.resource-cover { display: block; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px rgba(19, 33, 60, .2); transform-style: preserve-3d; }
@media (max-width: 700px) { .resource-band { grid-template-columns: 1fr; } .resource-cover { max-width: 220px; } }

/* ---------- membership ---------- */
.benefit { display: flex; flex-direction: column; gap: 14px; }
.benefit-top { display: flex; align-items: center; justify-content: space-between; }
.benefit-n { font-size: 14px; font-weight: 800; color: #B7BFCB; letter-spacing: .1em; }
.tick-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tick-list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.6; color: var(--text); }
.tick-list li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 14px; height: 9px; border-left: 2.5px solid var(--green-ink); border-bottom: 2.5px solid var(--green-ink); transform: rotate(-45deg); }
.plan-grid { align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 12px; border-width: 2px; }
.plan-card .btn { margin-top: auto; width: 100%; }
.plan-card.is-featured { border-color: var(--ink); box-shadow: var(--shadow-lift); }
.plan-flag { position: absolute; top: -14px; left: 28px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.plan-label { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price span { font-size: 52px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.plan-price small { font-size: 16px; font-weight: 600; color: var(--muted); }


.apply-form { padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); position: relative; }
.apply-form .notice { margin-bottom: 18px; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.plan-radios { display: grid; gap: 10px; }
.plan-radio { position: relative; cursor: pointer; }
.plan-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pr-box { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 2px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .25s, box-shadow .25s, background .25s; }
.pr-dot { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid #B7BFCB; position: relative; transition: border-color .25s; }
.pr-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .3s var(--ease); }
.pr-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pr-text small { color: var(--muted); font-size: 13px; }
.pr-price { font-size: 22px; font-weight: 800; }
.plan-radio input:checked + .pr-box { border-color: var(--ink); background: var(--gold-soft); box-shadow: 0 10px 24px rgba(19, 33, 60, .08); }
.plan-radio input:checked + .pr-box .pr-dot { border-color: var(--ink); }
.plan-radio input:checked + .pr-box .pr-dot::after { transform: scale(1); }
.plan-radio input:focus-visible + .pr-box { outline: 3px solid var(--gold); outline-offset: 2px; }
.field.has-error .pr-box { border-color: var(--red-ink); }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.pay-box { border: 1px solid var(--line-soft); border-radius: 18px; padding: 20px; background: var(--soft); }
.pay-h { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.pay-box dl { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pay-box dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.pay-box dt { color: var(--muted); }
.pay-box dd { margin: 0; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; text-align: right; }
.pay-uen { font-size: 24px; font-weight: 800; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.copy-btn { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; cursor: pointer; min-height: 30px; }
.copy-btn:hover { border-color: var(--ink); }
.input-action { display: flex; gap: 10px; }
.input-action .input { flex: 1; min-width: 0; }
.input-action .btn { flex: none; }
@media (max-width: 480px) { .input-action { flex-direction: column; } .input-action .btn { width: 100%; } }
.otp-input { letter-spacing: .5em; font-weight: 800; font-size: 22px; max-width: 280px; }
.field-hint:empty { display: none; }
.apply-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: clamp(28px, 5vw, 52px); box-shadow: var(--shadow); }
.apply-done .row { justify-content: center; }
.done-check { width: 76px; height: 76px; border-radius: 50%; background: var(--green-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; animation: pop .6s var(--ease) both; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: none; opacity: 1; } }
.pay-reminder { text-align: left; background: var(--gold-soft); border-radius: 18px; padding: 20px 22px; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.pay-reminder ul { margin: 0; padding-left: 1.2em; }

/* ---------- events ---------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; transition: all .25s var(--ease); }
.fchip span { opacity: .55; margin-left: 2px; }
.fchip:hover { border-color: var(--ink); }
.fchip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.event-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); }
.event-card:hover { color: var(--ink); }
.ec-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.ec-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.event-card:hover .ec-media img { transform: scale(1.07); }
.ec-badge { position: absolute; left: 14px; top: 14px; }
.ec-body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.ec-date { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ec-title { font-size: 18px; line-height: 1.35; font-weight: 800; }
.ec-body .link-arrow { margin-top: auto; font-size: 14px; }
.upcoming-list { gap: 20px; }

/* detail pages */
.hero-detail .hero-copy { gap: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: #C9D1DE; text-decoration: none; font-weight: 700; font-size: 14px; min-height: 40px; width: fit-content; }
.back-link:hover { color: #fff; }
.back-link .ic { transition: transform .3s var(--ease); }
.back-link:hover .ic { transform: translateX(-4px); }
.detail-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.detail-media { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); border-radius: 24px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.detail-media img { width: 100%; height: auto; }
.detail-body { padding: clamp(24px, 4vw, 44px); }
.event-prose img { display: inline-block; vertical-align: middle; }
.detail-actions { margin-top: 28px; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } .detail-media { position: static; } }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(32px, 5vw, 56px); }
.pager-link { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; background: #fff; border: 1px solid var(--line-soft); border-radius: 20px; text-decoration: none; color: var(--ink); transition: border-color .25s, transform .3s var(--ease); }
.pager-link:hover { border-color: var(--gold); transform: translateY(-3px); color: var(--ink); }
.pager-link small { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pager-link strong { font-size: 16px; line-height: 1.35; }
.pager-next { text-align: right; align-items: flex-end; grid-column: 2; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager-next { grid-column: auto; } }

/* ---------- articles ---------- */
.feature-article { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border: 1px solid var(--line-soft); border-radius: 32px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.feature-article:hover { color: var(--ink); }
.fa-media { position: relative; overflow: hidden; min-height: 300px; background: var(--soft); }
.fa-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature-article:hover .fa-media img { transform: scale(1.05); }
.fa-body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.fa-title { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
@media (max-width: 820px) { .feature-article { grid-template-columns: 1fr; } .fa-media { aspect-ratio: 16 / 10; min-height: 0; } }
.article-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.search-box { position: relative; flex: 0 1 320px; display: flex; align-items: center; }
.search-box .ic { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.search-box .input { padding-left: 46px; border-radius: 999px; }
@media (max-width: 700px) {
  .article-tools { flex-direction: column-reverse; flex-wrap: nowrap; align-items: stretch; }
  .article-tools .filter-chips { max-width: calc(100% + 40px); }
  .search-box { flex: 1 1 auto; }
  .article-tools .filter-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px 6px; -webkit-overflow-scrolling: touch; }
  .article-tools .filter-chips::-webkit-scrollbar { display: none; }
  .article-tools .fchip { flex: none; }
}
.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), #E07A4F); transform-origin: left; transform: scaleX(0); }
.article-meta { color: #C9D1DE; font-weight: 600; font-size: 14px; gap: 10px; }
.article-h1 { font-size: clamp(30px, 4.2vw, 50px); }
.article-cover { margin: 0 0 -60px; position: relative; z-index: 2; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lift); background: #fff; }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.article-body { padding: calc(60px + clamp(24px, 4vw, 40px)) clamp(22px, 5vw, 56px) clamp(24px, 4vw, 44px); }
.share-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.pager-inline { margin-top: 28px; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.prose iframe, .prose video { max-width: 100%; }
.prose * { max-width: 100%; }
.prose p, .prose li { overflow-wrap: anywhere; }

/* ---------- level up ---------- */
.book-card { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; }
.book-cover { display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 48px rgba(19, 33, 60, .22); transform-style: preserve-3d; padding: 0; }
.book-cover img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.book-card:hover .book-cover img { transform: scale(1.04); }
.book-info { gap: 14px; align-items: flex-start; }
.book-info .row { gap: 10px; }
@media (max-width: 560px) { .book-card { grid-template-columns: 1fr; } .book-cover { max-width: 220px; } .book-info .row .btn { width: 100%; } }
.viewer-wrap { margin-top: 32px; }
.viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 18px; }
.pdf-frame { width: 100%; height: min(80vh, 900px); border: 1px solid var(--line-soft); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
@media (max-width: 760px) { .viewer-btn { display: none; } }

/* ---------- 404 ---------- */
.nf-section { min-height: 60vh; display: flex; align-items: center; }
.nf-wrap { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.nf-code { display: flex; align-items: center; gap: 10px; font-size: clamp(90px, 18vw, 170px); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.nf-dot { width: .7em; height: .7em; border-radius: 50%; background: var(--gold); box-shadow: inset -12px -12px 0 rgba(0, 0, 0, .08); animation: float-a 4s ease-in-out infinite; }
.nf-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; width: 100%; margin-top: 12px; }
.nf-link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; padding: 20px; }
.nf-link strong { font-size: 17px; }

@media (prefers-reduced-motion: reduce) {
  .sc-inner, .stack-dot, .cta-orb, .tsf-wheel, .wheel-core, .nf-dot { animation: none !important; }
}

/* event images are posters with text: show them whole on a soft backdrop instead of cropping */
.fe-media, .ec-media { background: radial-gradient(120% 120% at 30% 20%, #FFFFFF 0%, #EEF0F4 100%); }
.fe-media img, .ec-media img { object-fit: contain; }
.ec-media img { padding: 10px; }
.event-card:hover .ec-media img { transform: scale(1.04); }
.feature-event .fe-media { background: radial-gradient(120% 120% at 30% 20%, #22365F 0%, #13213C 100%); }

/* site.css .hero-inner uses "padding: X 0 Y", which wipes the .wrap side gutters on phones */
.wrap.hero-inner { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
@media (max-width: 480px) {
  .about-stats { gap: 8px; }
  .about-stats div { padding: 14px 10px; }
  .about-stats span { font-size: 11.5px; overflow-wrap: anywhere; }
}
.hero-copy > .chip, .hero-copy > .back-link { align-self: flex-start; }
.event-prose br + br { display: none; }

/* ---------- selected plan (cards + form stay in sync) ---------- */
.plan-card.is-featured:not(.is-selected) { border-color: var(--line-soft); }
.plan-card.is-selected { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(224, 178, 94, .22), var(--shadow-lift); }
.plan-card.is-selected::after { content: "\2713  Selected"; position: absolute; top: -14px; right: 24px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; animation: selpop .35s var(--ease) both; }
@keyframes selpop { from { opacity: 0; transform: translateY(6px) scale(.9); } to { opacity: 1; transform: none; } }
.plan-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; background: var(--gold-soft); color: var(--ink); font-size: 15px; }
.plan-summary[hidden] { display: none; }
.plan-summary .ps-ic { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.plan-summary a { margin-left: auto; font-weight: 700; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .plan-card.is-selected::after { animation: none; } }

/* Promo code box in the payment step */
.promo-field .input-action .btn { min-width: 96px; }
.promo-input { text-transform: uppercase; letter-spacing: .05em; }
.promo-input::placeholder { text-transform: none; letter-spacing: 0; }
.promo-msg { font-size: 14px; font-weight: 600; line-height: 1.5; }
.promo-msg.is-ok { color: var(--green-ink); }
.promo-msg.is-err { color: var(--red-ink); }
.promo-field.is-applied .promo-input { border-color: var(--green-ink); background: var(--green-soft); }
.done-amount { font-size: 17px; }

/* ---------- Text kept on one line where the screen has room ---------- */
.section-head-wide { max-width: none; }
.hero-copy-wide, .hero-copy-wide .lead { max-width: none; }
.h-articles { font-size: clamp(34px, 5vw, 64px); }
.skill-card .h3 { font-size: clamp(19px, 1.75vw, 22px); }
@media (max-width: 760px) { .br-wide { display: none; } }
@media (max-width: 1180px) { .team-photo { width: 104px; height: 104px; } }

/* ---------- TS4CD wheel: the labels are real text, so they stay large and sharp ---------- */
.twm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px) minmax(0, 1fr); grid-template-areas: ". t ." "l1 pie r1" "l2 pie r2" ". b ."; gap: 26px 44px; align-items: center; text-align: left; }
.twm-pie { grid-area: pie; width: 100%; height: auto; }
.twm-title { margin: 0 0 6px; font-size: 21px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.twm-text { margin: 0; font-size: 17px; line-height: 1.5; color: var(--text); }
.twm-0 { grid-area: t; text-align: center; }
.twm-1 { grid-area: r1; }
.twm-2 { grid-area: r2; }
.twm-3 { grid-area: b; text-align: center; }
.twm-4 { grid-area: l2; text-align: right; }
.twm-5 { grid-area: l1; text-align: right; }
@media (max-width: 900px) {
  .twm { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; gap: 20px; text-align: center; }
  .twm > * { grid-area: auto !important; text-align: center; }
  .twm-pie { max-width: 340px; margin: 0 auto 6px; }
}

/* ---------- Membership form: one page, three numbered parts (same order as the old form) ---------- */
.step + .step { margin-top: clamp(28px, 4vw, 40px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line-soft); }
.apply-part { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(20px, 2vw, 24px); font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.apply-part span { width: 34px; height: 34px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--gold); font-size: 15px; font-weight: 800; }
.fee-block { display: flex; flex-direction: column; gap: 10px; }
.fee-block .field-label { margin: 0; }
.fee-list { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 4px; font-weight: 600; color: var(--ink); }
.apply-submit { width: 100%; margin-top: 4px; }
