/* Global AI Hyderabad · Certificates
   Design tokens and components mirror globalai.community so the claim flow feels like part of the site. */

@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/SpaceGrotesk-latin.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; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/SpaceGrotesk-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/InstrumentSans-latin.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; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/InstrumentSans-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --cream: #f5f4ec; --cream-warm: #fdf0e3; --content: #fff; --surface: #fff;
  --ink: #16130e; --ink-inverse: #f5f4ec;
  --orange: #d5522b; --orange-deep: #b8431f; --orange-tint: #fbe9e0;
  --blue: #8cadc6; --blue-tint: #e6eef4; --blue-deep: #3c657f;
  --live: #178f57; --live-tint: #e3f3ea; --warn-tint: #fdf3d7; --warn-deep: #8a6d1a;
  --red: #b42318; --red-tint: #fdecec;
  --text-muted: #6e6759; --border: rgba(22,19,14,.12); --ink-soft: rgba(22,19,14,.05);
  --ink-veil: rgba(22,19,14,.22); --ink-shadow-strong: rgba(22,19,14,.24); --inverse-muted: rgba(245,244,236,.75);
  --shadow-card: 0 2px 8px rgba(22,19,14,.06);
  --r-card: 26px; --r-media: 18px; --r-input: 14px; --r-pill: 999px;
  --font-mono: ui-monospace, 'Cascadia Code', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --maxw: 1140px; --gutter: 24px; --section-gap: 72px; --head-gap: 24px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: 'Instrument Sans', -apple-system, sans-serif; background: var(--content); color: var(--ink); margin: 0; font-size: 16.5px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--orange-deep); text-decoration: none; }
img { max-width: 100%; }
code { font-family: var(--font-mono); font-size: .86em; background: var(--ink-soft); padding: 1px 6px; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 22px 0; }
.mono { font-family: var(--font-mono); font-size: .86em; }
.muted { color: var(--text-muted); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 28px; } .mb-3 { margin-bottom: 18px; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 680px; }
.h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

