/* GCR tokens + block styles + patterns + brand kit. Loads on the front end and in the editor. */
:root, .editor-styles-wrapper {
	--gcr-jade: #0B7A68; --gcr-jade-lt: #2CC4A5; --gcr-jade-tint: #E6F2EF; --gcr-jade-line: #BFDDD5;
	--gcr-ink: #0F1E1B; --gcr-ink-2: #1B2E2A;
	--gcr-mango: #F4A825; --gcr-mango-tint: #FDF1D8;
	--gcr-paper: #F6F4EE; --gcr-white: #FFFFFF;
	--gcr-coral: #B4421F; --gcr-coral-tint: #F8E6DF;
	--gcr-muted: #5B6B66; --gcr-muted-dk: #A9B7B2; --gcr-line: #E3DFD4; --gcr-line-soft: #EEEBE3;
	--gcr-f-head: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
	--gcr-f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--gcr-f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* helpers usable anywhere */
.gcr-mono, .gcr-fig { font-family: var(--gcr-f-mono); font-weight: 700; letter-spacing: -0.01em; }
.gcr-eyebrow {
	font-family: var(--gcr-f-body); font-size: 12px !important; font-weight: 700;
	text-transform: uppercase; letter-spacing: .1em; color: var(--gcr-jade); margin-bottom: 6px !important;
}
.gcr-eyebrow.is-coral { color: var(--gcr-coral); }
.gcr-dek { font-size: 1.15em; color: var(--gcr-muted); max-width: 62ch; }
.gcr-checked { font-family: var(--gcr-f-mono); font-size: 12.5px !important; color: var(--gcr-muted); }
.gcr-checked::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gcr-jade-lt); margin-right: 8px; vertical-align: 1px; }

/* ---------- group: key takeaways ---------- */
.wp-block-group.is-style-gcr-takeaways {
	background: var(--gcr-white);
	border: 1px solid var(--gcr-line);
	border-left: 5px solid var(--gcr-jade);
	border-radius: 12px;
	padding: 20px 24px;
}
.is-style-gcr-takeaways > h2, .is-style-gcr-takeaways > h3, .is-style-gcr-takeaways > .wp-block-heading {
	font-family: var(--gcr-f-head); font-weight: 800; font-size: 18px; color: var(--gcr-jade);
	margin: 0 0 10px; letter-spacing: -0.01em;
}
.is-style-gcr-takeaways > h2::before, .is-style-gcr-takeaways > .wp-block-heading::before { display: none !important; }
.is-style-gcr-takeaways ul { margin: 0 0 0 1.2em; }
.is-style-gcr-takeaways li { margin-bottom: 6px; }
.is-style-gcr-takeaways li::marker { color: var(--gcr-mango); }

/* ---------- group: alert (coral) ---------- */
.wp-block-group.is-style-gcr-alert {
	background: var(--gcr-coral-tint);
	border: 1px solid #EBC3B5;
	border-left: 5px solid var(--gcr-coral);
	border-radius: 12px;
	padding: 18px 22px;
	color: var(--gcr-ink);
}
.is-style-gcr-alert > .wp-block-heading { font-family: var(--gcr-f-head); font-weight: 800; color: var(--gcr-coral); font-size: 20px; margin: 0 0 6px; }
.is-style-gcr-alert > .wp-block-heading::before { display: none !important; }
.is-style-gcr-alert a { color: var(--gcr-coral); }
.gcr-change { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 6px 0 4px !important; }
.gcr-change .was { font-family: var(--gcr-f-mono); font-weight: 500; color: var(--gcr-muted); text-decoration: line-through; font-size: 22px; }
.gcr-change .arrow { color: var(--gcr-coral); font-weight: 700; font-size: 20px; }
.gcr-change .now { font-family: var(--gcr-f-mono); font-weight: 700; color: var(--gcr-coral); font-size: 30px; letter-spacing: -0.02em; }

