/*
 * Content-page styles for the .chiseiko-* namespace
 *
 * Loaded only on surfaces that render content-pages markup (managed pages
 * such as Free, Pro, Documentation, Support, and the WooCommerce shop
 * archive). Keeping these rules out of the always-on style.css trims the
 * critical-CSS payload on the homepage, single-product, cart, and
 * checkout views.
 *
 * Backdrop-filter has been intentionally removed from .chiseiko-hero and
 * .chiseiko-section: stacking 5–8 backdrop-filter regions per content
 * page produces measurable paint cost on mid-range mobile and the
 * translucent surface still reads cleanly without it.
 */

/*
 * Content-page layout shell.
 *
 * The previous markup wrapped each content page in <div class="chiseiko-page">
 * purely as a styling hook. That wrapper has been removed and the grid
 * spacing is now applied directly to the .entry-content container that the
 * child page template renders. Per-page modifiers (.entry-content--essential-
 * swatches, --chiseiko-essential-swatches-pro, --documentation, --support) carry the
 * same role .chiseiko-page--* used to.
 */
.entry-content--chiseiko-page {
	display: grid;
	gap: 1.5rem;
}

.entry-content--chiseiko-page p:last-child,
.entry-content--chiseiko-page ul:last-child,
.entry-content--chiseiko-page ol:last-child {
	margin-bottom: 0;
}

.chiseiko-hero,
.chiseiko-section {
	padding: clamp(1.4rem, 3vw, 2rem);
	border: 1px solid rgba(17, 19, 25, 0.08);
	border-radius: var(--ch-radius-lg);
	background: rgba(255, 253, 248, 0.82);
	box-shadow: var(--ch-shadow);
}

.chiseiko-section--accent {
	background: linear-gradient(135deg, rgba(207, 139, 44, 0.14), rgba(86, 102, 79, 0.14));
}

.chiseiko-kicker {
	margin: 0 0 0.75rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ch-moss);
}

.chiseiko-hero h2,
.chiseiko-section__heading h3,
.chiseiko-card h3,
.chiseiko-card h4 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: var(--ch-ink);
}

.chiseiko-hero h2 {
	max-width: 14ch;
	font-size: clamp(2rem, 4vw, 3.6rem);
	margin-bottom: 1rem;
}

.chiseiko-hero--split,
.chiseiko-split-section {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
	gap: 1.25rem;
	align-items: start;
}

.chiseiko-hero__copy,
.chiseiko-hero__media {
	min-width: 0;
}

.chiseiko-section__heading {
	margin-bottom: 1rem;
	max-width: 48rem;
}

.chiseiko-grid {
	display: grid;
	gap: 1rem;
	margin-top: 1rem;
}

.chiseiko-grid--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chiseiko-grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chiseiko-card {
	padding: 1.25rem;
	border-radius: var(--ch-radius-md);
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid rgba(17, 19, 25, 0.08);
	transition: transform var(--ch-motion-slow) var(--ch-ease), box-shadow var(--ch-motion-slow) var(--ch-ease), border-color var(--ch-motion-slow) var(--ch-ease);
}

.chiseiko-card p,
.chiseiko-note {
	color: var(--ch-muted);
}

.chiseiko-figure-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.chiseiko-figure {
	margin: 0;
	display: grid;
	gap: 0.75rem;
}

.chiseiko-figure__frame {
	padding: 1rem;
	min-height: 220px;
	border-radius: var(--ch-radius-md);
	border: 1px solid rgba(17, 19, 25, 0.08);
	background:
		linear-gradient(160deg, rgba(255, 255, 255, 0.84), rgba(255, 248, 236, 0.92)),
		radial-gradient(circle at top right, rgba(207, 139, 44, 0.18), transparent 42%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
	display: grid;
	gap: 1rem;
	align-content: start;
	overflow: hidden;
}

.chiseiko-figure__frame--guide,
.chiseiko-figure__frame--support,
.chiseiko-figure__frame--product,
.chiseiko-figure__frame--product-pro {
	min-height: 100%;
}

.chiseiko-caption {
	margin: 0;
	font-size: 0.92rem;
	color: var(--ch-muted);
}

.chiseiko-asset {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--ch-radius-sm);
	border: 1px solid rgba(17, 19, 25, 0.08);
	background: rgba(255, 255, 255, 0.78);
}

.chiseiko-asset--screenshot {
	/* Storefront screenshots are captured complete (transparent background) and
	   shown in a uniform 3:2 frame via object-fit:contain, so every figure is the
	   same height, the product/cards are never cropped, and the figure frame's
	   site gradient fills any letterbox. */
	aspect-ratio: 3 / 2;
	object-fit: contain;
	object-position: center;
	background: transparent;
	border: 0;
}

.chiseiko-asset--diagram {
	padding: 0;
	background: transparent;
}

/*
 * .chiseiko-chip-row is a <ul> element so chips read as a categorical
 * list to assistive technology. Reset the default list affordances and
 * keep the visual flex flow.
 */
.chiseiko-chip-row,
.chiseiko-rail {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

/*
 * Chips and rail items hold to a 2.5rem (40px) minimum hit-area so that
 * if any future variant becomes interactive (link or button), it already
 * meets a comfortable touch target. Static label variants render the
 * same visual height — the size also keeps the label band scannable.
 */
.chiseiko-chip,
.chiseiko-rail__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: 0.55rem 0.9rem;
	border-radius: var(--ch-radius-pill);
	border: 1px solid rgba(17, 19, 25, 0.1);
	background: rgba(255, 255, 255, 0.72);
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--ch-ink);
	/* Each pill stays on one line; the row (flex-wrap) handles overflow, so a
	   label like "3 Sites — Freelancer" never breaks mid-phrase. */
	white-space: nowrap;
}

