/* STIKES Advaita V3 — global shell (topbar, header, navigation, footer, shared components).
   Design language modelled on the UHNP reference (read-only study): Apple-style system
   typography, white/blur sticky header, pill dropdown triggers, 16px-radius menu panels,
   96px section rhythm, restrained motion. Rebuilt from scratch — no reference code reused. */

:root {
  --v3-text: #1d1d1f;
  --v3-muted: #6e6e73;
  --v3-soft: #86868b;
  --v3-blue: #0071e3;
  --v3-topbar: #2f6cde;
  --v3-bg: #f5f9fe;
  --v3-tint-1: #f2f8fd;
  --v3-tint-2: #e8f2fc;
  --v3-gray: #f5f5f7;
  --v3-line: rgba(0, 0, 0, .08);
  --v3-ease: cubic-bezier(.4, 0, .2, 1);
  --v3-ease-out: cubic-bezier(.16, 1, .3, 1);
  --v3-font: -apple-system, "system-ui", "SF Pro Text", "SF Pro Display", "Plus Jakarta Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --v3-header-h: 65px;
  --v3-gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.v3 { margin: 0; font-family: var(--v3-font); font-size: 16px; line-height: 1.5; color: var(--v3-text); background: var(--v3-bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.v3.v3-lock { overflow: hidden; }
:where(.v3) img { max-width: 100%; height: auto; display: block; }
:where(.v3) a { color: inherit; text-decoration: none; }
:where(.v3) ul { margin: 0; padding: 0; list-style: none; }
:where(.v3) :is(h1, h2, h3, p, dl, dd) { margin: 0; }
:where(.v3) button { font: inherit; color: inherit; }
:where(.v3) :focus-visible { outline: 2px solid var(--v3-blue); outline-offset: 2px; border-radius: 6px; }
#v3-main:focus { outline: none; }

.v3-container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--v3-gutter); }
.v3-skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: #fff; color: var(--v3-text); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: top .2s var(--v3-ease); }
.v3-skip:focus { top: 12px; }

/* ── Topbar ─────────────────────────────────────────────── */
.v3-topbar { background: var(--v3-topbar); color: #fff; font-size: 13px; line-height: 1.2; }
.v3-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.v3-topbar__lead { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.v3-topbar__dot { width: 6px; height: 6px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 0 rgba(52,199,89,.6); animation: v3-pulse 2.4s var(--v3-ease) infinite; }
.v3-topbar__links { display: flex; gap: 20px; }
.v3-topbar__links a { opacity: .85; transition: opacity .15s var(--v3-ease); }
.v3-topbar__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
@keyframes v3-pulse { 70% { box-shadow: 0 0 0 6px rgba(52,199,89,0); } 100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); } }

/* ── Header ─────────────────────────────────────────────── */
.v3-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); border-bottom: 1px solid var(--v3-line); transition: box-shadow .2s var(--v3-ease); }
.v3-header.is-scrolled { box-shadow: 0 1px 0 var(--v3-line), 0 8px 30px rgba(0,0,0,.06); }
.v3-header__inner { display: flex; align-items: center; gap: 24px; height: var(--v3-header-h); }
.v3-brand { flex: none; display: block; }
.v3-brand__img { height: 44px; width: auto; }
.v3-nav { flex: 1; display: none; justify-content: flex-start; margin-left: 12px; }
.v3-nav__list { display: flex; align-items: center; gap: 2px; }
.v3-nav__item { position: relative; }
.v3-nav__trigger { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border: 0; background: transparent; border-radius: 999px; font-size: 13px; line-height: 20px; font-weight: 400; color: rgba(29,29,31,.8); cursor: pointer; transition: color .15s var(--v3-ease), background-color .15s var(--v3-ease); white-space: nowrap; }
.v3-nav__trigger:hover, .v3-nav__item.is-open > .v3-nav__trigger, .v3-nav__item.is-active > .v3-nav__trigger { color: var(--v3-blue); }
.v3-nav__trigger:hover, .v3-nav__item.is-open > .v3-nav__trigger { background: rgba(0,0,0,.03); }
.v3-nav__chev { flex: none; opacity: .7; transition: transform .2s var(--v3-ease); }
.v3-nav__item.is-open .v3-nav__chev { transform: rotate(180deg); }

