/* =====================================================
   CONTENT WIDTH (SAFE)
   ===================================================== */

.md-content__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* =====================================================
   BANNER
   ===================================================== */

.md-banner {
  width: 100%;
  border-radius: 6px;
  margin: 0.5rem 0 0.8rem 0;
}

/* =====================================================
   META LINE
   ===================================================== */

.md-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.6rem 0 0.4rem 0;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--md-default-fg-color--light);
}

.md-post-meta-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.md-post-meta-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Divider */
.md-post-divider {
  width: 100%;
  height: 2px;
  background-color: var(--md-primary-fg-color);
  margin: 0.4rem 0 1rem 0;
}

/* =====================================================
   SHARE: [in] — EXACTLY AS REQUESTED
   ===================================================== */

.post-share-label {
  color: var(--md-default-fg-color--light);
}

/* Base link */
.post-share-linkedin {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0a66c2;          /* LinkedIn blue */
  text-decoration: none;
  line-height: 1;
  position: relative;
}

/* Add square brackets */
.post-share-linkedin::before {
  content: "[";
  color: var(--md-default-fg-color--light);
  margin-right: 1px;
}

.post-share-linkedin::after {
  content: "]";
  color: var(--md-default-fg-color--light);
  margin-left: 1px;
}

/* Hover */
.post-share-linkedin:hover {
  text-decoration: underline;
}

/* HARD STOP: hide any icon junk */
.post-share-linkedin svg,
.post-share-linkedin i,
.post-share-linkedin span[class*="icon"],
.post-share-linkedin span[class*="twemoji"] {
  display: none !important;
}

/* =====================================================
   TAGS
   ===================================================== */

.md-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 1rem 0;
}

.md-post-tags .md-tag {
  background: var(--md-default-bg-color--lighter);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* =====================================================
   TOC
   ===================================================== */

.md-sidebar--secondary .md-nav__title {
  font-weight: 600;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--md-primary-fg-color);
}

/* =====================================================
   MOBILE
   ===================================================== */

@media screen and (max-width: 76em) {

  .md-post-meta {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .md-post-meta-left {
    flex: 1 1 auto;
  }

  .md-post-meta-right {
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
  }
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */

.md-typeset {
  line-height: 1.75;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  letter-spacing: -0.015em;
}

/* =====================================================
   HEADINGS
   ===================================================== */

/* H2: primary-coloured underline */
.md-typeset h2 {
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--md-primary-fg-color);
}

/* H3: lighter thin rule */
.md-typeset h3 {
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

/* =====================================================
   LINKS
   ===================================================== */

.md-typeset a {
  transition: color 0.15s ease, opacity 0.15s ease;
}

.md-typeset a:hover {
  opacity: 0.8;
}

/* =====================================================
   BLOCKQUOTES
   ===================================================== */

.md-typeset blockquote {
  border-left: 3px solid var(--md-primary-fg-color);
  background: var(--md-default-bg-color--light);
  border-radius: 0 4px 4px 0;
  padding: 0.6rem 1rem;
  color: var(--md-default-fg-color);
}

.md-typeset blockquote p {
  margin: 0;
}

/* =====================================================
   IMAGES
   ===================================================== */

/* In-post images: subtle shadow + radius (excludes banners) */
.md-typeset img:not(.md-banner) {
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin: 0.4rem 0;
}

/* Banner: stronger shadow for depth */
.md-banner {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* =====================================================
   HORIZONTAL RULE
   ===================================================== */

.md-typeset hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    var(--md-primary-fg-color) 0%,
    var(--md-default-fg-color--lightest) 60%,
    transparent 100%
  );
  margin: 1.5rem 0;
}

/* =====================================================
   CODE BLOCKS
   ===================================================== */

.md-typeset pre {
  border-radius: 6px;
}

.md-typeset :not(pre) > code {
  border-radius: 3px;
  padding: 0.1em 0.4em;
  font-size: 0.875em;
}

/* =====================================================
   POST LISTING ROWS
   ===================================================== */

/* Hover highlight on auto-generated post list items */
.md-content__inner > ul > li {
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.md-content__inner > ul > li:hover {
  background: var(--md-default-bg-color--light);
}

