/* v266 — free→Academy bridge, Academy→subscription link, screenshot viewer. */

/* anchors land below the sticky site header */
#inside-academy, #family-subscription { scroll-margin-top: 84px; }

/* free → paid bridge ---------------------------------------------------- */
.fa266-bridge {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .6rem 1.4rem;
  margin: clamp(1.4rem, 3vw, 2.2rem) 0 0;
  padding: clamp(1rem, 2.2vw, 1.3rem) clamp(1rem, 2.4vw, 1.6rem);
  border-top: 1px solid rgba(47, 81, 72, .18);
}
.fa266-bridge p { margin: 0; flex: 1 1 22rem; font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.45; color: #27302c; }
.fa266-bridge .btn, .fa266-join .btn { margin-top: 0; align-self: auto; text-align: center; }
/* v266 corrective: the site has no reusable orange pill rule (btn--primary is 2px-rounded,
   the only Family pill CTA is the purple fixed .family-sticky-cta), so the pill shape is
   applied to these two CTAs only. Colour, type and focus stay those of .btn.btn--primary. */
.fa266-bridge .btn, .fa266-join .btn { border-radius: 999px; padding-left: 1.6rem; padding-right: 1.6rem; }

/* Academy → subscription ------------------------------------------------- */
.fa266-join { margin: clamp(1.2rem, 2.6vw, 1.8rem) 0 0; display: flex; justify-content: center; }

@media (max-width: 560px) {
  .fa266-bridge .btn, .fa266-join .btn { width: 100%; }
}

/* thumbnail trigger -------------------------------------------------------- */
.fa266-zoom {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: none; border-radius: 10px;
  cursor: zoom-in; font: inherit; color: inherit; text-align: left;
}
.fa266-zoom img { transition: box-shadow .2s ease, border-color .2s ease; }
.fa266-zoom:hover img { border-color: rgba(47, 81, 72, .4); box-shadow: 0 6px 22px rgba(20, 32, 28, .14); }
.fa266-zoom:focus-visible { outline: 2px solid #c96f50; outline-offset: 3px; }
.fa266-zoom__cue {
  position: absolute; right: 10px; bottom: 10px;
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: rgba(255, 255, 255, .88); color: #2f5148;
  border: 1px solid rgba(47, 81, 72, .22);
  opacity: .72; transition: opacity .2s ease;
}
.fa266-zoom:hover .fa266-zoom__cue, .fa266-zoom:focus-visible .fa266-zoom__cue { opacity: 1; }
.fa266-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* viewer ---------------------------------------------------------------- */
html.fa266-lock { overflow: hidden; }
.fa266-lb {
  padding: 0; border: 0; border-radius: 12px; background: #fff; color: #27302c;
  max-width: 94vw; max-height: 94vh; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.fa266-lb::backdrop { background: rgba(16, 24, 21, .78); }
.fa266-lb[open] { display: flex; flex-direction: column; }
.fa266-lb__bar { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid rgba(47, 81, 72, .12); }
.fa266-lb__cap { margin: 0; flex: 1; min-width: 0; font-size: .88rem; line-height: 1.4; color: #4a5551; }
.fa266-lb__close {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgba(47, 81, 72, .2); border-radius: 50%; background: #fff; color: #27302c; cursor: pointer;
}
.fa266-lb__close:hover { background: #f2f0e9; }
.fa266-lb__close:focus-visible, .fa266-lb__zoom:focus-visible { outline: 2px solid #c96f50; outline-offset: 2px; }
.fa266-lb__stage { overflow: auto; overscroll-behavior: contain; background: #faf9f6; }
.fa266-lb__zoom { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.fa266-lb__zoom img {
  display: block; width: auto; height: auto;
  max-width: 90vw; max-height: calc(90vh - 7rem);
}
.fa266-lb.is-zoomed .fa266-lb__stage { width: 90vw; height: calc(90vh - 7rem); }
.fa266-lb.is-zoomed .fa266-lb__zoom { cursor: zoom-out; }
.fa266-lb.is-zoomed .fa266-lb__zoom img { max-width: none; max-height: none; width: 1600px; }
.fa266-lb__hint { margin: 0; padding: 8px 16px; font-size: .8rem; color: #6b7570; border-top: 1px solid rgba(47, 81, 72, .12); }

@media (prefers-reduced-motion: reduce) {
  .fa266-zoom img, .fa266-zoom__cue { transition: none; }
}
