/* Macrocomm Widgets: shared tokens and building blocks.
   Everything is scoped to .mc-root (the wrapper every widget prints), so nothing here reaches the rest of the page.
   Hover effects sit in @media (hover: hover) with an :active copy in @media (hover: none), so tapped controls
   do not stay highlighted on touch screens. */

.mc-root {
	--mc-red: #ea2127;
	--mc-white: #fff;
	--mc-grey-text: #b3b3b3;
	--mc-grey-quiet: #706f6f;
	--mc-border: #4c4345;
	--mc-grid-major: #2b2b2b;
	--mc-grid-minor: #1c1c1c;
	--mc-panel: #111;
	--mc-black: #000;
	--mc-font-head: 'Barlow Condensed', sans-serif;
	--mc-font-body: Barlow, sans-serif;
	--mc-font-semi: 'Barlow Semi Condensed', sans-serif;
	--mc-font-mono: 'JetBrains Mono', monospace;
	--mc-wrap: 1140px;
	font-family: var(--mc-font-body);
	font-size: 16px;
	line-height: 1.5;
	color: var(--mc-white);
}
.mc-root *,
.mc-root *::before,
.mc-root *::after { box-sizing: border-box; }

/* the theme (Hello Elementor) styles bare headings, paragraphs, figure captions and buttons; the widgets start from zero */
.mc-root :is(h1, h2, h3, h4, h5, h6, p, ol, ul, figure, figcaption) { margin: 0; }
.mc-root figcaption { color: inherit; font-size: inherit; font-style: normal; line-height: inherit; }
.mc-root button { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; color: inherit; font: inherit; letter-spacing: inherit; text-align: inherit; text-transform: inherit; white-space: normal; box-shadow: none; -webkit-user-select: none; user-select: none; }
.mc-root button:hover,
.mc-root button:focus { background-color: transparent; }
.mc-root :is(a, button):focus-visible { box-shadow: none; outline: 1px dotted var(--mc-grey-text); outline-offset: 2px; }
.mc-root :is(a, button):focus:not(:focus-visible) { outline: none; }

/* layout */
.mc-root .mc-wrap { width: 96%; max-width: var(--mc-wrap); margin: 0 auto; }

/* type */
.mc-root .mc-eyebrow { display: flex; align-items: center; gap: 20px; margin: 0; font-family: var(--mc-font-mono); font-weight: 500; font-size: 1rem; line-height: 1.2; color: var(--mc-red); }
.mc-root .mc-eyebrow::before { content: ""; width: 55px; height: 1px; background: var(--mc-red); flex: none; }
.mc-root .mc-h-page { margin: 0; font-family: var(--mc-font-head); font-weight: 600; font-size: 3rem; line-height: 3.5rem; letter-spacing: .2px; color: var(--mc-white); }
.mc-root .mc-h-svc { margin: 0; font-family: var(--mc-font-head); font-weight: 700; font-size: 1.5rem; line-height: 1.2; color: var(--mc-white); }
.mc-root .mc-red { color: var(--mc-red); }
.mc-root .mc-grey { color: var(--mc-grey-text); }
.mc-root .mc-label { margin: 0; font-family: var(--mc-font-mono); font-size: .68rem; letter-spacing: .06em; color: var(--mc-grey-text); }
.mc-root .mc-lead { font-size: 1.1rem; line-height: 1.5; }

/* buttons: solid parallelogram and text button with a dotted underline */
.mc-root .mc-btn { display: inline-block; font-family: var(--mc-font-head); font-weight: 600; font-style: italic; font-size: 1.1rem; letter-spacing: 1px; line-height: 1.5; color: var(--mc-white); text-decoration: none; text-align: center; padding: 12px 24px; background: var(--mc-red); border: solid var(--mc-red); border-width: 1px 0; clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%); transition: color .3s, background-color .3s; cursor: pointer; }
.mc-root .mc-btn:focus-visible { background: transparent; color: var(--mc-red); }
@media (hover: hover) { .mc-root .mc-btn:hover { background: transparent; color: var(--mc-red); } }
@media (hover: none) { .mc-root .mc-btn:active { background: transparent; color: var(--mc-red); } }

