/* TMFonts — single stylesheet. No web fonts: product images carry the typography. */

:root {
	--bg: #ffffff;
	--tint: #f7f5f0;
	--ink: #141414;
	--ink-2: #3a3a3a;
	--muted: #6b6a66;
	--line: #e7e4dd;
	--accent: #f2b33d;
	--accent-hover: #e6a21f;
	--accent-soft: #fdf1d8;
	--success: #1f7a4d;
	--danger: #b42318;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 8px 24px rgba(20, 20, 20, .06);
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 8px 14px; background: var(--ink); color: #fff; border-radius: var(--radius-sm); }
.skip-link:focus { top: 8px; }
.center { text-align: center; }

/* Layout */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: calc(760px + 2 * var(--gutter)); }
.wrap-mid { max-width: calc(1000px + 2 * var(--gutter)); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-sm { padding-block: 32px 64px; }
.section-tint { background: var(--tint); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head-center { flex-direction: column; align-items: center; text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head-center p:last-child { color: var(--muted); margin: 0; }
.eyebrow { display: inline-block; margin: 0 0 12px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 1.5px solid transparent; border-radius: 999px; font-weight: 650; font-size: .95rem; line-height: 1; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { display: flex; width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; flex-shrink: 0; text-decoration: none; }
.logo img { width: auto; height: 34px; }
.logo-text { font-size: 1.6rem; font-weight: 900; letter-spacing: -.04em; }
.logo-text span { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 24px; flex: 1; }
.nav-list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-list a { display: block; padding: 8px 12px; border-radius: 999px; font-size: .95rem; font-weight: 550; color: var(--ink-2); text-decoration: none; }
.nav-list a:hover, .nav-list .current-menu-item > a { background: var(--tint); color: var(--ink); }
.nav-cta { min-height: 38px; padding: 0 16px; font-size: .88rem; margin-left: auto; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--tint); }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: .7rem; font-weight: 800; line-height: 18px; text-align: center; }
.header-search { display: flex; align-items: center; height: 40px; width: 220px; padding: 0 4px 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.header-search:focus-within { border-color: var(--ink); }
.header-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: .92rem; }
.header-search button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; background: none; cursor: pointer; color: var(--muted); }
.nav-toggle { display: none; }
.nav-search { display: none; }

@media (max-width: 1080px) {
	.header-search { width: 170px; }
	.nav-list a { padding: 8px 9px; }
}
@media (max-width: 900px) {
	.nav-toggle { display: inline-grid; margin-left: -8px; }
	.header-inner { gap: 8px; }
	.header-search { display: none; }
	.site-nav .nav-search { display: flex; width: 100%; height: 48px; }
	.site-nav { position: fixed; inset: 68px 0 0; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px var(--gutter) 32px; background: var(--bg); overflow-y: auto; transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
	.nav-open .site-nav { transform: none; visibility: visible; }
	.nav-open { overflow: hidden; }
	.nav-list { flex-direction: column; }
	.nav-list a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.1rem; }
	.nav-list a:hover { background: none; }
	.nav-cta { margin: 8px 0 0; min-height: 50px; font-size: 1rem; }
}

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 104px) 8px; background: radial-gradient(1200px 400px at 50% -10%, var(--accent-soft), transparent 70%); text-align: center; }
.hero-compact { padding-bottom: 32px; }
.hero-inner { max-width: 880px; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.25rem); font-weight: 850; letter-spacing: -.035em; line-height: 1.04; margin-bottom: 20px; }
.hero-title em { font-style: normal; background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%); padding-inline: .06em; }
.hero-lede { max-width: 600px; margin: 0 auto 32px; color: var(--ink-2); font-size: clamp(1.02rem, 1.6vw, 1.18rem); }
.hero-search { display: flex; align-items: center; gap: 8px; max-width: 580px; margin: 0 auto 24px; padding: 6px 6px 6px 18px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--bg); box-shadow: var(--shadow); }
.hero-search > .icon { flex-shrink: 0; color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; height: 44px; border: 0; outline: none; background: none; font-size: 1.02rem; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: .9rem; font-weight: 550; text-decoration: none; transition: border-color .15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips-small { justify-content: flex-start; margin-top: 32px; }
.prose .chips { padding-left: 0; }
.prose .chips li + li { margin-top: 0; }
.chips-small .chip { padding: 5px 12px; font-size: .82rem; color: var(--ink-2); }

/* Grid + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.card { position: relative; display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 12px 2px 0; }
.card-title { margin: 0 0 4px; font-size: 1rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.35; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; color: var(--muted); }
.card-price { color: var(--ink); font-weight: 700; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; max-width: 1040px; margin: 0 auto; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: var(--bg); }
.price-card.is-featured { border: 2px solid var(--ink); box-shadow: var(--shadow); }
.price-badge { position: absolute; top: -13px; left: 28px; padding: 4px 12px; border-radius: 999px; background: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.price-name { font-size: 1.1rem; margin-bottom: 8px; }
.price-amount { display: flex; align-items: baseline; gap: 8px; margin-bottom: 24px; }
.price-amount .amount { font-size: 2.75rem; font-weight: 850; letter-spacing: -.03em; line-height: 1; }
.price-amount .period { color: var(--muted); font-size: .95rem; }
.price-features { flex: 1; margin: 0 0 28px; padding: 0; list-style: none; }
.price-features li { display: flex; gap: 10px; padding: 7px 0; font-size: .93rem; color: var(--ink-2); }
.price-features .icon { flex-shrink: 0; margin-top: 4px; color: var(--success); }
.price-features strong { color: var(--ink); font-weight: 650; }
.pricing-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 28px 0 0; color: var(--muted); font-size: .9rem; text-align: center; }

/* USP row */
.usp { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.usp .icon { margin-bottom: 14px; }
.usp p { color: var(--muted); margin: 0; }

/* Breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 20px 0 0; list-style: none; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* Product */
.product { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "media buy" "content buy"; gap: 24px 56px; padding-block: 20px 48px; }
.product-media { grid-area: media; min-width: 0; }
.product-buy { grid-area: buy; align-self: start; } /* Not sticky: the column is taller than most screens, so sticking would hide its lower part. */
.product-content { grid-area: content; min-width: 0; padding-top: 16px; }
.buy-box { padding: 28px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); }
.product-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 12px; }
.product-price { margin-bottom: 20px; font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.purchase { margin-bottom: 20px; }
.details { margin: 0 0 20px; padding: 0; border-top: 1px solid var(--line); }
.details div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 600; text-align: right; }
.trust { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .85rem; color: var(--muted); }
.upsell { margin-top: 16px; padding: 24px 28px; border-radius: calc(var(--radius) + 6px); background: var(--accent-soft); }
.upsell-title { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 750; }
.upsell p:not(.upsell-title) { font-size: .93rem; color: var(--ink-2); }

