/* Documentation for QuickBooks Integration For WooCommerce: QuickBooks green
   leads (steps, the section being read), the WooCommerce admin blue links. */
:root {
	--brand: #108000;        /* QuickBooks dark green: white text 5.1:1 */
	--on-brand: #ffffff;
	--brand-soft: #ecf7ea;
	--link: #2271b1;         /* WooCommerce/WordPress admin blue */
	--link-soft: #eaf2fb;
	--ok: #0f7b3e;
	--ok-soft: #e8f6ee;
	--warn: #8a5a00;
	--warn-soft: #fff6e0;
	--ink: #1d2327;
	--ink-2: #50575e;
	--line: #e2e4e7;
	--bg: #ffffff;
	--bg-2: #f6f7f7;
	--code: #f0f0f1;
	--shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .06);
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--brand: #5fcf4e;
		--on-brand: #0b1a07;
		--brand-soft: #17291a;
		--link: #72aee6;
		--link-soft: #1c2a3a;
		--ok: #5fcf8f;
		--ok-soft: #17291f;
		--warn: #f0c060;
		--warn-soft: #2e2615;
		--ink: #e8e9ea;
		--ink-2: #a7aaad;
		--line: #33373c;
		--bg: #16181b;
		--bg-2: #1e2125;
		--code: #26292e;
		--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
		color-scheme: dark;
	}
}

* { box-sizing: border-box; }
html { scroll-padding-top: 76px; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 16.5px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* Top bar */
.top {
	position: sticky; top: 0; z-index: 20;
	display: flex; align-items: center; gap: 14px;
	height: 60px; padding: 0 20px;
	background: color-mix(in srgb, var(--bg) 92%, transparent);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--line);
}
.top__brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; min-width: 0; }
.top__brand img { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.top__brand small { display: block; font-weight: 400; color: var(--ink-2); font-size: 12px; line-height: 1.2; }
.top__home { color: var(--ink-2); font-size: 14px; text-decoration: none; white-space: nowrap; }
.top__home:hover { color: var(--ink); }
.top__search { margin-left: auto; position: relative; flex: 0 1 280px; min-width: 0; }
.top__search input {
	width: 100%; height: 36px; padding: 0 12px 0 34px;
	border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); color: var(--ink); font: inherit; font-size: 14px;
}
.top__search svg { position: absolute; left: 10px; top: 10px; width: 16px; height: 16px; color: var(--ink-2); }
.top__menu { display: none; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 8px; height: 36px; padding: 0 12px; font: inherit; font-size: 14px; }

/* Layout */
.wrap { display: grid; grid-template-columns: 270px minmax(0, 1fr); max-width: 1240px; margin: 0 auto; }
.side {
	position: sticky; top: 60px; align-self: start;
	height: calc(100vh - 60px); overflow-y: auto;
	padding: 24px 12px 40px 20px; border-right: 1px solid var(--line);
}
.side h4 { margin: 18px 10px 6px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.side h4:first-child { margin-top: 0; }
.side a {
	display: block; padding: 6px 10px; border-radius: 6px;
	color: var(--ink); text-decoration: none; font-size: 14.5px; line-height: 1.35;
}
.side a:hover { background: var(--bg-2); }
.side a.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.side a.is-hidden { display: none; }
main { padding: 36px 48px 80px; min-width: 0; }
.doc { max-width: 780px; }

/* Content */
.hero { padding: 8px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.hero h1 { font-size: 34px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.01em; }
.hero p { font-size: 18px; color: var(--ink-2); margin: 0; }
section { padding-top: 26px; }
section.is-hidden { display: none; }
h2 { font-size: 26px; line-height: 1.25; margin: 22px 0 10px; letter-spacing: -.01em; }
h3 { font-size: 19px; margin: 28px 0 8px; }
p, li { max-width: 72ch; }
ul, ol { padding-left: 22px; }
li { margin: 5px 0; }
.lead { font-size: 17.5px; color: var(--ink-2); }
code, kbd {
	font: 13.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	background: var(--code); padding: 2px 6px; border-radius: 5px;
	overflow-wrap: anywhere;
}
.ui { font-weight: 600; } /* An on-screen label: a button, tab or setting name. */
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0 0; }

/* Numbered steps */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 14px 0; }
ol.steps > li { counter-increment: step; position: relative; padding: 2px 0 10px 44px; margin: 0; }
ol.steps > li::before {
	content: counter(step); position: absolute; left: 0; top: 0;
	width: 28px; height: 28px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 14px;
}

/* Callouts */
.note, .tip, .warn, .key {
	border-radius: 10px; padding: 12px 16px 12px 46px; margin: 16px 0; position: relative; font-size: 15.5px;
}
.note::before, .tip::before, .warn::before, .key::before { position: absolute; left: 15px; top: 11px; font-size: 18px; }
.note { background: var(--link-soft); } .note::before { content: "ℹ️"; }
.tip { background: var(--ok-soft); } .tip::before { content: "💡"; }
.warn { background: var(--warn-soft); } .warn::before { content: "⚠️"; }
.key { background: var(--brand-soft); } .key::before { content: "🔒"; }
.note p, .tip p, .warn p, .key p { margin: 4px 0; }

/* Badges */
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; padding: 1px 8px; border-radius: 99px; vertical-align: 2px; }
.badge.rec { background: var(--ok-soft); color: var(--ok); }
.badge.opt { background: var(--link-soft); color: var(--link); }

/* Screenshots */
figure.shot { margin: 18px 0 22px; }
figure.shot img {
	display: block; max-width: 100%; height: auto;
	border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); background: #fff;
}
figure.shot.half img { max-width: min(100%, 531px); }
figure.shot figcaption { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; }

/* Settings tables */
.table { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-2); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; white-space: nowrap; }
.table.wrap-first td:first-child { white-space: normal; }

/* Cards on the home section */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 18px 0; }
.card {
	display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
	color: var(--ink); text-decoration: none; background: var(--bg);
}
.card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.card strong { display: block; margin-bottom: 2px; }
.card span { color: var(--ink-2); font-size: 14px; }

/* Questions */
details { border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; margin: 10px 0; }
details summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
details > :last-child { margin-bottom: 14px; }

.empty-search { display: none; padding: 40px 0; color: var(--ink-2); }
.foot { margin-top: 60px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.foot p { margin: 6px 0; }

@media (max-width: 480px) {
	.top__brand span, .top__home { display: none; }
}
@media (max-width: 900px) {
	.wrap { grid-template-columns: 1fr; }
	.side {
		display: none; position: fixed; inset: 60px 0 0 0; z-index: 15; height: auto;
		background: var(--bg); border-right: 0; padding: 16px 20px 40px;
	}
	body.menu-open .side { display: block; }
	.top__menu { display: inline-block; }
	.top__brand small { display: none; }
	.top { gap: 10px; padding: 0 12px; }
	.top__menu { flex: none; }
	main { padding: 24px 16px 60px; }
	.hero h1 { font-size: 27px; }
	h2 { font-size: 23px; }
	td:first-child { white-space: normal; }
}
