/* ==========================================================================
   Festive offer list — FEATURE variant (design 1d)
   Editorial zig-zag, image-first. Page: /festive/dining/my-favorite-sweetest-gift

   Layers ON TOP of assets/festive/festive-accordion.css + .js.
   Opt in:  <section class="fa-list fa-list--feature" data-fa-noscroll …>

   Uses ONLY existing variables from assets/css/_theme.css — no new custom
   properties are declared in this file. Light/dark theme switch works as-is.

   Behaviour (festive-accordion.js, data-fa-* contract):
   - Collapsed: description clamped to 3 lines + first 4 inclusions.
   - Learn more: row expands in place — full description, remaining
     inclusions ([data-fa-panel]) and ordering note. Label → "Show less".
   - Photo keeps its size and is sticky (≥768px).

   MOBILE FIRST: base = phones. Only min-width queries (768 / 1024).
   ========================================================================== */

.fa-list--feature {
  gap: 56px;
  font-family: var(--text-sans);
  color: var(--foreground);
}

/* Optional section head */
.ff-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ff-head__eyebrow,
.fa-list--feature .fa-offer__when {
  margin: 0;
  font-family: var(--text-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-foreground);
}

.ff-head__title {
  margin: 0;
  font-family: var(--text-serif);
  font-weight: 400;
  font-size: var(--text-4xl);
  line-height: 1.05;
  color: var(--foreground);
}

.ff-head__rule {
  width: 40px;
  height: 1px;
  background: var(--crystal);
  margin: 6px 0;
}

.ff-head__intro {
  margin: 0;
  max-width: 540px;
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.6;
  color: var(--foreground);
  text-wrap: pretty;
}

/* Card chrome off */
.fa-list--feature .fa-offer {
  border: 0;
  background: transparent;
}

/* Row — override the 10rem thumbnail grid from the base accordion */
.fa-list--feature .fa-offer__row,
.fa-list--feature .fa-offer__row:has(.fa-offer__image) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding: 0;
  align-items: start;
}

/* Photo — fixed ratio, never scales */
.fa-list--feature .fa-offer__image {
  position: relative;
  align-self: start;
  /* base accordion sets stretch ≥550px */
  height: auto;
  min-width: 0;
  /* bleed through the page gutter (the full --edge) to the screen edge on phones */
  width: calc(100% + var(--edge) * 2);
  margin: 0 calc(var(--edge) * -1);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: var(--background-muted);
}

.fa-list--feature .fa-offer__image>img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Copy column */
.fa-list--feature .fa-offer__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.fa-list--feature .fa-offer__title {
  margin: 0;
  font-family: var(--text-serif);
  font-weight: 400;
  font-size: var(--text-3xl);
  line-height: 1.05;
  color: var(--foreground);
}

.fa-list--feature .fa-offer__price {
  margin: 0 !important;
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
  color: var(--foreground);
}

.fa-list--feature .fa-offer__copy {
  margin: 0;
  max-width: none;
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.65;
  color: var(--foreground);
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.fa-list--feature .fa-offer[data-open="true"] .fa-offer__copy {
  display: block;
  -webkit-line-clamp: unset;
}

/* What's inside */
.ff-inside {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--background-accent);
}

.ff-inside__label {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--foreground);
}

.ff-items {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px 18px;
  margin: 0;
  padding: 0 !important;
  list-style: none;
}

.ff-items li {
  display: flex;
  gap: 8px;
  margin: 0 !important;
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.4;
  color: var(--foreground);
}

.ff-items li::before {
  content: '—';
  color: var(--crystal);
  flex: none;
}

.ff-more-count {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--accent-foreground);
}

.fa-list--feature .fa-offer[data-open="true"] .ff-more-count {
  display: none;
}

/* Panel = remaining inclusions + note, continues the list */
.fa-list--feature .fa-offer__panel {
  border: 0;
  background: transparent;
  scroll-margin-top: 0;
}

.fa-list--feature .fa-offer__panel-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 7px 0 0;
}

.ff-note {
  margin: 4px 0 0;
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.5;
  color: var(--accent-foreground);
}

/* Learn more / Show less */
.ff-toggle {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--text-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
  cursor: pointer;
}

.ff-toggle>span {
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
}

.ff-toggle__open {
  display: none;
}

.fa-offer[data-open="true"] .ff-toggle__open {
  display: inline;
}

.fa-offer[data-open="true"] .ff-toggle__closed {
  display: none;
}

.ff-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

/* CTAs */
.ff-cta {
  display: flex;
  gap: 10px;
}

.ff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--primary);
  border-radius: 0;
  background: none;
  font-family: var(--text-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--foreground);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.ff-btn--primary {
  flex: 1;
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.ff-btn--primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--primary-foreground);
}

.ff-btn--ghost:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.ff-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* -------------------------------------------------------------- 768px+ */
@media (min-width: 768px) {
  .fa-list--feature {
    gap: 72px;
  }

  .ff-head {
    margin-bottom: 16px;
  }

  .ff-head__title {
    font-size: var(--text-5xl);
  }

  .fa-list--feature .fa-offer__row,
  .fa-list--feature .fa-offer__row:has(.fa-offer__image) {
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    column-gap: 40px;
  }

  /* Photo keeps its size and sticks under the site header while copy scrolls */
  .fa-list--feature .fa-offer__image {
    width: 100%;
    margin: 0;
    position: sticky;
    /* the eyebrow bar scrolls away; only --header-height stays pinned (as in _section-nav.css) */
    top: calc(var(--header-height) + 24px);
  }

  /* zig-zag: even offers put the photo on the right */
  .fa-list--feature .fa-offer:nth-child(even of .fa-offer) .fa-offer__row {
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  }

  .fa-list--feature .fa-offer:nth-child(even of .fa-offer) .fa-offer__image {
    order: 2;
  }

  .fa-list--feature .fa-offer__body {
    padding-top: 12px;
  }

  .fa-list--feature .fa-offer__title {
    font-size: var(--text-4xl);
  }

  .ff-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ff-btn--primary {
    flex: none;
    padding: 0 28px;
  }
}

/* ------------------------------------------------------------- 1024px+ */
@media (min-width: 1024px) {
  .ff-head {
    margin-bottom: 24px;
  }

  .ff-head__title {
    font-size: var(--text-6xl);
  }

  .fa-list--feature .fa-offer__row,
  .fa-list--feature .fa-offer__row:has(.fa-offer__image) {
    column-gap: 64px;
  }

  .fa-list--feature .fa-offer__body {
    padding-top: 28px;
    gap: 16px;
  }

  .fa-list--feature .fa-offer__title {
    font-size: var(--text-5xl);
  }
}

/* No-JS / print */
.no-js .fa-list--feature .fa-offer__copy {
  display: block;
  -webkit-line-clamp: unset;
}

.no-js .fa-list--feature .ff-more-count,
.no-js .fa-list--feature .ff-toggle {
  display: none;
}

@media print {
  .fa-list--feature .fa-offer__image {
    position: static;
  }

  .fa-list--feature .fa-offer__copy {
    display: block;
    -webkit-line-clamp: unset;
  }

  .fa-list--feature .ff-more-count,
  .fa-list--feature .ff-toggle,
  .fa-list--feature .ff-cta {
    display: none !important;
  }
}