/* Approved public MOST header and the standalone design reference page. */
/* enhancements.css reserves 5rem above body for the old fixed header.
   The preview has its own header spacer; retain only a 24px content gap here. */
body:has([data-most-preview-live]) { padding-top: 24px; }
.most-preview, .most-preview-page { margin: 0; background: #fff; color: #141414; font-family: Arial, Helvetica, sans-serif; }
.most-preview *, .most-preview *::before, .most-preview *::after { box-sizing: border-box; }
.most-preview a { color: inherit; text-decoration: none; }
.most-preview button, .most-preview input { font: inherit; }
.most-preview a:focus-visible, .most-preview button:focus-visible, .most-preview input:focus-visible { outline: 2px solid #397981; outline-offset: 5px; }
.most-preview-sr-only, .most-preview-skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.most-preview-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px; background: white; }
.most-preview-header-space { height: 264px; }
.most-preview-header { position: absolute; top: 0; left: 0; width: 100%; z-index: 20; background: #fff; color: #515b5c; }
.most-preview-header-inner { max-width: 1280px; margin: auto; padding: 0 24px; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: 80px 104px 80px; align-items: center; }
.most-preview-utilities { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 0; }
.most-preview-icon-button { width: 40px; height: 44px; border: 0; padding: 9px; background: transparent; color: #397981; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 6px; flex-shrink: 0; }
.most-preview-icon-button:hover { background: #edf4f4; }
.most-preview-icon-button svg { width: 24px; height: 24px; }
.most-preview-brand { grid-column: 1 / -1; grid-row: 2; justify-self: center; text-align: center; }
.most-preview-wordmark { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 52px; letter-spacing: -3px; font-weight: 500; line-height: 1.2; text-transform: uppercase; }
.most-preview-symbol { display: inline-block; position: relative; width: 40px; height: 40px; border-radius: 6px; background: #397981; flex-shrink: 0; }
.most-preview-symbol::after { content: ''; position: absolute; inset: 7px; background: white; mask: url('/projects/most/it-project/img/logo-most-short.svg') center / contain no-repeat; -webkit-mask: url('/projects/most/it-project/img/logo-most-short.svg') center / contain no-repeat; }
.most-preview-tagline { font-family: Arial, Helvetica, sans-serif; font-size: 10px; line-height: 1.6; letter-spacing: 6px; text-transform: uppercase; margin: 18px 0 0; max-width: 620px; }
.most-preview-support { grid-column: 3; grid-row: 1; justify-self: end; padding: 16px 24px; border-radius: 999px; background: #397981; color: #fff !important; font-size: 14px; line-height: 1.2; text-align: center; }
.most-preview-support:hover { background: #2c6067; }
.most-preview-nav { grid-column: 1 / -1; grid-row: 3; justify-self: center; display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 16px 32px; min-height: 80px; padding: 18px 12px; border-bottom: 1px solid #ddd; font-size: 14px; line-height: 1.4; }
.most-preview-nav a { padding: 8px 0; }
.most-preview-nav a:hover { color: #397981; text-decoration: underline; text-underline-offset: 5px; }
.most-preview-home-symbol, .most-preview-menu-toggle { display: none; }
.most-preview-header.is-compact { position: fixed; border-bottom: 1px solid #e6e6e6; box-shadow: 0 4px 12px #00000004; }
.most-preview-header.is-compact .most-preview-header-inner { grid-template-rows: 80px; }
.most-preview-header.is-compact .most-preview-brand, .most-preview-header.is-compact .most-preview-home-outline { display: none; }
.most-preview-header.is-compact .most-preview-home-symbol { display: inline-block; width: 20px; height: 20px; border-radius: 3px; }
.most-preview-home-symbol::after { inset: 3px; }
.most-preview-header.is-compact .most-preview-nav { grid-column: 2; grid-row: 1; border: 0; gap: 24px; }
.most-preview-content { max-width: 1280px; margin: auto; padding: 28px 24px 48px; }
/* Apply the approved content spacing on pages using the public MOST header. */
body:has([data-most-preview-live]) .top-post { padding-top: 4px; }
.most-preview-article { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; margin: 0 0 80px; align-items: start; }
.most-preview-article-image img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; }
.most-preview-article-copy h1, .most-preview-article-copy h2 { margin: 12px 0 28px; font-size: clamp(26px, 3vw, 40px); line-height: 1.15; font-weight: 400; overflow-wrap: anywhere; }
.most-preview-article-copy a:hover { text-decoration: underline; text-underline-offset: 5px; }
.most-preview-article-copy p { font-size: 16px; color: #515151; line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
.most-preview-note { color: #647273; border-top: 1px solid #ddd; padding-top: 20px; line-height: 1.6; font-size: 14px; }
@media (max-width: 1100px) {
  .most-preview-header.is-compact .most-preview-nav { gap: 14px; font-size: 13px; }
  .most-preview-header.is-compact .most-preview-support { padding: 14px 18px; }
}
@media (max-width: 900px) {
  .most-preview-header-space { height: 72px; }
  .most-preview-header, .most-preview-header.is-compact { position: fixed; border-bottom: 1px solid #e6e6e6; }
  .most-preview-header-inner, .most-preview-header.is-compact .most-preview-header-inner { padding: 0 20px; grid-template-columns: 1fr auto auto; grid-template-rows: 72px auto; column-gap: 8px; }
  .most-preview-brand, .most-preview-header.is-compact .most-preview-brand, .most-preview-home-outline { display: none; }
  .most-preview-home-symbol, .most-preview-header.is-compact .most-preview-home-symbol { display: inline-block; width: 24px; height: 24px; border-radius: 4px; }
  .most-preview-menu-toggle, .most-preview-header.is-compact .most-preview-menu-toggle { display: inline-flex; grid-column: 3; grid-row: 1; }
  .most-preview-support { grid-column: 2; }
  .most-preview-nav, .most-preview-header.is-compact .most-preview-nav { display: none; grid-column: 1 / -1; grid-row: 2; width: 100%; min-height: 0; max-height: calc(100dvh - 72px); overflow-y: auto; padding: 12px 0 20px; border: 0; font-size: 15px; gap: 4px 24px; }
  .most-preview-nav.is-open, .most-preview-header.is-compact .most-preview-nav.is-open { display: flex; }
  .most-preview-nav a { padding: 12px 0; }
  .most-preview-article { gap: 28px; }
}
@media (max-width: 600px) {
  .most-preview-header-space { height: 64px; }
  .most-preview-header-inner, .most-preview-header.is-compact .most-preview-header-inner { padding: 0 12px; grid-template-rows: 64px auto; column-gap: 4px; }
  .most-preview-support, .most-preview-header.is-compact .most-preview-support { max-width: min(155px, calc(100vw - 156px)); padding: 13px 14px; font-size: 13px; overflow-wrap: anywhere; }
  .most-preview-nav, .most-preview-header.is-compact .most-preview-nav { max-height: calc(100dvh - 64px); }
  .most-preview-content { padding: 12px 16px 24px; }
  .most-preview-article { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
  .most-preview-article-copy h1, .most-preview-article-copy h2 { font-size: 30px; margin: 0 0 18px; }
}
