/*
  Penn Manor IT — SHARED CHROME (masthead + district utility nav + translate
  panel + footer). This is the single source for the site header/footer.

  Self-contained on purpose: it declares the district fonts and the design
  tokens the chrome needs, so a page can link ONLY this file and still get a
  correct header/footer. screentime.html does exactly that — it brings its own
  content design system and deliberately does NOT link style.css.

  Standard content pages link style.css AND this file; this file is loaded
  AFTER style.css so it stays authoritative for the chrome. Edit the header or
  footer HERE, not in style.css.
*/

/* ---------- District fonts (served locally from assets/fonts/) ---------- */
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible_normal_400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible_normal_700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible_italic_400.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible_italic_700.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens the chrome needs ---------- */
:root {
  --navy: #002554;
  --gold: #d0a92c;
  --display: "Atkinson Hyperlegible", system-ui, sans-serif;
  --ui: "Inter", system-ui, sans-serif;
}

/* Page width container used by the masthead and footer inner rows */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Masthead (district-style: night-sky photo + navy overlay) ---------- */
.masthead {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 4px solid var(--gold);
}
.masthead .head-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  z-index: -2;
}
.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0.55;
  z-index: -1;
}
.masthead .wrap {
  padding-top: 26px;
  padding-bottom: 0;
}
.masthead .brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.masthead .brand {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
}
.masthead .pm-logo img {
  width: 89px;   /* same size as the district header logo */
  height: auto;
  display: block;
}
.masthead .word {
  line-height: 1.15;
}
.masthead .district {
  font-family: var(--ui);
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--gold);
  margin: 0 0 4px;
}
.masthead .district a {
  color: var(--gold);
  text-decoration: none;
}
.masthead .district a:hover {
  color: #fff;
}
.masthead .site-title {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0;
}
.masthead .site-title a {
  color: #fff;
  text-decoration: none;
}

/* District utility menu (same links as the www.pennmanor.net header) */
.utility {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--ui);
  font-size: 13.5px;
  padding-top: 4px;
}
.utility a,
.utility button {
  color: #cdddf2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.utility a:hover,
.utility button:hover {
  color: #fff;
}
.utility i {
  font-size: 16px;
}

/* translate (Google Website Translator, same engine as the district site's GTranslate) */
.translate-wrap { position: relative; }
.translate-panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: #fff; border: 1px solid #e3e6ec; border-radius: 10px;
  padding: 12px 14px; box-shadow: 0 10px 28px rgba(0,0,0,.22);
  z-index: 300; min-width: 210px;
}
.translate-panel::before {
  content: ""; position: absolute; top: -6px; right: 16px;
  width: 11px; height: 11px; background: #fff;
  border-left: 1px solid #e3e6ec; border-top: 1px solid #e3e6ec;
  transform: rotate(45deg);
}
.translate-panel .goog-te-combo {
  font-family: var(--ui); font-size: 14px; color: #14233a;
  width: 100%; padding: 7px 9px; border: 1px solid #cdd3dc;
  border-radius: 8px; background: #fff; cursor: pointer;
}
/* hide the "powered by Google" gadget text under the select, keep the combo */
.translate-panel .goog-te-gadget { font-size: 0 !important; color: transparent !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* Main nav on the navy bar, district-style bold white links */
.site-nav ul {
  margin: 0;
  padding: 0 0 14px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  font-family: var(--ui);
  font-size: 14.5px;
  font-weight: 700;
}
.site-nav li {
  margin: 0;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

/* ---------- Footer (identical to the district / storyhub footer:
   comet photo + navy dim overlay) ---------- */
footer{position:relative;background:var(--navy);color:#e3ecf8;margin-top:30px;font-family:var(--ui);font-size:15px;overflow:hidden;isolation:isolate;}
footer .foot-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:79% 89%;z-index:-2;}
footer::before{content:"";position:absolute;inset:0;background:var(--navy);opacity:.72;z-index:-1;}
footer .wrap{position:relative;padding-top:48px;padding-bottom:26px;}
footer a{color:#e3ecf8;text-decoration:none;}
footer a:hover{color:#fff;text-decoration:underline;}
/* logo PNG has ~9% transparent top padding; pull up to sit flush with padding edge */
footer .flogo-link{display:inline-block;}
footer .flogo{height:84px;width:auto;margin-top:-8px;margin-bottom:6px;}
footer .ftag{font-family:var(--ui);font-weight:700;color:#fff;font-size:15px;letter-spacing:.2px;margin-bottom:34px;}
footer .fcols{display:flex;flex-wrap:wrap;gap:26px 52px;margin-bottom:28px;}
footer .addr{line-height:1.9;}
footer .addr a{color:#e3ecf8;text-decoration:underline;}
footer .flinks{list-style:none;margin:0;padding:0;line-height:1.9;}
footer .fsocial{display:flex;gap:20px;font-size:22px;margin-bottom:26px;}
footer .footlegal{display:flex;gap:22px;flex-wrap:wrap;margin-bottom:22px;}
footer .footlegal a{color:#dbe6f6;}
footer .fmission{font-family:var(--display);font-style:italic;color:#dbe6f6;font-size:16px;line-height:1.5;margin:0 0 12px;max-width:70ch;}
footer .fcopy{font-size:12.5px;color:#c6d4e8;margin:0;}

/* ---------- Small screens (chrome only) ---------- */
@media (max-width: 900px) {
  footer .fcols{flex-direction:column;gap:22px;}
}
@media (max-width: 600px) {
  .masthead .site-title { font-size: 24px; }
  .masthead .pm-logo img { width: 64px; }
  .site-nav ul { gap: 16px; }
}
