/* Beacon Events — single event in Divi. REPLACE previous beacon-event.css. */
body.single-beacon_event #et-main-area > #main-content.tcc-event-page {
    position: relative !important;
    clear: both;
    width: 100% !important;
    max-width: none !important;
    min-height: 0;
    margin: 0 !important;
    padding: 72px 0 88px !important;
    background: #fff;
    color: #333;
    float: none;
    overflow: visible;
}
body.single-beacon_event .tcc-event-page *,
body.single-beacon_event .tcc-event-page *::before,
body.single-beacon_event .tcc-event-page *::after {box-sizing:border-box}
/* Ensure Divi header and the article remain separate stacking/flow contexts. */
body.single-beacon_event #et-main-area {position:relative; z-index:1; clear:both}
body.single-beacon_event .tcc-event-page .tcc-event-article,
body.single-beacon_event .tcc-event-page .tcc-other-events {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    float: none !important;
    clear: both;
    width: 88% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.single-beacon_event .tcc-event-page .tcc-event-heading {margin:0 0 36px; padding:0; position:static}
body.single-beacon_event .tcc-event-page .tcc-event-heading h1 {
    position:static !important;
    margin:0 !important;
    padding:0 !important;
    font-size: clamp(32px,3.2vw,43px);
    line-height:1.24;
    font-weight:800;
    letter-spacing:-.022em;
    color:#333;
}
body.single-beacon_event .tcc-event-page .tcc-event-grid {
    display:grid !important;
    grid-template-columns:minmax(0, 2.1fr) minmax(290px,1fr);
    gap:34px;
    align-items:start;
}
.tcc-event-page .tcc-event-grid > * {min-width:0}
.tcc-event-page .tcc-event-main {font-size:16px; line-height:1.62; padding-top:0}
.tcc-event-page .tcc-event-description {margin:0 0 22px}
.tcc-event-page .tcc-event-description p {margin:0 0 16px; padding:0}
.tcc-event-page .tcc-event-description a {color:#087fa3; font-weight:650; text-decoration:underline}
.tcc-event-page .tcc-event-map {margin-top:22px; overflow:hidden; width:100%; border-radius:4px}
.tcc-event-page .tcc-event-map iframe {display:block; width:100%; height:345px; border:0}
/* Historic Brighton skyline, restored from the supplied reference screenshot. */
.tcc-event-page .tcc-event-skyline {
    height: 146px;
    margin: 0 0 10px -8vw;
    background: url('pier.svg') left 12px / auto 90px no-repeat;
    pointer-events:none;
}
/* Custom fields composed from Beacon's confirmed shortcode HTML. */
body.single-beacon_event .tcc-event-sidebar {
    background:#b9ef00;
    border-radius:16px;
    padding:30px 29px 36px;
    color:#0d0d0d;
    font-size:16px;
    line-height:1.38;
}
.tcc-event-sidebar .tcc-info-row {
    display:block;
    padding:0 0 13px;
    margin:0 0 14px;
    border-bottom:1px dashed rgba(0,0,0,.68);
}
.tcc-event-sidebar .tcc-info-label {
    display:block;
    font-weight:700;
    text-transform:uppercase;
    margin-bottom:3px;
    font-size:15px;
}
.tcc-event-sidebar .tcc-info-value {
    display:block;
    font-weight:800;
    font-size:16px;
    overflow-wrap:break-word;
}
.tcc-event-sidebar .tcc-calendar-actions {display:flex;flex-wrap:wrap;gap:8px;padding-top:4px}
.tcc-event-sidebar .tcc-calendar-actions a {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#1187a8;
    color:#fff;
    padding:10px 13px;
    border-radius:7px;
    font-weight:800;
    font-size:13px;
    line-height:1.35;
    text-decoration:none;
}
.tcc-event-sidebar .tcc-calendar-actions a:hover {background:#086b89;color:#fff}
.tcc-event-sidebar .tcc-calendar-actions .tcc-calendar-google {background:transparent;color:#075771;padding-left:0}
.tcc-event-sidebar .tcc-calendar-actions .tcc-calendar-google:hover {background:transparent;text-decoration:underline;color:#075771}
/* Four card layout following the original site. */
body.single-beacon_event .tcc-event-page .tcc-other-events {margin-top:96px !important}
.tcc-event-page .tcc-other-events > h2 {font-size:29px; font-weight:800; line-height:1.25; margin:0 0 36px; padding:0; color:#333}
.tcc-event-page .tcc-event-cards {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:23px}
.tcc-event-page .tcc-event-card {position:relative; min-width:0; overflow:hidden; background:#e4f1f5; border-radius:15px; min-height:410px}
.tcc-event-page .tcc-card-image {display:block; width:100%; height:145px; overflow:hidden; background:#c4dce4}
.tcc-event-page .tcc-card-image img {display:block; width:100%; height:100%; object-fit:cover}
.tcc-event-page .tcc-card-placeholder {display:block; height:100%; background:linear-gradient(120deg,#c1dae4,#e7f2f5)}
.tcc-event-page .tcc-card-date {display:flex; flex-direction:column; align-items:center; justify-content:center; position:absolute; top:0; left:7px; z-index:1; padding:9px 12px; min-width:78px; max-width:calc(100% - 16px); border-radius:4px; background:#b6f000; color:#111; font-size:14px; font-weight:800; line-height:1.2}
.tcc-event-page .tcc-card-info {padding:17px 17px 24px}
.tcc-event-page .tcc-card-info h3 {font-size:18px; line-height:1.35; font-weight:750; margin:0 0 12px; padding:0}
.tcc-event-page .tcc-card-info h3 a {color:#333; text-decoration:none}
.tcc-event-page .tcc-card-info h3 a:hover {color:#087fa3}
.tcc-event-page .tcc-card-info p {font-size:14px; line-height:1.45; margin:0 0 7px; padding:0; color:#333}
.tcc-event-page .tcc-card-time::before {content:'◷'; color:#0e84a6; font-weight:800; padding-right:5px}
.tcc-event-page .tcc-card-venue::before {content:'⌖'; color:#0e84a6; font-weight:800; padding-right:5px}
.tcc-event-page .tcc-events-all {text-align:center; margin:52px 0 0; padding:0}
.tcc-event-page .tcc-events-all a {display:inline-block; background:#1384a5; color:#fff; border-radius:7px; padding:10px 17px; text-transform:uppercase; text-decoration:none; font-weight:750; font-size:13px}
.tcc-event-page .tcc-events-all a:hover {background:#076987;color:#fff}
@media(max-width:980px){
 body.single-beacon_event .tcc-event-page .tcc-event-article,
 body.single-beacon_event .tcc-event-page .tcc-other-events {width:88% !important}
 body.single-beacon_event .tcc-event-page .tcc-event-grid {grid-template-columns:minmax(0,1.5fr) minmax(220px,1fr);gap:24px}
 .tcc-event-page .tcc-event-cards {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767px){
 body.single-beacon_event #et-main-area > #main-content.tcc-event-page {padding:38px 0 60px !important}
 body.single-beacon_event .tcc-event-page .tcc-event-article,
 body.single-beacon_event .tcc-event-page .tcc-other-events {width:90% !important}
 body.single-beacon_event .tcc-event-page .tcc-event-grid {grid-template-columns:1fr; gap:26px}
 .tcc-event-page .tcc-event-map iframe {height:280px}
 body.single-beacon_event .tcc-event-page .tcc-other-events {margin-top:54px !important}
}
@media(max-width:480px){
 .tcc-event-page .tcc-event-cards {grid-template-columns:1fr}
 .tcc-event-page .tcc-event-card {min-height:0}
 .tcc-event-page .tcc-card-image {height:160px}
}

.tcc-event-page .tcc-card-date strong {display:block;font-size:23px;line-height:1;font-weight:850}
.tcc-event-page .tcc-card-date span {display:block;font-size:13px;font-weight:800}
@media (max-width: 767px) {
 .tcc-event-page .tcc-event-skyline {height:95px;margin-left:-6vw;background-size:auto 65px}
 body.single-beacon_event .tcc-event-page .tcc-event-sidebar {padding:25px}
}



/* v7 — final desktop proportions taken from original/live screenshot.
   These are the ONLY desktop overrides; earlier v5/v6 overrides were removed. */
@media (min-width: 981px) {
  body.single-beacon_event #et-main-area > #main-content.tcc-event-page {
    padding-top: 80px !important;
    padding-bottom: 82px !important;
  }
  /* The live page breaks after “Monday”, not after “Chat”. */
  body.single-beacon_event .tcc-event-page .tcc-event-heading {
    margin-bottom: 0;
  }
  body.single-beacon_event .tcc-event-page .tcc-event-heading h1 {
    max-width: 860px;
    font-size: 38px;
    line-height: 1.28;
    letter-spacing: -.022em;
  }
  body.single-beacon_event .tcc-event-page .tcc-event-grid {
    grid-template-columns: minmax(0, 2.05fr) minmax(315px, 1fr);
    gap: 32px;
  }
  /* Image is 680 × 79 with transparent pixels already trimmed.
     The original is wider and positioned higher than v6. */
  body.single-beacon_event .tcc-event-page .tcc-event-skyline {
    height: 174px;
    /* Bleed to the viewport edge; finish exactly at the sidebar's left edge. */
    --tcc-left-bleed: max(6vw, calc((100vw - 1280px) / 2));
    width: calc(100% + var(--tcc-left-bleed) + 32px);
    margin: -16px 0 18px calc(-1 * var(--tcc-left-bleed));
    background-position: left top;
    background-size: 100% auto;
  }
  body.single-beacon_event .tcc-event-page .tcc-event-main {
    font-size: 16px;
    line-height: 1.58;
  }
  body.single-beacon_event .tcc-event-page .tcc-event-description p {
    margin-bottom: 18px;
  }
  body.single-beacon_event .tcc-event-page .tcc-event-map {
    margin-top: 20px;
  }
  body.single-beacon_event .tcc-event-page .tcc-event-map iframe {
    height: 330px;
  }
  body.single-beacon_event .tcc-event-page .tcc-event-sidebar {
    padding: 34px 30px 37px;
    font-size: 16px;
  }
  body.single-beacon_event .tcc-event-sidebar .tcc-info-label {
    font-size: 17px;
    margin-bottom: 5px;
  }
  body.single-beacon_event .tcc-event-sidebar .tcc-info-value {
    font-size: 18px;
    line-height: 1.35;
  }
  body.single-beacon_event .tcc-event-sidebar .tcc-info-row {
    margin-bottom: 13px;
    padding-bottom: 13px;
  }
  /* Match the live cards: less image height and fuller typography. */
  body.single-beacon_event .tcc-event-page .tcc-other-events {
    margin-top: 138px !important;
  }
  body.single-beacon_event .tcc-event-page .tcc-other-events > h2 {
    font-size: 31px;
    margin-bottom: 31px;
  }
  body.single-beacon_event .tcc-event-page .tcc-event-cards {
    gap: 24px;
  }
  body.single-beacon_event .tcc-event-page .tcc-event-card {
    min-height: 350px;
  }
  body.single-beacon_event .tcc-event-page .tcc-card-image {
    height: 155px;
  }
  body.single-beacon_event .tcc-event-page .tcc-card-info {
    padding: 19px 19px 20px;
  }
  body.single-beacon_event .tcc-event-page .tcc-card-info h3 {
    font-size: 23px;
    line-height: 1.3;
    margin-bottom: 10px;
  }
  body.single-beacon_event .tcc-event-page .tcc-card-info p {
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 4px;
  }
  body.single-beacon_event .tcc-event-page .tcc-card-date {
    min-width: 86px;
    padding: 9px 11px;
  }
  body.single-beacon_event .tcc-event-page .tcc-card-date strong {
    font-size: 27px;
  }
  body.single-beacon_event .tcc-event-page .tcc-events-all {
    margin-top: 64px;
  }
}
/* Tablet and mobile: preserve v6 responsive two/one-column behaviour,
   with no viewport-wide skyline overspill. */
@media (min-width: 768px) and (max-width: 980px) {
  body.single-beacon_event .tcc-event-page .tcc-event-heading h1 {
    max-width: 100%; font-size: 34px;
  }
  body.single-beacon_event .tcc-event-page .tcc-event-skyline {
    width: calc(100% + 6vw);
    height: 125px;
    margin-left: -6vw;
    background-size: auto 80px;
    background-position: left 10px;
  }
  body.single-beacon_event .tcc-event-page .tcc-card-image {height: 155px;}
  body.single-beacon_event .tcc-event-page .tcc-event-card {min-height: 320px;}
}
@media (max-width: 767px) {
  body.single-beacon_event .tcc-event-page .tcc-event-heading h1 {
    max-width: 100%; font-size: clamp(29px, 6vw, 36px);
  }
  body.single-beacon_event .tcc-event-page .tcc-event-skyline {
    width: calc(100% + 5vw);
    height: 100px;
    margin-left: -5vw;
    background-size: auto 65px;
    background-position: left 5px;
  }
  body.single-beacon_event .tcc-event-page .tcc-other-events {margin-top: 58px !important;}
  body.single-beacon_event .tcc-event-page .tcc-events-all {margin-top: 42px;}
}

/* v9: drop the event date badge 10px below the top edge of its card. */
body.single-beacon_event .tcc-event-page .tcc-card-date { margin-top: 10px; }

/* v10: baseline superscripts in single-event content. */
body.single-beacon_event .tcc-event-page .tcc-event-description sup { bottom: 0; }

.tcc-parent-upcoming { margin-top:24px; }
.tcc-parent-upcoming h2 { font-size:22px; }
.tcc-parent-upcoming li { margin:8px 0; }
.tcc-occurrence-unavailable { color:#7d3030; }

/* v13 — requested single-event refinements. */
.tcc-all-dates { margin-top:10px; }
body.single-beacon_event .tcc-event-page .tcc-card-date { pointer-events:none; }
.tcc-info-row a:hover { background:#086b89; color:#fff; }

/* Explicitly requested single-event rules (v15). */
.tcc-all-dates { margin-top: 10px; }
body.single-beacon_event .tcc-event-page .tcc-card-date { pointer-events: none; }
.tcc-info-row a:hover { background: #086b89; color: #fff; }
