/* =============================================================
   Micro Advisor — shared theme (design system + article styles)
   Used by the homepage chrome and every blog/post page.
   ============================================================= */

:root {
  /* default palette: Violet Pop (live-overridden by the colour switcher) */
  --bg: #f6f4ff; --surface: #ffffff; --ink: #161235; --muted: #6a6498;
  --green: #6035f0; --green-deep: #2a1873; --green-soft: #ebe6ff;
  --gold: #ff3d8b; --accent-ink: #ffffff; --gold-soft: #ffe1ee;
  --line: rgba(22,18,53,0.10); --line-soft: rgba(22,18,53,0.055);

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Public Sans", system-ui, sans-serif;
  --maxw: 1180px;
  --shadow: 0 1px 2px rgba(20,20,40,.05), 0 10px 34px rgba(20,20,40,.08);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
  transition: background .5s ease, color .5s ease;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
.eyebrow { font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 9px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--gold); display: inline-block; }

.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 600; font-size: 14.5px; padding: 11px 20px; border-radius: 10px; cursor: pointer; transition: transform .15s, box-shadow .2s, background .25s, color .25s; border: none; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--green) 30%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px color-mix(in srgb, var(--green) 38%, transparent); }
.btn-ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--green); transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--green); }
.btn-white:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--accent-ink); box-shadow: 0 8px 22px color-mix(in srgb, var(--gold) 40%, transparent); }
.btn-gold:hover { transform: translateY(-2px); }

