/* ===============================
   GLOBAL CSS – Manhasset SCA
   =============================== */

/* ===== RESET / BASICS ===== */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #000;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #064ee5; text-decoration: underline; }
a:hover { opacity: .95; }

/* ===== THEME VARIABLES ===== */
:root {
  --nav-navy: #002F6C;
  --nav-navy-dk: #001a3d;
  --nav-navy-ultra: #001536;
  --nav-text: #ffffff;
  --nav-dim: #e5eefc;
  --nav-orange: #F26925;
  --focus: 0 0 0 3px rgba(242,105,37,.45);
}

/* ===== LAYOUT ===== */
.container {
  --gap: clamp(.75rem, 2vw, 1rem);
  --maxw: 1120px;
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(12px, 4vw, 24px);
  max-width: var(--maxw);
  display: grid;
  gap: var(--gap);
  grid-template-areas:
    "header"
    "mainnav"
    "main"
    "sidebar2"
    "footer";
}
header { grid-area: header; }
.nav-spacer { grid-area: mainnav; }
#mainContent { grid-area: main; }
#sidebar2 { grid-area: sidebar2; }
footer { grid-area: footer; }

@media (min-width: 900px) {
  .container {
    grid-template-columns: 1fr 260px;
    grid-template-areas:
      "header   header"
      "mainnav  mainnav"
      "main     sidebar2"
      "footer   footer";
    align-items: start;
  }
}

/* ===== HEADER ===== */
.masthead { border-bottom: 1px solid #e5e7eb; padding-top: .5rem; }
.masthead img { width: 100%; height: auto; }

/* ===== TOP NAVIGATION ===== */
.topnav-full {
  width: 100%;
  background: var(--nav-navy);
  border-bottom: 2px solid var(--nav-navy-dk);
}
.topnav-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 0 .75rem;
  display: flex;
  align-items: center;
  position: relative;
}
.menu { list-style: none; margin: 0; padding: 0; display: none; width: 100%; }
.menu.open { display: block; }
.menu > li { position: relative; }
.menu a, .menu .menubtn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .8rem 1rem;
  border: 0;
  background: none;
  cursor: pointer;
  text-decoration: none;
  color: var(--nav-text);
  font-weight: 700;
  font-size: .95rem;
}
.menu a:hover, .menu .menubtn:hover { background: var(--nav-navy-dk); }
.menu a:focus-visible, .menu .menubtn:focus-visible {
  outline: none; box-shadow: var(--focus);
}

@media (min-width: 900px) {
  .menu { display: flex; gap: .25rem; width: auto; }
  .menu a, .menu .menubtn { width: auto; border-radius: 8px; }
  .menu > li > a::after, .menu > li > .menubtn::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px;
    height: 3px; background: transparent; border-radius: 3px;
    transition: background .15s ease;
  }
  .menu > li:hover > a::after, .menu > li:hover > .menubtn::after {
    background: var(--nav-orange);
  }
}

.nav-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,.55);
  color: var(--nav-text);
  border-radius: 6px;
  padding: .5rem .6rem;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.nav-toggle:focus-visible { outline: none; box-shadow: var(--focus); }
.nav-toggle .bars {
  width: 18px; height: 2px; background: #fff; position: relative; display: block;
}
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: #fff;
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }

