/* p-m47: /blog/best-erp-small-manufacturers-india-2026/ (G04). Porthole with a stamp ring, conveyor of springs and racks,
   timeline scrubber, sticky reveal, monospace spec labels. Accent purple with steel grey. Classes prefixed m47-. */
#main { --m47: #9333EA; --m47-d: #581C87; --m47-steel: #475569; --m47-bg: #F5F3FF; }
.m47-hero { background: linear-gradient(180deg, #F7F5FC 0%, #fff 100%); }
.m47-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; margin-top: 18px; }
.m47-kicker { color: var(--m47-d); background: var(--m47-bg); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.m47-kicker i { background: var(--m47); }
.m47-spec { margin: 0 0 6px; font: 700 12px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; color: var(--m47-d); }
/* porthole with stamp ring */
.m47-port { position: relative; padding: 9%; max-width: 480px; justify-self: center; width: 100%; overflow: clip; }
.m47-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: m47-ring 60s linear infinite; }
@keyframes m47-ring { to { transform: rotate(360deg); } }
.m47-art.st-art { aspect-ratio: 1 / 1; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 0 0 3px #7E22CE, 0 36px 70px -36px rgba(88, 28, 135, .6); }
.m47-art .st-art__chip { font-size: 11.5px; max-width: 62%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.m47-tag.st-art__tag { left: 50%; bottom: 6%; transform: translateX(-50%); white-space: nowrap; }
.m47-tag.st-art__tag i { background: var(--m47); }
.m47-belt { animation: m47-belt 12s linear infinite; }
@keyframes m47-belt { to { transform: translateX(-320px); } }
.m47-ticks path { stroke-dasharray: 20; stroke-dashoffset: 20; animation: m47-tick 8s ease-out infinite; }
.m47-ticks path:nth-child(2) { animation-delay: 1s; } .m47-ticks path:nth-child(3) { animation-delay: 2s; } .m47-ticks path:nth-child(4) { animation-delay: 3s; }
@keyframes m47-tick { 0%, 8% { stroke-dashoffset: 20; } 18%, 100% { stroke-dashoffset: 0; } }
.m47-paused .m47-ring, .m47-paused .m47-belt, .m47-paused .m47-ticks path { animation-play-state: paused; }
.m47-pause { justify-content: center; margin-top: 8px; position: relative; z-index: 2; }
.m47-pause button { min-height: 44px; padding: 8px 14px; }
@media (prefers-reduced-motion: reduce) { .m47-ring, .m47-belt { animation: none; } .m47-ticks path { animation: none; stroke-dashoffset: 0; } .m47-pause { display: none; } }
/* article prose */
.m47-narrow { max-width: 860px; }
.m47-prose h2 { margin-top: .4em; }
.m47-prose p, .m47-prose li { font-size: 17px; }
.m47-short { margin: 0 0 28px; padding: 22px 24px; border-radius: 18px; background: var(--m47-bg); border: 1px solid #DDD6FE; border-left: 6px solid var(--m47); }
.m47-short ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font: 500 16px/1.5 var(--font); color: var(--ink); }
.m47-small { font: 500 14px/1.55 var(--font-ui); color: var(--muted); margin-top: 16px; max-width: 900px; }
.m47-scene .st-scene__k { color: var(--m47-d); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.m47-scene .st-zoho li { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
#tests .st-rail li.is-on { background: var(--m47-bg); }
#tests .st-rail li.is-on::before { background: var(--m47); border-color: var(--m47); }
#tests .m47-prose { margin-top: 36px; padding: 22px 24px; border-radius: 18px; background: #fff; border: 1px dashed #C4B5FD; }
/* sticky reveal */
.m47-sticky { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.m47-sticky__vis { position: sticky; top: 110px; }
.m47-sticky__frame { padding: 22px; border-radius: 22px; background: #1E1B4B; }
.m47-sticky__frame svg { width: 100%; }
.m47-shelf rect { fill: #312E81; stroke: #4338CA; stroke-width: 2; transition: fill .4s, stroke .4s; }
.m47-shelf text { font: 700 14px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; fill: #C7D2FE; }
.m47-shelf.is-on rect { fill: #9333EA; stroke: #E9D5FF; }
.m47-shelf.is-on text { fill: #fff; }
.m47-sticky__lbl { margin-top: 10px; color: #DDD6FE; }
.m47-sticky__steps { display: grid; gap: 22vh; padding: 6vh 0; }
.m47-sticky__steps article { padding: 22px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.m47-sticky__steps article.is-on { border-color: var(--m47); box-shadow: 0 24px 48px -32px rgba(88, 28, 135, .5); }
.m47-sticky__steps h3 { font-size: 21px; }
/* comparison table tweaks */
.m47-cmp th small { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
/* timeline scrubber */
.m47-scrub { max-width: 860px; padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.m47-scrub__lbl { display: block; font: 700 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--m47-d); margin-bottom: 10px; }
.m47-scrub__range { width: 100%; height: 44px; accent-color: var(--m47); cursor: pointer; }
.m47-scrub__ticks { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 18px; padding: 0; font: 600 12.5px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); }
.m47-scrub__ticks li:nth-child(2) { text-align: center; transform: translateX(-16%); } .m47-scrub__ticks li:nth-child(3) { text-align: center; transform: translateX(16%); } .m47-scrub__ticks li:last-child { text-align: right; }
.m47-scrub__panels { display: grid; gap: 14px; }
.m47-scrub.is-live .m47-scrub__panels { display: block; }
.m47-scrub.is-live .m47-scrub__panel { display: none; }
.m47-scrub.is-live .m47-scrub__panel.is-on { display: block; animation: m47-in .35s ease-out; }
@keyframes m47-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.m47-scrub__panel { padding: 18px 20px; border-radius: 14px; background: var(--m47-bg); }
.m47-scrub__panel h3 { font-size: 20px; }
/* zoho fits / specialist */
.m47-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 18px 0; }
.m47-two > div { padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.m47-two > div:last-child { border-style: dashed; }
.m47-two ul { margin: 0; padding-left: 18px; }
.m47-two li { font-size: 15.5px; }
/* budget waterfall, horizontal */
.m47-budgetwrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: center; }
.m47-fall { margin: 0; padding: 24px; border-radius: 22px; background: #fff; border: 1px solid #DDD6FE; display: grid; gap: 12px; }
.m47-fall__row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center; }
.m47-fall__k { font: 600 12.5px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); }
.m47-fall__bar { position: relative; height: 40px; }
.m47-fall__bar::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--x, 0%); width: var(--w, 100%); border-radius: 8px; background: linear-gradient(90deg, #A78BFA, #7E22CE); }
.m47-fall__row--tot .m47-fall__bar::before { background: linear-gradient(90deg, #3B0764, #581C87); }
.m47-fall__row--open .m47-fall__bar::before { background: repeating-linear-gradient(45deg, #F1F5F9 0 8px, #E2E8F0 8px 16px); border: 1.5px dashed #94A3B8; }
.m47-fall__bar b { position: absolute; top: 50%; transform: translateY(-50%); left: calc(var(--x, 0%) + 10px); font: 700 13.5px/1.2 var(--font-ui); color: #fff; white-space: nowrap; }
.m47-fall__row--open .m47-fall__bar b { left: 12px; color: var(--ink); font-weight: 600; white-space: normal; }
.m47-fall figcaption { font: 500 13px/1.5 var(--font-ui); color: var(--muted); margin-top: 6px; }
/* belt map */
.m47-nearwrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.m47-map { margin: 0; padding: 18px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.m47-map svg { width: 100%; max-width: 380px; margin: 0 auto; }
.m47-pin circle { fill: #fff; stroke: var(--m47-steel); stroke-width: 3; }
.m47-pin--office circle { fill: var(--m47); stroke: #fff; stroke-width: 3; }
.m47-map figcaption { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font: 500 13px/1.4 var(--font-ui); color: var(--muted); }
/* read next */
.m47-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.m47-next a { display: block; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font: 600 16px/1.35 var(--font); }
.m47-next a:hover { border-color: var(--m47); transform: translateY(-2px); }
.m47-next a .m47-spec { display: block; }
@media (max-width: 960px) {
  .m47-hero__grid, .m47-budgetwrap, .m47-nearwrap, .m47-sticky { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .m47-sticky__vis { position: relative; top: 0; }
  .m47-sticky__steps { gap: 16px; padding: 0; }
}
@media (max-width: 600px) {
  .m47-two, .m47-next { grid-template-columns: minmax(0, 1fr); }
  .m47-fall__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .m47-fall { padding: 16px; }
  .m47-scrub { padding: 18px; }
  .m47-art .st-art__chip { font-size: 10.5px; padding: 6px 8px; }
}
