/*
 * Built on the site's own tokens — --an-bg, --an-text, --an-accent, the spacing
 * scale — because a second visual identity inside one site is a bug. Where this
 * departs from the rest of the site it is for density: these pages are read by
 * somebody scanning for a figure, and the line height that flatters an essay
 * makes a table of evidence slower to read.
 *
 * The store is the exception and is loud on purpose. It is the only page here
 * that is selling rather than reporting.
 */

.an-mush { max-width: 1100px; margin: 0 auto; padding: var(--an-space-7, 48px) var(--an-gutter, 24px) var(--an-space-10, 128px); }

.an-mush-head { margin-bottom: var(--an-space-7, 48px); }
.an-mush-head h1 { font: 600 var(--an-t-h1, 3rem)/1.05 var(--an-font-editorial, Georgia, serif); letter-spacing: -.02em; margin: .2em 0 .4em; }
.an-mush-sub { color: var(--an-text-2, #A2A9A6); max-width: 68ch; font-size: var(--an-t-small, .9375rem); line-height: 1.65; }
.an-mush-species { color: var(--an-text-2, #A2A9A6); font-size: .9375rem; margin: 0 0 1em; }
.an-mush-species em { font-style: italic; }

/* ── architecture panel ───────────────────────────────────────────── */

.an-mush-arch {
	border: 1px solid var(--an-line, #262B2E);
	border-left: 3px solid var(--an-accent, #E8763F);
	border-radius: var(--an-radius-lg, 16px);
	background: var(--an-surface, #15181A);
	padding: var(--an-space-5, 24px);
	margin-bottom: var(--an-space-7, 48px);
}
.an-mush-arch h2 { font: 600 1.15rem/1.3 var(--an-font-ui, system-ui); margin: 0 0 var(--an-space-4, 16px); }
.an-mush-arch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--an-space-5, 24px); }
.an-mush-arch-grid h3 { font: 600 .75rem/1 var(--an-font-mono, monospace); letter-spacing: .12em; text-transform: uppercase; color: var(--an-accent, #E8763F); margin: 0 0 8px; }
.an-mush-arch-grid p { font-size: .875rem; line-height: 1.6; color: var(--an-text-2, #A2A9A6); margin: 0; }

/* ── cards ────────────────────────────────────────────────────────── */

.an-mush-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--an-space-5, 24px); margin-bottom: var(--an-space-8, 64px); }
.an-mush-card {
	display: block; text-decoration: none; color: inherit;
	border: 1px solid var(--an-line, #262B2E); border-radius: var(--an-radius-lg, 16px);
	background: var(--an-surface, #15181A); padding: var(--an-space-5, 24px);
	transition: border-color .15s, transform .15s;
}
.an-mush-card:hover { border-color: var(--an-accent, #E8763F); transform: translateY(-2px); }
.an-mush-card-ic { font-size: 1.5rem; color: var(--an-accent, #E8763F); display: block; margin-bottom: 10px; }
.an-mush-card h3 { font: 600 1.0625rem/1.3 var(--an-font-ui, system-ui); margin: 0 0 8px; }
.an-mush-card p { font-size: .875rem; line-height: 1.6; color: var(--an-text-2, #A2A9A6); margin: 0 0 14px; }
.an-mush-card-cta { font: 600 .8125rem/1 var(--an-font-mono, monospace); color: var(--an-accent, #E8763F); }

/* ── forms ────────────────────────────────────────────────────────── */

.an-mush-form {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--an-space-4, 16px);
	padding: var(--an-space-5, 24px); border: 1px solid var(--an-line, #262B2E);
	border-radius: var(--an-radius-lg, 16px); background: var(--an-surface, #15181A);
	margin-bottom: var(--an-space-7, 48px); align-items: end;
}
.an-mush-field-wide { grid-column: 1 / -1; }
.an-mush-field label { display: block; font: 600 .75rem/1 var(--an-font-mono, monospace); letter-spacing: .1em; text-transform: uppercase; color: var(--an-text-2, #A2A9A6); margin-bottom: 8px; }
.an-mush-field input, .an-mush-field select {
	width: 100%; background: var(--an-sunk, #101314); color: var(--an-text, #ECEEEC);
	border: 1px solid var(--an-line, #262B2E); border-radius: var(--an-radius-sm, 6px);
	padding: 10px 12px; font: 400 1rem/1.4 var(--an-font-ui, system-ui);
}
.an-mush-unit { display: block; margin-top: 5px; font-size: .75rem; color: var(--an-text-3, #7F8789); }
.an-mush-go, .an-mush-btn {
	display: inline-block; padding: 13px 20px; border: 0; border-radius: var(--an-radius-sm, 6px);
	background: var(--an-accent, #E8763F); color: #17110D; text-decoration: none;
	font: 600 .9375rem/1 var(--an-font-ui, system-ui); cursor: pointer;
}
.an-mush-go { width: 100%; }
.an-mush-btn.is-quiet { background: transparent; color: var(--an-text, #ECEEEC); border: 1px solid var(--an-line, #262B2E); }
.an-mush-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: var(--an-space-7, 48px); }

/* ── sections, tables, figures ────────────────────────────────────── */

.an-mush-sec { margin-bottom: var(--an-space-8, 64px); }
.an-mush-sec > h2, .an-mush-warn h2 { font: 600 var(--an-t-h3, 1.6rem)/1.2 var(--an-font-editorial, Georgia, serif); margin: 0 0 var(--an-space-4, 16px); }
.an-mush-sec > p { font-size: .9375rem; line-height: 1.7; color: var(--an-text-2, #A2A9A6); max-width: 72ch; }

.an-mush-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.an-mush-table { width: 100%; border-collapse: collapse; font-size: .875rem; min-width: 520px; }
.an-mush-table th {
	text-align: left; font: 600 .6875rem/1 var(--an-font-mono, monospace); letter-spacing: .1em;
	text-transform: uppercase; color: var(--an-text-3, #7F8789);
	padding: 10px 12px; border-bottom: 1px solid var(--an-line, #262B2E); white-space: nowrap;
}
.an-mush-table td { padding: 11px 12px; border-bottom: 1px solid var(--an-line-2, #1D2124); vertical-align: top; line-height: 1.5; }
.an-mush-table .an-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-mush-dim { color: var(--an-text-3, #7F8789); font-size: .8125rem; }
.an-mush-log td { font-size: .8125rem; }
.an-mush-log code { font-family: var(--an-font-mono, monospace); color: var(--an-accent, #E8763F); }

.an-mush-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--an-space-4, 16px); margin: var(--an-space-5, 24px) 0; }
.an-mush-fig { border: 1px solid var(--an-line, #262B2E); border-radius: var(--an-radius-sm, 8px); padding: 16px; background: var(--an-sunk, #101314); }
.an-mush-fig b { display: block; font: 600 1.75rem/1 var(--an-font-ui, system-ui); font-variant-numeric: tabular-nums; }
.an-mush-fig-u { display: block; margin-top: 4px; font-size: .8125rem; color: var(--an-text-2, #A2A9A6); }
.an-mush-fig-n { display: block; margin-top: 8px; font-size: .75rem; line-height: 1.5; color: var(--an-text-3, #7F8789); }

.an-mush-note { margin-top: 12px; font-size: .8125rem; line-height: 1.6; color: var(--an-text-3, #7F8789); max-width: 76ch; }
.an-mush-caveat {
	margin-top: var(--an-space-7, 48px); padding: 16px 18px; font-size: .8125rem; line-height: 1.6;
	color: var(--an-text-2, #A2A9A6); border: 1px dashed var(--an-line, #262B2E); border-radius: var(--an-radius-sm, 8px);
}
.an-mush-list { margin: 0; padding-left: 1.15em; font-size: .875rem; line-height: 1.65; color: var(--an-text-2, #A2A9A6); }
.an-mush-list li { margin-bottom: 8px; }
.an-mush-list.is-bad li { color: #FF9A8A; }
.an-mush-list.is-warn li { color: #F0B429; }

/* ── recipes ──────────────────────────────────────────────────────── */

.an-mush-recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--an-space-4, 16px); }
.an-mush-recipe {
	display: block; text-decoration: none; color: inherit; position: relative;
	border: 1px solid var(--an-line, #262B2E); border-radius: var(--an-radius-lg, 16px);
	background: var(--an-surface, #15181A); padding: var(--an-space-5, 24px);
	transition: border-color .15s;
}
.an-mush-recipe:hover { border-color: var(--an-accent, #E8763F); }
.an-mush-recipe h3 { font: 600 1.0625rem/1.25 var(--an-font-ui, system-ui); margin: 10px 0 4px; }
.an-mush-recipe em { display: block; font-style: italic; font-size: .8125rem; color: var(--an-text-3, #7F8789); margin-bottom: 12px; }
.an-mush-recipe-nums { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.an-mush-recipe-nums b { font: 600 .75rem/1 var(--an-font-mono, monospace); background: var(--an-sunk, #101314); border-radius: 4px; padding: 5px 7px; }
.an-mush-recipe-meta { font-size: .75rem; color: var(--an-text-3, #7F8789); }
.an-mush-tier { display: inline-block; font: 600 .625rem/1 var(--an-font-mono, monospace); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; }
.an-mush-tier.is-free { background: rgba(95,192,127,.16); color: #5FC07F; }
.an-mush-tier.is-pro { background: rgba(240,180,41,.16); color: #F0B429; }

.an-mush-stage { border-top: 1px solid var(--an-line, #262B2E); padding-top: var(--an-space-5, 24px); margin-bottom: var(--an-space-6, 32px); }
.an-mush-stage > header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: var(--an-space-4, 16px); }
.an-mush-stage-n { font: 600 .75rem/1 var(--an-font-mono, monospace); color: var(--an-accent, #E8763F); }
.an-mush-stage h2 { font: 600 1.3rem/1.2 var(--an-font-editorial, Georgia, serif); margin: 0; }
.an-mush-stage-adv { font-size: .75rem; color: var(--an-text-3, #7F8789); }
.an-mush-stage-note { margin-top: 12px; font-size: .875rem; line-height: 1.65; color: var(--an-text-2, #A2A9A6); max-width: 74ch; border-left: 2px solid var(--an-line, #262B2E); padding-left: 14px; }

/* ── simulator verdict ────────────────────────────────────────────── */

.an-mush-verdict { border: 1px solid var(--an-line, #262B2E); border-radius: var(--an-radius-lg, 16px); padding: var(--an-space-5, 24px); margin-bottom: var(--an-space-7, 48px); background: var(--an-surface, #15181A); }
.an-mush-verdict.is-ok { border-left: 3px solid #5FC07F; }
.an-mush-verdict.is-bad { border-left: 3px solid #FF6B52; }
.an-mush-verdict h2 { font: 600 1.4rem/1.25 var(--an-font-editorial, Georgia, serif); margin: 0 0 var(--an-space-4, 16px); }

.an-mush-pill { display: inline-block; font: 600 .6875rem/1 var(--an-font-mono, monospace); padding: 4px 6px; border-radius: 4px; margin-right: 4px; }
.an-mush-pill.is-ok { background: rgba(95,192,127,.16); color: #5FC07F; }
.an-mush-pill.is-warn { background: rgba(240,180,41,.16); color: #F0B429; }
.an-mush-pill.is-bad { background: rgba(255,107,82,.16); color: #FF9A8A; }

.an-mush-chart { border: 1px solid var(--an-line, #262B2E); border-radius: var(--an-radius-lg, 16px); background: var(--an-sunk, #101314); padding: 16px; overflow-x: auto; }
.an-mush-chart svg { display: block; width: 100%; height: auto; min-width: 560px; }
.an-mush-chart-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font: 600 .75rem/1 var(--an-font-mono, monospace); }
.an-mush-chart-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--an-text-2, #A2A9A6); }
.an-mush-chart-legend i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }

.an-mush-warn { border: 1px solid rgba(255,107,82,.4); border-radius: var(--an-radius-lg, 16px); background: rgba(255,107,82,.06); padding: var(--an-space-5, 24px); }
.an-mush-warn p { font-size: .875rem; line-height: 1.7; color: var(--an-text-2, #A2A9A6); margin: 0; max-width: 76ch; }

/* ── advisor ──────────────────────────────────────────────────────── */

.an-mush-assist { border: 1px solid var(--an-line, #262B2E); border-radius: var(--an-radius-lg, 16px); background: var(--an-surface, #15181A); padding: var(--an-space-5, 24px); margin: var(--an-space-7, 48px) 0; }
.an-mush-assist h2 { font: 600 1.15rem/1.3 var(--an-font-ui, system-ui); margin: 0 0 10px; }
.an-mush-assist p { font-size: .875rem; line-height: 1.65; color: var(--an-text-2, #A2A9A6); max-width: 74ch; }
.an-mush-assist.is-on { border-left: 3px solid #7C8CFF; }
.an-mush-assist-body { font-size: .9375rem; line-height: 1.7; }
.an-mush-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0; }
.an-mush-kv div { background: var(--an-sunk, #101314); border-radius: var(--an-radius-sm, 6px); padding: 12px; }
.an-mush-kv span { display: block; font: 600 .625rem/1 var(--an-font-mono, monospace); letter-spacing: .1em; text-transform: uppercase; color: var(--an-text-3, #7F8789); margin-bottom: 6px; }
.an-mush-kv b { font-size: .9375rem; }

/* ── the store, which is allowed to be loud ───────────────────────── */

.an-store-hero { text-align: center; padding: var(--an-space-8, 64px) 0 var(--an-space-7, 48px); position: relative; }
.an-store-hero::before {
	content: ""; position: absolute; inset: -10% -20% 20%; z-index: -1; pointer-events: none;
	background: radial-gradient(60% 60% at 50% 30%, rgba(232,118,63,.18), transparent 70%),
	            radial-gradient(50% 50% at 22% 60%, rgba(124,140,255,.14), transparent 70%),
	            radial-gradient(50% 50% at 78% 55%, rgba(95,192,127,.14), transparent 70%);
	filter: blur(6px);
}
.an-store-eyebrow { font: 700 .6875rem/1 var(--an-font-mono, monospace); letter-spacing: .22em; text-transform: uppercase; color: var(--an-accent, #E8763F); }
.an-store-hero h1 {
	font: 600 clamp(2rem, 5vw, 3.4rem)/1.05 var(--an-font-editorial, Georgia, serif);
	letter-spacing: -.02em; margin: .35em 0 .4em;
	background: linear-gradient(94deg, #E8763F, #F0B429 40%, #5FC07F 72%, #7C8CFF);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
	color: var(--an-accent, #E8763F);
}
.an-store-hero p { max-width: 60ch; margin: 0 auto; font-size: 1rem; line-height: 1.7; color: var(--an-text-2, #A2A9A6); }

.an-store-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--an-space-5, 24px); margin: var(--an-space-7, 48px) 0 var(--an-space-5, 24px); align-items: stretch; }
.an-store-tier {
	position: relative; display: flex; flex-direction: column;
	border: 1px solid var(--an-line, #262B2E); border-radius: var(--an-radius-lg, 16px);
	background: var(--an-surface, #15181A); padding: var(--an-space-5, 24px);
}
.an-store-tier.is-feature {
	border-color: transparent;
	background:
		linear-gradient(var(--an-surface, #15181A), var(--an-surface, #15181A)) padding-box,
		linear-gradient(140deg, #E8763F, #F0B429 40%, #5FC07F 75%, #7C8CFF) border-box;
	box-shadow: 0 18px 50px -24px rgba(232,118,63,.5);
}
.an-store-flag {
	position: absolute; top: -11px; left: var(--an-space-5, 24px);
	font: 700 .625rem/1 var(--an-font-mono, monospace); letter-spacing: .12em; text-transform: uppercase;
	background: linear-gradient(92deg, #E8763F, #F0B429); color: #1a1206;
	padding: 6px 10px; border-radius: 999px;
}
.an-store-tier h3 { font: 600 1.0625rem/1 var(--an-font-ui, system-ui); margin: 6px 0 12px; }
.an-store-price { margin: 0 0 16px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.an-store-price b { font: 600 2.25rem/1 var(--an-font-ui, system-ui); font-variant-numeric: tabular-nums; }
.an-store-price span { font-size: .75rem; color: var(--an-text-3, #7F8789); }
.an-store-tier ul { list-style: none; margin: 0 0 20px; padding: 0; flex: 1; }
.an-store-tier li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: .875rem; line-height: 1.55; color: var(--an-text-2, #A2A9A6); }
.an-store-tier li::before { content: "✓"; position: absolute; left: 0; color: #5FC07F; font-weight: 700; }
.an-store-btn {
	display: inline-block; text-decoration: none; text-align: center;
	padding: 13px 20px; border-radius: var(--an-radius-sm, 8px);
	background: linear-gradient(94deg, #E8763F, #F0B429); color: #17110D;
	font: 600 .9375rem/1 var(--an-font-ui, system-ui); border: 0;
}
.an-store-btn.is-quiet { background: transparent; color: var(--an-text, #ECEEEC); border: 1px solid var(--an-line, #262B2E); }
.an-store-note { font-size: .8125rem; line-height: 1.65; color: var(--an-text-3, #7F8789); max-width: 76ch; margin: var(--an-space-4, 16px) 0 var(--an-space-8, 64px); }

.an-store-hw h2, .an-store-api h2 { font: 600 var(--an-t-h3, 1.6rem)/1.2 var(--an-font-editorial, Georgia, serif); margin: 0 0 var(--an-space-4, 16px); }
.an-store-hw > p { font-size: .9375rem; line-height: 1.7; color: var(--an-text-2, #A2A9A6); max-width: 72ch; }
.an-store-kits { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--an-space-4, 16px); margin: var(--an-space-5, 24px) 0; }
.an-store-kit { border: 1px solid var(--an-line, #262B2E); border-radius: var(--an-radius-lg, 16px); background: var(--an-surface, #15181A); padding: var(--an-space-5, 24px); }
.an-store-kit-ic { font-size: 1.4rem; color: #F0B429; display: block; margin-bottom: 8px; }
.an-store-kit h3 { font: 600 1rem/1.3 var(--an-font-ui, system-ui); margin: 0 0 8px; }
.an-store-kit p { font-size: .8125rem; line-height: 1.6; color: var(--an-text-2, #A2A9A6); margin: 0; }
.an-store-kit .an-store-price b { font-size: 1.5rem; }

.an-store-api {
	border-radius: var(--an-radius-lg, 16px); padding: var(--an-space-6, 32px);
	border: 1px solid transparent;
	background:
		linear-gradient(var(--an-surface, #15181A), var(--an-surface, #15181A)) padding-box,
		linear-gradient(140deg, #7C8CFF, #E8763F 60%, #F0B429) border-box;
}
.an-store-api p { font-size: .9375rem; line-height: 1.7; color: var(--an-text-2, #A2A9A6); max-width: 74ch; }

@media (max-width: 640px) {
	.an-mush { padding-top: var(--an-space-5, 24px); }
	.an-mush-form { grid-template-columns: 1fr; }
}
