/* ════════════════════════════════════════════════════════════
   sh-brand.css — Skylark preset extras + Brand Kit surfaces
   Loaded after sh-theme.css (app) and sh-login.css (login pages).
   Colours come from theme tokens, so the showcase follows whatever
   preset/primary colour Theme Studio has saved. Skylark-only touches
   are scoped to body[data-preset="skylark"].
   ════════════════════════════════════════════════════════════ */

:root {
  --sk-lime: #D4E157;        /* brochure "हॉस्पीटल" highlight */
  --sk-blue: #1E5AA8;        /* logo ring blue */
}

/* ---------- Skylark preset: app chrome ---------- */
body[data-preset="skylark"] { --depth: .35; }

/* Brand tri-colour stripe across the top bar (teal → logo blue → lime) */
body[data-preset="skylark"] .topbar::before {
  height: 3px; opacity: 1;
  background: linear-gradient(90deg, var(--accent) 0%, var(--sk-blue) 55%, var(--sk-lime) 100%);
}

/* Active sidebar item: brand teal (base rule carries a red tint from an earlier build) */
body[data-preset="skylark"] .tablists li.active > a {
  background: linear-gradient(90deg, var(--accent-soft) 0%, color-mix(in srgb, var(--accent-soft) 35%, transparent) 100%);
}
body[data-preset="skylark"] .sh-sidebar .nav-item.active > .nav-link {
  background: linear-gradient(90deg, var(--accent-soft) 0%, color-mix(in srgb, var(--accent-soft) 35%, transparent) 100%);
  box-shadow: inset 3px 0 0 var(--accent);
}

/* Theme Studio + Appearance preset swatches */
.ts-preset-card.preset-skylark     { --ts-mock-bg:#F3F8F8; --ts-mock-surface:#FFF; --ts-mock-border:#DAE7E7; --ts-mock-ink:#0E2A2C; --ts-mock-muted:#56706F; --ts-mock-accent:#1A7A7E; --ts-mock-accent-ink:#FFF; --ts-mock-accent-soft:#DCEFEE; --ts-mock-amber-soft:#FEF3C7; --ts-mock-amber:#D97706; --ts-mock-red-soft:#FEE2E2; --ts-mock-red:#DC2626; }
.sh-app-preset-card.preset-skylark { --sh-mock-bg:#F3F8F8; --sh-mock-surface:#FFF; --sh-mock-border:#DAE7E7; --sh-mock-ink:#0E2A2C; --sh-mock-muted:#56706F; --sh-mock-accent:#1A7A7E; --sh-mock-accent-ink:#FFF; --sh-mock-accent-soft:#DCEFEE; --sh-mock-amber-soft:#FEF3C7; --sh-mock-amber:#D97706; --sh-mock-red-soft:#FEE2E2; --sh-mock-red:#DC2626; }
.ts-preset-card.preset-skylark .ts-mock-bar,
.sh-app-preset-card.preset-skylark .sh-app-mock-bar { border-top: 3px solid var(--sk-blue); }

/* ---------- Brand showcase (login hero + Brand Kit preview) ---------- */
.sk-showcase {
  --sk-ink: #FFFFFF;
  --sk-ink-2: rgba(255,255,255,.82);
  --sk-line: rgba(255,255,255,.18);
  color: var(--sk-ink);
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--accent) 85%, white) 0%, transparent 55%),
    linear-gradient(150deg, var(--accent-dark) 0%, var(--accent) 48%, var(--link-2) 100%);
  position: relative; overflow: hidden; isolation: isolate;
}
.sk-preview { border-radius: var(--radius-lg, 12px); padding: 24px; min-height: 320px; box-shadow: var(--shadow-md); }

.sk-show-top { display: flex; align-items: center; gap: 14px; }
.sk-show-logo {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: #fff; padding: 3px;
  box-shadow: 0 0 0 4px rgba(255,255,255,.18), 0 8px 24px rgba(0,0,0,.25);
}
.sk-show-name  { font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.sk-show-local { font-size: 17px; font-weight: 700; color: var(--sk-lime); margin-top: 2px; }
.sk-show-tagline {
  margin-top: 18px; font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--sk-ink-2);
}
.sk-show-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sk-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: rgba(255,255,255,.12); border: 1px solid var(--sk-line);
}
.sk-pill:empty { display: none; }
.sk-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--sk-lime); box-shadow: 0 0 0 0 rgba(212,225,87,.7); animation: sk-pulse 2s infinite; }
@keyframes sk-pulse { 70% { box-shadow: 0 0 0 9px rgba(212,225,87,0); } 100% { box-shadow: 0 0 0 0 rgba(212,225,87,0); } }

