/* Clone-specific styles: replacements for Stencil component styling that the
   original injected at runtime (ionic-sub-header), the Docs article layout
   (the live-served CSS set for restvo.com ships only styles.min.css +
   pages/home.min.css, so the doc layout lives here), and small admin helpers.
   Everything else comes from the site's own compiled CSS. */

/* ── ionic-sub-header clone (from assets/stencil/components/ionic-sub-header) */
.sub-header-clone {
  font-family: Inter, "Inter UI", Helvetica, Arial, sans-serif;
  position: sticky;
  top: -.5px;
  z-index: 99;
  background: #020814;
  color: #fff;
  font-size: 13px;
}
.sub-header-clone > .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}
.sub-header-clone ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 10px 0;
}
.sub-header-clone ul li { display: flex; align-items: center; }
.sub-header-clone ul li + li::before {
  content: '/';
  margin: 0 8px;
  color: rgba(255, 255, 255, .4);
}
.sub-header-clone ul[slot="right"] li + li::before,
.sub-header-clone .container > ul:last-of-type li + li::before { content: none; }
.sub-header-clone .container > ul:last-of-type li { margin-left: 20px; }
.sub-header-clone a { color: rgba(255, 255, 255, .75); text-decoration: none; font-weight: 600; }
.sub-header-clone a:hover, .sub-header-clone a.active { color: #fff; }
.sub-header-clone__toggle { display: none; }

/* ── Docs layout (guide index + guide pages) ─────────────────────────────── */
.docs-main {
  font-family: Inter, "Inter UI", Helvetica, Arial, sans-serif;
  display: flex;
  gap: 48px;
  align-items: flex-start;
  padding-top: 48px;
  padding-bottom: 72px;
}
.docs-main aside { flex: 0 0 240px; }
.docs-main aside .sticky-wrapper { position: sticky; top: 96px; }
.docs-main aside h4 {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: #73849a; margin: 0 0 12px;
}
.docs-main aside ul { list-style: none; margin: 0 0 24px; padding: 0; }
.docs-main aside ul li { margin: 0 0 8px; }
.docs-main aside ul a { color: #4f6379; text-decoration: none; font-size: 14px; line-height: 1.45; }
.docs-main aside ul a:hover, .docs-main aside ul a.active { color: #0053e2; }
.docs-main aside ul a.nav-level-heading3 { padding-left: 14px; font-size: 13px; }
.docs-main .main-col { flex: 1 1 auto; min-width: 0; max-width: 760px; }
.docs-main .main-col h1 { font-size: 36px; line-height: 1.2; margin: 0 0 12px; color: #020814; }
.docs-main .main-col p.lg { font-size: 19px; line-height: 1.55; color: #4f6379; margin: 0 0 28px; }
.docs-main article { font-size: 16px; line-height: 1.7; color: #27384c; }
.docs-main article h2 { font-size: 24px; margin: 36px 0 12px; color: #020814; }
.docs-main article h3 { font-size: 18px; margin: 26px 0 8px; color: #020814; }
.docs-main article p { margin: 0 0 14px; }
.docs-main article ul, .docs-main article ol { margin: 0 0 14px; padding-left: 22px; }
.docs-main article li { margin-bottom: 6px; }
.docs-main article a { color: #0053e2; }
.docs-main article code {
  font-family: "SF Mono", Menlo, Consolas, monospace; font-size: .92em;
  background: #f0f4f8; padding: 1px 5px; border-radius: 3px;
}
.docs-main article .callout {
  background: #f4f8ff; border-left: 3px solid #4d8dff; border-radius: 0 6px 6px 0;
  padding: 12px 16px; margin: 0 0 16px;
}
@media (max-width: 860px) {
  .docs-main { flex-direction: column; gap: 8px; padding-top: 32px; }
  .docs-main aside { flex: none; }
  .docs-main aside .sticky-wrapper { position: static; }
}

/* Docs index cards */
.docs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.docs-cards a {
  display: block; background: #fff; border: 1px solid #e3eaf2; border-radius: 8px;
  padding: 22px; text-decoration: none; transition: .2s box-shadow, .2s border-color;
}
.docs-cards a:hover { border-color: #b9cfe8; box-shadow: 0 6px 20px rgba(2, 8, 20, .08); }
.docs-cards h3 { margin: 0 0 8px; font-size: 18px; color: #020814; }
.docs-cards p { margin: 0; font-size: 14px; line-height: 1.55; color: #4f6379; }

/* "More guides" list at the foot of a guide page */
.docs-more { margin-top: 56px; border-top: 1px solid #e3eaf2; padding-top: 24px; }
.docs-more h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #73849a; margin: 0 0 12px; }
.docs-more ul { list-style: none; margin: 0; padding: 0; }
.docs-more ul li { margin-bottom: 8px; }
.docs-more ul a { color: #0053e2; text-decoration: none; font-weight: 600; font-size: 15px; }

/* ── Split-section screenshots keep their natural aspect ───────────────────
   The theme fixes #agnostic .graphics at 560x708 and lets #native .graphics
   stretch to the section height; both squash the demo screenshots. Let the
   width stand and let height follow the image's own aspect ratio. */
#page-home #native .graphics,
#page-home #agnostic .graphics {
  height: auto !important;
  align-self: flex-start;
}

/* ── Demo screenshot lightbox (wired in SiteBehaviors) ───────────────────── */
img[src*="/img/demo-"] { cursor: zoom-in; }
.demo-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(2, 8, 20, .92);
  display: none; align-items: center; justify-content: center;
  flex-direction: column; padding: 28px;
}
.demo-lightbox.open { display: flex; }
.demo-lightbox img {
  max-width: min(1240px, 94vw); max-height: 84vh;
  width: auto; height: auto;
  border-radius: 8px; background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
  cursor: zoom-out;
}
.demo-lightbox__caption {
  color: #d7e3f2; font-family: Inter, "Inter UI", Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 1.5; margin-top: 16px; text-align: center;
  max-width: 720px;
}
.demo-lightbox__close {
  position: absolute; top: 16px; right: 20px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .08); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.demo-lightbox__close:hover { background: rgba(255, 255, 255, .2); }


/* Guide screenshots: never distort — scale to the column, keep the aspect. */
.docs-main article figure.doc-shot { margin: 28px 0; }
.docs-main article figure.doc-shot img {
  display: block; max-width: 100%; height: auto;
  border: 1px solid #e3eaf2; border-radius: 8px;
}
.docs-main article figure.doc-shot figcaption {
  font-size: 13.5px; line-height: 1.5; color: #73849a; margin-top: 8px;
}


/* Hero: the theme pads the slider hero 200px top / 220px bottom and forces an
   860px min-height — at desktop heights the headline starts a third of the way
   down the screen. Tighten it on every page that uses the hero (Calvin,
   2026-11-23): menu and hero content belong in the first screenful. */
#page-home #slide-ionic-react {
  -webkit-padding-before: 88px !important;
  padding-block-start: 88px !important;
  -webkit-padding-after: 84px !important;
  padding-block-end: 84px !important;
}
#page-home #ionic-slider { min-height: 0; }
@media (max-width: 767px) {
  #page-home #slide-ionic-react {
    -webkit-padding-before: 56px !important;
    padding-block-start: 56px !important;
    -webkit-padding-after: 64px !important;
    padding-block-end: 64px !important;
  }
}

/* ── Admin ───────────────────────────────────────────────────────────────── */
.admin-body { background: #f4f7fa; font-family: Inter, "Inter UI", Helvetica, Arial, sans-serif; color: #193455; }

/* SplitCards (front page, Calvin 2026-11-24): the three card screenshots
   share one aspect ratio; force them to the column width so all three
   render at the same height and the titles + texts align in a row, with
   a real gap so the screenshots never touch. */
#page-home #build-with-web.split ul { column-gap: 28px; }
#page-home #build-with-web.split li img { width: 100%; height: auto; }
