html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: "Lucida Console", "Courier New", monospace;
  font-weight: 400;
  font-style: normal;
  color: #1b1b1b;
}

body::selection {
  color: #111;
  background-color: #f5c542;
}

img {
  max-width: 100%;
  height: auto;
}

p,
li {
  font-size: 16px;
  line-height: 1.5;
}

.subsite > main:not(.gallery) {
  display: grid;
  gap: 14px;
}

section {
  min-width: 0;
}

.site-shell {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.18) 1px, transparent 1px),
    #545a5c;
  background-size: 24px 24px;
  background-attachment: fixed;
  padding: 8px;
}

.subsite {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    #c8c9c3;
  background-size: 20px 20px;
  border: 2px inset #8a8c86;
}

.page-intro {
  margin-bottom: 14px;
  padding: 14px;
  color: #f2f1e8;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 5px
    ),
    #303434;
  border: 4px inset #7c8078;
}

.page-intro h1,
.page-intro h2 {
  margin: 0 0 8px;
  color: #f5c542;
  border-bottom-color: rgba(245, 197, 66, 0.7);
  text-shadow: 2px 2px 0 #000;
}

.lead {
  max-width: 72ch;
  margin: 0;
  color: #e5e3d7;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.45;
}

.console-section {
  padding: 14px;
  background-color: rgba(213, 214, 207, 0.82);
  border: 3px inset #8a8c86;
}

.console-section > :first-child {
  margin-top: 0;
}

.console-section > :last-child {
  margin-bottom: 0;
}

.status-note {
  border-color: #3b3f3f;
  background-color: #d5d6cf;
  box-shadow: inset 5px 0 0 #f5c542;
}

.signal-list {
  padding-left: 0;
  list-style-type: none;
}

.signal-list li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 22px;
}

.signal-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: #8a4f00;
  font-weight: 700;
}

.subsite h1,
.subsite h2,
.subsite h3 {
  overflow-wrap: anywhere;
  color: #202020;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #efefdf;
  border-bottom: 2px solid #3b3f3f;
}

a {
  color: #003f7f;
}

a:visited {
  color: #4b4b4b;
}

a:hover {
  color: #8a4f00;
}

a:focus-visible {
  outline: 3px solid #f5c542;
  outline-offset: 3px;
}

.grid-container {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  grid-template-rows: 160px auto 1fr auto;
  gap: 5px 5px;
  grid-template-areas:
    "Header Header"
    "Sidebar Main"
    "Sidebar2 Main"
    "Status Status";
  border: 4px outset #9b9d96;
  border-radius: 0;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
  width: min(1100px, 100%);
  min-height: calc(100vh - 16px);
  height: auto;
  margin: 0 auto;
  background-color: #a7aaa2;
}

.Header {
  grid-area: Header;
  border-radius: 0;
  border-color: #7c8078;
  overflow: hidden;
  border-style: inset;
  border-width: 4px;
  min-height: 150px;
  background-color: #303434;

}