.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: calc(var(--radius) + 6px); background: var(--tint); scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; margin: 0; aspect-ratio: 3 / 2; scroll-snap-align: start; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; overflow-x: auto; }
.gallery-thumbs a { display: block; width: 84px; aspect-ratio: 3 / 2; overflow: hidden; border: 2px solid transparent; border-radius: var(--radius-sm); opacity: .65; transition: opacity .15s, border-color .15s; }
.gallery-thumbs a:hover { opacity: 1; }
.gallery-thumbs a[aria-current="true"] { border-color: var(--ink); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
	.product { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "buy" "content"; gap: 24px; }
	.buy-box { padding: 0; border: 0; }
	.gallery-track { border-radius: var(--radius); }
}

/* Archive */
.archive-head { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.archive-head h1 { margin: 16px 0 8px; }
.archive-head .chips { justify-content: flex-start; margin: 20px 0 16px; }
.archive-desc { max-width: 720px; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.toolbar .count { margin: 0; color: var(--muted); font-size: .92rem; }
.sort { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--tint); }
.sort a { padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.sort a[aria-current] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.pagination { display: flex; justify-content: center; margin-top: 48px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; margin: 0 3px; padding: 0 12px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.pagination a.page-numbers:hover { background: var(--tint); }
.pagination .current { background: var(--ink); color: #fff; }
.empty { padding-block: 48px; text-align: center; }
.empty .hero-search { margin-block: 24px; }

/* Pages + prose */
.page-body { padding-block: 32px 72px; }
.page-head { margin-bottom: 28px; }
.page-head p { color: var(--muted); }
.prose { font-size: 1.02rem; color: var(--ink-2); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.8em; color: var(--ink); }
.prose a { color: var(--ink); font-weight: 550; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.5em 0; padding: 16px 20px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--tint); }
.prose blockquote p:last-child { margin: 0; }
.prose img { border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.prose th, .prose td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 650; color: var(--ink); background: var(--tint); }
.post-date { color: var(--muted); }
.post-list { margin: 0; padding: 0; list-style: none; }
.post-list li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-list h2 a { text-decoration: none; }

/* FAQ */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 650; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--ink-2); }

/* Forms (theme + EDD) */
.field, .prose fieldset p, .auth-box p { margin: 0 0 16px; }
.field label, .prose label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 16px; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], input[type="url"], input[type="number"], select, textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #d6d3cc; border-radius: var(--radius-sm); background: var(--bg); transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 20, 20, .08); }
.header-search input, .hero-search input { min-height: 0; padding: 0; border: 0; box-shadow: none; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--ink); vertical-align: middle; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 550; }
.notice-success { background: #e8f5ee; color: var(--success); }
.notice-error { background: #fdecea; color: var(--danger); }

/* EDD components */
.edd_download_purchase_form { margin: 0; }
.edd_download_purchase_form .edd_price_options { margin: 0 0 16px; }
.edd_download_purchase_form .edd_price_options ul { margin: 0; padding: 0; list-style: none; }
.edd_download_purchase_form .edd_price_options li { padding: 8px 0; }
.edd-submit, .edd-add-to-cart, .edd_go_to_checkout, .edd_submit, input#edd-purchase-button, #edd_login_submit, #edd_register_form .edd-submit, .edd-aa-download-btn {
	display: inline-flex; align-items: center; justify-content: center; width: auto; min-height: 50px; padding: 0 26px;
	border: 0 !important; border-radius: 999px !important; background: var(--ink) !important; color: #fff !important;
	font-weight: 650 !important; font-size: 1rem !important; line-height: 1; text-decoration: none !important; cursor: pointer; box-shadow: none !important;
}
.edd-submit:hover, .edd-add-to-cart:hover, .edd_go_to_checkout:hover, input#edd-purchase-button:hover { background: #000 !important; }
.purchase .edd-add-to-cart, .purchase .edd_go_to_checkout, .purchase .edd-submit, .purchase a.button { width: 100%; }
.edd_go_to_checkout { background: var(--accent) !important; color: var(--ink) !important; }
.edd-loading { display: none; }
.edd-loading.edd-loading-active, .edd-add-to-cart[data-edd-loading] .edd-loading { display: inline-block; }
.edd-cart-added-alert { display: block; margin-top: 10px; color: var(--success); font-weight: 600; font-size: .9rem; }
.edd-cart-added-alert .edd-icon { display: inline; width: 16px; fill: currentColor; vertical-align: -2px; }
.edd_errors, .edd-alert { margin: 0 0 20px; padding: 14px 18px; border: 0; border-radius: var(--radius-sm); }
.edd-alert-error, .edd_errors { background: #fdecea; color: var(--danger); }
.edd-alert-success { background: #e8f5ee; color: var(--success); }
.edd-alert-info, .edd-alert-warn { background: var(--accent-soft); color: var(--ink); }
.edd_errors p { margin: 0; }

/* Account tables (purchase history, download history, passes) */
#edd_user_history, .edd-table, .edd_purchase_receipt, #edd_purchase_receipt, #edd_purchase_receipt_products, .edd-all-access-passes-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
#edd_user_history th, #edd_user_history td, .edd-table th, .edd-table td, #edd_purchase_receipt th, #edd_purchase_receipt td, #edd_purchase_receipt_products th, #edd_purchase_receipt_products td { padding: 12px 10px; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
#edd_user_history thead th, .edd-table thead th, #edd_purchase_receipt thead th, #edd_purchase_receipt_products thead th { background: var(--tint); color: var(--ink); }
.edd-blocks__row, .edd-blocks-receipt__row-item { border-color: var(--line) !important; }

/* Footer */
.site-footer { margin-top: 0; padding-top: 64px; background: var(--ink); color: #c9c7c2; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; }
.footer-brand .logo img { height: 30px; }
.footer-brand .logo img:not(.logo-light) { filter: invert(1) hue-rotate(180deg); }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { max-width: 320px; margin-top: 16px; font-size: .93rem; }
.pay-note { display: flex; align-items: center; gap: 8px; }
.footer-col h2 { margin-bottom: 14px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list li { padding: 5px 0; font-size: .93rem; }
.footer-bottom { padding-block: 24px 32px; border-top: 1px solid #2c2c2c; font-size: .85rem; color: #8f8d88; }
.footer-bottom p { margin: 0 0 8px; }
.disclaimer { max-width: 900px; }
@media (max-width: 800px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Membership-first selling */
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.02rem; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 32px; }
.hero-ctas + .hero-search { margin-top: 0; }
.price-equiv { margin: -18px 0 20px; min-height: 1.4em; font-size: .9rem; font-weight: 650; color: var(--success); }

.buy-option { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.buy-option-member { border: 2px solid var(--ink); background: var(--accent-soft); }
.buy-flag { position: absolute; top: -11px; left: 18px; padding: 2px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.buy-option-title { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 4px; font-weight: 700; }
.buy-option-price { margin: 0 0 12px; font-size: 1.9rem; font-weight: 850; letter-spacing: -.02em; line-height: 1.1; }
.buy-perks { margin: 0 0 16px; padding: 0; list-style: none; font-size: .9rem; color: var(--ink-2); }
.buy-perks li { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.buy-perks .icon { color: var(--success); flex-shrink: 0; }
.buy-compare { display: block; margin-top: 12px; font-size: .88rem; font-weight: 600; text-align: center; }
.buy-or { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--muted); font-size: .85rem; }
.buy-or::before, .buy-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.purchase-secondary { margin-bottom: 20px; }
.buy-single-price { font-weight: 800; }
.purchase-secondary .edd-add-to-cart, .purchase-secondary .edd-submit { width: 100%; background: var(--bg) !important; color: var(--ink) !important; border: 1.5px solid var(--ink) !important; min-height: 46px; }
.purchase-secondary .edd-add-to-cart:hover { background: var(--tint) !important; }

.member-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; padding: 16px 20px; border-radius: var(--radius); background: var(--accent-soft); }
.member-strip p { display: flex; align-items: center; gap: 10px; margin: 0; }
.member-strip .icon { flex-shrink: 0; }


/* DMCA page */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin: 0 0 32px; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 16px 16px 16px 52px; border-radius: var(--radius); background: var(--tint); font-size: .9rem; color: var(--ink-2); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 800; }
.steps strong { display: block; color: var(--ink); }
.dmca-form fieldset { margin: 0 0 20px; padding: 20px 24px 4px; border: 1px solid var(--line); border-radius: var(--radius); }
.dmca-form legend { padding: 0 8px; margin-left: -8px; font-weight: 750; }
.dmca-form .check { margin: 0 0 14px; }
.dmca-form .check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .92rem; color: var(--ink-2); }
.dmca-form .check input { flex-shrink: 0; margin-top: 3px; }
.req { color: var(--danger); }
.dmca-alt { margin-top: 24px; font-size: .9rem; color: var(--muted); }
.report-link { margin: 12px 0 0; font-size: .82rem; text-align: center; }
.report-link a { color: var(--muted); }
.report-link a:hover { color: var(--ink); }

/* ==========================================================================
   Checkout
   EDD markup is untouched; layout comes from here. Left: details + payment.
   Right: sticky order summary (#edd_checkout_cart_form). Mobile: summary first.
   ========================================================================== */

/* Distraction-free header/footer */
.focus-header .header-inner { justify-content: space-between; height: 64px; }
.secure-badge { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .9rem; font-weight: 650; color: var(--success); }
.link-back { font-size: .9rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.link-back:hover { color: var(--ink); text-decoration: underline; }
.focus-footer { padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.focus-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.focus-footer p { margin: 0; }
.focus-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.focus-links a { text-decoration: none; }
.focus-links a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 600px) { .link-back { display: none; } }

/* Page head + progress */
.checkout-page { padding-block: 28px 72px; background: linear-gradient(var(--tint), var(--tint)) top / 100% 220px no-repeat; }
.co-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.co-head h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.co-progress { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: .88rem; font-weight: 600; color: var(--muted); }
.co-progress li { display: flex; align-items: center; gap: 8px; }
.co-progress li + li::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--line); }
.co-progress li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--bg); border: 1.5px solid var(--line); font-size: .75rem; font-weight: 800; }
.co-progress .is-done { color: var(--ink); }
.co-progress .is-done span { background: var(--success); border-color: var(--success); color: #fff; }
.co-progress .is-current { color: var(--ink); }
.co-progress .is-current span { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Two-column grid */
.is-checkout { color: var(--ink); font-size: 1rem; }
.is-checkout > * + * { margin-top: 0; }
.is-checkout #edd_checkout_wrap { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-areas: "main summary"; gap: 32px; align-items: start; }
.is-checkout #edd_checkout_form_wrap { grid-area: main; min-width: 0; }
.is-checkout #edd_checkout_cart_form { grid-area: summary; position: sticky; top: 88px; }
.is-checkout fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.is-checkout legend { display: none; }

/* Left column: cards in a fixed, logical order */
.is-checkout #edd_purchase_form { display: flex; flex-direction: column; gap: 20px; }
.is-checkout #edd_checkout_login_register { order: 1; }
.is-checkout #edd_discount_code { order: 2; }
.is-checkout .edd-payment-icons { order: 3; display: none; }
.is-checkout #edd_purchase_submit { order: 4; }
.is-checkout #edd_checkout_user_info,
.is-checkout #edd_purchase_submit { padding: 28px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: var(--bg); box-shadow: var(--shadow); }

.co-step { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-size: 1.2rem; letter-spacing: -.01em; }
.co-step-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 800; }
.co-account { margin: 0 0 20px 42px; font-size: .9rem; color: var(--muted); }
.co-account a { font-weight: 650; color: var(--ink); }
.co-hint { margin: -6px 0 16px; font-size: .84rem; color: var(--muted); }
.co-pay-hint { margin: 0 0 20px 42px; }

/* Details fields: email full width, names side by side */
.is-checkout #edd_checkout_user_info { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.is-checkout #edd_checkout_user_info > * { grid-column: 1 / -1; }
.is-checkout #edd-first-name-wrap { grid-column: 1; }
.is-checkout #edd-last-name-wrap { grid-column: 2; }
.is-checkout #edd_checkout_user_info p { margin: 0 0 16px; }
.is-checkout #edd_checkout_user_info .edd-description { display: none; }
.is-checkout .edd-label { display: block; margin-bottom: 6px; font-size: .88rem; font-weight: 650; }
.is-checkout .edd-required-indicator { color: var(--danger); }
.is-checkout input.edd-input { min-height: 52px; padding: 12px 16px; border-radius: 12px; font-size: 1rem; background: var(--bg); }
.is-checkout input.edd-input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(242, 179, 61, .25); }
.is-checkout input.edd-input.error, .is-checkout input.edd-input:user-invalid { border-color: var(--danger); }
@media (max-width: 520px) {
	.is-checkout #edd-first-name-wrap, .is-checkout #edd-last-name-wrap { grid-column: 1 / -1; }
}

/* Discount code: a quiet link that opens an inline field */
.is-checkout #edd_discount_code { padding: 0 4px; }
.is-checkout #edd_show_discount { margin: 0; font-size: .92rem; color: var(--muted); }
.is-checkout .edd_discount_link { font-weight: 650; color: var(--ink); }
.is-checkout #edd-discount-code-wrap { margin: 0; padding: 20px; border: 1px dashed #d6d3cc; border-radius: var(--radius); background: var(--bg); }
.is-checkout #edd-discount-code-wrap .edd-label, .is-checkout #edd-discount-code-wrap .edd-description { display: none; }
.is-checkout .edd-discount-code-field-wrap { display: flex; gap: 8px; }
.is-checkout .edd-discount-code-field-wrap input.edd-input { flex: 1; min-height: 46px; }
.is-checkout .edd-apply-discount { min-height: 46px !important; padding: 0 20px !important; }
.is-checkout #edd-discount-error-wrap { margin-top: 10px; }

/* Payment card */
.is-checkout #edd_final_total_wrap { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 18px; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: 1rem; }
.is-checkout #edd_final_total_wrap strong { font-weight: 600; color: var(--muted); }
.is-checkout #edd_final_total_wrap .edd_cart_amount { font-size: 1.6rem; font-weight: 850; letter-spacing: -.02em; }
.is-checkout #edd-paypal-container { position: relative; z-index: 0; }
.is-checkout #edd-paypal-spinner { margin: 12px auto 0; }
.co-legal { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: .8rem; color: var(--muted); }
.co-legal .icon { flex-shrink: 0; color: var(--success); }
.is-checkout .edd_errors { margin: 0 0 16px; }
.is-checkout #edd-purchase-button { width: 100%; min-height: 54px; }

/* Right column: order summary card */
.is-checkout #edd_checkout_cart_wrap { padding: 24px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: var(--bg); box-shadow: var(--shadow); }
.co-summary-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.co-summary-head h2 { margin: 0; font-size: 1.1rem; }
.co-summary-head span { font-size: .85rem; color: var(--muted); }

.is-checkout #edd_checkout_cart { display: block; width: 100%; margin: 0; border: 0; border-collapse: collapse; }
.is-checkout #edd_checkout_cart thead { display: none; }
.is-checkout #edd_checkout_cart tbody, .is-checkout #edd_checkout_cart tfoot { display: block; }
.is-checkout #edd_checkout_cart th, .is-checkout #edd_checkout_cart td { padding: 0; border: 0; background: none; text-align: left; }
.is-checkout tr.edd_cart_item { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "actions price"; gap: 2px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.is-checkout td.edd_cart_item_name { grid-area: name; display: flex; align-items: center; gap: 14px; font-weight: 650; line-height: 1.35; }
.is-checkout .edd_cart_item_image { flex-shrink: 0; }
.is-checkout .edd_cart_item_image img { display: block; width: 72px; height: 48px; object-fit: cover; border-radius: 8px; }
.is-checkout .edd_checkout_cart_item_title { font-size: .93rem; }
.is-checkout td.edd_cart_item_price { grid-area: price; align-self: center; font-weight: 750; white-space: nowrap; }
.is-checkout td.edd_cart_actions { grid-area: actions; padding-left: 86px; }
.is-checkout .edd_cart_remove_item_btn { font-size: .8rem; color: var(--muted); text-decoration: underline; }
.is-checkout .edd_cart_remove_item_btn:hover { color: var(--danger); }
.is-checkout tr.edd_cart_footer_row { display: block; }
.is-checkout tr.edd_cart_footer_row th { display: block; }
.is-checkout th.edd_cart_discount:empty, .is-checkout tr.edd_cart_discount_row:has(th:empty) { display: none; }
.is-checkout th.edd_cart_discount { padding-top: 12px; font-size: .9rem; font-weight: 500; color: var(--success); }
.is-checkout .edd_cart_footer_row th.edd_cart_total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; font-size: 1rem; font-weight: 650; }
.is-checkout th.edd_cart_total .edd_cart_amount { font-size: 1.5rem; font-weight: 850; letter-spacing: -.02em; }
.is-checkout .edd_cart_item_quantity, .is-checkout .edd_cart_fee { font-size: .9rem; }

/* Membership offer inside the summary */
.checkout-upsell { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; padding: 18px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--accent-soft); }
.checkout-upsell .upsell-title { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 4px; font-size: .95rem; font-weight: 750; line-height: 1.35; color: var(--ink); }
.checkout-upsell .upsell-title .icon { flex-shrink: 0; margin-top: 2px; }
.checkout-upsell p:not(.upsell-title) { margin: 0; font-size: .85rem; color: var(--ink-2); }
.checkout-upsell .btn { min-height: 44px; font-size: .9rem; }

.co-trust { display: grid; gap: 10px; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: .88rem; color: var(--ink-2); }
.co-trust li { display: flex; align-items: center; gap: 10px; margin: 0; }
.co-trust .icon { flex-shrink: 0; color: var(--success); }

/* Empty cart */
.co-empty { max-width: 520px; margin: 24px auto; padding: 48px 28px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); text-align: center; }
.co-empty-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 999px; background: var(--tint); }
.co-empty h2 { margin-bottom: 8px; }
.co-empty p { color: var(--muted); }
.co-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 0; }