.mc-root .mc-tbtn { display: inline-block; font-family: var(--mc-font-head); font-weight: 600; font-style: italic; font-size: 1.1rem; letter-spacing: 1px; line-height: 1.5; color: var(--mc-white); text-decoration: none; padding: 10px 0 2px; border: 0; border-bottom: 2px dotted var(--mc-white); background: none; cursor: pointer; transition: color .3s, border-color .3s; }
.mc-root .mc-tbtn:focus-visible { color: var(--mc-grey-text); border-color: var(--mc-grey-text); outline: none; }
.mc-root button.mc-tbtn { padding: 10px 0 2px; border-bottom: 2px dotted var(--mc-white); color: var(--mc-white); white-space: nowrap; }
.mc-root button.mc-tbtn:disabled { color: var(--mc-border); border-color: var(--mc-border); cursor: not-allowed; }
@media (hover: hover) { .mc-root .mc-tbtn:hover:not(:disabled) { color: var(--mc-grey-text); border-color: var(--mc-grey-text); } }
@media (hover: none) { .mc-root .mc-tbtn:active:not(:disabled) { color: var(--mc-grey-text); border-color: var(--mc-grey-text); } }

.mc-root .mc-cta-line { font-style: italic; color: var(--mc-grey-text); }
.mc-root .mc-mono { font-family: var(--mc-font-mono); }

