/* ============================================================
   CONTENT-PAGES.CSS
   Shared styles for CrunchyPDF article + legal pages.
   Load AFTER styles.css. Reuses ChicagoFLF, platinum window
   chrome, and the black section-header motif from the homepage.
   ============================================================ */

/* ---- Site nav bar shown on every content page ---- */
#content-nav {
  background: #d4d0c8;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #808080;
  box-shadow: inset 1px 1px 0 #ffffff;
  padding: 7px 0;
}
#content-nav .content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px 18px;
  flex-wrap: wrap;
}
#content-nav a {
  color: #00008b;
  text-decoration: none;
  font-size: 12px;
  padding: 3px 9px;
  white-space: nowrap;
  border: 1px solid transparent;
}
#content-nav a:hover {
  background: #b8d4f8;
  border-color: #808080;
  box-shadow: inset 1px 1px 0 #e0e0e0, inset -1px -1px 0 #606060;
  text-decoration: underline;
}
#content-nav a.nav-current {
  font-weight: bold;
  color: #111;
  text-decoration: underline;
}

/* ---- Generic page window wrapper ---- */
.page-window { margin: 26px auto; }

.page-window .content {
  padding: 0;
}

/* The black header strip reused from the homepage motif */
.doc-header {
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #111;
  color: #fff;
  padding: 10px 18px;
  border-bottom: 2px solid #111;
}

/* Inner reading column */
.doc-body {
  background: #f4f2ec;
  padding: 26px 30px 32px 30px;
  font-size: 13px;
  line-height: 1.75;
  color: #1a1a1a;
}

@media (max-width: 600px) {
  .doc-body { padding: 20px 18px 24px 18px; font-size: 12.5px; }
}

.doc-body h1 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 6px 0;
  color: #111;
  letter-spacing: -0.5px;
}
.doc-body h2 {
  font-size: 16px;
  margin: 28px 0 8px 0;
  padding-bottom: 5px;
  border-bottom: 2px solid #c0bcb2;
  color: #111;
  letter-spacing: 0.01em;
}
.doc-body h3 {
  font-size: 13.5px;
  margin: 20px 0 5px 0;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.doc-body p { margin: 0 0 14px 0; }
.doc-body ul, .doc-body ol { margin: 0 0 16px 0; padding-left: 24px; }
.doc-body li { margin-bottom: 7px; }
.doc-body a { color: #00008b; text-decoration: underline; }
.doc-body a:hover { color: #0000cc; }
.doc-body strong { font-weight: 800; color: #000; }
.doc-body code {
  background: #e2ded4;
  border: 1px solid #c0bcb2;
  padding: 1px 5px;
  font-family: 'ChicagoFLF', "Geneva", monospace;
  font-size: 12px;
}

/* Byline / meta under the article title */
.doc-meta {
  font-size: 11px;
  color: #666;
  font-style: italic;
  margin: 0 0 20px 0;
  padding-bottom: 14px;
  border-bottom: 1px dashed #b0aca2;
}

/* Lead/intro paragraph */
.doc-lead {
  font-size: 14px;
  line-height: 1.7;
  color: #222;
  background: #fffef5;
  border-left: 4px solid #c42b2c;
  padding: 12px 16px;
  margin: 0 0 22px 0;
}

/* Callout / note box */
.doc-note {
  background: #ffffd8;
  border: 2px solid #111;
  box-shadow: 4px 4px 0 #ccc;
  padding: 12px 16px;
  margin: 20px 0;
  font-size: 12.5px;
}
.doc-note strong { display: block; margin-bottom: 4px; }

/* Key-takeaways box */
.doc-keytakeaways {
  background: #eef6ff;
  border: 1px solid #8aaed4;
  box-shadow: inset 1px 1px 0 #fff;
  padding: 14px 18px;
  margin: 22px 0;
}
.doc-keytakeaways h3 { margin-top: 0; }

/* In-article comparison table */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px 0;
  font-size: 12px;
}
.doc-table th, .doc-table td {
  border: 1px solid #b0aca2;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.doc-table th {
  background: #111;
  color: #fff;
  font-weight: bold;
}
.doc-table tr:nth-child(even) td { background: #ece9e1; }

/* "Try the tool" call-to-action inside articles */
.doc-cta {
  text-align: center;
  background: #ffffa5;
  border: 2px solid #111;
  box-shadow: 4px 4px 0 #333;
  padding: 14px 18px;
  margin: 26px 0 10px 0;
}
.doc-cta a {
  font-weight: bold;
  color: #00008b;
}

/* Related-articles list at the foot of each article */
.doc-related {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 2px solid #c0bcb2;
}
.doc-related h3 { margin-top: 0; }
.doc-related ul { list-style: square; }

/* ---- Blog index cards ---- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.article-card {
  background: #fff;
  border: 1px solid #000;
  box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #808080, 4px 4px 0 rgba(0,0,0,0.15);
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.12s ease;
}
.article-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 rgba(0,0,0,0.18); }
.article-card .card-tag {
  background: #111;
  color: #fff;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 10px;
}
.article-card .card-body { padding: 12px 14px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.article-card h3 { margin: 0 0 6px 0; font-size: 13.5px; line-height: 1.3; }
.article-card h3 a { color: #00008b; text-decoration: none; }
.article-card h3 a:hover { text-decoration: underline; }
.article-card p { margin: 0 0 12px 0; font-size: 11.5px; line-height: 1.6; color: #333; flex: 1; }
.article-card .card-readmore {
  font-size: 11px;
  font-weight: bold;
  color: #00008b;
  text-decoration: none;
  align-self: flex-start;
}
.article-card .card-readmore:hover { text-decoration: underline; }

/* ---- Definition list for legal pages ---- */
.legal-toc {
  background: #e8e5dd;
  border: 1px solid #b0aca2;
  padding: 12px 16px 12px 32px;
  margin: 0 0 24px 0;
  font-size: 12px;
}
.legal-toc li { margin-bottom: 4px; }
.legal-toc a { color: #00008b; }

.legal-updated {
  font-size: 11px;
  color: #555;
  margin-bottom: 18px;
}
