/* UOSI-specific stylesheet */

/* Paragraph Text */
.uosi-index,
.uosi-story {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  color: #222;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.4;
}

/* UOSI Page Header */
.uosi-header,
.story-header {
  max-width: 680px;
  margin: 0.5rem auto 1.5rem;
  text-align: left;
  color: #777;
}

/* Date Text */
.uosi-index .post-date,
.uosi-story .post-date {
  margin: 0.1rem 0 0.2rem;
  color: #777;
  font-size: 0.90rem;
}

/* UOSI Story List Header */
.uosi-header .uosi-title {
  margin: 0 0 0.15rem;
  color: #555;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: bold;
}

/* UOSI Story Index Subtitle */
.uosi-header .uosi-subtitle {
  margin: 0;
  color: #777;
  font-size: 1.1rem;
  line-height: 1.35;
}

.uosi-story h1 {
  margin: 0.25rem 0 0.75rem;
  color: #555;
  font-size: 1.9rem;
  line-height: 1.15;
}

.uosi-story h2,
.uosi-index h2 {
  max-width: 680px;
  margin: 2rem auto 0.75rem;
  text-align: left;
  font-size: 1.3rem;
  line-height: 1.25;
}

.uosi-story > article > p,
.uosi-index > p,
.letter-block {
  max-width: 680px;
  margin: 0.75rem auto;
  text-align: left;
  font-size: 1.05rem;
}

.letter-address {
  white-space: pre-line;
}

.uosi-story figure {
  max-width: 800px;
  margin: 1.5rem auto;
  text-align: center;
}

.uosi-story img,
.uosi-story video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.uosi-story figcaption {
  max-width: 680px;
  margin: 0.35rem auto 0;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.35;
}

.uosi-story .video-frame {
  max-width: 800px;
}

.story-list {
  max-width: 680px;
  margin: 1rem auto 2rem;
  padding: 0;
  list-style: none;
  text-align: left;
}

.story-list li {
  margin: 0 0 1.3rem;
  padding: 0 0 0.8rem;
  border-bottom: 1px solid #aaa;
}

.story-list a {
  font-size: 1.15rem;
  font-weight: bold;
  text-decoration: none;
  line-height: 1.2;
}

.story-list a:link {
  color: #444;
}

.story-list a:visited {
  color: #666;
}

.story-list a:hover {
  color: #222;
  text-decoration: underline;
}

.story-list a:active {
  color: #111;
}

.story-list p {
  margin: 0.15rem 0 0;
  line-height: 1.4;
}

/* ------------------- */

.story-footer {
  max-width: 680px;
  margin: 1.50rem auto 2.0rem;
  padding-top: 1.50rem;
  border-top: 1px solid #ccc;
}

.story-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 360px;
  margin: 0 auto;
}

.story-nav a,
.story-nav-empty {
  min-width: 80px;
}


/* Prev | Back to UOSI | Next */
.story-nav a {
  color: #777;
  text-decoration: none;
  font-size: 1.0rem;
}

.story-nav a:visited {
  color: #777;
}

.story-nav a:hover {
  color: #27f;
  text-decoration: none;
}

.story-nav a:first-child,
.story-nav-empty:first-child {
  text-align: left;
}

.story-nav a:nth-child(2),
.story-nav-empty:nth-child(2) {
  text-align: center;
}

.story-nav a:last-child,
.story-nav-empty:last-child {
  text-align: right;
}

.story-nav-empty {
  display: block;
  visibility: hidden;
}

/* ------------------- */

li[id] {
  scroll-margin-top: 100px;
}
