/* Content-only layouts shared by Docs articles and the Docs editor. */
:is(.btm-docs-home-content, .editor-styles-wrapper) .btm-docs-categories { margin: 16px 0 0; padding: 0 0 24px; }
:is(.btm-docs-home-content, .editor-styles-wrapper) .btm-docs-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; }
:is(.btm-docs-home-content, .editor-styles-wrapper) .btm-docs-category-grid > .btm-docs-category-card { position: relative; min-width: 0; margin: 0 !important; margin-block: 0 !important; padding: 28px; border: 1px solid #dedede; border-radius: 12px; background: #ffffff; }
:is(.btm-docs-home-content, .editor-styles-wrapper) .btm-docs-category-card > .btm-docs-category-icon-box { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 0 28px !important; border-radius: 8px; background: #e8f0ff; pointer-events: none; }
.btm-docs-category-basics { --docs-category-icon: url('../icons/category-basics.svg'); }
.btm-docs-category-designer { --docs-category-icon: url('../icons/category-designer.svg'); }
.btm-docs-category-cricut { --docs-category-icon: url('../icons/category-cricut.svg'); }
.btm-docs-category-silhouette { --docs-category-icon: url('../icons/category-silhouette.svg'); }
:is(.btm-docs-home-content, .editor-styles-wrapper) .btm-docs-category-grid .btm-docs-category-card > h3 { margin: 0 0 12px; font-size: 18px; font-weight: 600; line-height: 1.35; }
:is(.btm-docs-home-content, .editor-styles-wrapper) .btm-docs-category-card h3 a { color: var(--docs-heading-color, #484848); text-decoration: none; }
:is(.btm-docs-home-content, .editor-styles-wrapper) .btm-docs-category-grid .btm-docs-category-card > p { margin: 0 !important; margin-block: 0 !important; color: var(--docs-ink, #484848); font-size: 16px; line-height: 1.7; }
:is(.btm-docs-home-content, .editor-styles-wrapper) .btm-docs-category-icon-box > .btm-docs-category-icon { margin: 0 !important; flex: 0 0 24px; width: 24px; height: 24px; background-color: var(--docs-category-icon-color, #2563eb); -webkit-mask: var(--docs-category-icon) center / contain no-repeat; mask: var(--docs-category-icon) center / contain no-repeat; pointer-events: none; }
.btm-docs-home-content .btm-docs-category-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: 12px; }
.btm-docs-home-content .btm-docs-category-grid > .btm-docs-category-card:hover { border-color: #e8e9eb; background: #fafafa; }
.btm-docs-home-content .btm-docs-category-card h3 a:focus-visible { outline: none; }
.btm-docs-home-content .btm-docs-category-card h3 a:focus-visible::after { outline: 2px solid #2563eb; outline-offset: 3px; }
@media (max-width: 760px) {
	:is(.btm-docs-home-content, .editor-styles-wrapper) .btm-docs-category-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	:is(.btm-docs-home-content, .editor-styles-wrapper) .btm-docs-category-grid > .btm-docs-category-card { padding: 24px; }
}
.editor-styles-wrapper .btm-docs-overview { align-items: center !important; gap: 32px; }
.editor-styles-wrapper .btm-docs-overview h1 { font-size: 42px; font-weight: 600; margin-bottom: 28px; }
.editor-styles-wrapper .btm-docs-overview-copy p { margin: 0 0 36px; font-size: 16px; line-height: 1.8; }
.editor-styles-wrapper .btm-docs-overview-image img { border: 1px solid #e1e3e5; border-radius: 12px; }
.editor-styles-wrapper .btm-docs-quickstart > a { padding: 12px 24px; border-radius: 999px; background: #484848; color: #fff; font-size: 14px; font-weight: 600; }
:is(.btm-docs-content, .editor-styles-wrapper) .btm-docs-step {
	gap: 28px;
	margin: 36px 0;
	align-items: flex-start;
}
:is(.btm-docs-content, .editor-styles-wrapper) .btm-docs-step h2 { margin: 0 0 12px; }
/* Image first on phones; the same image sits beside the full guide on desktop. */
:is(.btm-docs-content, .editor-styles-wrapper) .btm-docs-illustrated-guide {
	gap: 28px;
	margin: 0;
	align-items: flex-start;
}
:is(.btm-docs-content, .editor-styles-wrapper) .btm-docs-illustrated-guide > .wp-block-column > h2:first-child { margin-top: 0; }
@media (min-width: 782px) {
	:is(.btm-docs-content, .editor-styles-wrapper) .btm-docs-illustrated-guide { flex-direction: row-reverse; }
	:is(.btm-docs-content, .editor-styles-wrapper) .btm-docs-illustrated-guide > .wp-block-column:first-child { flex-basis: 0; flex-grow: 1; }
	:is(.btm-docs-content, .editor-styles-wrapper) .btm-docs-illustrated-guide > .wp-block-column:last-child { flex-basis: 0; flex-grow: 2; }
	:is(.btm-docs-content, .editor-styles-wrapper) .btm-docs-step > .wp-block-column:first-child { flex-basis: 0; flex-grow: 2; }
	:is(.btm-docs-content, .editor-styles-wrapper) .btm-docs-step > .wp-block-column:last-child { flex-basis: 0; flex-grow: 1; }
	/* Cutting-machine guides use equal text and screenshot columns. */
	:is(.btm-docs-content, .editor-styles-wrapper) .btm-docs-step.btm-docs-step-equal > .wp-block-column { flex-basis: 0; flex-grow: 1; }
}
:is(.btm-docs-content, .editor-styles-wrapper) .btm-docs-step p:last-child { margin-bottom: 0; }
/* Columns own the spacing; linked screenshots align with the adjacent text. */
:is(.btm-docs-content, .editor-styles-wrapper) .btm-docs-step .btm-docs-screenshot { margin: 0; }
:is(.btm-docs-content, .editor-styles-wrapper) .btm-docs-inline-image { margin: 0; max-width: 100%; }
:is(.btm-docs-content, .editor-styles-wrapper) .btm-docs-image-small { max-width: min(100%, 260px); }
:is(.btm-docs-content, .editor-styles-wrapper) .btm-docs-image-medium { max-width: min(100%, 300px); }
:is(.btm-docs-content, .editor-styles-wrapper) .btm-docs-inline-image img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	box-sizing: border-box;
	border: 1px solid var(--docs-line);
	border-radius: 8px;
}
@media (max-width: 781px) {
	:is(.btm-docs-content, .editor-styles-wrapper) .btm-docs-illustrated-guide { gap: 18px; }
	:is(.btm-docs-content, .editor-styles-wrapper) .btm-docs-step { gap: 18px; }
}
.btm-docs-category-cricut, .btm-docs-category-silhouette { --docs-category-icon-color: #5385f1; }
:is(.btm-docs-home-content, .editor-styles-wrapper) :is(.btm-docs-category-cricut, .btm-docs-category-silhouette) .btm-docs-category-icon-box > .btm-docs-category-icon { width: 20px; height: 20px; flex-basis: 20px; }