.chiseiko-diagram {
	display: grid;
	gap: 0.75rem;
}

/*
 * .chiseiko-diagram--flow renders sequential workflow steps and should be
 * an <ol> with <li> children (so screen readers announce step position).
 * Selectors target both <li> and <span> to keep older markup working
 * during the transition; new consumers should use <ol class="chiseiko-
 * diagram chiseiko-diagram--flow"><li>...</li></ol>.
 */
.chiseiko-diagram--flow {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.chiseiko-diagram--flow li,
.chiseiko-diagram--flow span {
	position: relative;
	display: block;
	padding: 0.9rem 1rem;
	border-radius: var(--ch-radius-md);
	background: rgba(17, 19, 25, 0.06);
	font-weight: 600;
	color: var(--ch-ink);
}

.chiseiko-diagram--flow li:not(:last-child)::after,
.chiseiko-diagram--flow span:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 1rem;
	bottom: -0.55rem;
	width: 2px;
	height: 0.7rem;
	background: rgba(17, 19, 25, 0.16);
}

.chiseiko-media-stack {
	display: grid;
	gap: 0.85rem;
}

.chiseiko-media-note,
.chiseiko-placeholder-block {
	padding: 1rem 1.05rem;
	border-radius: var(--ch-radius-md);
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(17, 19, 25, 0.08);
}

.chiseiko-media-note strong,
.chiseiko-placeholder-block {
	font-weight: 700;
	color: var(--ch-ink);
}

.chiseiko-media-note p {
	margin: 0.5rem 0 0;
	color: var(--ch-muted);
}

.chiseiko-placeholder-block {
	display: grid;
	place-items: center;
	min-height: 160px;
	text-align: center;
	background:
		linear-gradient(145deg, rgba(207, 139, 44, 0.16), rgba(86, 102, 79, 0.12)),
		repeating-linear-gradient(135deg, rgba(17, 19, 25, 0.03) 0 10px, rgba(255, 255, 255, 0.24) 10px 20px);
}

.chiseiko-section--media-ready .chiseiko-section__heading {
	max-width: 44rem;
}

.entry-content--documentation .chiseiko-hero__copy,
.entry-content--support .chiseiko-hero__copy,
.entry-content--chiseiko-essential-swatches .chiseiko-hero__copy,
.entry-content--chiseiko-essential-swatches-pro .chiseiko-hero__copy {
	max-width: 42rem;
}

.chiseiko-toc-grid,
.chiseiko-module-groups {
	display: grid;
	gap: 1rem;
	margin-top: 1rem;
}

.chiseiko-toc-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/*
 * .chiseiko-toc-card is the styled "table-of-contents card" pattern for
 * link-cards on documentation surfaces. No content-page template
 * currently renders one, so only the surface treatment lives here.
 * When a real TOC pattern lands, reintroduce :hover, :focus-visible,
 * and the prefers-reduced-motion guard alongside the markup that
 * actually consumes them.
 */
.chiseiko-toc-card {
	padding: 1.1rem 1.15rem;
	border-radius: var(--ch-radius-md);
	border: 1px solid rgba(17, 19, 25, 0.08);
	background: rgba(255, 255, 255, 0.78);
	text-decoration: none;
	box-shadow: var(--ch-shadow);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	height: 100%;
	transition: transform var(--ch-motion-slow) var(--ch-ease), box-shadow var(--ch-motion-slow) var(--ch-ease), border-color var(--ch-motion-slow) var(--ch-ease);
}

.chiseiko-toc-card strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.35rem;
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: var(--ch-ink);
}

.chiseiko-toc-card span,
.chiseiko-module-group__note {
	color: var(--ch-muted);
}

.chiseiko-module-groups {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chiseiko-module-group {
	padding: 1.35rem;
	border-radius: var(--ch-radius-md);
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(17, 19, 25, 0.08);
	box-shadow: var(--ch-shadow);
}

.chiseiko-module-group h4,
.chiseiko-roadmap-card h4 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: var(--ch-ink);
}

.chiseiko-module-group .chiseiko-list,
.chiseiko-roadmap-card .chiseiko-list {
	margin-top: 1rem;
}

.chiseiko-doc-module {
	margin-top: 1.25rem;
	padding: 1.35rem;
	border-radius: var(--ch-radius-lg);
	border: 1px solid rgba(17, 19, 25, 0.08);
	background: rgba(255, 255, 255, 0.76);
	box-shadow: var(--ch-shadow);
}

.chiseiko-doc-module:first-of-type {
	margin-top: 1rem;
}

.chiseiko-doc-module__intro {
	max-width: 50rem;
	margin-bottom: 1rem;
}

.chiseiko-doc-module__intro h4,
.chiseiko-doc-card h5 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	letter-spacing: -0.03em;
	color: var(--ch-ink);
}

.chiseiko-doc-module__intro h4 {
	font-size: clamp(1.65rem, 3vw, 2.3rem);
	line-height: 1.08;
	margin-bottom: 0.75rem;
}

.chiseiko-doc-module__grid,
.chiseiko-doc-module__footer {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 1rem;
}

.chiseiko-doc-card {
	padding: 1rem 1.05rem;
	border-radius: var(--ch-radius-md);
	background: rgba(255, 253, 248, 0.78);
	border: 1px solid rgba(17, 19, 25, 0.08);
}

.chiseiko-doc-card h5 {
	font-size: 1.1rem;
	line-height: 1.15;
	margin-bottom: 0.65rem;
}

.chiseiko-doc-card p {
	margin: 0;
	color: var(--ch-muted);
}

.chiseiko-doc-card--compact {
	align-self: start;
}

.chiseiko-roadmap-card {
	height: 100%;
}

.chiseiko-list,
.chiseiko-checklist,
.chiseiko-steps {
	margin: 1rem 0 0;
	padding-left: 1.2rem;
	color: var(--ch-ink);
}

