/* Article typography and content styles.
   Shared by the priority-article templates and the blog app (migrated
   WordPress posts/pages). The .article-page wrapper scopes everything.
   The second half covers markup shapes that exist in WordPress-era baked
   content: su_* shortcode output, Easy Footnotes, ez-toc, editorial
   notice boxes, and static .cc-table content tables. */

.article-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 18px 24px;
  color: #333;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
}

.article-page h1,
.article-page h2,
.article-page h3,
.article-page h4,
.article-page h5 {
  color: #222;
  font-family: "Roboto Slab", Georgia, serif;
  line-height: 1.25;
}

.article-page h1 {
  margin: 0 0 24px;
  font-size: 2rem;
}

.article-page h2 {
  margin-top: 34px;
  font-size: 1.55rem;
}

.article-page h3 {
  margin-top: 28px;
  font-size: 1.3rem;
}

.article-page h4 {
  margin-top: 24px;
  font-size: 1.12rem;
}

.article-page h5 {
  margin-top: 20px;
  font-size: 1rem;
  font-weight: 700;
}

.article-page p,
.article-page ul,
.article-page ol {
  margin-bottom: 1rem;
}

.article-page li {
  margin-bottom: 0.25rem;
}

.article-page a {
  overflow-wrap: break-word;
  text-decoration: underline;
}

.article-page img {
  max-width: 100%;
  height: auto;
}

.article-page .aligncenter {
  display: block;
  margin: 18px auto;
}

.article-page .alignleft {
  float: left;
  margin: 6px 18px 12px 0;
}

.article-page .alignright {
  float: right;
  margin: 6px 0 12px 18px;
}

.article-page table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
}

.article-page th,
.article-page td {
  padding: 8px 10px;
  border: 1px solid #ddd;
  vertical-align: top;
}

.article-page th {
  background: #f4f7f7;
}

.article-page hr {
  margin: 28px 0;
}

.article-page center {
  display: block;
  text-align: center;
}

.article-page sup {
  font-size: 80%;
}

.article-page blockquote {
  margin: 0 0 24px;
  padding: 12px 18px;
  border-left: 4px solid #ccd6dd;
  color: #444;
}

/* empty paragraphs from wpautop shouldn't add ghost space */
.article-page p:empty::before {
  content: none;
}

/* ---- quotes and callouts ---- */

.article-page .quote-attribution {
  margin: 22px 0 6px;
  color: #555;
  font-size: 0.92rem;
  font-weight: 700;
}

.article-page .su-quote {
  margin: 0 0 24px;
  padding: 15px 18px;
  border-left: 4px solid #007ad8;
  background: #f6fafc;
  color: #30363a;
}

.article-page .su-quote-inner {
  margin: 0;
}

.article-page .su-quote-cite {
  display: block;
  margin-top: 8px;
  color: #556;
  font-size: 0.9rem;
  font-style: normal;
}

.article-page .su-note {
  margin: 0 0 24px;
  border-radius: 4px;
}

.article-page .su-note-inner {
  padding: 12px 16px;
  border-radius: 4px;
}

/* su_row/su_column: stack naturally; just clear the floats the markup uses */
.article-page .su-row {
  margin-bottom: 0 !important;
}

.article-page .su-u-clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* su_slider / su_spoiler appear on one page each: render slides stacked and
   spoilers open rather than shipping the plugin's JS */
.article-page .su-slider-slide {
  margin-bottom: 14px;
}

.article-page .su-spoiler-content {
  display: block;
}

.article-page .priority-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  padding: 14px 18px;
  background: #f6fafc;
  border: 1px solid #cfe4f2;
  border-left: 4px solid #007ad8;
  border-radius: 8px;
}

.article-page .priority-callout svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: #007ad8;
}

.article-page .priority-callout p {
  margin: 0;
}

/* ---- Easy Footnotes markup ---- */

.article-page .easy-footnote {
  font-size: 0.82em;
  vertical-align: super;
}

.article-page .easy-footnote a,
.article-page .easy-footnote-to-top {
  text-decoration: none;
}

.article-page .easy-footnotes-wrapper {
  margin-top: 32px;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
  padding-top: 16px;
}

/* ---- ez-toc (two pages carry baked TOC markup) ---- */

.article-page #ez-toc-container {
  display: table;
  margin: 0 0 24px;
  padding: 12px 18px;
  background: #f8f9fa;
  border: 1px solid #dfe3e8;
  border-radius: 4px;
  font-size: 0.95rem;
}

