/* Sylaris One — templates gallery page (templates/index.html). Loads after one.css. */

/* hero */
.sub-hero { padding: 160px 0 72px; }
.sub-hero .brand-try { margin: 34px auto 0; }
.sub-hero .hero-facts { margin-top: 24px; }
.sub-hero .pill { cursor: default; }
.sub-hero .pill b { white-space: nowrap; }
@media (max-width: 760px) { .sub-hero { padding: 132px 0 48px; } }

/* gallery */
.gallery { padding-top: 56px; }
.tpl[hidden] { display: none; }
.tpl .mini { flex: none; }
.tpl-inc { display: grid; gap: 6px; padding: 4px 8px 0; }
.tpl-inc li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; color: var(--text-2); font-size: .82rem; line-height: 1.45; }
.tpl-inc b { color: var(--text); font-family: var(--font-display); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.9; }
.tpl-actions { padding-top: 16px; }
.tpl-actions .btn { padding: 0 14px; }
.gallery-note { max-width: 62ch; margin: 28px auto 0; text-align: center; }
@media (max-width: 380px) { .tpl-actions { flex-direction: column; } }

/* every template includes */
.inc-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 22px; align-items: start; }
@media (max-width: 920px) { .inc-layout { grid-template-columns: 1fr; } }
.sitemap { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.sitemap ul { position: relative; display: grid; gap: 8px; }
.sitemap ul::before { content: ""; position: absolute; top: 24px; bottom: 24px; left: 17px; width: 1px; background: var(--line-2); }
.sitemap li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 10px 14px 10px 0; color: var(--text); font-family: var(--font-display); font-size: .94rem; font-weight: 600; letter-spacing: -0.02em; }
.sitemap li small { grid-column: 2; color: var(--text-3); font-family: var(--font-body); font-size: .8rem; font-weight: 400; letter-spacing: 0; }
.sm-ic { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 11px; background: #fff; color: var(--text-2); font-family: var(--font-mono); font-size: .86rem; }
.sm-root .sm-ic { border-color: var(--black); background: var(--black); color: var(--lime); }
.inc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .inc-grid { grid-template-columns: 1fr; } }
.inc { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.inc .icon-tile { margin-bottom: 16px; }
.inc h3 { margin-bottom: 8px; font-size: 1.12rem; letter-spacing: -0.03em; }
.inc p { font-size: .93rem; }

/* done-for-you band */
.dfy-stack { display: grid; padding: 10px 0; }
.dfy-stack .mini { width: 78%; }
.dfy-a { transform: rotate(-2.5deg); }
.dfy-b { justify-self: end; margin-top: -26px; transform: rotate(2.5deg); box-shadow: 0 30px 80px #000a; }
@media (max-width: 520px) { .dfy-stack .mini { width: 88%; } }

/* ---------- preview dialog ---------- */
html.pv-open { overflow: hidden; }
.pv-dialog {
  width: min(1040px, calc(100% - 32px));
  max-width: none;
  height: min(860px, calc(100dvh - 32px));
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: var(--paper);
  color: var(--text-2);
  box-shadow: 0 40px 120px #00000080;
  overflow: hidden;
}
.pv-dialog::backdrop { background: #050608b3; backdrop-filter: blur(6px); }
.pv-dialog[open] { animation: pv-in .35s var(--ease); }
@keyframes pv-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .pv-dialog[open] { animation: none; } }
.pv-shell { display: flex; flex-direction: column; height: 100%; }
.pv-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 18px 14px 26px; border-bottom: 1px solid var(--line); background: #fff; }
.pv-kicker { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-family: var(--font-display); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pv-kicker .tpl-tag:empty { display: none; }
.pv-head h2 { margin-top: 4px; font-size: 1.5rem; letter-spacing: -0.04em; }
.pv-close { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 50%; background: #fff; color: var(--text); cursor: pointer; }
.pv-close:hover { background: var(--paper); }
.pv-close svg { width: 18px; height: 18px; }
.pv-body { flex: 1; min-height: 0; overflow: auto; padding: 22px; background: repeating-linear-gradient(45deg, #f3f4f2 0 10px, #f6f7f5 10px 20px); overscroll-behavior: contain; }
.pv-window { box-shadow: var(--shadow-1); }
.pv-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 14px 18px 14px 26px; border-top: 1px solid var(--line); background: #fff; }
.pv-foot .tpl-inc { padding: 0; }
.pv-actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 760px) {
  .pv-dialog { width: calc(100% - 16px); height: calc(100dvh - 16px); border-radius: 20px; }
  .pv-head { padding: 14px 14px 12px 18px; }
  .pv-head h2 { font-size: 1.2rem; }
  .pv-body { padding: 12px; }
  .pv-foot { flex-direction: column; align-items: stretch; padding: 12px 14px; }
  .pv-foot .tpl-inc { display: none; }
  .pv-actions .btn { flex: 1; }
}

/* ---------- rich mini-site preview (uses the .t-* theme tokens) ---------- */
:where(.pv-site) {
  --m-bg: #fff; --m-ink: #0d0f14; --m-ink-2: #5a6070; --m-accent: #d7ff62; --m-accent-ink: #050608;
  --m-card: #f4f5f3; --m-line: #0506081a; --m-font: var(--font-display); --m-radius: 12px; --m-hero: none;
}
.pv-site { container-type: inline-size; background: var(--m-bg); color: var(--m-ink-2); font-size: 15px; line-height: 1.55; }
.pv-site p { margin: 0; }
.pv-nav { display: flex; align-items: center; gap: 20px; padding: 18px 32px; border-bottom: 1px solid var(--m-line); }
.pv-logo { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--m-ink); font-family: var(--m-font); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.pv-links { display: flex; gap: 22px; margin-left: auto; font-size: .84rem; }
.pv-cta, .pv-btns span { display: inline-block; padding: 10px 18px; border-radius: var(--m-radius); background: var(--m-accent); color: var(--m-accent-ink); font-family: var(--m-font); font-size: .84rem; font-weight: 700; white-space: nowrap; }
.pv-hero { padding: 64px 32px 72px; background: var(--m-hero); }
.pv-eyebrow { color: var(--m-accent-text, var(--m-ink-2)); font-family: var(--m-font); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pv-h { max-width: 14ch; margin-top: 14px !important; color: var(--m-ink); font-family: var(--m-font); font-size: clamp(2rem, 6.4cqi, 3.6rem); font-weight: var(--m-weight, 700); letter-spacing: -0.035em; line-height: 1.02; }
.pv-p { max-width: 50ch; margin-top: 18px !important; font-size: 1rem; }
.pv-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pv-btns span + span { background: transparent; color: var(--m-ink); box-shadow: inset 0 0 0 1px var(--m-line); }
.pv-sec { padding: 40px 32px; border-top: 1px solid var(--m-line); }
.pv-sh { margin-bottom: 20px !important; color: var(--m-ink); font-family: var(--m-font); font-size: 1.5rem; font-weight: var(--m-weight, 700); letter-spacing: -0.03em; }
.pv-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pv-card { display: flex; flex-direction: column; padding: 16px; border-radius: min(var(--m-radius), 18px); background: var(--m-card); }
.pv-card i { display: block; height: 110px; margin-bottom: 16px; border-radius: min(calc(var(--m-radius) * .7), 12px); background: var(--m-thumb, linear-gradient(135deg, var(--m-accent), transparent 140%)); }
.pv-card b { color: var(--m-ink); font-family: var(--m-font); font-size: 1.05rem; letter-spacing: -0.02em; }
.pv-card small { margin-top: 6px; font-size: .84rem; line-height: 1.45; }
.pv-card em { margin-top: auto; padding-top: 14px; color: var(--m-ink); font-family: var(--font-mono); font-size: .76rem; font-style: normal; }
.pv-how { background: var(--m-card); }
.pv-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pv-steps li { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--m-line); border-radius: min(var(--m-radius), 14px); background: var(--m-bg); color: var(--m-ink); font-size: .9rem; font-weight: 600; line-height: 1.35; }
.pv-steps b { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--m-accent); color: var(--m-accent-ink); font-family: var(--m-font); font-size: .82rem; }
.pv-faq { display: grid; gap: 8px; max-width: 640px; }
.pv-faq p { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border: 1px solid var(--m-line); border-radius: min(var(--m-radius), 14px); color: var(--m-ink); font-size: .92rem; font-weight: 600; }
.pv-faq span { color: var(--m-ink-2); }
.pv-footer { display: flex; align-items: center; gap: 24px; padding: 26px 32px 30px; border-top: 1px solid var(--m-line); }
.pv-footer .pv-logo { font-size: 1rem; }
.pv-footer p { max-width: 60ch; font-size: .76rem; line-height: 1.5; }
.t-spa .pv-h, .t-spa .pv-sh { letter-spacing: -0.01em; }
.t-gym .pv-h, .t-gym .pv-sh { text-transform: uppercase; letter-spacing: -0.02em; }

@container (max-width: 640px) {
  .pv-nav { padding: 14px 18px; }
  .pv-links { display: none; }
  .pv-cta { margin-left: auto; padding: 8px 14px; font-size: .78rem; }
  .pv-hero { padding: 40px 18px 46px; }
  .pv-sec { padding: 30px 18px; }
  .pv-cards, .pv-steps { grid-template-columns: 1fr; }
  .pv-card i { height: 80px; }
  .pv-footer { flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 18px; }
}

/* decorative art panel in the preview hero on wide previews */
.pv-hero { position: relative; }
@container (min-width: 760px) {
  .pv-hero::after { content: ""; position: absolute; top: 44px; right: 32px; bottom: 44px; width: 32%; border-radius: min(var(--m-radius), 22px); background: var(--m-thumb, linear-gradient(135deg, var(--m-accent), transparent 140%)); box-shadow: inset 0 0 0 1px var(--m-line); }
}
