/* Dynamic Our Picks editorial page. */
:root{
  --ef-page-max:1440px;
  --ef-gold:var(--gold, #c9a24f);
  --ef-bg:#070605;
  --ef-ink:var(--ink, #f1ecdd);
  --ef-muted:rgba(241,236,221,0.64);
  --ef-faint:rgba(241,236,221,0.11);
  --ef-hair:rgba(201,162,79,0.24);
  --ef-panel:#0b0908;
  --ef-motion:900ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.editorial-flip-page{
  min-height:100vh;
  background:
    radial-gradient(circle at 74% 12%, rgba(201,162,79,0.10), transparent 34rem),
    linear-gradient(180deg, #090706 0%, #050403 100%);
  color:var(--ef-ink);
}

body.editorial-flip-page .elara-theme-toggle{
  display:none;
}

.editorial-flip-shell{
  max-width:var(--ef-page-max);
  margin:0 auto;
  padding-bottom:88px;
}

.ef-hero{
  padding:42px 0 64px;
  border-top:1px solid var(--hair);
}

.ef-hero-copy{
  display:grid;
  grid-template-columns:minmax(0, 0.46fr) minmax(0, 1fr);
  gap:22px;
  align-items:end;
  margin-bottom:24px;
}

.ef-register,
.ef-deck,
.ef-index-heading,
.ef-panel-top,
.ef-facts dt,
.ef-control,
.ef-contact,
.ef-full-page{
  font-family:var(--mono);
  text-transform:uppercase;
  letter-spacing:0.18em;
}

.ef-register{
  margin:0;
  font-size:10px;
  line-height:1.45;
  color:var(--ef-gold);
}

.ef-hero h1{
  margin:0;
  font-family:var(--display);
  font-weight:600;
  font-size:clamp(58px, 8vw, 136px);
  line-height:0.86;
  letter-spacing:0;
  color:var(--ef-ink);
}

.ef-deck{
  grid-column:2;
  max-width:820px;
  margin:0;
  font-size:10px;
  line-height:1.65;
  color:var(--ef-muted);
}

.ef-index-heading{
  margin:0 0 14px;
  font-size:10px;
  line-height:1.5;
  color:var(--ef-gold);
}

.ef-controls{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
  margin:0 0 18px;
}

.ef-control{
  min-height:34px;
  padding:0 14px;
  border:1px solid var(--ef-hair);
  color:var(--ef-muted);
  background:rgba(10,8,7,0.58);
  font-size:9px;
  line-height:1;
  transition:background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.ef-control:hover,
.ef-control:focus-visible,
.ef-control.is-active{
  color:var(--ef-ink);
  border-color:rgba(201,162,79,0.72);
  background:rgba(201,162,79,0.10);
  outline:0;
}

.ef-composition{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(320px, 0.28fr);
  gap:18px;
  align-items:start;
}

.ef-gallery{
  min-width:0;
  border-top:1px solid var(--ef-hair);
  border-bottom:1px solid var(--ef-hair);
  padding:12px 0;
}

.ef-stage{
  position:relative;
  display:grid;
  min-height:720px;
  gap:10px;
  grid-template-columns:repeat(12, minmax(0, 1fr));
  grid-template-rows:repeat(6, minmax(92px, 1fr));
  grid-auto-rows:minmax(220px, 28vw);
  transition:grid-template-columns var(--ef-motion), grid-template-rows var(--ef-motion);
}

.ef-loading{
  grid-column:1 / -1;
  grid-row:1 / -1;
  display:grid;
  place-items:center;
  min-height:420px;
  border:1px solid var(--ef-hair);
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--ef-muted);
}

.ef-card{
  position:relative;
  overflow:hidden;
  min-width:0;
  min-height:0;
  padding:0;
  border:1px solid rgba(241,236,221,0.10);
  background:#0c0a09;
  color:inherit;
  cursor:pointer;
  text-align:left;
  isolation:isolate;
}

.ef-card-media{
  position:absolute;
  inset:0;
  z-index:1;
  display:block;
}

.ef-card::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  background:linear-gradient(180deg, transparent 44%, rgba(0,0,0,0.74));
  opacity:0.86;
  pointer-events:none;
}

.ef-card-media-item,
.ef-card img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  filter:grayscale(1) saturate(0.04) contrast(1.08) brightness(0.88);
  transition:filter 360ms ease, scale 700ms ease;
}

body.editorial-colour-on .ef-card-media-item,
body.editorial-colour-on .ef-card img{
  filter:saturate(0.95) contrast(1.03) brightness(0.9);
}

body.editorial-filter-bw .ef-card.is-active .ef-card-media-item,
body.editorial-filter-bw .ef-card.is-active img{
  filter:saturate(0.95) contrast(1.03) brightness(0.9);
}

.ef-card:hover .ef-card-media-item,
.ef-card:focus-visible .ef-card-media-item,
.ef-card.is-active .ef-card-media-item{
  scale:1.035;
}

.ef-card:focus-visible{
  outline:1px solid var(--ef-gold);
  outline-offset:2px;
}

.ef-card-meta{
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;
  z-index:3;
  display:grid;
  gap:4px;
}

.ef-card-name{
  font-family:var(--display);
  font-weight:600;
  font-size:clamp(24px, 3vw, 58px);
  line-height:0.9;
  letter-spacing:0;
  color:var(--ef-ink);
}

.ef-card-detail{
  font-family:var(--mono);
  font-size:8.5px;
  line-height:1.4;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:rgba(241,236,221,0.68);
}

.ef-card.is-active{
  border-color:rgba(201,162,79,0.62);
}

.ef-stage[data-layout="mosaic"] .ef-card:nth-child(1){ grid-column:1 / 5; grid-row:1 / 5; }
.ef-stage[data-layout="mosaic"] .ef-card:nth-child(2){ grid-column:5 / 8; grid-row:1 / 4; }
.ef-stage[data-layout="mosaic"] .ef-card:nth-child(3){ grid-column:8 / 10; grid-row:1 / 3; }
.ef-stage[data-layout="mosaic"] .ef-card:nth-child(4){ grid-column:10 / 13; grid-row:1 / 4; }
.ef-stage[data-layout="mosaic"] .ef-card:nth-child(5){ grid-column:5 / 7; grid-row:4 / 7; }
.ef-stage[data-layout="mosaic"] .ef-card:nth-child(6){ grid-column:7 / 10; grid-row:3 / 7; }
.ef-stage[data-layout="mosaic"] .ef-card:nth-child(7){ grid-column:10 / 13; grid-row:4 / 7; }
.ef-stage[data-layout="mosaic"] .ef-card:nth-child(8){ grid-column:1 / 5; grid-row:5 / 7; }
.ef-stage[data-layout="mosaic"] .ef-card:nth-child(n+9){ grid-column:auto; grid-row:auto; min-height:300px; }

.ef-stage[data-layout="feature"] .ef-card:nth-child(1){ grid-column:1 / 8; grid-row:1 / 7; }
.ef-stage[data-layout="feature"] .ef-card:nth-child(2){ grid-column:8 / 10; grid-row:1 / 4; }
.ef-stage[data-layout="feature"] .ef-card:nth-child(3){ grid-column:10 / 13; grid-row:1 / 3; }
.ef-stage[data-layout="feature"] .ef-card:nth-child(4){ grid-column:10 / 13; grid-row:3 / 5; }
.ef-stage[data-layout="feature"] .ef-card:nth-child(5){ grid-column:8 / 10; grid-row:4 / 7; }
.ef-stage[data-layout="feature"] .ef-card:nth-child(6){ grid-column:10 / 13; grid-row:5 / 7; }
.ef-stage[data-layout="feature"] .ef-card:nth-child(n+7){ grid-column:auto; grid-row:auto; min-height:300px; }

.ef-stage[data-layout="index"]{
  grid-template-columns:repeat(8, minmax(0, 1fr));
  grid-template-rows:none;
  grid-auto-rows:minmax(280px, 1fr);
}

.ef-stage[data-layout="index"] .ef-card{
  grid-column:auto;
  grid-row:auto;
}

.ef-stage[data-layout="index"] .ef-card-name{
  font-size:clamp(20px, 1.8vw, 28px);
}

.ef-stage[data-layout="index"] .ef-card-detail{
  font-size:7px;
  letter-spacing:0.14em;
}

.ef-panel{
  position:sticky;
  top:18px;
  min-width:0;
  padding:18px;
  border-top:1px solid var(--ef-hair);
  border-bottom:1px solid var(--ef-hair);
  background:linear-gradient(180deg, rgba(10,8,7,0.92), rgba(8,6,5,0.72));
}

.ef-panel-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:64px;
  font-size:9px;
  line-height:1.45;
  color:var(--ef-muted);
}

.ef-panel h2{
  margin:0 0 14px;
  font-family:var(--display);
  font-weight:600;
  font-size:58px;
  line-height:0.88;
  letter-spacing:0;
  color:var(--ef-ink);
}

.ef-panel p{
  margin:0 0 28px;
  font-family:var(--display);
  font-weight:600;
  font-size:17px;
  line-height:1.42;
  color:rgba(241,236,221,0.73);
}

.ef-facts{
  display:grid;
  gap:0;
  margin:0 0 28px;
  border-top:1px solid var(--ef-faint);
}

.ef-facts div{
  display:grid;
  grid-template-columns:0.44fr 1fr;
  gap:16px;
  padding:12px 0;
  border-bottom:1px solid var(--ef-faint);
}

.ef-facts dt{
  font-size:8.5px;
  line-height:1.45;
  color:var(--ef-muted);
}

.ef-facts dd{
  margin:0;
  font-family:var(--display);
  font-weight:600;
  font-size:18px;
  line-height:1.08;
  color:var(--ef-ink);
}

.ef-contact{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:42px;
  border:1px solid rgba(201,162,79,0.62);
  color:var(--ef-ink);
  font-size:9px;
  text-decoration:none;
  background:rgba(201,162,79,0.12);
}

.ef-full-page{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:56px;
  margin-top:12px;
  border:1px solid rgba(201,162,79,0.74);
  color:var(--ef-ink);
  font-size:10px;
  text-decoration:none;
  background:rgba(201,162,79,0.16);
  box-shadow:inset 0 0 0 1px rgba(201,162,79,0.08);
  transition:border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.ef-full-page:hover,
.ef-full-page:focus-visible{
  border-color:rgba(201,162,79,0.92);
  color:var(--ef-ink);
  background:rgba(201,162,79,0.24);
  outline:0;
}

body.theme-paper.editorial-flip-page{
  --ef-bg:var(--bg, #f1ecdd);
  --ef-ink:var(--ink, #0e0d0a);
  --ef-muted:color-mix(in srgb, var(--ink) 62%, transparent);
  --ef-faint:color-mix(in srgb, var(--ink) 12%, transparent);
  --ef-hair:color-mix(in srgb, var(--gold) 34%, transparent);
  --ef-panel:color-mix(in srgb, var(--bg) 92%, var(--ink) 8%);
  background:
    radial-gradient(circle at 74% 12%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 34rem),
    linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 94%, var(--ink) 6%) 100%);
  color:var(--ef-ink);
}

body.theme-paper.editorial-flip-page .ef-card{
  background:color-mix(in srgb, var(--bg) 72%, var(--ink) 28%);
  border-color:color-mix(in srgb, var(--ink) 16%, transparent);
}

body.theme-paper.editorial-flip-page .ef-card::after{
  background:linear-gradient(180deg, transparent 42%, rgba(14,13,10,0.70));
}

body.theme-paper.editorial-flip-page .ef-card-name{
  color:#f1ecdd;
}

body.theme-paper.editorial-flip-page .ef-card-detail{
  color:rgba(241,236,221,0.68);
}

body.theme-paper.editorial-flip-page .ef-panel{
  background:linear-gradient(180deg, color-mix(in srgb, var(--bg) 88%, var(--ink) 12%), color-mix(in srgb, var(--bg) 96%, var(--ink) 4%));
}

body.theme-paper.editorial-flip-page .ef-contact,
body.theme-paper.editorial-flip-page .ef-full-page{
  color:var(--ef-ink);
}

.ef-error{
  grid-column:1 / -1;
  grid-row:1 / -1;
  display:grid;
  align-content:center;
  gap:10px;
  padding:32px;
  border:1px solid var(--ef-hair);
}

.ef-error strong{
  font-family:var(--display);
  font-size:36px;
  line-height:1;
}

.ef-error span{
  font-family:var(--mono);
  font-size:10px;
  line-height:1.6;
  letter-spacing:0.15em;
  text-transform:uppercase;
  color:var(--ef-muted);
}

@media (max-width:1180px){
  .ef-composition{
    grid-template-columns:1fr;
  }

  .ef-panel{
    position:relative;
    top:auto;
  }

  .ef-panel-top{
    margin-bottom:28px;
  }
}

@media (max-width:759px){
  .editorial-flip-shell{
    padding-bottom:72px;
  }

  .ef-hero{
    padding:34px 0 48px;
  }

  .ef-hero-copy{
    grid-template-columns:1fr;
    gap:14px;
  }

  .ef-deck{
    grid-column:1;
  }

  .ef-controls{
    justify-content:flex-start;
  }

  .ef-control{
    flex:1 1 calc(50% - 6px);
  }

  .ef-stage,
  .ef-stage[data-layout="feature"],
  .ef-stage[data-layout="index"],
  .ef-stage[data-layout="mosaic"]{
    display:grid;
    min-height:auto;
    grid-template-columns:1fr 1fr;
    grid-template-rows:none;
    grid-auto-rows:minmax(210px, 52vh);
  }

  .ef-stage[data-layout="mosaic"] .ef-card:nth-child(n),
  .ef-stage[data-layout="feature"] .ef-card:nth-child(n),
  .ef-stage[data-layout="index"] .ef-card:nth-child(n){
    grid-column:auto;
    grid-row:auto;
    display:block;
  }

  .ef-stage[data-layout="mosaic"] .ef-card:nth-child(1),
  .ef-stage[data-layout="feature"] .ef-card:nth-child(1),
  .ef-stage[data-layout="index"] .ef-card:nth-child(1){
    grid-column:1 / -1;
    grid-row:auto;
    min-height:54vh;
  }

  .ef-stage[data-layout="mosaic"] .ef-card:nth-child(n+7),
  .ef-stage[data-layout="feature"] .ef-card:nth-child(n+7),
  .ef-stage[data-layout="index"] .ef-card:nth-child(n+7){
    display:block;
  }

  .ef-stage[data-layout="index"] .ef-card:nth-child(n+7){
    display:block;
  }

  .ef-card-name{
    font-size:34px;
  }

  .ef-panel h2{
    font-size:46px;
  }
}

@media (prefers-reduced-motion: reduce){
  .ef-card img,
  .ef-control,
  .ef-stage{
    transition:none;
  }
}