.v3-menu { position: absolute; top: calc(100% + 5px); left: 0; min-width: 224px; padding: 6px; background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); border: 1px solid var(--v3-line); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s var(--v3-ease), transform .18s var(--v3-ease), visibility 0s linear .18s; z-index: 5; }
.v3-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* hover bridge */
.v3-nav__item.is-open .v3-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.v3-menu__link { display: block; padding: 8px 12px; border-radius: 12px; font-size: 12px; line-height: 16px; font-weight: 500; color: #515154; white-space: nowrap; transition: background-color .15s var(--v3-ease), color .15s var(--v3-ease); }
.v3-menu__link:hover, .v3-menu__link:focus-visible { background: rgba(0,0,0,.04); color: var(--v3-blue); }
.v3-menu__link.is-active { color: var(--v3-blue); }
.v3-menu__sub { margin: 0 0 4px 12px; padding-left: 8px; border-left: 1px solid var(--v3-line); }
.v3-menu__link--sub { color: #6e6e73; }

.v3-header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.v3-header__cta { display: none; padding: 8px 16px; font-size: 13px; }

/* ── Buttons ────────────────────────────────────────────── */
.v3-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent; font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer; transition: transform .2s var(--v3-ease), background-color .2s var(--v3-ease), border-color .2s var(--v3-ease), box-shadow .2s var(--v3-ease); }
.v3-pill:hover { transform: translateY(-1px); }
.v3-pill--dark { background: var(--v3-text); color: #fff; }
.v3-pill--dark:hover { background: #000; }
.v3-pill--blue { background: var(--v3-blue); color: #fff; }
.v3-pill--blue:hover { background: #0077ed; box-shadow: 0 8px 24px rgba(0,113,227,.35); }
.v3-pill--glass { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #f5f5f7; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.v3-pill--glass:hover { background: rgba(255,255,255,.18); }
.v3-pill--ghost { background: transparent; border-color: rgba(0,0,0,.14); color: var(--v3-text); }
.v3-pill--ghost:hover { background: rgba(0,0,0,.04); }
.v3-pill--white { background: #fff; color: var(--v3-text); }
.v3-pill__arrow { transition: transform .2s var(--v3-ease); }
.v3-pill:hover .v3-pill__arrow, .v3-link:hover .v3-pill__arrow { transform: translateX(3px); }

/* ── Burger + drawer ────────────────────────────────────── */
.v3-burger { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; transition: background-color .15s var(--v3-ease); }
.v3-burger:hover { background: rgba(0,0,0,.05); }
.v3-burger__bars { position: relative; width: 18px; height: 12px; display: block; }
.v3-burger__bars i { position: absolute; left: 0; width: 100%; height: 1.6px; background: var(--v3-text); border-radius: 2px; transition: transform .28s var(--v3-ease-out), opacity .2s var(--v3-ease), top .28s var(--v3-ease-out); }
.v3-burger__bars i:nth-child(1) { top: 0; } .v3-burger__bars i:nth-child(2) { top: 5.2px; } .v3-burger__bars i:nth-child(3) { top: 10.4px; }
.v3-burger[aria-expanded="true"] i:nth-child(1) { top: 5.2px; transform: rotate(45deg); }
.v3-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.v3-burger[aria-expanded="true"] i:nth-child(3) { top: 5.2px; transform: rotate(-45deg); }

.v3-drawer { position: fixed; left: 0; right: 0; bottom: 0; top: var(--v3-drawer-top, 107px); z-index: 30; background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); opacity: 0; transform: translateY(-8px); transition: opacity .25s var(--v3-ease), transform .3s var(--v3-ease-out); overflow-y: auto; overscroll-behavior: contain; }
.v3-drawer[hidden] { display: none; }
.v3-drawer.is-open { opacity: 1; transform: none; }
.v3-drawer__panel { max-width: 560px; margin-inline: auto; padding: 8px 20px 40px; }
.v3-drawer__row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 4px; border: 0; background: transparent; border-bottom: 1px solid var(--v3-line); font-size: 17px; font-weight: 600; letter-spacing: -.01em; text-align: left; cursor: pointer; }
.v3-drawer__row[aria-expanded="true"] .v3-nav__chev { transform: rotate(180deg); }
.v3-drawer__row[aria-expanded="true"] { color: var(--v3-blue); }
.v3-drawer__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--v3-ease-out); }
.v3-drawer__sub > div { overflow: hidden; }
.v3-drawer__item.is-open .v3-drawer__sub { grid-template-rows: 1fr; }
.v3-drawer__sub a { display: block; padding: 12px 16px; font-size: 15px; color: #515154; border-radius: 12px; }
.v3-drawer__sub a:hover, .v3-drawer__sub a[aria-current="page"] { color: var(--v3-blue); background: rgba(0,0,0,.03); }
.v3-drawer__sub ul { padding: 6px 0 10px; }
.v3-drawer__sub .v3-drawer__nested { padding: 0 0 4px 16px; margin-left: 16px; border-left: 1px solid var(--v3-line); }
.v3-drawer__nested a { padding: 10px 14px; font-size: 14px; }
.v3-anchor { scroll-margin-top: calc(var(--v3-header-h) + 24px); }
.v3-anchor:target > .v3-tile { box-shadow: 0 0 0 2px var(--v3-blue); }
.v3-drawer__cta { margin-top: 28px; width: 100%; padding: 14px 24px; }

@media (min-width: 1080px) {
  .v3-nav { display: flex; }
  .v3-header__cta { display: inline-flex; }
  .v3-burger, .v3-drawer { display: none !important; }
}
@media (max-width: 640px) {
  :root { --v3-gutter: 20px; }
  .v3-topbar__links li:first-child { display: none; }
  .v3-brand__img { height: 38px; }
}

/* ── Sections / type ────────────────────────────────────── */
.v3-section { padding-block: 96px; }
.v3-section--tint1 { background: var(--v3-tint-1); } .v3-section--tint2 { background: var(--v3-tint-2); }
.v3-section--gray { background: var(--v3-gray); } .v3-section--white { background: #fff; }
.v3-eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--v3-topbar); }
.v3-h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -.03em; color: var(--v3-text); }
.v3-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.65; color: var(--v3-muted); max-width: 680px; }
.v3-head { display: grid; gap: 14px; margin-bottom: 56px; }
.v3-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--v3-blue); }
.v3-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.v3-card { background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: transform .35s var(--v3-ease-out), box-shadow .35s var(--v3-ease-out); }
a.v3-card:hover, .v3-card--hover:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.1); }

