/* Responsive additions: keep the original blue, photographs and content. */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body { font: 16px/1.6 Arial, Helvetica, sans-serif; }
p, li, td, th, blockquote { font-size: 16px; line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { line-height: 1.35; }
p, h3, h4 { margin-bottom: .65rem; }
a { overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible { outline: 3px solid #d83700; outline-offset: 3px; }
img { max-width: 100%; height: auto; }
br { clear: none; }
#wrapper { width: min(100%, 1060px); display: flow-root; min-height: 100vh; }
#top { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; width: 100%; height: auto; padding: 24px; }
#logo { float: none; flex: 1 1 440px; width: auto; min-height: 140px; height: auto; background-position: left center; }
#logo h1 { font-size: clamp(26px, 4vw, 40px); }
#logo h4 { line-height: 1.6; }
#social-media { float: none; width: 140px; font-size: 14px; text-align: center; }
#social-media a { line-height: 1.6; }
#social-media img { width: 32px; height: 32px; margin-top: 8px; }
#top-photo { float: none; padding: 0; }
#top-photo img { display: block; }
#topnav ul { display: flex; flex-wrap: wrap; float: none; }
#topnav ul li { display: flex; flex: 1 1 auto; font-size: 14px; }
#topnav ul li a { float: none; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 12px 16px; }
#topnav a[aria-current="page"] { background: #0066b8; }
#clock, #clock2 { float: left; width: 22%; height: auto; padding: 28px 20px; font-size: 14px; border-right: 1px solid #ccc; }
#space, #space2 { float: left; width: 78%; height: auto; padding: 28px; }
#space::after, #space2::after { content: ''; display: block; clear: both; }
#space img, #space2 img { float: none; clear: none; padding: 0; margin: 12px 0; }
#space ul, #space2 ul { padding-left: 24px; }
#space ul li, #space2 ul li { margin-left: 0; font-size: 16px; padding-top: 5px; }
#space img[src$="ball.gif"] { float: left; width: 20px; margin: 20px 12px 0 0; }
#space h6.item, #space h6.item2 { padding-top: 18px; font-size: 16px; }
#gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; margin-top: 20px; }
#gallery a { float: none; display: flex; align-items: center; justify-content: center; padding: 8px; border: 1px solid #ddd; min-height: 120px; }
#gallery img { margin: 0; max-height: 150px; width: auto; }
.home #wrapper0 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); padding: 28px; gap: 28px; }
.home #wrapper0 > font, .home #article3 { display: contents; }
#left-art, #left-art2, #left-art3, #article, #article2, #article3, #arredo, #article4, #content4, #content5, .large-article, .horizontal { float: none; clear: none; width: auto; height: auto; margin: 0; min-width: 0; padding: 0; border: 0; }
#left-art { grid-column: 1; }
#article { grid-column: 2; grid-row: span 2; }
#left-art2 { grid-column: 1; font-size: 14px; }
#left-art3 { grid-column: 1; }
#slider { grid-column: 2; width: 100%; height: auto; padding: 0; margin: 0; position: static; }
#sliderContent { width: 100%; position: static; }
#slider .sliderImage { float: none; display: none; }
#slider .sliderImage:first-child { display: block; }
#slider .sliderImage img { display: block; width: 100%; }
#slider .sliderImage span, #slider .clear, #sliderContent > li:empty { display: none; }
.slider-controls { display: flex; justify-content: center; gap: 12px; padding-top: 12px; }
button { font: inherit; cursor: pointer; min-height: 44px; padding: 8px 14px; border: 1px solid #aaa; background: #fff; border-radius: 4px; color: #0066b8; }
.horizontal, #content4, #content5, .large-article { grid-column: 1 / -1; }
#content4 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 28px; }
#arredo img { float: none; padding: 0; margin: 12px 0; display: block; }
.large-article ul { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0; }
.large-article ul li { display: block; flex: 0 1 120px; }
.large-article img { padding: 0; }
#content5 img { float: none; padding: 0; margin: 12px 16px 12px 0; }
#space2 table { width: 100%; table-layout: fixed; }
#space2 td { overflow-wrap: anywhere; vertical-align: top; }
#space2 td img { max-width: 100%; }
.photo-dialog { position: fixed; max-width: min(960px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 0; padding: 16px; }
.photo-dialog::backdrop { background: rgb(0 0 0 / .85); }
.photo-dialog img { display: block; max-height: 70dvh; max-width: 100%; object-fit: contain; margin: 12px auto; }
.photo-dialog p { margin: 12px 0 0; }
.photo-dialog .dialog-controls { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) {
 #top { padding: 20px; gap: 16px; }
 #logo { flex-basis: 100%; }
 #social-media { width: auto; text-align: left; }
 #top-photo { margin-left: auto; }
 #clock, #clock2 { float: none; width: 100%; padding: 12px 20px; border-right: 0; border-bottom: 1px solid #ddd; }
 #clock p, #clock2 p { display: none; }
 #space, #space2 { float: none; width: 100%; padding: 24px 20px; }
 .home #wrapper0 { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 24px; }
 #left-art, #article, #left-art2, #left-art3, #slider { grid-column: 1; grid-row: auto; }
 #content4 { grid-template-columns: minmax(0, 1fr); }
 #space2 table, #space2 tbody, #space2 tr, #space2 td { display: block; width: 100%; }
 #space2 td { padding: 4px 0; }
 #space2 ul { padding-left: 24px; }
}
@media (max-width: 440px) {
 #logo { background-size: 76px auto; min-height: 110px; }
 #logo h1, #logo h4 { margin-left: 90px; }
 #logo h1 { font-size: 26px; margin-top: 0; }
 #logo h4 { font-size: 13px; padding-top: 4px; }
 #top-photo { max-width: 48%; }
 #topnav ul li { flex: 1 1 50%; }
 #topnav ul li:last-child { flex-grow: 1; }
 #topnav ul li a { padding: 10px 8px; }
}

/* Collapsible mobile navigation, using the site's existing colours. */
#topnav .menu-toggle { display: none; }
@media (max-width: 760px) {
 #topnav.has-menu-toggle { padding: 10px; background: #333; }
 #topnav.has-menu-toggle .menu-toggle {
   display: flex; align-items: center; gap: 12px; width: 100%;
   min-height: 46px; padding: 10px 16px; border: 1px solid #ccc;
   border-radius: 6px; background: #333; color: #fff;
   font-size: 16px; font-weight: bold; text-align: left;
 }
 #topnav .menu-icon { display: flex; flex-direction: column; gap: 5px; width: 23px; flex-shrink: 0; }
 #topnav .menu-icon i { display: block; height: 2px; width: 100%; background: currentColor; }
 #topnav .menu-sign { margin-left: auto; font-size: 22px; line-height: 1; }
 #topnav.has-menu-toggle ul { display: none; border: 0; margin-top: 8px; }
 #topnav.has-menu-toggle.menu-open ul { display: flex; flex-direction: column; }
 #topnav.has-menu-toggle ul li { flex: auto; width: 100%; }
 #topnav.has-menu-toggle ul li a { justify-content: flex-start; padding: 12px 16px; border-top: 1px solid #555; }
 #topnav .menu-toggle:hover { background: #444; }
}

/* Mobile masthead: a clear brand row, contact details and a single photo. */
@media (max-width: 760px) {
 #top {
   display: grid; grid-template-columns: minmax(0, 1fr);
   gap: 16px; padding: 22px 20px 18px;
 }
 #logo {
   display: grid; grid-template-columns: 86px minmax(0, 1fr);
   align-items: center; gap: 12px 14px; width: 100%;
   min-width: 0; min-height: 0; height: auto;
   background: none; float: none;
 }
 #logo::before {
   content: ''; display: block; width: 86px; aspect-ratio: 216 / 100;
   background: url('../images/logo.jpg') center / contain no-repeat;
   border-radius: 4px;
 }
 #logo h1 {
   margin: 0; font-size: clamp(23px, 5.4vw, 30px);
   line-height: 1.15; letter-spacing: -.5px; color: #0066ff;
 }
 #logo h4 {
   grid-column: 1 / -1; margin: 0; padding: 0;
   font-size: 14px; font-weight: normal; line-height: 1.65;
   color: #0066ff; text-align: center;
 }
 #top-photo {
   grid-column: 1; grid-row: 2; width: 100%; max-width: none;
   margin: 0; padding: 0;
 }
 #top-photo img {
   display: block; width: 100%; height: clamp(130px, 30vw, 190px);
   object-fit: cover; object-position: center 55%; border-radius: 6px;
 }
 #social-media {
   grid-column: 1; grid-row: 3; display: flex;
   align-items: center; justify-content: center; gap: 10px;
   width: 100%; margin: 0; text-align: center; font-size: 14px;
 }
 #social-media > br { display: none; }
 #social-media a { display: inline-flex; align-items: center; min-height: 44px; }
 #social-media a:last-child { order: -1; }
 #social-media img { display: block; width: 28px; height: 28px; margin: 0; }
}

