/* Ported articles and content pages: the civic-guide skin (site.css tokens)
   applied to long-form reading. Square corners, signage blue, system fonts. */

.art { padding-bottom: 8px; }
.art-hero-wrap { padding-top: 16px; }
.art-hero {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 7; max-height: 400px; object-fit: cover;
  border-bottom: 6px solid var(--accent);
}
.art-main { padding-top: 22px; }
.art-head { border-left: 6px solid var(--ink); padding-left: 16px; margin-bottom: 18px; }
.art-head h1 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.8rem); margin-bottom: .3em; }
.art-head .meta { margin: 0; }

/* Body copy: a readable measure with generous rhythm. */
.art-body { max-width: 72ch; }
.art-body > * { max-width: 72ch; }
.art-body h2 {
  margin-top: 1.8em; padding-top: 12px; border-top: 3px solid var(--ink);
  scroll-margin-top: 16px;
}
.art-body h3 { margin-top: 1.4em; scroll-margin-top: 16px; }
.art-body img { display: block; max-width: 100%; height: auto; margin: 1em 0; }
.art-body ul, .art-body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.art-body li { margin-bottom: .4em; }
.art-body li::marker { color: var(--accent); font-weight: 700; }
.art-body hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }

/* Plain link lists that are not turned into grids: one tidy row per link. */
.art-body ul:not(.art-linkgrid) > li > a:only-child,
.art-body ol:not(.art-linkgrid) > li > a:only-child { font-weight: 600; text-decoration-thickness: 1px; }

/* Table of contents */
.art-toc {
  background: var(--panel); border-top: 4px solid var(--accent);
  padding: 14px 18px 10px; margin: 0 0 28px; max-width: 72ch;
}
.art-toc-title {
  font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 8px; border: 0; padding: 0;
}
.art-toc ol { margin: 0; padding-left: 1.4em; columns: 1; }
.art-toc li { margin: 0 0 6px; break-inside: avoid; }
.art-toc li::marker { color: var(--accent); font-weight: 800; }
.art-toc a { text-decoration: none; color: var(--ink); }
.art-toc a:hover { color: var(--accent); text-decoration: underline; }

/* Inline call bars keep the site component, with breathing room in prose. */
.call-bar--inline { margin: 28px 0; max-width: 72ch; }

/* Pool photos between sections: plain, full-measure, no caption. */
.art-own-photo { margin: 24px 0; max-width: 72ch; }
.art-own-photo img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.art-photo { margin: 28px 0; max-width: 72ch; }
.art-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin: 0; }

/* Link lists and inline runs of links as a card grid (same links, same text), in the
   guide-card look from site.css: top accent bar, equal heights, arrow, hover and focus states. */
.art-body .art-linkgrid {
  list-style: none; padding: 0; margin: 0 0 1.4em;
  display: grid; grid-template-columns: 1fr; gap: 12px;
  max-width: 72ch;
}
.art-body .art-linkgrid > li, .art-linkgrid--paras > p { margin: 0; display: flex; }
.art-body .art-linkgrid > li::marker { content: none; }
.art-linkgrid > li > strong, .art-linkgrid--paras > p > strong { display: flex; width: 100%; }
.art-linkgrid > li > a, .art-linkgrid--paras > p > a,
.art-linkgrid > li > strong > a, .art-linkgrid--paras > p > strong > a {
  display: block; width: 100%; min-height: 100%;
  padding: 14px 38px 14px 16px; position: relative;
  border: 1px solid var(--rule); border-top: 4px solid var(--accent);
  background: var(--paper); color: var(--ink); font-weight: 700; line-height: 1.3; text-decoration: none;
}
.art-linkgrid > li > a::after, .art-linkgrid--paras > p > a::after,
.art-linkgrid > li > strong > a::after, .art-linkgrid--paras > p > strong > a::after {
  content: "\2192"; position: absolute; right: 14px; bottom: 12px; color: var(--accent); font-weight: 800;
}
.art-linkgrid > li > a:hover, .art-linkgrid--paras > p > a:hover,
.art-linkgrid > li > strong > a:hover, .art-linkgrid--paras > p > strong > a:hover {
  background: var(--accent-tint); color: var(--accent-hover); text-decoration: underline;
}
.art-linkgrid a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; background: var(--accent-tint); }
@media (min-width: 600px) { .art-body .art-linkgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .art-body .art-linkgrid { grid-template-columns: repeat(3, 1fr); } }

/* Tables scroll sideways on phones instead of breaking the page. */
.art-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.4em; max-width: 72ch; border: 1px solid var(--rule); }
.art-table-scroll table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .95rem; }
.art-table-scroll th, .art-table-scroll td { padding: 8px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.art-table-scroll th, .art-table-scroll thead td { background: var(--panel); font-weight: 700; }
.art-table-scroll tr:last-child td { border-bottom: 0; }
.art-body figure { margin: 0 0 1.4em; }

/* Blockquotes as callouts */
.art-callout {
  margin: 0 0 1.4em; padding: 14px 18px;
  background: var(--accent-tint); border-left: 6px solid var(--accent);
  font-size: 1.02rem;
}
.art-callout > :last-child { margin-bottom: 0; }

/* Key takeaways frame around a list that already opens the article */
.art-takeaways {
  border: 2px solid var(--ink); padding: 14px 18px 4px; margin: 0 0 24px; max-width: 72ch;
}
.art-takeaways-label {
  font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 8px;
}

/* Related guides at the end: the shared guide cards (site.css .guide-grid). */
.art-related { margin: 12px auto 32px; }
.art-related h2 { border-top: 3px solid var(--ink); padding-top: 14px; }

@media (min-width: 900px) {
  .art-toc ol { columns: 2; column-gap: 32px; }
}
@media (max-width: 520px) {
  .art-head { padding-left: 12px; }
  .art-hero { aspect-ratio: 4 / 3; }
  .call-bar--inline { margin: 22px 0; }
}
