/* occasions.css — /occasions/, the scene overview.
 *
 * Owned by the overview page task. Every class here is `sp-hub-*`, so the four page stylesheets can
 * never collide; colours, radii, shadows and type steps are the tokens in tokens.css, never a new
 * value. The markup keeps the shared `.section`, `.wrap`, `.stack`, `.btn`, `.lede` and `.note`
 * classes for what the theme already draws.
 */

/* ---------- page head ---------- */
.sp-hub-hero__title{max-width:24ch}
.sp-hub-hero__lede{max-width:66ch}

/* The cover: this page's own featured image, held in a layer under the copy.
   An <img> rather than a CSS background, so the engine's srcset still hands a
   phone a phone-sized file. The wash over it is dense on the left, where the
   words sit, and opens on the right, where the photograph holds its subject. */
.sp-hub-hero--photo{
  position:relative;isolation:isolate;overflow:hidden;
  display:flex;align-items:center;
  min-height:clamp(21rem,38vw,34rem);
  padding-block:clamp(2.25rem,4vw,3.5rem);
  background:var(--cta-bg);
}
.sp-hub-hero--photo.sp-hub-hero--compact{min-height:0}
.sp-hub-hero__bg{position:absolute;inset:0;z-index:-1}
.sp-hub-hero__bg img{width:100%;height:100%;object-fit:cover;object-position:50% 12%}
.sp-hub-hero__bg::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(100deg,
    rgba(13,30,44,.95) 0%,rgba(13,30,44,.9) 26%,
    rgba(13,30,44,.6) 48%,rgba(13,30,44,.16) 68%,
    rgba(13,30,44,0) 82%);
}
.sp-hub-hero__inner{position:relative;width:100%}
.sp-hub-hero--photo .sp-hub-hero__title{max-width:20ch;color:var(--paper)}
.sp-hub-hero--photo .sp-hub-hero__lede{max-width:48ch;color:rgba(255,255,255,.86)}
.sp-hub-hero--photo .breadcrumbs,
.sp-hub-hero--photo .breadcrumbs li,
.sp-hub-hero--photo .breadcrumbs a{color:rgba(255,255,255,.72)}
.sp-hub-hero--photo .breadcrumbs a:hover{color:var(--paper)}
.sp-hub-hero--photo .sp-hub-hero__search{max-width:34rem;margin-top:.25rem}
.sp-hub-hero--photo .sp-hub-search__input{
  border-color:transparent;box-shadow:0 12px 28px -20px rgba(0,0,0,.85);
}

/* The names offered under the box. Plain links, so the row costs no script and reads as one line of
   text to a screen reader. On the plain head they sit on the page ground; on the photograph they
   are a translucent pill so the picture still reads through them. */
.sp-hub-hero__shortcuts{max-width:34rem;margin-top:.85rem}
.sp-hub-hero__shortcuts-label{margin:0 0 .45rem;font-size:var(--step--1);color:var(--ink-3)}
.sp-hub-hero__chips{display:flex;flex-wrap:wrap;gap:.4rem;margin:0;padding:0;list-style:none}
.sp-hub-hero__chip{
  display:inline-block;padding:.3rem .75rem;font-size:var(--step--1);line-height:1.5;
  color:var(--ink);background:var(--paper);
  border:1px solid var(--line-strong);border-radius:var(--radius-pill);text-decoration:none;
}
.sp-hub-hero__chip:hover,.sp-hub-hero__chip:focus-visible{
  color:var(--brand-dark);border-color:var(--brand);
}
.sp-hub-hero--photo .sp-hub-hero__shortcuts-label{color:rgba(255,255,255,.72)}
.sp-hub-hero--photo .sp-hub-hero__chip{
  color:var(--paper);background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.3);
}
.sp-hub-hero--photo .sp-hub-hero__chip:hover,
.sp-hub-hero--photo .sp-hub-hero__chip:focus-visible{
  color:var(--paper);background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.6);
}
@media (max-width:639px){
  .sp-hub-hero--photo{min-height:clamp(24rem,104vw,32rem);align-items:flex-end}
  .sp-hub-hero__bg img{object-position:64% 42%}
  .sp-hub-hero__bg::after{
    background:linear-gradient(180deg,
      rgba(13,30,44,.66) 0%,rgba(13,30,44,.78) 52%,
      rgba(13,30,44,.92) 100%);
  }

  /* Twelve names would either wrap into six lines and push the heading off the screen, or be cut
     off with no sign that more exist. One scrollable row instead: the row never grows, and the
     chips past the edge are reached by swiping. */
  .sp-hub-hero__chips{
    flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;
    scrollbar-width:none;padding-bottom:.25rem;
  }
  .sp-hub-hero__chips::-webkit-scrollbar{display:none}
  .sp-hub-hero__chips li{flex:0 0 auto}
}

