/* /example-stores (src/views/examples.js): each example store in a browser frame and a phone frame that scroll. */
.page-examples main { padding: 0 16px 72px; }
.ex-hero { max-width: 720px; margin: 48px auto 0; text-align: center; }
.ex-hero .lede { margin: 0 auto; }
.ex-note { color: var(--muted); font-size: .95rem; margin: 14px auto 0; max-width: 560px; }
.ex-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.ex-jump a { padding: 7px 14px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--fg); font-weight: 600; font-size: .92rem; text-decoration: none; }
.ex-jump a:hover { border-color: var(--brand-dark); }

.ex-store { max-width: 1180px; margin: 40px auto 0; padding: 28px; border-radius: 28px; background: linear-gradient(160deg, #eef5e8, #d5e5c9); scroll-margin-top: 72px; }
.ex-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-bottom: 22px; }
.ex-label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; font-size: 1rem; letter-spacing: 0; }
.ex-pill { display: inline-block; background: var(--brand-ink); color: #fff; font: 900 1rem/1 var(--font-head); padding: 11px 18px; border-radius: 999px; }
.ex-pill b { color: var(--brand); font-weight: 900; }
.ex-name { font: 800 1.15rem/1.2 var(--font-head); color: #2c3a24; }

.ex-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid rgba(24,33,15,.08); }
.ex-tabs button { white-space: nowrap; border: 0; background: transparent; font: 600 .92rem/1 "Inter", system-ui, sans-serif; color: #2c3a24; padding: 10px 14px; border-radius: 999px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ex-tabs button[aria-pressed="true"] { background: var(--brand-dark); color: #fff; }
.ex-tabs button:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 2px; }

.ex-stage { display: flex; align-items: flex-start; gap: 28px; }
.ex-browser { flex: 1 1 auto; min-width: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px rgba(24,33,15,.2); }
.ex-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #f1f1ef; border-bottom: 1px solid #e3e3df; }
.ex-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d6d6d1; }
.ex-bar span { margin-left: 10px; font-size: .8rem; color: #7a7f78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-browser .ex-screen { height: 600px; }

.ex-phone { flex: 0 0 300px; padding: 10px; border-radius: 44px; background: #18210f; box-shadow: 0 24px 60px rgba(24,33,15,.25); }
.ex-phone .ex-screen { height: 614px; border-radius: 34px; }

.ex-screen { position: relative; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; background: #f4f4f1; }
.ex-screen:focus-visible { outline: 3px solid var(--brand-dark); outline-offset: -3px; }
.ex-screen img { display: block; width: 100%; height: auto; background: #f4f4f1; }
.ex-page[hidden] { display: none; }

.ex-yours { margin: 20px 0 0; text-align: center; font-weight: 600; color: #2c3a24; }
.ex-yours b { font-family: var(--font-head); font-weight: 900; }
.ex-yours a { margin-left: 6px; color: var(--brand-dark); font-weight: 700; white-space: nowrap; }
.ex-cta { max-width: 640px; margin: 72px auto 0; text-align: center; }
.ex-cta .lede { margin: 0 auto 26px; }

/* Tablets and phones: the phone first, the computer view under it, both a little shorter. */
@media (max-width: 1000px) {
  .ex-hero { margin-top: 28px; }
  .ex-note { font-size: .9rem; }
  .ex-jump { gap: 6px; margin-top: 18px; }
  .ex-jump a { padding: 6px 12px; font-size: .88rem; }
  .ex-store { padding: 18px 14px 22px; border-radius: 22px; margin-top: 28px; }
  .ex-top { flex-direction: column; align-items: stretch; margin-bottom: 18px; }
  .ex-label { justify-content: center; text-align: center; }
  .ex-pill { font-size: .92rem; }
  .ex-tabs { align-self: center; }
  .ex-stage { flex-direction: column; align-items: center; gap: 20px; }
  .ex-phone { order: -1; flex-basis: auto; width: 264px; padding: 9px; border-radius: 40px; }
  .ex-phone .ex-screen { height: 520px; border-radius: 31px; }
  .ex-browser { width: 100%; }
  .ex-browser .ex-screen { height: 420px; }
}
/* Phones: only the phone screen scrolls, and it never fills the window, so a swipe beside it or above it always
   moves the page. The computer view is a still picture of the page's top (public/js/examples.js loads no more). */
@media (max-width: 600px) {
  .ex-phone .ex-screen { height: 520px; max-height: 62vh; }
  .ex-browser .ex-screen { height: 300px; overflow: hidden; }
}
@media (max-width: 380px) {
  .ex-pill { font-size: .85rem; line-height: 1.25; padding: 9px 14px; border-radius: 18px; }
  .ex-tabs button { padding: 9px 10px; font-size: .85rem; }
  .ex-phone { width: 244px; }
  .ex-phone .ex-screen { height: 480px; }
}
