/*
Theme Name: Abacus
Theme URI: https://tenfoldthemes.example/abacus
Author: Tenfold Themes
Author URI: https://tenfoldthemes.example
Description: A ledger-modern block theme for accountants, CPAs and tax firms — receipt-strip hero art, tally-mark stats, mint check chips and dotted-leader pricing, with local fonts, full-page layouts and a dark "After Audit" style variation.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: abacus
Tags: block-theme, full-site-editing, block-patterns, block-styles, custom-colors, editor-style, featured-images, threaded-comments, translation-ready, wide-blocks, one-column, business, portfolio, blog
*/

/* Abacus ships its design tokens in theme.json. The rules below back the
   registered block styles (functions.php) and a few niche flourishes. */

/* --- Card: bordered ledger card --------------------------------------- */
.wp-block-group.is-style-card {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--l);
	padding: var(--wp--preset--spacing--30);
	background-color: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--card);
}

/* --- Card (hover lift) ------------------------------------------------- */
.wp-block-group.is-style-card-lift {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--l);
	padding: var(--wp--preset--spacing--30);
	background-color: var(--wp--preset--color--base);
	transition: var(--wp--custom--transition);
}
.wp-block-group.is-style-card-lift:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--lift);
	border-color: var(--wp--preset--color--primary);
}

/* --- Receipt: dashed tear-edge strip ---------------------------------- */
.wp-block-group.is-style-receipt {
	position: relative;
	background-color: var(--wp--preset--color--base);
	border-left: 1px dashed var(--wp--preset--color--border);
	border-right: 1px dashed var(--wp--preset--color--border);
	padding: var(--wp--preset--spacing--30);
}
.wp-block-group.is-style-receipt::before,
.wp-block-group.is-style-receipt::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 8px;
	background-image: repeating-linear-gradient(-45deg, var(--wp--preset--color--border) 0 6px, transparent 6px 12px);
}
.wp-block-group.is-style-receipt::before { top: -8px; }
.wp-block-group.is-style-receipt::after { bottom: -8px; transform: scaleY(-1); }

/* --- Checks: mint check-mark list markers ----------------------------- */
.wp-block-list.is-style-checks {
	list-style: none;
	padding-left: 0;
}
.wp-block-list.is-style-checks li {
	position: relative;
	padding-left: 1.9em;
	margin-bottom: 0.6em;
}
.wp-block-list.is-style-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 1.25em;
	height: 1.25em;
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4 10-11'/%3E%3C/svg%3E") center / 74% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4 10-11'/%3E%3C/svg%3E") center / 74% no-repeat;
}

/* --- Dotted leader separator ------------------------------------------ */
.wp-block-separator.is-style-dotted-leader {
	border: none;
	height: 0;
	border-top: 2px dotted var(--wp--preset--color--border);
	background: none;
	opacity: 1;
	max-width: 100%;
}

/* --- Ledger plate: heavy bordered numeral plate ----------------------- */
.wp-block-group.is-style-plate {
	border: 2px solid var(--wp--preset--color--contrast);
	border-radius: var(--wp--custom--radius--m);
	padding: var(--wp--preset--spacing--30);
	background-color: var(--wp--preset--color--base);
}

/* Outline button legibility on light bands */
.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 2px;
}