/* ---------- Utility bar ---------- */
.topbar { background: var(--green-deep); color: #e6ecff; font-size: 13px; font-weight: 500; transition: background .5s ease; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 42px; gap: 18px; }
.topbar a { color: #e6ecff; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar .tb-left { display: flex; gap: 22px; align-items: center; }
.topbar .tb-right { display: flex; gap: 16px; align-items: center; color: rgba(255,255,255,.62); }
.topbar .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
@media (max-width: 720px){ .topbar .tb-left .hide-sm { display: none; } }

/* ---------- Header / nav ---------- */
header.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid var(--line-soft); transition: background .5s ease, border-color .5s ease; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(140deg, var(--green), color-mix(in srgb, var(--green) 55%, var(--gold))); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 20px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 6px 16px color-mix(in srgb, var(--green) 35%, transparent); }
.brand .bn { font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; white-space: nowrap; display: block; line-height: 1.1; }
.brand .bt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
nav.links { display: flex; gap: 30px; align-items: center; }
nav.links a { font-size: 14.5px; font-weight: 500; color: var(--ink); transition: color .2s; position: relative; }
nav.links a::after { content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0; background: var(--gold); border-radius:2px; transition: width .25s ease; }
nav.links a:hover { color: var(--green); }
nav.links a:hover::after { width: 100%; }
/* Services dropdown */
.nav-item { position: relative; display: flex; align-items: center; }
.dd-toggle { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 14.5px; font-weight: 500; color: var(--ink); background: none; border: none; cursor: pointer; padding: 0; }
.dd-toggle .chev { transition: transform .2s ease; }
.nav-item:hover .dd-toggle, .nav-item:focus-within .dd-toggle { color: var(--green); }
.nav-item:hover .dd-toggle .chev, .nav-item:focus-within .dd-toggle .chev { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(8px); min-width: 248px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease; z-index: 60; }
.dropdown::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink); transition: background .15s ease, color .15s ease; }
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--green-soft); color: var(--green); }
.dropdown a.feat { background: var(--green-soft); color: var(--green); font-weight: 700; }
.dropdown a .tagm { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); background: var(--gold-soft); padding: 3px 7px; border-radius: 999px; }
.dd-sep { height: 1px; background: var(--line-soft); margin: 6px 6px; }
.nav-cta { display: flex; gap: 12px; align-items: center; }
/* hamburger button — visible only on mobile */
.mob-menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; cursor: pointer; color: var(--ink); transition: background .15s; }
.mob-menu-btn:hover { background: var(--green-soft); }
/* mobile drawer */
.mob-nav { display: none; flex-direction: column; background: var(--surface); border-top: 1px solid var(--line-soft); padding: 12px 28px 20px; gap: 2px; }
.mob-nav.open { display: flex; }
.mob-nav a { font-size: 15.5px; font-weight: 500; color: var(--ink); padding: 12px 0; border-bottom: 1px solid var(--line-soft); transition: color .2s; }
.mob-nav a:last-child { border-bottom: none; }
.mob-nav a:hover { color: var(--green); }
.mob-nav .mob-cta { margin-top: 10px; background: var(--green); color: #fff; padding: 13px 20px; border-radius: 10px; text-align: center; font-weight: 700; border-bottom: none; }
.mob-nav .mob-cta:hover { color: #fff; opacity: .92; }

@media (max-width: 940px){ nav.links { display: none; } .mob-menu-btn { display: flex; align-items: center; } }
@media (max-width: 560px){ .nav-cta .btn-ghost { display: none; } }
/* On small phones hide the nav CTA button — hamburger (now outside nav-cta) stays visible */
@media (max-width: 480px){ .nav-cta { display: none; } }

/* WhatsApp floating chat button */
.wa-chat { position: fixed; left: 22px; bottom: 22px; z-index: 200; display: inline-flex; align-items: center; gap: 9px; background: #25d366; color: #fff; font-family: var(--sans); font-weight: 700; font-size: 13.5px; padding: 12px 18px; border-radius: 999px; box-shadow: 0 6px 24px rgba(37,211,102,.38); text-decoration: none; transition: transform .15s ease, box-shadow .2s ease; }
.wa-chat:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(37,211,102,.46); color: #fff; }
@media (max-width: 560px) { .wa-chat span { display: none; } .wa-chat { padding: 13px; } }

/* ---------- Footer ---------- */
footer { background: var(--green-deep); color: rgba(255,255,255,.66); padding: 64px 0 28px; transition: background .5s ease; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); }
footer .brand .bn { color: #fff; } footer .brand .bt { color: rgba(255,255,255,.5); }
footer .about { color: rgba(255,255,255,.6); font-size: 14px; margin: 18px 0 18px; max-width: 320px; }
footer .contact-line { color: rgba(255,255,255,.85); font-size: 14px; font-weight: 500; }
footer h4 { color: #fff; font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
footer ul { list-style: none; display: grid; gap: 11px; }
footer ul a { color: rgba(255,255,255,.6); font-size: 14px; transition: color .2s, padding-left .2s; }
footer ul a:hover { color: #fff; padding-left: 4px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.5); flex-wrap: wrap; }
.disclaimer { font-size: 12.5px; color: rgba(255,255,255,.42); max-width: 760px; margin-top: 16px; line-height: 1.5; }
@media (max-width: 820px){ .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Colour switcher ---------- */
.theme-switch { position: fixed; right: 22px; bottom: 22px; z-index: 200; font-family: var(--sans); }
.theme-fab { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; background: var(--surface); color: var(--ink); font-weight: 700; font-size: 13.5px; padding: 12px 16px; border-radius: 999px; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .15s ease; }
.theme-fab:hover { transform: translateY(-2px); }
.theme-fab .swirl { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--green), var(--gold), var(--green)); box-shadow: inset 0 0 0 2px var(--surface); }
.theme-panel { position: absolute; right: 0; bottom: 58px; width: 264px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; transform-origin: bottom right; transition: opacity .2s ease, transform .2s ease; }
.theme-panel[hidden] { display: none; }
.theme-panel.closing { opacity: 0; transform: scale(.92); }
.tp-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.tp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tp-swatch { cursor: pointer; border-radius: 12px; padding: 12px; border: 1.5px solid var(--line); background: transparent; display: flex; flex-direction: column; gap: 9px; align-items: flex-start; transition: border-color .2s, transform .12s; }
.tp-swatch:hover { transform: translateY(-2px); }
.tp-swatch.active { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent); }
.tp-dots { display: flex; }
.tp-dots i { width: 22px; height: 22px; border-radius: 50%; display: inline-block; border: 2px solid var(--surface); }
.tp-dots i:nth-child(2){ margin-left: -8px; }
.tp-name { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.tp-note { font-size: 11.5px; color: var(--muted); margin-top: 14px; line-height: 1.45; }

/* ---------- Reveal (slide only — opacity is NEVER touched, so a paused/stalled
   renderer can never leave content hidden; worst case is a tiny offset) ---------- */
.reveal-ready [data-reveal] { transform: translateY(14px); transition: transform .55s ease; }
.reveal-ready [data-reveal].in { transform: none; }

/* =============================================================
   ARTICLE / POST styles
   ============================================================= */
.post { padding-bottom: 30px; }

/* breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); padding: 26px 0 0; }
.crumbs a { color: var(--muted); transition: color .2s; }
.crumbs a:hover { color: var(--green); }
.crumbs .sl { opacity: .5; }
.crumbs .cur { color: var(--ink); font-weight: 600; }

/* post hero */
.post-hero { padding: 22px 0 14px; }
.post-cat { display: inline-flex; align-items: center; gap: 8px; background: var(--gold-soft); color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 7px 13px; border-radius: 999px; }
.post-title { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.14; margin: 20px 0 18px; max-width: 16ch; }
.post-lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 60ch; line-height: 1.6; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.post-meta .pm-av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(140deg, var(--green), var(--gold)); color: #fff; font-family: var(--serif); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.post-meta b { color: var(--ink); font-weight: 700; }
.post-meta .pm-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

/* decorative cover band (replaces a feature photo) */
.post-cover { margin: 30px 0 0; border-radius: 18px; height: 200px; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--green), var(--green-deep)); display: flex; align-items: flex-end; padding: 26px 30px; }
.post-cover::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px); }
.post-cover::after { content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: color-mix(in srgb, var(--gold) 55%, transparent); filter: blur(20px); opacity: .55; }
.post-cover .pc-glyph { position: absolute; right: 24px; top: -28px; font-family: var(--serif); font-weight: 700; font-size: 200px; line-height: 1; color: rgba(255,255,255,.10); user-select: none; }
.post-cover .pc-tag { position: relative; color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.post-cover .pc-tag span { display: block; font-family: var(--sans); font-weight: 500; font-size: 12.5px; color: rgba(255,255,255,.75); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }

/* layout: TOC + content */
.post-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 60px; align-items: start; margin: 46px 0 10px; }
.toc { position: sticky; top: 100px; }
.toc h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc ul { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; font-size: 13.5px; color: var(--muted); border-left: 2px solid transparent; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--green); }
.toc a.active { color: var(--green); font-weight: 700; border-left-color: var(--green); }
@media (max-width: 900px){
  .post-layout { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: 18px 20px; }
  .toc ul { border-left: none; }
  .toc a { padding-left: 0; border-left: none; }
  .toc a.active { border-left: none; }
}