.chiseiko-list li,
.chiseiko-checklist li,
.chiseiko-steps li {
	margin-bottom: 0.7rem;
	padding-left: 0.2rem;
}

.chiseiko-note {
	margin-top: 1rem;
	padding: 1rem 1.1rem;
	border-left: 4px solid var(--ch-amber);
	background: rgba(17, 19, 25, 0.04);
	border-radius: var(--ch-radius-sm);
}

.chiseiko-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	margin-top: 1.5rem;
}

.chiseiko-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 22px 48px rgba(17, 19, 25, 0.10);
	border-color: rgba(17, 19, 25, 0.14);
}

@media (prefers-reduced-motion: reduce) {
	.chiseiko-card {
		transition: none;
	}

	.chiseiko-card:hover {
		transform: none;
	}
}

/*
 * Pricing tier card price block. Sits inside the existing .pricing-card
 * shell from main.css and inherits its surface treatment, padding, and
 * inverted text on the .pricing-card--featured dark variant via the
 * "p inside featured" rule in main.css. Only the new amount/meta
 * spans need explicit colors here.
 */
.pricing-card__price {
	margin: 0.75rem 0 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
}

.pricing-card__price-amount {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2.4rem;
	line-height: 1;
	color: var(--ch-ink);
}

.pricing-card--featured .pricing-card__price-amount {
	color: #fff;
}

.pricing-card__price-meta {
	font-size: 0.92rem;
	color: var(--ch-muted);
}

.pricing-card--featured .pricing-card__price-meta {
	color: rgba(255, 255, 255, 0.78);
}

/*
 * Per-tier "Standard MSRP / Launch pricing limited time" note. Sits
 * between the headline price and the pitch paragraph. Slightly smaller
 * and muted so the headline first-year amount remains the dominant
 * number in the price block.
 */
.pricing-card__price-note {
	margin: 0.45rem 0 0;
	font-size: 0.85rem;
	color: var(--ch-muted);
}

.pricing-card--featured .pricing-card__price-note {
	color: rgba(255, 255, 255, 0.72);
}

/*
 * Hero-level launch banner. Amber surface signals limited-time framing
 * without becoming an urgency-theater pop-up. The bold lede sentence
 * gives sighted users immediate scent that launch pricing is finite,
 * while the surrounding paragraph carries the standard explanation.
 */
.pricing-launch-note {
	margin: 0.5rem 0 0;
	padding: 0.75rem 1rem;
	border-radius: var(--ch-radius-md);
	background: rgba(207, 139, 44, 0.12);
	border: 1px solid rgba(207, 139, 44, 0.32);
	color: var(--ch-ink);
}

.pricing-launch-note strong {
	color: var(--ch-amber-deep);
}

/*
 * Pricing tier card: flex-column layout so the buy button always anchors
 * to the bottom of the card regardless of pitch / includes-list length.
 * Scoped to .pricing-tier so this layout choice doesn't ripple to the
 * homepage comparison cards which intentionally let content stack.
 */
.pricing-tier {
	display: flex;
	flex-direction: column;
	/* Anchor the absolutely-positioned "Recommended" badge to the card itself;
	   without this it resolves against a distant ancestor and clips at the top. */
	position: relative;
}

.pricing-tier > .button:last-child {
	margin-top: auto;
}

/*
 * Buy buttons sit one-per-card in a 4-up grid, where the default 1rem button
 * font wraps "Buy Freelancer — $299" onto two ragged lines. Hold the label to
 * a single clean line: a slightly smaller label + tighter inline padding fits
 * the longest tier name + price inside the narrowest (4-up) card, and the price
 * token stays bound to the label.
 */
.pricing-tier > .button--block {
	white-space: nowrap;
	font-size: 0.875rem;
	letter-spacing: 0;
	padding-left: 0.75rem;
	padding-right: 0.75rem;
}

/*
 * Tier subtitle. Serif weight + ink color elevates this single sentence
 * above the pitch paragraph below it, so it reads as a tagline-style
 * lede for the card. Inverted to white on .pricing-card--featured so it
 * stays legible against the dark featured card surface.
 */
.pricing-tier__subtitle {
	margin: 1rem 0 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.05rem;
	line-height: 1.3;
	font-weight: 700;
	color: var(--ch-ink);
}

.pricing-card--featured .pricing-tier__subtitle {
	color: #fff;
}

.pricing-tier__pitch {
	margin: 0.5rem 0 0;
}

/*
 * Pricing-tier grid. Four tiers don't fit the .chiseiko-grid--three
 * default (3-column desktop, 1-column mobile). Custom layout:
 *
 *   ≥1100px : four columns
 *   641–1099 : two columns (avoids cramped 4-up at tablet widths)
 *   ≤640px   : one column
 *
 * Declared after the 980px collapse rule for .chiseiko-grid--three so
 * the breakpoints below take precedence when .pricing-tiers is present.
 */
