/*
Theme Name:   Michael Wildman
Theme URI:    https://michaelwildman.me
Description:  Child theme for MichaelWildman.me, built on Kadence.
Author:       Michael Wildman
Author URI:   https://michaelwildman.me
Template:     kadence
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  michaelwildman-child
*/

/* ═══════════════════════════════════════════════════════
   SECTION 1: COLOR TOKENS
   --mw-* are our own variables used throughout this file.
   --global-palette* overrides Kadence's built-in palette
   so Kadence's own components pick up our colors too.
   ═══════════════════════════════════════════════════════ */

:root {
  --mw-navy:        #1a237e;
  --mw-navy-dark:   #111757;  /* hover state for navy */
  --mw-bg:          #ffffff;
  --mw-surface:     #f7f7f7;
  --mw-text:        #1a1a1a;
  --mw-text-muted:  #888888;
  --mw-border:      #e8e8e8;

  /* Kadence palette remapped to our scheme */
  --global-palette1: #1a237e;  /* accent / links */
  --global-palette2: #111757;  /* accent hover */
  --global-palette3: #1a1a1a;  /* strong text */
  --global-palette4: #333333;
  --global-palette5: #888888;  /* muted text */
  --global-palette6: #aaaaaa;
  --global-palette7: #f7f7f7;  /* surface */
  --global-palette8: #f0f0f0;
  --global-palette9: #ffffff;  /* background */
}


/* ═══════════════════════════════════════════════════════
   SECTION 2: GLOBAL BODY & PAGE
   ═══════════════════════════════════════════════════════ */

body {
  background-color: var(--mw-bg);
  color: var(--mw-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Remove the narrow 600px column from previous Seth-style pass */
.site-container,
.entry-content,
.wp-block-post-content {
  max-width: none;
}

/* Widen the main content container */
.content-container.site-container {
  max-width: 1200px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

#wrapper,
.site {
  background-color: var(--mw-bg);
}


/* ═══════════════════════════════════════════════════════
   SECTION 3: HEADER
   Logo centered above navy nav bar. Mobile: logo left,
   hamburger right, off-canvas nav panel.
   ═══════════════════════════════════════════════════════ */

/* Header wrapper — white */
.site-header,
#masthead {
  background-color: var(--mw-bg);
  border-bottom: none;
  box-shadow: none;
}

/* Each desktop header row */
.site-header-wrap,
.site-header-row-container-inner,
.header-top-row-wrap,
.header-main-row-wrap {
  background-color: var(--mw-bg);
}

/* More breathing room in the logo row */
.site-main-header-wrap .site-header-row-container-inner {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

/* ── Logo image sizing ── */
/* The PNG is 1920×1080 — constrain it so the text reads at
   a comfortable size without the excess canvas showing large */
.site-logo .custom-logo,
.custom-logo-link .custom-logo,
.custom-logo {
  max-width: 260px !important;
  height: auto;
  display: block;
}

/* Tagline (hidden but keep selector in case it appears) */
.site-description {
  color: var(--mw-text-muted);
  font-size: 0.75rem;
}

/* ── Navigation bar — full navy strip ── */

.site-bottom-header-wrap,
.site-bottom-header-wrap .site-header-row-container-inner {
  background-color: var(--mw-navy) !important;
}

/* Navigation links */
.site-bottom-header-wrap a,
.site-bottom-header-wrap #primary-menu a,
.main-navigation a,
#site-navigation a {
  color: #ffffff !important;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.65rem 1rem;
  display: inline-block;
}

.site-bottom-header-wrap a:hover,
.site-bottom-header-wrap #primary-menu a:hover,
.main-navigation a:hover,
#site-navigation a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Active / current page nav item */
.site-bottom-header-wrap .current-menu-item > a,
#site-navigation .current-menu-item > a {
  color: #ffffff !important;
  text-decoration: underline !important;
  text-decoration-color: #ffffff !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;
}

/* ── Mobile header ── */

/* Navy background on the mobile header bar */
.site-mobile-header-wrap,
.site-mobile-header-wrap .site-header-row-container,
.site-mobile-header-wrap .site-header-row-container-inner {
  background-color: var(--mw-navy) !important;
}

/* Tighten row padding to reduce overall header height (~30% less) */
.site-mobile-header-wrap .site-header-row-container-inner {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* Logo on mobile: smaller + inverted to white on navy bg */
.site-mobile-header-wrap .custom-logo,
.site-mobile-header-wrap .custom-logo-link .custom-logo {
  filter: brightness(0) invert(1);
  max-width: 100px !important;
}

/* Hamburger icon — doubled in size, white */
.site-mobile-header-wrap .kadence-menu-toggle-icon,
#mobile-toggle .kadence-menu-toggle-icon,
#mobile-toggle svg {
  color: #ffffff !important;
  fill: #ffffff !important;
  width: 40px !important;
  height: 40px !important;
  font-size: 40px !important;
}

/* Trigger button — no extra padding squishing the icon */
.site-mobile-header-wrap button,
.site-mobile-header-wrap .menu-toggle {
  color: #ffffff !important;
  background: transparent;
  border: none;
  padding: 0 !important;
  line-height: 1;
}

/* ── Off-canvas / slide-in nav panel ── */

/* Panel background — Kadence uses .drawer-inner */
.drawer-inner {
  background-color: var(--mw-navy) !important;
}

/* Mobile nav links */
.drawer-inner a,
#mobile-site-navigation a,
#mobile-menu a {
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem 1.5rem;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

.drawer-inner a:hover,
#mobile-menu a:hover {
  background-color: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

/* Close (X) button in panel */
.drawer-inner .menu-toggle-close,
.drawer-inner button {
  color: #ffffff !important;
}


/* ═══════════════════════════════════════════════════════
   SECTION 4: CONTENT + SIDEBAR LAYOUT
   Kadence's has-sidebar body class activates its built-in
   grid. We just set max-width and spacing here.
   ═══════════════════════════════════════════════════════ */

#primary.content-area {
  margin-top: 0;
}