.sp-hub-locked form{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end;max-width:var(--maxw-narrow)}
.sp-hub-locked input[type="password"]{
  flex:1 1 14rem;min-width:0;font:inherit;color:var(--ink);background:var(--paper);
  padding:.6rem .8rem;border:1px solid var(--line-strong);border-radius:var(--radius-sm);
}
.sp-hub-locked input[type="submit"]{
  font:inherit;font-weight:600;color:var(--paper);background:var(--brand);
  padding:.7rem 1.15rem;border:0;border-radius:var(--radius-pill);cursor:pointer;
}

/* ---------- the scene-name search ---------- */
.sp-hub-search__form{display:flex;flex-wrap:wrap;gap:.6rem;max-width:40rem}
.sp-hub-search__input{
  flex:1 1 14rem;min-width:0;font:inherit;color:var(--ink);background:var(--paper);
  padding:.62rem .95rem;border:1px solid var(--line-strong);border-radius:var(--radius-pill);
  -webkit-appearance:none;appearance:none;
}
.sp-hub-search__input::placeholder{color:var(--ink-3)}
.sp-hub-search__submit{flex:0 0 auto}

/* ---------- search results, and the no-match state ---------- */
.sp-hub-results{margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid var(--line)}
.sp-hub-results__head{display:flex;flex-wrap:wrap;gap:.5rem 1rem;align-items:baseline;justify-content:space-between}
.sp-hub-results__count{margin:0;font-weight:600;font-variant-numeric:tabular-nums}
.sp-hub-results__clear{font-size:var(--step--1);color:var(--ink-2);text-decoration:underline;text-decoration-color:var(--line-strong)}
.sp-hub-results__clear:hover{color:var(--brand-dark);text-decoration-color:currentColor}

.sp-hub-results__list{margin:1rem 0 0;padding:0;list-style:none}
.sp-hub-results__item{
  display:flex;flex-wrap:wrap;gap:.3rem .55rem;align-items:baseline;
  padding:.55rem 0;border-bottom:1px solid var(--line);
}
.sp-hub-results__item:last-child{border-bottom:0}
.sp-hub-results__item--scene{padding-left:1.1rem}
.sp-hub-results__name{font-weight:600;text-decoration:none}
.sp-hub-results__name:hover{color:var(--brand-dark);text-decoration:underline}
.sp-hub-results__item--scene .sp-hub-results__name{font-weight:500;color:var(--ink-2)}
.sp-hub-results__group{font-size:var(--step--1);color:var(--ink-3)}
.sp-hub-results__group a{color:var(--ink-2);text-decoration-color:var(--line-strong)}
.sp-hub-results__group a:hover{color:var(--brand-dark)}

.sp-hub-empty{
  margin-top:1.5rem;padding:1.5rem;background:var(--sand);
  border:1px solid var(--line);border-radius:var(--radius);
}
.sp-hub-empty__title{margin:0;font-size:var(--step-1);font-weight:650}
.sp-hub-empty__text{margin:.35rem 0 0;color:var(--ink-2);max-width:60ch}

/* What the visitor probably meant: the closest scenes first, each naming the group it sits in, so
   a word this hub has never heard of still lands somewhere useful before the full list is read. */
.sp-hub-empty__related{margin-top:1.25rem}
.sp-hub-empty__related-title{
  margin:0 0 .5rem;font-size:var(--step--1);font-weight:700;
  letter-spacing:.04em;text-transform:uppercase;color:var(--ink-3);
}
.sp-hub-empty__related-list{display:flex;flex-wrap:wrap;gap:.5rem;margin:0;padding:0;list-style:none}
.sp-hub-empty__related-chip{
  display:flex;flex-direction:column;gap:.1rem;padding:.45rem .8rem;
  background:var(--paper);border:1px solid var(--line-strong);border-radius:var(--radius);
  text-decoration:none;
}
.sp-hub-empty__related-chip:hover,.sp-hub-empty__related-chip:focus-visible{border-color:var(--brand)}
.sp-hub-empty__related-name{font-size:var(--step--1);font-weight:600;color:var(--ink);line-height:1.35}
.sp-hub-empty__related-chip:hover .sp-hub-empty__related-name{color:var(--brand-dark)}
.sp-hub-empty__related-group{font-size:var(--step--1);color:var(--ink-3);line-height:1.35}
.sp-hub-empty__related + .sp-hub-empty__text{margin-top:1.25rem}
.sp-hub-empty__actions{margin:1.25rem 0 0;display:flex;flex-wrap:wrap;gap:.75rem}

/* The whole vocabulary, printed only under the no-match sentence: a group heading with the scenes
   that hold products under it, in as many columns as the card allows. */
