/***************************************************************************************************
****************************************************************************************************

Project..... Vaughan Memorial Library website
Date........ Q2-2023
Developer... vincent.grovestine@acadiau.ca

****************************************************************************************************
***************************************************************************************************/



/*******************************************************************************
********************************************************************************
** MISCELLANEOUS COMMON TAGS
********************************************************************************
*******************************************************************************/

blockquote {
  border-left: 1px solid var(--vml-color-border);
  padding-left: 0.75em;
  margin-left: 1.25em;
  margin-right: 2em;
}

hr {
  border-top: 1px solid var(--vml-color-hr);
  border-right: none;
  border-bottom: none;
  border-left: none;
}

hr,
p,
table {
  padding: 0;
  margin: 1em 0;
}

sub,
sup {
  font-size: 0.75em;
  margin: 0;
  padding: 0;
  line-height: 1em;
}

sub {
  vertical-align: sub;
}

sup {
  vertical-align: super;
}

video {
  border: 1px solid var(--vml-color-border);
  padding: 0.125em;
  box-sizing: content-box;
  object-fit: scale-down;
}



/*******************************************************************************
********************************************************************************
** HEADINGS
********************************************************************************
*******************************************************************************/

h1, h2, h3, h4, h5, h6 {
  color: var(--vml-color-heading-text);
  font-weight: bold;
  margin: 0.75em 0 0.5em 0;
  line-height: 1.125em;
}

h1 {
  font-size: 2.125em;
}

body.hide_page_title h1.auto_page_title {
  display: none;
}

#main h1:first-of-type {
  margin: 0;
  border-bottom: 1px solid;
  padding-bottom: 0.3125rem;
}

h2 {
  font-weight: normal;
  font-size: 1.625em;
}

h3 {
  font-size: 1.25em;
}

h4 {
  font-weight: normal;
  font-size: 1em;
}

h5 {
  font-weight: normal;
  font-size: 1em;
  font-style: italic;
}

h6 {
  font-weight: bold;
  font-size: 0.875em;
  color: var(--vml-color-heading6-text);
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  text-decoration-style: dotted !important;
}



/*******************************************************************************
********************************************************************************
** LINKS: A-tags
********************************************************************************
*******************************************************************************/

a {
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 1px !important;
  transition: 0.2s;
}

a:link {
  color: var(--vml-color-a-text);
}

a:visited {
  color: var(--vml-color-a-visited-text);
}

a:hover,
a:active {
  color: var(--vml-color-a-active-text);
}

nav a {
  text-decoration: none;
}

/*
a.mailto {}
a.tel {}
*/


/*******************************************************************************
********************************************************************************
** LISTS
********************************************************************************
*******************************************************************************/

ol,
ul {
  padding: 0;
  margin: 0.75em 0 0.75em 2em;
  list-style-position: outside;
}

ol {
  list-style-type: decimal;
}

ul {
  list-style-type: disc;
}

#header ul,
#top_nav ul,
#main .mod_breadcrumb ul,
#bento_results ul,
nav ul {
  margin-left: 0;
  list-style-type: none;
  list-style-position: inside;
}



/*******************************************************************************
********************************************************************************
** IFRAMES
********************************************************************************
*******************************************************************************/

iframe {
  border: 1px solid var(--vml-color-border);
  width: 100%;
  height: 100%;
}

iframe.aspect_square {
  height: 100vh;
}

iframe.aspect_4x3 {
  height: 75vh;
}

iframe.aspect_16x9 {
  height: 56.25vh;
}

iframe.aspect_limited {
  height: 20em;
}

iframe.seamless {
  border: none;
}



/*******************************************************************************
********************************************************************************
** FLEX LAYOUT (restricted to #main content, otherwise breaks header/footer)
********************************************************************************
*******************************************************************************/

#main .flex {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  justify-content: flex-start;
  gap: 1.5em 2em;
}

/*
#main .flex .group {}
*/

#main .flex > * {
  display: block;
  flex-shrink: 1;
  flex-grow: 1;
  flex-basis: 11rem;
  min-width: 9rem;
}

#main .flex.noshrink > * {
  flex-shrink: 0;
}

#main .flex.nogrow > * {
  flex-grow: 0;
}

#main .flex.pseudocolumn_2 > * {
  flex-basis: 47%;
  min-width: 18rem;
}

#main .flex.pseudocolumn_3 > * {
  flex-basis: 30%;
  min-width: 15rem;
}

#main .flex.pseudocolumn_4 > * {
  flex-basis: 22%;
  flex-basis: 10rem;
}

#main ul.flex {
  gap: 0 2em;
}

#main ul.flex li {
  display: list-item;
}



/*******************************************************************************
********************************************************************************
** PAGINATION
********************************************************************************
*******************************************************************************/

.pagination {
  border-top: 1px solid var(--vml-color-border);
  padding-top: 1em;
  margin-bottom: 0;
  font-size: 0.875em;
}