#main.site-main {
  padding-top: 1.5rem;
}

/* Sidebar column */
#secondary.primary-sidebar {
  padding-top: 1.5rem;
}


/* ═══════════════════════════════════════════════════════
   SECTION 5: ARTICLE LIST CARDS
   Targets Kadence's "beside" image placement layout.
   Thumbnail on the right, title + excerpt on the left.
   ═══════════════════════════════════════════════════════ */

/* Remove list styling from the archive container */
#archive-container.kadence-posts-list,
ul.kadence-posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry-list-item {
  margin: 0 !important;
  padding: 0 !important;
}

/* Article card — flat, no white box */
.loop-entry.content-bg {
  background: transparent !important;
  border: none;
  border-bottom: 1px solid var(--mw-border);
  border-radius: 0;
  box-shadow: none !important;
  padding: 0.9rem 0;
  margin-bottom: 0;
}

/* Hide "Read More" button — title click is enough */
.loop-entry .more-link,
.loop-entry .entry-more-link,
.loop-entry .more-link-wrap,
.loop-entry .entry-actions,
.loop-entry .post-more-link {
  display: none;
}

/* Hide author byline — date only */
.loop-entry .byline,
.loop-entry .posted-by {
  display: none;
}

.entry-list-item:last-child .loop-entry {
  border-bottom: none;
}

/* Flex row: text left, image right */
.item-image-style-beside .loop-entry {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
}

/* Thumbnail — RIGHT side */
.item-image-style-beside .post-thumbnail {
  flex: 0 0 180px;
  width: 180px;
  order: 2;
  border-radius: 2px;
  overflow: hidden;
}

.item-image-style-beside .post-thumbnail img,
.item-image-style-beside .post-thumbnail a img {
  width: 180px !important;
  height: 120px !important;
  object-fit: cover !important;
  display: block;
}

