/* Prose: running text inside .column (page content, news posts) */
/* Loaded before site.css, so component rules there (e.g. .news li) win ties */

.column {
  overflow-wrap: break-word;
}

.column :is(p, li, blockquote) a {
  text-decoration: underline;
}

/* Hover only where a pointer can hover; on touch screens it sticks after a tap */
@media (hover: hover) {
  .column :is(p, li, td, blockquote) a:hover {
    background-color: var(--ink);
    color: var(--bg);
    padding: 1px 4px;
    margin: 0px -4px;
    border-radius: 8px;
    text-decoration: none;
  }

  /* Linked images: no pill, just an outline around the image on hover */
  .column :is(p, li, td, blockquote) a:has(> img):hover {
    background: none;
    padding: 0;
    margin: 0;
  }

  .column a:has(> img):hover img {
    outline: 4px solid var(--ink);
  }
}

.column p {
  margin: 0 0 1.4em;
}

.column h2 {
  margin: 2.2em 0 0.7em;
  font-family: var(--heading-font), var(--body-font), sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.column ul {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
}

.column li {
  margin: 0 0 1em;
  padding-left: 0.2em;
}

@media (max-width: 800px) {
  .column h2 {
    font-size: 32px;
  }
}

.column h1 {
  margin: 0 0 0.6em;
  font-family: var(--heading-font), var(--body-font), sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
}

.column :is(h3, h4, h5, h6) {
  margin: 1.8em 0 0.5em;
  font-family: var(--heading-font), var(--body-font), sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

.column h3 {
  font-size: 28px;
}

.column h4 {
  font-size: 22px;
}

.column h5 {
  font-size: 1rem;
}

.column h6 {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  color: #777;
}

.column ol {
  margin: 0 0 1.4em;
  padding-left: 1.6em;
}

.column ol > li::marker {
  font-weight: 700;
}

.column li > :is(ul, ol) {
  margin: 1em 0 0;
}

.column blockquote {
  margin: 0 0 1.4em;
  padding-left: 1em;
  border-left: 4px solid var(--ink);
}

.column blockquote > :last-child {
  margin-bottom: 0;
}

.column del {
  color: #777;
}

.column code {
  padding: 0.1em 0.3em;
  border-radius: 4px;
  background: var(--tint);
  font-size: 0.85em;
}

.column pre {
  margin: 0 0 1.4em;
  padding: 1em;
  overflow-x: auto;
  border-radius: 8px;
  background: var(--tint);
  font-size: 0.85em;
  line-height: 1.45;
}

.column pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}

.column table {
  width: 100%;
  margin: 0 0 1.4em;
  border-collapse: collapse;
}

/* A rule under every row; no column rules */
.column table :is(th, td) {
  padding: 0.35em 1.5em 0.35em 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 2px solid var(--ink);
}
.column img {
  width: 100%;
  object-fit: contain;
  height: auto;
  max-height: 500px;
  margin: 0 0 0.6em;
}

/* Inline images (e.g. icons mid-sentence) sit on the text */
.column p > img:not(:only-child) {
  width: auto;
  height: 1em;
  margin: 0;
  vertical-align: -0.1em;
}

/* Video embeds: fill the column at 16:9, whatever width/height attributes they carry */
.column iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.column hr {
  margin: 2em 0;
  border: 0;
  height: 2px;
  background: var(--ink);
}

.column sup {
  line-height: 0;
}

.column .footnote-ref {
  text-decoration: none;
}

.column .footnotes {
  margin-top: 2em;
  font-size: 0.85em;
}

.column .footnotes hr {
  margin: 0 0 1em;
}
