/**
 * Quick Choices Lab - Elementor widget styles.
 *
 * Cards, section heads, pills and links reuse the theme's own classes, so the
 * design keeps a single source of truth. Only the five section layouts the
 * theme has no use for live here.
 *
 * Every var() carries a fallback: the widgets stay legible if the theme is
 * swapped out from under them.
 */

/* Elementor containers are flex. Without this, a widget with an aspect-ratio
   child sizes to max-content and blows the column out. */
.qcl-hero,
.qcl-ew-section,
.qcl-marquee-band {
  width: 100%;
  max-width: 100%;
  font-family: var(--qcl-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
  color: var(--qcl-ink, #34251F);
}

.qcl-ew-empty {
  padding: 24px;
  border: 1px dashed var(--qcl-sand, #DDC9AD);
  border-radius: var(--qcl-r-xl, 0.75rem);
  background: var(--qcl-card, #FFFDF8);
  color: var(--qcl-taupe, #796257);
  font-size: 0.875rem;
  text-align: center;
}

/* ==========================================================================
   Featured Hero
   ========================================================================== */

.qcl-hero {
  --qcl-hero-gap: 32px;
  --qcl-hero-main-media: 300px;
  --qcl-hero-side-media: 160px;

  display: grid;
  grid-template-columns: 1fr;
  gap: var(--qcl-hero-gap);
  align-items: stretch;
}
@media (min-width: 1024px) {
  .qcl-hero { grid-template-columns: 7fr 5fr; }
}

.qcl-hero__main,
.qcl-hero__side { display: flex; flex-direction: column; gap: var(--qcl-hero-gap); }

.qcl-hero__feature,
.qcl-hero__stack {
  flex: 1;
  border-radius: var(--qcl-r-2xl, 1rem);
  padding: 16px;
}
@media (min-width: 640px) {
  .qcl-hero__feature { padding: 24px; }
  .qcl-hero__stack { padding: 20px; }
}

.qcl-hero__media {
  flex: 1;
  aspect-ratio: auto;
  min-height: var(--qcl-hero-main-media);
  margin-bottom: 20px;
  border-radius: var(--qcl-r-xl, 0.75rem);
}
.qcl-hero__media--side {
  min-height: var(--qcl-hero-side-media);
  margin-bottom: 16px;
}
.qcl-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.qcl-hero__body { margin-top: auto; padding-bottom: 8px; text-align: center; }

.qcl-hero__title {
  display: block;
  margin-bottom: 12px;
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--qcl-ink, #34251F);
  transition: color .2s;
}
@media (min-width: 640px)  { .qcl-hero__title { font-size: 1.875rem; } }
@media (min-width: 1024px) { .qcl-hero__title { font-size: 2.25rem; } }
.qcl-hero__feature:hover .qcl-hero__title { color: var(--qcl-amber, #E89A3D); }

.qcl-hero__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 36rem;
  margin-inline: auto;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--qcl-taupe, #796257);
}
@media (min-width: 640px) { .qcl-hero__excerpt { font-size: 1rem; } }

.qcl-hero__subtitle {
  display: block;
  margin-top: auto;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.375;
  font-weight: 700;
  color: var(--qcl-ink, #34251F);
  transition: color .2s;
}
@media (min-width: 640px) { .qcl-hero__subtitle { font-size: 1.5rem; } }
.qcl-hero__stack:hover .qcl-hero__subtitle { color: var(--qcl-amber, #E89A3D); }

/* ==========================================================================
   Category Row
   ========================================================================== */

.qcl-ew-section { display: block; }
.qcl-ew-section--flush { display: flex; flex-direction: column; height: 100%; }

.qcl-ew-grid {
  --qcl-ew-cols: 3;
  --qcl-ew-gap: 32px;
  display: grid;
  grid-template-columns: repeat(var(--qcl-ew-cols), minmax(0, 1fr));
  gap: var(--qcl-ew-gap);
}

/* The column control is responsive, so honour its per-device value but never
   let a 3-up grid survive onto a phone if the device value was left unset. */
@media (max-width: 767px) {
  .qcl-ew-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .qcl-ew-grid { grid-template-columns: repeat(min(var(--qcl-ew-cols), 2), minmax(0, 1fr)); }
}

/* ==========================================================================
   Editorial Column (Travel)
   ========================================================================== */

.qcl-editorial {
  --qcl-editorial-media: 384px;
  --qcl-editorial-gap: 32px;
  display: flex;
  flex-direction: column;
  gap: var(--qcl-editorial-gap);
  flex: 1;
}

.qcl-editorial__item {
  display: flex;
  flex: 1;
  flex-direction: column;
  background: var(--qcl-card, #FFFDF8);
  box-shadow: var(--qcl-shadow-xs, 0 1px 2px 0 rgb(0 0 0 / 0.05));
  transition: box-shadow .3s;
}
.qcl-editorial__item:hover {
  box-shadow: var(--qcl-shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1));
}

.qcl-editorial__media {
  display: block;
  width: 100%;
  height: var(--qcl-editorial-media);
  flex-shrink: 0;
  overflow: hidden;
  background: var(--qcl-tan, #F4E7D3);
}
.qcl-editorial__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease-out;
}
.qcl-editorial__item:hover .qcl-editorial__media img { transform: scale(1.05); }

.qcl-editorial__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}
@media (min-width: 640px) { .qcl-editorial__body { padding: 32px; } }

.qcl-editorial__kicker {
  display: block;
  margin-bottom: 16px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--qcl-taupe, #796257);
}

.qcl-editorial__title {
  display: block;
  margin-bottom: 16px;
  font-family: var(--qcl-serif, ui-serif, Georgia, "Times New Roman", serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--qcl-ink, #34251F);
  transition: color .2s;
}
@media (min-width: 640px) { .qcl-editorial__title { font-size: 1.875rem; } }
.qcl-editorial__item:hover .qcl-editorial__title { color: var(--qcl-amber, #E89A3D); }

.qcl-editorial__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--qcl-taupe, #796257);
}

.qcl-editorial__more {
  display: block;
  margin-top: 32px;
  text-align: right;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--qcl-ink, #34251F);
  transition: color .2s;
}
.qcl-editorial__item:hover .qcl-editorial__more { color: var(--qcl-amber, #E89A3D); }

/* ==========================================================================
   Compact List (Tech)
   ========================================================================== */

.qcl-compact {
  --qcl-compact-thumb: 192px;
  --qcl-compact-gap: 32px;
  display: flex;
  flex-direction: column;
  gap: var(--qcl-compact-gap);
  flex: 1;
}

.qcl-compact__item {
  display: flex;
  flex: 1;
  align-items: stretch;
  background: var(--qcl-card, #FFFDF8);
  box-shadow: var(--qcl-shadow-xs, 0 1px 2px 0 rgb(0 0 0 / 0.05));
  transition: box-shadow .3s;
}
.qcl-compact__item:hover {
  box-shadow: var(--qcl-shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1));
}

.qcl-compact__media {
  display: block;
  width: var(--qcl-compact-thumb);
  flex-shrink: 0;
  overflow: hidden;
  background: var(--qcl-tan, #F4E7D3);
}
.qcl-compact__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease-out;
}
.qcl-compact__item:hover .qcl-compact__media img { transform: scale(1.05); }

.qcl-compact__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  min-width: 0;
}
@media (min-width: 640px) { .qcl-compact__body { padding: 24px; } }

.qcl-compact__kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--qcl-taupe, #796257);
}

.qcl-compact__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  font-family: var(--qcl-serif, ui-serif, Georgia, "Times New Roman", serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.375;
  color: var(--qcl-ink, #34251F);
  transition: color .2s;
}
@media (min-width: 640px) { .qcl-compact__title { font-size: 1.125rem; } }
.qcl-compact__item:hover .qcl-compact__title { color: var(--qcl-amber, #E89A3D); }

.qcl-compact__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.75rem;
  line-height: 1.625;
  color: var(--qcl-taupe, #796257);
}

/* ==========================================================================
   Beauty Marquee
   ========================================================================== */

.qcl-marquee-band {
  --qcl-marquee-band: var(--qcl-tan, #F4E7D3);
  --qcl-marquee-accent: var(--qcl-wine, #6B2C3A);

  padding-block: 32px;
  overflow: hidden;
  background: var(--qcl-marquee-band);
  border-top: 1px solid var(--qcl-sand, #DDC9AD);
  border-bottom: 1px solid var(--qcl-sand, #DDC9AD);
}

/* The band itself is full-bleed, but its heading row is contained — the
   prototype wraps this row in `max-w-7xl mx-auto px-4 sm:px-6 lg:px-8`, so
   "BEAUTY" and the hint line up with the masthead and every other section.
   Only the rail below stays edge to edge. */
.qcl-marquee-band__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--qcl-wrap, 80rem);
  margin-inline: auto;
  margin-bottom: 24px;
  padding-inline: 16px;
}
@media (min-width: 640px)  { .qcl-marquee-band__head { padding-inline: 24px; } }
@media (min-width: 1024px) { .qcl-marquee-band__head { padding-inline: 32px; } }

.qcl-marquee-band__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--qcl-marquee-accent);
}
.qcl-marquee-band__title h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: inherit;
}
@media (min-width: 640px) { .qcl-marquee-band__title h2 { font-size: 1.25rem; } }

.qcl-marquee-band__note {
  display: none;
  margin: 0;
  font-size: 10px;
  font-style: italic;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--qcl-taupe, #796257);
}
@media (min-width: 640px) { .qcl-marquee-band__note { display: inline-block; } }

.qcl-marquee {
  --qcl-marquee-duration: 60s;
  --qcl-marquee-card: 400px;
  position: relative;
  display: flex;
  width: 100%;
  overflow: hidden;
  padding-block: 8px;
  user-select: none;
}

.qcl-marquee__fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 64px;
  z-index: 10;
  pointer-events: none;
}
.qcl-marquee__fade--l { left: 0;  background: linear-gradient(to right, var(--qcl-marquee-band, #F4E7D3), transparent); }
.qcl-marquee__fade--r { right: 0; background: linear-gradient(to left,  var(--qcl-marquee-band, #F4E7D3), transparent); }

.qcl-marquee__strip {
  display: flex;
  flex-shrink: 0;
  align-items: stretch;
  gap: 24px;
  padding-right: 24px;
  white-space: nowrap;
  animation: qcl-marquee var(--qcl-marquee-duration) linear infinite;
}
.qcl-marquee:hover .qcl-marquee__strip { animation-play-state: paused; }

@keyframes qcl-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .qcl-marquee__strip { animation: none; }
  .qcl-marquee { overflow-x: auto; }
  .qcl-marquee__strip[aria-hidden="true"] { display: none; }
}

.qcl-marquee__card {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  width: var(--qcl-marquee-card);
  overflow: hidden;
  background: var(--qcl-card, #FFFDF8);
  border: 1px solid var(--qcl-sand, #DDC9AD);
  border-radius: var(--qcl-r-2xl, 1rem);
  box-shadow: var(--qcl-shadow-xs, 0 1px 2px 0 rgb(0 0 0 / 0.05));
  transition: border-color .2s, box-shadow .2s;
}
.qcl-marquee__card:hover {
  border-color: var(--qcl-amber, #E89A3D);
  box-shadow: var(--qcl-shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1));
}

.qcl-marquee__media {
  display: block;
  width: 40%;
  flex-shrink: 0;
  background: var(--qcl-tan, #F4E7D3);
}
.qcl-marquee__media img { width: 100%; height: 100%; object-fit: cover; }

.qcl-marquee__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  min-width: 0;
  white-space: normal;
}

.qcl-marquee__cat {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--qcl-green, #2A5E44);
}

.qcl-marquee__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.375;
  color: var(--qcl-ink, #34251F);
}
@media (min-width: 640px) { .qcl-marquee__title { font-size: 1rem; } }

.qcl-marquee__by {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 10px;
  font-weight: 500;
  color: var(--qcl-taupe, #796257);
}
.qcl-marquee__avatar {
  width: 20px; height: 20px;
  flex-shrink: 0;
  border-radius: 9999px;
  object-fit: cover;
}

/* ==========================================================================
   Paired columns
   
   Travel and Tech sit side by side in the design and their columns finish
   level: the taller one sets the height and the shorter one's cards grow to
   fill it. height:100% needs a definite height on every ancestor, which an
   Elementor column does not give, so stretch through the wrappers with flex.
   ========================================================================== */

/* An Elementor container is a COLUMN flex box, so align-self governs width,
   not height - the widget has to grow along the main axis to fill it. */
.elementor-widget-qcl-editorial-column,
.elementor-widget-qcl-compact-list {
  display: flex;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
}
.elementor-widget-qcl-editorial-column > .elementor-widget-container,
.elementor-widget-qcl-compact-list > .elementor-widget-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-width: 0;
}