.submenu {
  display: none;
  list-style: none;
  margin: 0;
  padding: .5rem;
  border-radius: 8px;
  background: var(--nav-navy-ultra);
  border: 1px solid var(--nav-navy-dk);
}
.submenu li a {
  color: var(--nav-dim);
  padding: .5rem .6rem;
  border-radius: 6px;
  display: block;
}
.submenu li a:hover { background: var(--nav-orange); color: #fff; }
.submenu-open > .submenu { display: block; }

.caret {
  margin-left: .35rem;
  width: .55rem; height: .55rem;
  border-right: 2px solid var(--nav-dim);
  border-bottom: 2px solid var(--nav-dim);
  transform: rotate(45deg);
  transition: transform .18s ease, border-color .18s ease;
}
.submenu-open > .menubtn .caret { transform: rotate(-135deg); border-color: #fff; }

@media (min-width: 900px) {
  .submenu {
    position: absolute; left: 0; top: 100%; min-width: 240px;
    box-shadow: 0 10px 20px rgba(0,0,0,.25);
    display: none; margin-top: .3rem;
  }
  .menu > li:hover > .submenu,
  .menu > li:focus-within > .submenu { display: block; }
}

/* ===== SIDEBAR (accordion) ===== */
.accordion { display: grid; gap: var(--gap); }
details.ac {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
details.ac > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 10px 12px;
  font-weight: bold;
  background: #f8fafc;
  user-select: none;
}
details.ac > summary::-webkit-details-marker { display: none; }
.summary-img { max-height: 22px; width: auto; }
.ac-content { padding: 12px; }
.ac-caret {
  margin-left: auto;
  width: 1em; height: 1em;
  display: inline-block;
  transform: rotate(-90deg);
  transition: transform .2s ease;
  border-right: 2px solid #334155;
  border-bottom: 2px solid #334155;
}
details[open] > summary .ac-caret { transform: rotate(45deg); }

/* ===== CONTENT ===== */
.content-box {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: var(--gap);
  background: #fff;
}
.hdr-img { max-width: 370px; }
footer {
  text-align: center;
  color: #334155;
  border-top: 1px solid #e5e7eb;
  padding: 16px 0 24px;
  font-size: .85rem;
}

/* ===== CALENDAR EMBED ===== */
.cal-embed {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.cal-embed iframe {
  display: block;
  width: 100%;
  height: clamp(600px, 80vh, 1000px);
  border: 0;
}

/* ===== BUTTONS ===== */
.button-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 14px;
}
.btn {
  background-color: #001f3f;
  color: #fff;
  padding: 10px 18px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .3s ease, transform .2s ease, box-shadow .3s ease;
  min-width: 120px;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, .2);
  text-decoration: none;
  display: inline-block;
}
.btn:hover {
  background-color: #001533;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}
.btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}
@media (max-width: 600px) {
  .button-container { flex-direction: column; align-items: center; }
  .btn { width: 75%; text-align: center; }
}

/* ===== CANVA EMBEDS ===== */
.embed-square,
.embed-card {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(63,69,81,0.16);
  background: #fff;
}
.embed-square { margin: 1.6em auto .9em; }
.embed-square iframe,
.embed-card iframe {
  width: 100%; height: 100%; border: 0; display: block;
}
.embed-grid {
  display: grid;
  gap: 16px;
  justify-items: center;
  margin: 1.2em 0;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .embed-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
}
@media (min-width: 1024px) {
  .embed-grid { grid-template-columns: repeat(3, minmax(260px, 1fr)); }
}
@media (max-width: 700px) {
  .embed-grid { grid-template-columns: 1fr; }
  .embed-card { max-width: 100%; }
}

/* ===== CALENDAR KEY ===== */
.calendar-key {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px 24px;
  margin: 1em 0;
  font-family: Arial, sans-serif;
  font-size: 14px;
  justify-items: start;
}
.calendar-key .dot {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.calendar-key .blue   { background-color: #3a57fc; }
.calendar-key .orange { background-color: #ef6c00; }
.calendar-key .green  { background-color: #33b679; }
.calendar-key .purple { background-color: #b39ddb; }
.calendar-key .yellow { background-color: #e4c441; }
.calendar-key .gray   { background-color: #9e9e9e; }
@media (max-width: 600px) {
  .calendar-key { grid-template-columns: repeat(3, 1fr); }
}

/* ===== ADD TO CALENDAR BUTTON ===== */
.atc-btn {
  appearance: none;
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #fff;
  padding: .65rem 1rem;
  border-radius: .6rem;
  font: 600 14px/1.2 system-ui, sans-serif;
  cursor: pointer;
  transition: opacity .15s ease;
  display: inline-flex;
  gap: .5rem;
  align-items: center;
}
.atc-btn:hover { opacity: .92; }
.atc-menu {
  position: absolute;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .6rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: .35rem;
  min-width: 220px;
  display: none;
}
.atc-menu a {
  display: block;
  padding: .55rem .7rem;
  border-radius: .45rem;
  color: #0b0b0b;
  text-decoration: none;
}
.atc-menu a:hover { background: #f3f4f6; }@charset "UTF-8";
/* CSS Document */

