/* rev 2026-10-05a */
/* =========================================================
   chrisbowler.com — Obsidian Publish stylesheet
   Direction: single column, monospace, warm paper, text first.
   Home and About carry the name; everything else is The Weekly Review.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400;1,6..72,500&display=swap');

/* ---------- Tokens ---------- */
body {
  --cb-mono: "IBM Plex Mono", "iA Writer Mono S", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --cb-serif: "Newsreader", Georgia, "Times New Roman", serif;

  --font-text-theme: var(--cb-mono);
  --font-interface-theme: var(--cb-mono);
  --font-monospace-theme: var(--cb-mono);
  --font-text: var(--cb-mono);
  --font-interface: var(--cb-mono);
  --font-monospace: var(--cb-mono);
  --font-text-size: 16px;
  --line-height-normal: 1.7;

  --h1-size: 1.3em;
  --h2-size: 1.05em;
  --h3-size: 1em;
  --h4-size: 1em;
  --h1-weight: 600;
  --h2-weight: 600;
  --h3-weight: 600;
  --h1-line-height: 1.4;
  --h2-line-height: 1.4;

  --bold-weight: 600;
  --link-decoration: underline;
  --link-decoration-thickness: 1px;
  --link-external-decoration: underline;

  --list-indent: 1.4em;
  --list-spacing: 0.25em;
}

/* ---------- Accent ----------
   One bright colour against the muted paper. Hot orange today; a hot pink
   reads just as well on this palette if the mood changes:
     light  #ff2e7e (hover #e51c6b)   dark  #ff5c9d (hover #ff80b3)
   Swap the four accent values in .theme-light / .theme-dark below. */

.theme-light {
  --background-primary: #fcfbf8;
  --background-primary-alt: #f5f3ee;
  --background-secondary: #fcfbf8;
  --background-secondary-alt: #f5f3ee;
  --background-modifier-border: #e6e2d9;
  --background-modifier-hover: #f1eee7;
  --text-normal: #1f1e1b;
  --text-muted: #6d6a62;
  --text-faint: #a39f94;
  --text-accent: #ff4f1f;
  --text-accent-hover: #e8400f;
  --link-color: #1f1e1b;
  --link-color-hover: #ff4f1f;
  --link-external-color: #1f1e1b;
  --link-external-color-hover: #ff4f1f;
  --link-unresolved-color: #a39f94;
  --interactive-accent: #ff4f1f;
  --interactive-accent-hover: #e8400f;
  --code-background: #f1eee7;
  --code-normal: #1f1e1b;
  --blockquote-border-color: #d9d4c8;
  --hr-color: #e6e2d9;
  --text-selection: rgba(255, 79, 31, 0.18);
  --text-highlight-bg: #f3e7a9;
  --nav-item-color-active: var(--text-accent);
  --nav-item-background-active: transparent;
  --site-name-color: #1f1e1b;
  --site-name-color-hover: #ff4f1f;
}

.theme-dark {
  --background-primary: #161512;
  --background-primary-alt: #1e1c18;
  --background-secondary: #161512;
  --background-secondary-alt: #1e1c18;
  --background-modifier-border: #2b2924;
  --background-modifier-hover: #22201b;
  --text-normal: #e8e4da;
  --text-muted: #9c978b;
  --text-faint: #6b675d;
  --text-accent: #ff7a4a;
  --text-accent-hover: #ff9470;
  --link-color: #e8e4da;
  --link-color-hover: #ff7a4a;
  --link-external-color: #e8e4da;
  --link-external-color-hover: #ff7a4a;
  --interactive-accent: #ff7a4a;
  --code-background: #22201b;
  --code-normal: #e8e4da;
  --blockquote-border-color: #3a372f;
  --hr-color: #2b2924;
  --text-highlight-bg: #4a4320;
  --nav-item-color-active: var(--text-accent);
  --nav-item-background-active: transparent;
  --site-name-color: #e8e4da;
  --site-name-color-hover: #ff7a4a;
}