/* Hide Kadence's image title overlay on thumbnails */
.item-image-style-beside .post-thumbnail .kadence-post-loop-title,
.item-image-style-beside .post-thumbnail .kt-post-loop-item-image-wrap span,
.item-image-style-beside .post-thumbnail figcaption {
  display: none;
}

/* Text content — LEFT side */
.item-image-style-beside .entry-content-wrap {
  flex: 1;
  order: 1;
  min-width: 0;
}

/* Category / taxonomy tag above title */
.entry-taxonomies .tax-link,
.entry-taxonomies a {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mw-navy);
  text-decoration: none;
}

.entry-taxonomies .tax-link:hover,
.entry-taxonomies a:hover {
  text-decoration: underline;
}

/* Article title */
.loop-entry .entry-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.25rem 0 0.3rem;
}

.loop-entry .entry-title a {
  color: var(--mw-text);
  text-decoration: none;
}

.loop-entry .entry-title a:hover {
  color: var(--mw-navy);
  text-decoration: none;
}

/* Post meta (date, author) */
.entry-meta,
.posted-on,
.byline {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.72rem;
  color: var(--mw-text-muted);
  margin-bottom: 0.4rem;
}

.entry-meta a {
  color: var(--mw-text-muted);
  text-decoration: none;
}

/* Excerpt */
.entry-summary,
.entry-summary p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  color: var(--mw-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Mobile: stack thumbnail above text */
@media screen and (max-width: 719px) {
  .item-image-style-beside .loop-entry {
    flex-direction: column;
  }
  .item-image-style-beside .post-thumbnail {
    flex: 0 0 auto;
    width: 100%;
    order: 1;
  }
  .item-image-style-beside .entry-content-wrap {
    order: 2;
  }
  .item-image-style-beside .post-thumbnail img {
    height: 180px;
  }
}


/* ═══════════════════════════════════════════════════════
   SECTION 6: SIDEBAR
   Light gray widget boxes, navy headings, numbered list.
   ═══════════════════════════════════════════════════════ */

/* Widget box */
.primary-sidebar .widget {
  background: var(--mw-surface);
  border: 1px solid var(--mw-border);
  border-radius: 3px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Widget title — override Kadence heading styles */
#secondary .widget .widget-title,
#secondary .widget .widgettitle,
#secondary .widget h2,
#secondary .widget h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--mw-navy) !important;
  border-bottom: 2px solid var(--mw-navy);
  padding-bottom: 0.6rem;
  margin-top: 0 !important;
  margin-bottom: 0.9rem !important;
}

/* Widget links */
.primary-sidebar .widget a {
  color: var(--mw-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.primary-sidebar .widget a:hover {
  color: var(--mw-navy);
}

/* Numbered recent posts list */
.primary-sidebar .widget_recent_entries ul,
.primary-sidebar .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: sidebar-counter;
}

.primary-sidebar .widget_recent_entries ul li,
.primary-sidebar .widget ul li {
  counter-increment: sidebar-counter;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--mw-border);
}

.primary-sidebar .widget_recent_entries ul li:last-child,
.primary-sidebar .widget ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Big dim number before each item */
.primary-sidebar .widget_recent_entries ul li::before,
.primary-sidebar .widget ul li::before {
  content: counter(sidebar-counter, decimal-leading-zero);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--mw-border);
  line-height: 1;
  flex-shrink: 0;
  width: 2rem;
}

/* Date below post title in recent posts widget */
.primary-sidebar .widget_recent_entries ul li .post-date {
  font-size: 0.7rem;
  color: var(--mw-text-muted);
  display: block;
  margin-top: 0.15rem;
  font-weight: 400;
}


/* ═══════════════════════════════════════════════════════
   SECTION 7: FOOTER
   Clean, minimal, white background.
   ═══════════════════════════════════════════════════════ */

.site-footer,
.footer-wrap {
  background-color: var(--mw-bg);
  border-top: 1px solid var(--mw-border);
  color: var(--mw-text-muted);
  font-size: 0.8rem;
}

