/* Contrarian-Investor.com - restored Kubrick-era weblog shell */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #f0f5fb;
  color: #1a1a1a;
  font: 16px/1.62 Verdana, "Lucida Grande", Arial, sans-serif;
}
a { color: #1d487e; }
a:hover { color: #020167; }
:focus-visible { outline: 2px solid #020167; outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #ffffff; color: #020167; padding: 8px 12px; z-index: 5;
}
.skip-link:focus { left: 8px; top: 8px; }

.page-shell {
  width: 900px; max-width: 100%;
  margin: 24px auto 32px;
  background: #ffffff;
  border: 1px solid #c9d6e6;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

/* masthead cap */
.masthead-cap {
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background: #020167;
}
.masthead-plate { display: block; }
.masthead-plate img { display: block; width: 100%; height: auto; }

/* page tabs */
.page-tabs { border-bottom: 1px solid #c9d6e6; padding: 0 16px; }
.page-tabs ul { list-style: none; margin: 0; padding: 8px 0; display: flex; flex-wrap: wrap; }
.page-tabs li { margin: 0; }
.page-tabs a {
  display: inline-block; padding: 5px 10px;
  font-size: 12.5px; text-decoration: none; color: #1d487e;
}
.page-tabs a:hover { text-decoration: underline; }
.page-tabs .is-current a { color: #020167; font-weight: 700; }

/* body grid */
.page-body {
  display: grid;
  grid-template-columns: 1fr 232px;
  gap: 28px;
  padding: 22px 22px 8px;
  align-items: start;
}
.column-main { min-width: 0; }

h1 {
  margin: 0 0 14px;
  font: 400 26px/1.25 Georgia, "Times New Roman", serif;
  color: #1a1a1a;
}
h2 { font: 400 22px/1.3 Georgia, "Times New Roman", serif; margin: 0 0 8px; }
h3 { font: 400 18px/1.35 Georgia, "Times New Roman", serif; margin: 22px 0 6px; }
p { margin: 0 0 14px; max-width: 66ch; }
.detail-body ul, .detail-body ol { max-width: 66ch; }

/* welcome entry */
.welcome-entry { padding-bottom: 6px; }
.fishbowl-plate {
  float: right; width: 172px; height: 150px;
  margin: 0 0 12px 18px; border: 1px solid #020167; background: #fff;
}

/* entries */
.entry { padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid #c9d6e6; }
.entry-lead { border-top: 1px solid #c9d6e6; padding-top: 18px; }
.entry-title { margin: 0 0 4px; }
.entry-title a { text-decoration: none; }
.entry-title a:hover { text-decoration: underline; }
.entry-date, .entry-byline, .entry-topics {
  margin: 0; font-size: 12px; line-height: 1.5; color: #4a4a4a;
}
.entry-topics { margin-bottom: 10px; }
.topics-label {
  font-variant: small-caps; letter-spacing: .06em; color: #020167; font-weight: 700;
}
.entry-permalink { margin: 4px 0 0; font-size: 12px; }
.permalink-route { color: #4a4a4a; }
.stream-head {
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  font-family: Verdana, Arial, sans-serif; color: #4a4a4a;
  border-bottom: 1px solid #c9d6e6; padding-bottom: 6px; margin: 26px 0 16px;
}
.stream-more { font-size: 13px; }

/* table of contents */
.shell-foot { padding: 0 22px; }
.toc { margin-top: 4px; border-top: 1px solid #c9d6e6; padding-top: 18px; }
.toc-intro { font-size: 13px; color: #4a4a4a; }
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { border-bottom: 1px solid #e3ebf5; padding: 9px 0; max-width: 66ch; }
.toc-list a { font-weight: 700; }
.toc-desc { display: block; font-size: 13px; color: #444; margin-top: 3px; }

/* rail */
.rail { min-width: 0; }
.widget { margin: 0 0 22px; }
.widget h3 {
  margin: 0 0 8px; padding-bottom: 5px;
  border-bottom: 1px solid #c9d6e6;
  font: 700 11.5px/1.4 Verdana, Arial, sans-serif;
  font-variant: small-caps; letter-spacing: .1em; text-transform: lowercase;
  color: #020167;
}
.widget-list { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.widget-list li { padding: 3px 0; border-bottom: 1px dotted #e3ebf5; }
.topic-list li { display: flex; justify-content: space-between; gap: 8px; }
.topic-count { color: #4a4a4a; }
.ladder-month { margin: 12px 0 4px; font-size: 12.5px; font-weight: 700; }
.ladder-count { color: #4a4a4a; font-weight: 400; }
.ladder-list { list-style: none; margin: 0 0 8px; padding: 0; font-size: 12.5px; }
.ladder-list li { padding: 3px 0; }
.ladder-day { color: #4a4a4a; }

/* detail pages */
.detail-lede { font-size: 15px; color: #333; }
.detail-body { max-width: 66ch; }
.detail-body table { border-collapse: collapse; width: 100%; font-size: 14px; }
.detail-body td, .detail-body th {
  border: 1px solid #c9d6e6; padding: 6px 8px; text-align: left; vertical-align: top;
}
.page-plate { border: 1px solid #c9d6e6; margin: 0 0 12px; }
.index-stream, .ladder-page { max-width: 66ch; }
.ladder-page h2 { margin-top: 22px; border-bottom: 1px solid #c9d6e6; padding-bottom: 5px; }
.ladder-page-list li { padding: 5px 0; border-bottom: 1px dotted #e3ebf5; }
.prevnext {
  display: flex; flex-wrap: wrap; gap: 6px 24px;
  border-top: 1px solid #c9d6e6; padding-top: 12px; margin-top: 18px; font-size: 13px;
}
.return-line { margin: 16px 0 0; font-size: 13px; }
.contact-list { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.contact-list li { padding: 6px 0; border-bottom: 1px dotted #e3ebf5; }

/* footer */
.site-footer {
  border-top: 1px solid #c9d6e6; margin: 8px 22px 0; padding: 14px 0 18px;
  font-size: 12px; color: #4a4a4a;
}
.footer-links { margin: 0 0 5px; }
.footer-copy { margin: 0; }

@media (max-width: 900px) {
  .page-shell { width: auto; margin: 16px; }
  .page-body { grid-template-columns: 1fr; gap: 8px; }
  .rail { border-top: 1px solid #c9d6e6; padding-top: 16px; }
}
@media (max-width: 700px) {
  .page-shell { margin: 0; border-left: 0; border-right: 0; border-radius: 0; }
  .masthead-cap { border-radius: 0; }
  .page-tabs { padding: 0 10px; }
  .page-tabs a { padding: 9px 8px; font-size: 13.5px; line-height: 1.5; }
  .page-body { padding: 18px 16px 4px; }
  .shell-foot { padding: 0 16px; }
  .site-footer { margin: 8px 16px 0; }
  .fishbowl-plate { float: none; display: block; width: 172px; margin: 0 0 14px; }
  .ladder-list li, .ladder-page-list li { padding: 10px 0; }
  p, .detail-body, .index-stream, .ladder-page, .toc-list li { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
