/* The free business card maker on /us/blog/massage-therapist-business-cards.
   Only that post loads this file. The maker is wider than the article, so
   it steps out of the text column on computers. */
.cm { --page: #ffffff; --panel: #ffffff; --field: #ffffff; --note-bg: #fff4dc; --note-ink: #7a4f00; --ok-green: #1f7a4d; --warn: #a33a2a;
  font-size: 16px; line-height: 1.55; width: min(1040px, calc(100vw - 32px)); margin: 0 0 28px calc(50% - min(520px, 50vw - 16px)); }
.cm * { box-sizing: border-box; }
.cm [hidden], .cm-layer[hidden] { display: none !important; }
.cm p, .cm ul { margin: 0; }
.cm .maker { border: 2px solid var(--blue); border-radius: 18px; background: var(--panel); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "controls stage" "downloads stage"; grid-template-rows: auto 1fr; }
.cm .controls { grid-area: controls; padding: 22px 22px 18px; display: grid; gap: 22px; align-content: start; min-width: 0; border-right: 2px solid var(--line-blue); }
.cm .stage { grid-area: stage; background: var(--tint); padding: 22px; min-width: 0; border-radius: 0 16px 16px 0; }
.cm .stage-inner { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); }
.cm .dlwrap { grid-area: downloads; align-self: start; background: var(--panel); padding: 0 22px 22px; min-width: 0; border-radius: 0 0 0 16px; border-right: 2px solid var(--line-blue); }
.cm .maker-title { font-family: var(--display); font-size: 22px; font-weight: 900; color: var(--navy); margin: 0; }
.cm .step { display: grid; gap: 8px; }
.cm .step-title { font-family: var(--display); font-size: 16px; font-weight: 800; color: var(--navy); margin: 0; }
.cm .hint { font-size: 14px; color: var(--muted); margin: 0; font-weight: 400; }
.cm .warn { font-size: 14px; color: var(--warn); font-weight: 700; margin: 0; }
.cm .seg { display: flex; flex-wrap: wrap; gap: 8px; }
.cm .seg button { font: 700 14px var(--body); color: var(--ink); background: var(--field); border: 2px solid var(--line-blue); border-radius: 999px; padding: 8px 14px; min-height: 44px; cursor: pointer; }
.cm .seg button[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); background: var(--tint); }
.cm .swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cm .sw { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--panel); box-shadow: 0 0 0 2px var(--line-blue); cursor: pointer; padding: 0; }
.cm .sw[aria-pressed="true"], .cm .custom.chosen input { box-shadow: 0 0 0 3px var(--blue); }
/* Until someone picks their own colour, its circle is a rainbow ring, so it never looks like a second choice. */
.cm .custom:not(.chosen) { position: relative; }
.cm .custom:not(.chosen) input { opacity: 0; }
.cm .custom:not(.chosen)::before { content: ""; position: absolute; left: 0; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: conic-gradient(#e0565b, #e8a33d, #e6d94a, #5cb85c, #3fa7d6, #6b4c9a, #e0565b); -webkit-mask: radial-gradient(circle, transparent 12px, #000 13px); mask: radial-gradient(circle, transparent 12px, #000 13px); pointer-events: none; }
.cm .custom { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; min-height: 44px; cursor: pointer; }
.cm .custom input { width: 44px; height: 44px; border: 4px solid var(--panel); border-radius: 50%; padding: 0; background: none; cursor: pointer; box-shadow: 0 0 0 2px var(--line-blue); }
.cm .custom input::-webkit-color-swatch-wrapper { padding: 0; }
.cm .custom input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.cm .custom input::-moz-color-swatch { border: 0; border-radius: 50%; }
.cm .fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; }
.cm .field { display: grid; gap: 4px; min-width: 0; align-content: start; }
.cm .field label { font-size: 14px; font-weight: 700; }
.cm .fields .wide { grid-column: 1 / -1; }
@media (max-width: 420px) { .cm .fields { grid-template-columns: minmax(0, 1fr); } }
.cm textarea, .cm input[type=text], .cm input[type=url], .cm input[type=email], .cm input[type=tel] { font: 16px var(--body); color: var(--ink); background: var(--field); border: 1.5px solid #8fa3b8; border-radius: 10px; padding: 9px 11px; width: 100%; min-width: 0; }
.cm textarea { resize: vertical; }
.cm input:focus-visible, .cm button:focus-visible, .cm textarea:focus-visible, .cm .cm-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.cm .size-row { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; }
.cm .size-row input { flex: 1; min-width: 0; accent-color: var(--blue); height: 44px; }
.cm .size-row output { min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.cm .label-line { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.cm .upload { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.cm .file-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.cm .btn { font: 800 15px var(--display); border-radius: 999px; padding: 11px 18px; border: 2px solid var(--blue); background: var(--blue); color: #fff; cursor: pointer; min-height: 44px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.cm .btn.cm-quiet { background: var(--field); color: var(--blue); border-color: var(--line-blue); }
.cm .linkbtn { font: 700 14px var(--body); color: var(--blue); background: none; border: 0; padding: 10px 0; min-height: 44px; text-decoration: underline; cursor: pointer; }
.cm .sides { display: grid; gap: 12px; }
.cm .side-label { font: 800 12px var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.cm .cm-card { width: 100%; aspect-ratio: 3.5 / 2; border-radius: 6px; box-shadow: 0 8px 24px rgba(15, 30, 50, 0.18); overflow: hidden; display: block; background: #fff; }
.cm .cm-card.uk { aspect-ratio: 85 / 55; }
.cm .cm-card svg { display: block; width: 100%; height: 100%; }
.cm .tap-hint { display: none; font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.cm .downloads { display: grid; gap: 12px; align-content: start; border-top: 2px solid var(--line-blue); padding-top: 16px; }
.cm .dl .btn { justify-self: stretch; }
.cm .dl { display: grid; gap: 2px; }
.cm .dl .hint { font-size: 13px; }
.cm .saved { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 12px; align-items: center; }
.cm .note { background: var(--note-bg); color: var(--note-ink); border-radius: 10px; padding: 8px 12px; font-size: 14px; margin: 0; }
@media (max-width: 820px) {
  .cm .maker { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "controls" "downloads"; grid-template-rows: auto; }
  .cm .controls { border-right: 0; }
  .cm .stage { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 2; padding: 12px 14px; border-radius: 16px 16px 0 0; border-bottom: 2px solid var(--line-blue); box-shadow: 0 6px 14px rgba(15, 30, 50, 0.08); }
  .cm .stage-inner { position: static; }
  .cm .sides { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .cm .cm-card { cursor: zoom-in; }
  .cm .tap-hint { display: block; }
  .cm .dlwrap { border-right: 0; background: var(--tint); border-radius: 0 0 16px 16px; border-top: 2px solid var(--line-blue); padding: 18px; }
  .cm .downloads { border-top: 0; padding-top: 0; }
}

/* Windows over the page: the download message, the example-details check and a card shown bigger */
.cm-layer { position: fixed; inset: 0; background: rgba(10, 20, 32, 0.55); display: grid; place-items: center; z-index: 50;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); font-size: 16px; line-height: 1.55; }
.cm-layer * { box-sizing: border-box; }
.cm-box { background: #fff; color: var(--ink); border-radius: 18px; max-width: 460px; width: 100%; max-height: 100%; overflow: auto; padding: 22px 22px 18px; position: relative; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3); }
.cm-box p { margin: 0 0 12px; }
.cm-box ul { margin: 0 0 16px; padding-left: 20px; }
.cm-box li { margin-bottom: 6px; }
.cm-box h2 { font-family: var(--display); font-size: 21px; font-weight: 900; color: var(--navy); margin: 0 0 8px; line-height: 1.25; }
.cm-box .done { display: flex; gap: 14px; align-items: center; background: #1f7a4d; color: #fff; margin: -22px -22px 18px; padding: 18px 56px 18px 22px; border-radius: 18px 18px 0 0; }
.cm-box .done svg { flex-shrink: 0; }
.cm-box .done-title { font: 900 20px var(--display); margin: 0; line-height: 1.25; }
.cm-box .done-sub { font-size: 14px; margin: 2px 0 0; overflow-wrap: anywhere; }
.cm-box .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cm-box .actions .btn { font: 800 15px var(--display); border-radius: 999px; padding: 11px 18px; border: 2px solid var(--blue); background: var(--blue); color: #fff; cursor: pointer; min-height: 44px; text-decoration: none; display: inline-flex; align-items: center; }
.cm-box .actions .btn.cm-quiet { background: #fff; color: var(--blue); border-color: var(--line-blue); }
.cm-box .small { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.cm-box .x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; z-index: 1; }
.cm-box .done + .x, .cm-box.has-done .x { color: #fff; }
.cm-box .x:focus-visible, .cm-box .btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.cm-box.has-done .x:focus-visible { outline-color: #fff; }
.cm-big { width: min(960px, 100%); display: grid; gap: 12px; justify-items: center; }
.cm-big .card-big { width: 100%; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); }
.cm-big .card-big svg { display: block; width: 100%; height: auto; }
.cm-big .btn { font: 800 15px var(--display); border-radius: 999px; padding: 11px 22px; border: 2px solid #fff; background: #fff; color: var(--blue); cursor: pointer; min-height: 44px; }
.cm-toast { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; width: min(460px, calc(100vw - 32px)); background: #1f7a4d; color: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); font-size: 15px; line-height: 1.45; }
.cm-toast strong { overflow-wrap: anywhere; }
html.cm-locked { overflow: hidden; }
@media (max-height: 640px), (max-width: 359px) { .cm-box ul { display: none; } }
@media (max-width: 359px) { .cm-box { padding-bottom: 26px; } .cm-box h2 { font-size: 19px; } }

/* The example cards further down the post */
.post-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 20px 0 22px; }
.post-cards figure { margin: 0; min-width: 0; }
.post-cards img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 6px 18px rgba(15, 30, 50, 0.16); }
.post-cards figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
@media (max-width: 520px) { .post-cards { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .cm *, .cm-layer * { transition: none !important; } }

/* Short screens (a phone on its side, a zoomed-in laptop): the card doesn't stay pinned, so it never covers the box being typed in */
@media (max-height: 500px) {
  .cm .stage, .cm .stage-inner { position: static; }
  .cm .cm-card { cursor: zoom-in; }
}
.cm #nets { margin: 2px 0 8px; }
.cm .stale { display: block; margin-top: 8px; }
.cm .stale .linkbtn { font-weight: 800; display: block; margin-top: 2px; }
.cm-toast { padding-right: 52px; }
.cm-toast .x { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.cm-toast .x:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }
