/*
 * Mike's Balance desktop article prototype.
 * Scoped to body.mb-desktop-prototype and min-width: 1100px.
 * Mobile/tablet styles remain entirely in the existing child stylesheet.
 */

@media (min-width: 1100px) {
  body.mb-desktop-prototype {
    /* Exact palette sampled from the approved desktop mockup. */
    --mb-page: #FCFBF9;
    --mb-surface: #FAFAF7;
    --mb-surface-green: #EEF4EE;
    --mb-ink: #061925;
    --mb-body: #4B5562;
    --mb-muted: #646C75;
    --mb-soft-text: #92989C;
    --mb-line: #E8E8E4;
    --mb-green: #2C7A5A;
    --mb-green-2: #4F8A72;
    --mb-paper: #FCFBF9;
    --mb-soft: #F8F8F5;
    --mb-serif: "Source Serif Pro", Georgia, "Times New Roman", serif;
    --mb-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: var(--mb-page) !important;
    color: var(--mb-body) !important;
  }

  body.mb-desktop-prototype #wrapper,
  body.mb-desktop-prototype #single,
  body.mb-desktop-prototype #single > .content,
  body.mb-desktop-prototype #single .epcl-page-wrapper,
  body.mb-desktop-prototype .main-article,
  body.mb-desktop-prototype .main-article .post-content {
    background: var(--mb-page) !important;
  }

  body.mb-desktop-prototype #header {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    background: var(--mb-page) !important;
    border-bottom: 1px solid var(--mb-line);
  }

  body.mb-desktop-prototype #header.enable-sticky,
  body.mb-desktop-prototype #header.is-sticky,
  body.mb-desktop-prototype #header.sticky,
  body.mb-desktop-prototype #header.sticky-active,
  body.mb-desktop-prototype #header .menu-wrapper.is-sticky,
  body.mb-desktop-prototype #header .menu-wrapper.sticky {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
  }

  body.mb-desktop-prototype #header .sticky-logo {
    display: none !important;
  }

  body.mb-desktop-prototype #header,
  body.mb-desktop-prototype #header > div:first-child,
  body.mb-desktop-prototype #header .menu-wrapper,
  body.mb-desktop-prototype #header .menu-wrapper .grid-container {
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body.mb-desktop-prototype #header .menu-wrapper .grid-container {
    display: flex;
    align-items: center;
    width: 100% !important;
    max-width: 1240px !important;
    box-sizing: border-box;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
  }

  body.mb-desktop-prototype #header .logo {
    position: static;
    margin: 0 auto 0 0;
    transform: none;
  }

  body.mb-desktop-prototype #header .logo .title {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    color: var(--mb-ink) !important;
    font-family: var(--mb-serif) !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    letter-spacing: -.01em;
  }

  body.mb-desktop-prototype #header .logo .title span,
  body.mb-desktop-prototype #header .logo .title span::first-letter {
    color: var(--mb-ink) !important;
  }

  body.mb-desktop-prototype #header .logo .title::before {
    content: "MB";
    font-family: var(--mb-serif);
    font-size: 31px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.04em;
  }

  body.mb-desktop-prototype #header .main-nav {
    position: static;
    display: block;
    margin-left: auto;
  }

  body.mb-desktop-prototype #header .main-nav > ul.menu {
    display: flex;
    align-items: center;
    gap: 3px;
  }

  body.mb-desktop-prototype #header .main-nav > ul.menu > li {
    float: none;
    margin: 0;
  }

  body.mb-desktop-prototype #header .main-nav > ul.menu > li > a {
    padding: 12px 13px;
    color: var(--mb-ink);
    font-family: var(--mb-sans) !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
  }

  body.mb-desktop-prototype #header .main-nav .menu-item-67,
  body.mb-desktop-prototype #header .main-nav .menu-item-45,
  body.mb-desktop-prototype #header > .menu-wrapper > .grid-container > .epcl-search-button {
    display: none !important;
  }

  body.mb-desktop-prototype #header .mb-topics-item,
  body.mb-desktop-prototype #header .pll-parent-menu-item {
    position: relative;
  }

  body.mb-desktop-prototype #header .mb-topics-item > .sub-menu,
  body.mb-desktop-prototype #header .pll-parent-menu-item > .sub-menu {
    top: calc(100% + 4px);
    left: 0;
    min-width: 190px;
    padding: 9px;
    border: 1px solid var(--mb-line);
    border-radius: 10px;
    background: var(--mb-page);
    box-shadow: 0 14px 40px rgba(10,19,36,.08);
  }

  body.mb-desktop-prototype #header .pll-parent-menu-item > .sub-menu {
    left: 50% !important;
    right: auto !important;
    top: calc(100% + 8px) !important;
    min-width: 160px;
    transform: translateX(-50%) !important;
  }

  body.mb-desktop-prototype #header .sub-menu li a {
    padding: 8px 10px;
    border-radius: 7px;
    color: var(--mb-body);
    font-family: var(--mb-sans) !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0;
  }

  body.mb-desktop-prototype #header .sub-menu li a:hover {
    background: var(--mb-soft);
  }

  body.mb-desktop-prototype #header .pll-parent-menu-item {
    margin-left: 10px !important;
  }

  body.mb-desktop-prototype #header .pll-parent-menu-item > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  body.mb-desktop-prototype #header .pll-parent-menu-item > a > img {
    display: none !important;
  }

  body.mb-desktop-prototype #header .pll-parent-menu-item .sub-menu img {
    display: inline-block !important;
    width: 16px !important;
    height: 11px !important;
    object-fit: cover;
    vertical-align: middle;
  }

  body.mb-desktop-prototype #header .pll-parent-menu-item .sub-menu .current-lang > a {
    background: #E7F3FB;
    color: var(--mb-ink);
  }

  body.mb-desktop-prototype .mb-nav-icon {
    width: 17px;
    height: 17px;
  }

  body.mb-desktop-prototype #header .pll-parent-menu-item > a::after {
    margin-left: 0 !important;
    transform: translateX(-3px);
  }

  body.mb-desktop-prototype #header .search-menu-item a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 116px;
    margin-left: 10px;
    padding: 9px 13px !important;
    border: 1px solid var(--mb-line);
    border-radius: 999px;
    background: #fafaf7;
  }

  body.mb-desktop-prototype #header .search-menu-item svg {
    width: 15px;
    height: 15px;
  }

  body.mb-desktop-prototype .mb-search-label {
    color: var(--mb-soft-text);
    font-family: var(--mb-sans);
    font-weight: 500;
  }

  body.mb-desktop-prototype main#single {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 34px 28px 72px;
    box-sizing: border-box;
  }

  body.mb-desktop-prototype #single > .content.row,
  body.mb-desktop-prototype #single .epcl-page-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  body.mb-desktop-prototype #single .epcl-page-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 790px) minmax(285px, 320px);
    gap: 54px;
    align-items: start;
  }

  body.mb-desktop-prototype #single .left-content {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.mb-desktop-prototype #single #sidebar {
    display: block !important;
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.mb-desktop-prototype #single #sidebar > .sidebar-wrapper {
    display: none !important;
  }

  body.mb-desktop-prototype .main-article {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.mb-desktop-prototype .main-article > header {
    display: flex;
    flex-direction: column;
  }

  body.mb-desktop-prototype .main-article > header > .info {
    order: 1;
    margin: 0 0 24px !important;
    padding: 0 !important;
    text-align: left !important;
  }

  body.mb-desktop-prototype .main-article > header > .post-format-image {
    order: 2;
    margin: 0 0 28px !important;
  }

  body.mb-desktop-prototype .main-article > header > .clear {
    display: none;
  }

  body.mb-desktop-prototype .main-article header h1.main-title {
    max-width: 760px;
    margin: 0 0 13px !important;
    color: var(--mb-ink) !important;
    font-family: var(--mb-serif) !important;
    font-size: clamp(43px, 4vw, 54px) !important;
    font-weight: 700 !important;
    line-height: 1.02 !important;
    letter-spacing: -.035em !important;
    text-align: left !important;
  }

  body.mb-desktop-prototype .mb-article-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: var(--mb-soft-text);
    font-family: var(--mb-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
  }

  body.mb-desktop-prototype .mb-primary-category {
    color: var(--mb-green);
  }

  body.mb-desktop-prototype .mb-eyebrow-dot {
    color: var(--mb-soft-text);
  }

  body.mb-desktop-prototype .mb-article-intro {
    max-width: 720px;
    margin: 0 0 18px;
    color: var(--mb-muted);
    font-family: var(--mb-sans);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.45;
  }

  body.mb-desktop-prototype .main-article > header .info > .meta {
    display: none !important;
  }

  body.mb-desktop-prototype .mb-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    margin-top: 18px;
  }

  body.mb-desktop-prototype .mb-author-compact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--mb-ink);
    font-family: var(--mb-sans);
    font-size: 13px;
    font-weight: 700;
  }

  body.mb-desktop-prototype .mb-author-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    background-position: center;
    background-size: cover;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  }

  body.mb-desktop-prototype .mb-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: var(--mb-muted);
    font-family: var(--mb-sans);
    font-size: 13px;
  }

  body.mb-desktop-prototype .mb-read-time::before {
    content: "◷";
    margin-right: 6px;
    font-size: 15px;
  }

  body.mb-desktop-prototype .mb-share-button {
    display: inline-grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--mb-ink);
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
  }

  body.mb-desktop-prototype .mb-share-button:hover,
  body.mb-desktop-prototype .mb-share-button.is-copied {
    background: var(--mb-green-soft);
    color: var(--mb-green);
  }

  body.mb-desktop-prototype .mb-share-button svg {
    width: 21px;
    height: 21px;
  }

  body.mb-desktop-prototype .main-article .featured-image {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    overflow: hidden;
  }

  body.mb-desktop-prototype .main-article .featured-image::before,
  body.mb-desktop-prototype .main-article .featured-image::after {
    display: none !important;
  }

  body.mb-desktop-prototype .main-article .featured-image img {
    display: block;
    width: 100% !important;
    height: auto !important;
  }

  body.mb-desktop-prototype .main-article .post-content {
    padding: 0 !important;
  }

  body.mb-desktop-prototype .main-article .post-content .text {
    max-width: 760px;
    margin: 0;
    color: var(--mb-body) !important;
    font-family: var(--mb-serif) !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.58 !important;
    letter-spacing: 0 !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: auto;
  }

  body.mb-desktop-prototype .main-article .post-content .text p,
  body.mb-desktop-prototype .main-article .post-content .text li {
    color: var(--mb-body) !important;
    font-family: var(--mb-serif) !important;
    font-size: inherit !important;
    font-weight: 400 !important;
    line-height: inherit !important;
  }

  body.mb-desktop-prototype .main-article .post-content .text h2,
  body.mb-desktop-prototype .main-article .post-content .text h3,
  body.mb-desktop-prototype .main-article .post-content .text h4 {
    color: var(--mb-ink) !important;
    font-family: var(--mb-serif) !important;
    letter-spacing: -.02em !important;
  }

  body.mb-desktop-prototype .main-article .post-content .text h2 {
    font-size: 30px !important;
    line-height: 1.15 !important;
  }

  body.mb-desktop-prototype .main-article .post-content .text h3 {
    font-size: 23px !important;
    line-height: 1.2 !important;
  }

  body.mb-desktop-prototype .main-article .post-content .text figcaption {
    color: var(--mb-soft-text) !important;
    font-family: var(--mb-sans) !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  body.mb-desktop-prototype .main-article .post-content .text > .mb-header-source-intro {
    display: none !important;
  }

  body.mb-desktop-prototype.mb-desktop-enhanced .main-article .article-toc.mb-toc-source,
  body.mb-desktop-prototype.mb-desktop-enhanced .main-article .mb-legacy-toc-source {
    display: none !important;
  }

  body.mb-desktop-prototype .mb-editorial-rail {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  body.mb-desktop-prototype .mb-related-feature {
    position: relative;
    display: flex;
    min-height: 210px;
    padding: 18px;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 10px;
    background-color: #253748;
    background-position: center;
    background-size: cover;
    color: #fff !important;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(31,45,41,.12);
  }

  body.mb-desktop-prototype .mb-related-kicker {
    margin-bottom: 7px;
    font-family: var(--mb-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .82;
  }

  body.mb-desktop-prototype .mb-related-feature-title {
    max-width: 220px;
    font-family: var(--mb-serif);
    font-size: 24px;
    line-height: 1.06;
    letter-spacing: -.02em;
  }

  body.mb-desktop-prototype .mb-related-arrow {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--mb-green);
    font-size: 21px;
  }

  body.mb-desktop-prototype #single #sidebar .mb-editorial-rail .mb-editorial-callout.mb-editorial-callout--side {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 18px 19px !important;
    border-color: #E0E7E1 !important;
    border-left-color: var(--mb-green-2) !important;
    border-radius: 10px !important;
    background: var(--mb-surface-green) !important;
    box-shadow: none !important;
    color: var(--mb-body) !important;
    font-family: var(--mb-sans) !important;
    font-size: 14px;
    line-height: 1.45;
  }

  body.mb-desktop-prototype #single #sidebar .mb-editorial-rail .mb-editorial-callout p {
    font-size: inherit !important;
    line-height: inherit !important;
  }

  body.mb-desktop-prototype .mb-rail-toc,
  body.mb-desktop-prototype .mb-rail-related {
    padding: 17px 18px;
    border: 1px solid var(--mb-line);
    border-radius: 10px;
    background: var(--mb-surface);
  }

  body.mb-desktop-prototype .mb-rail-heading {
    margin-bottom: 10px;
    color: var(--mb-ink);
    font-family: var(--mb-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .065em;
    text-transform: uppercase;
  }

  body.mb-desktop-prototype .mb-rail-toc ul {
    position: relative;
    max-height: none;
    margin: 0;
    padding: 0 0 0 25px;
    overflow: visible;
  }

  body.mb-desktop-prototype .mb-rail-toc ul::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 7px;
    bottom: 7px;
    width: 1px;
    background: #BDD0C7;
  }

  body.mb-desktop-prototype .mb-rail-toc li {
    position: relative;
    margin: 0 0 10px;
    padding: 0;
    color: var(--mb-muted);
    font-family: var(--mb-sans);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.36;
  }

  body.mb-desktop-prototype .mb-rail-toc li:last-child {
    margin-bottom: 0;
  }

  body.mb-desktop-prototype .mb-rail-toc li::before {
    content: "";
    position: absolute;
    left: -22px;
    top: .48em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8EB6A5;
    box-shadow: 0 0 0 2px var(--mb-surface);
  }

  body.mb-desktop-prototype .mb-rail-toc li:first-child::before {
    background: var(--mb-green);
  }

  body.mb-desktop-prototype .mb-rail-toc a {
    color: #5A626C;
  }

  body.mb-desktop-prototype .mb-rail-related {
    display: grid;
    gap: 11px;
  }

  body.mb-desktop-prototype .mb-rail-related .mb-rail-heading {
    margin-bottom: 1px;
  }

  body.mb-desktop-prototype .mb-rail-related-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 10px;
    align-items: center;
    color: var(--mb-ink);
  }

  body.mb-desktop-prototype .mb-rail-thumb {
    width: 64px;
    height: 48px;
    border-radius: 6px;
    background-position: center;
    background-size: cover;
  }

  body.mb-desktop-prototype .mb-rail-related-title {
    font-family: var(--mb-serif);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
  }

  body.mb-desktop-prototype #epcl-related-stories {
    margin-top: 48px;
  }

  body.mb-desktop-prototype #author {
    margin-top: 42px;
  }
}