/* ---------- group: mango note ---------- */
.wp-block-group.is-style-gcr-note {
	background: var(--gcr-mango-tint);
	border: 1px solid #F3DCA8;
	border-radius: 12px;
	padding: 16px 20px;
}
.is-style-gcr-note p:first-child::before { content: "Tip · "; font-weight: 700; color: #8A5A00; }

/* ---------- group: ink card (with mango corner) ---------- */
.wp-block-group.is-style-gcr-ink-card {
	position: relative; overflow: hidden;
	background: var(--gcr-ink); color: var(--gcr-paper);
	border-radius: 16px; padding: 26px 28px;
}
.wp-block-group.is-style-gcr-ink-card::after {
	content: ""; position: absolute; top: 0; right: 0; width: 56px; height: 56px;
	background: var(--gcr-mango); clip-path: polygon(0 0, 100% 0, 100% 100%);
	border-bottom-left-radius: 12px;
}
.is-style-gcr-ink-card h2, .is-style-gcr-ink-card h3, .is-style-gcr-ink-card .wp-block-heading { color: var(--gcr-paper); margin-top: 0; }
.is-style-gcr-ink-card .wp-block-heading::before { display: none !important; }
.is-style-gcr-ink-card p { color: var(--gcr-muted-dk); }
.is-style-gcr-ink-card a:not(.wp-block-button__link) { color: var(--gcr-jade-lt); }
.is-style-gcr-ink-card .wp-block-image img { height: 30px; width: auto; }

/* ---------- table: rates ---------- */
.wp-block-table.is-style-gcr-rates table { border-collapse: separate; border-spacing: 0; width: 100%; border: 1px solid var(--gcr-line); border-radius: 12px; overflow: hidden; background: var(--gcr-white); }
.wp-block-table.is-style-gcr-rates th { background: var(--gcr-ink); color: var(--gcr-paper); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; text-align: left; padding: 10px 14px; border: 0; }
.wp-block-table.is-style-gcr-rates td { padding: 11px 14px; border: 0; border-top: 1px solid var(--gcr-line-soft); }
.wp-block-table.is-style-gcr-rates tbody tr:nth-child(even) td { background: #FBFAF6; }
.wp-block-table.is-style-gcr-rates td:not(:first-child) { font-family: var(--gcr-f-mono); font-weight: 700; white-space: nowrap; }
.wp-block-table.is-style-gcr-rates figcaption { font-size: 12.5px; color: var(--gcr-muted); text-align: left; }

/* ---------- button: mango ---------- */
.wp-block-button.is-style-gcr-mango .wp-block-button__link { background: var(--gcr-mango) !important; color: var(--gcr-ink) !important; border-radius: 10px; font-weight: 700; }
.wp-block-button.is-style-gcr-mango .wp-block-button__link:hover { background: var(--gcr-paper) !important; }

/* ---------- quote / separator ---------- */
.wp-block-quote.is-style-gcr-quote { border: 0; padding: 0 0 0 22px; background: none; position: relative; }
.wp-block-quote.is-style-gcr-quote::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 3px; background: var(--gcr-mango); }
.wp-block-quote.is-style-gcr-quote p { font-family: var(--gcr-f-head); font-weight: 800; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; color: var(--gcr-ink); }
.wp-block-quote.is-style-gcr-quote cite { color: var(--gcr-muted); font-style: normal; font-size: 13px; }
.wp-block-separator.is-style-gcr-rule { border: 0; height: 4px; width: 48px; max-width: 48px; background: var(--gcr-mango); border-radius: 2px; opacity: 1; margin-left: 0; }

/* ---------- digest promo ---------- */
.gcr-promo { gap: 18px !important; }
.gcr-promo .wp-block-column { display: flex; }
.gcr-promo .wp-block-group.is-style-gcr-ink-card { flex: 1; }

/* ---------- brand kit ---------- */
.gcr-kit { font-family: var(--gcr-f-body); color: var(--gcr-ink); }
.gcr-kit__h { font-family: var(--gcr-f-head); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; margin: 36px 0 10px; }
.gcr-kit__h:first-child { margin-top: 0; }
.gcr-kit__p { color: var(--gcr-muted); max-width: 70ch; }
.gcr-kit__logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.gcr-kit__logo { margin: 0; border: 1px solid var(--gcr-line); border-radius: 12px; overflow: hidden; background: var(--gcr-white); }
.gcr-kit__art { height: 130px; display: flex; align-items: center; justify-content: center; padding: 22px; background: var(--gcr-paper); }
.gcr-kit__logo.is-dark .gcr-kit__art { background: var(--gcr-ink); }
.gcr-kit__art img { max-height: 70px; max-width: 100%; width: auto; height: auto; }
.gcr-kit__logo figcaption { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; font-size: 13px; border-top: 1px solid var(--gcr-line); }
.gcr-kit__logo figcaption a { font-weight: 700; color: var(--gcr-jade); text-decoration: none; font-family: var(--gcr-f-mono); font-size: 12px; }
.gcr-kit__swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gcr-kit__sw { border-radius: 12px; padding: 16px; min-height: 140px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; border: 1px solid rgba(15,30,27,.08); }
.gcr-kit__sw strong { font-family: var(--gcr-f-head); font-size: 20px; font-weight: 800; }
.gcr-kit__sw code { background: none !important; color: inherit !important; padding: 0 !important; font-family: var(--gcr-f-mono); font-size: 13px; font-weight: 700; }
.gcr-kit__sw small { font-size: 12px; opacity: .85; line-height: 1.35; }
.gcr-kit__type { display: grid; gap: 12px; }
.gcr-kit__type > div { background: var(--gcr-white); border: 1px solid var(--gcr-line); border-radius: 12px; padding: 16px 20px; }
.gcr-kit__lbl { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gcr-muted); }
.gcr-kit__type p { margin: 6px 0 0 !important; }
.gcr-kit__t1 { font-family: var(--gcr-f-head); font-weight: 800; font-size: 34px; letter-spacing: -0.025em; line-height: 1.1; }
.gcr-kit__t2 { font-size: 17px; }
.gcr-kit__t3 { font-family: var(--gcr-f-mono); font-weight: 700; font-size: 22px; color: var(--gcr-jade); }
.gcr-kit__rules { padding-left: 1.2em; }
.gcr-kit__rules li { margin-bottom: 6px; }
.gcr-kit__rules li::marker { color: var(--gcr-mango); }
.gcr-kit__sw strong, .gcr-kit__sw small { color: inherit !important; }
