  /* TODO: REMOVE AFTER REDESIGN. These rules simply *unset* deprecated styles set by the 2021-version of `main.css` */
HEADER > NAV.fixed-top {position: unset;}
BODY,BODY.scrolling, BODY.megamenu-page, BODY.megamenu-page.att-header, BODY.megamenu-page.alert-active-1.att-header{padding-top: unset;}
BODY.staff-directory-page, BODY.department-directory-page{padding:unset;} /* Because at that moment they rather say ` 0 0` than '-top'*/
/* END: unset of the 2021-version of `main.css` */

/** 
*** Positioning the primary regions (Direct children to the BODY and sibling elements to one another). ***
**/
HTML, BODY {
  padding:0;margin:0; /* Inner elements should handle their own spacing */
  min-height: 100%;   /* For "sticky" FOOTER and/or flex-box to work as expected */
}

BODY {
  display: flex;          /* Paradigm shift! With flex-box we can re-order regions, expand regions to fill excess space (grow MAIN to maintain a "sticky" FOOTER). */
  flex-direction: column; /* 'Cause that's how we scroll. */
}

BODY > HEADER {
  z-index: 102;     /* Arbitrarily high number so it stays above all others sibling elements. */
  position: sticky; /* Will always stay in view */
  top: 0;           /* At the top of the screen */
}

BODY > NAV.megamenu-container { /* TODO: Remove className after redesign. Keep it clean, concise, and consistent. */
  z-index: 101;
  position: sticky; /* Will always stay in view, top position is auto-determined by the sticky element above it (aka, the HEADER). */
}

BODY > ASIDE[role="alert"] { /* Repositioning the notification | alert | announcement bar */
  background-color: #ffc82e; /* Notification bar's color at the lowest layer; will be overlaid by a message box */
  order: 2;                    /* In the code, this will be [near] last (so it won't be viewed by crawlers as "high importance" in *every* page) But *visually* this will brought near the top. */  
}

BODY > MAIN {
  order: 4;
  flex-grow: 1; /* Expands to fill excess space, so footer should stay at the bottom even if there isn't much other content in the page. */
}

BODY > FOOTER {order: 5}
/**
*** END: Primary region positioning/layout ***
**/

/** 
*** The NOTIFICATION|ALERT|ANNOUNCEMENT -BAR ***
**/
BODY > ASIDE[role="alert"] :last-child {margin-bottom:0}/* Avoid extraneous white-spacing at the bottom of the message bar */

/* Note: Message box container will either be a DIV for one message, or a UL for multiple messages. */
ASIDE[role="alert"] > DIV,
ASIDE[role="alert"] > UL {
  max-width: 1140px;
  padding: 0.2rem 2rem;
  background-color: #fff; /* For the message text/box layer above the notification bar's bg.  */
  width: 98%; /* <100% b/c it will leave some of lower alert-bar's color visible on narrow screens */
  margin: 0 auto; /* ie, "centered" */
  list-style: none;
}

/* Progressive Enhancement. If JavaScript disabled, 
toggling visibility will still work with this hidden CSS checkbox. */
ASIDE[role="alert"] > DIV > INPUT[type="checkbox"],
ASIDE[role="alert"] > UL > LI > INPUT[type="checkbox"] {display: none}

/* The clickable "Message Title" that will reveal/expand the "Message Body" */
ASIDE[role="alert"] > DIV > LABEL,
ASIDE[role="alert"] > UL > LI > LABEL {
  font-family: Roboto, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial,sans-serif;
  font-size: 1.25rem;
  font-weight: bold;
  font-weight: 500;
  padding: 0 1.5rem 0 2rem;
  margin-bottom: 0; /* Note: Later style will add whitespace when the message is visible */
  display: block;
  cursor: pointer;
  position: relative;
}

/* UX: If multi-clicked rapidly, the text gets selected, which doesn't look/feel very clean. */
ASIDE[role="alert"] > DIV > LABEL::selection,
ASIDE[role="alert"] > UL > LI > LABEL::selection {
  background: unset;
  color: unset;
}

/* Gives a little white-space b/t message title and body. */
ASIDE[role="alert"] > DIV > INPUT[type="checkbox"]:checked + LABEL,
ASIDE[role="alert"] > UL > LI > INPUT[type="checkbox"]:checked + LABEL {
  margin-bottom: 0.5rem;
}

/* Vertically center the icons (Info and Expand/Close) flanking the message title */
ASIDE[role="alert"] > DIV > LABEL::before,
ASIDE[role="alert"] > UL > LI > LABEL::before,
ASIDE[role="alert"] > DIV > LABEL::after,
ASIDE[role="alert"] > UL > LI > LABEL::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

/* Left-hand Info Icon : Initial State */
ASIDE[role="alert"] > DIV > LABEL::before,
ASIDE[role="alert"] > UL > LI > LABEL::before {
  color: #fff;
  background-color: var(--teal);
  border: solid #fff 0.1875rem;
  padding: 0.125rem 0.75rem;
  text-shadow: 0 0 0.125rem #00f;
  box-shadow: 0.0625rem 0.0625rem 0.5rem #3332, 0.0625rem 0.0625rem 0.125rem #0063;
  font-family: "Font Awesome 5 Free";
  content: "\F129";
  font-size: 1rem;
  font-weight: 700;
  left: -0.75rem;
  /* width: 28px; */
  /* height: 26px; */
  /* vertical-align: middle; */
  transition: 0.1s all;
  display: inline-block;
  box-sizing: content-box;
  text-align: center;
  border-radius: 50%;
}

/* Left-hand Info Icon : Active/"Pressed Down" State */
ASIDE[role="alert"] > DIV > LABEL:active::before,
ASIDE[role="alert"] > UL > LI > LABEL:active::before {
  transform: translateY(-50%) scale3d(0.9, 0.9, 1); /* Shrink slightly */
  background-color: #2e90a3; /* Darken slightly */
  box-shadow: 0 0 2px #0006; /* Concentrate shadows slightly */
}

/* Expand/Close Icon : Initial/Collapsed State */
ASIDE[role="alert"] > DIV > LABEL::after,
ASIDE[role="alert"] > UL > LI > LABEL::after {
  right: 0;
  height: 1rem;
  width: 1rem;
  line-height: 1rem;
  content: "+";
  font-family: Arial;
  color: #fff;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  background-color: #000;
  border-radius: 50%;
  transition: 0.1s all;
}

/* Expand/Close Icon : Secondary/Expanded State */
ASIDE[role="alert"] > DIV > INPUT[type="checkbox"]:checked + LABEL::after,
ASIDE[role="alert"] > UL > LI > INPUT[type="checkbox"]:checked + LABEL::after {
  background-color: #c00;
  transform: translateY(-50%) rotate(45deg); /* Note: Remember to keep it vertically-centered */
}

/* Message Body/Text : Initial/Collapsed State */
ASIDE[role="alert"] > DIV > DIV,
ASIDE[role="alert"] > UL > LI > DIV {
  overflow:hidden;height:1px;width:1px; /* Note: Instead of `display:none;`, this ruleset keeps the message fully legible to screen readers even if not expanded  */
}

/* Message Body/Text : Secondary/Expanded State */
ASIDE[role="alert"] > DIV > INPUT[type="checkbox"]:checked + LABEL + DIV,
ASIDE[role="alert"] > UL > LI > INPUT[type="checkbox"]:checked + LABEL + DIV {
  height: unset;width: unset;overflow: unset;
}