.header-display {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 150px;
  padding: 18px 24px;
  overflow: hidden;
  color: #f5c542;
  background:
    linear-gradient(90deg, rgba(245, 197, 66, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(245, 197, 66, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #242828, #3b3f3f 45%, #1d2020);
  background-size: 28px 28px, 28px 28px, auto;
}

.header-display::before,
.header-display::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.header-display::before {
  inset: 10px;
  border: 2px solid rgba(245, 197, 66, 0.65);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(245, 197, 66, 0.18);
}

.header-display::after {
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 5px
  );
}

.header-kicker,
.header-title,
.header-subtitle {
  position: relative;
  z-index: 1;
}

.header-kicker,
.header-subtitle {
  font-size: 12px;
  letter-spacing: 0;
  color: #d5d6cf;
}

.header-title {
  margin: 8px 0;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: clamp(34px, 8vw, 70px);
  font-weight: 700;
  line-height: 0.95;
  color: #f5c542;
  text-transform: uppercase;
  text-shadow:
    2px 2px 0 #000,
    0 0 14px rgba(245, 197, 66, 0.28);
}

.Main {
  grid-area: Main;
  border-radius: 0;
  overflow: clip;
  border-color: #7c8078;
  border-style: inset;
  border-width: 4px;
  background-color: #c8c9c3;
  min-width: 0;
  min-height: 640px;
}

.panel-title {
  padding: 4px 8px;
  color: #f5c542;
  background-color: #303434;
  border-bottom: 3px inset #7c8078;
  font-size: 12px;
}

.Sidebar {
  grid-area: Sidebar;
  background-color: #b8bab2;
  border-color: #7c8078;
  border-style: outset;
  border-width: 4px;
  border-radius: 0;
  overflow: hidden;
}

.Sidebar2 {
  grid-area: Sidebar2;
  background-color: #b8bab2;
  border-color: #7c8078;
  border-style: outset;
  border-width: 4px;
  border-radius: 0;
  overflow: hidden;
  font-size: 10px;
}

.footer {
  grid-area: footer;
  border-radius: 20px;
  overflow: hidden;
  border-color: #71C9CE;
  border-style: solid;
  background-color: #CBF1F5C8;
}

.main_iframe {
  display: block;
  width: 100%;
  height: 640px;
  min-height: inherit;
  border-style: none;
}

.status-bar {
  grid-area: Status;
  padding: 4px 8px;
  color: #f5c542;
  background-color: #303434;
  border: 3px inset #7c8078;
  font-size: 12px;
}

.rounded_corners {
  border: 2px inset #7c8078;
  border-radius: 0;
  overflow: hidden;
}

.text-center {
  text-align: center;
}

.panel-heading {
  margin: 0;
  padding: 7px 8px;
  color: #f5c542;
  background-color: #303434;
  border-bottom: 3px inset #7c8078;
  font-size: 13px;
}

.small-note {
  font-size: 10px;
  padding: 0 10px;
  color: #303030;
}

.sidemenu_ul {
  list-style-type: none;
  padding: 5px;
  margin: 2px;
  display: grid;
  gap: 8px;
}


.sidemenu_li a {
  text-decoration: none;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  min-height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px;
  border: 3px outset #d5d6cf;
  border-radius: 0;
  background-color: #c8c9c3;
  box-shadow: none;
  transition:
    background-color 0.15s ease,
    transform 0.15s ease;

}

.sidemenu_li a:hover,
.sidemenu_li a:focus-visible,
.sidemenu_li a[aria-current="true"] {
  background-color: #f5c542;
  color: #111;
  box-shadow: none;
  transform: translate(1px, 1px);
}

.sidemenu_li a[aria-current="true"] {
  border-style: inset;
}

.system-panel {
  padding-bottom: 10px;
}

.system-readout {
  display: grid;
  gap: 6px;
  margin: 10px 8px;
}

.system-readout div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 6px;
  background-color: #c8c9c3;
  border: 2px inset #7c8078;
}

.system-readout dt,
.system-readout dd {
  margin: 0;
  font-size: 11px;
  line-height: 1.25;
}

.system-readout dt {
  color: #333;
  text-transform: uppercase;
}

.system-readout dd {
  color: #111;
  font-weight: 700;
}

.panel-link {
  display: block;
  margin: 8px;
  padding: 7px;
  color: #111;
  background-color: #c8c9c3;
  border: 2px outset #d5d6cf;
  text-align: center;
  text-decoration: none;
}

.panel-link:hover,
.panel-link:focus-visible {
  color: #111;
  background-color: #f5c542;
}

.contact-panel {
  padding: 0 8px 10px;
}

.contact-panel h4 {
  margin: 10px 0 6px;
  color: #202020;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  border-bottom: 2px solid #3b3f3f;
}

.contact-panel ul {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style-type: none;
}

.contact-panel li {
  font-size: 12px;
  line-height: 1.3;
}

.contact-panel a {
  display: block;
  padding: 5px;
  color: #111;
  background-color: #c8c9c3;
  border: 2px outset #d5d6cf;
  text-decoration: none;
}

.contact-panel a:hover {
  color: #111;
  background-color: #f5c542;
}

.blog-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.blog-card {
  position: relative;
  padding: 14px 14px 14px 18px;
  background-color: #d5d6cf;
  border: 3px outset #d5d6cf;
  border-radius: 0;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.16);
}