.pricing-tiers {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
	.pricing-tiers {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.pricing-tiers {
		grid-template-columns: 1fr;
	}
}

/*
 * FAQ disclosure. <details>/<summary> is natively keyboard-accessible
 * and works without JS; the chevron is rendered via ::after rather than
 * the default disclosure triangle so the marker reads as a deliberate
 * design element. list-style: none + ::-webkit-details-marker reset
 * suppress the browser default in WebKit.
 */
.chiseiko-faq {
	display: grid;
	gap: 0.75rem;
	margin-top: 1rem;
}

.chiseiko-faq details {
	padding: 1rem 1.1rem;
	border-radius: var(--ch-radius-md);
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(17, 19, 25, 0.08);
}

.chiseiko-faq summary {
	font-weight: 700;
	color: var(--ch-ink);
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.chiseiko-faq summary::-webkit-details-marker {
	display: none;
}

.chiseiko-faq summary::after {
	content: "+";
	flex: none;
	font-size: 1.4rem;
	line-height: 1;
	color: var(--ch-muted);
	transition: transform var(--ch-motion-base) var(--ch-ease);
}

.chiseiko-faq details[open] summary::after {
	content: "−";
}

.chiseiko-faq details > p {
	margin: 0.75rem 0 0;
	color: var(--ch-muted);
}

@media (prefers-reduced-motion: reduce) {
	.chiseiko-faq summary::after {
		transition: none;
	}
}

/*
 * Aligned to the parent shell's 980px breakpoint so content pages
 * collapse at the same point as the homepage hero.
 */
@media (max-width: 980px) {
	.chiseiko-grid--two,
	.chiseiko-grid--three {
		grid-template-columns: 1fr;
	}

	.chiseiko-toc-grid,
	.chiseiko-module-groups,
	.chiseiko-doc-module__grid,
	.chiseiko-doc-module__footer {
		grid-template-columns: 1fr;
	}

	.chiseiko-hero--split,
	.chiseiko-split-section,
	.chiseiko-figure-grid {
		grid-template-columns: 1fr;
	}

	.chiseiko-hero h2 {
		max-width: none;
	}
}

/*
 * Swatch Filter demo surfaces
 * ---------------------------
 * The shop hub and the two filter-mode category archives render their
 * educational bands through woocommerce_archive_description (outside the
 * .entry-content--chiseiko-page grid), so the intro wrapper supplies its
 * own vertical rhythm here.
 */
.chiseiko-archive-intro {
	display: grid;
	gap: 1.5rem;
	margin: 1rem 0 1.75rem;
}

/*
 * .chiseiko-toc-card is now consumed as an interactive link card (the shop
 * hub's Mode 1 / Mode 2 chooser), so it gets real hover + keyboard-focus
 * affordances. Flex column lets the "Explore" cue anchor to the bottom so
 * both cards align regardless of copy length.
 */
.chiseiko-toc-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 22px 48px rgba(17, 19, 25, 0.10);
	border-color: rgba(207, 139, 44, 0.45);
}

.chiseiko-toc-card:focus-visible {
	outline: 3px solid var(--ch-amber);
	outline-offset: 3px;
}

.chiseiko-toc-card__eyebrow {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ch-amber-deep, var(--ch-amber));
}

.chiseiko-toc-card__cue {
	margin-top: auto;
	padding-top: 0.35rem;
	font-weight: 700;
	color: var(--ch-amber-deep, var(--ch-amber));
}

@media (prefers-reduced-motion: reduce) {
	.chiseiko-toc-card {
		transition: none;
	}

	.chiseiko-toc-card:hover {
		transform: none;
	}
}

/*
 * Mode 2 — left filter rail beside the products. An enterprise filter panel: a
 * quiet surface, a header with an active-count badge + Clear-all, and attribute
 * sections (Color, Size) of always-visible Chiseiko Essential Swatches plus a price
 * range. Mode 2 forces the default (non-accordion) preset because the accordion
 * open/close JS does not bind to the sidebar widget — default keeps the swatches
 * visible, which is what a rail wants.
 */
.chiseiko-mode2-layout {
	display: grid;
	grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
	gap: clamp(1.25rem, 3vw, 2.25rem);
	align-items: start;
	margin-top: 0.5rem;
}

.chiseiko-mode2-main {
	min-width: 0;
}

.chiseiko-mode2-rail {
	min-width: 0;
	position: sticky;
	top: 1.5rem;
	padding: 1.1rem 1.15rem 1.25rem;
	border: 1px solid rgba(17, 19, 25, 0.08);
	border-radius: var(--ch-radius-lg);
	background: rgba(255, 254, 250, 0.88);
	box-shadow: var(--ch-shadow-sm);
}

/* Header: title + active count + clear-all. */
.chiseiko-mode2-rail__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	padding-bottom: 0.8rem;
	border-bottom: 1px solid rgba(17, 19, 25, 0.1);
}

.chiseiko-mode2-rail__headline {
	display: inline-flex;
	align-items: baseline;
	gap: 0.5rem;
	min-width: 0;
}

.chiseiko-mode2-rail__heading {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.15rem;
	letter-spacing: -0.01em;
	color: var(--ch-ink);
}

.chiseiko-mode2-rail__count {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--ch-amber-deep, var(--ch-amber));
}

.chiseiko-mode2-rail__clear {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--ch-muted);
	text-decoration: none;
	white-space: nowrap;
}

.chiseiko-mode2-rail__clear:hover,
.chiseiko-mode2-rail__clear:focus-visible {
	color: var(--ch-amber-deep, var(--ch-amber));
	text-decoration: underline;
}

/*
 * Neutralise the plugin's per-widget shell card. Each ESW filter widget ships
 * its own bordered, shadowed, tinted card (.chiseikoessw-pro-swatch-filter-widget__shell)
 * — fine for a standalone bar, but inside the rail it stacks boxes-in-a-box. We
 * flatten it to a transparent pass-through so the rail is the single surface,
 * then divide the Color / Size / Price sections ourselves.
 */
.chiseiko-mode2-rail .chiseikoessw-pro-swatch-filter-widget__shell {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	gap: 0;
}

.chiseiko-mode2-rail .chiseikoessw-pro-swatch-filter-widget__groups,
.chiseiko-mode2-rail .chiseikoessw-filter-group__body {
	gap: 0;
	padding: 0;
}

/*
 * Section dividers. The header always carries the first line (its border-bottom
 * below). Between the filter sections we divide only widget-to-widget, so the
 * FIRST widget never gets a stray top border (a :first-of-type rule can't target
 * it — the first div in the rail is the header, not a widget). The active-filter
 * pills carry their own bottom line, which therefore appears ONLY when a filter
 * is set — sitting directly below the active filters.
 */
