/* ==========================================================================
   Minkom wa Ilaykom · shared styles (all pages)
   One deliberate look: white ground, signal yellow, ink black.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --sun: #FFCF2D;
  --sun-2: #FFE27A;
  --ink: #0B0B0C;
  --ink-2: #17171A;
  --paper: #FFFFFF;
  --mist: #F4F3EF;
  --soft: #5D5C58;
  --line: rgba(11, 11, 12, .12);
  --line-inv: rgba(255, 255, 255, .16);

  --f: "Plus Jakarta Sans";
  --ar: "IBM Plex Sans Arabic";
  --tr: -.035em;

  --gut: clamp(16px, 4vw, 56px);
  --nav: 84px;
  --wrap: 1240px;
  --r-lg: 30px;
  --r-md: 22px;
  --r-sm: 14px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);

  color-scheme: light;
}

/* ---------- reset & type ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--nav)); }
body {
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--f), var(--ar), system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }   /* width/height attributes set the ratio only */
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-weight: 600; letter-spacing: var(--tr); line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(36px, 5vw, 72px); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--soft); max-width: 580px; text-wrap: pretty; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ar { font-family: var(--ar); }

/* ---------- buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer;
  transition: transform .2s;
}
.pill:hover { transform: translateY(-2px); }
.pill .arr { transition: transform .2s; }
.pill:hover .arr { transform: translateX(3px); }
.sun { background: var(--sun); color: var(--ink); }
.dark { background: var(--ink); color: var(--paper); }
.line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }

/* Live dot: the pulse is a scaled ring (transform + opacity), so it never repaints the page. */
.dot {
  position: relative; display: inline-block; flex: none;
  width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #1BA35B);
}
.dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: inherit; animation: ring 1.8s ease-out infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .6; } to { transform: scale(3); opacity: 0; } }

/* ---------- tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); font-size: 12.5px; font-weight: 600; }
.tag.y { background: var(--sun); color: var(--ink); }

/* ---------- avatar stack (the edition's speakers) ---------- */
.stack { display: flex; }
.stack img {
  width: var(--av, 40px); height: var(--av, 40px); border: 2px solid var(--av-ring, var(--paper)); border-radius: 50%;
  object-fit: cover; object-position: 50% 15%;
}
.stack img + img { margin-left: calc(var(--av, 40px) * -.28); }

/* ---------- photo hero (event and speaker pages) ---------- */
.ph-hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  min-height: min(880px, calc(100svh - var(--nav))); padding-block: clamp(48px, 8vh, 96px);
  background: var(--ink); color: var(--paper);
}
.ph-hero > picture, .ph-hero > picture img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ph-hero > picture img { animation: settle 2.4s var(--ease-out) both; }
.ph-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--shade); }
@keyframes settle { from { transform: scale(1.08); } }

/* ---------- portrait card + stage spotlight ----------
   Photos rest in black and white; colour follows the cursor in a soft circle, the card tilts toward it
   and the name underlines. js/site.js adds the colour copy (.co) inside [data-spotlight] containers. */
.pic { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-md); background: rgba(0, 0, 0, .08); }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spot figcaption b { align-self: flex-start; font-weight: 600; letter-spacing: -.01em; }
@media (hover: hover) {
  .spot { transition: transform .5s var(--ease-out); }
  .spot .pic img:first-child { filter: grayscale(1) contrast(1.05); }
  .spot .co { clip-path: circle(0 at var(--mx, 50%) var(--my, 35%)); transition: clip-path .55s var(--ease-out); }
  .spot .pic::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 35%), rgba(255, 207, 45, .28), transparent 42%);
  }
  .spot figcaption b { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease-out); }
  .spot:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); }
  .spot:hover .co { clip-path: circle(48% at var(--mx, 50%) var(--my, 35%)); }
  .spot:hover .pic::after { opacity: 1; }
  .spot:hover figcaption b { background-size: 100% 2px; }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px);
  height: var(--nav); padding-inline: var(--gut);
  background: var(--paper);
  transition: background-color .35s, color .35s;
}
/* in-app browsers (WhatsApp, Instagram) report a top inset under their own header: fill it so the page never shows above the bar */
.nav::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: env(safe-area-inset-top, 0px); background: inherit; }
.logos { display: flex; align-items: center; gap: 20px; flex: none; }
.logos .mk { height: 42px; width: auto; }
.logos .nj { height: 38px; width: auto; }
.logos i { width: 1px; height: 32px; background: currentColor; opacity: .18; }
.nav ul { list-style: none; display: flex; gap: clamp(16px, 2vw, 28px); margin-left: auto; font-size: 14.5px; }
.nav ul a { opacity: .78; white-space: nowrap; }
.nav ul a:hover, .nav ul a[aria-current] { opacity: 1; }
.nav .pill { height: 44px; padding: 0 20px; }
.nav .pill .s { display: none; }
.mnu {
  display: none; position: relative; flex: none;
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--mist); cursor: pointer;
}
.mnu i { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, top .25s; }
.mnu i:first-child { top: 17px; }
.mnu i:last-child { top: 25px; }
.nav.open .mnu i { top: 21px; }
.nav.open .mnu i:first-child { transform: rotate(45deg); }
.nav.open .mnu i:last-child { transform: rotate(-45deg); }
/* over the dark season scene */
.nav.ondark { background: var(--ink); color: var(--paper); }
.nav.ondark .logos img { filter: brightness(0) invert(1); }
.nav.ondark .mnu { background: rgba(255, 255, 255, .12); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--paper); padding-block: 56px 40px; }
.foot .row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot .mk { filter: invert(1); }
.foot small { color: rgba(255, 255, 255, .6); font-size: 13px; }
.foot small a { text-decoration: underline; }

