:root {
  --bg: #fff;
  --headerbg: transparent;
  --navbg: transparent;
  --mainbg: transparent;
  --navlink: #56473d;
  --navborder: #56473d;
}

/*** GENERAL ***/

* {
  box-sizing: border-box;
}

body, div, header, footer, main, h1, h2, h3, h4, h5, h6, img, p {
  margin: 0;
  padding: 0;
}

code {
    font-family : Monaco, Consolas, "Lucida Console", monospace;
}

html {
  min-height: 100%;
}

body {
  background: var(--bg);
  min-height: 100%;
  /* font-family: -apple-system, "Merriweather", BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; */
  font-family: -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", Arial, sans-serif;
  font-size: 13pt;
  line-height: 1.6;
  padding: 2rem;
  word-wrap: break-word;
  color: #4E5357;
  /* color: #2e2e2e; /\* Dark gray font color *\/ */
}

/* Headings font */
h1, h2, h3, h4, h5, h6 {
    /* font-family: -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", Arial, sans-serif; */
    font-family: "Lato", sans-serif; /* Default font for headings */
    color: #373B3E; /* Heading color (same as body text) */
}

/* Optional: Background color for content areas */
.content {
    background-color: #ffffff; /* White background for content areas */
}

a {
  color: #3a6eb1;
  text-decoration: none;
}

a.invisible {
    color: inherit;
    text-decoration: none;
}

a:active, a:hover {
  color: #71acf8;
  outline: 0;
}

ul {
  padding-left: 20px;
}

/*** HEADER ***/

header {
  max-width: 920px;
  width: auto;
  margin: auto;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 15px;
  background: var(--headerbg);
  gap: 5px;
}

header img {
  max-width: 300px;
}

header h2 {
  font-size: medium;
}

header p {
  margin: 0;
}

header div.icons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

header div.icons a + a::before {
  content: '•';
}

/*** NAV ***/

nav {
  max-width: 920px;
  width: auto;
  margin: auto;
  padding: 15px;
  background: var(--navbg);
  border-bottom: 1px solid var(--navborder);
  padding-bottom: 30px;
}

nav ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 15px;
}

nav ul li {
  list-style-type: none;
}

nav ul li a {
  font-size: large;
  color: var(--navlink);
  border-bottom: 3px dotted var(--navlink);
  padding-bottom: 0.2em;
  margin: 0.3em;
}

nav ul li a:hover {
  color: var(--navlink);
  border-bottom: 3px solid var(--navlink);
}

/*** MAIN ***/

main {
  width: auto;
  margin: auto;
  max-width: 920px;
  background: var(--mainbg);
  padding: 15px;
  padding-top: 30px;
}

main p {
  margin-bottom: 6px;
}

main h1, main h2 {
  margin: 5px 0;
}

main h3, main h4, main h5, main h6 {
  margin-bottom: 6px;
}

/* KBD */

kbd {
  background-color: #eee;
  border-radius: 3px;
  border: 1px solid #b4b4b4;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.2),
    0 2px 0 0 rgba(255, 255, 255, 0.7) inset;
  color: #333;
  display: inline-block;
  font-size: 0.85em;
  font-weight: 700;
  line-height: 1;
  padding: 2px 4px;
  white-space: nowrap;
}

/* ALERTS */

div.tip {
  border-left: 4px solid rgb(48, 148, 48);
  padding-left: 10px;
}

div.tip > div.title p {
  color: rgb(48, 148, 48);
  font-weight: bold;
}

div.tip > div.title p::before {
  content: '💡';
  margin-right: 4px;
}

div.important {
  border-left: 4px solid rgb(115, 32, 136);
  padding-left: 10px;
}

div.important > div.title p {
  color: rgb(115, 32, 136);
  font-weight: bold;
}

div.important > div.title p::before {
  content: '❗';
  margin-right: 4px;
}

div.warning {
  border-left: 4px solid rgb(233, 170, 46);
  padding-left: 10px;
}

div.warning > div.title p {
  color: rgb(233, 170, 46);
  font-weight: bold;
}

div.warning > div.title p::before {
  content: '⚠️';
  margin-right: 4px;
}

div.caution {
  border-left: 4px solid rgb(233, 46, 83);
  padding-left: 10px;
}

div.caution > div.title p {
  color: rgb(233, 46, 83);
  font-weight: bold;
}

div.caution > div.title p::before {
  content: '🚩';
  margin-right: 4px;
}

div.note {
  border-left: 4px solid rgb(46, 93, 233);
  padding-left: 10px;
}

div.note > div.title p {
  color: rgb(46, 93, 233);
  font-weight: bold;
}

div.note > div.title p::before {
  content: 'ℹ️';
  margin-right: 4px;
}

.round-image {
    /* border-radius: 50%; /\* This makes the image round *\/ */
    object-fit: cover;  /* Ensures the image covers the entire area without distortion */
}

summary.flex-summary {
    display: flex;
    align-items: center; /* Align the arrow and heading vertically */
    cursor: pointer; /* Makes it clear that the area is clickable */
}

/* Styling for the custom arrow */
summary .arrow {
    margin-right: 10px; /* Add space between the arrow and heading */
    transition: transform 0.2s ease; /* Smooth rotation for expanding */
}

/* Remove default margins from the heading */
summary h1 {
    margin: 0;
    font-size: 2em;
}

/* Rotate arrow when <details> is open */
details[open] .arrow {
    transform: rotate(90deg); /* Rotate arrow to indicate expanded state */
}
