/* Seven editorial cards and one promotion in the same grid. */
/* EP283: flexible event rows and readable local sections. */
.ep-shell :is(.ep-now-events,.ep-my-ealing,.ep-home-alerts,.epg-home-section){font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
.ep-shell :is(.ep-now-events,.ep-my-ealing,.ep-home-alerts,.epg-home-section) :is(h2,h3,strong,b,small,em,a,p){font-family:inherit!important}
.ep-shell :is(.ep-now-events,.epg-home-section) h2{font-size:28px!important;font-weight:600!important;letter-spacing:-.025em!important;line-height:1.25!important}
.ep-shell .ep-now-events{padding:24px!important;min-height:0!important;background:#f6f9fa!important}
.ep-shell .ep-now-events-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))!important;gap:18px!important;align-items:stretch!important}
.ep-shell .ep-now-event-card{display:flex!important;flex-direction:column!important;min-width:0!important;border-radius:14px!important;border:1px solid #dce7e9!important;background:#fff!important;overflow:hidden!important}
.ep-shell .ep-now-event-image{position:relative!important;display:block!important;aspect-ratio:16/9!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important}
.ep-shell .ep-now-event-image img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
.ep-shell .ep-now-event-copy{display:flex!important;flex:1!important;flex-direction:column!important;gap:8px!important;padding:16px!important;min-height:0!important}
.ep-shell .ep-now-event-copy strong{font-size:17px!important;font-weight:600!important;line-height:1.4!important;min-height:0!important}
.ep-shell .ep-now-event-copy>small{font-size:12px!important;font-weight:500!important;color:#087e7b!important}
.ep-shell .ep-now-event-copy em{font-size:13px!important;line-height:1.6!important;font-style:normal!important;color:#637784!important;display:block!important}
.ep-shell .ep-now-event-location{display:flex!important;font-size:11px!important;line-height:1.5!important;margin-top:auto!important;padding-top:6px!important;color:#71828c!important}
.ep-shell .ep-now-event-location svg{width:13px!important;height:13px!important;flex:none}
.ep-shell .ep-now-event-area{display:block!important;position:absolute!important;bottom:10px!important;left:10px!important;background:#fffffff0!important;color:#335c68!important;padding:4px 8px!important;border-radius:5px!important;font-size:10px!important;font-weight:500!important}
.ep-event-illustration-label{position:absolute;top:9px;left:9px;padding:3px 6px;border-radius:4px;background:#fffffff0;color:#596971;font:9px/1.4 ui-sans-serif,system-ui!important;font-style:normal}
.ep-event-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 20px}
.ep-event-shortcuts a{background:#fff;border:1px solid #d5e3e6;border-radius:30px;padding:8px 14px;color:#386373;font-size:13px!important;font-weight:500!important;text-decoration:none}
.ep-event-shortcuts a:hover{border-color:#0a8c83;color:#087d7b}
.ep-shell .ep-my-ealing__head strong{font-size:17px!important;font-weight:600!important}
.ep-shell .ep-home-alert-item strong{font-size:14px!important;font-weight:600!important;line-height:1.4!important}
.ep-shell .epg-home-photo__shade strong{font-weight:600!important}
@media(max-width:650px){.ep-shell .ep-now-events{padding:16px!important}.ep-shell .ep-now-events-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.ep-shell .ep-now-event-copy{padding:11px!important}.ep-shell .ep-now-event-copy strong{font-size:14px!important}.ep-shell .ep-now-event-copy>small{font-size:11px!important}.ep-shell .ep-now-event-copy em{font-size:12px!important}.ep-shell :is(.ep-now-events,.epg-home-section) h2{font-size:23px!important}.ep-event-shortcuts{gap:6px}.ep-event-shortcuts a{font-size:12px!important;padding:7px 10px}.ep-shell>main>.ep-home-council{order:5!important}}
.ep-home-news-columns--unified .ep-news-promo-tile{min-width:0;max-width:none;margin:0;display:flex;align-self:stretch}
.ep-news-promo-tile .ep-home-project-rotator{width:100%;height:100%;min-height:150px;margin:0;border-radius:18px}
.ep-news-promo-tile .ep-home-project-slide{min-height:150px;height:100%;box-sizing:border-box;padding:18px;gap:16px;align-items:center}
.ep-news-promo-tile .ep-home-project-slide__visual{width:110px;min-width:110px;height:110px;flex-basis:110px}
.ep-news-promo-tile .ep-home-project-slide__copy strong{font-size:16px!important;line-height:1.3!important;font-weight:600!important}
.ep-news-promo-tile .ep-home-project-slide__copy em{font-size:12px!important;line-height:1.4!important}
.ep-news-promo-tile .ep-home-project-slide__sub{display:none}
.ep-news-promo-tile .ep-home-project-rotator__label{font-size:8px;letter-spacing:.04em}
.ep-news-promo-tile .ep-home-project-slide__cta{font-size:11px!important;margin-top:8px!important}
.ep-home-council{order:5;display:block!important;padding:28px!important;background:linear-gradient(135deg,#f3f9f8,#f4f7fb)!important;border:1px solid #d6e6e7;border-radius:22px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
.ep-home-council *{box-sizing:border-box;font-family:inherit!important}
.ep-home-council__head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.ep-home-council__head small{color:#16857c;font-size:12px;font-weight:600;letter-spacing:.04em}
.ep-home-council__head h2{color:#193e51;font-size:30px;line-height:1.2;letter-spacing:-.03em;font-weight:650;margin:8px 0 10px}
.ep-home-council__head p{color:#607681;font-size:15px;line-height:1.6;margin:0;max-width:750px}
.ep-home-council a{text-decoration:none;color:#176e78}
.ep-home-council__all{display:inline-flex;align-items:center;gap:12px;white-space:nowrap;background:#fff;border:1px solid #cadddf;border-radius:10px;padding:12px 16px;font-size:13px;font-weight:600}
.ep-home-council svg{width:16px;height:16px;flex:none}
.ep-home-council__tools{display:flex;align-items:end;justify-content:space-between;gap:24px;margin:24px 0}
.ep-home-council__tools form{min-width:280px;flex:1;max-width:440px}
.ep-home-council__tools label{display:block;margin-bottom:8px;font-size:13px;font-weight:600;color:#294a59}
.ep-home-council__tools form>div{display:flex;background:#fff;border:1px solid #cadddf;border-radius:10px;padding:5px}
.ep-home-council__tools input{width:100%;min-width:0;border:0;background:transparent;padding:9px;font:inherit;font-size:14px;outline-offset:-2px}
.ep-home-council__tools button{display:flex;gap:8px;align-items:center;border:0;border-radius:7px;background:#087e7b;color:#fff;padding:10px 16px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.ep-home-council__tools nav{display:flex;flex-wrap:wrap;gap:8px}
.ep-home-council__tools nav a{display:flex;align-items:center;gap:9px;padding:12px 14px;background:#e8f2f1;border-radius:8px;font-size:13px}
.ep-home-council__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.ep-home-council__person{display:grid;grid-template-columns:64px minmax(0,1fr);gap:14px;padding:20px;border:1px solid #dfe8e9;background:#fff;border-radius:14px;transition:border-color .15s,box-shadow .15s;min-width:0}
.ep-home-council__person:hover{border-color:#82b7b2;box-shadow:0 6px 18px #173c4d08}
.ep-home-council__person img{display:block;border-radius:50%;width:64px;height:64px;object-fit:cover;background:#edf4f4}
.ep-home-council__person>span{display:flex;flex-direction:column;gap:4px;justify-content:center}
.ep-home-council__person small{font-size:11px;color:#148278;font-weight:500;text-transform:none}
.ep-home-council__person strong{font-size:17px;line-height:1.25;color:#203f50;font-weight:600}
.ep-home-council__person em{font-size:11px;font-style:normal;color:#74828b}
.ep-home-council__person p{grid-column:1/-1;margin:0;color:#60737e;font-size:13px;line-height:1.6;min-height:3.2em}
.ep-home-council__person>b{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;padding-top:10px;border-top:1px solid #edf2f2;font-size:12px;font-weight:600}
.ep-home-council footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;color:#71818a;font-size:12px}
.ep-home-council footer span,.ep-home-council footer a{display:flex;gap:8px;align-items:center}
@media(max-width:900px){.ep-home-council__tools{align-items:stretch;flex-direction:column;gap:14px}.ep-home-council__tools form{max-width:none}.ep-home-council__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.ep-home-council{padding:18px!important}.ep-home-council__head{display:block}.ep-home-council__head h2{font-size:25px}.ep-home-council__all{margin-top:14px}.ep-home-council__grid{grid-template-columns:1fr}.ep-home-council__person{padding:16px}.ep-home-council__person p{min-height:0}.ep-home-council__tools form{min-width:0}.ep-home-council footer{align-items:start;flex-direction:column}.ep-news-promo-tile .ep-home-project-slide{padding:16px}.ep-news-promo-tile .ep-home-project-slide__visual{width:85px;min-width:85px;height:85px;flex-basis:85px}}

/* A single remaining event still uses a balanced horizontal card. */
@media(min-width:651px){.ep-shell .ep-now-events-grid:has(>.ep-now-event-card:only-child){grid-template-columns:1fr!important}.ep-shell .ep-now-events-grid>.ep-now-event-card:only-child{display:grid!important;grid-template-columns:minmax(220px,40%) minmax(0,1fr)!important}.ep-shell .ep-now-event-card:only-child .ep-now-event-image{max-height:260px!important}.ep-shell .ep-now-event-card:only-child .ep-now-event-copy{justify-content:center!important;padding:24px!important}}

/* Six featured events form two balanced rows on desktop. */
@media(min-width:901px){.ep-shell .ep-now-events-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.ep-shell .ep-now-events-grid:has(>.ep-now-event-card:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(min-width:651px) and (max-width:900px){.ep-shell .ep-now-events-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* Keep the mixed news feed in two readable columns on phones. */
@media(max-width:720px){
.ep-shell .ep-home-news-columns--unified .ep-news-grid--local{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.ep-shell .ep-home-news-columns--unified .ep-news-card{display:flex!important;flex-direction:column!important;padding:0!important;gap:0!important;min-width:0!important;overflow:hidden!important;border-radius:13px!important}
.ep-shell .ep-home-news-columns--unified .ep-news-image{width:100%!important;min-width:0!important;height:auto!important;aspect-ratio:3/2!important;flex:none!important;border-radius:0!important}
.ep-shell .ep-home-news-columns--unified .ep-news-image img{width:100%!important;height:100%!important;object-fit:cover!important}
.ep-shell .ep-home-news-columns--unified .ep-news-copy{padding:11px!important;min-width:0!important;min-height:0!important;gap:7px!important}
.ep-shell .ep-home-news-columns--unified .ep-news-copy strong{font-size:14px!important;line-height:1.4!important;font-weight:600!important;letter-spacing:-.015em!important}
.ep-shell .ep-home-news-columns--unified .ep-news-source,.ep-shell .ep-home-news-columns--unified .ep-news-arrow{display:none!important}
.ep-shell .ep-home-news-columns--unified .ep-news-copy>small{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;overflow:hidden!important;margin:0!important;font-size:12px!important;line-height:1.5!important;color:#566d7b!important;font-weight:400!important;font-family:Inter,ui-sans-serif,system-ui,sans-serif!important}
.ep-shell .ep-home-news-columns--unified .ep-news-meta{display:flex!important;font-size:11px!important;line-height:1.5!important;white-space:normal!important;flex-wrap:wrap!important;gap:4px 7px!important;margin:0!important;color:#5b7180!important}
.ep-shell .ep-home-news-columns--unified .ep-news-meta time{display:block!important;font:inherit!important;color:inherit!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:100%!important}
/* Four latest stories on phones; the complete chronological feed is one tap away. */
.ep-shell .ep-home-news-columns--unified .ep-news-card--desktop-extra,.ep-shell .ep-home-news-columns--unified .ep-news-promo-tile{display:none!important}
.ep-shell .ep-home-news-columns--unified .ep-home-news-column-more{display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;min-height:44px!important;margin-top:12px!important;font-size:13px!important}
.ep-shell .ep-news-promo-tile .ep-home-project-slide{flex-direction:column!important;justify-content:center!important;padding:24px 12px 14px!important;gap:10px!important;min-height:240px!important}
.ep-shell .ep-news-promo-tile .ep-home-project-slide__visual{width:64px!important;min-width:64px!important;height:64px!important;flex-basis:64px!important}
.ep-shell .ep-news-promo-tile .ep-home-project-slide__copy{min-width:0!important;width:100%!important}
.ep-shell .ep-news-promo-tile .ep-home-project-slide__copy strong{font-size:14px!important}
.ep-shell .ep-news-promo-tile .ep-home-project-slide__copy em{font-size:11px!important}
.ep-shell .ep-news-promo-tile .ep-home-project-rotator__label{font-size:7px!important;right:6px!important;top:6px!important}
}

/* EP298: resolve inherited mobile rules, rather than clipping their overflow. */
.ep-shell .ep-now-event-area {
  inset: auto auto 10px 10px !important;
  width: max-content !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: calc(100% - 20px) !important;
  line-height: 1.35 !important;
}

@media (max-width: 900px) {
  .ep-shell .ep-now-events-head h2,
  .ep-shell .epg-home-section h2 {
    max-width: none !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
  }
  .ep-shell .ep-now-event-copy > small,
  .ep-shell .ep-now-event-date-mobile {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.5 !important;
  }
  .ep-shell .ep-now-event-copy strong {
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
    margin: 0 !important;
  }
  .ep-shell .ep-now-event-copy em {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    margin: 0 !important;
  }
  .ep-shell .ep-now-event-location > span {
    min-width: 0 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 650px) {
  .ep-shell .ep-now-events,
  .ep-shell .ep-home-council { padding: 16px 14px !important; }
  .ep-shell .ep-now-events-head { gap: 12px 8px !important; }
  .ep-shell .ep-now-events-head h2,
  .ep-shell .epg-home-section h2 { font-size: 22px !important; line-height: 1.3 !important; }
  .ep-shell .ep-now-events-head small { font-size: 11px !important; line-height: 1.5 !important; }
  .ep-shell .ep-now-events-head > a { font-size: 12px !important; min-height: 44px !important; padding: 0 12px !important; }
  .ep-shell .ep-event-shortcuts { margin: 16px 0; gap: 7px; }
  .ep-shell .ep-event-shortcuts a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; box-sizing: border-box; }
  .ep-shell .ep-now-events-grid { grid-template-columns: minmax(0,1fr) !important; gap: 12px !important; }
  .ep-shell .ep-now-event-card {
    display: grid !important;
    grid-template-columns: 96px minmax(0,1fr) !important;
    align-items: start !important;
    gap: 0 !important;
    padding: 0 !important;
    box-shadow: 0 4px 12px #173c4d06 !important;
  }
  .ep-shell .ep-now-event-image {
    width: 96px !important;
    height: 112px !important;
    aspect-ratio: auto !important;
    margin: 10px 0 10px 10px !important;
    border-radius: 9px !important;
  }
  .ep-shell .ep-now-event-area { inset: auto auto 6px 6px !important; max-width: calc(100% - 12px) !important; padding: 4px 5px !important; font-size: 10px !important; }
  .ep-shell .ep-event-illustration-label { top: 6px; left: 6px; max-width: calc(100% - 12px); padding: 2px 4px; font-size: 8px !important; box-sizing: border-box; }
  .ep-shell .ep-now-event-copy { padding: 12px 12px 12px 20px !important; gap: 7px !important; overflow: visible !important; }
  .ep-shell .ep-now-event-copy > small { font-size: 11px !important; }
  .ep-shell .ep-now-event-copy strong { font-size: 15px !important; line-height: 1.4 !important; }
  .ep-shell .ep-now-event-copy em { font-size: 12px !important; line-height: 1.5 !important; }
  .ep-shell .ep-now-event-location { font-size: 11px !important; font-weight: 400 !important; gap: 5px !important; padding-top: 3px !important; align-items: start !important; }
  .ep-shell .ep-now-event-arrow { display: none !important; }

  .ep-shell .ep-home-council__head { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; }
  .ep-shell .ep-home-council__head h2 { font-size: 22px; line-height: 1.3; margin: 0; }
  .ep-shell .ep-home-council__head small, .ep-shell .ep-home-council__head p { display: none; }
  .ep-shell .ep-home-council__head p { font-size: 13px !important; line-height: 1.6 !important; }
  .ep-shell .ep-home-council__all { min-height: 44px; margin-top: 0; padding: 10px; font-size: 12px; gap: 6px; }
  .ep-shell .ep-home-council__tools { margin: 18px 0; gap: 12px; }
  .ep-shell .ep-home-council__tools form { min-width: 0; }
  .ep-shell .ep-home-council__tools input { font-size: 16px; }
  .ep-shell .ep-home-council__tools nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .ep-shell .ep-home-council__tools nav a { min-height: 44px; padding: 8px; font-size: 12px; gap: 6px; line-height: 1.35; justify-content: center; text-align: center; }
  .ep-shell .ep-home-council__grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .ep-shell .ep-home-council__person { grid-template-columns: 52px minmax(0,1fr); gap: 9px 12px; padding: 14px; align-items: start; }
  .ep-shell .ep-home-council__person img { width: 52px; height: 52px; grid-row: 1; }
  .ep-shell .ep-home-council__person > span { min-width: 0; gap: 3px; }
  .ep-shell .ep-home-council__person strong { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
  .ep-shell .ep-home-council__person small,
  .ep-shell .ep-home-council__person em { font-size: 11px; line-height: 1.4; }
  .ep-shell .ep-home-council__person p { grid-column: 1 / -1; font-size: 13px !important; line-height: 1.45 !important; min-height: 0; }
  .ep-shell .ep-home-council__person > b { grid-column: 1 / -1; padding-top: 8px; font-size: 12px; gap: 8px; }
  .ep-shell .ep-home-council footer { align-items: start; flex-direction: column; font-size: 11px; line-height: 1.5; gap: 12px; }
  .ep-shell .ep-home-council footer a { min-height: 40px; }
}

/* The legacy tracker strip is removed; let the introduction use its full row. */
.ep-shell .ep-start-intro-row { display: block !important; }

@media(max-width:650px){
 .ep-shell .ep-home-council__tools nav svg { display:none; }
 .ep-shell .ep-home-council__person:nth-child(n+4) { display:none; }
 .ep-shell .ep-my-ealing { padding:14px!important; gap:14px!important; }
 .ep-shell .ep-my-ealing__head { gap:10px!important; }
 .ep-shell .ep-my-ealing__pin { width:36px!important; height:36px!important; flex:0 0 36px!important; }
 .ep-shell .ep-my-ealing__head strong { font-size:16px!important; line-height:1.35!important; }
 .ep-shell .ep-my-ealing__head em { font-size:12px!important; line-height:1.5!important; }
 .ep-shell .ep-my-ealing__links { gap:8px!important; }
 .ep-shell .ep-my-ealing__links a { min-height:48px!important; padding:8px!important; gap:8px!important; }
 .ep-shell .ep-my-ealing__links a>span { width:28px!important; height:28px!important; flex:0 0 28px!important; }
 .ep-shell .ep-my-ealing__links b { font-size:12px!important; line-height:1.35!important; }
}