.blog-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background-color: #f5c542;
}

.blog-card h2 {
  margin-top: 0;
}

.blog-card a {
  color: #003f7f;
  text-decoration: none;
}

.blog-card a:hover {
  text-decoration: underline;
}

.post-meta {
  font-size: 13px;
  color: #333;
  background-color: #f5c542;
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid #3b3f3f;
}

.blog-post {
  max-width: 70ch;
  padding: 14px;
  background-color: rgba(213, 214, 207, 0.64);
  border: 3px inset #8a8c86;
}

.back-link {
  display: inline-block;
  padding: 7px 10px;
  color: #111;
  background-color: #d5d6cf;
  border: 2px outset #d5d6cf;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: #111;
  background-color: #f5c542;
}

code {
  overflow-wrap: anywhere;
  padding: 1px 4px;
  background-color: #e6e4d8;
  border: 1px inset #8a8c86;
}

.changelog-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style-type: none;
}

.changelog-list li {
  padding: 10px;
  background-color: rgba(213, 214, 207, 0.8);
  border: 2px inset #8a8c86;
}

.date {
  font-weight: bold;
}

.version {
  color: #333;
}

.not-found-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.18) 1px, transparent 1px),
    #545a5c;
  background-size: 24px 24px;
  text-align: center;
}

.not-found-card {
  width: min(600px, 100%);
  padding: 24px;
  background-color: #c8c9c3;
  border: 4px outset #d5d6cf;
  border-radius: 0;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
}

.not-found-card h1 {
  font-size: clamp(28px, 8vw, 36px);
  margin-bottom: 10px;
}

.error-code {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 8px;
  color: #111;
  background-color: #f5c542;
  border: 2px inset #8a8c86;
  font-size: 13px;
}

.not-found-card p {
  font-size: 18px;
  margin-bottom: 20px;
}

.not-found-card a {
  display: inline-block;
  padding: 10px 20px;
  color: #fff;
  background-color: #3b3f3f;
  text-decoration: none;
  border: 3px outset #d5d6cf;
  border-radius: 0;
  transition: background-color 0.3s ease;
}

.not-found-card a:hover {
  background-color: #8a4f00;
}

.about-container {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: 16px;
}

.about-aside,
.about-main {
  display: grid;
  align-content: start;
  gap: 16px;
}

.profile-card {
  margin: 0;
  padding: 10px;
  background-color: #d5d6cf;
  border: 3px outset #d5d6cf;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.16);
}

.profile-picture {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 4px inset #7c8078;
  border-radius: 0;
  object-fit: cover;
}

.profile-card figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.quick-facts h2,
.about-main h2 {
  font-size: 18px;
}

.fact-grid {
  display: grid;
  gap: 8px;
  margin: 0;
}

.fact-grid div {
  padding: 8px;
  background-color: #c8c9c3;
  border: 2px inset #8a8c86;
}

.fact-grid dt,
.fact-grid dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.fact-grid dt {
  margin-bottom: 2px;
  color: #303434;
  font-weight: 700;
  text-transform: uppercase;
}

.about-summary {
  border-color: #3b3f3f;
  box-shadow: inset 5px 0 0 #f5c542;
}

.two-column-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
}

.gallery-page {
  width: min(1200px, 100%);
  padding: 18px;
}

.gallery-hero {
  display: grid;
  gap: 6px;
  padding: 18px;
  color: #f2f1e8;
  background:
    linear-gradient(rgba(28, 31, 31, 0.74), rgba(28, 31, 31, 0.62)),
    url("/Assets/Images/Dogs/1.jpg") center 38% / cover;
  border: 4px inset #7c8078;
  min-height: 210px;
  align-content: end;
}

