/* Story content wrapper */
.story-body {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.85;
  color: #222;
}

.story-body h1,
.story-body h2,
.story-body h3 {
  margin: 1.8rem 0 .6rem;
  font-weight: normal;
}

.story-body h1 {
  font-size: 1.5rem;
}

.story-body h2 {
  font-size: 1.25rem;
}

.story-body h3 {
  font-size: 1.1rem;
}

.story-body p {
  margin-bottom: 1rem;
}

.story-body ul,
.story-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.story-body blockquote {
  border-left: 3px solid #ccc;
  padding-left: 1rem;
  color: #666;
  margin: 1rem 0;
}

.story-body code {
  background: #f0f0ec;
  padding: .15em .35em;
  border-radius: 3px;
  font-size: .88em;
  font-family: monospace;
}

.story-body pre {
  background: #f0f0ec;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.story-body pre code {
  background: none;
  padding: 0;
  font-size: .87em;
}

.story-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
  border-radius: 2px;
}

/* Scroll-triggered audio zones embedded in story content */
.story-body audio-zone {
  display: block;
  padding: 14px 18px;
  background: #f5f0e8;
  border-left: 4px solid #4a90e2;
  border-radius: 3px;
  margin: 1.25rem 0;
  font-size: 0.875rem;
  color: #666;
  transition: border-left-color 0.4s ease;
}

/* Header image */
.header_text {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #888;
}

.header_img_div {
  margin-bottom: 20px;
}

.header_img {
  width: 100%;
}

.header_img_visible_toggle {
  text-decoration: none;
  color: #888;
  font-size: 0.8rem;
}

/* Layout & app chrome */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  min-height: 100vh;
  background: #faf8e0;
}

.col-side {
  flex: 1;
  background-color: #103050;
}

#main {
  font-family: Georgia, 'Times New Roman', serif;
  width: min(500px, 100%);
  flex-shrink: 0;
  padding: 2.5rem 1.25rem;
  color: #888;
  line-height: 1.75;
}

h1 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  font-weight: normal;
  letter-spacing: .02em;
}

label {
  display: block;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: #555;
}

input[type=password] {
  width: 100%;
  max-width: 320px;
  padding: .55rem .75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}

input[type=password]:focus {
  outline: 2px solid #3a6fa8;
  border-color: #3a6fa8;
}

button {
  display: inline-block;
  padding: .55rem 1.4rem;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: .75rem;
}

button:hover {
  background: #555;
}

#error {
  color: #c00;
  margin-top: .5rem;
  font-size: .9rem;
  min-height: 1.2em;
}

ul {
  list-style: none;
}

ul li {
  margin: .45rem 0;
}

ul li a {
  color: #3a6fa8;
  text-decoration: none;
  font-size: 1.05rem;
}

ul li a:hover {
  text-decoration: underline;
}

#btn-back {
  background: none;
  color: #555;
  padding: 0;
  font-size: .9rem;
  margin-bottom: 1.25rem;
  border: none;
  border-bottom: 1px solid #ddd;
  padding-bottom: .6rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

#btn-back:hover {
  color: #222;
}

.hidden {
  display: none !important;
}

#spinner {
  color: #999;
  font-size: .9rem;
  font-family: sans-serif;
}