.site-footer a {
  color: var(--mw-text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--mw-navy);
}

/* Hide "WordPress Theme by Kadence WP" footer credit */
.site-footer .kadence-credit {
  display: none;
}

/* Hide Uncategorized taxonomy label on posts */
.loop-entry .entry-taxonomies {
  display: none;
}


/* ═══════════════════════════════════════════════════════
   SECTION 8: HOMEPAGE HERO
   Three-column layout: Featured | Latest | Most Popular
   ═══════════════════════════════════════════════════════ */

.mw-hero-section {
  background: var(--mw-bg);
  border-bottom: 2px solid var(--mw-navy);
  padding: 1.5rem 0 2rem;
}

.mw-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Section labels (FEATURED, MOST POPULAR) */
.mw-hero-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mw-navy);
  border-bottom: 2px solid var(--mw-navy);
  padding-bottom: 0.5rem;
  margin: 0 0 1rem;
}

/* Empty state message */
.mw-hero-empty {
  font-size: 0.8rem;
  color: var(--mw-text-muted);
  font-style: italic;
}

/* ── Center column: latest post ── */

.mw-hero-latest {
  text-align: center;
}

.mw-latest-image {
  display: block;
}

.mw-latest-image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.mw-latest-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0.75rem 0 0.5rem;
}

.mw-latest-title a {
  color: var(--mw-text);
  text-decoration: none;
}

.mw-latest-title a:hover {
  color: var(--mw-navy);
}

.mw-latest-excerpt {
  font-size: 0.88rem;
  color: var(--mw-text-muted);
  line-height: 1.55;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mw-latest-date {
  font-size: 0.72rem;
  color: var(--mw-text-muted);
}

/* ── Left column: featured posts ── */

.mw-featured-item {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--mw-border);
}

.mw-featured-item:last-child {
  border-bottom: none;
}

.mw-featured-thumb {
  display: block;
  width: 100%;
  position: relative;
  padding-top: 56.25%; /* 16:9 ratio */
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.mw-featured-thumb img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.mw-featured-item h4 {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.25rem;
}

.mw-featured-item h4 a {
  color: var(--mw-text);
  text-decoration: none;
}

.mw-featured-item h4 a:hover {
  color: var(--mw-navy);
}

.mw-featured-item time {
  font-size: 0.7rem;
  color: var(--mw-text-muted);
}

/* ── Right column: most popular ── */

.mw-popular-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--mw-border);
}

.mw-popular-item:last-child {
  border-bottom: none;
}

.mw-popular-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--mw-border);
  flex-shrink: 0;
  width: 2rem;
  line-height: 1.2;
}

.mw-popular-text {
  flex: 1;
  min-width: 0;
}

.mw-popular-text h4 {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.2rem;
}

.mw-popular-text h4 a {
  color: var(--mw-text);
  text-decoration: none;
}

.mw-popular-text h4 a:hover {
  color: var(--mw-navy);
}

.mw-popular-text time {
  font-size: 0.7rem;
  color: var(--mw-text-muted);
}

.mw-popular-thumb img {
  width: 60px;
  height: 48px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

/* ── Mobile: single column, stacked ── */

@media screen and (max-width: 899px) {
  .mw-hero-inner {
    grid-template-columns: 1fr;
  }

  .mw-hero-latest   { order: 1; }
  .mw-hero-featured { order: 2; }
  .mw-hero-popular  { order: 3; }

  .mw-latest-image img {
    height: 220px;
  }
}


/* ═══════════════════════════════════════════════════════
   SECTION 9: BELOW-HERO FEED
   Latest/Top toggle tabs + post cards + "Also Check Out" sidebar
   ═══════════════════════════════════════════════════════ */

/* Two-column layout: post feed (left) + sidebar (right) */
.mw-content-with-sidebar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

/* ── Tab toggle ── */

.mw-feed-tabs {
  display: flex;
  background: #e8eaf0;
  border-radius: 4px;
  padding: 3px;
  width: fit-content;
  gap: 0;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.mw-feed-tab {
  background: transparent;
  border: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mw-text-muted);
  width: 90px;
  text-align: center;
  padding: 0.4rem 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.mw-feed-tab.mw-tab-active {
  background: var(--mw-navy);
  color: #fff;
}

.mw-feed-hidden {
  display: none;
}

/* ── Post cards ── */

.mw-post-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--mw-navy);
}