.gallery-page h1 {
  margin: 0;
  color: #f5c542;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 0.95;
  text-align: left;
  border-bottom: 0;
  text-shadow: 2px 2px 0 #000;
}

.gallery-kicker,
.gallery-intro,
.gallery-toolbar p,
.gallery-empty {
  margin: 0;
}

.gallery-kicker {
  color: #d5d6cf;
  font-size: 12px;
  text-transform: uppercase;
}

.gallery-intro {
  max-width: 560px;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 18px;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  margin: 14px 0;
  padding: 8px 10px;
  color: #f5c542;
  background-color: #303434;
  border: 3px inset #7c8078;
}

.gallery-toolbar p {
  font-size: 13px;
  text-transform: uppercase;
}

.gallery {
  column-count: 4;
  column-gap: 14px;
  width: 100%;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  break-inside: avoid;
  border: 4px inset #7c8078;
  background-color: #d5d6cf;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.22);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(245, 197, 66, 0);
  transition: background-color 0.18s ease;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  background-color: rgba(245, 197, 66, 0.18);
}

.gallery-item:focus-visible,
.overlay-button:focus-visible {
  outline: 3px solid #f5c542;
  outline-offset: 3px;
}

.gallery-item img {
  display: block;
  width: 100%;
  min-height: 170px;
  object-fit: cover;
  transition: transform 0.18s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.035);
}

.gallery-empty {
  padding: 18px;
  text-align: center;
  background-color: #d5d6cf;
  border: 3px inset #7c8078;
}

.has-open-overlay {
  overflow: hidden;
}

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(44px, auto) minmax(0, 1fr) minmax(44px, auto);
  align-items: center;
  justify-items: center;
  gap: 10px;
  padding: 16px;
  background-color: rgba(13, 14, 14, 0.9);
  z-index: 10;
}

.overlay[hidden] {
  display: none;
}

.overlay-frame {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.overlay img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  object-fit: contain;
  border: 4px inset #7c8078;
  background-color: #111;
}

.overlay figcaption {
  color: #f2f1e8;
  font-size: 13px;
}

.overlay-button {
  width: 44px;
  height: 44px;
  border: 3px outset #d5d6cf;
  color: #111;
  background-color: #f5c542;
  font: 700 22px/1 "Trebuchet MS", Verdana, Arial, sans-serif;
  cursor: pointer;
}

.overlay-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

@media (max-width: 760px) {
  .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: 130px auto minmax(65vh, 1fr) auto auto;
    grid-template-areas:
      "Header"
      "Sidebar"
      "Main"
      "Sidebar2"
      "Status";
    min-height: 0;
  }

  .Main {
    min-height: 65vh;
  }

  .Sidebar,
  .Sidebar2,
  .Main,
  .Header {
    border-radius: 0;
  }

  .sidemenu_ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-container {
    grid-template-columns: 1fr;
  }

  .two-column-list {
    grid-template-columns: 1fr;
  }

  .subsite {
    padding: 12px;
  }

  .page-intro {
    padding: 12px;
  }

  .lead {
    font-size: 16px;
  }

  .gallery-page {
    padding: 12px;
  }

  .gallery-hero {
    min-height: 180px;
    padding: 14px;
  }

  .gallery {
    column-count: 2;
    column-gap: 10px;
  }

  .gallery-item {
    margin-bottom: 10px;
    border-width: 3px;
  }

  .overlay {
    grid-template-columns: 44px 1fr 44px;
    gap: 6px;
    padding: 10px;
  }

  .overlay img {
    max-height: calc(100vh - 120px);
  }

  p,
  li {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .gallery {
    column-count: 1;
  }

  .overlay {
    grid-template-columns: 1fr 1fr;
    align-content: center;
  }

  .overlay-frame {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .overlay-prev,
  .overlay-next {
    grid-row: 2;
  }
}
