/* Surcam Size Matrix 2026 */
.smx {
	--smx-ink: #0e1213; --smx-ink-2: #4b5458; --smx-muted: #566064; --smx-paper: #fff; --smx-mineral: #eef2f2; --smx-soft: #f6f8f8;
	--smx-rule: #d3dbdb; --smx-rule-strong: #b9c4c4; --smx-accent: #03695e; --smx-accent-hover: #025a51; --smx-wash: #def4f0; --smx-gold: #c8952c;
	--smx-ease: cubic-bezier(0.23, 1, 0.32, 1);
	font-family: "IBM Plex Sans", system-ui, sans-serif; color: var(--smx-ink); -webkit-font-smoothing: antialiased;
}
.smx *, .smx *::before, .smx *::after { box-sizing: border-box; }
.smx h2, .smx h3, .smx p { margin: 0; }
.smx [hidden] { display: none !important; }
.smx .smx__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.smx .smx__ico { width: 1.0625rem; height: 1.0625rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--smx-ease); }

.smx__card { display: grid; grid-template-columns: 248px minmax(0, 1fr); background: var(--smx-paper); border-radius: 24px; box-shadow: 0 1px 2px rgba(20, 25, 27, .06), 0 24px 48px -32px rgba(20, 25, 27, .28); overflow: hidden; }
.smx__title { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 40px; align-items: end; padding: 36px 36px 28px; border-bottom: 1px solid var(--smx-rule); }
.smx .smx__h { font-family: inherit; font-size: clamp(2rem, 1.35rem + 2.1vw, 3.125rem); font-weight: 600; line-height: 1.02; letter-spacing: -.022em; color: var(--smx-ink); text-wrap: balance; }
.smx .smx__intro { justify-self: end; max-width: 40ch; font-size: 1.0625rem; line-height: 1.5; color: var(--smx-ink-2); }