/* ── Page header (profile / placeholder) ───────────────── */
.v3-pagehead { background: linear-gradient(180deg, var(--v3-tint-1), var(--v3-bg)); padding: 56px 0 56px; border-bottom: 1px solid var(--v3-line); }
.v3-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; font-size: 13px; color: var(--v3-muted); }
.v3-crumbs a:hover { color: var(--v3-blue); }
.v3-crumbs [aria-current] { color: var(--v3-text); font-weight: 500; }
.v3-pagehead__title { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.04; font-weight: 600; letter-spacing: -.035em; max-width: 880px; }
.v3-pagehead__lead { margin-top: 18px; }

.v3-photo-placeholder { margin: 0; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; display: grid; place-items: center; align-content: center; gap: 16px; text-align: center; padding: 24px; color: #6e8fb0; background: linear-gradient(135deg, #eaf2fb 0%, #f5f9fd 45%, #e3edf7 100%); border: 1px dashed rgba(0,102,204,.28); }
.v3-photo-placeholder__icon { opacity: .8; max-width: 22%; height: auto; }
.v3-photo-placeholder__caption { display: grid; gap: 4px; }
.v3-photo-placeholder__label { font-size: clamp(15px, 2.2vw, 20px); font-weight: 600; letter-spacing: -.01em; color: var(--v3-text); }
.v3-photo-placeholder__note { font-size: 14px; color: var(--v3-muted); }
.v3-pending { max-width: 720px; padding: 40px; display: grid; gap: 14px; }
.v3-pending__badge { display: inline-flex; align-self: start; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(245,158,11,.12); color: #92580a; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.v3-pending__badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #f59e0b; }
.v3-pending__title { font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -.025em; }
.v3-pending__text { color: var(--v3-muted); font-size: 17px; line-height: 1.65; }

/* ── Profile content ───────────────────────────────────── */
.v3-prose { max-width: 760px; font-size: 18px; line-height: 1.75; color: #3a3a3c; }
.v3-prose p + p { margin-top: 1em; }
.v3-note { max-width: 760px; margin-bottom: 20px; padding: 14px 18px; border-radius: 16px; background: var(--v3-tint-2); color: #3a4f6e; font-size: 14px; line-height: 1.6; }
.v3-facts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.v3-fact { padding: 26px 28px; display: grid; gap: 6px; }
.v3-fact dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--v3-soft); }
.v3-fact dd { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; overflow-wrap: break-word; }
@media (min-width: 900px) { .v3-fact--wide { grid-column: span 2; } }
.v3-docs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 28px; }
.v3-doc { padding: 22px 24px; display: flex; align-items: center; gap: 14px; font-weight: 600; }
.v3-doc__tag { padding: 4px 10px; border-radius: 8px; background: var(--v3-tint-2); color: var(--v3-topbar); font-size: 11px; letter-spacing: .06em; }
.v3-tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.v3-tile { padding: 28px; display: grid; gap: 10px; align-content: start; min-height: 150px; }
.v3-tile__title { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.v3-tile__meta { font-size: 14px; color: var(--v3-muted); line-height: 1.55; }
.v3-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--v3-line); }

