/* Castle Mountain Live Conditions: tables, legend, conditions bar, webcams and event cards. Colours follow the site kit variables when present. */
.cml-table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 16px; background: #fff; }
.cml-table th { background: var(--a3-navy, #1b2a3e); color: #fff; text-align: left; padding: 12px 14px; font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.cml-table td { padding: 10px 14px; border-bottom: 1px solid var(--a3-line, #e3e7ec); vertical-align: middle; }
.cml-table tbody tr:nth-child(even) td { background: #f6f8fa; }
.cml-table img { vertical-align: middle; max-height: 30px; width: auto; }
.cml-snow td:last-child { font-weight: 700; font-size: 18px; color: var(--a3-ink, #14202e); }
.cml-updated { font-size: 13px !important; color: #6b7480 !important; margin: 0 !important; }
.cml-count { font-size: 18px !important; margin: 0 0 12px !important; }
.cml-count strong { font-size: 40px; color: var(--a3-brand-text, #c23a14); font-family: var(--a3-font-head, inherit); margin-right: 6px; }
.cml-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px !important; margin: 0 0 12px !important; }
.cml-legend img { width: 20px; height: 20px; vertical-align: middle; }
.cml-zone select { padding: 8px 12px; border: 1px solid #c8d0d8; border-radius: 4px; font-size: 16px; margin-left: 6px; }
.cml-unavailable { padding: 14px 18px; background: #fff6e8; border-left: 4px solid #e8a33c; }
.cml-report p:last-child { margin-bottom: 0; }

.cml-bar { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.18); }
.cml-bar li { list-style: none; padding: 18px 12px !important; text-align: center; background: var(--a3-navy, #1b2a3e); margin: 0 !important; }
.cml-bar li::before { display: none !important; }
.cml-bar strong { display: block; color: #fff; font-family: var(--a3-font-head, inherit); font-size: 30px; line-height: 1.1; }
.cml-bar span { display: block; color: rgba(255, 255, 255, 0.75); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }
@media (max-width: 767px) { .cml-bar { grid-template-columns: repeat(2, 1fr); } .cml-bar li:last-child { grid-column: span 2; } .cml-bar strong { font-size: 24px; } }

.cml-cams { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cml-cam { margin: 0; background: #0f1824; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 28px rgba(15, 24, 36, 0.18); }
.cml-cam img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #0f1824; }
.cml-cam figcaption { color: #fff; padding: 10px 14px; font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 767px) { .cml-cams { grid-template-columns: 1fr; gap: 16px; } }

.cml-events { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cml-event { display: block; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 8px 24px rgba(15, 24, 36, 0.08); text-decoration: none !important; transition: transform 0.2s, box-shadow 0.2s; }
.cml-event:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(15, 24, 36, 0.14); }
.cml-event-img img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.cml-event-date { display: block; padding: 14px 16px 0; color: var(--a3-brand-text, #c23a14); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.cml-event-title { display: block; padding: 4px 16px 16px; color: var(--a3-ink, #14202e); font-family: var(--a3-font-head, inherit); font-size: 19px; line-height: 1.25; text-transform: uppercase; }
@media (max-width: 980px) { .cml-events { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cml-events { grid-template-columns: 1fr; } }

.cml-temps { list-style: none !important; margin: 0 0 14px !important; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cml-temps li { list-style: none; background: #fff; border-radius: 6px; padding: 14px 12px !important; text-align: center; margin: 0 !important; }
.cml-temps li::before { display: none !important; }
.cml-temps span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #5a6470; }
.cml-temps strong { display: block; font-family: var(--a3-font-head, inherit); font-size: 34px; line-height: 1.1; color: var(--a3-ink, #14202e); margin-top: 4px; }
.cml-temps .cml-na { display: inline; font-size: 15px; font-family: inherit; text-transform: none; letter-spacing: 0; color: #8a5a00; }
