/* Morzepay blog: index, article and email preference pages. Loads after site.css and reuses its tokens. */
.blog-body { background: #fff; }
.b-wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.b-wrap.wide { max-width: 1160px; }

/* index hero */
.b-hero { padding: 72px 0 36px; border-bottom: 1px solid var(--line);
  background: radial-gradient(50% 120% at 0% 0%, rgba(0, 209, 56, .09), transparent 70%), radial-gradient(40% 120% at 100% 0%, rgba(167, 139, 250, .10), transparent 70%); }
.b-eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }
.b-hero h1 { font-size: clamp(34px, 5vw, 56px); max-width: 15em; }
.b-lede { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 38em; margin: 18px 0 30px; }
.b-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.b-cats a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 550; transition: border-color .15s, background .15s; }
.b-cats a:hover { border-color: #c9cfcb; }
.b-cats a.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* cards */
.b-featured { padding: 44px 0 8px; }
.b-section { font-size: 15px; letter-spacing: -0.01em; margin: 44px 0 20px; color: var(--ink); font-weight: 650; }
.b-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; padding-bottom: 24px; }
.b-card { display: flex; flex-direction: column; min-width: 0; }
.b-cover { display: block; aspect-ratio: 1200 / 630; border-radius: 14px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); position: relative; }
.b-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.b-card:hover .b-cover img { transform: scale(1.025); }
.b-cover { --tint: #d9ccff; } .b-cover.hue-1 { --tint: #bfe0ff; } .b-cover.hue-2 { --tint: #ffd6e7; } .b-cover.hue-3 { --tint: #ffe3a8; } .b-cover.hue-4 { --tint: #c9f3d4; } .b-cover.hue-5 { --tint: #ffd2bf; }
.b-placeholder { position: absolute; inset: 0; display: grid; place-items: end start; padding: 18px;
  background: radial-gradient(80% 90% at 85% 10%, var(--tint), transparent 60%), radial-gradient(70% 80% at 10% 100%, rgba(0, 209, 56, .25), transparent 60%),
    radial-gradient(circle, rgba(11, 16, 13, .10) 1px, transparent 1.3px) 0 0 / 16px 16px, #f4f6f4; }
.b-placeholder span { font-weight: 650; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); background: rgba(255, 255, 255, .75); padding: 4px 10px; border-radius: 8px; }
.b-card-body { padding-top: 16px; display: flex; flex-direction: column; flex: 1; }
.b-meta { display: flex; gap: 10px; align-items: center; margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.b-cat { color: var(--brand-ink); font-weight: 600; }
.b-title { font-size: 20px; line-height: 1.28; letter-spacing: -0.02em; margin: 0 0 8px; font-weight: 650; }
.b-title a { color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .25s; }
.b-title a:hover { background-size: 100% 1.5px; }
.b-excerpt { margin: 0 0 14px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.b-by { margin: auto 0 0; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.b-by > span:nth-child(2) { color: var(--ink-2); font-weight: 550; }
.b-dot { color: #b9c0bb; }
.b-avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-size: 11px; font-weight: 700; color: var(--on-brand); background: linear-gradient(135deg, #7dfa9e, var(--brand)); letter-spacing: .02em; }
.b-avatar.lg { width: 42px; height: 42px; font-size: 14px; }

.b-card.big { display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px; align-items: center; }
.b-card.big .b-cover { border-radius: 18px; }
.b-card.big .b-card-body { padding: 0; }
.b-card.big .b-title { font-size: clamp(26px, 3vw, 38px); line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 14px; }
.b-card.big .b-excerpt { font-size: 17px; -webkit-line-clamp: 4; margin-bottom: 22px; }

.b-pager { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0 56px; }
.b-empty { padding: 80px 0; text-align: center; color: var(--muted); }
.b-empty h2 { color: var(--ink); font-size: 26px; margin-bottom: 8px; }

/* article */
.b-preview { position: sticky; top: 0; z-index: 40; background: #fff4d6; color: #6b4a00; text-align: center; font-size: 13.5px; font-weight: 600; padding: 7px; border-bottom: 1px solid #f1dfaa; }
.b-head { max-width: 756px; padding-top: 64px; padding-bottom: 36px; }
.b-head.has-toc, .b-after.has-toc { max-width: 1048px; }
.b-head.has-toc > * { max-width: 760px; }
.b-after { max-width: 756px; }
.b-crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; margin-bottom: 22px; color: #b9c0bb; }
.b-crumbs a { color: var(--brand-ink); text-decoration: none; font-weight: 550; }
.b-crumbs a:hover { text-decoration: underline; }
.b-head h1 { font-size: clamp(34px, 4.8vw, 54px); line-height: 1.06; letter-spacing: -0.038em; }
.b-standfirst { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); margin: 20px 0 0; max-width: 36em; }
.b-byline { display: flex; align-items: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.b-byline-text { display: flex; flex-direction: column; line-height: 1.3; font-size: 15px; }
.b-byline-text span { color: var(--muted); font-size: 13.5px; }
.b-byline-meta { margin-left: auto; color: var(--muted); font-size: 14px; display: flex; gap: 8px; }
.b-hero-img { margin: 0 auto 8px; }
.b-hero-img img { width: 100%; border-radius: 20px; border: 1px solid var(--line); aspect-ratio: 1200 / 630; object-fit: cover; background: var(--soft); }

.b-layout { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: center; padding-top: 44px; padding-bottom: 24px; }
.b-layout .prose { max-width: 700px; width: 100%; margin: 0 auto; }
.b-layout.has-toc { grid-template-columns: minmax(0, 700px) 220px; gap: 72px; }
.b-layout.has-toc .prose { margin: 0; }
.b-aside { display: none; }
.b-layout.has-toc .b-aside { display: block; }
.b-toc, .b-share { position: sticky; top: 96px; }
.b-toc { font-size: 14px; border-left: 1px solid var(--line); padding-left: 16px; margin-bottom: 28px; }
.b-toc p, .b-share p { margin: 0 0 10px; font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.b-toc a { display: block; color: var(--ink-2); text-decoration: none; padding: 4px 0; line-height: 1.4; }
.b-toc a.l3 { padding-left: 12px; font-size: 13.5px; color: var(--muted); }
.b-toc a:hover { color: var(--brand-ink); }
.b-share { top: auto; position: static; display: flex; flex-wrap: wrap; gap: 6px; }
.b-share p { width: 100%; }
.b-share a { font-size: 13px; padding: 5px 11px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; }
.b-share a:hover { border-color: #c9cfcb; color: var(--ink); }

/* the article text */
.prose { font-size: 18px; line-height: 1.72; color: #222a25; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.25em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); position: relative; scroll-margin-top: 90px; }
.prose h2 { font-size: 30px; line-height: 1.18; letter-spacing: -0.03em; margin: 2em 0 .6em; }
.prose h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; margin: 1.7em 0 .5em; }
.prose h4 { font-size: 18px; margin: 1.5em 0 .4em; letter-spacing: -0.01em; }
.prose .anchor { position: absolute; left: -1.1em; width: 1em; color: #c3c9c5; text-decoration: none; opacity: 0; font-weight: 500; transition: opacity .15s; }
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose h4:hover .anchor { opacity: 1; }
.prose a { color: var(--brand-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(0, 120, 42, .35); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.prose li { margin: .35em 0; padding-left: .2em; }
.prose li::marker { color: #9aa29d; }
.prose ol > li::marker { font-weight: 600; color: var(--muted); font-size: .92em; }
.prose li.task { list-style: none; margin-left: -1.4em; display: flex; gap: .6em; align-items: baseline; }
.prose .check { width: 1em; height: 1em; border: 1.5px solid #b9c0bb; border-radius: 4px; flex: none; transform: translateY(.15em); }
.prose .check.done { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%230b100d' stroke-width='2'/%3E%3C/svg%3E") center / 80% no-repeat; border-color: var(--brand); }
.prose blockquote { margin: 1.8em 0; padding: 2px 0 2px 22px; border-left: 3px solid var(--brand); font-size: 20px; line-height: 1.55; color: var(--ink); letter-spacing: -0.01em; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.6em 0; }
.prose code { font-family: 'Geist Mono', ui-monospace, Menlo, monospace; font-size: .86em; background: var(--soft-2); border: 1px solid var(--line); padding: .1em .38em; border-radius: 6px; color: #1a221d; }
.prose pre.code { position: relative; background: #0d1410; color: #e3ebe5; border-radius: 14px; padding: 20px 22px; overflow-x: auto; margin: 1.6em 0; font-size: 14.5px; line-height: 1.65; }
.prose pre.code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.prose pre.code[data-lang]::before { content: attr(data-lang); position: absolute; top: 10px; right: 14px; font: 600 11px/1 'Geist Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: #6f8a77; }
.prose figure { margin: 2em 0; }
.prose figure img, .prose p img { border-radius: 14px; border: 1px solid var(--line); width: 100%; background: var(--soft); }
.prose figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; line-height: 1.5; }
.prose .table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.prose th { text-align: left; font-weight: 600; background: var(--soft); color: var(--ink); }
.prose .al-right { text-align: right; } .prose .al-center { text-align: center; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose .callout { margin: 1.8em 0; padding: 16px 20px; border-radius: 12px; border: 1px solid; font-size: 16.5px; line-height: 1.6; }
.prose .callout > :last-child { margin-bottom: 0; }
.prose .callout p { margin-bottom: .7em; }
.prose .callout-label { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin: 0 0 6px !important; }
.prose .callout.note { background: #f1f6ff; border-color: #d6e4ff; } .prose .callout.note .callout-label { color: #2563eb; }
.prose .callout.tip { background: var(--brand-wash); border-color: #c4efce; } .prose .callout.tip .callout-label { color: var(--brand-ink); }
.prose .callout.warning { background: #fff7e8; border-color: #f6dfb0; } .prose .callout.warning .callout-label { color: #9a5a00; }
.prose .callout.important { background: #f6f0ff; border-color: #e2d4fb; } .prose .callout.important .callout-label { color: #7a2db8; }
.prose del { color: var(--muted); }

.b-after { padding-bottom: 20px; }
.b-author-card { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding: 28px 0 0; }
.b-author-card div { display: flex; flex-direction: column; line-height: 1.35; }
.b-author-card div span { color: var(--muted); font-size: 14px; }
.b-author-card .btn { margin-left: auto; }
.b-related { padding-bottom: 24px; }

/* footer CTA */
.b-cta { border-top: 1px solid var(--line); margin-top: 40px; background: radial-gradient(60% 140% at 0% 100%, rgba(0, 209, 56, .10), transparent 70%), var(--soft); }
.b-cta .b-wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.b-cta h2 { font-size: clamp(26px, 3vw, 36px); }
.b-cta p { color: var(--muted); margin: 8px 0 0; max-width: 32em; }
.b-cta .cta-row { justify-content: flex-start; }
.site-foot.b-foot { border-top: 1px solid var(--line); max-width: 1160px; margin: 0 auto; padding: 56px 28px 28px; }
.foot-base { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; }
.foot-base a { color: var(--ink-2); text-decoration: none; }

/* email preferences */
.b-unsub { padding-top: 80px; padding-bottom: 40px; }
.b-unsub-card { max-width: 520px; margin: 0 auto; text-align: center; border: 1px solid var(--line); border-radius: 18px; padding: 40px 32px; }
.b-unsub-card h1 { font-size: 30px; margin-bottom: 12px; }
.b-unsub-card p { color: var(--ink-2); }
.b-unsub-card form { margin-top: 22px; }
.b-unsub-card button { cursor: pointer; font-family: inherit; }

@media (max-width: 1100px) {
  .b-layout.has-toc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .b-layout.has-toc .prose { margin: 0 auto; }
  .b-layout.has-toc .b-aside { max-width: 700px; width: 100%; margin: 28px auto 0; }
  .b-layout.has-toc .b-toc { display: none; }
  .b-head.has-toc, .b-after.has-toc { max-width: 756px; }
}
@media (max-width: 900px) {
  .b-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-card.big { grid-template-columns: 1fr; gap: 20px; }
  .nav nav { display: none; }
}
@media (max-width: 640px) {
  .b-wrap { padding: 0 16px; }
  .nav .bar { padding: 0 16px; gap: 12px; }
  .nav-cta .btn.soft { display: none; }
  .b-hero { padding: 44px 0 26px; }
  .b-cats { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .b-cats a { flex: none; }
  .b-grid { grid-template-columns: 1fr; gap: 34px; }
  .b-featured { padding-top: 28px; }
  .b-head { padding-top: 40px; padding-bottom: 26px; }
  .b-byline-meta { margin-left: 0; width: 100%; }
  .b-hero-img img { border-radius: 14px; }
  .b-layout { padding-top: 30px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 25px; } .prose h3 { font-size: 20px; }
  .prose .anchor { display: none; }
  .prose pre.code { margin-left: -16px; margin-right: -16px; border-radius: 0; font-size: 13.5px; }
  .b-author-card { flex-wrap: wrap; }
  .b-author-card .btn { margin-left: 0; }
  .b-cta .b-wrap { padding-top: 40px; padding-bottom: 40px; }
  .site-foot.b-foot { padding: 40px 16px 24px; }
  .foot-base { flex-direction: column; }
}
