html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: sans-serif;
  color: #fff;
  position: relative;
  overflow-x: hidden;
}

/* Background image will be applied via JS only — this element no longer needed unless you're using <img class="background-image"> somewhere */
.background-image {
  display: none;
}

#background-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

header {
  padding: 2em;
  text-align: center;
  margin-top: 6em;
  margin-bottom: 8em;
}

.logo {
  position: absolute;
  left: 19px;
  top: 20px;
}

.logo img {
  width: 170px;
  height: auto;
}

.stacked-title {
  font-size: 3rem;
  display: inline-block;
  line-height: 1.2;
  text-align: center;
  white-space: pre-line;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.slogan {
  font-size: 1.2em;
  line-height: 1.5;
  margin-top: 1em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

main {
  flex: 1;
  overflow-y: visible;
  padding: 1em 0;
}

.authorship {
  text-align: right;
  font-size: 0.9em;
  color: #666;
  margin-top: 0.5em;
  margin-bottom: 1.5em;
  line-height: 1.4em;
}

.heading-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}

.heading-with-icon img {
  width: 100px;
  height: auto;
}

section {
  background-color: rgba(255, 255, 255, 0.96);
  color: #000;
  padding: 2em;
  max-width: 830px;
  margin: auto;
  border-radius: 8px;
  line-height: 1.6;
  box-shadow: inset 5px 5px 15px rgba(0, 0, 0, 0.5);
}

a {
  color: #333;
}

a:hover {
  text-decoration: underline;
}

.hanging-indent {
  padding-left: 1.5em;
  text-indent: -1.5em;
  margin-bottom: 1em;
}

footer {
  background-color: rgba(0, 0, 0, 0.5);
  text-align: center;
  padding: 1em;
  color: #fff;
}
footer a {
 	color: white;
 	text-decoration: none;
}

/* Mobile styles */
@media (max-width: 600px) {
  header {
    margin-top: 3em;
    margin-bottom: 4em;
  }

  .stacked-title {
    font-size: 2rem;
  }

  .logo img {
    width: 100px;
  }
}

/**** DIAGRAMS ****/
.diagram table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em auto;
  background-color: #fff;
  color: #000;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  overflow: hidden;
}

.diagram th {
  background-color: #f2f2f2;
  font-size: 1.3em;
  font-weight: 600;
  text-align: center;
  padding: 1em;
  border-bottom: 1px solid #ccc;
}

.diagram td {
  padding: 1em;
  text-align: center;
  font-size: 1em;
  border-right: 1px solid #eee;
}

.diagram td:last-child {
  border-right: none;
}

.diagram td::after {
  font-weight: normal;
}

@media (max-width: 600px) {
  .diagram table {
    font-size: 0.95em;
  }
}

/**** Cycle table****/
.cycle-table {
  width: 100%;
  max-width: 800px;
  margin: 2em auto;
  border-collapse: collapse;
  font-family: sans-serif;
  background-color: #fff;
  color: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.cycle-table th {
  background-color: #f2f2f2;
  text-align: center;
  padding: 1em;
  font-size: 1.3em;
  font-weight: 600;
  border-bottom: 1px solid #ccc;
}

.cycle-table td {
  width: 50%;
  vertical-align: top;
  padding: 1em;
  font-size: 1em;
  text-align: center;
  border-right: 1px solid #eee;
}

.misattunement-title {
  color: #b00020; /* deep red */
}

.repair-title {
  color: #007e33; /* green */
}

.cycle-table td:last-child {
  border-right: none;
}

.cycle-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.cycle-step span {
  background-color: #f9f9f9;
  padding: 0.5em 1em;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  width: fit-content;
}

.arrow {
  font-size: 1.2em;
  color: #999;
}
/*
.cycle-step span,
.diagram td,
.diagram th {
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}
*/
/* Responsive adjustments */
@media (max-width: 600px) { /**old: 700**/
  .cycle-table td {
    display: block;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .cycle-table td:last-child {
    border-bottom: none;
  }

  .cycle-table tr {
    display: block;
  }
}
.table-note { /**** not used ***/
  max-width: 800px;
  margin: 0.5em auto 2em;
  text-align: center;
  font-size: 0.95em;
  color: #555;
  font-style: italic;
}


.description {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  text-align: center;       
  max-width: 80%;         
  display: block;
}










