/* ==========================================================================
   Greenarys: Impact Engine blocks in the theme's type, buttons and radii (Phase 7).
   Loaded only after the plugin's own frontend.css. Colours come from the
   plugin (Greenarys Impact > Settings > Brand colours), so they are not set here.
   ========================================================================== */

/* Type: headings and numbers in Montserrat, body in Nunito Sans */
.gi-dash, .gi-verify, .gi-cert, .gi-meter, .gi-share, .gi-follow { font-family: var(--gr-font-body); }
.gi-dash__title, .gi-v-title, .gi-cert__title, .gi-meter__title, .gi-share__title, .gi-follow__title,
.gi-dash__certcard-title, .gi-meter__value, .gi-v-impact__value, .gi-cert__name {
	font-family: var(--gr-font-head) !important; font-weight: 700;
}
.gi-dash__title { font-size: var(--gr-fs-xl); color: var(--gr-ink); }
.gi-v-eyebrow, .gi-cert__eyebrow { color: var(--gr-green) !important; } /* the logo lime is too light for text */
.gi-dash__intro, .gi-v-intro, .gi-cert__note { color: var(--gr-ink-soft); }
.gi-dash__ref, .gi-dash__certno, .gi-v-certid, .gi-cert__mono { font-family: var(--gr-font-body); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* Buttons: the same shape as the rest of the store */
.gi-v-btn, .gi-dash .gi-v-btn, .gi-cert .gi-v-btn {
	min-height: var(--gr-tap); border-radius: var(--gr-r) !important; box-shadow: none !important;
	font-family: var(--gr-font-head); font-size: var(--gr-fs-sm); font-weight: 600; letter-spacing: 0.02em; text-transform: none;
}
.gi-v-btn--ghost, .gi-dash .gi-v-btn--ghost, .gi-cert .gi-v-btn--ghost { border-width: 2px !important; border-color: currentColor !important; }
.gi-share__btn, .gi-follow__link { border-radius: var(--gr-r) !important; font-family: var(--gr-font-head); font-weight: 600; min-height: 44px; }

/* Cards: theme radii and borders */
.gi-verify, .gi-cert { border-radius: var(--gr-r-lg); box-shadow: var(--gr-shadow); }
.gi-dash .gi-v-impact li, .gi-cert .gi-v-impact li, .gi-v-impact li { border-radius: var(--gr-r); }
.gi-dash__order, .gi-share, .gi-follow, .gi-dash__certcard { border-radius: var(--gr-r); }
.gi-v-source span, .gi-v-field input, .gi-cert__form input, .gi-share__caption { border-radius: var(--gr-r-sm); }
.gi-meter__item { border-radius: var(--gr-r); }

/* Impact figures: calmer labels (sentence case reads better than all caps) */
.gi-v-impact__label, .gi-meter__label { text-transform: none; letter-spacing: 0; font-size: var(--gr-fs-sm) !important; }
.gi-dash .gi-v-impact { gap: var(--gr-s3); }
.gi-dash .gi-v-impact li { padding: var(--gr-s4) var(--gr-s3); }
.gi-dash .gi-v-impact__value { font-size: var(--gr-fs-xl); }

/* My Impact inside My Account: the page title already says what it is */
.gr-account .gi-dash { max-width: none; }
.gr-account .gi-dash__head { margin-bottom: var(--gr-s5); }
.gr-account .gi-dash .gi-v-eyebrow { display: none; }
.gi-dash__sub { color: var(--gr-ink-soft); }
.gi-dash__foot { margin-top: var(--gr-s4); }

/* Public certificate page and verification form: centred, comfortable on phones */
.gi-verify-page__inner { max-width: var(--gr-max); margin-inline: auto; }
@media (max-width: 599px) {
	.gi-verify, .gi-cert { padding: var(--gr-s5) var(--gr-s4); }
	.gi-dash__cta .gi-v-btn, .gi-dash__certcard-actions .gi-v-btn { width: 100%; }
}

/* No all-caps anywhere in the impact blocks (the plugin's labels, and Astra's uppercase buttons) */
.gi-dash .gi-v-impact__label, .gi-cert .gi-v-impact__label, .gi-verify .gi-v-impact__label,
.gi-dash__sub, .gi-share__label, .gi-v-label, .gi-cert__facts dt {
	text-transform: none !important; letter-spacing: 0 !important; font-size: var(--gr-fs-sm) !important;
}
.gi-dash__sub { font: 700 var(--gr-fs-md) var(--gr-font-head) !important; color: var(--gr-ink) !important; margin-top: var(--gr-s5) !important; }
.gi-share__btn, .gi-v-btn, .gi-v-tabs button, .gi-follow__link { text-transform: none !important; letter-spacing: 0.01em !important; }

/* Certificate page: Astra's container is a flex row, so the card hugged the left; centre it. */
.gi-verify-page__inner { flex: 1 1 100%; width: 100%; box-sizing: border-box; }
.gi-cert, .gi-verify { margin-inline: auto !important; }
/* Astra draws a rule under every legend; the source buttons don't need one. */
.gi-v-sources legend { border: 0 !important; width: auto; float: none; padding: 0 !important; }

/*
 * Impact figures in even rows. The plugin fits as many cards as the width
 * allows, so six figures came out as five plus one on its own. From tablet
 * width up: three or six figures sit as rows of three, four and five as one
 * row each. Phones keep the plugin's two per row.
 */
@media (min-width: 601px) {
	.gi-meter:not(.gi-layout-row):not(.gi-count-1):not(.gi-count-2) .gi-meter__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.gi-meter.gi-count-3:not(.gi-layout-row), .gi-meter.gi-count-6:not(.gi-layout-row) { max-width: 960px; }
}
@media (min-width: 1024px) {
	.gi-meter.gi-count-4:not(.gi-layout-row) .gi-meter__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.gi-meter.gi-count-5:not(.gi-layout-row) .gi-meter__list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