/* Design picker */
.smx--one .smx__card { grid-template-columns: minmax(0, 1fr); }
.smx__pick { display: grid; align-content: start; gap: 2px; padding: 10px; max-height: 760px; overflow: auto; border-right: 1px solid var(--smx-rule); background: #fafbfb; scrollbar-width: thin; }
.smx .smx__pick button, .smx .smx__pick button:hover, .smx .smx__pick button:focus { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 54px; margin: 0; padding: 6px 12px; border: 0; border-radius: 12px; background-color: transparent; box-shadow: none; color: var(--smx-ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms var(--smx-ease); }
.smx .smx__pick button[aria-pressed="true"], .smx .smx__pick button[aria-pressed="true"]:hover, .smx .smx__pick button[aria-pressed="true"]:focus { background-color: var(--smx-paper); box-shadow: inset 0 0 0 1px var(--smx-rule-strong), 0 2px 8px -4px rgba(20, 25, 27, .2); }
.smx .smx__pick button:active { transform: scale(.98); }
.smx .smx__pick button:focus-visible { outline: 2px solid var(--smx-accent); outline-offset: -2px; }
.smx .smx__pick img, .smx .smx__pick i { width: 34px; height: 46px; object-fit: contain; }
.smx .smx__pick b { font-size: .96875rem; font-weight: 600; line-height: 1.25; }
.smx .smx__pick button > span { font-size: .8125rem; color: var(--smx-muted); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .smx .smx__pick button:not([aria-pressed="true"]):hover { background-color: var(--smx-mineral); } }

/* Panel */
.smx__main { min-width: 0; padding: 28px 28px 24px; }
.smx__head { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.smx__head > img, .smx__head > i { width: 120px; height: 150px; object-fit: contain; }
.smx .smx__name { font-family: inherit; font-size: 1.75rem; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; color: var(--smx-ink); }
.smx .smx__desc { margin-top: 6px; font-size: .96875rem; line-height: 1.45; color: var(--smx-ink-2); }
.smx__act { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }

.smx .smx__btn, .smx .smx__btn:hover, .smx .smx__btn:focus { display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 42px; margin: 0; padding: 0 18px; border: 0; border-radius: 999px; font-family: inherit; font-size: .9375rem; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 200ms ease, box-shadow 200ms ease, transform 160ms var(--smx-ease); }
.smx .smx__btn--line, .smx .smx__btn--line:hover, .smx .smx__btn--line:focus { background-color: transparent; box-shadow: inset 0 0 0 1px var(--smx-rule-strong); color: var(--smx-ink); }
.smx .smx__btn--solid, .smx .smx__btn--solid:hover, .smx .smx__btn--solid:focus { background-color: var(--smx-accent); box-shadow: none; color: #fff; }
.smx .smx__btn:active { transform: scale(.97); }
.smx .smx__btn:focus-visible { outline: 2px solid var(--smx-accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
	.smx .smx__btn--line:hover { box-shadow: inset 0 0 0 1px var(--smx-ink); }
	.smx .smx__btn--solid:hover { background-color: var(--smx-accent-hover); }
	.smx .smx__btn:hover .smx__ico { transform: translateX(2px); }
}

/* Table */
.smx__frame { position: relative; margin-top: 24px; }
.smx__scroll { overflow-x: auto; border: 1px solid var(--smx-rule); border-radius: 12px; scrollbar-width: thin; }
.smx__scroll:focus-visible { outline: 2px solid var(--smx-accent); outline-offset: 2px; }
.smx__frame.has-more .smx__scroll { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent); }
.smx .smx__cue, .smx .smx__cue:hover, .smx .smx__cue:focus { position: absolute; right: 4px; top: -32px; display: none; align-items: center; gap: 6px; min-height: 28px; margin: 0; padding: 0 6px; border: 0; background-color: transparent; color: var(--smx-accent); font-family: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.smx .smx__frame.has-more .smx__cue { display: inline-flex; }
.smx table.smx__t { width: 100%; margin: 0; border: 0; border-collapse: separate; border-spacing: 0; font-size: .875rem; font-variant-numeric: tabular-nums lining-nums; background: none; }
.smx table.smx__t th, .smx table.smx__t td { padding: 0; border: 0; border-bottom: 1px solid var(--smx-rule); border-right: 1px solid var(--smx-rule); background-color: transparent; text-align: center; vertical-align: middle; line-height: 1.3; white-space: nowrap; }
.smx table.smx__t tr > *:last-child { border-right: 0; }
.smx table.smx__t tbody tr:last-child > * { border-bottom: 0; }
.smx table.smx__t thead th { padding: 10px 12px; background-color: var(--smx-mineral); color: var(--smx-ink-2); font-weight: 600; }
.smx table.smx__t thead th:first-child, .smx table.smx__t tbody th { position: sticky; left: 0; z-index: 1; min-width: 84px; padding: 10px 12px; background-color: var(--smx-mineral); color: var(--smx-ink); font-weight: 600; text-align: left; }
.smx table.smx__t thead th:first-child { z-index: 2; }
.smx table.smx__t tbody th small { display: block; font-size: .75rem; font-weight: 400; color: var(--smx-muted); }
.smx table.smx__t td.is-none { min-width: 88px; height: 54px; background-color: #fbfcfc; color: #9aa5a8; }

.smx .smx__cell, .smx .smx__cell:hover, .smx .smx__cell:focus { display: block; width: 100%; min-width: 88px; min-height: 54px; margin: 0; padding: 6px 6px; border: 0; border-radius: 0; background-color: var(--smx-paper); box-shadow: none; color: var(--smx-ink); font: inherit; text-decoration: none; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.smx .smx__cell.is-dist, .smx .smx__cell.is-dist:hover, .smx .smx__cell.is-dist:focus { background-color: var(--smx-soft); color: var(--smx-ink-2); }
.smx .smx__cell[aria-pressed="true"], .smx .smx__cell[aria-pressed="true"]:hover, .smx .smx__cell[aria-pressed="true"]:focus { background-color: var(--smx-accent); color: #fff; }
.smx .smx__cell:focus-visible { outline: 2px solid var(--smx-accent); outline-offset: -3px; }
.smx .smx__cell[aria-pressed="true"]:focus-visible { outline-color: #fff; }
.smx .smx__ref { display: block; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .8125rem; font-weight: 500; letter-spacing: 0; }
.smx .smx__cell small { display: block; margin-top: 2px; font-size: .6875rem; font-weight: 400; color: var(--smx-muted); }
.smx .smx__cell.is-dist small::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--smx-gold); vertical-align: 1px; }
.smx .smx__cell[aria-pressed="true"] small { color: #d7efeb; }
@media (hover: hover) and (pointer: fine) { .smx .smx__cell:not([aria-pressed="true"]):hover { background-color: var(--smx-wash); color: var(--smx-ink); } }

/* Selection and legend */
.smx__sel { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; min-height: 76px; margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--smx-mineral); }
.smx .smx__selref { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 1.5rem; font-weight: 500; letter-spacing: 0; color: var(--smx-ink); }
.smx .smx__sel p { margin-right: auto; font-size: .875rem; line-height: 1.45; color: var(--smx-ink-2); }
.smx__selacts { display: flex; flex-wrap: wrap; gap: 8px; }
.smx__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: .8125rem; color: var(--smx-muted); }
.smx .smx__legend i { position: relative; display: inline-block; width: 14px; height: 14px; margin-right: 6px; border: 1px solid var(--smx-rule-strong); border-radius: 3px; background: #fff; vertical-align: -3px; }
.smx .smx__legend i.is-dist { background: var(--smx-soft); }
.smx .smx__legend i.is-dist::after { content: ""; position: absolute; left: 3px; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--smx-gold); }
.smx__empty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; padding: 24px; border: 1px solid var(--smx-rule); border-radius: 12px; }
.smx__empty p { flex: 1 1 100%; max-width: 52ch; margin-bottom: 6px; font-size: 1rem; line-height: 1.5; color: var(--smx-ink-2); }

@media (max-width: 1024px) {
	.smx__title { grid-template-columns: minmax(0, 1fr); padding: 28px 24px 22px; }
	.smx .smx__intro { justify-self: start; }
}
@media (max-width: 860px) {
	.smx__card { grid-template-columns: minmax(0, 1fr); }
	.smx__pick { display: flex; gap: 6px; max-height: none; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--smx-rule); scrollbar-width: none; }
	.smx__pick::-webkit-scrollbar { display: none; }
	.smx .smx__pick button, .smx .smx__pick button:hover, .smx .smx__pick button:focus { flex: none; width: auto; grid-template-columns: 26px auto; }
	.smx .smx__pick button > span { display: none; }
	.smx .smx__pick img, .smx .smx__pick i { width: 26px; height: 36px; }
}
@media (max-width: 560px) {
	.smx__title { padding: 24px 20px 20px; }
	.smx__main { padding: 22px 16px; }
	.smx__head { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
	.smx__head > img, .smx__head > i { width: 64px; height: 84px; }
	.smx .smx__name { font-size: 1.375rem; }
	.smx__act { grid-column: 1 / -1; flex-direction: row; }
	.smx__act .smx__btn { flex: 1; }
	.smx__sel { flex-direction: column; align-items: stretch; }
	.smx__selacts .smx__btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .smx *, .smx *::before { transition: none !important; } }

/* Phones: diameter chips over a grid of length tiles (REF on each), in place of the sideways-scrolling table */
.smx__m { display: none; }
@media (max-width: 560px) {
	.smx__pick { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
	.smx.is-js .smx__frame { display: none; }
	.smx.is-js .smx__m { display: block; margin-top: 18px; }
	.smx__mdia { display: flex; gap: 6px; padding: 2px; overflow-x: auto; scrollbar-width: none; }
	.smx__mdia::-webkit-scrollbar { display: none; }
	.smx .smx__mdia button, .smx .smx__mdia button:hover, .smx .smx__mdia button:focus { flex: none; display: inline-block; min-height: 40px; margin: 0; padding: 0 15px; white-space: nowrap; line-height: 40px; border: 0; border-radius: 999px; background-color: var(--smx-mineral); box-shadow: none; color: var(--smx-ink-2); font-family: inherit; font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--smx-ease); }
	.smx .smx__mdia button small { display: inline; margin-left: 5px; font-size: .75rem; font-weight: 400; opacity: .8; }
	.smx .smx__mdia button[aria-pressed="true"], .smx .smx__mdia button[aria-pressed="true"]:hover, .smx .smx__mdia button[aria-pressed="true"]:focus { background-color: var(--smx-ink); color: #fff; }
	.smx .smx__mdia button:active { transform: scale(.97); }
	.smx .smx__mdia button:focus-visible { outline: 2px solid var(--smx-accent); outline-offset: 2px; }
	.smx__mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
	.smx .smx__tile, .smx .smx__tile:hover, .smx .smx__tile:focus { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 60px; margin: 0; padding: 8px 4px; border: 0; border-radius: 12px; background-color: var(--smx-paper); box-shadow: inset 0 0 0 1px var(--smx-rule); color: var(--smx-ink); font-family: inherit; cursor: pointer; transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms var(--smx-ease); }
	.smx .smx__tile b { font-size: .9375rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
	.smx .smx__tile .smx__ref { font-size: .6875rem; line-height: 1.1; color: var(--smx-muted); }
	.smx .smx__tile.is-dist, .smx .smx__tile.is-dist:hover, .smx .smx__tile.is-dist:focus { background-color: var(--smx-soft); }
	.smx .smx__tile.is-dist::after { content: ""; position: absolute; right: 8px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--smx-gold); }
	.smx .smx__tile[aria-pressed="true"], .smx .smx__tile[aria-pressed="true"]:hover, .smx .smx__tile[aria-pressed="true"]:focus { background-color: var(--smx-accent); box-shadow: none; color: #fff; }
	.smx .smx__tile[aria-pressed="true"] .smx__ref { color: #d7efeb; }
	.smx .smx__tile:active { transform: scale(.97); }
	.smx .smx__tile:focus-visible { outline: 2px solid var(--smx-accent); outline-offset: 2px; }
	/* Head: one full-width "About" link; ordering lives with the chosen size below */
	.smx__act .smx__btn[target="_blank"] { display: none; }
	.smx .smx__act .smx__btn { white-space: normal; text-align: center; line-height: 1.2; padding: 8px 16px; }
	/* Chosen size: Order online first and full width, then Copy and View side by side */
	.smx__sel { gap: 10px; min-height: 0; margin-top: 14px; padding: 14px; }
	.smx .smx__selref { font-size: 1.25rem; }
	.smx .smx__sel p { margin-right: 0; }
	.smx__selacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
	.smx .smx__selacts .smx__btn { min-width: 0; padding: 0 10px; }
	.smx .smx__selacts .smx__btn:nth-child(3) { order: -1; grid-column: 1 / -1; }
	.smx .smx__selacts .smx__btn--solid:only-child, .smx .smx__selacts .smx__btn:nth-child(2):last-child { grid-column: auto; }
	.smx__legend { gap: 6px 14px; margin-top: 12px; font-size: .75rem; }
	.smx__legend > span:first-child { display: none; }
	.smx .smx__legend i.is-dist { width: 6px; height: 6px; margin-right: 7px; border: 0; border-radius: 50%; background: var(--smx-gold); vertical-align: 1px; }
	.smx .smx__legend i.is-dist::after { content: none; }
}
@media (max-width: 560px) and (prefers-reduced-motion: reduce) { .smx .smx__tile, .smx .smx__mdia button { transition: none; } }