.mw-card-text {
  flex: 1;
  min-width: 0;
}

.mw-card-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.3rem;
}

.mw-card-title a {
  color: var(--mw-text);
  text-decoration: none;
}

.mw-card-title a:hover {
  color: var(--mw-navy);
}

.mw-card-excerpt {
  font-size: 0.85rem;
  color: var(--mw-text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

/* Strip margins from WP's auto-generated <p> inside excerpt */
.mw-card-excerpt p {
  margin: 0;
}

.mw-card-date {
  font-size: 0.72rem;
  color: var(--mw-text-muted);
}

.mw-card-thumb {
  flex: 0 0 180px;
  width: 180px;
  overflow: hidden;
  border-radius: 2px;
}

.mw-card-thumb img {
  width: 180px !important;
  height: 120px !important;
  object-fit: cover !important;
  display: block;
}

/* ── "Also Check Out" sidebar ── */

.mw-also-sidebar {
  padding-top: calc(1.5rem + 2.25rem - 12px); /* align label with pill top */
}

.mw-also-widget {
  position: sticky;
  top: 1.5rem;
}

.mw-also-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mw-navy);
  border-bottom: 2px solid var(--mw-navy);
  padding-bottom: 0.6rem;
  margin: 0 0 0.9rem;
}

.mw-also-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mw-also-list li {
  margin-bottom: 0.5rem;
}

.mw-also-list a {
  display: block;
  background: #fff;
  border: 1px solid var(--mw-border);
  padding: 0.6rem 0.75rem;
  box-shadow: 0 3px 6px -2px rgba(26, 35, 126, 0.15);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--mw-text);
  text-decoration: none;
}

.mw-also-list a:hover {
  box-shadow: 0 4px 8px -2px rgba(26, 35, 126, 0.25);
  color: var(--mw-navy);
}

/* Mobile: stack sidebar below main content */
@media screen and (max-width: 899px) {
  .mw-content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .mw-also-sidebar {
    padding-top: 0;
  }

  .mw-also-widget {
    position: static;
  }
}


/* ═══════════════════════════════════════════════════════
   SECTION 10: NOTES PAGE
   /notes archive and single-note view
   ═══════════════════════════════════════════════════════ */

.mw-notes-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.mw-notes-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mw-navy);
  margin: 0;
}

.mw-notes-header {
  border-bottom: 2px solid var(--mw-navy);
  padding-bottom: 1rem;
  margin-bottom: 0;
}

.mw-note {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--mw-border);
}

.mw-note:last-child {
  border-bottom: none;
}

.mw-note-date {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mw-navy);
  margin-bottom: 0.6rem;
}

.mw-note-body {
  font-size: 0.975rem;
  line-height: 1.65;
  color: var(--mw-text);
}

.mw-note-body p {
  margin: 0 0 0.75rem;
}

.mw-note-body p:last-child {
  margin-bottom: 0;
}

.mw-note-body a {
  color: var(--mw-navy);
  text-decoration: underline;
}

.mw-note-body a:hover {
  color: var(--mw-navy-dark);
}

.mw-note-image {
  margin: 0.9rem 0 0;
}

.mw-note-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.mw-note-back {
  margin-top: 2rem;
  font-size: 0.875rem;
}

.mw-note-back a {
  color: var(--mw-navy);
  text-decoration: none;
  font-weight: 600;
}

.mw-note-back a:hover {
  text-decoration: underline;
}

.mw-notes-empty {
  color: var(--mw-text-muted);
  font-size: 0.875rem;
  padding: 2rem 0;
}

.mw-notes-empty a {
  color: var(--mw-navy);
}
