/* Accessibility fixes for the whole site (WCAG 2.2 AA). See the audit in
   the project files (accessibility/geog215-accessibility-issues.md). */

/* Reflow (1.4.10): wide tables scroll inside their own box instead of making
   the whole page scroll sideways on phones and at high zoom. The wrapper is
   added by assets/a11y.html. */
.sds-table-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin-bottom: 1rem;
}
.sds-table-scroll > table { margin-bottom: 0; }
.sds-table-scroll:focus-visible { outline: 3px solid #2C5080; outline-offset: 2px; }

/* Long URLs and inline code break instead of overflowing the text column. */
#quarto-document-content a.uri,
#quarto-document-content p code,
#quarto-document-content li code {
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
#quarto-document-content a.uri { overflow-wrap: anywhere; }

/* Check your understanding drop-downs and boxes fit the column; a long
   answer wraps inside the open list instead of widening the page. */
#quarto-document-content .webex-select,
#quarto-document-content .webex-solveme {
  max-width: 100%;
}

/* Previous / next chapter links at the bottom of the page wrap. */
.page-navigation .nav-page-text { white-space: normal; overflow-wrap: anywhere; }
.page-navigation .nav-page { min-width: 0; }

/* Target size (2.5.8): sidebar arrows and links at least 24px tall. */
.sidebar-item-toggle {
  min-width: 24px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sidebar-item .sidebar-link {
  min-height: 24px;
  padding-top: 2px;
  padding-bottom: 2px;
}

/* Focus not obscured (2.4.11): when Tab scrolls the page, keep the focused
   item clear of the fixed buttons in the bottom-right corner and of the
   sticky top menu. */
html {
  scroll-padding-top: 80px;
  scroll-padding-bottom: 80px;
}

/* Focus visible (2.4.7): a light ring on the dark blue top menu, where the
   usual blue ring doesn't show. */
.navbar a:focus-visible,
.navbar button:focus-visible,
.navbar .sds-reader-toggle:focus-visible,
.navbar .aa-DetachedSearchButton:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  box-shadow: none;
}

/* Title breadcrumbs (1.4.3): Hyperlink Blue and Bootstrap gray are under
   4.5:1 on the light breadcrumb background. Bolin Creek is 7.5:1, Old Well
   Basin 5.4:1. */
#quarto-content .quarto-title-breadcrumbs .breadcrumb-item,
#quarto-content .quarto-title-breadcrumbs .breadcrumb li:last-of-type a,
#quarto-content .quarto-title-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
  color: #5B6670;
}
#quarto-content .quarto-title-breadcrumbs .breadcrumb-item:first-child a { color: #2C5080; }
/* Breadcrumb links: at least 24px tall (2.5.8). */
#quarto-content .quarto-title-breadcrumbs .breadcrumb-item a {
  display: inline-block;
  min-height: 24px;
  padding: 2px 0;
}

/* Visually hidden text that screen readers still read. */
.sds-sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Checklist boxes on the exercise pages: a bigger target (2.5.8). */
#quarto-document-content li > label > input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0.35rem 0.2rem 0;
  vertical-align: -0.2rem;
}
