/* Shared across every page of the site: the thin top bar, the footer, and nothing else.
   Each tool keeps its own styles; this file only adds the parts that tie them together. */
.sitebar {
  background: #16304f;
  color: #c9d8ea;
  font-family: "IM Fell English", Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.2;
  position: relative;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
}
.sitebar .in {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px 22px;
  padding: 9px max(16px, env(safe-area-inset-left, 0px));
}
.sitebar a { color: inherit; text-decoration: none; }
.sitebar .mark {
  font-family: "IM Fell English SC", "IM Fell English", Georgia, serif;
  color: #fff;
  font-size: 19px;
  letter-spacing: .02em;
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.sitebar .mark svg { width: 22px; height: 22px; flex: none; }
.sitebar nav { display: flex; align-items: center; gap: 4px 6px; flex: 1; justify-content: flex-end; }
.sitebar .grp { position: relative; }
.sitebar .top {
  font: inherit; color: inherit; background: none; border: 1px solid transparent; border-radius: 6px;
  padding: 5px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.sitebar .top svg { width: 10px; height: 6px; opacity: .8; transition: transform .15s; }
.sitebar .top .sm { display: none; }
.sitebar .top:hover, .sitebar .grp.open .top { color: #fff; background: rgba(255,255,255,.08); }
.sitebar .grp.open .top svg { transform: rotate(180deg); }
.sitebar .grp.here .top { color: #fff; border-color: rgba(169,200,236,.45); }
.sitebar .drop {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 280px; z-index: 60;
  background: #16304f; border: 1px solid #2b4a70; border-radius: 8px; padding: 6px; text-align: left;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.6);
}
.sitebar .drop::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; } /* keeps hover alive across the gap */
.sitebar .drop a { display: block; padding: 8px 12px; border-radius: 6px; }
.sitebar .drop a b { font-weight: 400; color: #fff; font-size: 18px; display: block; }
.sitebar .drop a small { display: block; color: #a9bdd3; font-size: 14px; font-style: italic; }
.sitebar .drop a:hover { background: rgba(255,255,255,.08); }
.sitebar .drop a[aria-current="page"] { background: rgba(169,200,236,.16); box-shadow: inset 3px 0 0 #a9c8ec; }
.sitebar .sup { padding: 5px 10px; border-radius: 6px; white-space: nowrap; }
.sitebar .sup:hover, .sitebar .sup[aria-current="page"] { color: #fff; background: rgba(255,255,255,.08); }
.sitebar .sup.solo[aria-current="page"] { box-shadow: inset 0 0 0 1px rgba(169,200,236,.45); }
.sitebar .paid {
  font: 600 9px/1 -apple-system, Helvetica, Arial, sans-serif;
  letter-spacing: .06em; vertical-align: 3px; margin-left: 6px; padding: 2px 4px; border-radius: 3px;
  background: #2b5f96; color: #e3edf7;
}
/* a long list (the instrument pages) opens in two columns */
.sitebar .drop.wide:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; min-width: 600px; gap: 0 4px; max-height: calc(100vh - 80px); overflow-y: auto; }
.sitebar .drop.wide a { padding: 6px 12px; }
.sitebar .drop.wide a b { font-size: 16.5px; }
.sitebar .drop.wide a small { font-size: 13px; }
@media (max-width: 760px) {
  .sitebar .drop.wide:not([hidden]) { grid-template-columns: 1fr; min-width: 0; max-height: 70vh; }
  .sitebar .in { flex-wrap: wrap; gap: 4px 10px; }
  .sitebar nav { flex-basis: 100%; justify-content: space-between; font-size: 16px; gap: 2px; }
  .sitebar .top { padding: 5px 7px; }
  .sitebar .top .lg, .sitebar .sup .w { display: none; }
  .sitebar .top .sm { display: inline; }
  .sitebar .grp { position: static; }
  .sitebar .drop { left: 8px; right: 8px; min-width: 0; top: 100%; }
  .sitebar .in { position: relative; }
}

/* the "where to find ABC" lines, filled in by site.js */
.thesession-note { font-size: 15px; line-height: 1.45; color: #5d6d7e; background: #eef4fb; border: 1px solid #d3e1f0; border-radius: 6px; padding: 8px 12px; margin: 10px 0; }
.thesession-note b { font-weight: 600; color: #1f3d63; }
.thesession-note a { color: #2b5f96; font-weight: 600; }
.thesession-note .ts-aside { font-style: italic; }
a.nolink[data-link="violins"] { opacity: .75; cursor: default; }

.sitefoot {
  margin-top: 48px;
  background: #16304f;
  color: #a9bdd3;
  font-family: "IM Fell English", Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.5;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sitefoot .in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px max(16px, env(safe-area-inset-left, 0px)) 26px;
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; justify-content: space-between;
}
.sitefoot a { color: #dbe7f3; text-decoration: none; border-bottom: 1px solid #3c5f86; }
.sitefoot a:hover { border-bottom-color: #dbe7f3; }
.sitefoot .links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.sitefoot .note { max-width: 560px; }
.sitefoot .backer-of { flex-basis: 100%; color: #dbe7f3; }

.sitebar + .band, .sitebar + div > .band { padding-top: 0 !important; }

/* the Facebook community menu */
.sitebar .drop .soon { display: block; padding: 8px 12px; }
.sitebar .drop .soon b { font-weight: 400; color: #fff; font-size: 18px; display: block; }
.sitebar .drop .soon small { display: block; color: #a9bdd3; font-size: 14px; font-style: italic; }
.sitebar .grp.fb .drop { min-width: 320px; }
@media (max-width: 1240px) and (min-width: 761px) {
  .sitebar .top .lg { display: none; }
  .sitebar .top .sm { display: inline; }
}
@media (max-width: 760px) {
  .sitebar nav { flex-wrap: wrap; }
  .sitebar .grp.fb { position: absolute; right: 96px; top: 2px; }
  .sitebar .grp.fb .drop { left: auto; right: -86px; width: min(340px, calc(100vw - 20px)); top: 100%; }
  /* Support moves up beside the FolkScore name, so the menus get the whole row */
  .sitebar a.sup:not(.solo) { position: absolute; right: 10px; top: 6px; }
  .sitebar a.sup:not(.solo) .w { display: inline; }
}
@media (max-width: 430px) {
  .sitebar nav { font-size: 15.5px; }
  .sitebar .top { padding: 4px 5px; gap: 4px; }
  .sitebar .sup { padding: 4px 6px; }
}
@media print { .sitebar, .sitefoot { display: none !important; } }