/* ---------- dialogs (placeholders for the WordPress forms) ---------- */
.dlg {
  margin: auto; border: 0; border-radius: 24px; width: min(460px, 100% - 32px);
  background: var(--paper); color: var(--ink); box-shadow: 0 40px 120px rgba(0, 0, 0, .35);
}
.dlg::backdrop { background: rgba(0, 0, 0, .55); }
.dlg .in { display: grid; gap: 14px; padding: 32px; }
.dlg h3 { font-size: 26px; }
.dlg p { color: var(--soft); font-size: 15px; }
.dlg .note { background: var(--mist); border-radius: var(--r-sm); padding: 14px 16px; font-size: 13.5px; }
.dlg .pill { justify-self: start; }

/* ---------- FAQ (details) ---------- */
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; justify-content: space-between; gap: 20px; padding: 22px 0;
  list-style: none; cursor: pointer; font-weight: 600; font-size: clamp(17px, 1.4vw, 20px); letter-spacing: -.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #F0F0F2; transition: background-color .3s; }
.qa summary i::before, .qa summary i::after {
  content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; border-radius: 2px; background: var(--ink);
}
.qa summary i::after { transform: rotate(90deg); transition: transform .3s; }
.qa details[open] summary i { background: var(--sun); }
.qa details[open] summary i::after { transform: rotate(0); }
.qa details p { padding: 0 48px 24px 0; color: var(--soft); }

/* ---------- entrance motion ---------- */
.w { display: inline-block; opacity: 0; transform: translateY(.35em); animation: rise .9s var(--ease-out) forwards; }
.fade { opacity: 0; animation: rise .9s ease forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal { transition: opacity .9s ease, transform .9s var(--ease-out); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(28px); }


/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 12px; }
  .nav .pill { margin-left: auto; }
  .mnu { display: block; }
  .nav ul {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    margin: 0; padding: 8px var(--gut) 20px; background: var(--paper); border-top: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .25);
  }
  .nav.open ul { display: flex; }
  .nav.ondark ul { background: var(--ink); }
  .nav ul a { display: block; padding: 14px 0; font-size: 18px; font-weight: 600; opacity: 1; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  :root { --nav: 72px; }
  .nav { gap: 8px; }
  .logos { gap: 12px; }
  .logos .mk { height: 32px; }
  .logos .nj { height: 28px; }
  .logos i { height: 26px; }
  .nav .pill { padding: 0 16px; font-size: 14px; }
}
@media (max-width: 400px) {
  .logos .mk { height: 28px; }
  .logos .nj { height: 24px; }
  .nav .pill .l { display: none; }
  .nav .pill .s { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .w, .fade, .dot::after, .ph-hero > picture img { animation: none; opacity: 1; transform: none; }
  .reveal { transition: none; }
}

/* ---------- WordPress: states and admin bar ---------- */
.pill.is-off { opacity: .55; cursor: default; pointer-events: none; }
.mk-admin-note { padding: 14px 16px; border: 1.5px dashed currentColor; border-radius: var(--r-sm); font-size: 14px; }
.admin-bar .nav { top: calc(env(safe-area-inset-top, 0px) + 32px); }
@media (max-width: 782px) { .admin-bar .nav { top: calc(env(safe-area-inset-top, 0px) + 46px); } }
@media (max-width: 600px) { .admin-bar .nav { top: env(safe-area-inset-top, 0px); } }   /* the admin bar scrolls away on small screens */
.dlg .dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dlg .x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--mist); font-size: 22px; line-height: 1; cursor: pointer; }