/* Visual refresh: retain the identity, with calmer surfaces and clearer hierarchy. */
body { background: #f1f4f7; color: #293544; font-family: 'Segoe UI', Arial, sans-serif; }
p, li, td, th, blockquote { color: #293544; font-family: 'Segoe UI', Arial, sans-serif; line-height: 1.75; }
h1, h2, h3, h4, h5, h6, a { font-family: 'Segoe UI', Arial, sans-serif; }
#wrapper { box-shadow: 0 8px 40px rgb(27 47 70 / .08); }
h2, h3 { letter-spacing: -.3px; }
h3 { font-size: 22px; margin-bottom: 14px; }
p { margin-bottom: 16px; }
a:link, a:visited { color: #0066c7; }
p a:hover { text-decoration: underline; text-underline-offset: 3px; }
hr { border: 0; border-top: 1px solid #e2e8ef; margin: 24px 0; }
#topnav { background: #333; }
#topnav ul { border: 0; }
#topnav ul li { font-size: 13px; letter-spacing: .5px; }
#topnav ul li a { min-height: 52px; transition: background-color .15s ease; }
#topnav a[aria-current='page'] { background: #0066b8; }
#clock, #clock2 { float: none; width: 100%; border: 0; border-bottom: 1px solid #e2e8ef; padding: 12px 32px; color: #64748b; background: #f8fafc; font-size: 13px; }
#space, #space2 { float: none; width: 100%; padding: 36px; }
#space > h3:first-child, #space2 > h3:first-child { font-size: 28px; padding-bottom: 18px; border-bottom: 1px solid #e2e8ef; margin-bottom: 24px; }
#space > a > img, #space > img { border-radius: 6px; }
.home #wrapper0 { padding: 36px; gap: 32px; align-items: start; }
#left-art, #left-art3 { background: #f3f7fc; border: 1px solid #e2ebf6; border-radius: 8px; padding: 24px; }
#left-art h3, #left-art3 h3 { font-size: 20px; }
#left-art p, #left-art3 p { font-size: 15px; }
#left-art p:last-child, #left-art3 p:last-child { margin-bottom: 0; }
#left-art2 { color: #64748b; font-size: 13px; padding: 0 8px; }
#article > h3 { margin-top: 24px; }
#article > h3:first-of-type { margin-top: 0; }
#article > hr:first-child { display: none; }
#article > a > img, #article > img { display: block; width: 100%; border-radius: 6px; }
#slider { border-radius: 8px; overflow: hidden; background: #f3f7fc; }
#sliderContent { margin: 0; padding: 0; }
#slider .sliderImage img { aspect-ratio: 550 / 412; object-fit: cover; }
#content4 { gap: 32px; }
#arredo { padding: 24px; background: #f8fafc; border-radius: 8px; }
#arredo p, #article4 p { font-size: 15px; }
.large-article, #content5 { border-top: 1px solid #e2e8ef; padding-top: 28px; }
.large-article ul { gap: 20px; }
.large-article img, #content5 img, #arredo img { box-shadow: 0 3px 10px rgb(27 47 70 / .12); border-radius: 3px; }
#gallery { gap: 18px; }
#gallery a { border-color: #e2e8ef; border-radius: 8px; background: #f8fafc; }
#gallery a:hover { border-color: #0066b8; background: #f0f6ff; }
#space2 td { border-color: #e2e8ef; }
#space ul li, #space2 ul li { padding-top: 8px; }
#space h6.item, #space h6.item2 { padding-bottom: 12px; }
@media (min-width: 761px) {
 #top { display: grid; grid-template-columns: minmax(0, 1fr) 166px; gap: 12px 32px; padding: 30px 36px; }
 #logo { grid-column: 1; grid-row: 1 / 3; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px 24px; align-items: center; background: none; min-height: 0; width: 100%; }
 #logo::before { content: ''; grid-row: 1 / 3; width: 112px; aspect-ratio: 216 / 100; background: url('../images/logo.jpg') center / contain no-repeat; border-radius: 4px; }
 #logo h1 { margin: 0; font-size: clamp(28px, 3.3vw, 38px); letter-spacing: -1px; }
 #logo h4 { margin: 0; padding: 0; grid-column: 2; font-size: 14px; font-weight: normal; }
 #top-photo { grid-column: 2; grid-row: 1; }
 #top-photo img { width: 166px; border-radius: 6px; }
 #social-media { grid-column: 2; grid-row: 2; width: 100%; display: flex; align-items: center; gap: 8px; font-size: 12px; text-align: left; }
 #social-media br { display: none; }
 #social-media a:last-child { order: -1; }
 #social-media img { display: block; width: 24px; height: 24px; margin: 0; }
}
@media (max-width: 760px) {
 .home #wrapper0 { padding: 24px 20px; gap: 24px; }
 #space, #space2 { padding: 28px 20px; }
 #space > h3:first-child, #space2 > h3:first-child { font-size: 25px; }
 #clock, #clock2 { padding: 10px 20px; }
 #left-art, #left-art3, #arredo { padding: 20px; }
 #content4 { gap: 24px; }
 #topnav.has-menu-toggle { padding: 10px 14px; }
 #topnav.has-menu-toggle .menu-toggle { border-color: #777; }
}

/* Larger EC brand mark, keeping the heading aligned at every width. */
@media (min-width: 761px) {
 #logo { grid-template-columns: 216px minmax(0, 1fr); gap: 12px 24px; }
 #logo::before { width: 216px; height: 100px; }
}
@media (max-width: 760px) {
 #logo { grid-template-columns: 112px minmax(0, 1fr); }
 #logo::before { width: 112px; }
}