.chiseiko-mode2-rail__widget {
	margin-top: 1.35rem;
}

.chiseiko-mode2-rail__widget + .chiseiko-mode2-rail__widget {
	padding-top: 1.35rem;
	border-top: 1px solid rgba(17, 19, 25, 0.09);
}

/* Section headings (Color / Size / Price) as quiet eyebrows. */
.chiseiko-mode2-rail .chiseikoessw-filter-label,
.chiseiko-mode2-rail__title {
	display: block;
	margin: 0 0 0.65rem;
	font-family: inherit;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ch-moss);
}

/* The per-group selection echo is redundant with the active-filter pills. */
.chiseiko-mode2-rail .chiseikoessw-filter-selection {
	display: none;
}

/* Roomier swatch grid so the rail breathes. */
.chiseiko-mode2-rail .chiseikoessw-pro-swatch-filter {
	gap: 0.6rem;
}

/* Lift the swatches off the warm rail surface so pale tones still read. */
.chiseiko-mode2-rail .chiseikoessw-swatch {
	border-color: rgba(17, 19, 25, 0.16);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/*
 * Active-filter pills — one removable chip per selected term, rendered with the
 * product's real Chiseiko Essential Swatches swatch, plus a price chip. Sits directly
 * under the rail header so the shopper always sees (and can undo) each choice.
 */
.chiseiko-mode2-rail__active {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.9rem;
	padding-bottom: 1.15rem;
	border-bottom: 1px solid rgba(17, 19, 25, 0.09);
}

.chiseiko-active-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.26rem 0.32rem 0.26rem 0.42rem;
	border: 1px solid rgba(17, 19, 25, 0.14);
	border-radius: var(--ch-radius-pill);
	background: #fff;
	font-size: 0.76rem;
	line-height: 1;
	color: var(--ch-ink);
}

.chiseiko-active-pill--price {
	padding-left: 0.55rem;
}

.chiseiko-active-pill__swatch {
	display: inline-flex;
	width: 0.92rem;
	height: 0.92rem;
	border-radius: 50%;
	overflow: hidden;
	border: 1px solid rgba(17, 19, 25, 0.18);
	flex: 0 0 auto;
}

.chiseiko-active-pill__swatch .chiseikoessw-swatch__inner {
	display: block;
	width: 100%;
	height: 100%;
}

.chiseiko-active-pill__swatch .chiseikoessw-swatch__inner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.chiseiko-active-pill__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.05rem;
	height: 1.05rem;
	border-radius: 50%;
	background: rgba(17, 19, 25, 0.06);
	color: var(--ch-muted);
	font-size: 0.82rem;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.chiseiko-active-pill__remove:hover,
.chiseiko-active-pill__remove:focus-visible {
	background: var(--ch-amber);
	color: #fff;
	outline: none;
}

/* WooCommerce price filter, quieted to match the rail. */
.chiseiko-mode2-rail .price_slider_wrapper {
	margin-top: 0.2rem;
}

/*
 * Price readout + apply button, on one tidy row below the slider: the live
 * "$min — $max" value on the left, a compact Filter button on the right. The
 * slider already carries the bottom margin that separates this row from the
 * track, so this row just needs even vertical rhythm and a clean split.
 */
.chiseiko-mode2-rail .price_slider_amount {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 0.75rem;
	margin-top: 1.4rem;
}

.chiseiko-mode2-rail .price_slider_amount .price_label {
	order: 1;
	font-size: 0.82rem;
	color: var(--ch-ink);
}

.chiseiko-mode2-rail .price_slider_amount .price_label .amount {
	font-weight: 600;
}

