:root {
--br-pink: #ef3f70;
--br-purple: #56336b;
--br-purple-hover: #432753;
--br-green-bg: #e9f7ef;
--br-green-text: #24633d;
--br-green-border: #3b9b62;
--br-orange-bg: #fff3df;
--br-orange-text: #8a4b00;
--br-orange-border: #e88916;
--br-red-bg: #fdeaea;
--br-red-text: #8d2525;
--br-red-border: #d33b3b;
--br-neutral-bg: #f2f2f2;
--br-neutral-text: #555;
--br-neutral-border: #999;
} .br-card {
background: #fff;
border: 3px solid var(--br-pink);
border-radius: 10px;
padding: 24px 24px 22px;
box-sizing: border-box;
overflow: hidden;
box-shadow: none;
font-size: 1em;
line-height: 1.45;
} .br-status {
display: inline-block;
align-self: flex-start;
margin: 0 0 12px;
border-radius: 5px;
padding: 7px 11px 7px 12px;
font-size: 13px;
font-weight: 600;
line-height: 1.1;
}
.br-status-green {
background: var(--br-green-bg);
color: var(--br-green-text);
border-left: 5px solid var(--br-green-border);
}
.br-status-orange {
background: var(--br-orange-bg);
color: var(--br-orange-text);
border-left: 5px solid var(--br-orange-border);
}
.br-status-red {
background: var(--br-red-bg);
color: var(--br-red-text);
border-left: 5px solid var(--br-red-border);
}
.br-status-neutral {
background: var(--br-neutral-bg);
color: var(--br-neutral-text);
border-left: 5px solid var(--br-neutral-border);
} .br-title {
display: block;
margin: 0 0 6px;
padding: 0;
font-size: 26px;
line-height: 1.2;
font-weight: 700;
text-transform: capitalize;
} .train-time,
.bus-service,
.roadworks-town,
.powercut-reference,
.representative-area {
display: block;
margin: 0 0 18px;
padding: 0;
font-size: 14px;
line-height: 1.3;
font-weight: 600;
}
.bus-service,
.representative-area {
text-transform: uppercase;
} .br-label {
display: block;
margin: 0 0 4px;
font-size: 11px;
line-height: 1.2;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .7px;
}
.br-value {
display: block;
font-size: 1em;
line-height: 1.45;
} .br-button {
display: inline-block;
align-self: flex-start;
margin-top: 8px;
background: var(--br-purple);
color: #fff !important;
border: 0;
border-radius: 5px;
padding: 9px 15px;
font: inherit;
font-size: 14px;
font-weight: 600;
line-height: 1.2;
text-decoration: none !important;
cursor: pointer;
box-shadow: none;
}
.br-button:hover,
.br-button:focus {
background: var(--br-purple-hover);
color: #fff !important;
box-shadow: none;
} .br-message {
padding: 20px;
text-align: center;
} #brandon-trains,
#brandon-roadworks,
#brandon-powercuts,
#brandon-bins,
#brandon-buses,
#brandon-traffic,
#brandon-representatives {
width: 100%;
} .trains-grid,
.roadworks-grid,
.buses-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 25px;
align-items: stretch;
}
.trains-grid .br-card,
.roadworks-grid .br-card,
.buses-grid .br-card {
height: 100%;
display: flex;
flex-direction: column;
}  .representatives-grid {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 25px;
align-items: stretch;
} .representative-card:nth-child(1),
.representative-card:nth-child(2) {
grid-column: span 3;
}
.representative-card:nth-child(3),
.representative-card:nth-child(4),
.representative-card:nth-child(5) {
grid-column: span 2;
} .representatives-grid .br-card {
height: 100%;
display: flex;
flex-direction: column;
align-items: flex-start;
} .representative-content {
width: 100%;
min-width: 0;
display: flex;
flex-direction: column;
align-items: flex-start;
flex: 1;
} .representative-photo {
width: 100%;
height: 190px;
margin: 0 0 20px;
overflow: hidden;
border-radius: 7px;
flex-shrink: 0;
}
.representative-photo img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
} .representative-card:not(.representative-featured) .representative-photo {
width: 75%;
height: auto;
margin: 0 0 20px;
align-self: flex-start;
}
.representative-card:not(.representative-featured) .representative-photo img {
height: auto;
object-fit: contain;
} .representative-featured {
flex-direction: row !important;
align-items: stretch !important;
gap: 24px;
}
.representative-featured .representative-photo {
width: 42%;
height: 220px;
margin: 0;
flex: 0 0 42%;
}
.representative-featured .representative-content {
justify-content: center;
} .representative-buttons {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: auto;
padding-top: 8px;
}
.representative-buttons .br-button {
margin-top: 0;
} .train-detail {
margin: 0 0 18px;
padding: 0;
font-size: 1em;
line-height: 1.45;
}
.train-reason {
margin-top: 18px;
} .train-scheduled {
font-weight: 600;
}
.train-time:has(.train-expected) .train-scheduled {
font-weight: 400;
}
.train-expected {
font-weight: 600;
text-transform: uppercase;
} .train-calling {
margin: 0;
padding: 0;
}
.train-calling .br-label {
margin-bottom: 6px;
}
.train-calling-list {
list-style: none;
margin: 0;
padding: 0;
}
.train-calling-list li {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 15px;
align-items: baseline;
margin: 0;
padding: 2px 0;
font-size: 1em;
line-height: 1.45;
}
.train-calling-location {
min-width: 0;
}
.train-calling-time {
white-space: nowrap;
text-align: right;
}
.train-calling-time .train-on-time {
font-weight: 600;
}
.train-calling-time:has(.train-expected) .train-on-time {
font-weight: 400;
}
.train-calling-time .train-expected {
font-weight: 600;
}
.train-calling-cancelled {
opacity: .65;
}
.train-calling-cancelled .train-calling-location {
text-decoration: line-through;
} .bus-days {
display: grid;
grid-template-columns: repeat(7, minmax(0, 1fr));
gap: 8px;
margin: 0 0 25px;
}
.bus-day {
appearance: none;
-webkit-appearance: none;
min-width: 0;
margin: 0;
border: 0;
border-radius: 6px;
padding: 11px 6px 10px;
background: #f2f2f2;
color: #333;
font: inherit;
text-align: center;
cursor: pointer;
box-shadow: none;
transition:
background-color .2s ease,
color .2s ease;
}
.bus-day:hover,
.bus-day:focus {
background: #e5e5e5;
color: #333;
outline: none;
box-shadow: none;
}
.bus-day-active,
.bus-day-active:hover,
.bus-day-active:focus {
background: var(--br-purple);
color: #fff;
}
.bus-day-name,
.bus-day-date {
display: block;
}
.bus-day-name {
font-size: 12px;
font-weight: 700;
line-height: 1.2;
}
.bus-day-date {
margin-top: 4px;
font-size: 13px;
font-weight: 400;
line-height: 1.2;
} .bus-times {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 8px;
margin: -12px 0 25px;
}
.bus-time {
appearance: none;
-webkit-appearance: none;
min-width: 0;
margin: 0;
border: 0;
border-radius: 6px;
padding: 10px 6px;
background: #f2f2f2;
color: #333;
font: inherit;
font-size: 12px;
font-weight: 600;
line-height: 1.2;
text-align: center;
cursor: pointer;
box-shadow: none;
transition:
background-color .2s ease,
color .2s ease;
}
.bus-time:hover,
.bus-time:focus {
background: #e5e5e5;
color: #333;
outline: none;
box-shadow: none;
}
.bus-time-active,
.bus-time-active:hover,
.bus-time-active:focus {
background: var(--br-purple);
color: #fff;
}
.bus-time-count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 18px;
height: 18px;
margin-left: 5px;
padding: 0 5px;
border-radius: 9px;
background: rgba(0, 0, 0, .08);
box-sizing: border-box;
font-size: 10px;
line-height: 1;
}
.bus-time-active .bus-time-count {
background: rgba(255, 255, 255, .2);
} .bus-detail {
margin: 0 0 18px;
padding: 0;
font-size: 1em;
line-height: 1.45;
}
.bus-destinations {
margin: 0 0 18px;
padding: 0;
}
.bus-destinations .br-label {
margin-bottom: 6px;
} .bus-calling {
margin: 0;
padding: 0;
}
.bus-calling .br-label {
margin-bottom: 6px;
}
.bus-stop-list {
margin: 0;
padding: 0;
}
.bus-stop {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 15px;
align-items: baseline;
margin: 0;
padding: 2px 0;
font-size: 1em;
line-height: 1.45;
}
.bus-stop-name {
min-width: 0;
font-weight: 400;
}
.bus-stop-time {
white-space: nowrap;
text-align: right;
}
.bus-stop-time strong {
font-weight: 600;
} .bus-live,
.bus-scheduled {
margin-top: auto;
padding-top: 18px;
font-size: 12px;
line-height: 1.3;
font-weight: 700;
}
.bus-live {
display: flex;
align-items: center;
gap: 6px;
} .bus-live-separator {
opacity: .45;
}
.bus-scheduled {
opacity: .55;
}
.bus-empty-message {
width: 100%;
box-sizing: border-box;
} .bus-live-dot {
position: relative;
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
background: #80659a;
flex: 0 0 auto;
animation: br-live-pulse 3s ease-out infinite;
}
@keyframes br-live-pulse {
0% {
box-shadow: 0 0 0 0 rgba(128, 101, 154, .45);
}
25% {
box-shadow: 0 0 0 6px rgba(128, 101, 154, 0);
}
26%, 100% {
box-shadow: 0 0 0 0 rgba(128, 101, 154, 0);
}
}
@media (prefers-reduced-motion: reduce) {
.bus-live-dot {
animation: none;
}
} .roadworks-description {
margin: 0 0 18px;
padding: 0;
font-size: 1em;
line-height: 1.45;
}
.roadworks-detail,
.roadworks-dates {
margin: 0 0 18px;
padding: 0;
font-size: 1em;
line-height: 1.45;
}
.roadworks-promoter {
text-transform: none;
}
.roadworks-map-wrap {
display: none;
width: 100%;
margin-top: 14px;
}
.roadworks-map-wrap.open {
display: block;
}
.roadworks-map {
width: 100%;
height: 250px;
border: 1px solid #e5e5e5;
border-radius: 7px;
overflow: hidden;
}
.roadworks-map .leaflet-overlay-pane svg path {
fill: none !important;
fill-opacity: 0 !important;
filter: none !important;
box-shadow: none !important;
text-shadow: none !important;
} .powercuts-list {
display: flex;
flex-direction: column;
gap: 30px;
}
.powercut-description {
margin: 0 0 18px;
padding: 0;
font-size: 1em;
line-height: 1.45;
font-weight: 400;
}
.powercut-details {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
column-gap: 30px;
row-gap: 14px;
margin: 0 0 12px;
}
.powercut-detail,
.powercut-postcodes {
margin: 0 0 10px;
padding: 0;
font-size: 1em;
line-height: 1.45;
}
.powercut-postcode-list {
display: block;
font-size: 1em;
line-height: 1.45;
} .bins-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 25px;
align-items: stretch;
} .bins-grid .br-card {
height: 100%;
display: flex;
flex-direction: column;
align-items: flex-start;
}
.bin-card .br-status {
align-self: flex-start;
} .bin-image {
width: 100%;
height: 210px;
display: flex;
align-items: center;
justify-content: center;
margin: 5px 0 18px;
}
.bin-image img {
display: block;
width: auto;
height: auto;
max-width: 100%;
max-height: 210px;
object-fit: contain;
} .bin-date {
display: block;
margin: 0 0 18px;
padding: 0;
font-size: 14px;
line-height: 1.3;
font-weight: 600;
text-transform: uppercase;
} .bin-changed {
display: block;
margin: -6px 0 14px;
padding: 0;
font-size: 12px;
line-height: 1.4;
opacity: .65;
} .bin-caddy {
display: block;
margin-top: auto;
padding-top: 8px;
text-align: left;
}
.bin-caddy .br-label {
margin-bottom: 0;
} @media (max-width: 1024px) {
.trains-grid,
.roadworks-grid,
.buses-grid,
.traffic-grid,
.bins-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
} .representatives-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.representative-card:nth-child(1),
.representative-card:nth-child(2),
.representative-card:nth-child(3),
.representative-card:nth-child(4),
.representative-card:nth-child(5) {
grid-column: auto;
}
.representative-featured {
flex-direction: column !important;
}
.representative-featured .representative-photo {
width: 100%;
height: 190px;
margin: 0 0 20px;
flex-basis: auto;
}
.powercut-details {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bus-days {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.bus-times {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
} @media (max-width: 767px) {
.trains-grid,
.roadworks-grid,
.buses-grid,
.traffic-grid,
.bins-grid,
.representatives-grid {
grid-template-columns: 1fr;
}
.br-card {
padding: 20px;
}
.powercut-details {
grid-template-columns: 1fr;
gap: 10px;
margin-bottom: 10px;
}
.powercut-detail,
.powercut-postcodes {
margin-bottom: 8px;
} .representative-featured .representative-photo {
height: 220px;
} .representative-card:not(.representative-featured) .representative-photo {
width: 100%;
height: auto;
} .bus-days {
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 6px;
margin-bottom: 20px;
}
.bus-day {
padding: 9px 4px;
}
.bus-day-name {
font-size: 11px;
}
.bus-day-date {
font-size: 12px;
} .bus-times {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 6px;
margin-top: -10px;
margin-bottom: 20px;
}
.bus-time {
padding: 9px 4px;
} .bin-image {
height: 170px;
margin-top: 3px;
margin-bottom: 16px;
}
.bin-image img {
max-height: 165px;
}
} .traffic-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 25px;
align-items: stretch;
}
.traffic-grid .br-card {
height: 100%;
display: flex;
flex-direction: column;
align-items: flex-start;
}
.traffic-area {
display: block;
margin: 0 0 18px;
font-size: 14px;
line-height: 1.3;
font-weight: 600;
text-transform: uppercase;
}
.traffic-speeds {
width: 100%;
}
.traffic-speeds .br-label {
margin-bottom: 6px;
}
.traffic-speed-list {
list-style: none;
margin: 0;
padding: 0;
}
.traffic-speed-list li {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: baseline;
gap: 15px;
padding: 2px 0;
font-size: 1em;
line-height: 1.45;
}
.traffic-speed-value {
display: inline-flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
font-weight: 600;
white-space: nowrap;
text-align: right;
}
.traffic-speed-dot {
display: inline-block;
width: 9px;
height: 9px;
border-radius: 50%;
flex: 0 0 9px;
}
.traffic-speed-dot.level-0 { background: var(--br-green-border); }
.traffic-speed-dot.level-1 { background: var(--br-orange-border); }
.traffic-speed-dot.level-2,
.traffic-speed-dot.level-3 { background: var(--br-red-border); }
.traffic-speed-dot.level-unknown { background: var(--br-neutral-border); }
.traffic-updated {
margin-top: auto;
padding-top: 18px;
font-size: 12px;
line-height: 1.3;
opacity: .65;
} #brandon-traffic.traffic-priority {
order: -1;
}
@media (max-width: 1024px) {
.traffic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
.traffic-grid { grid-template-columns: 1fr; }
}