/* prose */
.prose { max-width: 760px; }
.prose > p { font-size: 17px; line-height: 1.78; color: color-mix(in srgb, var(--ink) 86%, var(--bg)); margin-bottom: 20px; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin: 50px 0 16px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin: 30px 0 10px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a.link { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 4px; display: grid; gap: 11px; list-style: none; }
.prose ul li, .prose ol li { font-size: 16.5px; line-height: 1.7; color: color-mix(in srgb, var(--ink) 86%, var(--bg)); position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--gold); position: absolute; left: 0; top: 9px; flex: none; }
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; padding-left: 36px; }
.prose ol li::before { content: counter(li); font-family: var(--serif); font-weight: 700; font-size: 13px; color: var(--green); background: var(--green-soft); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; top: 3px; left: 0; }

/* callout / note (no left-border trope — tinted card + icon chip) */
.callout { display: flex; gap: 15px; background: var(--green-soft); border-radius: 14px; padding: 20px 22px; margin: 28px 0; }
.callout .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--surface); color: var(--green); display: grid; place-items: center; flex: none; }
.callout p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.callout b { font-weight: 700; }

/* step rows */
.steps-list { display: grid; gap: 16px; margin: 26px 0; }
.step-row { display: grid; grid-template-columns: 44px 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: 22px 24px; }
.step-row .sn { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 17px; display: grid; place-items: center; }
.step-row h3 { margin: 2px 0 7px; font-size: 18.5px; }
.step-row p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--muted); }

/* comparison table */
.table-scroll { overflow-x: auto; margin: 26px 0; border-radius: 14px; border: 1px solid var(--line); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.cmp-table th, .cmp-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.cmp-table thead th { background: var(--green); color: #fff; font-weight: 700; font-family: var(--sans); letter-spacing: .01em; }
.cmp-table thead th:first-child { background: var(--green-deep); }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--green) 5%, transparent); }
.cmp-table td:first-child { font-weight: 700; color: var(--ink); }
.cmp-table .hi { color: var(--green); font-weight: 700; }

/* takeaways */
.takeaways { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; margin: 32px 0; }
.takeaways h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 16px; }
.takeaways h3 .ic { color: var(--gold); }
.takeaways ul { list-style: none; display: grid; gap: 12px; padding: 0; }
.takeaways li { display: grid; grid-template-columns: 24px 1fr; gap: 11px; font-size: 15.5px; line-height: 1.6; align-items: start; }
.takeaways li .ck { color: var(--green); margin-top: 2px; }

