.epg .epg-top-grid>.epg-weather{align-self:start;min-height:0}
.epg .epg-top-grid>.epg-board{height:var(--epg-board-height,480px);min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:22px}
.epg .epg-board-heading{flex-shrink:0;gap:12px}.epg .epg-board-heading h3{font-size:27px;margin:0}.epg .epg-board-intro{margin:10px 0 16px;font-size:14px;flex-shrink:0}
.epg .epg-publish-button{appearance:none;flex-shrink:0;font:inherit;font-size:13px;font-weight:650;border:0;background:#dceff1;color:#066774;border-radius:12px;padding:9px 13px;cursor:pointer;line-height:1.4}
.epg .epg-publish-button:hover{background:#cbe6e9}.epg .epg-board button:focus-visible{outline:3px solid #087d89;outline-offset:3px}
.epg [data-notices]{min-height:0;flex:1;overflow:hidden;display:flex;flex-direction:column}.epg .epg-board-empty{margin:auto 0;padding:24px 12px;text-align:center;color:#607688;font-size:15px;line-height:1.7}

/* Three equally readable rows, with optional thumbnail and separate actions. */
.epg [data-notices][data-notice-count]:not([data-notice-count="0"]){display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(3,minmax(0,1fr));gap:9px;overflow:hidden}
.epg .epg-notice-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-width:0;min-height:0;border:1px solid #dfe7ee;border-radius:13px;background:#fff;padding:8px 12px;position:relative;color:#193b50}
.epg .epg-notice-row.epg-has-picture{grid-template-columns:76px minmax(0,1fr) auto}
.epg .epg-notice-photo-button{display:block;width:76px;height:76px;max-height:100%;padding:0;border:0;border-radius:9px;overflow:hidden;background:transparent;cursor:zoom-in}
.epg .epg-notice-photo-button .epg-notice-photo{display:block;width:100%;height:100%;object-fit:cover;border-radius:9px}
.epg .epg-notice-copy{min-width:0;min-height:0;padding:0;background:none;color:#193b50}
.epg .epg-notice-top{display:flex;align-items:center;justify-content:space-between;gap:8px;height:19px;position:relative}
.epg .epg-notice-date{font-size:12px;color:#6a7e8e;line-height:1.3}
.epg .epg-notice-row h4{font-family:inherit;font-size:17px;line-height:1.25;font-weight:650;margin:2px 0 4px;color:#17384e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.02em}
.epg .epg-notice-excerpt{font-size:14px;line-height:1.35;margin:0 0 3px;color:#556f82;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.epg .epg-notice-facts{display:flex;gap:9px;margin:0;font-size:12px;line-height:1.4;font-weight:550;color:#335e73;white-space:nowrap;overflow:hidden}
.epg .epg-notice-facts span{overflow:hidden;text-overflow:ellipsis;min-width:0;flex-shrink:1}
.epg .epg-notice-actions{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:8px;max-width:112px;min-width:75px}
.epg .epg-notice-action{display:block;max-width:112px;font-size:13px;font-weight:650;color:#fff;background:#087b85;border-radius:9px;padding:7px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.epg .epg-notice-details{font:inherit;font-size:13px;line-height:1.3;border:0;background:none;color:#08727d;padding:4px 0;cursor:pointer;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.epg .epg-notice-tools{position:relative;flex-shrink:0;z-index:3}
.epg .epg-notice-tools[open]{z-index:6}
.epg .epg-notice-tools summary{list-style:none;cursor:pointer;font-size:22px;line-height:18px;color:#567184;padding:0 4px;border-radius:5px}
.epg .epg-notice-tools summary::-webkit-details-marker{display:none}
.epg .epg-notice-tools summary:focus-visible{outline:2px solid #087b85;outline-offset:2px}
.epg .epg-notice-tools-panel{position:absolute;right:0;top:100%;width:110px;padding:5px;background:#fff;border:1px solid #d7e2ea;border-radius:10px;box-shadow:0 6px 20px #18384f25}
.epg .epg-notice-row:last-child .epg-notice-tools-panel{top:auto;bottom:100%}
.epg .epg-notice-tools-panel button{display:block;width:100%;text-align:left;font:inherit;font-size:13px;padding:8px;border:0;border-radius:6px;background:#fff;color:#315b70;cursor:pointer}
.epg .epg-notice-tools-panel button:hover{background:#edf4f7}
.epg .epg-notice-tools-panel .epg-notice-remove{color:#a23b3b}
.epg .epg-notice-pages{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0;margin-top:14px;padding-top:10px;border-top:1px solid #dfe7ee}
.epg .epg-notice-pages button{font:inherit;font-size:13px;border:1px solid #d9e3ec;border-radius:9px;background:#fff;color:#30556c;padding:7px 11px;cursor:pointer}
.epg .epg-notice-pages button:disabled{opacity:.4;cursor:default}.epg .epg-notice-pages span{font-size:12px;color:#62798b}
@media(max-width:540px){.epg .epg-notice-row{gap:8px;padding:8px}.epg .epg-notice-row.epg-has-picture{grid-template-columns:48px minmax(0,1fr) auto}.epg .epg-notice-photo-button{width:48px;height:64px}.epg .epg-notice-row h4{font-size:16px}.epg .epg-notice-actions{min-width:60px;max-width:80px}.epg .epg-notice-details{font-size:12px}.epg .epg-notice-action{max-width:80px;font-size:12px;padding:6px}.epg .epg-notice-facts{gap:5px;font-size:11px}}
.epg-dialog{width:min(600px,calc(100vw - 30px));max-height:85vh;padding:26px;border:1px solid #dce5ee;border-radius:20px;box-shadow:0 25px 90px #152d4c45;color:#193b50;font-family:inherit;font-size:16px;line-height:1.55;background:#fff;overflow:auto}.epg-dialog::backdrop{background:#122b4b80;backdrop-filter:blur(3px)}
.epg-dialog *{box-sizing:border-box}.epg-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.epg-dialog-heading h2{font-family:inherit;font-size:25px;line-height:1.2;margin:0;color:#193b50}.epg-dialog-close{font:inherit;font-size:13px;border:1px solid #dbe5ed;border-radius:20px;padding:7px 12px;color:#37556b;background:#f3f7fa;cursor:pointer}
.epg-publish-form{display:flex;flex-direction:column;gap:15px}.epg-publish-form label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}.epg-publish-form input,.epg-publish-form textarea{width:100%;padding:10px 12px;border:1px solid #cfdde7;border-radius:9px;background:#fff;color:#193b50;font:inherit;font-size:16px;max-width:100%}.epg-publish-form textarea{resize:vertical}.epg-publish-form small{font-size:12px;color:#62798b;font-weight:400}.epg-publish-options{border:1px solid #e0e8ee;border-radius:12px;padding:12px}.epg-publish-options summary{font-size:14px;cursor:pointer;color:#276274}.epg-publish-options label{margin-top:14px}.epg-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.epg-publish-error{font-size:14px;color:#a62d2d;margin:0}.epg-form-note{font-size:12px;color:#62798b;margin:0}.epg-publish-submit{font:inherit;background:#087b85;border:0;border-radius:12px;color:#fff;padding:12px 20px;font-weight:650;cursor:pointer}.epg-publish-submit:disabled{opacity:.6;cursor:wait}.epg-dialog :focus-visible{outline:3px solid #087d89;outline-offset:3px}.epg-detail-image{width:100%;max-height:300px;object-fit:cover;border-radius:12px;margin-bottom:18px}.epg-detail-text{white-space:pre-line;overflow-wrap:anywhere;font-size:16px}.epg-dialog .epg-notice-facts{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0;color:#476476;font-size:14px}.epg-dialog .epg-notice-action{display:inline-block;background:#087b85;color:white;padding:10px 16px;border-radius:10px;text-decoration:none;font-size:14px}
@media(max-width:540px){.epg .epg-top-grid>.epg-board{padding:18px}.epg .epg-board-heading h3{font-size:24px}.epg .epg-publish-button{padding:8px 10px}.epg-dialog{padding:20px}.epg-form-grid{grid-template-columns:1fr}}

.epg-delete-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}.epg-delete-actions button{font:inherit;font-size:14px;border:1px solid #d6e1e9;border-radius:10px;background:#f4f7fa;color:#304f65;padding:10px 16px;cursor:pointer}.epg-delete-actions .epg-delete-confirm{background:#a13c3c;color:white;border-color:#a13c3c}.epg-delete-actions button:disabled{opacity:.5;cursor:wait}.epg-publish-form .epg-remove-image{flex-direction:row;align-items:center;gap:9px;font-size:13px;font-weight:400}.epg-publish-form .epg-remove-image input{width:auto}

/* Give the noticeboard priority over the weather. */
.epg .epg-top-grid{grid-template-columns:minmax(0,1fr) 270px;gap:20px}
.epg .epg-top-grid>.epg-weather{padding:17px 15px 14px;border-radius:21px}
.epg .epg-weather .epg-weather-main{min-height:110px;padding:12px 0 8px}
.epg .epg-weather .epg-temperature{font-size:58px}
.epg .epg-weather .epg-temperature span{font-size:21px}
.epg .epg-weather .epg-sky{width:95px;flex-shrink:0;margin-right:-4px}
.epg .epg-weather h3{font-size:14px}
.epg .epg-weather .epg-condition{font-size:14px}
.epg .epg-weather .epg-pill{font-size:11px;letter-spacing:.07em}
.epg .epg-weather .epg-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;padding:10px 0 12px}
.epg .epg-weather .epg-metrics strong{font-size:14px}
.epg .epg-weather .epg-forecast-label{font-size:11px;gap:8px;padding-top:11px;flex-wrap:wrap}
.epg .epg-weather .epg-forecast-label span:last-child{font-size:11px}
.epg .epg-weather .epg-hour-icon{width:30px;height:28px}
.epg .epg-weather .epg-hour strong{font-size:15px}
.epg .epg-weather .epg-hour{font-size:11px}
.epg .epg-weather .epg-hour small{font-size:10px}
.epg .epg-weather .epg-source{font-size:10px;line-height:1.5}
@media(min-width:1100px){.epg .epg-top-grid{grid-template-columns:minmax(0,1fr) 260px}}
@media(max-width:850px){.epg .epg-top-grid{grid-template-columns:minmax(0,1fr)}.epg .epg-top-grid>.epg-weather{width:100%}.epg .epg-weather .epg-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:380px){.epg .epg-weather .epg-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

.epg .epg-notice-facts span:last-child{flex-shrink:0}