.article-page .ez-toc-title {
  font-weight: 700;
}

.article-page .ez-toc-list {
  margin: 6px 0 0;
  padding-left: 18px;
  list-style: none;
}

.article-page .ez-toc-list ul {
  padding-left: 18px;
  list-style: none;
}

.article-page .ez-toc-list a {
  text-decoration: none;
}

.article-page .ez-toc-list a:hover {
  text-decoration: underline;
}

/* checkbox-toggle markup from the plugin shouldn't render its controls
   (the collapse behavior needed the plugin's JS; the list renders open) */
.article-page #ez-toc-container input[type="checkbox"],
.article-page #ez-toc-container label,
.article-page .ez-toc-cssicon-toggle-label {
  display: none;
}

/* ---- Twitter embeds: readable fallback before/without widgets.js ---- */

.article-page blockquote.twitter-tweet {
  max-width: 500px;
  padding: 14px 18px;
  border: 1px solid #dfe3e8;
  border-left: 4px solid #1d9bf0;
  border-radius: 4px;
  background: #f8fafc;
}

/* ---- editorial notice boxes (ported from WP customizer CSS) ---- */

.article-page .cc-archive-notice,
.article-page .cc-update-note {
  border-radius: 4px;
  padding: 14px 18px;
  margin: 0 0 30px;
  font-size: 15px;
  line-height: 1.6;
}

.article-page .cc-archive-notice {
  background: #f8f6f1;
  border: 1px solid #e5e0d3;
  border-left: 4px solid #b8a05e;
  color: #6b6353;
}

.article-page .cc-update-note {
  background: #f4f7f9;
  border: 1px solid #dde5eb;
  border-left: 4px solid #90a4b5;
  color: #56626c;
}

.article-page .cc-notice-label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.article-page .cc-archive-notice .cc-notice-label {
  color: #9c8a54;
}

.article-page .cc-update-note .cc-notice-label {
  color: #7d92a3;
}

/* boxes sometimes hold multiple paragraphs/lists; keep padding balanced */
.article-page .cc-archive-notice > :last-child,
.article-page .cc-update-note > :last-child {
  margin-bottom: 0;
}

/* ---- static content tables (ported from WP customizer CSS) ----
   Some baked tables carry Bootstrap's .table class (the WP theme's filter
   baked it in), so cell selectors mirror Bootstrap's `.table > thead > tr
   > th` shape — equal specificity, and this stylesheet loads later, so we
   win. Don't simplify them back to `.cc-table th`.
   Borders are separate (not collapsed) so border-radius works: cells own
   their right/bottom edges only; the table owns the outer frame. */

.article-page .cc-table-wrap {
  overflow-x: auto;
  margin: 0 0 25px;
}

.article-page .cc-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 15px;
  line-height: 1.5;
  border: 1px solid #c9d9e8;
  border-radius: 8px;
}

.article-page .cc-table > thead > tr > th {
  background: #e9f1f8;
  color: #2f4a63;
  border: none;
  border-right: 1px solid #dbe6f1;
  border-bottom: 1px solid #c9d9e8;
  padding: 9px 14px;
  text-align: left;
}

.article-page .cc-table > tbody > tr > td,
.article-page .cc-table > tbody > tr > th {
  border: none;
  border-right: 1px solid #dbe6f1;
  border-bottom: 1px solid #dbe6f1;
  padding: 9px 14px;
  text-align: left;
}

.article-page .cc-table > thead > tr > th:last-child,
.article-page .cc-table > tbody > tr > td:last-child,
.article-page .cc-table > tbody > tr > th:last-child {
  border-right: none;
}

.article-page .cc-table > tbody > tr:last-child > td,
.article-page .cc-table > tbody > tr:last-child > th {
  border-bottom: none;
}

.article-page .cc-table > thead > tr > th:first-child {
  border-top-left-radius: 7px;
}

.article-page .cc-table > thead > tr > th:last-child {
  border-top-right-radius: 7px;
}

.article-page .cc-table > tbody > tr:last-child > td:first-child,
.article-page .cc-table > tbody > tr:last-child > th:first-child {
  border-bottom-left-radius: 7px;
}

.article-page .cc-table > tbody > tr:last-child > td:last-child,
.article-page .cc-table > tbody > tr:last-child > th:last-child {
  border-bottom-right-radius: 7px;
}

.article-page .cc-table > tbody > tr:nth-child(even) {
  background: #f3f8fc;
}

