/* Design for the M. Nawaz Sulaiman card (layout basics live in base.css).
   Restrained corporate palette: ink, warm paper and one terracotta accent. */

body { background: #eeebe5; }

.solo {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(12px, 4vw, 48px);
}
.solo .stage { max-width: 1000px; }

/* ---------- Palette + type ---------- */
.solo .card.theme-sunset {
  --ink: #1d2733;
  --accent: #a8532c;
  --bg: #fbfaf7;
  --text: #1d2733;
  --muted: #6f6a62;
  --primary: #1d2733;
  --line: #e4dfd6;
  --hero-bg: #1d2733;
  --btn-bg: #1d2733;
  --btn-fg: #ffffff;
  --btn-radius: 10px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Source Serif 4', Georgia, serif;

  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(29, 39, 51, .05), 0 24px 48px -32px rgba(29, 39, 51, .35);
}

/* ---------- Left: profile ---------- */
.solo .cover::after {                                         /* thin accent rule */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
}
.solo .theme-sunset .skyline { fill: rgba(255, 255, 255, .07); }

.solo .theme-sunset .avatar--center {
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px var(--line), 0 6px 16px -10px rgba(29, 39, 51, .4);
}
.avatar--icon {
  display: grid;
  place-items: end center;
  background: #ece7df;
  color: #9b9389;
}
.avatar--icon svg { width: 72%; height: 72%; }

.solo .layout-center .identity { padding-bottom: 8px; }
.solo .theme-sunset .name {
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: -.01em;
  color: var(--ink);
}
.solo .theme-sunset .role {
  margin-top: 6px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--accent);
}

.regions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: .85rem;
  color: var(--muted);
}
.regions .ic { width: 14px; height: 14px; color: var(--muted); }

/* Subtle line decoration (desktop only) */
.side-deco { display: none; }
.side-deco svg { display: block; width: 100%; height: 100%; }
.side-deco path { fill: none; stroke: #e2dbcf; stroke-width: 1; vector-effect: non-scaling-stroke; }
.side-deco path.accent { stroke: var(--accent); stroke-opacity: .55; }

/* ---------- Right: sections ---------- */
.block { margin-top: 24px; padding: 0 20px; }

.block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}
.block-title::before { content: ""; width: 18px; height: 2px; margin-right: -4px; background: var(--accent); }
.block-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Phone numbers */
.phone-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.phone-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; transition: background .2s; }
.phone-row + .phone-row { border-top: 1px solid var(--line); }
.phone-row:hover { background: #fcfaf7; }
.phone-row::before {                 /* coloured edge on hover */
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #1a9a52;
  opacity: 0;
  transition: opacity .2s;
}
.phone-row:nth-child(2)::before { background: var(--ink); }
.phone-row:hover::before { opacity: 1; }

.phone-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }

