/* ==========================================================================
   Examples page (/site/examples) — Pen redesign. Loaded after editorial.css and
   only on this page; every rule is scoped to .ed-examples so shared styles stay
   untouched.
   ========================================================================== */

.ed-examples ul { list-style: none; margin: 0; padding: 0; }
.ed-examples__band { background: var(--ed-paper-2); padding-block: 96px 120px; }
.ed-examples__section { padding-block: 120px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.ed-examples .ed-hero__l1 { font-size: clamp(40px, 10.4vw, 150px); }
.ed-examples .ed-hero__l2 { font-size: clamp(40px, 10.4vw, 150px); }
.ed-examples__l2 { text-transform: none; }
.ed-examples .ed-hero__head { row-gap: 20px; }
.ed-examples .ed-hero__intro { color: var(--ed-muted); font-weight: 400; font-size: 17px; line-height: 1.55; }
.ed-examples__hero { padding-bottom: 96px; }
.ed-examples__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
/* 19px bold: white on brand red meets WCAG AA as large text. */
.ed-examples__primary { padding: 16px 28px; font-size: 19px; }
.ed .ed-examples__secondary { padding: 16px 28px; border: 1px solid var(--ed-ink); font-size: 17px; font-weight: 500; }
.ed .ed-examples__secondary:hover { background: var(--ed-ink); color: var(--ed-paper); }

/* ── Templates ───────────────────────────────────────────────────────────── */
.ed-examples__templates-head { display: flex; flex-direction: column; gap: 20px; margin: 48px 0; }
.ed-examples__count { font-size: clamp(56px, 7.2vw, 104px); }
.ed-examples__sub { margin: 0; max-width: 520px; color: var(--ed-muted); font-size: 17px; line-height: 1.55; }
/* 16 templates: 4 rows of 4 from tablet up (2 per row on phones). */
.ed-examples__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; }
.ed-examples__card { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* The CMS template images already include a rounded phone frame, so the preview adds no border, radius or background (that drew a second corner). */
.ed-examples__preview { aspect-ratio: 250 / 528; }
.ed-examples__preview img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: top; transition: transform .5s var(--ed-ease); }
.ed-examples__card:hover .ed-examples__preview img { transform: scale(1.02); }
.ed-examples__meta { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ed-examples__category { color: var(--ed-muted); font-size: 11px; }
.ed-examples__name { margin: 0; font-family: var(--ed-display-text); font-weight: 700; font-size: 26px; line-height: 0.95; text-transform: uppercase; overflow-wrap: anywhere; }
.ed-examples__desc { margin: 0; color: var(--ed-muted); font-size: 14px; line-height: 1.5; }
.ed-examples__card-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding-top: 12px; border-top: 1px solid var(--ed-line); }
.ed-examples__preview-link, .ed-examples__start-link { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; font-size: 14px; }
.ed-examples__preview-link { font-weight: 500; }
.ed-examples__start-link { font-weight: 700; }
.ed-examples__start-link svg { color: var(--ed-red); transition: transform .25s var(--ed-ease); }
.ed-examples__start-link:hover svg { transform: translateX(3px); }
.ed-examples__preview-link:hover, .ed-examples__start-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Real pages (not in the Pen design; restyled to match) ───────────────── */
.ed-examples__real-head { display: flex; flex-direction: column; gap: 20px; margin: 48px 0; }
.ed-examples__real-title { margin: 0; }
.ed-examples__real-title .ed-display, .ed-examples__real-title .ed-contrast { font-size: clamp(44px, 6.67vw, 96px); }
.ed-examples__real-title .ed-contrast { letter-spacing: -0.06em; color: var(--ed-red); }
.ed-examples__real-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 32px; }
.ed-examples__real { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ed-examples__phone { position: relative; overflow: hidden; width: 100%; max-width: 240px; aspect-ratio: 1 / 2; border: 7px solid var(--ed-ink); border-radius: 36px; background: #0A0A0F; transition: box-shadow .3s var(--ed-ease); }
.ed-examples__phone:hover { box-shadow: 0 32px 64px rgba(12, 12, 14, 0.25); }
.ed-examples__phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ed-examples__phone-fallback { position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 20px; text-align: center; background: linear-gradient(160deg, #0A0A0F, #190A10, #0E0A1C); color: #fff; }
.ed-examples__phone-fallback .ed-mono { color: #FF6B83; font-size: 10px; }
.ed-examples__phone-fallback p { margin: 0; font-family: var(--ed-display-text); font-weight: 700; font-size: 20px; line-height: 1; text-transform: uppercase; }
.ed-examples__real-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ed .ed-examples__view { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 8px 16px; border: 1px solid var(--ed-ink); border-radius: 100px; font-size: 14px; font-weight: 500; }
.ed .ed-examples__view:hover { background: var(--ed-ink); color: var(--ed-paper); }

/* ── Includes ────────────────────────────────────────────────────────────── */
.ed-examples__includes-band { padding-block: 112px; }
.ed-examples__includes { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 704px); justify-content: space-between; gap: 48px 80px; margin-top: 48px; }
.ed-examples__includes-title { margin: 0; font-family: var(--ed-display-text); font-weight: 700; font-size: clamp(40px, 3.9vw, 56px); line-height: 0.95; text-transform: uppercase; }
.ed-examples__includes-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.ed-examples__includes-list li { display: flex; align-items: center; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--ed-line); font-size: 18px; line-height: 1.3; }
.ed-examples__includes-list svg { flex-shrink: 0; color: var(--ed-red); }

/* ── Breakpoints ─────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
    .ed-examples__grid { gap: 40px 16px; }
    .ed-examples__real-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ed-examples__includes { grid-template-columns: minmax(0, 1fr); }
}
.ed-examples__start-short, .ed-examples__more { display: none; }

/* ── Phones (Pen "Examples — Mobile (390)") ───────────────────────────────── */
@media (max-width: 760px) {
    .ed-examples__hero { padding-bottom: 48px; }
    .ed-examples .ed-hero__l1 { font-size: 13.3vw; }
    .ed-examples .ed-hero__l2 { font-size: 12.3vw; }
    .ed-examples .ed-hero__intro { font-size: 16px; }
    .ed-examples__actions { flex-direction: column; gap: 10px; margin-top: 24px; }
    .ed-examples__actions .ed-pill { flex: none; width: 100%; justify-content: center; }
    .ed-examples__band, .ed-examples__section, .ed-examples__includes-band { padding-block: 56px; }
    .ed-examples__templates-head, .ed-examples__real-head { margin: 24px 0; gap: 16px; }
    .ed-examples__count { font-size: 14.4vw; }

    /* Templates: 2 columns, no description, one action row (icon preview · use). */
    .ed-examples__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
    .ed-examples__grid.is-collapsed > li:nth-child(n+7) { display: none; }
    .ed-examples__card { gap: 10px; }
    .ed-examples__meta { gap: 4px; }
    .ed-examples__category { font-size: 10px; }
    .ed-examples__name { font-size: 21px; }
    .ed-examples__desc { display: none; }
    .ed-examples__card-actions { flex-wrap: nowrap; gap: 8px; padding-top: 10px; }
    .ed .ed-examples__preview-link { justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border: 1px solid var(--ed-line); border-radius: 50%; }
    .ed-examples__preview-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .ed-examples__start-link { margin-left: auto; min-height: 36px; font-size: 14px; white-space: nowrap; }
    .ed-examples__start-long { display: none; }
    .ed-examples__start-short { display: inline; }
    .ed .ed-examples__more { display: inline-flex; width: 100%; margin-top: 28px; padding: 16px 24px; border: 1px solid var(--ed-ink); background: transparent; color: var(--ed-ink); font-size: 17px; }
    .ed .ed-examples__more[hidden] { display: none; }

    /* Real pages: a swipe strip of phones. */
    .ed-examples__real-grid { position: relative; display: flex; gap: 14px; margin-inline: calc(var(--bk-edge, 20px) * -1); padding-inline: var(--bk-edge, 20px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--bk-edge, 20px); scrollbar-width: none; }
    .ed-examples__real-grid::-webkit-scrollbar { display: none; }
    .ed-examples__real { flex: 0 0 180px; gap: 10px; scroll-snap-align: start; }
    .ed-examples__phone { max-width: none; border-width: 6px; border-radius: 28px; }
    .ed-examples__real .ed-examples__desc { display: none; }
    .ed .ed-examples__view { margin-top: 2px; padding: 7px 14px; font-size: 13px; }

    /* Includes */
    .ed-examples__includes { margin-top: 24px; gap: 24px; }
    .ed-examples__includes-title { font-size: 38px; }
    .ed-examples__includes-list { grid-template-columns: minmax(0, 1fr); }
    .ed-examples__includes-list li { font-size: 17px; padding: 14px 0; }
}

/* Customer kits use the same four-column cards as templates, two on phones. */
/* Keep the customer action readable; the template Preview action becomes an icon on phones. */
.ed .paid-kit-grid .real-page-view-btn { width: auto; height: auto; min-height: 44px; border: 0; border-radius: 0; justify-content: flex-start; white-space: nowrap; }
.paid-kit-grid .real-page-view-btn svg { flex-shrink: 0; }
.showcase-pagination { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 48px; }
.showcase-pagination__summary { margin: 0; color: var(--ed-muted); font-size: 14px; }
.ed-examples .showcase-pagination__links { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 8px; }
.showcase-pagination__control { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--ed-line); border-radius: 8px; font-size: 14px; }
.showcase-pagination__control[aria-current="page"] { background: var(--ed-ink); border-color: var(--ed-ink); color: var(--ed-paper); }
.showcase-pagination__control[aria-disabled="true"] { color: var(--ed-muted); opacity: .55; }
a.showcase-pagination__control:hover { border-color: var(--ed-ink); }
a.showcase-pagination__control:focus-visible { outline: 2px solid var(--ed-red); outline-offset: 3px; }
@media (max-width: 760px) {
    .showcase-pagination__number:not(.is-current), .showcase-pagination__ellipsis { display: none; }
}

/* Saved captures contain the page only; give them the same phone crop as customer cards. */
.ed-examples__preview.has-snapshot { overflow: hidden; border-radius: 32px; border: 1px solid var(--ed-line); box-shadow: 0 3px 12px rgba(12,12,14,.12); }
.ed-examples__preview.has-snapshot img { object-fit: cover; }
/* Customer actions end above the divider, as requested. */
.paid-kit-grid .ed-examples__card-actions { border-top: 0; border-bottom: 1px solid var(--ed-line); padding-top: 0; padding-bottom: 12px; }
@media (max-width: 760px) { .ed-examples__preview.has-snapshot { border-radius: 22px; } }
