/* Load after the existing FRONTIER THOUGHT feature/surface styles on EventChanger only.
   Preserve all four existing card nodes, unique palettes, portraits and manual controls. */
:is(#ecctour-editions,#eccdef-editions).ec-meta-editions.efag-four-editions {
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:start;
}
:is(#ecctour-editions,#eccdef-editions).ec-meta-editions.efag-four-editions>.ec-meta-feature,
:is(#ecctour-editions,#eccdef-editions).ec-meta-editions.efag-four-editions>#efag-conference-feature {
  grid-column:auto!important;
  height:auto!important;
  min-width:0;
  align-self:start;
}
/* The programme hub also has four editions; keep the fourth in normal reading order. */
.eccdef-hub .hub-editions.efag-hub-has-agrifood,
.ecctour-hub .hub-editions.efag-hub-has-agrifood {
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
}
.hub-editions.efag-hub-has-agrifood>#efag-hub-edition {grid-column:auto!important;min-width:0}
/* Agrifood supplies a real olive-grove image. Do not inherit the hub's default AI motif. */
.eccdef-hub .hub-edition.efag-hub-edition::before {content:none!important}
/* A wider two-up card needs less poster height and less repeated whitespace.
   Keep the existing name-pill toolbar and complete, selectable position text. */
@media(min-width:721px) {
  :is(#ecctour-editions,#eccdef-editions).ec-meta-editions.efag-four-editions>.ec-meta-feature {
    grid-template-rows:auto auto auto auto auto auto;
  }
  :is(#ecctour-editions,#eccdef-editions).ec-meta-editions.efag-four-editions>.ec-meta-feature>.ec-meta-primary,
  :is(#ecctour-editions,#eccdef-editions).ec-meta-editions.efag-four-editions>.ec-meta-feature>.ec-meta-portrait {
    min-height:260px!important;
  }
  :is(#ecctour-editions,#eccdef-editions).ec-meta-editions.efag-four-editions>.ec-meta-feature .ec-meta-title {
    font-size:clamp(30px,2.4vw,36px)!important;
  }
  :is(#ecctour-editions,#eccdef-editions).ec-meta-editions.efag-four-editions>.ec-meta-feature .ec-meta-statement {
    font-size:23px!important;
    max-width:52ch;
  }
}
@media(pointer:coarse) {
  .efag-four-editions .ftcp-navigation button,
  .efag-four-editions .ftcp-pills button {
    min-width:44px!important;min-height:44px!important;
  }
}
@media(max-width:720px) {
  :is(#ecctour-editions,#eccdef-editions).ec-meta-editions.efag-four-editions,
  .eccdef-hub .hub-editions.efag-hub-has-agrifood,
  .ecctour-hub .hub-editions.efag-hub-has-agrifood {
    grid-template-columns:minmax(0,1fr)!important;
  }
}