/* Phone icon tiles: gradient, top highlight, offset ring, two-tone icons */
.num-cc {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  margin: 3px;
  border-radius: 11px;
  color: #fff;
}
.num-cc::after {                       /* thin offset ring */
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid;
  border-radius: 14px;
  opacity: .35;
  pointer-events: none;
}
.num-cc .ic { width: 22px; height: 22px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.num-cc--lk {
  background: linear-gradient(145deg, #2fb36a 0%, #1a9a52 55%, #138041 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 6px 14px -8px rgba(26, 154, 82, .75);
}
.num-cc--lk::after { border-color: #1a9a52; }
.num-cc--mv {
  background: linear-gradient(145deg, #3a4a59 0%, #1d2733 55%, #111820 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 14px -8px rgba(29, 39, 51, .8);
}
.num-cc--mv::after { border-color: #1d2733; }

.num-text { display: grid; min-width: 0; }
.num-value { font-size: 1rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.num-label { font-size: .8rem; color: var(--muted); }

.phone-actions { display: flex; flex-shrink: 0; gap: 8px; }
.icon-action {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.icon-action .ic { width: 20px; height: 20px; }
.icon-action--wa { border-color: #cdebd9; background: #f2fbf6; color: #1a9a52; }
.icon-action--wa:hover { border-color: #1a9a52; background: #1a9a52; color: #fff; }
.icon-action--call { border-color: transparent; background: linear-gradient(145deg, #34414f, #1d2733 60%, #141b24); color: #fff; }
.icon-action--call:hover { background: linear-gradient(145deg, #45566a, #2b3847 60%, #1f2935); }

/* Local time */
.time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.time-tile { display: grid; align-content: start; gap: 1px; padding: 14px 16px; }
.time-tile + .time-tile { border-left: 1px solid var(--line); }
.time-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 2px; }
.time-city { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.time-city .dn { width: 15px; height: 15px; color: #c98a2e; }
.time-city .dn.is-night { color: #5b6b85; }
.time-value { font-size: 1.5rem; font-weight: 600; line-height: 1.25; color: var(--ink); font-variant-numeric: tabular-nums; }
.time-zone { padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; background: #f7f4ef; font-size: .68rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.time-date { font-size: .74rem; color: var(--muted); }

/* Save contact panel (tablet + desktop only) */
.save-panel { display: none; }
.save-qr {
  width: 120px;
  aspect-ratio: 1;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.save-qr img, .save-qr canvas { width: 100% !important; height: auto !important; }
.save-text p { margin: 0 0 14px; font-size: .88rem; line-height: 1.5; color: var(--muted); }
.save-actions { display: flex; gap: 10px; }
.save-actions .btn-save { flex: 1; height: 46px; margin: 0; }
.save-actions .btn-share { width: 46px; height: 46px; margin: 0; }
.save-actions .btn-share .ic { width: 19px; height: 19px; }

/* Buttons: flat and solid, no glow */
.solo .btn-save, .solo .btn-share {
  box-shadow: none;
  font-size: .95rem;
  font-weight: 500;
  transition: background .2s, border-color .2s, color .2s;
}
.solo .btn-save:hover, .solo .btn-share:hover { transform: none; filter: none; }
.solo .btn-save:hover { background: #2b3847; }
.solo .btn-share { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.solo .btn-share:hover { border-color: var(--ink); }

.card-actions--mobile { margin-top: 8px; }

/* ---------- Tablet ---------- */
@container card (min-width: 600px) {
  .solo .card-main { padding: 8px 34px 34px; }
  .solo .card-main > * { max-width: 560px; margin-inline: auto; }
  .block { padding: 0; }
  .save-panel {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }
  .card-actions--mobile { display: none; }
  .phone-actions { gap: 10px; }
  .icon-action { width: 48px; height: 48px; }
  .icon-action .ic { width: 22px; height: 22px; }
}

/* ---------- Desktop ---------- */
@container card (min-width: 900px) {
  .solo .card.theme-sunset { min-height: 560px; border-radius: 18px; }
  .solo .layout-center .card-side { display: flex; flex-direction: column; padding-bottom: 32px; }
  .side-deco { display: block; height: 110px; margin-top: auto; }
  .solo .card-main { padding: 40px 44px; }
  .solo .card-main > * { max-width: none; margin-inline: 0; }
  .solo .card-main > .block:first-child { margin-top: 0; }
  .solo .theme-sunset .name { font-size: 2.1rem; }
}

/* =========================================================
   Animation
   Only opacity, the outer ring and the line drawing move,
   so the icons and text never shift or jitter.
   (Switched off automatically by "reduce motion" in base.css.)
   ========================================================= */

/* Entrance: card, avatar, then content in sequence */
.solo .card.theme-sunset { animation: cardRise .7s cubic-bezier(.2, .8, .2, 1) both; }
.solo .avatar--center { animation: avatarIn .7s .25s cubic-bezier(.2, .8, .2, 1) both; }

.solo .identity > *,
.solo .card-main > * { animation: fadeUp .6s cubic-bezier(.2, .8, .2, 1) both; }

.solo .identity > :nth-child(1) { animation-delay: .35s; }
.solo .identity > :nth-child(2) { animation-delay: .45s; }
.solo .identity > :nth-child(3) { animation-delay: .55s; }
.solo .card-main > :nth-child(1) { animation-delay: .45s; }
.solo .card-main > :nth-child(2) { animation-delay: .6s; }
.solo .card-main > :nth-child(3) { animation-delay: .75s; }
.solo .card-main > :nth-child(4) { animation-delay: .75s; }

@keyframes cardRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes avatarIn {
  from { opacity: 0; transform: scale(.85); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Wavy lines draw themselves in */
.side-deco path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawLine 2.2s cubic-bezier(.45, 0, .2, 1) forwards;
}
.side-deco path:nth-child(1) { animation-delay: .6s; }
.side-deco path:nth-child(2) { animation-delay: .75s; }
.side-deco path:nth-child(3) { animation-delay: .9s; }
.side-deco path:nth-child(4) { animation-delay: 1.05s; }
.side-deco path:nth-child(5) { animation-delay: 1.2s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* Sun does one turn as the page loads, then stays still */
.time-city .dn:not(.is-night) { animation: sunTurn 1.4s .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes sunTurn { from { transform: rotate(-180deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Phones ---------- */
@container card (max-width: 599px) {
  /* tighter contact rows so the buttons never cover the number */
  .phone-row { gap: 9px; padding: 12px 10px 12px 12px; }
  .phone-main { gap: 11px; }
  .num-cc { width: 38px; height: 38px; margin: 2px; }
  .num-cc .ic { width: 20px; height: 20px; }
  .num-value { font-size: .94rem; }
  .phone-actions { gap: 6px; }

  /* stack the two clocks, each full width */
  .time-grid { grid-template-columns: 1fr; }
  .time-tile + .time-tile { border-left: 0; border-top: 1px solid var(--line); }
}