/* ── Footer ─────────────────────────────────────────────── */
.v3-footer { background: var(--v3-gray); border-top: 1px solid var(--v3-line); padding: 72px 0 28px; font-size: 13px; color: var(--v3-muted); }
.v3-footer__grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr) 1.45fr; gap: 40px; }
.v3-footer__name { font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--v3-text); margin-bottom: 10px; }
.v3-footer__title { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--v3-text); margin-bottom: 14px; }
.v3-footer__muted { line-height: 1.7; }
.v3-footer li + li { margin-top: 9px; }
.v3-footer a { transition: color .15s var(--v3-ease); overflow-wrap: anywhere; }
.v3-footer a:hover { color: var(--v3-blue); }
.v3-footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--v3-line); font-size: 12px; }
@media (max-width: 1024px) { .v3-footer__grid { grid-template-columns: repeat(2, 1fr); } .v3-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .v3-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; } .v3-footer__grid > div:last-child { grid-column: 1 / -1; } }

/* ── Motion ─────────────────────────────────────────────── */
.v3-js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--v3-ease-out) var(--v3-d, 0s), transform .8s var(--v3-ease-out) var(--v3-d, 0s); }
.v3-js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 768px) { .v3-section { padding-block: 64px; } .v3-head { margin-bottom: 36px; } .v3-pagehead { padding: 36px 0; } .v3-pending { padding: 28px 22px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .v3-js [data-reveal] { opacity: 1; transform: none; }
}

/* ── Statuta-sourced profile content ────────────────────── */
.v3-h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: var(--v3-text); margin: 0; }
.v3-timeline { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; max-width: 820px; }
.v3-timeline__item { padding: 24px 28px; display: grid; gap: 8px; }
.v3-timeline__item p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--v3-muted); }
.v3-vision { padding: 36px; display: grid; gap: 14px; max-width: 920px; background: linear-gradient(135deg, #f5f9fd, #eaf2fb); }
.v3-vision__text { margin: 0; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.4; font-weight: 600; letter-spacing: -.02em; color: var(--v3-text); }
.v3-missions { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; max-width: 920px; counter-reset: none; }
.v3-mission { padding: 22px 26px; display: grid; grid-template-columns: 40px 1fr; gap: 18px; align-items: start; }
.v3-mission p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--v3-muted); }
.v3-mission__no { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,102,204,.1); color: var(--v3-blue); font-weight: 600; font-size: 15px; }
.v3-archive { max-width: 920px; border: 1px solid var(--v3-line); border-radius: 18px; padding: 6px 22px 18px; background: #fff; }
.v3-archive summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--v3-text); }
.v3-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.v3-chips li { padding: 8px 16px; border-radius: 999px; background: var(--v3-tint-2); color: #3a4f6e; font-size: 14px; font-weight: 500; }
@media (max-width: 640px) { .v3-mission { grid-template-columns: 32px 1fr; gap: 14px; padding: 18px; } .v3-mission__no { width: 32px; height: 32px; font-size: 13px; } .v3-vision { padding: 24px; } }

/* Contact list (partials/v3/contact-items) */
.v3-maplink { display: inline-flex; align-items: center; gap: 6px; }
.v3-footer__contact { display: grid; gap: 14px; }
.v3-footer__contact li { display: grid; gap: 2px; }
.v3-footer__contact small { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--v3-muted); }
.v3-footer__contact a, .v3-footer__contact span { overflow-wrap: anywhere; }
