:root {
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4em;
  color: #444;
  background: #fff;
}
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: #c33; font-weight: bold; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #005a9c; outline-offset: 3px; }
img { max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; }
h1, h2 { font-size: 30px; color: #c33; line-height: 1; margin: 20px 0; }
h3 { font-size: 16px; line-height: 1; margin: 20px 0; }
.wrap { width: 90%; max-width: 940px; margin-inline: auto; }
.site-header { position: relative; background: #ffe500; border-top: 10px solid #c0c0c0; border-bottom: 1px solid #c0c0c0; box-shadow: 0 0 40px #c0c0c0; }
.header-inner { position: relative; }
.header-photo { display: block; }
.logo { position: absolute; top: 178px; left: 0; line-height: 0; }
.logo img { display: block; }
.layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; flex: 1 0 auto; padding-bottom: 38.4375px; }
.sidebar { width: 200px; padding: 50px 20px 100px; margin: -22px 0 0 20px; background: #f5f5f5; border: 1px solid #ddd; position: relative; }
nav ul { list-style: none; margin: 0; padding: 0; }
nav li { border-bottom: 1px solid #ddd; }
nav a { display: block; padding: 5px 0; color: #444; font-weight: normal; }
nav a:hover { font-weight: bold; text-decoration: none; }
nav .active > a, nav a[aria-current="page"] { font-weight: bold; }
nav ul ul { border-top: 1px solid #ddd; }
nav ul ul li { padding-left: 15px; }
nav ul ul li:last-child { border-bottom: 0; }
main { min-width: 0; margin: 10px 2.9375% 0 0; }
main:focus { outline: none; }
main ul { list-style: none; margin: 20px 0; padding-left: 20px; }
main ul li { padding-left: 16px; }
main a:hover {color: #a32626; text-decoration: none;
}
.media-intext ul { padding-left: 40px; }
.content-block, .text, .media { display: flow-root; }
.content-block:empty { display: none; }
.media-images { display: flow-root; width: fit-content; max-width: 100%; margin-bottom: 10px; }
.media-below .media-images { margin-top: 0; margin-bottom: 0; }
.media-intext .media-images { float: left; margin-right: 10px; }
.media-intext.media-right .media-images { float: right; margin-left: 10px; margin-right: 0; }
.media-intext .text { display: block; }
.media-below:not(.media-center) .media-images { margin-top: 10px; }
.media-center .media-images { margin-inline: auto; }
.image-row { display: flex; align-items: start; gap: 10px; margin-bottom: 10px; }
.image-row:last-child { margin-bottom: 0; }
.image-row figure { min-width: 0; }
.image-row img { display: block; }
.media-images figure { display: table; }
.media-images figcaption { display: table-caption; caption-side: bottom; }
.gallery { display: flex; align-items: start; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.gallery a { display: block; height: 150px; }
.gallery img { display: block; height: 150px; width: auto; max-width: 100%; object-fit: contain; }
.gallery > div { max-width: 100%; }
.space-after-10 { margin-bottom: 10px; }
.space-after-30 { margin-bottom: 30px; }
.small { font-size: small; }
.site-footer { background: #fe4008; color: #fff; padding: 40px 0 20px; }
.footer-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer-inner > div { padding-right: 2%; }
.footer-inner > div:nth-child(2) { padding-left: 1%; }
.footer-inner > div:nth-child(3) { padding-left: 2%; padding-right: 0; }
.site-footer a { color: #fff; font-weight: normal; display: inline-block; }
.site-footer strong a { font-weight: bold; }
.mobile-menu { display: none; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 10; padding: 10px; background: #fff; }
.skip-link:focus { top: 12px; }
.image-dialog { border: 0; padding: 0; background: #fff; color: #444; max-width: 94vw; max-height: 94vh; }
.image-dialog::backdrop { background: #000c; }
.image-dialog figure { padding: 40px 15px 15px; }
.image-dialog img { display: block; max-height: 76vh; width: auto; margin: auto; }
.image-dialog figcaption { text-align: center; padding-top: 10px; }
.close-image { position: absolute; right: 0; top: 0; border: 0; background: #fff; color: #444; font-size: 30px; width: 40px; height: 40px; cursor: pointer; }
@media (max-width: 1050px) {
  .wrap { width: 98%; }
  .sidebar { margin-left: 0; }
}
@media (max-width: 980px) {
  .wrap { width: 96%; }
  .layout { grid-template-columns: 270px minmax(0, 1fr); }
  .logo { left: 0; top: auto; bottom: 21px; max-width: 400px; }
  h1, h2 { font-size: 28px; }
}
@media (max-width: 850px) {
  .sidebar { display: none; }
  .layout { display: block; }
  main { margin-right: 0; }
  .mobile-menu { display: block; }
  .mobile-menu summary { position: absolute; right: 4%; top: 20px; width: 40px; height: 40px; border: 1px solid #000; cursor: pointer; list-style: none; box-shadow: inset 0 0 30px #fff; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-icon, .menu-icon::before, .menu-icon::after { position: absolute; display: block; width: 30px; height: 3px; background: #000; }
  .menu-icon { top: 19px; left: 5px; }
  .menu-icon::before { content: ''; top: -8px; }
  .menu-icon::after { content: ''; top: 8px; }
  .mobile-menu[open] .menu-icon { background: transparent; }
  .mobile-menu[open] .menu-icon::before { top: 0; transform: rotate(-45deg); }
  .mobile-menu[open] .menu-icon::after { top: 0; transform: rotate(45deg); }
  .mobile-menu nav { padding: 20px 2%; background: #fff; box-shadow: 0 0 10px #c0c0c0; }
  .mobile-menu li { border: 0; margin-bottom: 2px; }
  .mobile-menu a { background: #efefef; text-align: center; padding: 8px 5%; }
  .mobile-menu .active > a { background: #dcdcdc; }
  .mobile-menu ul ul { border: 0; }
  .mobile-menu ul ul li { padding: 0; margin: 0; }
  .mobile-menu ul ul a { padding-block: 5px; }
}
@media (max-width: 800px) { .mobile-menu summary { top: calc(96vw * 300 / 940 - 63px); } }
@media (max-width: 700px) {
  .header-inner { width: 98%; }
  .layout, .footer-inner { width: 90%; }
  .layout { padding-bottom: 80px; }
  .logo { width: 51.020408%; }
  .mobile-menu summary { top: calc(98vw * 300 / 940 - 63px); }
  .footer-inner { display: block; }
  .footer-inner > div, .footer-inner > div:nth-child(2), .footer-inner > div:nth-child(3) { padding: 0; }
  .footer-inner > div:nth-child(3) { margin-top: 10px; border-top: 1px solid #fff; padding-top: 15px; }
}
@media (max-width: 650px) { h1, h2 { font-size: 26px; } }
@media (max-width: 550px) { h1, h2 { font-size: 24px; } .logo { max-width: 350px; } }
@media (max-width: 500px) { .logo { max-width: 320px; } }
@media (max-width: 450px) { .mobile-menu summary { width: 35px; height: 35px; top: calc(98vw * 300 / 940 - 58px); } .menu-icon, .menu-icon::before, .menu-icon::after { width: 25px; } .menu-icon { top: 17px; } }
@media (max-width: 420px) { h1, h2 { font-size: 22px; } .logo { max-width: 280px; bottom: 9px; } .mobile-menu summary { top: calc(98vw * 300 / 940 - 46px); } }
@media (max-width: 380px) { h1, h2 { font-size: 20px; } .logo { max-width: 250px; width: 57.142857%; } }
@media (max-width: 350px) { .logo { max-width: 220px; } }