.sp-hub-empty__all{
  display:grid;gap:1.5rem 2rem;margin-top:1.5rem;padding-top:1.25rem;
  border-top:1px solid var(--line);
  grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr));
}
.sp-hub-empty__group{min-width:0}
.sp-hub-empty__group-title{
  margin:0 0 .5rem;font-size:var(--step--1);font-weight:700;
  letter-spacing:.04em;text-transform:uppercase;color:var(--ink-3);
}
.sp-hub-empty__group-title a{color:inherit;text-decoration:none}
.sp-hub-empty__group-title a:hover{color:var(--brand-dark);text-decoration:underline;text-decoration-color:var(--line-strong)}
.sp-hub-empty__scenes{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:.3rem}
.sp-hub-empty__scenes a{
  font-size:var(--step--1);color:var(--ink-2);text-decoration:none;
  text-underline-offset:.2em;
}
.sp-hub-empty__scenes a:hover{color:var(--brand-dark);text-decoration:underline}

/* ---------- the level-1 group cards ---------- */
.sp-hub-cards{display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr))}
.sp-hub-card{
  display:flex;flex-direction:column;overflow:hidden;background:var(--paper);
  border:1px solid var(--line);border-radius:var(--radius-lg);
}
.sp-hub-card:hover,.sp-hub-card:focus-within{border-color:var(--line-strong);box-shadow:var(--shadow)}
.sp-hub-card__media{display:block;flex:0 0 auto;overflow:hidden;background:var(--sand-2);aspect-ratio:4/3}
.sp-hub-card__img,.sp-hub-card__media img{width:100%;height:100%;object-fit:cover;display:block}
.sp-hub-card__body{display:flex;flex-direction:column;gap:.5rem;flex:1;padding:1.1rem 1.15rem 1.2rem}
.sp-hub-card__title{margin:0;font-size:1.0625rem;line-height:1.3;letter-spacing:-.01em}
.sp-hub-card__title a{text-decoration:none}
.sp-hub-card__title a:hover{color:var(--brand-dark);text-decoration:underline}
.sp-hub-card__text{margin:0;font-size:.9375rem;line-height:1.55;color:var(--ink-2)}
.sp-hub-card__scenes{
  margin:.35rem 0 0;padding:.7rem 0 0;list-style:none;
  display:flex;flex-direction:column;gap:.35rem;
  border-top:1px solid var(--line);font-size:var(--step--1);
}
.sp-hub-card__scenes a{color:var(--ink-2);font-weight:500}
.sp-hub-card__scenes a:hover{color:var(--brand-dark)}
.sp-hub-card__foot{margin:auto 0 0;padding-top:.9rem}
.sp-hub-card__all{
  display:inline-flex;align-items:center;gap:.35rem;
  padding:.45rem .9rem;font-size:var(--step--1);font-weight:600;text-decoration:none;
  color:var(--ink);background:transparent;border:1px solid var(--line-strong);border-radius:var(--radius-pill);
}
.sp-hub-card__all:hover{color:var(--ink);border-color:var(--ink);background:var(--sand-2)}

/* ---------- the spotlight ideas band ---------- */
.sp-hub-ideas__head{display:flex;flex-direction:column;gap:.5rem}
.sp-hub-idea-grid{display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr))}
.sp-hub-idea{
  display:flex;flex-direction:column;overflow:hidden;background:var(--paper);
  border:1px solid var(--line);border-radius:var(--radius-lg);
}
.sp-hub-idea__media{overflow:hidden;flex:0 0 auto;background:var(--sand-2);aspect-ratio:16/10}
.sp-hub-idea__img,.sp-hub-idea__media img{width:100%;height:100%;object-fit:cover;display:block}
.sp-hub-idea__body{display:flex;flex-direction:column;gap:.5rem;flex:1;padding:1.1rem 1.15rem 1.2rem}
.sp-hub-idea__title{margin:0;font-size:var(--step-1);line-height:1.25}
.sp-hub-idea__note{margin:0;font-size:.9375rem;line-height:1.55;color:var(--ink-2)}
.sp-hub-idea__foot{margin:auto 0 0;padding-top:.9rem}
.sp-hub-idea__button{font-size:var(--step--1)}

/* ---------- the quote at the foot ---------- */
.sp-hub-cta__inner{
  display:flex;flex-direction:column;gap:1rem;
  padding:clamp(1.5rem,3vw,2.5rem);background:var(--paper);
  border:1px solid var(--line);border-radius:var(--radius-lg);
}
.sp-hub-cta__title{margin:0}
.sp-hub-cta__lede{max-width:66ch}
.sp-hub-cta__actions{margin:0;display:flex;flex-wrap:wrap;gap:.75rem}

@media (min-width:900px){
  .sp-hub-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
  .sp-hub-idea-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