.sk-show-highlights {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px;
}
.sk-show-highlights li {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 9px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; line-height: 1.35;
  background: rgba(255,255,255,.08); border: 1px solid var(--sk-line);
}
.sk-show-highlights li::before {
  content: ""; flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%;
  background: var(--sk-lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%230E2A2C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.sk-show-contact { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--sk-ink-2); }

/* ---------- Login page hero (replaces the plain brand panel) ---------- */
.lp-brand.sk-showcase { background-color: var(--accent-dark); }
.lp-brand.sk-showcase::before {
  /* slow drifting light — keeps the panel alive without distracting */
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.16), transparent 38%),
    radial-gradient(circle at 85% 85%, color-mix(in srgb, var(--sk-lime) 22%, transparent), transparent 42%);
  animation: sk-drift 18s ease-in-out infinite alternate;
}
@keyframes sk-drift { to { transform: translate3d(3%, -2%, 0) scale(1.06); } }
.lp-brand.sk-showcase .lp-tiny { color: rgba(255,255,255,.7); }
.lp-brand.sk-showcase .lp-pitch:empty { display: none; }
/* Front CMS notices ("What's new") on the dark hero */
.lp-brand.sk-showcase .lp-news { margin-top: 24px; }
.lp-brand.sk-showcase .lp-news-label { color: rgba(255,255,255,.75); }
.lp-brand.sk-showcase .lp-news-item { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); border-left-color: var(--sk-lime); box-shadow: none; }
.lp-brand.sk-showcase .lp-news-item h4 { color: #fff; }
.lp-brand.sk-showcase .lp-news-item p,
.lp-brand.sk-showcase .lp-news-meta { color: rgba(255,255,255,.78); }
.lp-brand.sk-showcase .lp-news-read-more { color: #0E2A2C; background: var(--sk-lime); }

.sk-hero-main { max-width: 620px; margin-block: auto; padding-block: 24px; }
.sk-hero-main .sk-show-highlights { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.sk-hero-main .sk-show-logo { width: 96px; height: 96px; }
.sk-hero-main .sk-show-name { font-size: clamp(28px, 3.2vw, 40px); }
.sk-hero-main .sk-show-local { font-size: clamp(20px, 2.2vw, 26px); }
.sk-hero-welcome { margin-top: 22px; font-size: 15.5px; line-height: 1.6; color: var(--sk-ink-2); max-width: 520px; }

.sk-hero-contact {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px;
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--sk-line);
}
.sk-hero-contact a, .sk-hero-contact div { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--sk-ink-2); }
.sk-hero-contact a:hover { color: #fff; }
.sk-hero-contact svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; stroke: var(--sk-lime); }
.sk-hero-contact strong { display: block; color: #fff; font-size: 13.5px; }
.sk-hero-contact > div:last-child { grid-column: 1 / -1; }

/* Heartbeat line along the bottom of the hero */
.sk-ecg { position: absolute; left: 0; right: 0; bottom: 56px; height: 60px; z-index: -1; opacity: .35; pointer-events: none; }
.sk-ecg path { fill: none; stroke: var(--sk-lime); stroke-width: 2; stroke-dasharray: 900; stroke-dashoffset: 900; animation: sk-ecg 4.5s linear infinite; }
@keyframes sk-ecg { 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -900; } }

/* Form side: brand chip above the heading */
.sk-form-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.sk-form-brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); }
.sk-form-brand .n { font-weight: 800; color: var(--ink); line-height: 1.2; }
.sk-form-brand .t { font-size: var(--fs-micro); color: var(--muted); }
@media (min-width: 769px) { .sk-form-brand.sk-mobile-only { display: none; } }

/* Entrance */
.sk-rise { animation: sk-rise .6s cubic-bezier(.2,.7,.2,1) both; }
.sk-rise.d1 { animation-delay: .08s; } .sk-rise.d2 { animation-delay: .16s; } .sk-rise.d3 { animation-delay: .24s; }
@keyframes sk-rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Dashboard welcome banner ---------- */
.sk-banner {
  border-radius: var(--radius-lg, 12px); padding: 18px 22px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}
.sk-banner::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--sk-lime) 30%, transparent), transparent 65%);
  z-index: -1;
}
.sk-banner .sk-show-logo { width: 54px; height: 54px; }
.sk-banner-text { flex: 1 1 260px; min-width: 0; }
.sk-banner-greet { font-size: 20px; font-weight: 800; line-height: 1.2; }
.sk-banner-sub { font-size: 13.5px; color: var(--sk-ink-2); margin-top: 3px; }
.sk-banner-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.sk-banner .sk-pill { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .sk-pulse, .lp-brand.sk-showcase::before, .sk-ecg path, .sk-rise { animation: none !important; }
  .sk-ecg path { stroke-dashoffset: 0; }
}

/* Dashboard banner: launch the inauguration ceremony */
.sk-banner .sk-inaug-btn { text-decoration: none; color: #3A0A12; font-weight: 800; border: 0;
  background: linear-gradient(180deg, #FFE48A, #F5C542 55%, #E0A526); box-shadow: 0 6px 18px rgba(245,197,66,.35); }
.sk-banner .sk-inaug-btn:hover { color: #3A0A12; filter: brightness(1.05); }