/* ---------- Page frame ---------- */
.published-container {
  --page-width: 720px;
  --page-side-padding: 32px;
  --page-title-size: 1.3em;
  --page-title-weight: 600;
  --page-title-line-height: 1.4;
  --site-name-size: 14px;
  --site-name-weight: 600;
  --sidebar-left-width: 320px;
  --sidebar-right-width: 220px;
  --sidebar-font-size: 13.5px;
  --sidebar-left-border-width: 0px;
  --sidebar-right-border-width: 0px;
  --sidebar-left-background: var(--background-primary);
  --sidebar-right-background: var(--background-primary);
  --component-title-size: 12px;
  --footer-display: none;
}

.publish-renderer > .markdown-preview-view > .markdown-preview-sizer {
  padding-top: 56px;
  padding-bottom: 96px;
}

/* ---------- Typography ---------- */
.markdown-rendered {
  font-size: var(--font-text-size);
  line-height: var(--line-height-normal);
  letter-spacing: -0.005em;
}

.markdown-rendered p {
  margin: 0 0 1.4em;
}

.published-container .markdown-rendered h1,
.published-container .markdown-rendered h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin: 2.4em 0 0.8em;
}

.published-container .markdown-rendered h3,
.published-container .markdown-rendered h4 {
  margin: 2em 0 0.6em;
}

.markdown-rendered h2 {
  letter-spacing: 0;
}

.markdown-rendered h3,
.markdown-rendered h4 {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8em;
}

.markdown-rendered strong {
  font-weight: 600;
}

.markdown-rendered a,
.markdown-rendered a.internal-link,
.markdown-rendered a.external-link {
  color: var(--link-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--text-faint);
  background: none;
  padding-right: 0;
  transition: color 120ms ease, text-decoration-color 120ms ease;
}

.markdown-rendered a:hover,
.markdown-rendered a.internal-link:hover,
.markdown-rendered a.external-link:hover {
  color: var(--link-color-hover);
  text-decoration-color: var(--link-color-hover);
}

/* Drop the external-link arrow icon */
.markdown-rendered a.external-link {
  background-image: none;
}

/* Quoted text speaks in a serif so it reads as someone else's voice. */
.markdown-rendered blockquote {
  border-left: 2px solid var(--blockquote-border-color);
  padding-left: 1.2em;
  margin: 1.6em 0;
  color: var(--text-muted);
  font-family: var(--cb-serif);
  font-size: 1.125em;
  line-height: 1.6;
  font-style: normal;
}

.markdown-rendered blockquote p {
  margin: 0 0 0.8em;
}

.markdown-rendered blockquote p:last-child {
  margin-bottom: 0;
}

.markdown-rendered blockquote code {
  font-family: var(--cb-mono);
  font-size: 0.8em;
}

.markdown-rendered hr {
  border: none;
  border-top: 1px solid var(--hr-color);
  margin: 3em auto;
  width: 40%;
}

.markdown-rendered ul,
.markdown-rendered ol {
  padding-inline-start: var(--list-indent);
}

.markdown-rendered ul > li::marker {
  color: var(--text-faint);
}

