/* Hoover Middle School — site styles.
   2026 refresh of the classic (2005) look: navy, Comic Sans, oval buttons.
   Layout is CSS grid/flex and adapts from phone to desktop. */
:root {
  --navy: #000066;
  --navy-deep: #00004d;
  --lav: #9999ff;
  --lav-2: #ccccff;
  --ink: #000066;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--navy);
  color: #fff;
  font: 15px/1.5 "Comic Sans MS", "Comic Sans", cursive, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--lav-2); }
a:hover { color: #fff; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.site-head { background: linear-gradient(#000059, #000066); border-bottom: 3px double var(--lav); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 12px 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; flex: 1 1 320px; min-width: 0; }
.brand img { width: 56px; flex: none; }
.brand .school { display: block; font-size: 26px; line-height: 1.15; letter-spacing: .5px; }
.brand .tag { display: block; font-size: 14px; color: var(--lav-2); }
.head-meta { font-size: 13px; color: #dcdcff; text-align: right; }
.head-meta p { margin: 2px 0; }
.head-photo { width: 170px; border-radius: 8px; flex: none; }
@media (max-width: 900px) {
  .head-photo { display: none; }
}
@media (max-width: 620px) {
  .brand .school { font-size: 20px; }
  .head-meta { text-align: left; }
}

/* ---------- navigation (oval buttons) ---------- */
.nav { display: grid; gap: 8px; align-content: start; }
.nav a { display: block; line-height: 0; border-radius: 10px; }
.nav img { display: block; width: 100%; max-width: 160px; margin: 0 auto; }
.nav a[aria-current="page"] img { filter: brightness(1.12) drop-shadow(0 0 8px rgba(204, 204, 255, .85)); }
@media (max-width: 900px) {
  .nav { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
}

/* ---------- home layout ---------- */
.home-grid {
  display: grid; gap: 18px; padding: 18px 0;
  grid-template-columns: minmax(0, 1fr) 178px;
  grid-template-areas: "main nav";
}
.home-vert { display: none; }
.home-main { grid-area: main; display: grid; gap: 16px; align-content: start; min-width: 0; }
.home-grid > .nav { grid-area: nav; }
@media (min-width: 1180px) {
  .home-grid { grid-template-columns: 52px minmax(0, 1fr) 178px; grid-template-areas: "vert main nav"; }
  .home-vert { display: flex; gap: 6px; grid-area: vert; align-items: flex-start; }
}
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; grid-template-areas: "nav" "main"; }
}

/* ---------- subpage layout ---------- */
.sub-grid {
  display: grid; gap: 18px; padding: 18px 0;
  grid-template-columns: 178px minmax(0, 1fr);
  grid-template-areas: "nav content";
}
.sub-grid > .nav { grid-area: nav; }
.sub-main { grid-area: content; display: grid; gap: 14px; align-content: start; min-width: 0; }
.page-title { margin: 0; font-size: 24px; color: #fff; text-shadow: 0 0 10px rgba(153, 153, 255, .75); }
@media (max-width: 900px) {
  .sub-grid { grid-template-columns: 1fr; grid-template-areas: "nav" "content"; }
}

/* ---------- cards ---------- */
.card { background: #fff; color: var(--ink); border-radius: 10px; padding: 16px 18px; box-shadow: 0 0 0 3px rgba(153, 153, 255, .35); }
.card h2 { margin: 0 0 8px; font-size: 18px; color: var(--ink); border-bottom: 2px solid var(--lav); padding-bottom: 4px; }
.card a { color: #000099; }
.card a:hover { color: #000; }
.card ul { margin: 6px 0 0 20px; padding: 0; }
.card li { margin: 0 0 6px; }
.card p { margin: 8px 0; }
.card table { max-width: 100% !important; }
.note { color: #666; font-size: 13px; }
.news li { margin: 0 0 12px; }
.news .date { color: #777; font-size: 13px; }
.facts { border-collapse: collapse; width: 100%; }
.facts th, .facts td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #ccc; vertical-align: top; }
.facts th { width: 42%; color: var(--ink); }
.notice { font-size: 13px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 10px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 8px; border: 2px solid var(--lav); display: block; width: 100%; }
.gallery figcaption { font-size: 12px; color: #555; margin-top: 4px; text-align: center; }

/* ---------- calendar ---------- */
.cal { border-collapse: collapse; width: 100%; table-layout: fixed; }
.cal th { background: var(--navy); color: #fff; padding: 4px; font-size: 12px; }
.cal td { border: 1px solid var(--lav); vertical-align: top; padding: 4px; height: 62px; font-size: 13px; }
.cal .ev { margin-top: 2px; font-size: 11px; color: #000099; line-height: 1.3; }

/* ---------- archived content classes (older markup) ---------- */
.BodyContent { font-size: 16px; }
.BodyContentSmallerFont { font-size: 13px; }
.Titles { font-size: 16px; font-weight: bold; }
.TitleFont { font-weight: bold; }
.ReturnToTop { color: var(--lav-2); font-style: italic; font-weight: bold; font-size: 14px; }
.HyperlinkBlue { color: #000099; }
.sub-main img { max-width: 100%; }

/* ---------- footer ---------- */
.site-foot { margin-top: 24px; border-top: 3px double var(--lav); background: var(--navy-deep); padding: 16px 0; font-size: 13px; color: #dcdcff; }
.site-foot p { margin: 4px 0; }
.site-foot .fine { color: #9999cc; font-size: 12px; }
.site-foot a { color: var(--lav-2); }
