/* ===============================
   Base
================================ */
html {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
  background: #ffffff url("/images/pixi_grey.gif") repeat;
}

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

/* ===============================
   Header
================================ */
header {
  background: url("/images/pixi_turquoise.gif") repeat;
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand h1 {
  margin: 0;
  font-size: 24px;
  color: #ffffff;
  font-weight: bold;
}

.brand p {
  margin: 6px 0 0;
  font-size: 16px;
  color: #ffffff;
}

header img {
  max-height: 118px;   /* matches original feel */
  width: auto;
}

/* ===============================
   Navigation
================================ */
nav {
  background: url("/images/pixi_yellow.gif") repeat;
  border-bottom: 1px solid #999;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  gap: 12px;
  font-weight: bold;
}

.nav-inner a {
  color: #000;
  text-decoration: none;
}

.nav-inner a:hover {
  color: #006699;
  text-decoration: underline;
}

/* ===============================
   Main Layout (DESKTOP FIRST)
================================ */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  display: grid;
  grid-template-columns: 3fr 1fr; /* content + sidebar */
  gap: 30px;
}

section h1 {
  font-size: 18px;
  margin-top: 0;
}

section h2 {
  font-size: 13px;
  margin-bottom: 4px;
  font-weight: bold;
}

section p {
  margin-top: 0;
  color: #444;
}

/* ===============================
   Sidebar Images (CRITICAL FIX)
================================ */
aside {
  text-align: right;
}

aside img {
  max-width: 233px;   /* matches legacy layout */
  margin-left: auto;
}

/* ===============================
   Footer
================================ */
footer {
  background: url("/images/pixi_yellow.gif") repeat;
  padding: 15px 20px;
  font-size: 10px;
  color: #666;
  border-top: 1px solid #999;
}

footer p,
footer span {
  margin: 0;
}

/* ===============================
   Responsive Adjustments
   (ONLY when necessary)
================================ */
@media (max-width: 900px) {
  main {
    grid-template-columns: 2fr 1fr;
  }
}

@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav .nav-inner {
    flex-wrap: wrap;
  }

  main {
    grid-template-columns: 1fr;
  }

  aside {
    text-align: center;
  }

  aside img {
    margin: 0 auto;
    max-width: 100%;
  }
}