.markdown-rendered code {
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.markdown-rendered pre {
  border: 1px solid var(--background-modifier-border);
  border-radius: 4px;
}

.markdown-rendered img {
  max-width: 100%;
  border-radius: 2px;
}

.markdown-rendered mark {
  padding: 0 0.15em;
}

/* ---------- Page title and journal kicker ---------- */
.published-container .markdown-rendered h1.page-header {
  margin-top: 0;
  margin-bottom: 0.6em;
  letter-spacing: 0;
}

/* Every page that is not a "page" (home, about, indexes) belongs to the journal. */
.markdown-preview-view:not(.page) h1.page-header::before {
  content: "The Weekly Review";
  display: block;
  margin-bottom: 1.6em;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Date callout as a byline ----------
   Articles open with:  > [!info] December 17, 2019
   A title-only callout has no .callout-content, so this only hits those. */
.markdown-rendered .callout[data-callout="info"]:not(:has(.callout-content)) {
  background: none;
  border: none;
  padding: 0;
  margin: -0.4em 0 2.4em;
  mix-blend-mode: normal;
}

.markdown-rendered .callout[data-callout="info"]:not(:has(.callout-content)) .callout-title {
  padding: 0;
  gap: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.markdown-rendered .callout[data-callout="info"]:not(:has(.callout-content)) .callout-icon {
  display: none;
}

/* ---------- Link posts ----------
   Posts that point at someone else's writing carry  cssclasses: linked
   and open with:  <p class="source"><span class="source-label">Linked</span> <a href="…">host</a></p>
   The kicker carries a north-east arrow (the conventional link-post mark) instead
   of repeating the "Linked" label that already sits beside the source. The kicker
   is a ::before, so the mark has to live in its content string: a glyph, not an SVG.
   Alternatives to try: "\2197" ↗  "\2192" →  "\21D7" ⇗  "\2937" ⤷  "\221E" ∞
   The source sits under the byline in the same small bordered block the tags footer uses. */
.markdown-preview-view.linked h1.page-header::before {
  content: "The Weekly Review \2009\2192";
}

.markdown-rendered p.source {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2em 1.4em;
  margin: -1em 0 2.4em;
  padding: 0.7em 1.1em;
  border: 1px solid color-mix(in srgb, var(--text-accent) 18%, var(--background-modifier-border));
  border-radius: 3px;
  background: color-mix(in srgb, var(--text-accent) 5%, var(--background-primary));
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--text-muted);
}

.markdown-rendered p.source .source-label {
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.markdown-rendered p.source a {
  color: var(--text-normal);
  text-decoration: none;
}

.markdown-rendered p.source a::after {
  content: " →";
  color: var(--text-accent);
}

.markdown-rendered p.source a:hover {
  color: var(--text-accent);
}

/* ---------- Video embed ----------
   Sermons open with the recording:  <div class="video"><iframe …></iframe></div> */
.markdown-rendered .video {
  margin: 0 0 2.4em;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  border-radius: 3px;
  overflow: hidden;
  background: var(--background-primary-alt);
}

.markdown-rendered .video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Personal pages: home and about ---------- */
.markdown-preview-view.home h1.page-header {
  display: none;
}

.markdown-preview-view.about h1.page-header {
  display: none;
}

.markdown-preview-view.page .markdown-preview-sizer {
  padding-top: calc(var(--cb-top) + 40px);
}

.markdown-preview-view.page ul {
  list-style: none;
  padding-inline-start: 0;
}

.markdown-preview-view.page ul > li {
  margin: 0.35em 0;
}

/* Hide site chrome entirely on the home page. */
body:has(.markdown-preview-view.home) .site-body-left-column,
body:has(.markdown-preview-view.home) .site-body-right-column,
body:has(.markdown-preview-view.home) .site-header {
  display: none !important;
}

body:has(.markdown-preview-view.home) .publish-renderer > .markdown-preview-view > .markdown-preview-sizer {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ---------- Left navigation ---------- */
.published-container {
  --nav-item-border-color: transparent;
  --nav-item-border-color-hover: transparent;
  --nav-item-border-color-active: transparent;
  --nav-parent-item-weight: 600;
}

.site-body-left-column-inner {
  padding: 56px 64px 48px 40px;
}

.site-body-left-column-site-name {
  font-size: var(--site-name-size);
  font-weight: var(--site-name-weight);
  letter-spacing: 0.02em;
  padding-bottom: 28px;
}

.nav-view-outer {
  font-size: var(--sidebar-font-size);
  line-height: 1.5;
}

/* No indentation guides or active bars anywhere in the tree. */
.nav-view-outer .tree-item-self,
.nav-view-outer .tree-item-self:not(.mod-collapsible),
.nav-view-outer .tree-item-self:hover:not(.mod-collapsible):not(.mod-active),
.nav-view-outer .tree-item-self.mod-active,
.nav-view-outer .tree-item-children,
.nav-view-outer .tree-item-children .tree-item-children .tree-item-children {
  border-left: none !important;
  margin-left: 0;
}

.nav-view-outer .tree-item-self {
  color: var(--text-faint);
  padding: 7px 0 7px 0;
  border-radius: 0;
  background: transparent;
  transition: color 160ms ease;
}

/* Items wake up to the regular muted tone when the pointer is anywhere over the nav. */
.site-body-left-column:hover .nav-view-outer .tree-item-self {
  color: var(--text-muted);
}

.site-body-left-column:hover .nav-view-outer .tree-item-self.mod-active {
  color: var(--nav-item-color-active);
}

/* The item under the pointer always wins with the accent. */
.site-body-left-column:hover .nav-view-outer .tree-item-self:hover,
.nav-view-outer .tree-item-self:hover {
  color: var(--text-accent);
}

.nav-view-outer .tree-item-self:hover {
  color: var(--text-accent);
  background: transparent;
}

.nav-view-outer .tree-item-self.mod-active {
  color: var(--nav-item-color-active);
  font-weight: 600;
  background: transparent;
}

.nav-view-outer .tree-item-self.mod-active .tree-item-inner::before {
  content: "\2014\00a0";
  color: var(--text-accent);
  font-weight: 400;
}

/* Folder headings */
.nav-view-outer .tree-item-self.mod-collapsible {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  margin-top: 20px;
  padding-bottom: 4px;
}

/* ---------- Root menu ----------
   The archive pages (Writing, Newsletter, Sermons) already browse the three
   folders, so the folders themselves stay out of the nav, and Home is the
   site name above. What remains is a short menu in a fixed order. */
.nav-view-outer .tree-item-self.mod-root + .tree-item-children {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.nav-view-outer .tree-item-self.mod-root + .tree-item-children > .tree-item:has(> .tree-item-self.mod-collapsible),
.nav-view-outer .tree-item-self.mod-root + .tree-item-children > .tree-item:has(> .tree-item-self[data-path$="/Home"]),
.nav-view-outer .tree-item-self.mod-root + .tree-item-children > .tree-item:has(> .tree-item-self[data-path$="/Home.md"]) {
  display: none;
}

.nav-view-outer .tree-item:has(> .tree-item-self[data-path$="/Writing"]),
.nav-view-outer .tree-item:has(> .tree-item-self[data-path$="/Writing.md"]) { order: 1; }
.nav-view-outer .tree-item:has(> .tree-item-self[data-path$="/Newsletter"]),
.nav-view-outer .tree-item:has(> .tree-item-self[data-path$="/Newsletter.md"]) { order: 2; }
.nav-view-outer .tree-item:has(> .tree-item-self[data-path$="/Sermons"]),
.nav-view-outer .tree-item:has(> .tree-item-self[data-path$="/Sermons.md"]) { order: 3; }
.nav-view-outer .tree-item:has(> .tree-item-self[data-path$="/About"]),
.nav-view-outer .tree-item:has(> .tree-item-self[data-path$="/About.md"]) { order: 4; margin-top: 18px; }

.nav-view-outer .tree-item-self.mod-root + .tree-item-children > .tree-item > .tree-item-self {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 600;
  padding: 9px 0;
}

.nav-view-outer .tree-item-children {
  padding: 0 0 8px 0;
}

.nav-view-outer .tree-item-children .tree-item-children {
  padding-left: 14px;
}

.nav-view-outer .tree-item-children .tree-item-children .tree-item-self.is-clickable:not(.mod-collapsible) .tree-item-inner {
  padding-left: 0;
}

.nav-view-outer .tree-item-icon {
  opacity: 0.45;
}

/* Search */
.search-view-outer .search-bar,
.search-view-outer input {
  font-family: var(--cb-mono);
  font-size: 13px;
  background: var(--background-primary-alt);
  border: 1px solid var(--background-modifier-border);
  border-radius: 3px;
}

/* ---------- Right column: outline and backlinks ---------- */
.site-body-right-column-inner {
  font-size: 12px;
}

.site-body-right-column .outline-view-outer,
.site-body-right-column .backlinks {
  color: var(--text-muted);
}

.published-container .backlinks .tree-item-self,
.published-container .outline-view .tree-item-self {
  color: var(--text-muted);
}

.site-body-right-column .component-title,
.published-container .backlinks h5,
.published-container .outline-view h5 {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: var(--text-faint);
}

/* ---------- Cross-reference callout ----------
   Articles that were mailed as a newsletter essay, and the issues that carried them:
     > [!also] Also sent as [[…|Volume IV, Issue 23]]        (on the article, under the byline)
     > [!also] Also published as [[…|Title]], [[…|Title]]    (at the top of the issue)
   A title-only callout, so it has its own data attribute and never collides with prose. */
.markdown-rendered .callout[data-callout="also"] {
  background: none;
  border: none;
  padding: 0;
  margin: -1.2em 0 2.4em;
  mix-blend-mode: normal;
}

.markdown-rendered .callout[data-callout="also"] .callout-title {
  padding: 0;
  gap: 0;
  display: block;
  color: var(--text-faint);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.markdown-rendered .callout[data-callout="also"] .callout-icon {
  display: none;
}

.markdown-rendered .callout[data-callout="also"] .callout-title a.internal-link {
  color: var(--text-muted);
  text-decoration: none;
}

.markdown-rendered .callout[data-callout="also"] .callout-title a.internal-link:hover {
  color: var(--text-accent);
}

/* Under a link post's source block it needs less pull. */
.markdown-rendered p.source + .callout[data-callout="also"] {
  margin-top: -1.4em;
}

/* ---------- Tags footer ----------
   Source stays:  **Tags** #a #b
   Only the footer paragraph starts with bold text and holds tag links.
   Rendered as a small bordered block: label on top, tags beneath. */
.markdown-rendered p:has(> strong:first-child):has(> a.tag) {
  margin: 3.5em 0 0;
  padding: 0.7em 1.1em;
  border: 1px solid var(--background-modifier-border);
  border-radius: 3px;
  background: color-mix(in srgb, var(--background-primary-alt) 45%, var(--background-primary));
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--text-muted);
}

.markdown-rendered p:has(> strong:first-child):has(> a.tag) > strong {
  display: inline-block;
  margin-right: 1.4em;
  vertical-align: baseline;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.markdown-rendered p:has(> strong:first-child):has(> a.tag) > a.tag {
  color: var(--text-normal);
  background: none;
  border: none;
  padding: 0;
  margin-right: 1.1em;
  font-size: inherit;
  text-decoration: none;
}

.markdown-rendered p:has(> strong:first-child):has(> a.tag) > a.tag:hover {
  color: var(--text-accent);
}

/* Short rule inside articles keeps its centered 40% form. */

/* ---------- Archive pages: Writing and Newsletter ---------- */
/* Topics / Archive section labels and year sub-labels */
.markdown-preview-view.archive h2,
.markdown-preview-view.archive h3 {
  margin-top: 2.6em;
  margin-bottom: 0.6em;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.markdown-preview-view.archive h2 {
  margin-top: 3.2em;
  padding-top: 2em;
  border-top: 1px solid var(--hr-color);
  color: var(--text-muted);
}

.markdown-preview-view.archive h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 2.4em;
}

/* Topics line: tags as plain comma-separated links */
.markdown-preview-view.archive p a.tag {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: var(--text-normal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--text-faint);
}

.markdown-preview-view.archive p a.tag:hover {
  color: var(--text-accent);
  text-decoration-color: var(--text-accent);
}

.markdown-preview-view.archive p:has(> a.tag) {
  line-height: 2;
}

.markdown-preview-view.archive ul > li {
  display: flex;
  gap: 1.25em;
  align-items: baseline;
  margin: 0.45em 0;
}

.markdown-preview-view.archive .archive-date {
  flex: 0 0 5.5em;
  color: var(--text-muted);
  font-size: 0.85em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Sermon rows carry the passage after the title */
.markdown-preview-view.archive .archive-note {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 0.85em;
}

/* Link posts carry a small arrow before the title */
.markdown-preview-view.archive .archive-kind {
  flex: 0 0 auto;
  margin-right: -0.8em;
  color: var(--text-accent);
  font-size: 0.85em;
}

.markdown-preview-view.archive ul > li a {
  text-decoration-color: transparent;
}

.markdown-preview-view.archive ul > li a:hover {
  text-decoration-color: var(--link-color-hover);
}

@media (max-width: 750px) {
  .markdown-preview-view.archive ul > li {
    flex-direction: column;
    gap: 0.1em;
    margin: 0.8em 0;
  }

  /* Stacked layout: the 5.5em flex-basis above is a width in a row but a
     height in a column, which left a tall empty box under each date. */
  .markdown-preview-view.archive .archive-date {
    flex-basis: auto;
  }

  /* Stacked layout: fold the arrow into the title line instead of its own row */
  .markdown-preview-view.archive .archive-kind {
    display: none;
  }

  .markdown-preview-view.archive ul > li:has(.archive-kind) > a::before {
    content: "→ ";
    color: var(--text-accent);
    font-size: 0.85em;
  }
}

/* Newsletter archive: issue numbers are the links themselves */
.markdown-preview-view.issues ul > li {
  display: block;
  margin: 0.35em 0;
}

/* Issue rows: number as a bold link, description beneath in small muted text */
.markdown-preview-view.issues ul > li {
  display: block;
  margin: 1.1em 0;
}

.markdown-preview-view.issues ul > li > a.internal-link {
  font-weight: 600;
  color: var(--text-normal);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.markdown-preview-view.issues ul > li > a.internal-link:hover {
  color: var(--text-accent);
}

.markdown-preview-view.issues .issue-desc {
  display: block;
  margin-top: 0.15em;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 62ch;
}

/* Volume headings read as real headings here, sized with the list beneath them */
.markdown-preview-view.issues h2 {
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-normal);
  margin-top: 2.8em;
  margin-bottom: 0.8em;
  padding-top: 0;
  border-top: none;
}

.markdown-preview-view.issues h2:first-of-type {
  margin-top: 2.4em;
}

/* Backlinks block: no separator line; the tags box already closes the piece. */
.published-container .backlinks {
  border-top: none;
  margin-top: 40px;
  padding-top: 0;
}

/* ---------- Column alignment ----------
   All three columns start their first line at the same offset (56px). */
.published-container {
  --cb-top: 80px;
}

.publish-renderer > .markdown-preview-view > .markdown-preview-sizer {
  padding-top: var(--cb-top);
}

.site-body-left-column {
  padding-top: 0;
}

.site-body-left-column .site-body-left-column-inner {
  padding-top: calc(var(--cb-top) - 10px);
}

/* Publish adds 24px above the content; fold it into the shared offset. */
.publish-renderer > .markdown-preview-view {
  padding-top: 0;
}

.site-body-left-column-site-name {
  padding-top: 0;
  line-height: 1.4;
}

.site-body-right-column .site-body-right-column-inner {
  padding-top: var(--cb-top);
}

.site-body-right-column .site-body-right-column-inner > div:first-child {
  margin-top: 0;
}

.site-body-right-column .outline-view-outer {
  padding-top: 0;
}

.site-body-right-column .outline-view-outer .outline-view {
  padding-top: 12px;
}

/* Kicker, site name and "On this page" share one 20px line box so their baselines meet.
   Smaller type sits a hair higher in the same box, so it gets a touch of padding. */
.site-body-left-column-site-name {
  line-height: 20px;
}

.markdown-preview-view:not(.page) h1.page-header::before {
  line-height: 20px;
  padding-top: 1px;
}

.site-body-right-column .published-section-header {
  line-height: 20px;
  padding-top: 2px;
  margin-top: 0;
}

/* Backlinks: the archive pages link to everything, so they are noise here.
   Hide those rows, and hide the whole box when nothing else is left. */
.published-container .backlinks .backlink-item:has(> a[data-href$="/Writing.md"]),
.published-container .backlinks .backlink-item:has(> a[data-href$="/Newsletter.md"]),
.published-container .backlinks .backlink-item:has(> a[data-href$="/Sermons.md"]),
.published-container .backlinks .backlink-item:has(> a[data-href$="/Home.md"]) {
  display: none;
}

.published-container .backlinks:not(:has(.backlink-item > a:not([data-href$="/Writing.md"]):not([data-href$="/Newsletter.md"]):not([data-href$="/Sermons.md"]):not([data-href$="/Home.md"]))) {
  display: none;
}

/* Backlinks list: smaller, quieter text, like the tags box */
.published-container .backlinks {
  font-size: 12.5px;
  line-height: 1.9;
}

.published-container .backlinks .tree-item-self,
.published-container .backlinks .tree-item-inner,
.published-container .backlinks a {
  font-size: 12.5px;
  color: var(--text-muted);
}

.published-container .backlinks a:hover,
.published-container .backlinks .tree-item-self:hover {
  color: var(--text-accent);
}

/* ---------- Mobile ---------- */
@media (max-width: 750px) {
  .published-container {
    --page-side-padding: 20px;
    --page-title-size: 1.2em;
  }

  body {
    --font-text-size: 15px;
  }

  .publish-renderer > .markdown-preview-view > .markdown-preview-sizer {
    padding-top: 28px;
  }

  .markdown-preview-view.page .markdown-preview-sizer {
    padding-top: 40px;
  }
}