/* the drafting grid, for drawing panels: the same fixed grid as the page behind, so it stays still while the page scrolls */
.mc-root .mc-gridfill { background-color: var(--mc-black); background-image: linear-gradient(#353535 1px, transparent 1px), linear-gradient(90deg, #353535 1px, transparent 1px), linear-gradient(#232323 1px, transparent 1px), linear-gradient(90deg, #232323 1px, transparent 1px); background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px; background-attachment: fixed; }

/* numbered specification list: "01.1  Machine design" */
.mc-root .mc-spec { list-style: none; padding: 0; display: flex; flex-direction: column; }
.mc-root .mc-spec li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px dashed #333; }
.mc-root .mc-spec li:last-child { border-bottom: 0; }
.mc-root .mc-spec b { font-family: var(--mc-font-mono); font-weight: 400; font-size: .78rem; color: var(--mc-grey-text); padding-top: 3px; }

/* chips: rounded tags (sheet cards, then and now) */
.mc-root .mc-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 15px; }
.mc-root .mc-chip { font-family: var(--mc-font-mono); font-size: .7rem; line-height: 1.5; padding: 5px 10px; border-radius: 10rem; background: var(--mc-border); color: var(--mc-white); text-transform: capitalize; white-space: nowrap; }

/* feature list with red number squares (exhibit, specification sheet) */
.mc-root .mc-feat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mc-root .mc-feat li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px dashed #333; color: var(--mc-white); }
.mc-root .mc-feat li:last-child { border-bottom: 0; }
.mc-root .mc-feat b { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: var(--mc-red); color: var(--mc-white); font-family: var(--mc-font-mono); font-weight: 400; font-size: .7rem; }

/* drawing sheet parts shared by the services and process widgets: red corner marks, top strip, segment bar, title block */
.mc-root .mc-dwg { position: relative; background: var(--mc-panel); border: 1px solid var(--mc-border); transition: border-color .3s; }
@media (hover: hover) { .mc-root .mc-dwg:hover { border-color: var(--mc-grey-text); } }
@media (hover: none) { .mc-root .mc-dwg:active { border-color: var(--mc-grey-text); } }
.mc-root .mc-cm { position: absolute; width: 16px; height: 16px; border: 0 solid var(--mc-red); z-index: 2; pointer-events: none; }
.mc-root .mc-cm.mc-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.mc-root .mc-cm.mc-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.mc-root .mc-cm.mc-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.mc-root .mc-cm.mc-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.mc-root .mc-dwg-top { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 14px 26px; border-bottom: 1px solid var(--mc-border); font-family: var(--mc-font-mono); font-size: .75rem; line-height: 1.4; color: var(--mc-grey-text); }
.mc-root .mc-dwg-top b { font-weight: 500; color: var(--mc-white); }
.mc-root .mc-seg { flex: 1 1 200px; display: grid; grid-template-columns: repeat(var(--mc-n, 5), minmax(0, 1fr)); gap: 4px; }
.mc-root button.mc-seg-b { display: block; position: relative; height: 20px; margin: -8px 0; padding: 0; border: 0; background: none; cursor: pointer; }
.mc-root button.mc-seg-b::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 4px; background: var(--mc-border); transition: background-color .25s; }
.mc-root button.mc-seg-b.mc-on::before { background: var(--mc-red); }
.mc-root button.mc-seg-b:focus-visible:not(.mc-on)::before { background: var(--mc-grey-text); }
@media (hover: hover) { .mc-root button.mc-seg-b:hover:not(.mc-on)::before { background: var(--mc-grey-text); } .mc-root button.mc-seg-b.mc-on:hover::before { background: #ff4a4f; } }
@media (hover: none) { .mc-root button.mc-seg-b:active:not(.mc-on)::before { background: var(--mc-grey-text); } .mc-root button.mc-seg-b.mc-on:active::before { background: #ff4a4f; } }
.mc-root .mc-dwg-text { padding: 30px 28px; display: flex; flex-direction: column; gap: 18px; border-right: 1px solid var(--mc-border); }
.mc-root .mc-dwg-text h3 { font-family: var(--mc-font-mono); font-weight: 400; font-size: 1.45rem; line-height: 1.3; color: var(--mc-white); text-transform: none; letter-spacing: 0; }
.mc-root .mc-dwg-rule { height: 1px; width: 100%; background: var(--mc-red); }
.mc-root .mc-tblock { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--mc-border); }
.mc-root .mc-tblock.mc-t1 { grid-template-columns: minmax(0, 1fr); }
.mc-root .mc-cell { padding: 14px 26px; border-left: 1px solid var(--mc-border); display: flex; flex-direction: column; gap: 4px; }
.mc-root .mc-cell:first-child { border-left: 0; }
.mc-root .mc-cell .mc-v { font-size: .92rem; line-height: 1.45; }
.mc-root .mc-cell .mc-v.mc-i { font-style: italic; }
.mc-root .mc-pnav { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
.mc-root .mc-pnav-n { font-family: var(--mc-font-mono); font-size: .8rem; color: var(--mc-grey-text); }
.mc-root .mc-pnav-b { display: flex; gap: 32px; }
.mc-root .mc-fig-cap { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-family: var(--mc-font-mono); font-size: .7rem; line-height: 1.4; color: var(--mc-grey-text); }
.mc-root .mc-fig-img { display: block; width: 100%; height: auto; }

/* line drawings (assets/fig): the site's line weights and colours */
.mc-root .mc-ill { display: block; width: 100%; height: auto; overflow: visible; }
.mc-root .mc-ill .mc-w { fill: none; stroke: #fff; stroke-width: 1.2; }
.mc-root .mc-ill .mc-g { fill: none; stroke: #b3b3b3; stroke-width: .8; }
.mc-root .mc-ill .mc-r { fill: none; stroke: #ea2127; stroke-width: 1.6; }
.mc-root .mc-ill .mc-d { fill: none; stroke: #706f6f; stroke-width: .8; stroke-dasharray: 4 3; }
.mc-root .mc-ill .mc-rf { fill: #ea2127; stroke: none; }
.mc-root .mc-ill .mc-wf { fill: #fff; stroke: none; }
.mc-root .mc-ill .mc-nb { fill: #111; stroke: #fff; stroke-width: 1.2; }
.mc-root .mc-ill text { font-family: var(--mc-font-mono); font-size: 10px; fill: #b3b3b3; letter-spacing: .4px; }
.mc-root .mc-ill text.mc-tw { fill: #fff; }
.mc-root .mc-ill text.mc-tr { fill: #ea2127; }
/* general-arrangement plans (the domain figures) */
.mc-root .mc-ill.mc-gax * { vector-effect: non-scaling-stroke; }
.mc-root .mc-ill.mc-gax .mc-o { fill: none; stroke: #fff; stroke-width: 1; }
.mc-root .mc-ill.mc-gax .mc-t { fill: none; stroke: #fff; stroke-width: .5; }
.mc-root .mc-ill.mc-gax .mc-eq { fill: #161616; stroke: #fff; stroke-width: .9; }
.mc-root .mc-ill.mc-gax .mc-tank { fill: #2b2b2b; stroke: #fff; stroke-width: .9; }
.mc-root .mc-ill.mc-gax .mc-cl { fill: none; stroke: #fff; stroke-width: .45; stroke-dasharray: 9 2 1.5 2; opacity: .8; }
.mc-root .mc-ill.mc-gax .mc-fn { fill: none; stroke: #fff; stroke-width: .6; stroke-dasharray: 4 2.4; }
.mc-root .mc-ill.mc-gax :is(.mc-dim, .mc-ld) { fill: none; stroke: #fff; stroke-width: .5; }
.mc-root .mc-ill.mc-gax .mc-tag { fill: #000; stroke: #fff; stroke-width: .7; }
.mc-root .mc-ill.mc-gax .mc-dot { fill: #000; stroke: #fff; stroke-width: .6; }
.mc-root .mc-ill.mc-gax .mc-ink { fill: #fff; stroke: none; }
.mc-root .mc-ill.mc-gax .mc-gl { fill: none; stroke: #bdbdbd; stroke-width: .4; opacity: .45; }
.mc-root .mc-ill.mc-gax .mc-ro { fill: none; stroke: #ea2127; stroke-width: 1.1; }
.mc-root .mc-ill.mc-gax .mc-rt { fill: none; stroke: #ea2127; stroke-width: .6; }
.mc-root .mc-ill.mc-gax .mc-req { fill: #1f0a0b; stroke: #ea2127; stroke-width: 1; }
.mc-root .mc-ill.mc-gax .mc-rfn { fill: none; stroke: #ea2127; stroke-width: .8; stroke-dasharray: 4 2.4; }
.mc-root .mc-ill.mc-gax .mc-rink { fill: #ea2127; stroke: none; }
.mc-root .mc-ill.mc-gax .mc-tagr { fill: #000; stroke: #ea2127; stroke-width: .9; }
.mc-root .mc-ill.mc-gax .mc-lr { fill: none; stroke: #ea2127; stroke-width: .6; }
.mc-root .mc-ill.mc-gax text { font-family: Arial, Helvetica, sans-serif; font-size: 7.2px; letter-spacing: 0; fill: #fff; }
.mc-root .mc-ill.mc-gax text.mc-tg { font-size: 8px; font-weight: 700; }
.mc-root .mc-ill.mc-gax text.mc-tgr { font-size: 8px; font-weight: 700; fill: #ea2127; }
.mc-root .mc-ill.mc-gax text.mc-dm { font-size: 7.6px; }
.mc-root .mc-ill.mc-gax text.mc-vw { font-size: 7.6px; font-weight: 700; letter-spacing: .04em; }
.mc-root .mc-ill.mc-gax text.mc-sc { font-size: 7px; fill: #bdbdbd; }

/* screen-reader-only text */
.mc-root .mc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1024px) {
	.mc-root .mc-dwg-text { border-right: 0; border-bottom: 1px solid var(--mc-border); }
	.mc-root .mc-tblock { grid-template-columns: minmax(0, 1fr); }
	.mc-root .mc-cell { border-left: 0; border-top: 1px solid var(--mc-border); }
	.mc-root .mc-cell:first-child { border-top: 0; }
	.mc-root .mc-h-page { font-size: 2rem; line-height: 2.4rem; }
	.mc-root .mc-eyebrow { font-size: .8rem; }
	.mc-root .mc-eyebrow::before { width: 30px; }
}
@media (max-width: 767px) {
	.mc-root .mc-wrap { width: auto; margin: 0 16px; }
	.mc-root .mc-h-page { font-size: 1.5rem; line-height: 2rem; }
	.mc-root .mc-eyebrow { font-size: .7rem; }
	.mc-root .mc-eyebrow::before { width: 20px; }
	.mc-root .mc-tbtn { font-size: 1rem; }
	.mc-root .mc-dwg-top { gap: 8px 16px; }
}
