/* Self-hosted fonts (SIL Open Font License; see fonts/OFL-*.txt). */
@font-face{font-family:'Source Sans 3';font-style:normal;font-display:swap;font-weight:200 900;src:url(fonts/source-sans-3-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Source Sans 3';font-style:italic;font-display:swap;font-weight:200 900;src:url(fonts/source-sans-3-latin-wght-italic.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Source Sans 3';font-style:normal;font-display:swap;font-weight:200 900;src:url(fonts/source-sans-3-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Source Sans 3';font-style:italic;font-display:swap;font-weight:200 900;src:url(fonts/source-sans-3-latin-ext-wght-italic.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;}

/* About Development stylesheet. Source Sans 3 throughout (self-hosted; SIL OFL, see fonts/). */

body {
  color: #111111;
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

main.content {
  max-width: 700px;
}

p,
li {
  font-size: 1.05rem;
}

p {
  margin-bottom: 1.15rem;
}

li {
  margin-bottom: 0.35rem;
}

h1,
h2,
h3,
h4,
.navbar,
.sidebar,
#TOC,
.quarto-title-meta,
.page-navigation,
.quarto-page-breadcrumbs,
.breadcrumb,
.quarto-title-breadcrumbs {
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

h1 {
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 1.75rem;
}

h2 {
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 3.5rem;
  margin-bottom: 1.1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2.25rem;
  margin-bottom: 0.8rem;
}

.chapter-lead {
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.4rem;
  border-left: 2px solid #aaa;
  color: #555;
  font-size: 1.03rem;
}

figure {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

figcaption {
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #666;
}

/* Explore Further is a plain section, set like Sources (no box or tint) */
.explore-further p {
  font-size: 0.92rem;
}

.sidebar {
  font-size: 0.92rem;
}

.sidebar-title {
  font-weight: 600;
}

#TOC {
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  body {
    font-size: 17px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.45rem;
  }
}

/* Sources list: hanging indent, slightly smaller */
.sources ~ p, #sources p { font-size: 0.92rem; }


/* Sidebar and "On this page" highlights use the same link colour as the text */
.sidebar-navigation .sidebar-link.active,
.sidebar-navigation .sidebar-link.active .menu-text,
nav[role="doc-toc"] a.active,
nav[role="doc-toc"] ul > li > a.active,
.quarto-page-breadcrumbs a,
.breadcrumb a {
  color: #164b86;
}
nav[role="doc-toc"] a.active { border-left-color: #164b86; }
/* Quarto marks these with !important, so ours must too */
.sidebar nav[role=doc-toc] ul > li > a.active,
.sidebar nav[role=doc-toc] ul > li > ul > li > a.active,
.sidebar nav[role=doc-toc] ul > li > a:hover,
.sidebar nav[role=doc-toc] ul > li > ul > li > a:hover {
  color: #164b86 !important;
  border-left-color: #164b86;
}

/* Reading title: smaller than Quarto's default, with a consistent gap before the text */
h1.title {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0;
}
/* Padding rather than margin: Quarto zeroes this header's margin on narrow screens */
#title-block-header.quarto-title-block {
  padding-bottom: 1rem;
}
@media (max-width: 768px) {
  h1.title { font-size: 1.6rem; }
  #title-block-header.quarto-title-block { padding-bottom: 2rem; }
}

/* Phones: keep the top bar to one line. Show only the Part (the reading's own title
   follows directly below), truncated if needed, and give the title more room. */
@media (max-width: 991.98px) {
  .quarto-secondary-nav .quarto-page-breadcrumbs { flex: 1 1 auto; min-width: 0; overflow: hidden; }
  .quarto-secondary-nav .breadcrumb { flex-wrap: nowrap; min-width: 0; }
  .quarto-secondary-nav .quarto-search-button { flex: 0 0 auto; }
  .quarto-secondary-nav .breadcrumb-item + .breadcrumb-item { display: none; }
  .quarto-secondary-nav .breadcrumb-item {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
  }
}
@media (max-width: 768px) {
  h1.title { font-size: 1.5rem; line-height: 1.25; }
  #title-block-header.quarto-title-block { padding-top: 0.75rem; }
}

/* Long URLs (DOIs, web addresses) wrap instead of pushing the page sideways on phones */
main a.uri,
main .sources ~ p a,
.explore-further a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Tall figures: cap the displayed height so a portrait image doesn't fill the screen */
main figure img,
main .quarto-figure img {
  max-height: 70vh;
  width: auto;
  max-width: 100%;
}

/* Overall contents stay in the navbar; the left column holds only this page's outline. */
#quarto-sidebar .sidebar-menu-container,
#quarto-sidebar .sidebar-header,
#quarto-sidebar-glass,
.quarto-secondary-nav .quarto-btn-toggle,
#quarto-sidebarnav-toggle {
  display: none !important;
}

#TOC > #toc-title {
  display: none;
}

/* Override the global li size so outline links remain smaller than body text. */
#TOC,
#TOC li,
#TOC a {
  font-size: 0.75rem;
  line-height: 1.35;
}
#TOC li {
  margin-bottom: 0.2rem;
}

@media (min-width: 992px) {
  #quarto-sidebar:has(#TOC) {
    display: block !important;
    visibility: visible !important;
  }
  #quarto-sidebar > #TOC,
  #quarto-sidebar > #TOC > ul {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overflow: visible !important;
  }
}
#quarto-sidebar:not(:has(#TOC)) {
  display: none !important;
}

/* Keep the complete chapter menu usable on short screens. */
#nav-menu-contents + .dropdown-menu {
  max-height: 75vh;
  overflow-y: auto;
}

/* Information pages are built with the book but sit outside the reading sequence. */
.resource-information .page-navigation,
.page-navigation .nav-page-next:has(a[href$="license.html"]) {
  display: none;
}

.page-navigation .nav-page-next:has(a[href$="reading-guide.html"]) { display: none; }