/* Tablet / mobile: summary on top, one column */
@media (max-width: 960px) {
	.is-checkout #edd_checkout_wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "summary" "main"; gap: 20px; }
	.is-checkout #edd_checkout_cart_form { position: static; }
	.checkout-page { background-size: 100% 160px; }
}
@media (max-width: 600px) {
	.is-checkout #edd_checkout_user_info, .is-checkout #edd_purchase_submit, .is-checkout #edd_checkout_cart_wrap { padding: 20px; }
	.co-progress li:not(.is-current) { font-size: 0; gap: 0; }
	.co-account, .co-pay-hint { margin-left: 0; }
}

/* Checkout: replacements for the few functional bits of EDD's stylesheet (not loaded here) */
.is-checkout #edd_checkout_cart br { display: none; }
.is-checkout .edd-loading { display: inline-block; width: 1.1em; height: 1.1em; border: 2px solid rgba(20, 20, 20, .15); border-left-color: var(--ink); border-radius: 50%; vertical-align: middle; animation: tmf-spin 1s linear infinite; }
.is-checkout .edd-discount-loader { margin-left: 8px; }
.is-checkout .edd-submit, .is-checkout .edd-apply-discount { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 650; cursor: pointer; }
.is-checkout #edd-purchase-button[data-edd-button-state="disabled"], .is-checkout #edd-purchase-button[data-edd-button-state="processing"] { opacity: .5; cursor: wait; }
@keyframes tmf-spin { to { transform: rotate(360deg); } }
.is-checkout h2.co-step { margin-top: 0; }
.is-checkout #edd_checkout_cart td.edd_cart_actions { padding-left: 86px; }
.prose a.btn { text-decoration: none; }
.prose a.btn-primary { color: #fff; }
.is-checkout #edd_checkout_wrap:has(> .co-empty) { display: block; }
.checkout-upsell .btn { height: auto; min-height: 46px; padding: 10px 18px; line-height: 1.25; text-align: center; white-space: normal; }

/* Reviews */
.stars { --size: 16px; position: relative; display: inline-block; width: calc(var(--size) * 5); height: var(--size); vertical-align: -2px; background: linear-gradient(90deg, var(--accent) var(--pct), #dcd8cf var(--pct)); -webkit-mask: var(--mask, none); mask: var(--mask, none); }
.stars { --mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cg%3E%3Cpath id='s' d='M12 1.5l3.1 6.9 7.4.7-5.6 5 1.7 7.4L12 17.7l-6.6 3.8 1.7-7.4-5.6-5 7.4-.7z'/%3E%3Cuse href='%23s' x='24'/%3E%3Cuse href='%23s' x='48'/%3E%3Cuse href='%23s' x='72'/%3E%3Cuse href='%23s' x='96'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.card-rating { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: .8rem; color: var(--muted); }
.reviews { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.reviews-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.prose .reviews-head h2 { margin: 0; }
.reviews-summary { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); }
.reviews-summary strong { font-size: 1.2rem; color: var(--ink); }
.review-list { margin: 0 0 24px; padding: 0; list-style: none; }
.prose .review-list li + li { margin-top: 0; }
.review { padding: 20px 0; border-bottom: 1px solid var(--line); }
.review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .88rem; }
.review-meta strong { color: var(--ink); }
.review-meta time { color: var(--muted); }
.verified { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--success); }
.review-title { margin: 10px 0 0; font-weight: 700; color: var(--ink); }
.review-body { margin-top: 6px; }
.review-body p { margin: 0 0 .6em; }
.reviews-empty, .review-cta { color: var(--muted); }
.review-form { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); }
.prose .review-form h3 { margin: 0 0 12px; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin: 0 0 16px; padding: 0; border: 0; }
.rating-input legend { width: 100%; margin-bottom: 6px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { width: 32px; height: 32px; margin: 0; cursor: pointer; background: #dcd8cf; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); transition: background-color .1s; }
.rating-input label:hover, .rating-input label:hover ~ label, .rating-input input:checked ~ label { background: var(--accent); }
.rating-input input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.prose .review-list { padding-left: 0; }

/* Designers */
.byline { margin: -6px 0 14px; font-size: .95rem; color: var(--muted); }
.byline a { font-weight: 650; color: var(--ink); }
.designer-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; padding: 0; list-style: none; font-size: .92rem; color: var(--muted); }
.designer-facts li + li::before { content: "·"; margin-right: 18px; color: var(--line); }
.designer-head .btn { margin-top: 4px; }
.designer-more { margin-top: 40px; }
.designer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.designer-card a { display: block; text-decoration: none; }
.designer-thumb { display: block; aspect-ratio: 3 / 2; margin-bottom: 10px; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.designer-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.designer-card a:hover img { transform: scale(1.03); }
.designer-card strong { display: block; font-size: 1rem; }
.designer-meta { font-size: .85rem; color: var(--muted); }

/* ==========================================================================
   Account dashboard (user-dashboard-template.php)
   ========================================================================== */
.acct { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; padding-block: 32px 80px; }
.acct-muted { color: var(--muted); font-size: .92rem; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .88rem; gap: 6px; }

/* Sidebar */
.acct-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.acct-me { display: flex; align-items: center; gap: 12px; min-width: 0; }
.acct-avatar { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 999px; background: var(--ink); color: var(--accent); font-weight: 800; letter-spacing: .02em; }
.acct-me-text { display: flex; flex-direction: column; min-width: 0; }
.acct-me-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-me-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; color: var(--muted); }
.acct-badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); font-size: .8rem; font-weight: 700; text-decoration: none; }
.acct-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--bg); }
.acct-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: background-color .15s, color .15s; }
.acct-nav a:hover { background: var(--tint); color: var(--ink); }
.acct-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.acct-nav a[aria-current="page"] .icon { color: var(--accent); }
.acct-nav em { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--tint); font-size: .75rem; font-style: normal; font-weight: 700; color: var(--ink); }
.acct-nav a[aria-current="page"] em { background: rgba(255, 255, 255, .15); color: #fff; }
.acct-nav .acct-logout { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--muted); }
.acct-help { font-size: .85rem; color: var(--muted); }

