/* Atlas Gate Publishing: site stylesheet. Plain CSS, no external assets. */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #ffffff;
  color: #1a1a1a;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.6;
}

a { color: #16324f; }
a:hover { color: #0d2136; }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Masthead */

.masthead {
  border-bottom: 4px double #16324f;
  padding: 28px 0 18px 0;
  text-align: center;
}

.masthead .nameplate {
  font-size: 44px;
  line-height: 1.1;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: #16324f;
  margin: 0;
}

.masthead .nameplate a {
  color: #16324f;
  text-decoration: none;
}

.masthead .tagline {
  font-style: italic;
  color: #444444;
  margin: 8px 0 0 0;
  font-size: 17px;
}

.masthead .dateline {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #666666;
  margin: 10px 0 0 0;
}

/* Navigation */

.nav {
  border-bottom: 1px solid #16324f;
  padding: 10px 0;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav a {
  color: #16324f;
  text-decoration: none;
  margin: 0 14px;
  white-space: nowrap;
}

.nav a:hover { text-decoration: underline; }

/* Headings and articles */

h1.headline {
  font-size: 34px;
  line-height: 1.2;
  color: #111111;
  margin: 28px 0 10px 0;
}

h2.section {
  font-size: 22px;
  color: #16324f;
  border-bottom: 1px solid #cccccc;
  padding-bottom: 6px;
  margin: 36px 0 14px 0;
}

h3.storytitle {
  font-size: 21px;
  line-height: 1.3;
  margin: 0 0 4px 0;
}

h3.storytitle a { text-decoration: none; }
h3.storytitle a:hover { text-decoration: underline; }

.byline {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #666666;
  margin: 0 0 18px 0;
}

article p { margin: 0 0 16px 0; }

.dek {
  font-size: 20px;
  line-height: 1.5;
  color: #333333;
}

/* Featured story */

.featured {
  border: 1px solid #16324f;
  padding: 22px 24px;
  margin: 30px 0;
  background: #f7f9fb;
}

.featured .kicker {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #16324f;
  margin: 0 0 10px 0;
}

.featured h2 {
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 10px 0;
}

.featured h2 a { text-decoration: none; color: #111111; }
.featured h2 a:hover { text-decoration: underline; }

/* Story list */

.storylist { list-style: none; margin: 0; padding: 0; }
.storylist li {
  border-bottom: 1px solid #e2e2e2;
  padding: 16px 0;
}

.storylist .date {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #666666;
  margin: 0 0 4px 0;
}

.storylist .summary { margin: 4px 0 0 0; color: #333333; }

.readmore {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* Article furniture */

.kicker {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #16324f;
  margin: 26px 0 6px 0;
}

article .kicker { margin-top: 26px; }

blockquote {
  margin: 0 0 16px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid #16324f;
  color: #333333;
  font-style: italic;
}

.records-note {
  border: 1px solid #c9d4e0;
  background: #f7f9fb;
  padding: 14px 18px;
  margin: 26px 0;
}

/* Commentary tint: a warm gray wash behind the whole article so a
   commentary page reads as visibly separate from the news pages.
   Text colors stay the site defaults, which keep full contrast on
   the tint. Put class="tint-commentary" on the article element. */

article.tint-commentary {
  background: #f7f7f5;
  padding: 18px 22px 22px 22px;
  margin: 18px 0 0 0;
}

.records-note p { margin: 0; font-size: 16px; }

/* Home page layout with Latest rail */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 34px;
  align-items: start;
}

.rail {
  border-left: 1px solid #cccccc;
  padding-left: 22px;
  margin-top: 30px;
}

.rail h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #16324f;
  border-bottom: 2px solid #16324f;
  padding-bottom: 6px;
  margin: 0 0 12px 0;
}

.rail ul { list-style: none; margin: 0 0 28px 0; padding: 0; }

.rail li { border-bottom: 1px solid #e2e2e2; padding: 9px 0; }

.rail .rdate {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #666666;
  display: block;
}

.rail a.headline-link {
  font-size: 16px;
  line-height: 1.35;
  text-decoration: none;
  color: #111111;
  display: block;
}

.rail a.headline-link:hover { text-decoration: underline; }

.rail .railbox {
  background: #f7f9fb;
  border: 1px solid #c9d4e0;
  padding: 14px 16px;
  margin-bottom: 28px;
  font-size: 15px;
}

.rail .railbox p { margin: 0 0 8px 0; }
.rail .railbox p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .rail { border-left: none; padding-left: 0; border-top: 2px solid #16324f; padding-top: 18px; }
}

/* Footer */

.footer {
  border-top: 4px double #16324f;
  margin-top: 48px;
  padding: 20px 0 36px 0;
  text-align: center;
  color: #444444;
  font-size: 15px;
}

.footer .fname {
  font-weight: bold;
  color: #16324f;
  font-size: 17px;
}

.footer p { margin: 6px 0; }

/* Small screens */

@media (max-width: 640px) {
  body { font-size: 17px; }
  .masthead .nameplate { font-size: 32px; }
  h1.headline { font-size: 27px; }
  .featured h2 { font-size: 24px; }
  .nav a { margin: 0 8px; }
  .featured { padding: 16px; }
}

/* Logo */

.masthead .logowrap { margin: 0 0 10px 0; }

.masthead .logo {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border: 1px solid #16324f;
}

/* Expanded edition furniture */

.edition-note {
  border: 1px solid #16324f;
  background: #f7f9fb;
  padding: 12px 18px;
  margin: 0 0 24px 0;
}

.edition-note p { margin: 0; font-size: 16px; }

.original-post {
  border-top: 2px solid #16324f;
  margin-top: 10px;
  padding-top: 6px;
}

.records-list { margin: 0 0 16px 0; padding-left: 22px; }

.records-list li { margin-bottom: 10px; }

.exhibit { margin: 20px 0; }
.exhibit img { max-width: 100%; height: auto; border: 1px solid #ccc; }
.exhibit figcaption { font-size: 0.92em; color: #444; margin-top: 8px; }

/* Listen to this story */
.listenbar { margin: 0 0 18px 0; }
.listenbar button {
  font: inherit;
  font-size: 16px;
  padding: 9px 18px;
  margin-right: 8px;
  border: 1px solid #16324f;
  border-radius: 4px;
  background: #16324f;
  color: #ffffff;
  cursor: pointer;
}
.listenbar button.listen-stop { background: #ffffff; color: #16324f; }
.listenbar .listen-speed { font-size: 16px; color: #16324f; }
.listenbar select {
  font: inherit;
  font-size: 16px;
  padding: 7px 6px;
  border: 1px solid #16324f;
  border-radius: 4px;
  background: #ffffff;
  color: #16324f;
}
.listen-time {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #666666;
  margin-left: 8px;
  white-space: nowrap;
}
.shortbox, .askedbox { background: #f7f9fb; border: 1px solid #d8e0e8; border-left: 4px solid #16324f; padding: 14px 18px; margin: 0 0 22px 0; }
.shortbox h2, .askedbox h2 { margin: 0 0 8px 0; font-size: 20px; color: #16324f; }
.shortbox p, .askedbox p { margin: 0 0 8px 0; }
.askedbox { margin: 22px 0; }

/* Timeline (Monroe case story) */

.timeline {
  background: #f7f9fb;
  border: 1px solid #d8e0e8;
  border-left: 4px solid #16324f;
  padding: 14px 18px;
  margin: 26px 0;
}

.timeline h2 {
  margin: 0 0 6px 0;
  font-size: 20px;
  line-height: 1.3;
  color: #16324f;
}

.timeline ul { list-style: none; margin: 0; padding: 0; }

.timeline li {
  padding: 9px 0;
  border-bottom: 1px solid #e2e2e2;
}

.timeline li:last-child { border-bottom: none; padding-bottom: 0; }

.timeline li strong { color: #16324f; }

/* Entry heads inside articles (The Wall page) */

article h3:not(.storytitle) {
  font-size: 19px;
  line-height: 1.35;
  color: #16324f;
  border-bottom: 1px solid #e2e2e2;
  padding-bottom: 4px;
  margin: 26px 0 8px 0;
}

/* Statute text (The Law page) */

.statute {
  border: 1px solid #c9d4e0;
  border-left: 4px solid #16324f;
  background: #f7f9fb;
  padding: 14px 18px;
  margin: 0 0 16px 0;
  color: #1a1a1a;
  font-style: normal;
  font-size: 17px;
}

.statute p { margin: 0 0 10px 0; }
.statute p:last-child { margin-bottom: 0; }

/* Reading measure for story pages. Story articles are the ones carrying the
   listen bar, so the cap lands on story text only and leaves the home grid,
   the tracker, the records pages and the other article pages at the full
   880px wrap. A page can also opt in directly with class="measure" on its
   article element. Browsers without :has support simply keep the old width. */

article.measure > *,
article:has(.listenbar) > * {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Keyboard focus and visited records links */

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 3px solid #16324f;
  outline-offset: 2px;
}

.records-list a:visited { color: #5f5599; }

/* Print: story text only, black on white, no page furniture */

@media print {
  body { background: #ffffff; color: #000000; font-size: 12pt; }

  .masthead, .nav, .listenbar, .rail, .footer, .weatherwidget-io {
    display: none !important;
  }

  .wrap { max-width: none; padding: 0; }

  article.measure > *,
  article:has(.listenbar) > * { max-width: none; }

  a { color: #000000; text-decoration: underline; }

  article a[href^="assets/"]::after,
  article a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }

  .shortbox, .askedbox, .records-note, .edition-note,
  .timeline, .statute, .featured {
    background: #ffffff;
    break-inside: avoid;
  }

  blockquote { color: #000000; }

  img { max-width: 100%; }
}