/* FAQ */
.faq { margin: 24px 0; }
.faq details { border-bottom: 1px solid var(--line-soft); padding: 18px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line-soft); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pl { flex: none; width: 22px; height: 22px; position: relative; transition: transform .25s ease; color: var(--green); }
.faq summary .pl::before, .faq summary .pl::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.faq summary .pl::before { left: 4px; right: 4px; top: 10px; height: 2px; }
.faq summary .pl::after { top: 4px; bottom: 4px; left: 10px; width: 2px; transition: opacity .25s ease; }
.faq details[open] summary .pl { transform: rotate(180deg); }
.faq details[open] summary .pl::after { opacity: 0; }
.faq p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.7; color: var(--muted); }

/* inline CTA */
.post-cta { background: linear-gradient(135deg, var(--green), var(--green-deep)); color: #fff; border-radius: 18px; padding: 34px 34px; margin: 40px 0; position: relative; overflow: hidden; }
.post-cta::after { content: ""; position: absolute; right: -50px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; background: color-mix(in srgb, var(--gold) 50%, transparent); filter: blur(26px); opacity: .5; }
.post-cta h3 { color: #fff; font-size: 23px; margin-bottom: 10px; position: relative; }
.post-cta p { color: rgba(255,255,255,.82); font-size: 15.5px; margin-bottom: 20px; max-width: 52ch; position: relative; }
.post-cta .btns { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }

/* author */
.author { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; padding: 22px 24px; margin: 36px 0 0; }
.author .av { width: 56px; height: 56px; border-radius: 50%; flex: none; background: linear-gradient(140deg, var(--green), var(--gold)); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 19px; display: grid; place-items: center; }
.author .nm { font-weight: 700; font-size: 15.5px; color: var(--ink); }
.author .bio { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

/* tags + share */
.post-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin: 30px 0; padding: 24px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.post-tags { display: flex; gap: 9px; flex-wrap: wrap; }
.tag-chip { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--green-soft); padding: 6px 12px; border-radius: 999px; }
.share { display: flex; gap: 9px; align-items: center; }
.share span { font-size: 13px; color: var(--muted); font-weight: 600; }
.share a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.share a:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* related */
.related { margin-top: 8px; }
.related h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 26px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rel-card { display: block; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: 24px; transition: transform .2s, box-shadow .25s, border-color .2s; }
.rel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line); }
.rel-card .rc-cat { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.rel-card h3 { font-size: 18px; margin: 12px 0 10px; line-height: 1.3; }
.rel-card .rc-more { font-size: 13.5px; font-weight: 700; color: var(--green); display: inline-flex; gap: 6px; align-items: center; transition: gap .2s; }
.rel-card:hover .rc-more { gap: 11px; }
@media (max-width: 820px){ .related-grid { grid-template-columns: 1fr; } }

.post-note { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 30px 0 10px; padding: 16px 18px; background: color-mix(in srgb, var(--green) 4%, transparent); border-radius: 12px; }

/* top CTA strip on post pages */
.post-cta-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 28px; margin: 28px 0 0; }
.post-cta-strip .pcs-text { font-size: 16px; font-weight: 700; color: var(--ink); font-family: var(--serif); }
.post-cta-strip .pcs-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
@media (max-width: 640px) { .post-cta-strip { flex-direction: column; align-items: flex-start; } }

/* =============================================================
   MOBILE — all responsive fixes in one place
   Applied to every page that uses ma-theme.css
   ============================================================= */

/* Reduce horizontal padding on small screens */
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
}

/* Post hero — tighten title on mobile */
@media (max-width: 600px) {
  .post-title { max-width: 100%; font-size: clamp(26px, 8vw, 36px); }
  .post-lead  { font-size: 16px; }
  .post-cover { height: 150px; padding: 18px 20px; }
  .post-cover .pc-glyph { font-size: 130px; }
  .post-cta   { padding: 26px 22px; }
  .post-cta h3 { font-size: 20px; }
  .post-cta-strip { padding: 16px 18px; }
  .step-row { grid-template-columns: 36px 1fr; gap: 14px; padding: 18px 16px; }
  .step-row .sn { width: 36px; height: 36px; font-size: 15px; }
  .callout { padding: 16px 16px; gap: 12px; }
  .takeaways { padding: 20px 18px; }
  .post-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* Contact page form */
@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr !important; }
  .contact-form-panel { padding: 28px 20px !important; }
  .contact-trust-bar { flex-direction: column; align-items: flex-start !important; gap: 12px !important; }
}

/* Footer columns stack on mobile */
@media (max-width: 480px) {
  footer { padding: 44px 0 24px; }
  .foot-bottom { flex-direction: column; gap: 8px; }
}

/* Posts listing page */
@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr !important; }
}