.pagination p {
  margin: auto;
  padding: auto;
}

.pagination ul {
  margin-left: 0;
}

.pagination ul li {
  padding: 0.25em;
  display: inline-block;
}

.pagination ul li:first-child {
  padding-left: 0;
}

.pagination ul li:last-child {
  padding-right: 0;
}

.pagination ul li a,
.pagination ul li strong.active {
  background-color: var(--vml-color-pagination-a-background);
  padding: 0.25em 0.5em;
  margin: 0;
  border-radius: 0.125em;
}

.pagination ul li a:hover {
  background-color: var(--vml-color-pagination-a-hover-background);
  color: var(--vml-color-pagination-a-hover-text);
}

.pagination ul li a:active,
.pagination ul li strong.active {
  background-color: var(--vml-color-pagination-a-active-background);
  color: var(--vml-color-pagination-a-active-text);
}

/*
.pagination ul li.first {}
.pagination ul li.previous {}
.pagination ul li.next {}
.pagination ul li.last {}
*/



/*******************************************************************************
********************************************************************************
** ATTENTION BANNERS
********************************************************************************
*******************************************************************************/

.attention {
  display: block;
  border-radius: 0.125em;
  padding: 0.25em 1em;
  margin: 1em 0;
}

.attention * {
  display: inline;
  font-size: 1em;
  margin: 0;
  border: none;
}

/*
.attention a:active,
.attention a:hover { }
*/

.attention em:first-of-type,
.attention h2,
.attention h3,
.attention h4 {
  font-weight: bold !important;
  font-style: normal;
}

.attention em:first-of-type::before,
.attention h2::before,
.attention h3::before,
.attention h4::before {
  font-family: "Font Awesome 5 Free", FontAwesome;
  font-weight: 400;
}

.attention.urgent em:first-of-type::before,
.attention.urgent h2::before,
.attention.urgent h3::before,
.attention.urgent h4::before {
  content: "\f071\00a0\00a0";
}

.attention.important em:first-of-type::before,
.attention.important h2::before,
.attention.important h3::before,
.attention.important h4::before {
  content: "\f06a\00a0\00a0";
}

.attention.notice em:first-of-type::before,
.attention.notice h2::before,
.attention.notice h3::before,
.attention.notice h4::before {
  content: "\f05a\00a0\00a0";
}

.attention h2::after,
.attention h3::after,
.attention h4::after {
  content: ": ";
}

.attention.urgent * {
  color: var(--vml-color-attention-urgent-text) !important;
}

.attention.urgent {
  background-color: var(--vml-color-attention-urgent-background);
}

.attention.important * {
  color: var(--vml-color-attention-important-text) !important;
}

.attention.important {
  background-color:  var(--vml-color-attention-important-background);
}

.attention.notice * {
  color: var(--vml-color-attention-notice-text) !important;
}

.attention.notice {
  background-color:  var(--vml-color-attention-notice-background);
}



/*******************************************************************************
********************************************************************************
** FAUX BUTTON LINK (a-tag styled like a button instead of simple text)
********************************************************************************
*******************************************************************************/

a.faux_button {
  background-color: var(--vml-color-a-faux_button-background);
  color: var(--vml-color-a-faux_button-text) !important;
  text-decoration: none !important;
  font-weight: normal;
  display: inline-block;
  min-height: auto;
  padding: 0.25em 0.75em;
  border-radius: 0.125em;
}

a.faux_button:visited {
  background-color: var(--vml-color-a-faux_button-visited-background);
}

a.faux_button:hover,
a.faux_button:active {
  background-color: var(--vml-color-a-faux_button-active-background);
}



/*******************************************************************************
********************************************************************************
** EXTERNAL/REDIRECT LINKS: A-tag with icon denoting external target
********************************************************************************
*******************************************************************************/

a.type_external:after,
a.type_redirect:after {
  font-family: "Font Awesome 5 Free", FontAwesome;
  font-weight: 900;
  content: "\00a0\00a0\f08b";
  display: inline;
  font-size: 0.75em;
}

a.type_external:after,
a.type_redirect:after {
  opacity: 0.2;
}

a.type_external:hover:after,
a.type_external:active:after,
a.type_redirect:hover:after,
a.type_redirect:active:after {
  opacity: 1;
}



/*******************************************************************************
********************************************************************************
** ADHOC: Assorted simple formatting classes to use instead of inline styles
********************************************************************************
*******************************************************************************/

.border-bottom {
  border-bottom: 1px solid var(--vml-color-border);
}

.border-top {
  border-top: 1px solid var(--vml-color-border);
}

.hidden,
.invisible {
  display: none;
}

.smaller {
  font-size: 0.875em;
}

.fineprint {
  color: var(--vml-color-fineprint-text);
  font-size: 0.75em;
  font-style: italic;
}

.boxed {
  background-color: var(--vml-color-boxed-background);
  padding: 0.5em;
  border-radius: 0.125em;
}


/***************************************************************************************************
***************************************************************************************************/
