/* Astrotherapist Portal — the certified-practitioner directory.
   Same design tokens as ../portal/site.css (Karmik Architect), trimmed to
   what a listing + profile page needs: no solar-system hero here. */

:root{
  --void:#04050c;
  --deep:#0a0d1e;
  --panel:#111533;
  --line:rgba(232,182,87,.18);
  --gold:#e8b657;
  --saffron:#f0893c;
  --ink:#f4efe6;
  --muted:#9793a8;
  --green:#7fbf7f;
  --red:#e37a6b;
  --serif:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  --sans:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--void);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}
h1,h2,h3{font-family:var(--serif);font-weight:400;letter-spacing:-.01em;margin:0}

/* ---------- chrome ---------- */

.nav{
  position:sticky;top:0;z-index:60;
  display:flex;align-items:center;justify-content:space-between;
  padding:20px clamp(18px,4vw,56px);
  background:linear-gradient(to bottom,rgba(4,5,12,.92),rgba(4,5,12,.7));
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(8px);
}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none}
.brand .glyph{
  width:26px;height:26px;border-radius:50%;flex:none;
  background:radial-gradient(circle at 34% 30%,#fff3cf,var(--gold) 45%,#a8641c);
  box-shadow:0 0 18px rgba(232,182,87,.55);
}
.brand b{font-family:var(--serif);font-size:20px;font-weight:500;letter-spacing:.01em}
.brand small{display:block;color:var(--muted);font-size:11px;letter-spacing:.14em;text-transform:uppercase}
.navlinks{display:flex;gap:26px;font-size:14px;letter-spacing:.04em}
.navlinks a{color:var(--muted);text-decoration:none;transition:color .2s}
.navlinks a:hover,.navlinks a[aria-current]{color:var(--gold)}

.stars{position:fixed;inset:0;z-index:0;pointer-events:none}
.star{position:absolute;border-radius:50%;background:#fff;animation:twinkle var(--tw) ease-in-out infinite alternate}
@keyframes twinkle{from{opacity:.18}to{opacity:.95}}

.foot{
  position:relative;z-index:10;
  border-top:1px solid var(--line);
  padding:34px clamp(18px,4vw,56px);
  color:var(--muted);font-size:13px;
  display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;
}
.foot a{color:var(--muted);text-decoration:none}
.foot a:hover{color:var(--gold)}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:13px 26px;border-radius:999px;border:1px solid var(--line);
  background:rgba(17,21,51,.55);backdrop-filter:blur(8px);
  color:var(--ink);text-decoration:none;font-size:14px;letter-spacing:.06em;
  text-transform:uppercase;cursor:pointer;
  transition:transform .25s,border-color .25s,box-shadow .25s;
}
.btn:hover{transform:translateY(-2px);border-color:var(--gold);box-shadow:0 10px 34px rgba(232,182,87,.18)}
.btn.solid{background:linear-gradient(135deg,var(--gold),var(--saffron));border-color:transparent;color:#1a1103;font-weight:600}

/* ---------- layout ---------- */

.wrap{position:relative;z-index:10;max-width:1080px;margin:0 auto;padding:48px clamp(18px,4vw,40px) 80px}
.wrap.narrow{max-width:780px}
.pagehead{margin-bottom:40px}
.pagehead h1{font-size:clamp(30px,5vw,48px);margin-bottom:12px}
.pagehead p{color:var(--muted);max-width:640px;margin:0}
.back{color:var(--muted);font-size:13px;text-decoration:none;display:inline-block;margin-bottom:18px}
.back:hover{color:var(--gold)}

.card{
  background:linear-gradient(160deg,rgba(17,21,51,.75),rgba(10,13,30,.75));
  border:1px solid var(--line);border-radius:18px;padding:26px;
}
.grid{display:grid;gap:20px}
@media(min-width:760px){.grid.two{grid-template-columns:1fr 1fr}.grid.three{grid-template-columns:repeat(3,1fr)}}
/* One card at a time on a phone — an ID card squeezed to half a phone width
   drops the name onto three lines and stops reading as a credential. Two up
   only once there is genuine tablet width, three up on desktop. */
@media(min-width:700px){.grid.cards{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1000px){.grid.cards{grid-template-columns:repeat(3,1fr)}}

/* ---------- directory: ID cards, three to a row ----------
   Laid out like a physical credential rather than a blog card: portrait
   photo at the left the way it sits on an ID, details stacked beside it,
   and the licence number on its own footer line under a rule — which is
   what makes it read as a card that was *issued* rather than a profile
   someone wrote. Three across on desktop, two on tablet, one on phone. */

.astro-card{
  display:flex;flex-direction:column;gap:0;padding:0;overflow:hidden;
  text-decoration:none;color:inherit;
  transition:transform .25s,border-color .25s,box-shadow .25s;
}
.astro-card:hover{transform:translateY(-3px);border-color:var(--gold);box-shadow:0 12px 30px rgba(0,0,0,.35)}

/* gold hairline across the top, like the stripe on a printed card */
.astro-card .stripe{height:3px;background:linear-gradient(90deg,var(--gold),var(--saffron))}

.astro-card .who{display:flex;gap:13px;padding:15px 15px 12px}
.astro-card .thumb{
  width:58px;height:73px;flex:none;border-radius:6px;overflow:hidden;
  border:1px solid var(--line);
  background:radial-gradient(circle at 50% 34%,rgba(232,182,87,.18),transparent 62%),linear-gradient(160deg,#161a3c,#0a0d1e);
  display:grid;place-items:center;color:var(--muted);font-size:8px;letter-spacing:.12em;text-align:center;
}
.astro-card .thumb img{width:100%;height:100%;object-fit:cover}
.astro-card .ident{min-width:0;display:flex;flex-direction:column;gap:3px}
.astro-card h3{font-size:17px;line-height:1.2}
.astro-card .role{color:var(--gold);font-size:9.5px;letter-spacing:.12em;text-transform:uppercase}
.astro-card .badge{align-self:flex-start;margin-top:3px;font-size:10px;padding:4px 10px}

.astro-card .chips{display:flex;flex-wrap:wrap;gap:5px;padding:0 15px 13px}
.astro-card .chips .chip{font-size:10.5px;padding:3px 9px}

/* the licence line — the bit that makes it a credential */
.astro-card .licence{
  margin-top:auto;padding:9px 15px;border-top:1px solid var(--line);
  background:rgba(232,182,87,.04);
  display:flex;justify-content:space-between;align-items:center;gap:8px;
  font-size:10.5px;color:var(--muted);letter-spacing:.04em;
}
.astro-card .licence b{color:var(--ink);font-weight:500;font-variant-numeric:tabular-nums}

/* ---------- shared bits: chips, badges, disclaimer, social ---------- */

.chip{
  font-size:12px;letter-spacing:.06em;padding:5px 12px;border-radius:999px;
  border:1px solid var(--line);color:var(--gold);background:rgba(232,182,87,.06);
}
.badge{
  display:inline-flex;align-items:center;gap:7px;font-size:12px;letter-spacing:.08em;
  padding:6px 13px;border-radius:999px;text-transform:uppercase;border:1px solid var(--line);
}
.badge::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.badge.active{color:var(--green);border-color:rgba(127,191,127,.35);background:rgba(127,191,127,.08)}
.badge.expired{color:var(--red);border-color:rgba(227,122,107,.35);background:rgba(227,122,107,.08)}

.disclaimer{
  margin-top:26px;padding:16px 18px;border-left:2px solid var(--gold);
  background:rgba(232,182,87,.05);color:var(--muted);font-size:13.5px;
}
.social{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.social a{
  display:inline-flex;align-items:center;gap:9px;padding:9px 15px;border-radius:10px;
  border:1px solid var(--line);text-decoration:none;font-size:13px;color:var(--muted);
  transition:color .2s,border-color .2s;
}
.social a:hover{color:var(--gold);border-color:var(--gold)}

/* ---------- profile page ---------- */

.profile{display:grid;gap:30px;align-items:start}
@media(min-width:820px){.profile{grid-template-columns:280px 1fr}}
/* Stacked on a phone, a full-width 3:4 portrait is most of the first screen,
   so a shared profile opens on an empty photo box with the name below the
   fold. Cap it — the name and licence are the point of the page. */
@media(max-width:819px){.profile .portrait{max-width:180px}}
.portrait{
  aspect-ratio:3/4;border-radius:18px;overflow:hidden;border:1px solid var(--line);
  background:radial-gradient(circle at 50% 34%,rgba(232,182,87,.22),transparent 62%),linear-gradient(160deg,#161a3c,#0a0d1e);
  display:grid;place-items:center;color:var(--muted);font-size:12px;letter-spacing:.2em;
}
.portrait img{width:100%;height:100%;object-fit:cover}
.meta{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 22px}

.section{margin-top:36px}
.section h2{font-size:22px;margin-bottom:14px}

/* ---------- exam viva video ---------- */

.videowrap{
  position:relative;aspect-ratio:16/9;border-radius:14px;overflow:hidden;
  background:#000;border:1px solid var(--line);
}
.videowrap video,.videowrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.videowrap .empty{
  position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:24px;
  color:var(--muted);font-size:13.5px;background:linear-gradient(140deg,#151a3e,#07091a);
}

/* ---------- examination history table ---------- */

.examtable{width:100%;border-collapse:collapse;font-size:14px}
.examtable th{
  text-align:left;color:var(--muted);font-weight:500;font-size:11px;letter-spacing:.1em;
  text-transform:uppercase;padding:0 14px 10px 0;border-bottom:1px solid var(--line);
}
.examtable td{padding:12px 14px 12px 0;border-bottom:1px solid rgba(232,182,87,.08);vertical-align:top}
.examtable tr:last-child td{border-bottom:0}
.examtable .result{color:var(--gold);white-space:nowrap}

/* ---------- courses / research lists ---------- */

.itemlist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.itemlist li{padding-bottom:14px;border-bottom:1px solid rgba(232,182,87,.08)}
.itemlist li:last-child{border-bottom:0;padding-bottom:0}
.itemlist .t{font-family:var(--serif);font-size:18px}
.itemlist .t a{color:var(--gold);text-decoration:none}
.itemlist .t a:hover{text-decoration:underline}
.itemlist .s{color:var(--muted);font-size:13px;margin-top:2px}

.empty-state{color:var(--muted);font-size:14px;font-style:italic}

.hidden{display:none !important}

@media(prefers-reduced-motion:reduce){.star{animation-play-state:paused}}