.chiseiko-mode2-rail .price_slider_amount .button {
	order: 2;
	margin: 0;
	padding: 0.5rem 1.05rem;
	border: 0;
	border-radius: 0.5rem;
	background: var(--ch-ink);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.chiseiko-mode2-rail .price_slider_amount .button:hover,
.chiseiko-mode2-rail .price_slider_amount .button:focus-visible {
	background: var(--ch-amber-deep, var(--ch-amber));
	color: #fff;
	transform: translateY(-1px);
	outline: none;
}

/*
 * Price slider — self-contained jQuery-UI horizontal slider. WooCommerce's
 * wc-price-slider script attaches to .price_slider and adds the .ui-slider
 * class + injects the range and two handles, but the storefront stylesheet that
 * sizes them is not loaded on this classic theme, so we own the full geometry:
 * a thin track, an amber range that grows between the handles, and two draggable
 * endpoint circles. Hidden until .ui-slider is present to kill the pre-init FOUC
 * (the bare .price_slider div otherwise flashes as a stray colored stub).
 */
.chiseiko-mode2-rail .price_slider {
	visibility: hidden;
	position: relative;
	height: 0.34rem;
	margin: 1.15rem 0.55rem 0.2rem;
	background: rgba(17, 19, 25, 0.12);
	border-radius: 999px;
}

.chiseiko-mode2-rail .price_slider.ui-slider {
	visibility: visible;
}

.chiseiko-mode2-rail .ui-slider {
	position: relative;
}

.chiseiko-mode2-rail .ui-slider-range {
	position: absolute;
	top: 0;
	height: 100%;
	background: var(--ch-amber);
	border-radius: 999px;
}

.chiseiko-mode2-rail .ui-slider-handle {
	position: absolute;
	top: 50%;
	width: 1.05rem;
	height: 1.05rem;
	margin-left: -0.525rem;
	transform: translateY(-50%);
	background: #fff;
	border: 2px solid var(--ch-amber);
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(17, 19, 25, 0.25);
	cursor: grab;
	touch-action: none;
	z-index: 2;
}

.chiseiko-mode2-rail .ui-slider-handle:hover,
.chiseiko-mode2-rail .ui-slider-handle:focus,
.chiseiko-mode2-rail .ui-slider-handle:focus-visible {
	outline: none;
	box-shadow: 0 1px 3px rgba(17, 19, 25, 0.25),
		0 0 0 4px color-mix(in srgb, var(--ch-amber) 28%, transparent);
}

.chiseiko-mode2-rail .ui-slider-handle:active {
	cursor: grabbing;
}

@media (max-width: 860px) {
	.chiseiko-mode2-layout {
		grid-template-columns: 1fr;
	}

	.chiseiko-mode2-rail {
		position: static;
	}
}

/*
 * Mode 1 facet bar placement. WooCommerce floats .woocommerce-result-count
 * (left) and .woocommerce-ordering (right) on the archive header, and the Pro
 * filter bar auto-injects immediately after them — without clearing those
 * floats it wraps up beside the sort dropdown and the result text. Force the
 * bar onto its own full-width row below the header, with breathing room above
 * the product grid.
 */
.woocommerce-area .chiseikoessw-pro-filter-bar {
	clear: both;
	width: 100%;
	margin: 1.25rem 0 1.5rem;
}

/*
 * Hero product-card showcases (Chiseiko Essential Swatches / Pro pages)
 * -----------------------------------------------------------
 * Real storefront product cards used as the hero media instead of a flat
 * screenshot, matching the homepage hero so each page previews the actual
 * swatch UX it describes. The Free page shows one Studio Hoodie card (color +
 * size swatches, out-of-stock styling); the Pro page shows a swatch filter
 * beside two product cards (faceted archive merchandising). The whole
 * showcase is decorative (aria-hidden in markup) — the hero copy carries the
 * message — so swatch colors are class-tokenized data, not interactive
 * controls.
 */
.chiseiko-hero__media--showcase {
	display: flex;
	justify-content: center;
	align-items: start;
}

/* Centering wrapper for product cards used inside figure grids. */
.chiseiko-card-cell {
	display: flex;
	justify-content: center;
}

.chiseiko-product-card {
	width: 100%;
	max-width: 22rem;
	background: #fffdf8;
	border: 1px solid rgba(17, 19, 25, 0.08);
	border-radius: var(--ch-radius-lg);
	box-shadow: var(--ch-shadow);
	overflow: hidden;
}

.chiseiko-product-card__media {
	position: relative;
	aspect-ratio: 1400 / 764;
	background: linear-gradient(180deg, #efe9dd, #e3dccb);
}

.chiseiko-product-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.chiseiko-product-card__tag {
	position: absolute;
	top: 0.7rem;
	left: 0.7rem;
	padding: 0.3rem 0.6rem;
	border-radius: var(--ch-radius-pill);
	background: rgba(17, 19, 25, 0.82);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.chiseiko-product-card__body {
	padding: 1rem 1.1rem 1.2rem;
	display: grid;
	gap: 0.55rem;
}

.chiseiko-product-card__brand {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ch-moss);
}

/*
 * Image brand swatch on the brand-example card — mirrors the archive brand
 * mark (.chiseikoessw-brand-swatches--loop in style.css): the brand logo inside a small
 * white rounded chip beside the brand name, the way WooCommerce Brands + the
 * Pro Brands module present it on a real product card.
 */
.chiseiko-product-card__brand--mark {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	text-transform: none;
	letter-spacing: 0.02em;
	font-size: 0.82rem;
}

.chiseiko-brand-swatch {
	display: inline-flex;
	flex: none;
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 7px;
	overflow: hidden;
	border: 1px solid rgba(17, 19, 25, 0.12);
	background: #fff;
	box-shadow: var(--ch-shadow-sm, 0 1px 3px rgba(17, 19, 25, 0.1));
}

.chiseiko-brand-swatch__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.chiseiko-product-card__title {
	margin: 0;
	font-size: 1.2rem;
	color: var(--ch-ink);
}

.chiseiko-product-card__price {
	margin: 0;
	display: flex;
	align-items: baseline;
	gap: 0.35rem;
}

.chiseiko-product-card__from {
	font-size: 0.78rem;
	color: var(--ch-muted);
}

.chiseiko-product-card__amount {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--ch-ink);
}

.chiseiko-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.chiseiko-swatch {
	position: relative;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	border: 2px solid #fff;
	background: rgba(17, 19, 25, 0.08);
	box-shadow: 0 0 0 1px rgba(17, 19, 25, 0.14);
}

.chiseiko-swatch--selected {
	box-shadow: 0 0 0 2px var(--ch-ink);
}

/* Out-of-stock term: visible but struck through, never hidden. */
.chiseiko-swatch--oos::after {
	content: "";
	position: absolute;
	top: 50%;
	left: -2px;
	right: -2px;
	height: 2px;
	background: rgba(17, 19, 25, 0.55);
	transform: rotate(-45deg);
}

.chiseiko-swatch--amber { background: #cf8b2c; }
.chiseiko-swatch--graphite { background: #47515d; }
.chiseiko-swatch--sage { background: #7c8a6e; }
.chiseiko-swatch--crimson { background: #8c2131; }
.chiseiko-swatch--navy { background: #243049; }
.chiseiko-swatch--stone { background: #b8b0a1; }
.chiseiko-swatch--azure { background: #5ba7e1; }
.chiseiko-swatch--rose { background: #c87a86; }

/* Overflow chip ("+5") echoing the Free edition's "show more" swatch row. */
.chiseiko-swatch--more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.66rem;
	font-weight: 700;
	color: var(--ch-ink);
	background: rgba(17, 19, 25, 0.06);
}

.chiseiko-sizes {
	display: flex;
	gap: 0.35rem;
}

.chiseiko-size {
	min-width: 1.9rem;
	padding: 0.2rem 0.45rem;
	border-radius: var(--ch-radius-sm);
	border: 1px solid rgba(17, 19, 25, 0.16);
	font-size: 0.78rem;
	font-weight: 600;
	text-align: center;
	color: var(--ch-ink);
}

.chiseiko-size--selected {
	background: var(--ch-ink);
	color: #fff;
	border-color: var(--ch-ink);
}

.chiseiko-product-card__hint {
	margin: 0;
	font-size: 0.78rem;
	color: var(--ch-muted);
}

/* Pro page: swatch filter beside two product cards. */
.chiseiko-pro-showcase {
	display: grid;
	gap: 0.8rem;
	width: 100%;
}

.chiseiko-filter-card {
	padding: 0.9rem 1rem;
	border-radius: var(--ch-radius-md);
	background: #fffdf8;
	border: 1px solid rgba(17, 19, 25, 0.08);
	box-shadow: var(--ch-shadow-sm, var(--ch-shadow));
	display: grid;
	gap: 0.6rem;
}

.chiseiko-filter-card__title {
	margin: 0;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ch-moss);
}

.chiseiko-filter-options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.chiseiko-filter-option {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.25rem 0.55rem 0.25rem 0.3rem;
	border-radius: var(--ch-radius-pill);
	border: 1px solid rgba(17, 19, 25, 0.14);
	font-size: 0.78rem;
	color: var(--ch-ink);
	background: rgba(255, 255, 255, 0.7);
}

.chiseiko-filter-option .chiseiko-swatch {
	width: 1.1rem;
	height: 1.1rem;
	border-width: 1px;
}

.chiseiko-filter-option--active {
	border-color: var(--ch-ink);
	background: rgba(17, 19, 25, 0.06);
	font-weight: 700;
}

.chiseiko-filter-card__meta {
	margin: 0;
	font-size: 0.74rem;
	color: var(--ch-muted);
}

.chiseiko-product-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.8rem;
}

.chiseiko-product-card--compact {
	max-width: none;
}

.chiseiko-product-card--compact .chiseiko-product-card__body {
	padding: 0.7rem 0.8rem 0.9rem;
	gap: 0.4rem;
}

.chiseiko-product-card--compact .chiseiko-product-card__title {
	font-size: 1rem;
}

.chiseiko-product-card--compact .chiseiko-swatch {
	width: 1.25rem;
	height: 1.25rem;
}

@media (max-width: 480px) {
	.chiseiko-product-grid {
		grid-template-columns: 1fr;
	}
}

/* ──────────────────────────────────────────────────────────────────────────
 * Chiseiko Essential Swatches brand lockup
 * Mirrors the in-plugin Pro admin lockup (Montserrat wordmark + logo mark).
 * Free omits the "Pro" line via the .chiseiko-chiseikoessw-wm-pro element being absent.
 * ────────────────────────────────────────────────────────────────────────── */
@font-face {
	font-family: "CHISEIKOESSW Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/montserrat-variable.woff2") format("woff2");
}

/* Every managed content page opens with its own heading — a branded product
   lockup or a descriptive hero (e.g. Pricing's "One license. Every Pro module.",
   Documentation's "Learn the suite in minutes."). That makes the auto-generated
   plain page title (.entry-title, "Pricing", "Documentation", …) a redundant
   second heading stacked above it. Keep it in the DOM as the page's H1 for SEO +
   screen readers, but hide it visually so the page shows one heading, not two.
   Scoped to .entry-content--chiseiko-page (added by page.php to managed content
   pages only), so ordinary pages keep their visible title. */
.entry-card--page:has(.entry-content--chiseiko-page) .entry-header {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Same idea on the WooCommerce archives that open with a chiseiko hero (the
   shop and the swatch-filter demo categories, flagged with
   .chiseiko-archive-has-hero in functions.php): WooCommerce's archive title
   ("Shop", "Swatch Filter — Mode 1") duplicates the hero below it. Keep it in
   the DOM as the archive H1 for SEO, but hide it visually. */
.chiseiko-archive-has-hero .woocommerce-area .page-title {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.chiseiko-chiseikoessw-lockup {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	margin: 0 0 1.5rem;
}

.chiseiko-chiseikoessw-wordmark {
	font-family: "CHISEIKOESSW Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	margin: 0;
	display: flex;
	flex-direction: column;
	line-height: 0.94;
	text-transform: uppercase;
	/* Embossed dark gradient text, matching the plugin lockup. */
	background: linear-gradient(180deg, #2c3338 0%, #0f1114 100%);
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.chiseiko-chiseikoessw-wm-line {
	display: block;
}

/* Uniform line size; "Chiseiko" leads in bold, "Essential / Swatches / Pro"
   follow in a lighter weight — mirrors the rebranded plugin admin wordmark. */
.chiseiko-chiseikoessw-wm-chiseiko {
	font-size: 1.7rem;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.chiseiko-chiseikoessw-wm-essential,
.chiseiko-chiseikoessw-wm-swatches,
.chiseiko-chiseikoessw-wm-pro {
	font-size: 1.7rem;
	font-weight: 400;
	letter-spacing: 0.05em;
}

.chiseiko-chiseikoessw-logo {
	flex-shrink: 0;
	height: 92px;
	width: auto;
	filter: drop-shadow(0 2px 6px rgba(17, 19, 25, 0.18));
}

/* Tagline sits below the lockup (a sibling of .chiseiko-chiseikoessw-lockup). */
.chiseiko-chiseikoessw-wm-tagline {
	margin: 0.35rem 0 1.6rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ch-muted);
}

/* ──────────────────────────────────────────────────────────────────────────
 * Product reviews
 * ────────────────────────────────────────────────────────────────────────── */
.chiseiko-reviews {
	display: grid;
	gap: var(--ch-space-5);
	max-width: 52rem;
}

.chiseiko-stars {
	color: #e8a13a;
	letter-spacing: 0.08em;
	white-space: nowrap;
}

/* Summary header */
.chiseiko-review-summary {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding-bottom: var(--ch-space-3);
	border-bottom: 1px solid var(--ch-line);
}

.chiseiko-review-summary .chiseiko-stars {
	font-size: 1.25rem;
}

.chiseiko-review-avg {
	font-weight: 800;
	font-size: 1.35rem;
	color: var(--ch-ink);
}

.chiseiko-review-count,
.chiseiko-review-empty {
	color: var(--ch-muted);
	font-size: 0.95rem;
}

/* Review list */
.chiseiko-review-list {
	display: grid;
	gap: var(--ch-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.chiseiko-review {
	padding: var(--ch-space-4);
	border: 1px solid var(--ch-line);
	border-radius: var(--ch-radius-md);
	background: var(--ch-surface);
}

.chiseiko-review__head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	margin-bottom: 0.5rem;
}

.chiseiko-review__author {
	font-weight: 650;
	color: var(--ch-ink);
}

.chiseiko-review__verified {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.12rem 0.55rem;
	border-radius: 999px;
	background: #e7f6ec;
	color: #1c6b3a;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.chiseiko-review__date {
	margin-left: auto;
	font-size: 0.85rem;
	color: var(--ch-muted);
}

.chiseiko-review__body {
	margin: 0;
	line-height: 1.65;
	color: var(--ch-ink);
}

/* Submission form */
.chiseiko-review-form {
	display: grid;
	gap: var(--ch-space-3);
	margin-top: var(--ch-space-2);
	padding: var(--ch-space-5);
	border: 1px solid var(--ch-line);
	border-radius: var(--ch-radius-md);
	background: var(--ch-surface-strong);
}

.chiseiko-review-form h4 {
	margin: 0;
	font-size: 1.1rem;
}

.chiseiko-review-row {
	display: grid;
	gap: var(--ch-space-3);
}

@media (min-width: 600px) {
	.chiseiko-review-row {
		grid-template-columns: 1fr 1fr;
	}
}

.chiseiko-review-field {
	display: grid;
	gap: 0.3rem;
	font-size: 0.92rem;
}

.chiseiko-review-field span {
	font-weight: 600;
	color: var(--ch-ink);
}

.chiseiko-review-field input,
.chiseiko-review-field select,
.chiseiko-review-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--ch-line);
	border-radius: var(--ch-radius-sm);
	background: #fff;
	font: inherit;
	color: var(--ch-ink);
}

.chiseiko-review-field textarea {
	resize: vertical;
	min-height: 6rem;
}

.chiseiko-review-form .button {
	justify-self: start;
}

.chiseiko-review-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Post-submit notices */
.chiseiko-review-notice {
	padding: 0.7rem 1rem;
	border-radius: var(--ch-radius-sm);
	margin: 0;
}

.chiseiko-review-notice--ok {
	background: #e7f6ec;
	border: 1px solid #b6e0c4;
	color: #1c6b3a;
}

.chiseiko-review-notice--err {
	background: #fdecea;
	border: 1px solid #f5c6c2;
	color: #a3231b;
}

/* Account page intro */
.chiseiko-account-intro {
	max-width: 42rem;
	color: var(--ch-muted);
}

/* Legal / long-form prose (Terms, Returns, Privacy) — a polished document card. */
.chiseiko-prose {
	max-width: 52rem;
	margin-inline: auto;
	padding: clamp(1.5rem, 4vw, 3rem);
	background: #fff;
	border: 1px solid var(--ch-line);
	border-radius: var(--ch-radius-lg, 18px);
	box-shadow: 0 18px 48px rgba(17, 19, 25, 0.06);
}

.chiseiko-prose h3 {
	position: relative;
	margin-top: var(--ch-space-6, 2.5rem);
	margin-bottom: var(--ch-space-2, 0.5rem);
	padding-bottom: 0.4rem;
	padding-left: 0.9rem;
	font-size: 1.2rem;
	border-bottom: 1px solid var(--ch-line);
}

.chiseiko-prose h3::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	bottom: 0.55rem;
	width: 4px;
	border-radius: 999px;
	background: var(--ch-amber);
}

.chiseiko-prose h3:first-child {
	margin-top: 0;
}

.chiseiko-prose p,
.chiseiko-prose li {
	line-height: 1.75;
	color: var(--ch-ink-soft, var(--ch-ink));
}

.chiseiko-prose ul,
.chiseiko-prose ol {
	padding-left: 1.4rem;
	margin: var(--ch-space-2, 0.5rem) 0 var(--ch-space-3, 1rem);
}

.chiseiko-prose li + li {
	margin-top: 0.4rem;
}

.chiseiko-prose li::marker {
	color: var(--ch-amber-deep);
}

.chiseiko-prose a {
	color: var(--ch-amber-deep);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.chiseiko-prose strong {
	color: var(--ch-ink);
}

/* Post-purchase next steps (success/receipt page) */
.chiseiko-postpurchase {
	max-width: 52rem;
	margin: var(--ch-space-5, 2rem) auto 0;
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--ch-surface, #fff);
	border: 1px solid var(--ch-line);
	border-radius: var(--ch-radius-md);
}

.chiseiko-postpurchase h3 {
	margin-top: 0;
}

.chiseiko-postpurchase-steps {
	margin: 0;
	padding-left: 1.3rem;
	display: grid;
	gap: 0.6rem;
}

.chiseiko-postpurchase-steps li {
	line-height: 1.6;
}

.chiseiko-postpurchase-steps a {
	color: var(--ch-amber-deep);
	text-decoration: underline;
}