/* Main column */
.acct-main { min-width: 0; display: flex; flex-direction: column; gap: 24px; animation: acct-in .25s ease both; }
@keyframes acct-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.acct-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.acct-head h1 { margin: 0 0 4px; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.acct-head p { margin: 0; }
.acct-card { padding: 24px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: var(--bg); }
.acct-card h2 { margin: 0; font-size: 1.15rem; }
.acct-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.acct-empty { padding: 28px; text-align: center; color: var(--muted); }
.acct-empty p { margin: 0 0 14px; }
.acct-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; }
.acct-form .acct-actions { justify-content: flex-start; }

/* Stats */
.acct-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.acct-stats li { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.acct-stat-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 10px; background: var(--tint); }
.acct-stats strong { font-size: 1.5rem; font-weight: 850; letter-spacing: -.02em; line-height: 1.2; }
.acct-stats span:last-child { font-size: .85rem; color: var(--muted); }

/* Membership card */
.acct-member { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 28px; border-radius: calc(var(--radius) + 6px); background: var(--accent-soft); }
.acct-member.is-active { background: var(--ink); color: #fff; }
.acct-member.is-active .eyebrow { color: var(--accent); }
.acct-member.is-active .acct-muted { color: #b9b7b1; }
.acct-member.is-active .btn-ghost { border-color: #4a4a4a; color: #fff; }
.acct-member.is-active .btn-ghost:hover { border-color: #fff; }
.acct-member.is-active .btn-primary { background: var(--accent); color: var(--ink); }
.acct-member .eyebrow { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.acct-member h2 { margin: 0 0 12px; font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.acct-member-text { flex: 1 1 320px; }
.acct-member-text p:last-child { margin: 0; }
.acct-member-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.acct-progress { height: 8px; margin-bottom: 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.acct-progress span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }

/* Font cards */
.acct-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 20px; }
.acct-font { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.acct-font:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.acct-font[hidden] { display: none; }
.acct-font-media { display: block; aspect-ratio: 3 / 2; background: var(--tint); }
.acct-font-media img { width: 100%; height: 100%; object-fit: cover; }
.acct-font-body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.acct-font-body h3 { margin: 0; font-size: .98rem; line-height: 1.35; }
.acct-font-body h3 a { text-decoration: none; }
.acct-font-body .acct-muted { margin: 0 0 10px; font-size: .82rem; }
.acct-font-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

/* Library toolbar */
.acct-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.acct-search { display: flex; flex: 1 1 260px; align-items: center; gap: 10px; max-width: 420px; height: 46px; padding: 0 16px; border: 1px solid #d6d3cc; border-radius: 999px; background: var(--bg); color: var(--muted); }
.acct-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(242, 179, 61, .25); }
.acct-search input { min-height: 0; padding: 0; border: 0; box-shadow: none !important; background: none; }
.acct-pills { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--tint); }
.acct-pills button { padding: 7px 16px; border: 0; border-radius: 999px; background: none; font-size: .88rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.acct-pills button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

/* Orders */
.acct-orders { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.acct-order { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto auto; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.acct-order-thumb { display: block; width: 64px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--tint); }
.acct-order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.acct-order-main { display: flex; flex-direction: column; min-width: 0; }
.acct-order-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-order-total { font-weight: 800; }
.acct-order-actions { display: flex; gap: 14px; font-size: .9rem; font-weight: 600; }

/* Status pills */
.acct-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--tint); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.acct-pill-complete, .acct-pill-active { background: #e3f4ea; color: var(--success); }
.acct-pill-refunded, .acct-pill-revoked, .acct-pill-expired { background: #f6e9e8; color: var(--danger); }
.acct-pill-partially_refunded, .acct-pill-upgraded { background: var(--accent-soft); color: #8a5a00; }

/* Membership passes list */
.acct-passes { margin: 0; padding: 0; list-style: none; }
.acct-passes li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.acct-passes li:first-child { border-top: 0; padding-top: 0; }
.acct-passes li > div { display: flex; flex-direction: column; }
.acct-passes a { font-size: .9rem; font-weight: 600; }

/* Account form */
.acct-form h2 { margin: 8px 0 16px; font-size: 1.1rem; }
.acct-form h2 + .acct-hint { margin: -10px 0 12px; }
.acct-hint { display: block; margin-top: 6px; font-size: .82rem; color: var(--muted); }

/* Logged-out login screen */
.acct-auth { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 380px); justify-content: center; gap: 48px; align-items: center; padding: 56px var(--gutter) 88px; }
.acct-auth-card { padding: 36px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); background: var(--bg); box-shadow: var(--shadow); }
.acct-auth-card h1 { margin-bottom: 6px; font-size: 2rem; }
.acct-auth-card > .acct-muted { margin-bottom: 24px; }
.acct-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.acct-label-row a { font-size: .85rem; font-weight: 600; }
.acct-check { margin: 4px 0 20px; }
.acct-check label { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.acct-auth-foot { margin: 20px 0 0; font-size: .88rem; color: var(--muted); text-align: center; }
.acct-auth-side ul { display: flex; flex-direction: column; gap: 22px; margin: 0; padding: 0; list-style: none; }
.acct-auth-side li { display: flex; gap: 14px; color: var(--ink-2); }
.acct-auth-side li .icon { flex-shrink: 0; margin-top: 2px; padding: 8px; box-sizing: content-box; border-radius: 10px; background: var(--accent-soft); }
.acct-auth-side strong { display: block; color: var(--ink); }

/* Responsive */
@media (max-width: 1100px) {
	.acct-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.acct-order { grid-template-columns: 56px minmax(0, 1fr) auto; }
	.acct-order-total { grid-column: 3; grid-row: 1; }
	.acct-order .acct-pill, .acct-order-actions { grid-column: 2 / -1; }
	.acct-order .acct-pill { justify-self: start; }
}
@media (max-width: 900px) {
	.acct { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
	.acct-side { position: static; }
	.acct-nav { flex-direction: row; overflow-x: auto; padding: 6px; scrollbar-width: none; }
	.acct-nav::-webkit-scrollbar { display: none; }
	.acct-nav a { flex-shrink: 0; padding: 9px 14px; }
	.acct-nav .acct-logout { margin: 0; border: 0; border-radius: 10px; }
	.acct-help { display: none; }
	.acct-auth { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
	.acct-auth-side { order: 2; }
}
@media (max-width: 560px) {
	.acct-stats { gap: 10px; }
	.acct-stats li { padding: 14px; }
	.acct-member { padding: 22px; }
	.acct-member-actions .btn { flex: 1 1 auto; }
	.acct-passes li { grid-template-columns: minmax(0, 1fr) auto; }
	.acct-auth-card { padding: 24px; }
}
.acct-empty { padding: 40px 28px; }
.acct-empty h2 { margin: 0 0 6px; font-size: 1.2rem; color: var(--ink); }
.acct-empty-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 999px; background: var(--tint); color: var(--ink); }
.acct-empty p { max-width: 420px; margin-inline: auto; }

/* EDD Invoices: billing details form (page "Invoices") */
#edd-invoices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; max-width: 760px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); }
#edd-invoices .edd-invoices-div { display: block; margin: 0; }
#edd-invoices .edd-invoices-div label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
#edd-invoices .edd-invoices-div__company, #edd-invoices .edd-invoices-div__address1, #edd-invoices .edd-invoices-div__notes, #edd-invoices .edd-invoices-div__generate { grid-column: 1 / -1; }
#edd-invoices textarea { min-height: 96px; }
#edd-invoices .edd-invoices-generate-invoice-button { min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }
#edd-invoices .edd-invoices-generate-invoice-button:hover { background: #000; }
@media (max-width: 640px) { #edd-invoices { grid-template-columns: 1fr; padding: 20px; } }
