@charset "UTF-8";
/* Tufte CSS styles */

/* === Base / Layout === */
body {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 10%;
    background-color: #ffffff;
    max-width: 1400px; /* adjust body width */
    counter-reset: sidenote-counter;
}

/* === Headings === */
h1, h2, h3 {
    font-family: 'Work Sans', sans-serif;
    font-weight: initial; /* per your preference */
    line-height: 1;
}

h1 {
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    font-size: 3.2rem;
}

h2 {
    font-style: italic;
    margin-top: 2.1rem;
    margin-bottom: 1.4rem;
    font-size: 2.2rem;
}

h3 {
    font-style: italic;
    font-size: 1.7rem;
    margin-top: 2rem;
    margin-bottom: 1.4rem;
}

/* === Rules / Dividers === */
hr {
    display: block;
    height: 1px;
    width: 55%;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/* === Special Paragraph Types === */
p.subtitle {
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    display: block;
    line-height: 1;
}

p.question {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.2rem;
  color: black;
}

p.symbol {
  font-size: 2rem;
  padding-top: 3rem; /* affects spacing between Q&A paragraphs */
  opacity:0.1;
  color: black;
}

p.symbol-question {
  font-size: 2rem;
  padding-top: 6rem; /* affects spacing between Q&A paragraphs */
  opacity:0.1;
}

p.description{
  font-size: 1.2rem;
  padding: 2%;
  font-family: 'Work Sans', sans-serif;
}

.indent{
  padding-left: 2%;
}

.danger { color: #c02f1d; }
.orange { color: #FF7900; }

article { padding: 5rem 0rem; }

section {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* === Body Text & Lists === */
p,
dl,
ol,
ul {
    font-size: 1.3rem; /* original 1.4rem */
    line-height: 2.2rem;
    font-family: ; /* intentionally left as-is */
}

p {
    margin-top: 0rem;
    margin-bottom: 0rem; /* originally 1.4rem */
    padding-right: 0;
    vertical-align: baseline;
}

/* === Chapter Epigraphs === */
div.epigraph {
    margin: 2em 0;
    font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

div.epigraph > blockquote {
    margin-top: 3em;
    margin-bottom: 0; /* originally 3em */
}

div.epigraph > blockquote,
div.epigraph > blockquote > p {
    font-style: normal;
    font-size: 1.1rem; /* quote size */
}

div.epigraph > blockquote > footer { font-style: normal; }
div.epigraph > blockquote > footer > cite { font-style: italic; }

/* === Blockquotes === */
blockquote {
    font-size: 1.4rem;
    padding-left: 2%;
}

blockquote p {
    width: 55%;
    margin-right: 40px;
}

blockquote footer {
    width: 55%;
    font-size: 1rem;
    text-align: right;
}

/* === Section content widths === */
section > p,
section > footer,
section > table {
    width: 55%;
}

/* 50 + 5 == 55, to be the same width as paragraph */
section > dl,
section > ol,
section > ul {
    width: 50%;
    -webkit-padding-start: 5%;
}

dt:not(:first-child),
li:not(:first-child) { margin-top: 0.25rem; }

/* === Figures === */
figure {
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    max-width: 55%;
    -webkit-margin-start: 0;
    -webkit-margin-end: 0;
    margin: 0 0 3em 0;
}

figcaption {
    float: right;
    clear: right;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    vertical-align: baseline;
    position: relative;
    max-width: 40%;
}

figure.fullwidth figcaption { margin-right: 24%; }

/* === Sidenotes & Margin Notes === */
img { max-width: 100%; }

.sidenote,
.marginnote {
    float: right;
    clear: right;
    margin-right: -60%; /* kept intentionally */
    width: 50%;
    margin-top: 0.3rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.3;
    vertical-align: baseline;
    position: relative;
    color: black; /* text colour for sidenotes */
    font-family:'Work Sans', sans-serif;
    z-index: 1;
}

.sidenote-number { counter-increment: sidenote-counter; }

.sidenote-number:after,
.sidenote:before {
    font-family: 'Work Sans', sans-serif;
    color: #FF7900;
    position: relative;
    vertical-align: baseline;
}

.sidenote-number:after {
    content: counter(sidenote-counter);
    font-size: 1rem;
    top: -0.5rem;
    left: 0.1rem;
}

.sidenote:before {
    content: counter(sidenote-counter) " ";
    font-size: 1rem;
    top: -0.5rem;
}

blockquote .sidenote,
blockquote .marginnote {
    margin-right: -82%;
    min-width: 59%;
    text-align: left;
}

/* === Tables & Sans text === */
div.fullwidth,
table.fullwidth { width: 100%; }

div.table-wrapper {
    overflow-x: auto;
    font-family: "Trebuchet MS", "Gill Sans", "Gill Sans MT", sans-serif;
}

.sans {
    font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
    letter-spacing: .03em;
}

/* === Code === */
code, pre > code {
    font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 1.0rem;
    line-height: 1.42;
    -webkit-text-size-adjust: 100%; /* Prevent iOS font-size adjust */
}

.sans > code { font-size: 1.2rem; }

h1 > code,
h2 > code,
h3 > code { font-size: 0.80em; }

.marginnote > code,
.sidenote > code { font-size: 1rem; }

pre > code {
    font-size: 0.9rem;
    width: 52.5%;
    margin-left: 2.5%;
    overflow-x: auto;
    display: block;
}

pre.fullwidth > code { width: 90%; }

.fullwidth {
    max-width: 90%;
    clear:both;
}

span.newthought {
    font-variant: small-caps;
    font-size: 1.2em;
}

/* === Margin Toggle === */
input.margin-toggle { display: none; }

label.sidenote-number { display: inline; }

label.margin-toggle:not(.sidenote-number) { display: none; }

/* === Iframe Wrapper (16:9) === */
.iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* === Responsive (<= 760px) === */
@media (max-width: 760px) {
    body {
        width: 84%;
        padding-left: 8%;
        padding-right: 8%;
    }

    hr,
    section > p,
    section > footer,
    section > table { width: 100%; }

    pre > code { width: 97%; }

    section > dl,
    section > ol,
    section > ul { width: 90%; }

    figure { max-width: 90%; }

    figcaption,
    figure.fullwidth figcaption {
        margin-right: 0%;
        max-width: none;
    }

    blockquote {
        margin-left: 1.5em;
        margin-right: 0em;
    }

    blockquote p,
    blockquote footer { width: 100%; }

    label.margin-toggle:not(.sidenote-number) { display: inline; }

    .sidenote,
    .marginnote { display: none; }

    .margin-toggle:checked + .sidenote,
    .margin-toggle:checked + .marginnote {
        display: block;
        float: left;
        left: 1rem;
        clear: both;
        width: 95%;
        margin: 1rem 2.5%;
        vertical-align: baseline;
        position: relative;
    }

    label { cursor: pointer; }

    div.table-wrapper,
    table { width: 85%; }

    img { width: 100%; }
}

/* === Menu === */
nav{
  position: fixed;
  right:0;
  width: 100%;
  height: 102%;
  top:0;
  background-color: #6a7f71;
  font-family: 'Work Sans', sans-serif;

  /* Unused nav code (left here for future dev)
     position: fixed;
     display: flex;
     flex-direction: row;
     align-items: stretch;
  */

  min-height: 8vh;
  z-index: 2;
  animation: fadeIn1 .2s ease;
}

/* ============================================================
   FADE-IN ANIMATIONS (kept for older browser support)
   - @-webkit-keyframes → Safari < 9, iOS < 9
   - @-moz-keyframes    → Firefox < 15
   - @-o-keyframes      → Opera < 12
   - @-ms-keyframes     → IE 10–11
   Remove safely if you don't need to support browsers older than ~2017.
   ============================================================ */
@keyframes fadeIn1 {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@-webkit-keyframes fadeIn1 { /* Safari < 9, iOS < 9 */
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@-moz-keyframes fadeIn1 { /* Firefox < 15 */
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@-o-keyframes fadeIn1 { /* Opera < 12 */
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@-ms-keyframes fadeIn1 { /* IE 10–11 */
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.nav-links{
  /* these don't seem to be doing anything */
  /* position: fixed;
     display: flex;
     flex-direction: row;
     align-items: stretch; */
  color: #C4E6B1;
  font-size: 1.5rem;
}

.nav-links li{
  list-style: none;
  /* removed empty font-size */
}
.nav-links li > ul > li{
  list-style: initial;
  text-decoration: none;
}

.nav-links a{
  color: white;
  text-decoration: none;
  line-height:; /* left as-is per your choice */
  padding-right: 100px;
}

.menuicon{
  position: fixed;
  top:87%;
  right:10%;
  text-decoration: none;
  text-align: center;
  cursor:pointer;
  color: rgba(180, 203, 182, 1);
  opacity: 0.5; /* fixed from 50% */
  z-index: 3;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

@media screen and (min-width:760px){
  .menuicon{
    right:3%;
    color: rgba(180, 203, 182, 1);
    opacity: 0.8; /* fixed from 80% */
  }
}

.menutext{
  color: #b8dbd9;
  padding-left: 4%;
  padding-right: 4%;
  font-size: 1rem;
  line-height: 1.4;
  font-style: italic;
}

.menulinks{
  font-size: 2rem;
  line-height: 2;
}
@media screen and (max-width:760px){
  .menulinks{
    font-size: 1.2rem;
    line-height: 1;
  }
}
.material-icons{
  /* kept intentionally */
}

.material-icons.md-36 { font-size: 36px; }

/* === Conversation summaries on hover === */
.conversationsummaries{
  position: fixed;
  right: 0;
  top:0;
  background-color: #6a7f71;
  padding-right: 5%;
  padding-top: 4%;
  max-width: 40vw;
  animation: fadeIn2 .9s ease;
}

/* FadeIn2 with the same support notes as above */
@keyframes fadeIn2 {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@-webkit-keyframes fadeIn2 { /* Safari < 9, iOS < 9 */
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@-moz-keyframes fadeIn2 { /* Firefox < 15 */
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@-o-keyframes fadeIn2 { /* Opera < 12 */
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@-ms-keyframes fadeIn2 { /* IE 10–11 */
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.hoverforsummary div{ display: none; }

@media screen and (min-width:1120px){
  .hoverforsummary:hover div{ display: inline-block; }
}
[hidden]{ display:none !important; }

#conversationslist{
  overflow-y:auto;
  max-height:50vh;
  padding:0;
  margin:0;
  display:inline-block;
}

.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0, 0, 0, 0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

.menuicon:focus-visible,
.nav-links a:focus-visible{
  outline: 2px solid #FF7900;
  outline-offset: 3px;
}

/* Mobile: tighten only the wrapped lines *inside* each link */
@media (max-width: 760px){
  /* Let list items size normally again (restores inter-item spacing) */
  #site-menu .nav-links li{
    line-height: normal !important;
  }