.eyebrow { font-family: 'Space Grotesk', sans-serif; font-size: .8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--orange-deep); }
.eyebrow-block { display: block; margin-bottom: 10px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 60; background: var(--cream); transition: box-shadow 250ms ease-out; }
.nav.scrolled { box-shadow: 0 1px 0 var(--border); }
.nav-bar { position: relative; display: grid; grid-template-columns: minmax(180px,1fr) auto minmax(180px,1fr); align-items: center; gap: 16px; max-width: var(--maxw); margin: 0 auto; padding: 13px var(--gutter); z-index: 3; }
.brand-link { grid-column: 1; justify-self: start; display: inline-flex; align-items: center; gap: 12px; }
.nav img.brand { height: 34px; display: block; }
.brand-tag { font: 600 .78rem 'Space Grotesk', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-deep); background: var(--orange-tint); border-radius: var(--r-pill); padding: 4px 10px; white-space: nowrap; }
.glide-links { grid-column: 2; justify-self: center; display: flex; gap: 2px; }
.glide-links a { font: 600 1rem 'Space Grotesk', sans-serif; letter-spacing: -.01em; color: var(--ink); padding: 10px 16px; border-radius: 999px; transition: color 200ms ease-out, background 200ms ease-out; }
.glide-links a:hover { color: var(--orange-deep); }
.glide-links a.active { color: var(--orange-deep); background: var(--orange-tint); }
.nav-actions { grid-column: 3; display: flex; align-items: center; justify-self: end; gap: 10px; }
.nav-actions form { margin: 0; }
.nav-menu-btn { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); align-items: center; justify-content: center; flex-direction: column; gap: 4px; cursor: pointer; }
.nav-menu-btn span { display: block; width: 17px; height: 2px; border-radius: var(--r-pill); background: currentColor; }
.nav-veil { position: fixed; inset: 0; background: var(--ink-veil); opacity: 0; pointer-events: none; transition: opacity 250ms ease-out; z-index: 55; }
body.mobile-nav-open .nav-veil { opacity: 1; pointer-events: auto; }
.nav-mobile-sheet { display: none; position: fixed; left: 12px; right: 12px; top: 70px; z-index: 70; max-height: calc(100dvh - 84px); overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: 0 26px 64px var(--ink-shadow-strong); padding: 18px; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 200ms ease-out, transform 200ms ease-out; }
.nav-mobile-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.nav-menu-close { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.nav-mobile-sheet > a { display: block; font: 600 1.55rem 'Space Grotesk', sans-serif; letter-spacing: -.02em; color: var(--ink); padding: 13px 2px; border-bottom: 1px solid var(--border); }
.nav-mobile-sheet > a:hover { color: var(--orange-deep); }
.nav-mobile-actions { display: grid; gap: 10px; padding-top: 16px; }
.nav-mobile-actions form { display: contents; }
@media (max-width: 880px) {
  .nav-bar { grid-template-columns: minmax(0,1fr) auto; padding: 10px var(--gutter); }
  .nav-actions { grid-column: 2; }
  .nav img.brand { height: 30px; max-width: 176px; }
  .glide-links, .nav-desktop-only { display: none; }
  .nav-menu-btn { display: inline-flex; }
  .nav-actions .btn { display: none; }
  .nav-mobile-sheet { display: block; }
  body.mobile-nav-open .nav-mobile-sheet { opacity: 1; transform: none; pointer-events: auto; }
}
@media (max-width: 380px) { .brand-tag { display: none; } }

/* ---------- buttons, chips, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: 'Instrument Sans', sans-serif; font-size: 1rem; font-weight: 600; line-height: 1.2; border-radius: var(--r-pill); padding: 13px 26px; cursor: pointer; border: 1.5px solid transparent; transition: background-color 200ms ease-out, border-color 200ms ease-out, color 200ms ease-out, opacity 200ms; text-decoration: none; }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn svg { flex: none; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); }
.btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--ink-inverse); }
.btn-link { background: none; border: 0; color: var(--orange-deep); padding: 13px 4px; }
.btn-link .arrow { transition: transform 200ms ease-out; display: inline-block; }
.btn-link:hover .arrow { transform: translateX(4px); }
.btn-flush { padding: 0; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-xs { padding: 6px 12px; font-size: .82rem; }
.btn-link.btn-xs { padding: 6px 4px; }
.btn-wide { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .7; cursor: wait; }
.btn.is-loading::before { content: ''; width: 16px; height: 16px; flex: none; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
.btn-linkedin { background: #0a66c2; color: #fff; }
.btn-linkedin:hover { background: #004182; color: #fff; }
.danger, .btn-link.danger { color: var(--red); }
.danger-btn { border-color: var(--red); color: var(--red); }
.danger-btn:hover { background: var(--red); color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; } }

.chip { display: inline-flex; align-items: center; gap: 7px; font-size: .8125rem; font-weight: 600; border-radius: var(--r-pill); padding: 5px 14px; line-height: 1.4; }
.chip svg { width: 14px; height: 14px; }
.chip-orange { background: var(--orange-tint); color: var(--orange-deep); }
.chip-blue { background: var(--blue-tint); color: var(--blue-deep); }
.chip-muted { background: var(--cream); color: var(--text-muted); border: 1px solid var(--border); }
.chip-warn { background: var(--warn-tint); color: var(--warn-deep); }
.chip-red { background: var(--red-tint); color: var(--red); }
.chip-live { background: var(--live-tint); color: var(--live); }
.chip-tight { padding: 2px 10px; }
.chip-pulse::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s ease-in-out infinite; }
.chip-row2 { display: flex; gap: 8px; flex-wrap: wrap; }
a.chip:hover { border-color: var(--orange); }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font: 600 .875rem 'Instrument Sans', sans-serif; }
.field .hint, .field-hint { font-size: .78rem; color: var(--text-muted); }
.optional { font-weight: 400; color: var(--text-muted); }
.input { width: 100%; font: 400 1rem 'Instrument Sans', sans-serif; background: var(--surface); color: var(--ink); border: 1.5px solid var(--border); border-radius: var(--r-input); padding: 12px 16px; transition: border-color 200ms ease-out, box-shadow 200ms ease-out; }
.input:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-tint); }
.input.is-invalid { border-color: var(--red); }
.input-lg { font: 600 1.2rem 'Space Grotesk', sans-serif; letter-spacing: -.01em; padding: 14px 18px; }
.input-sm { padding: 8px 14px; font-size: .9rem; }
.input-xs { padding: 5px 10px; font-size: .85rem; border-radius: 10px; width: auto; }
textarea.input { resize: vertical; min-height: 64px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.input-xs { background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%; padding-right: 26px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--orange); flex: none; }
.form-error { display: none; color: var(--red); font-size: .9rem; font-weight: 500; }
.form-error.is-visible { display: block; }
.form-ok { color: var(--live); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fine { font-size: .8rem; color: var(--text-muted); margin-top: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); border-bottom: 1px solid var(--border); }
.hero-inner { position: relative; z-index: 1; padding-top: 38px; padding-bottom: 52px; }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); max-width: 24ch; }
.hero .center h1, .chapter-head h1 { margin-left: auto; margin-right: auto; }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); max-width: 52ch; margin-top: 18px; }
.center .hero-sub { margin-left: auto; margin-right: auto; }
.hero-sub b { color: var(--ink); font-weight: 600; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.center .hero-chips, .hero-ctas.center { justify-content: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 22px; font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 1rem; font-feature-settings: "tnum"; }
.hero-meta .m { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.hero-meta .m::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); align-self: center; flex: none; }
.hero-meta small { color: var(--text-muted); font-weight: 400; font-size: .85rem; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; align-items: center; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,440px); gap: 48px; align-items: start; }
.hero-stats { display: flex; gap: clamp(20px,4vw,48px); margin-top: 28px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-family: 'Space Grotesk', sans-serif; font-feature-settings: "tnum"; font-weight: 600; font-size: clamp(1.5rem,3vw,2.1rem); letter-spacing: -.02em; }
.hero-stats .stat span { font-size: .875rem; color: var(--text-muted); }
.hero-fill .hero-inner { padding-top: 64px; padding-bottom: 96px; }
.crumbs { font-size: .875rem; font-weight: 500; color: var(--text-muted); margin-bottom: 26px; }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--orange-deep); }
.crumbs span { margin: 0 8px; opacity: .5; }
.crumbs .crumb-home { display: inline-flex; vertical-align: -2px; }

.chapter-head { text-align: center; }
.chapter-head .chapter-icon { height: 112px; width: auto; margin: 0 auto 14px; display: block; }
.hero-crest { display: block; width: 96px; height: auto; margin-bottom: 18px; }
.center .hero-crest { margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .hero-crest { width: 72px; margin-bottom: 12px; } }
.chapter-head .eyebrow { display: block; margin-bottom: 10px; }
.chapter-head .sub { max-width: 62ch; margin: 0 auto; color: var(--text-muted); font-size: 1.05rem; }
.chapter-stats { display: inline-flex; gap: 40px; justify-content: center; margin: 18px 0 18px; }
.chapter-stats > div { display: flex; flex-direction: column; }
.chapter-stats b { font: 700 1.6rem 'Space Grotesk', sans-serif; letter-spacing: -.02em; font-feature-settings: "tnum"; }
.chapter-stats span { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.verify-form { display: flex; gap: 10px; max-width: 520px; margin: 26px auto 0; }
.verify-form .input { flex: 1; font-family: 'Space Grotesk', sans-serif; font-weight: 500; letter-spacing: .04em; }
.verify-form .input::placeholder { letter-spacing: 0; font-family: 'Instrument Sans', sans-serif; font-weight: 400; }
.center .notice { text-align: left; margin-top: 22px; }

/* ---------- sections, cards ---------- */
.home-sec { padding-top: var(--section-gap); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: var(--head-gap); flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.sec-head .eyebrow { display: block; margin-bottom: 8px; }
.sec-head .more { font: 600 .95rem 'Instrument Sans', sans-serif; white-space: nowrap; }
.sec-head .more .arrow { display: inline-block; transition: transform 200ms ease-out; }
.sec-head .more:hover .arrow { transform: translateX(4px); }
.sec-head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 1.2rem; }
.card p { font-size: .92rem; color: var(--text-muted); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card-band { background: var(--cream); border-radius: var(--r-card); padding: 28px; }
.empty { border: 1.5px dashed var(--border); background: transparent; text-align: center; color: var(--text-muted); padding: 40px 28px; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 26px; box-shadow: var(--shadow-card); }
.steps .step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--orange-tint); color: var(--orange-deep); font: 700 1.1rem 'Space Grotesk', sans-serif; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- event timeline (as on the chapter page) ---------- */
.gai-day { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--border); }
.gai-day:first-child { border-top: 0; padding-top: 4px; }
.gai-day-header { position: sticky; top: 90px; align-self: start; display: flex; align-items: flex-start; gap: 10px; padding-top: 8px; }
.gai-day-num { font: 700 2.2rem 'Space Grotesk', sans-serif; line-height: 1; letter-spacing: -.02em; }
.gai-day-meta { line-height: 1.2; }
.gai-day-weekday { font-weight: 600; }
.gai-day-month { color: var(--text-muted); font-size: .85rem; }
.gai-day-events { display: flex; flex-direction: column; gap: 14px; }
.gai-event { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); color: var(--ink); box-shadow: var(--shadow-card); transition: border-color 200ms ease-out, transform 200ms ease-out; }
.gai-event:hover { border-color: var(--orange); transform: translateY(-1px); color: var(--ink); }
.gai-event-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gai-event-time { font: 500 .85rem 'Space Grotesk', sans-serif; font-feature-settings: "tnum"; color: var(--orange-deep); letter-spacing: .02em; }
.gai-event-tz { margin-left: 8px; font-size: .75rem; color: var(--text-muted); }
.gai-event-title { font-size: 1.1rem; font-weight: 650; margin: 0; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }
.gai-event-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--text-muted); font-size: .9rem; margin-top: 2px; }
.gai-event-tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.gai-tag { display: inline-block; font: 600 .72rem 'Space Grotesk', sans-serif; padding: 3px 10px; border-radius: 999px; }
.gai-tag-online { background: var(--blue-tint); color: var(--blue-deep); }
.gai-tag-inperson { background: var(--live-tint); color: var(--live); }
.gai-tag-hybrid { background: var(--orange-tint); color: var(--orange-deep); }
.gai-tag-external { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.admin-event { align-items: center; }
.arrow-go { font-size: 1.4rem; color: var(--text-muted); transition: transform 200ms ease-out, color 200ms; }
.admin-event:hover .arrow-go { transform: translateX(4px); color: var(--orange-deep); }
@media (max-width: 640px) {
  .gai-day { grid-template-columns: 1fr; gap: 10px; }
  .gai-day-header { position: static; padding-top: 0; }
}

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 48px; padding-top: 56px; padding-bottom: 72px; align-items: start; }
.aside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }
.aside-sticky { display: flex; flex-direction: column; gap: 20px; }
.layout > .main > * + * { margin-top: 28px; }
.cert-layout { grid-template-areas: "main aside" "details aside"; row-gap: 48px; }
.cert-layout > .main { grid-area: main; }
.cert-layout > .aside { grid-area: aside; }
.cert-layout > .details { grid-area: details; }
@media (max-width: 900px) { .cert-layout { grid-template-areas: "main" "aside" "details"; row-gap: 28px; } }
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0,1fr); }
  .aside { position: static; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- claim ---------- */
.claim-hero .hero-inner { padding-bottom: 64px; }
.claim-card { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 80px; }
.claim-card > section { display: flex; flex-direction: column; gap: 16px; }
.claim-card form { display: flex; flex-direction: column; gap: 16px; }
.claim-title { font-size: 1.45rem; }
.step-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.claim-perks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.claim-perks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.claim-perks svg { color: var(--orange); background: var(--surface); border: 1px solid var(--border); border-radius: 50%; padding: 8px; width: 36px; height: 36px; flex: none; }
.cert-preview { margin: 0; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--cream); aspect-ratio: 1123 / 794; }
.cert-preview img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity 200ms; }
.cert-preview img:not([src]) { visibility: hidden; }
.cert-preview.is-loading img { opacity: .55; }
.cert-preview figcaption { position: absolute; top: 8px; right: 8px; font: 600 .68rem 'Space Grotesk', sans-serif; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.9); color: var(--text-muted); padding: 3px 9px; border-radius: 999px; }
.request-box { border-top: 1px solid var(--border); padding-top: 14px; }
.request-box summary { cursor: pointer; font-weight: 600; color: var(--orange-deep); font-size: .95rem; }
.request-box form { margin-top: 14px; }
@media (max-width: 900px) {
  .page-claim .claim-perks { display: none; }
  .page-claim .hero-sub { font-size: 1rem; margin-top: 12px; }
}

