/* ===== Overall Page Layout ===== */

.markdown-preview-view {
    max-width: 720px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.7;
    padding: 2rem 1.25rem;
}


/* ===== Headline Styling ===== */

.markdown-preview-view h1 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 0.2em;
    font-weight: 700;
}

.markdown-preview-view h1 + p {
    text-align: center;
    font-size: 1.1em;
    opacity: 0.8;
    margin-top: 0;
}

.markdown-preview-view h2 {
    margin-top: 2.2em;
    font-weight: 600;
}

.site-header {
  display: none !important;
}

/* ===== Typography (Subtle Professional Tone) ===== */

/* Keep body clean and readable */
.markdown-preview-view {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Slightly more elegant section headings */
.markdown-preview-view h1,
.markdown-preview-view h2 {
    letter-spacing: -0.01em;
}


/* ===== Images (Headshot + Book Cover) ===== */

.markdown-preview-view img {
    display: block;
    margin: 1.5em auto;
    border-radius: 4px;
}

.markdown-preview-view img[alt*="headshot"] {
    max-width: 220px;
}

.markdown-preview-view img[alt*="about"] {
    max-width: 380px;
}

.markdown-preview-view img[alt*="Discredited"],
.markdown-preview-view img[alt*="discredited"] {
    max-width: 180px;
}

/* ===== Refined, More Legible Links ===== */

/* Base link */
.published-container .markdown-rendered a {
  text-decoration: none !important;
  transition: color 0.2s ease, border-color 0.2s ease;
}

/* Light mode */
.published-container.theme-light .markdown-rendered a {
  color: #1f3a5f; /* muted navy */
  border-bottom: 1px solid rgba(31, 58, 95, 0.5);
}

.published-container.theme-light .markdown-rendered a:hover {
  color: #10253f;
  border-bottom: 1px solid rgba(16, 37, 63, 0.85);
}

/* Dark mode */
.published-container.theme-dark .markdown-rendered a {
  color: #9db4ff;
  border-bottom: 1px solid rgba(157, 180, 255, 0.5);
}

.published-container.theme-dark .markdown-rendered a:hover {
  color: #c4d3ff;
  border-bottom: 1px solid rgba(196, 211, 255, 0.85);
}

/* ===== Remove Horizontal Rules (Cleaner Sections) ===== */

.markdown-preview-view hr {
    display: none;
}


/* ===== Lists (Subtle Refinement) ===== */

.markdown-preview-view ul {
    padding-left: 1.2em;
}

.markdown-preview-view li {
    margin-bottom: 0.4em;
}

.markdown-preview-view h1 + p {
    max-width: 520px;
    margin: 0.5em auto 0;
    opacity: 0.75;
}

.published-container .markdown-rendered { padding-top: 1.2rem; }

/* Remove external link arrow icon */

.published-container .external-link::after {
  display: none !important;
  content: none !important;
}

/* Remove external-link arrow / icon (robust) */

/* 1) If Publish marks external links with a class */
.published-container .markdown-rendered a.external-link::after,
.published-container .markdown-rendered .external-link::after {
  content: none !important;
  display: none !important;
}

/* 2) If Publish adds it to any absolute http(s) link via ::after */
.published-container .markdown-rendered a[href^="http"]::after,
.published-container .markdown-rendered a[href^="https://"]::after {
  content: none !important;
  display: none !important;
  background: none !important;
  mask: none !important;
  -webkit-mask: none !important;
}

/* 3) If the icon is an actual element (SVG/span) inside the link */
.published-container .markdown-rendered a .external-link-icon,
.published-container .markdown-rendered a svg.external-link-icon,
.published-container .markdown-rendered a svg.lucide-external-link {
  display: none !important;
}

/* Remove external-link arrow (background/mask implementation) */

/* If Publish adds an external-link class */
.published-container .markdown-rendered a.external-link,
.published-container .markdown-rendered .external-link {
  background-image: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  padding-right: 0 !important;   /* remove space reserved for icon */
}

/* If Publish styles *all* http(s) links as external */
.published-container .markdown-rendered a[href^="http"],
.published-container .markdown-rendered a[href^="https://"] {
  background-image: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* ===== Custom top navigation ===== */

.custom-site-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 720px;
  margin: 0.8rem auto 1.4rem auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.custom-site-nav a,
.custom-site-nav a:link,
.custom-site-nav a:visited,
.custom-site-nav a:hover,
.custom-site-nav a:active,
.custom-site-nav a:focus {
  text-decoration: none !important;
  border-bottom: none !important;
  color: inherit;
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.custom-site-nav a:hover {
  opacity: 1;
}

/* Optional: slightly reduce top padding now that nav exists */
.published-container .markdown-rendered {
  padding-top: 0.5rem;
}

/* ===== Remove heading link / chain icons sitewide ===== */

.published-container .markdown-rendered .heading-link,
.published-container .markdown-rendered .heading-link-icon,
.published-container .markdown-rendered .heading-anchor,
.published-container .markdown-rendered .heading-anchor-icon,
.published-container .markdown-rendered a.heading-link,
.published-container .markdown-rendered a.heading-anchor,
.published-container .markdown-rendered h1 > a,
.published-container .markdown-rendered h2 > a,
.published-container .markdown-rendered h3 > a,
.published-container .markdown-rendered h4 > a,
.published-container .markdown-rendered h5 > a,
.published-container .markdown-rendered h6 > a {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove any extra left/right spacing reserved for heading icons */
.published-container .markdown-rendered h1,
.published-container .markdown-rendered h2,
.published-container .markdown-rendered h3,
.published-container .markdown-rendered h4,
.published-container .markdown-rendered h5,
.published-container .markdown-rendered h6 {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
}

/* If Publish is using SVG icons inside headings, hide those too */
.published-container .markdown-rendered h1 svg,
.published-container .markdown-rendered h2 svg,
.published-container .markdown-rendered h3 svg,
.published-container .markdown-rendered h4 svg,
.published-container .markdown-rendered h5 svg,
.published-container .markdown-rendered h6 svg {
  display: none !important;
}

/* ===== Remove Obsidian Publish banner ===== */

a[href="https://publish.obsidian.md"] {
  display: none !important;
}