.article-page .cc-table > tbody > tr:hover > td,
.article-page .cc-table > tbody > tr:hover > th {
  background: #e9f1f8;
}

.article-page .cc-table .cc-center {
  text-align: center;
}

.article-page .cc-table .cc-right {
  text-align: right;
}

/* generic centered cells outside .cc-table (older hand-built tables) */
.article-page .cc-center {
  text-align: center;
}

/* ---- legacy content tables (.coverage / .net comparison tables) ---- */

.article-page .coverage td,
.article-page .coverage th,
.article-page .net td,
.article-page .net th {
  text-align: center;
  vertical-align: middle !important;
}

@media only screen and (max-width: 1200px) {
  .article-page .net td:nth-child(3),
  .article-page .net th:nth-child(3),
  .article-page .net td:nth-child(5),
  .article-page .net th:nth-child(5),
  .article-page .net td:nth-child(6),
  .article-page .net th:nth-child(6) {
    display: none;
  }
}

/* ---- desktop/mobile alternates used by a few old pages ---- */

.article-page .content-m {
  display: none;
}

@media screen and (max-width: 750px) {
  .article-page .content-d {
    display: none;
  }

  .article-page .content-m {
    display: block;
  }

  .article-page .mhide {
    display: none;
  }

  .article-page .mobile-break {
    display: initial;
  }
}

@media screen and (min-width: 750px) {
  .article-page .mobile-break {
    display: none;
  }
}

/* ---- featured image, meta line, and comments (blog app) ----
   The meta line mirrors the WordPress theme's entry-meta: solid dark
   icons, text in the site's #26a7d6 blue. Featured images reproduce the
   theme's 750x410 crop via aspect-ratio + object-fit. */

.article-page .article-featured-image {
  display: block;
  width: 100%;
  aspect-ratio: 750 / 410;
  object-fit: cover;
  margin: 0 0 22px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: center;
  margin: -12px 0 26px;
  font-size: 0.95rem;
  color: #26a7d6;
}

.article-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.article-meta svg {
  width: 14px;
  height: 14px;
  fill: #3a3f44;
  flex: 0 0 auto;
}

.article-page .article-comments {
  margin-top: 44px;
  border-top: 1px solid #ddd;
  padding-top: 20px;
}

.article-page .article-comments h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.article-page .comment-list,
.article-page .comment-replies {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-page .comment-replies {
  margin-left: 26px;
  border-left: 2px solid #eef1f4;
  padding-left: 16px;
}

.article-page .comment {
  margin-bottom: 20px;
}

.article-page .comment-meta {
  margin-bottom: 4px;
  font-size: 0.88rem;
  color: #667;
}

.article-page .comment-author {
  font-weight: 700;
  color: #333;
}

.article-page .comment-body p:last-child {
  margin-bottom: 0;
}

.article-page .comments-closed-note {
  margin-top: 8px;
  color: #778;
  font-size: 0.9rem;
  font-style: italic;
}

/* ---- blog index ---- */

.blog-index {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 18px 24px;
  font-family: "Open Sans", Arial, sans-serif;
}

.blog-index h1 {
  margin: 0 0 26px;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 2rem;
  color: #222;
}

.blog-index .post-card {
  margin-bottom: 30px;
}

/* separator: fades out toward the edges, darkest in the middle.
   Shallow ramp (barely-there until ~25%/75%) so the full darkness only
   shows near the center. */
.blog-index .post-card::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 26px;
  background: linear-gradient(to right,
    transparent,
    rgba(100, 115, 130, 0.07) 25%,
    rgba(100, 115, 130, 0.28) 50%,
    rgba(100, 115, 130, 0.07) 75%,
    transparent);
}

.blog-index .post-card h2 {
  margin: 0 0 6px;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.3;
}

.blog-index .post-card h2 a {
  color: #222;
  text-decoration: none;
}

.blog-index .post-card h2 a:hover {
  color: #007ad8;
}

.blog-index .card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 750 / 410;
  object-fit: cover;
  margin-bottom: 16px;
}

.blog-index .post-card .article-meta {
  margin: 0 0 10px;
}

.blog-index .post-excerpt {
  color: #444;
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
}

.blog-index .pagination-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .article-page {
    padding-top: 24px;
    font-size: 15px;
  }

  .article-page h1 {
    font-size: 1.65rem;
  }

  .blog-index {
    padding-top: 24px;
  }
}