/* ---------- certificate page ---------- */
.notice { display: flex; flex-direction: column; gap: 4px; border-radius: var(--r-media); padding: 16px 20px; border: 1px solid transparent; }
.notice b { font-family: 'Space Grotesk', sans-serif; font-weight: 600; }
.notice span { font-size: .95rem; }
.notice-live { background: var(--live-tint); border-color: rgba(23,143,87,.25); }
.notice-red { background: var(--red-tint); border-color: rgba(180,35,24,.2); color: var(--red); }
.notice-warn { background: var(--warn-tint); border-color: rgba(138,109,26,.2); color: var(--warn-deep); }
.cert-figure { margin: 0; }
.cert-figure img { display: block; width: 100%; height: auto; border-radius: var(--r-media); border: 1px solid var(--border); box-shadow: 0 18px 48px rgba(22,19,14,.10); background: var(--cream); }
.cert-figure figcaption { margin-top: 10px; font-size: .85rem; text-align: center; }
.cert-figure.is-revoked img { filter: grayscale(1); opacity: .5; }
.details h2 { font-size: 1.5rem; margin-bottom: 16px; }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 28px; margin: 0; }
.detail-list > div { padding: 12px 0; border-top: 1px solid var(--border); }
.detail-list dt { font: 500 .72rem 'Space Grotesk', sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); }
.detail-list dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 600px) { .detail-list { grid-template-columns: 1fr; } }
.badge-card { display: flex; flex-direction: column; gap: 18px; align-items: stretch; }
.badge-img { width: 220px; height: 220px; margin: 0 auto; display: block; filter: drop-shadow(0 12px 24px rgba(22,19,14,.18)); }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.share-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color 200ms ease-out, color 200ms ease-out; }
.share-btn:hover { border-color: var(--orange); color: var(--orange-deep); }
.share-btn svg { width: 16px; height: 16px; }
.share-hint { font-size: .85rem; color: var(--text-muted); margin-left: 4px; }

