/* ============================================================================
   /christmas · CHRISTMAS LIGHTS SWITCH-ON · the feature at the head of #whats-on
   Loads after bond-events.css. Scoped to .xm-so; breakpoints are container
   queries on the module's own container (wo), so the panel responds to the
   column it is given rather than to the viewport.

   D494 ROUND 2. The first build carried a kicker, a separate headline, a
   location line, a second switch-on announcement, three sub-headings and a
   filled teal row. The reviewed design strips all of that out: one heading,
   one date line, one standfirst, then the programme. Everything removed was
   repetition, and the 5pm row is information, not a button.

   LAYOUT. Desktop is two columns: the photograph and the two supporting notes
   on the left, the programme on the right, which is the wider of the two
   because it carries eight rows of text. The photograph is pinned to 3:2 and
   sits at the top of its column, so it never stretches to match the table's
   height - a tall portrait crop of a wide night photograph is the one thing
   this composition must not do. Below 640px of module width the order becomes
   heading, date, standfirst, programme, photograph, notes, links: the
   programme is what someone on a phone came for.
   ========================================================================== */

/* The panel is its own section now, between the advent calendars and fashion, so the
   field supplies the vertical rhythm and the mount adds none. It names its own container
   rather than borrowing the events module’s, because it no longer lives inside one: the
   breakpoints below are about the width this panel is given, wherever it is placed. */
.xm-so-mount{margin:0;container-type:inline-size;container-name:wo}
.xm-so-mount[hidden]{display:none}

.xm-so{display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);
  grid-template-areas:"head head" "intro intro" "photo programme" "support programme";
  column-gap:36px;row-gap:0;align-items:start;
  padding:clamp(24px,3vw,36px);background:var(--surface);border-radius:var(--r-md)}

/* --- heading and date, on one baseline ---------------------------------- */
.xm-so__head{grid-area:head;display:flex;align-items:baseline;justify-content:space-between;
  flex-wrap:wrap;gap:12px 24px;margin:0 0 14px}
.xm-so__t{font-family:var(--font-sans);font-weight:var(--fw-med);font-size:clamp(28px,2.6vw,32px);
  line-height:1.15;letter-spacing:-.02em;color:var(--ink);margin:0;text-transform:none;text-wrap:balance}
.xm-so__date{margin:0;font-size:16px;line-height:1.5;color:var(--body);white-space:nowrap}

.xm-so__lede{grid-area:intro;margin:0 0 28px;max-width:88ch;
  font-size:16px;line-height:1.6;color:var(--body);text-wrap:pretty}

/* --- the photograph ------------------------------------------------------
   aspect-ratio plus align-self:start is what keeps it 3:2 whatever the table
   beside it does. Height is never inherited from the grid row. */
.xm-so__pic{grid-area:photo;display:block;width:100%;aspect-ratio:3/2;margin:0;
  overflow:hidden;border-radius:var(--r);background:var(--xm-ecru,var(--surface-alt));align-self:start}
.xm-so__pic img{display:block;width:100%;height:100%;object-fit:cover}
.xm-so__pic .imgph-cap{max-width:260px}

/* --- the programme ------------------------------------------------------- */
.xm-so__prog{grid-area:programme;min-width:0;margin:0}
.xm-so__tt{border-collapse:collapse;width:100%;table-layout:fixed;margin:0;border:0;
  font-size:16px;line-height:1.45;color:var(--body)}
.xm-so__tt tr{border:0;border-bottom:1px solid var(--line)}
.xm-so__tt th,.xm-so__tt td{padding:12px 0;vertical-align:top;text-align:left;
  background:transparent;border:0;font-size:inherit;line-height:inherit}
.xm-so__tcol{width:132px}
.xm-so__tt th{width:132px;padding-right:20px;white-space:nowrap;font-weight:var(--fw-med);
  font-variant-numeric:tabular-nums;color:var(--ink)}
.xm-so__tt td{font-weight:var(--fw-book);overflow-wrap:normal}
.xm-so__tt tr:first-child th,.xm-so__tt tr:first-child td{padding-top:0}
/* the finale: a teal rule and teal type, no fill. It closes the table rather
   than sitting on it, and it must not read as something to press. */
.xm-so__tt tr.key{border-bottom:0;border-top:2px solid var(--accent)}
.xm-so__tt tr.key th,.xm-so__tt tr.key td{color:var(--accent);font-weight:var(--fw-med);
  padding-top:16px;padding-bottom:12px}
.xm-so__terms{margin:4px 0 0;font-size:var(--t-small);line-height:1.5;color:var(--muted)}

/* --- the two notes, and the way onward ----------------------------------- */
.xm-so__support{grid-area:support;align-self:start;min-width:0;padding-top:20px}
.xm-so__support p{margin:0;font-size:16px;line-height:1.55;color:var(--body);text-wrap:pretty}
.xm-so__support p+p{margin-top:12px}
.xm-so__links{display:flex;flex-wrap:wrap;gap:0 22px;margin-top:16px}
.xm-so__links a{display:inline-flex;align-items:center;gap:7px;min-height:44px;
  font-size:14px;font-weight:var(--fw-med);line-height:1.4}

@container wo (max-width:800px){
  .xm-so{column-gap:28px}
  .xm-so__tcol,.xm-so__tt th{width:124px}
  .xm-so__tt th{padding-right:16px}
}
@container wo (max-width:640px){
  .xm-so{grid-template-columns:minmax(0,1fr);
    grid-template-areas:"head" "intro" "programme" "photo" "support";column-gap:0}
  .xm-so__head{display:block;margin-bottom:16px}
  .xm-so__date{margin-top:12px;font-size:15px;white-space:normal}
  .xm-so__t{max-width:18ch;line-height:1.16}
  .xm-so__lede{margin-bottom:26px}
  .xm-so__pic{margin-top:28px}
  .xm-so__tcol,.xm-so__tt th{width:126px}
  .xm-so__tt th{padding-right:16px}
  .xm-so__tt th,.xm-so__tt td{padding-top:13px;padding-bottom:13px}
  .xm-so__tt tr:first-child th,.xm-so__tt tr:first-child td{padding-top:0}
  .xm-so__links{margin-top:14px;gap:0 20px}
}
@container wo (max-width:350px){
  .xm-so{padding:22px 16px}
  .xm-so__tcol,.xm-so__tt th{width:116px}
  .xm-so__tt th{padding-right:12px}
}

/* --- hero promotion, until 15 Nov ----------------------------------------
   Each dated element stands its evergreen neighbour down only while it is
   present, so the guard removing it on 16 November restores the page with no
   other change and no second date to maintain. */
.xm-hero__acts .xm-so-cta:not([hidden])~a[href="#gift-list"]{display:none}
.xm-jump__row .xm-so-jump{font-weight:700}