/* ---------- admin ---------- */
.login-card { max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.admin-body { padding-top: 36px; padding-bottom: 40px; }
.admin-sec { padding-top: 56px; scroll-margin-top: 70px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.stat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.stat-tile span { font: 500 .72rem 'Space Grotesk', sans-serif; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.stat-tile b { font: 600 2rem 'Space Grotesk', sans-serif; letter-spacing: -.02em; font-feature-settings: "tnum"; }
.stat-tile small { color: var(--text-muted); font-size: .82rem; }
.stat-tile.accent { background: var(--orange-tint); border-color: rgba(213,82,43,.25); }
.stat-tile.accent b { color: var(--orange-deep); }
@media (max-width: 800px) { .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.tabs { position: sticky; top: 64px; z-index: 20; display: flex; gap: 6px; background: var(--cream); border-radius: var(--r-pill); padding: 5px; margin-top: 28px; overflow-x: auto; width: max-content; max-width: 100%; }
.tabs a { font: 600 .9rem 'Space Grotesk', sans-serif; color: var(--text-muted); padding: 9px 18px; border-radius: var(--r-pill); white-space: nowrap; transition: all 200ms ease-out; }
.tabs a:hover { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
.tabs .cnt { font-feature-settings: "tnum"; opacity: .7; margin-left: 4px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: 1.3fr 1.2fr .8fr auto; gap: 14px; align-items: end; }
.grid-4 .form-error { grid-column: 1 / -1; }
.grid-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 20px; align-items: start; }
.grid-split.wide-first { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); }
@media (max-width: 900px) { .grid-split, .grid-4 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.aside .grid-3 { grid-template-columns: 1fr 1fr; }
.aside .grid-3 > :first-child { grid-column: 1 / -1; }
.aside .grid-2 { grid-template-columns: 1fr; }
.import-row { display: flex; gap: 10px; align-items: flex-end; }
.import-row .grow { flex: 1; }
.aside .import-row { flex-direction: column; align-items: stretch; }
.toggles { justify-content: flex-end; gap: 10px; }
.dropzone { position: relative; border: 1.5px dashed var(--ink-veil); border-radius: var(--r-media); background: var(--cream); padding: 26px; text-align: center; transition: border-color 200ms, background 200ms; }
.dropzone.is-over { border-color: var(--orange); background: var(--orange-tint); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone label { display: flex; flex-direction: column; gap: 2px; pointer-events: none; }
.dropzone label span { color: var(--text-muted); font-size: .9rem; }
.dropzone.has-file label b { color: var(--orange-deep); }
details > summary { cursor: pointer; }
.card details summary { font-weight: 600; font-size: .95rem; }
.card details textarea { margin-top: 10px; }
.status-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.status-list label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: var(--r-pill); padding: 6px 14px 6px 10px; font-size: .9rem; cursor: pointer; }
.status-list label:has(input:checked) { border-color: var(--live); background: var(--live-tint); }
.status-list input { accent-color: var(--live); }
.status-list small { color: var(--text-muted); font-feature-settings: "tnum"; }
h4 { font-size: .95rem; }
.field .label { font: 600 .875rem 'Instrument Sans', sans-serif; }

/* certificate design: name placement editor */
.design-editor { gap: 18px; }
.design-stage { position: relative; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--cream); user-select: none; -webkit-user-select: none; touch-action: none; }
.design-stage img { display: block; width: 100%; height: 100%; pointer-events: none; }
.name-box { position: absolute; display: flex; align-items: center; border: 2px dashed var(--orange); background: rgba(213,82,43,.08); cursor: move; }
.name-box:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.name-box.is-dragging { background: rgba(213,82,43,.16); }
.name-box span { display: inline-block; flex: none; white-space: nowrap; font-weight: 400; pointer-events: none; }
.name-box-handle { position: absolute; right: -9px; bottom: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(22,19,14,.35); cursor: nwse-resize; touch-action: none; }
.design-controls { display: grid; grid-template-columns: 1.4fr .5fr auto 1.2fr; gap: 14px; align-items: end; }
@media (max-width: 860px) { .design-controls { grid-template-columns: 1fr 1fr; } }
.input-color { height: 41px; padding: 4px 6px; cursor: pointer; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1.5px solid var(--border); border-radius: var(--r-pill); width: max-content; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 5px 13px; border-radius: var(--r-pill); font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.seg input:checked + span { background: var(--ink); color: var(--ink-inverse); }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 1px; }

.checklist { margin: 0; padding-left: 20px; font-size: .92rem; color: var(--text-muted); display: grid; gap: 8px; }
.checklist b { color: var(--ink); }

.table-wrap { border: 1px solid var(--border); border-radius: 20px; overflow: auto; background: var(--surface); max-height: 640px; }
.table-wrap.small { max-height: 220px; border-radius: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { position: sticky; top: 0; text-align: left; font: 600 .72rem 'Space Grotesk', sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--cream); white-space: nowrap; z-index: 1; }
.table td { padding: 10px 16px; border-top: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:first-child td { border-top: 0; }
.table tbody tr:hover { background: #faf9f4; }
.table tr.is-revoked td { color: var(--text-muted); text-decoration: line-through; }
.table tr.is-revoked td.actions { text-decoration: none; }
.table input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--orange); }
.table .actions { text-align: right; }
.icon-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.icon-btn:hover { border-color: var(--red); color: var(--red); }
.search { margin: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--ink-inverse); padding: 12px 20px; border-radius: var(--r-pill); font-weight: 500; font-size: .95rem; box-shadow: 0 12px 32px var(--ink-shadow-strong); opacity: 0; transition: opacity 200ms, transform 200ms; z-index: 300; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--red); }

/* ---------- presenter (projector) ---------- */
.page-present { background: var(--cream); }
.present { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(20px, 3vw, 40px) clamp(24px, 4vw, 64px); gap: 24px; }
.present-head, .present-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.present-brand { display: flex; align-items: center; gap: 14px; }
.present-brand img { height: clamp(36px, 4vw, 52px); }
.present-tools { display: flex; gap: 12px; align-items: center; }
.present-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.present-crest { display: block; width: clamp(110px, 17vh, 190px); height: auto; margin-bottom: 14px; }
.present-copy h1 { font-size: clamp(2.4rem, 5.4vw, 5.2rem); line-height: 1.02; margin-top: 14px; max-width: 12ch; }
.present-copy .eyebrow { font-size: clamp(.85rem, 1.2vw, 1.1rem); }
.present-event { font: 600 clamp(1.2rem, 2.2vw, 2rem) 'Space Grotesk', sans-serif; color: var(--orange-deep); margin-top: 18px; letter-spacing: -.01em; }
.present-steps { list-style: none; padding: 0; margin: clamp(20px, 3vw, 40px) 0 0; display: grid; gap: 14px; font-size: clamp(1rem, 1.6vw, 1.45rem); font-weight: 500; }
.present-steps li { display: flex; align-items: center; gap: 16px; }
.present-steps span { width: 2em; height: 2em; border-radius: 50%; background: var(--orange); color: #fff; font: 700 .9em 'Space Grotesk', sans-serif; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.present-qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.present-qr { width: min(100%, 62vh, 620px); aspect-ratio: 1; background: #fff; border-radius: 32px; padding: clamp(14px, 2vw, 28px); box-shadow: 0 30px 80px rgba(22,19,14,.14); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: opacity 200ms; }
.present-qr svg { width: 100%; height: 100%; display: block; }
.present-qr.is-closed { opacity: .25; }
.present-timer { width: min(100%, 62vh, 620px); height: 6px; border-radius: 6px; background: var(--border); overflow: hidden; }
.present-timer i { display: block; height: 100%; width: 100%; background: var(--orange); transform-origin: left; }
.present-hint { color: var(--text-muted); font-size: clamp(.9rem, 1.2vw, 1.1rem); text-align: center; word-break: break-all; }
.present-count { display: flex; align-items: baseline; gap: 12px; }
.present-count b { font: 700 clamp(2rem, 4vw, 3.4rem) 'Space Grotesk', sans-serif; letter-spacing: -.02em; font-feature-settings: "tnum"; color: var(--ink); }
.present-count span { font-size: clamp(1rem, 1.5vw, 1.3rem); color: var(--text-muted); }
.present-chapter { font: 500 1rem 'Space Grotesk', sans-serif; color: var(--text-muted); }
.present-count b.bump { animation: bump 600ms ease-out; }
@keyframes bump { 30% { color: var(--orange); transform: scale(1.12); } }
@media (max-width: 800px) { .present-main { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer2 { background: var(--ink); color: var(--ink-inverse); border-radius: 26px 26px 0 0; margin-top: 88px; }
.f2-top { display: grid; grid-template-columns: minmax(260px,1.4fr) repeat(2,1fr); gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.f2-brand h3 { font-size: 1.5rem; max-width: 16ch; }
.f2-social { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.f2-social a { display: inline-flex; align-items: center; gap: 7px; font: 500 .8125rem 'Space Grotesk', sans-serif; color: var(--ink-inverse); border: 1px solid rgba(245,244,236,.25); border-radius: 999px; padding: 6px 14px; transition: border-color 200ms ease-out, color 200ms ease-out; }
.f2-social a:hover { border-color: var(--orange); color: var(--orange); }
.f2-social svg { width: 14px; height: 14px; }
.f2-col .glabel { display: block; font: 500 .75rem 'Space Grotesk', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: rgba(245,244,236,.45); margin-bottom: 14px; }
.f2-col a { display: block; color: rgba(245,244,236,.85); font-size: .95rem; padding: 5px 0; transition: color 200ms ease-out; }
.f2-col a:hover { color: var(--orange); }
.f2-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(245,244,236,.14); padding-top: 20px; padding-bottom: 28px; font-size: .85rem; color: rgba(245,244,236,.55); }
.f2-legal a { color: rgba(245,244,236,.55); }
.f2-legal a:hover { color: var(--ink-inverse); }
.f2-legal .links { display: flex; gap: 20px; }
@media (max-width: 900px) { .f2-top { grid-template-columns: 1fr 1fr; } }

/* ---------- small screens ---------- */
@media (max-width: 600px) {
  :root { --gutter: 16px; --section-gap: 56px; --head-gap: 18px; }
  .hero-inner { padding-top: 26px; padding-bottom: 36px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .card, .side-card { padding: 20px; }
  .card-grid { grid-template-columns: 1fr; gap: 14px; }
  .layout { gap: 32px; padding-top: 32px; padding-bottom: 48px; }
  .verify-form { flex-direction: column; }
  .chapter-stats { gap: 24px; }
  .sec-head { align-items: flex-start; gap: 12px; }
  .footer2 { margin-top: 56px; }
  .f2-top { grid-template-columns: 1fr; gap: 24px; padding-top: 38px; padding-bottom: 30px; }
  .f2-col { display: none; }
  .f2-legal { flex-direction: column; }
  .tabs { top: 56px; }
}
@media (max-width: 400px) { .btn { padding: 12px 20px; } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
